diff --git a/node_modules/.bin/conc b/node_modules/.bin/conc deleted file mode 120000 index e9da687..0000000 --- a/node_modules/.bin/conc +++ /dev/null @@ -1 +0,0 @@ -../concurrently/dist/bin/concurrently.js \ No newline at end of file diff --git a/node_modules/.bin/concurrently b/node_modules/.bin/concurrently deleted file mode 120000 index e9da687..0000000 --- a/node_modules/.bin/concurrently +++ /dev/null @@ -1 +0,0 @@ -../concurrently/dist/bin/concurrently.js \ No newline at end of file diff --git a/node_modules/.bin/detect-libc b/node_modules/.bin/detect-libc deleted file mode 120000 index b4c4b76..0000000 --- a/node_modules/.bin/detect-libc +++ /dev/null @@ -1 +0,0 @@ -../detect-libc/bin/detect-libc.js \ No newline at end of file diff --git a/node_modules/.bin/esbuild b/node_modules/.bin/esbuild deleted file mode 120000 index c83ac07..0000000 --- a/node_modules/.bin/esbuild +++ /dev/null @@ -1 +0,0 @@ -../esbuild/bin/esbuild \ No newline at end of file diff --git a/node_modules/.bin/figlet b/node_modules/.bin/figlet deleted file mode 120000 index 5dbc927..0000000 --- a/node_modules/.bin/figlet +++ /dev/null @@ -1 +0,0 @@ -../figlet/bin/index.js \ No newline at end of file diff --git a/node_modules/.bin/nanoid b/node_modules/.bin/nanoid deleted file mode 120000 index e2be547..0000000 --- a/node_modules/.bin/nanoid +++ /dev/null @@ -1 +0,0 @@ -../nanoid/bin/nanoid.cjs \ No newline at end of file diff --git a/node_modules/.bin/nodemon b/node_modules/.bin/nodemon deleted file mode 120000 index 1056ddc..0000000 --- a/node_modules/.bin/nodemon +++ /dev/null @@ -1 +0,0 @@ -../nodemon/bin/nodemon.js \ No newline at end of file diff --git a/node_modules/.bin/nodetouch b/node_modules/.bin/nodetouch deleted file mode 120000 index 3409fdb..0000000 --- a/node_modules/.bin/nodetouch +++ /dev/null @@ -1 +0,0 @@ -../touch/bin/nodetouch.js \ No newline at end of file diff --git a/node_modules/.bin/prettier b/node_modules/.bin/prettier deleted file mode 120000 index 92267ed..0000000 --- a/node_modules/.bin/prettier +++ /dev/null @@ -1 +0,0 @@ -../prettier/bin/prettier.cjs \ No newline at end of file diff --git a/node_modules/.bin/rollup b/node_modules/.bin/rollup deleted file mode 120000 index 5939621..0000000 --- a/node_modules/.bin/rollup +++ /dev/null @@ -1 +0,0 @@ -../rollup/dist/bin/rollup \ No newline at end of file diff --git a/node_modules/.bin/sass b/node_modules/.bin/sass deleted file mode 120000 index 4bda500..0000000 --- a/node_modules/.bin/sass +++ /dev/null @@ -1 +0,0 @@ -../sass/sass.js \ No newline at end of file diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver deleted file mode 120000 index 5aaadf4..0000000 --- a/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../semver/bin/semver.js \ No newline at end of file diff --git a/node_modules/.bin/tree-kill b/node_modules/.bin/tree-kill deleted file mode 120000 index 26dcd2c..0000000 --- a/node_modules/.bin/tree-kill +++ /dev/null @@ -1 +0,0 @@ -../tree-kill/cli.js \ No newline at end of file diff --git a/node_modules/.bin/uuid b/node_modules/.bin/uuid deleted file mode 120000 index 24f4a5f..0000000 --- a/node_modules/.bin/uuid +++ /dev/null @@ -1 +0,0 @@ -../uuid/dist/esm/bin/uuid \ No newline at end of file diff --git a/node_modules/.bin/vite b/node_modules/.bin/vite deleted file mode 120000 index 6d1e3be..0000000 --- a/node_modules/.bin/vite +++ /dev/null @@ -1 +0,0 @@ -../vite/bin/vite.js \ No newline at end of file diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json deleted file mode 100755 index 2f1f5a6..0000000 --- a/node_modules/.package-lock.json +++ /dev/null @@ -1,3647 +0,0 @@ -{ - "name": "websocket-mud", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "node_modules/@bufbuild/protobuf": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.8.0.tgz", - "integrity": "sha512-r1/0w5C9dkbcdjyxY8ZHsC5AOWg4Pnzhm2zu7LO4UHSounp2tMm6Y+oioV9zlGbLveE7YaWRDUk48WLxRDgoqg==", - "dev": true, - "license": "(Apache-2.0 AND BSD-3-Clause)" - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.9.tgz", - "integrity": "sha512-OaGtL73Jck6pBKjNIe24BnFE6agGl+6KxDtTfHhy1HmhthfKouEcOhqpSL64K4/0WCtbKFLOdzD/44cJ4k9opA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.9.tgz", - "integrity": "sha512-5WNI1DaMtxQ7t7B6xa572XMXpHAaI/9Hnhk8lcxF4zVN4xstUgTlvuGDorBguKEnZO70qwEcLpfifMLoxiPqHQ==", - "cpu": [ - "arm" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.9.tgz", - "integrity": "sha512-IDrddSmpSv51ftWslJMvl3Q2ZT98fUSL2/rlUXuVqRXHCs5EUF1/f+jbjF5+NG9UffUDMCiTyh8iec7u8RlTLg==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.9.tgz", - "integrity": "sha512-I853iMZ1hWZdNllhVZKm34f4wErd4lMyeV7BLzEExGEIZYsOzqDWDf+y082izYUE8gtJnYHdeDpN/6tUdwvfiw==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.9.tgz", - "integrity": "sha512-XIpIDMAjOELi/9PB30vEbVMs3GV1v2zkkPnuyRRURbhqjyzIINwj+nbQATh4H9GxUgH1kFsEyQMxwiLFKUS6Rg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.9.tgz", - "integrity": "sha512-jhHfBzjYTA1IQu8VyrjCX4ApJDnH+ez+IYVEoJHeqJm9VhG9Dh2BYaJritkYK3vMaXrf7Ogr/0MQ8/MeIefsPQ==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.9.tgz", - "integrity": "sha512-z93DmbnY6fX9+KdD4Ue/H6sYs+bhFQJNCPZsi4XWJoYblUqT06MQUdBCpcSfuiN72AbqeBFu5LVQTjfXDE2A6Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.9.tgz", - "integrity": "sha512-mrKX6H/vOyo5v71YfXWJxLVxgy1kyt1MQaD8wZJgJfG4gq4DpQGpgTB74e5yBeQdyMTbgxp0YtNj7NuHN0PoZg==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.9.tgz", - "integrity": "sha512-HBU2Xv78SMgaydBmdor38lg8YDnFKSARg1Q6AT0/y2ezUAKiZvc211RDFHlEZRFNRVhcMamiToo7bDx3VEOYQw==", - "cpu": [ - "arm" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.9.tgz", - "integrity": "sha512-BlB7bIcLT3G26urh5Dmse7fiLmLXnRlopw4s8DalgZ8ef79Jj4aUcYbk90g8iCa2467HX8SAIidbL7gsqXHdRw==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.9.tgz", - "integrity": "sha512-e7S3MOJPZGp2QW6AK6+Ly81rC7oOSerQ+P8L0ta4FhVi+/j/v2yZzx5CqqDaWjtPFfYz21Vi1S0auHrap3Ma3A==", - "cpu": [ - "ia32" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.9.tgz", - "integrity": "sha512-Sbe10Bnn0oUAB2AalYztvGcK+o6YFFA/9829PhOCUS9vkJElXGdphz0A3DbMdP8gmKkqPmPcMJmJOrI3VYB1JQ==", - "cpu": [ - "loong64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.9.tgz", - "integrity": "sha512-YcM5br0mVyZw2jcQeLIkhWtKPeVfAerES5PvOzaDxVtIyZ2NUBZKNLjC5z3/fUlDgT6w89VsxP2qzNipOaaDyA==", - "cpu": [ - "mips64el" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.9.tgz", - "integrity": "sha512-++0HQvasdo20JytyDpFvQtNrEsAgNG2CY1CLMwGXfFTKGBGQT3bOeLSYE2l1fYdvML5KUuwn9Z8L1EWe2tzs1w==", - "cpu": [ - "ppc64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.9.tgz", - "integrity": "sha512-uNIBa279Y3fkjV+2cUjx36xkx7eSjb8IvnL01eXUKXez/CBHNRw5ekCGMPM0BcmqBxBcdgUWuUXmVWwm4CH9kg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.9.tgz", - "integrity": "sha512-Mfiphvp3MjC/lctb+7D287Xw1DGzqJPb/J2aHHcHxflUo+8tmN/6d4k6I2yFR7BVo5/g7x2Monq4+Yew0EHRIA==", - "cpu": [ - "s390x" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.9.tgz", - "integrity": "sha512-iSwByxzRe48YVkmpbgoxVzn76BXjlYFXC7NvLYq+b+kDjyyk30J0JY47DIn8z1MO3K0oSl9fZoRmZPQI4Hklzg==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.9.tgz", - "integrity": "sha512-9jNJl6FqaUG+COdQMjSCGW4QiMHH88xWbvZ+kRVblZsWrkXlABuGdFJ1E9L7HK+T0Yqd4akKNa/lO0+jDxQD4Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.9.tgz", - "integrity": "sha512-RLLdkflmqRG8KanPGOU7Rpg829ZHu8nFy5Pqdi9U01VYtG9Y0zOG6Vr2z4/S+/3zIyOxiK6cCeYNWOFR9QP87g==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.9.tgz", - "integrity": "sha512-YaFBlPGeDasft5IIM+CQAhJAqS3St3nJzDEgsgFixcfZeyGPCd6eJBWzke5piZuZ7CtL656eOSYKk4Ls2C0FRQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.9.tgz", - "integrity": "sha512-1MkgTCuvMGWuqVtAvkpkXFmtL8XhWy+j4jaSO2wxfJtilVCi0ZE37b8uOdMItIHz4I6z1bWWtEX4CJwcKYLcuA==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.9.tgz", - "integrity": "sha512-4Xd0xNiMVXKh6Fa7HEJQbrpP3m3DDn43jKxMjxLLRjWnRsfxjORYJlXPO4JNcXtOyfajXorRKY9NkOpTHptErg==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.9.tgz", - "integrity": "sha512-WjH4s6hzo00nNezhp3wFIAfmGZ8U7KtrJNlFMRKxiI9mxEK1scOMAaa9i4crUtu+tBr+0IN6JCuAcSBJZfnphw==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.9.tgz", - "integrity": "sha512-mGFrVJHmZiRqmP8xFOc6b84/7xa5y5YvR1x8djzXpJBSv/UsNK6aqec+6JDjConTgvvQefdGhFDAs2DLAds6gQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.9.tgz", - "integrity": "sha512-b33gLVU2k11nVx1OhX3C8QQP6UHQK4ZtN56oFWvVXvz2VkDoe6fbG8TOgHFxEvqeqohmRnIHe5A1+HADk4OQww==", - "cpu": [ - "ia32" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.9.tgz", - "integrity": "sha512-PPOl1mi6lpLNQxnGoyAfschAodRFYXJ+9fs6WHXz7CSWKbOqiMZsubC+BQsVKuul+3vKLuwTHsS2c2y9EoKwxQ==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", - "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.21.0", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz", - "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.6", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.1.tgz", - "integrity": "sha512-xR93k9WhrDYpXHORXpxVL5oHj3Era7wo6k/Wd8/IsQNnZUTzkGS29lyn3nAT05v6ltUuTFVCCYDEGfy2Or/sPA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.2.tgz", - "integrity": "sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", - "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/js": { - "version": "9.35.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.35.0.tgz", - "integrity": "sha512-30iXE9whjlILfWobBkNerJo+TXYsgVM5ERQwMcMKCHckHflCmf7wXDAHlARoWnh0s1U72WqlbeyE7iAcCzuCPw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", - "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.5.tgz", - "integrity": "sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.15.2", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.7", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", - "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.4.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", - "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@parcel/watcher": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.1.tgz", - "integrity": "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "dependencies": { - "detect-libc": "^1.0.3", - "is-glob": "^4.0.3", - "micromatch": "^4.0.5", - "node-addon-api": "^7.0.0" - }, - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "optionalDependencies": { - "@parcel/watcher-android-arm64": "2.5.1", - "@parcel/watcher-darwin-arm64": "2.5.1", - "@parcel/watcher-darwin-x64": "2.5.1", - "@parcel/watcher-freebsd-x64": "2.5.1", - "@parcel/watcher-linux-arm-glibc": "2.5.1", - "@parcel/watcher-linux-arm-musl": "2.5.1", - "@parcel/watcher-linux-arm64-glibc": "2.5.1", - "@parcel/watcher-linux-arm64-musl": "2.5.1", - "@parcel/watcher-linux-x64-glibc": "2.5.1", - "@parcel/watcher-linux-x64-musl": "2.5.1", - "@parcel/watcher-win32-arm64": "2.5.1", - "@parcel/watcher-win32-ia32": "2.5.1", - "@parcel/watcher-win32-x64": "2.5.1" - } - }, - "node_modules/@parcel/watcher-android-arm64": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.1.tgz", - "integrity": "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-darwin-arm64": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.1.tgz", - "integrity": "sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-darwin-x64": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.1.tgz", - "integrity": "sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-freebsd-x64": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.1.tgz", - "integrity": "sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-arm-glibc": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.1.tgz", - "integrity": "sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==", - "cpu": [ - "arm" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-arm-musl": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.1.tgz", - "integrity": "sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==", - "cpu": [ - "arm" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-arm64-glibc": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.1.tgz", - "integrity": "sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-arm64-musl": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.1.tgz", - "integrity": "sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-x64-glibc": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.1.tgz", - "integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-x64-musl": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.1.tgz", - "integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-win32-arm64": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.1.tgz", - "integrity": "sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-win32-ia32": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.1.tgz", - "integrity": "sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-win32-x64": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.1.tgz", - "integrity": "sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.50.2.tgz", - "integrity": "sha512-uLN8NAiFVIRKX9ZQha8wy6UUs06UNSZ32xj6giK/rmMXAgKahwExvK6SsmgU5/brh4w/nSgj8e0k3c1HBQpa0A==", - "cpu": [ - "arm" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.50.2.tgz", - "integrity": "sha512-oEouqQk2/zxxj22PNcGSskya+3kV0ZKH+nQxuCCOGJ4oTXBdNTbv+f/E3c74cNLeMO1S5wVWacSws10TTSB77g==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.50.2.tgz", - "integrity": "sha512-OZuTVTpj3CDSIxmPgGH8en/XtirV5nfljHZ3wrNwvgkT5DQLhIKAeuFSiwtbMto6oVexV0k1F1zqURPKf5rI1Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.50.2.tgz", - "integrity": "sha512-Wa/Wn8RFkIkr1vy1k1PB//VYhLnlnn5eaJkfTQKivirOvzu5uVd2It01ukeQstMursuz7S1bU+8WW+1UPXpa8A==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.50.2.tgz", - "integrity": "sha512-QkzxvH3kYN9J1w7D1A+yIMdI1pPekD+pWx7G5rXgnIlQ1TVYVC6hLl7SOV9pi5q9uIDF9AuIGkuzcbF7+fAhow==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.50.2.tgz", - "integrity": "sha512-dkYXB0c2XAS3a3jmyDkX4Jk0m7gWLFzq1C3qUnJJ38AyxIF5G/dyS4N9B30nvFseCfgtCEdbYFhk0ChoCGxPog==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.50.2.tgz", - "integrity": "sha512-9VlPY/BN3AgbukfVHAB8zNFWB/lKEuvzRo1NKev0Po8sYFKx0i+AQlCYftgEjcL43F2h9Ui1ZSdVBc4En/sP2w==", - "cpu": [ - "arm" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.50.2.tgz", - "integrity": "sha512-+GdKWOvsifaYNlIVf07QYan1J5F141+vGm5/Y8b9uCZnG/nxoGqgCmR24mv0koIWWuqvFYnbURRqw1lv7IBINw==", - "cpu": [ - "arm" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.50.2.tgz", - "integrity": "sha512-df0Eou14ojtUdLQdPFnymEQteENwSJAdLf5KCDrmZNsy1c3YaCNaJvYsEUHnrg+/DLBH612/R0xd3dD03uz2dg==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.50.2.tgz", - "integrity": "sha512-iPeouV0UIDtz8j1YFR4OJ/zf7evjauqv7jQ/EFs0ClIyL+by++hiaDAfFipjOgyz6y6xbDvJuiU4HwpVMpRFDQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.50.2.tgz", - "integrity": "sha512-OL6KaNvBopLlj5fTa5D5bau4W82f+1TyTZRr2BdnfsrnQnmdxh4okMxR2DcDkJuh4KeoQZVuvHvzuD/lyLn2Kw==", - "cpu": [ - "loong64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.50.2.tgz", - "integrity": "sha512-I21VJl1w6z/K5OTRl6aS9DDsqezEZ/yKpbqlvfHbW0CEF5IL8ATBMuUx6/mp683rKTK8thjs/0BaNrZLXetLag==", - "cpu": [ - "ppc64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.50.2.tgz", - "integrity": "sha512-Hq6aQJT/qFFHrYMjS20nV+9SKrXL2lvFBENZoKfoTH2kKDOJqff5OSJr4x72ZaG/uUn+XmBnGhfr4lwMRrmqCQ==", - "cpu": [ - "riscv64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.50.2.tgz", - "integrity": "sha512-82rBSEXRv5qtKyr0xZ/YMF531oj2AIpLZkeNYxmKNN6I2sVE9PGegN99tYDLK2fYHJITL1P2Lgb4ZXnv0PjQvw==", - "cpu": [ - "riscv64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.50.2.tgz", - "integrity": "sha512-4Q3S3Hy7pC6uaRo9gtXUTJ+EKo9AKs3BXKc2jYypEcMQ49gDPFU2P1ariX9SEtBzE5egIX6fSUmbmGazwBVF9w==", - "cpu": [ - "s390x" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.50.2.tgz", - "integrity": "sha512-9Jie/At6qk70dNIcopcL4p+1UirusEtznpNtcq/u/C5cC4HBX7qSGsYIcG6bdxj15EYWhHiu02YvmdPzylIZlA==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.50.2.tgz", - "integrity": "sha512-HPNJwxPL3EmhzeAnsWQCM3DcoqOz3/IC6de9rWfGR8ZCuEHETi9km66bH/wG3YH0V3nyzyFEGUZeL5PKyy4xvw==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.50.2.tgz", - "integrity": "sha512-nMKvq6FRHSzYfKLHZ+cChowlEkR2lj/V0jYj9JnGUVPL2/mIeFGmVM2mLaFeNa5Jev7W7TovXqXIG2d39y1KYA==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.50.2.tgz", - "integrity": "sha512-eFUvvnTYEKeTyHEijQKz81bLrUQOXKZqECeiWH6tb8eXXbZk+CXSG2aFrig2BQ/pjiVRj36zysjgILkqarS2YA==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.50.2.tgz", - "integrity": "sha512-cBaWmXqyfRhH8zmUxK3d3sAhEWLrtMjWBRwdMMHJIXSjvjLKvv49adxiEz+FJ8AP90apSDDBx2Tyd/WylV6ikA==", - "cpu": [ - "ia32" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.50.2.tgz", - "integrity": "sha512-APwKy6YUhvZaEoHyM+9xqmTpviEI+9eL7LoCH+aLcvWYHJ663qG5zx7WzWZY+a9qkg5JtzcMyJ9z0WtQBMDmgA==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "license": "ISC", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/buffer-builder": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/buffer-builder/-/buffer-builder-0.2.0.tgz", - "integrity": "sha512-7VPMEPuYznPSoR21NE1zvd2Xna6c/CloiZCfcMXR1Jny6PjX0N4Nsa38zcBFo/FMK+BlA+FLKbJCQ0i2yxp+Xg==", - "dev": true, - "license": "MIT/X11" - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/chalk/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/chalk/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/colorjs.io": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/colorjs.io/-/colorjs.io-0.5.2.tgz", - "integrity": "sha512-twmVoizEW7ylZSN32OgKdXRmo1qg+wT5/6C3xu5b9QsWzSFAhHLn2xd8ro0diCsKfCj1RdaTP/nrcW+vAoQPIw==", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/concurrently": { - "version": "9.2.1", - "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-9.2.1.tgz", - "integrity": "sha512-fsfrO0MxV64Znoy8/l1vVIjjHa29SZyyqPgQBwhiDcaW8wJc2W3XWVOGx4M3oJBnv/zdUZIIp1gDeS98GzP8Ng==", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "4.1.2", - "rxjs": "7.8.2", - "shell-quote": "1.8.3", - "supports-color": "8.1.1", - "tree-kill": "1.2.2", - "yargs": "17.7.2" - }, - "bin": { - "conc": "dist/bin/concurrently.js", - "concurrently": "dist/bin/concurrently.js" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/open-cli-tools/concurrently?sponsor=1" - } - }, - "node_modules/concurrently/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/concurrently/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/detect-libc": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", - "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "bin": { - "detect-libc": "bin/detect-libc.js" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/esbuild": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.9.tgz", - "integrity": "sha512-CRbODhYyQx3qp7ZEwzxOk4JBqmD/seJrzPa/cGjY1VtIn5E09Oi9/dB4JwctnfZ8Q8iT7rioVv5k/FNT/uf54g==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.9", - "@esbuild/android-arm": "0.25.9", - "@esbuild/android-arm64": "0.25.9", - "@esbuild/android-x64": "0.25.9", - "@esbuild/darwin-arm64": "0.25.9", - "@esbuild/darwin-x64": "0.25.9", - "@esbuild/freebsd-arm64": "0.25.9", - "@esbuild/freebsd-x64": "0.25.9", - "@esbuild/linux-arm": "0.25.9", - "@esbuild/linux-arm64": "0.25.9", - "@esbuild/linux-ia32": "0.25.9", - "@esbuild/linux-loong64": "0.25.9", - "@esbuild/linux-mips64el": "0.25.9", - "@esbuild/linux-ppc64": "0.25.9", - "@esbuild/linux-riscv64": "0.25.9", - "@esbuild/linux-s390x": "0.25.9", - "@esbuild/linux-x64": "0.25.9", - "@esbuild/netbsd-arm64": "0.25.9", - "@esbuild/netbsd-x64": "0.25.9", - "@esbuild/openbsd-arm64": "0.25.9", - "@esbuild/openbsd-x64": "0.25.9", - "@esbuild/openharmony-arm64": "0.25.9", - "@esbuild/sunos-x64": "0.25.9", - "@esbuild/win32-arm64": "0.25.9", - "@esbuild/win32-ia32": "0.25.9", - "@esbuild/win32-x64": "0.25.9" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.35.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.35.0.tgz", - "integrity": "sha512-QePbBFMJFjgmlE+cXAlbHZbHpdFVS2E/6vzCy7aKlebddvl1vadiC4JFV5u/wqTkNUwEV8WrQi257jf5f06hrg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.0", - "@eslint/config-helpers": "^0.3.1", - "@eslint/core": "^0.15.2", - "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.35.0", - "@eslint/plugin-kit": "^0.3.5", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.4.0", - "eslint-visitor-keys": "^4.2.1", - "espree": "^10.4.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", - "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/espree": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", - "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/figlet": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/figlet/-/figlet-1.8.2.tgz", - "integrity": "sha512-iPCpE9B/rOcjewIzDnagP9F2eySzGeHReX8WlrZQJkqFBk2wvq8gY0c6U6Hd2y9HnX1LQcYSeP7aEHoPt6sVKQ==", - "license": "MIT", - "bin": { - "figlet": "bin/index.js" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true, - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/globals": { - "version": "16.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-16.4.0.tgz", - "integrity": "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/ignore-by-default": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", - "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", - "dev": true, - "license": "ISC" - }, - "node_modules/immutable": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.3.tgz", - "integrity": "sha512-+chQdDfvscSF1SJqv2gn4SRO2ZyS3xL3r7IW/wWEEzrzLisnOlKiQu5ytC/BVNcS15C39WT2Hg/bjKjDMcu+zg==", - "dev": true, - "license": "MIT" - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "license": "MIT", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/node-addon-api": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", - "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", - "dev": true, - "license": "MIT", - "optional": true - }, - "node_modules/nodemon": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.10.tgz", - "integrity": "sha512-WDjw3pJ0/0jMFmyNDp3gvY2YizjLmmOUQo6DEBY+JgdvW/yQ9mEeSw6H5ythl5Ny2ytb7f9C2nIbjSxMNzbJXw==", - "dev": true, - "license": "MIT", - "dependencies": { - "chokidar": "^3.5.2", - "debug": "^4", - "ignore-by-default": "^1.0.1", - "minimatch": "^3.1.2", - "pstree.remy": "^1.1.8", - "semver": "^7.5.3", - "simple-update-notifier": "^2.0.0", - "supports-color": "^5.5.0", - "touch": "^3.1.0", - "undefsafe": "^2.0.5" - }, - "bin": { - "nodemon": "bin/nodemon.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/nodemon" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/postcss": { - "version": "8.5.6", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", - "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.11", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", - "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", - "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/pstree.remy": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", - "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", - "dev": true, - "license": "MIT" - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/rollup": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.50.2.tgz", - "integrity": "sha512-BgLRGy7tNS9H66aIMASq1qSYbAAJV6Z6WR4QYTvj5FgF15rZ/ympT1uixHXwzbZUBDbkvqUI1KR0fH1FhMaQ9w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "1.0.8" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.50.2", - "@rollup/rollup-android-arm64": "4.50.2", - "@rollup/rollup-darwin-arm64": "4.50.2", - "@rollup/rollup-darwin-x64": "4.50.2", - "@rollup/rollup-freebsd-arm64": "4.50.2", - "@rollup/rollup-freebsd-x64": "4.50.2", - "@rollup/rollup-linux-arm-gnueabihf": "4.50.2", - "@rollup/rollup-linux-arm-musleabihf": "4.50.2", - "@rollup/rollup-linux-arm64-gnu": "4.50.2", - "@rollup/rollup-linux-arm64-musl": "4.50.2", - "@rollup/rollup-linux-loong64-gnu": "4.50.2", - "@rollup/rollup-linux-ppc64-gnu": "4.50.2", - "@rollup/rollup-linux-riscv64-gnu": "4.50.2", - "@rollup/rollup-linux-riscv64-musl": "4.50.2", - "@rollup/rollup-linux-s390x-gnu": "4.50.2", - "@rollup/rollup-linux-x64-gnu": "4.50.2", - "@rollup/rollup-linux-x64-musl": "4.50.2", - "@rollup/rollup-openharmony-arm64": "4.50.2", - "@rollup/rollup-win32-arm64-msvc": "4.50.2", - "@rollup/rollup-win32-ia32-msvc": "4.50.2", - "@rollup/rollup-win32-x64-msvc": "4.50.2", - "fsevents": "~2.3.2" - } - }, - "node_modules/rxjs": { - "version": "7.8.2", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", - "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.1.0" - } - }, - "node_modules/sass": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.92.1.tgz", - "integrity": "sha512-ffmsdbwqb3XeyR8jJR6KelIXARM9bFQe8A6Q3W4Klmwy5Ckd5gz7jgUNHo4UOqutU5Sk1DtKLbpDP0nLCg1xqQ==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "chokidar": "^4.0.0", - "immutable": "^5.0.2", - "source-map-js": ">=0.6.2 <2.0.0" - }, - "bin": { - "sass": "sass.js" - }, - "engines": { - "node": ">=14.0.0" - }, - "optionalDependencies": { - "@parcel/watcher": "^2.4.1" - } - }, - "node_modules/sass-embedded": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded/-/sass-embedded-1.92.1.tgz", - "integrity": "sha512-28YwLnF5atAhogt3E4hXzz/NB9dwKffyw08a7DEasLh94P7+aELkG3ENSHYCWB9QFN14hYNLfwr9ozUsPDhcDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@bufbuild/protobuf": "^2.5.0", - "buffer-builder": "^0.2.0", - "colorjs.io": "^0.5.0", - "immutable": "^5.0.2", - "rxjs": "^7.4.0", - "supports-color": "^8.1.1", - "sync-child-process": "^1.0.2", - "varint": "^6.0.0" - }, - "bin": { - "sass": "dist/bin/sass.js" - }, - "engines": { - "node": ">=16.0.0" - }, - "optionalDependencies": { - "sass-embedded-all-unknown": "1.92.1", - "sass-embedded-android-arm": "1.92.1", - "sass-embedded-android-arm64": "1.92.1", - "sass-embedded-android-riscv64": "1.92.1", - "sass-embedded-android-x64": "1.92.1", - "sass-embedded-darwin-arm64": "1.92.1", - "sass-embedded-darwin-x64": "1.92.1", - "sass-embedded-linux-arm": "1.92.1", - "sass-embedded-linux-arm64": "1.92.1", - "sass-embedded-linux-musl-arm": "1.92.1", - "sass-embedded-linux-musl-arm64": "1.92.1", - "sass-embedded-linux-musl-riscv64": "1.92.1", - "sass-embedded-linux-musl-x64": "1.92.1", - "sass-embedded-linux-riscv64": "1.92.1", - "sass-embedded-linux-x64": "1.92.1", - "sass-embedded-unknown-all": "1.92.1", - "sass-embedded-win32-arm64": "1.92.1", - "sass-embedded-win32-x64": "1.92.1" - } - }, - "node_modules/sass-embedded-all-unknown": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-all-unknown/-/sass-embedded-all-unknown-1.92.1.tgz", - "integrity": "sha512-5t6/YZf+vhO3OY/49h8RCL6Cwo78luva0M+TnTM9gu9ASffRXAuOVLNKciSXa3loptyemDDS6IU5/dVH5w0KmA==", - "cpu": [ - "!arm", - "!arm64", - "!riscv64", - "!x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "dependencies": { - "sass": "1.92.1" - } - }, - "node_modules/sass-embedded-android-arm": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-android-arm/-/sass-embedded-android-arm-1.92.1.tgz", - "integrity": "sha512-4EjpVVzuksERdgAd4BqeSXFnWtWN3DSRyEIUPJ7BhcS9sfDh2Gf6miI2kNTvIQLJ2XIJynDDcEQ8a1U9KwKUTQ==", - "cpu": [ - "arm" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-android-arm64": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-android-arm64/-/sass-embedded-android-arm64-1.92.1.tgz", - "integrity": "sha512-Q+UruGb7yKawHagVmVDRRKsnc4mJZvWMBnuRCu2coJo2FofyqBmXohVGXbxko97sYceA9TJTrUEx3WVKQUNCbQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-android-riscv64": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-android-riscv64/-/sass-embedded-android-riscv64-1.92.1.tgz", - "integrity": "sha512-nCY5btLlX7W7Jc6cCL6D2Yklpiu540EJ2G08YVGu12DrAMCBzqM347CSRf2ojp1H8jyhvmLkaFwnrJWzh+6S+w==", - "cpu": [ - "riscv64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-android-x64": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-android-x64/-/sass-embedded-android-x64-1.92.1.tgz", - "integrity": "sha512-qYWR3bftJ77aLYwYDFuzDI4dcwVVixxqQxlIQWNGkHRCexj614qGSSHemr18C2eVj3mjXAQxTQxU68U7pkGPAA==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-darwin-arm64": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-darwin-arm64/-/sass-embedded-darwin-arm64-1.92.1.tgz", - "integrity": "sha512-g2yQ3txjMYLKMjL2cW1xRO9nnV3ijf95NbX/QShtV6tiVUETZNWDsRMDEwBNGYY6PTE/UZerjJL1R/2xpQg6WA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-darwin-x64": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-darwin-x64/-/sass-embedded-darwin-x64-1.92.1.tgz", - "integrity": "sha512-eH+fgxLQhTEPjZPCgPAVuX5e514Qp/4DMAUMtlNShv4cr4TD5qOp1XlsPYR/b7uE7p2cKFkUpUn/bHNqJ2ay4A==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-linux-arm": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm/-/sass-embedded-linux-arm-1.92.1.tgz", - "integrity": "sha512-cT3w8yoQTqrtZvWLJeutEGmawITDTY4J6oSVQjeDcPnnoPt0gOFxem8YMznraACXvahw/2+KJDH33BTNgiPo0A==", - "cpu": [ - "arm" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-linux-arm64": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm64/-/sass-embedded-linux-arm64-1.92.1.tgz", - "integrity": "sha512-dNmlpGeZkry1BofhAdGFBXrpM69y9LlYuNnncf+HfsOOUtj8j0q1RwS+zb5asknhKFUOAG8GCGRY1df7Rwu35g==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-linux-musl-arm": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm/-/sass-embedded-linux-musl-arm-1.92.1.tgz", - "integrity": "sha512-nPBos6lI31ef2zQhqTZhFOU7ar4impJbLIax0XsqS269YsiCwjhk11VmUloJTpFlJuKMiVXNo7dPx+katxhD/Q==", - "cpu": [ - "arm" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-linux-musl-arm64": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm64/-/sass-embedded-linux-musl-arm64-1.92.1.tgz", - "integrity": "sha512-TfiEBkCyNzVoOhjHXUT+vZ6+p0ueDbvRw6f4jHdkvljZzXdXMby4wh7BU1odl69rgRTkSvYKhgbErRLDR/F7pQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-linux-musl-riscv64": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-riscv64/-/sass-embedded-linux-musl-riscv64-1.92.1.tgz", - "integrity": "sha512-R+RcJA4EYpJDE9JM1GgPYgZo7x94FlxZ6jPodOQkEaZ1S9kvXVCuP5X/0PXRPhu08KJOfeMsAElzfdAjUf7KJg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-linux-musl-x64": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-x64/-/sass-embedded-linux-musl-x64-1.92.1.tgz", - "integrity": "sha512-/HolYRGXJjx8nLw6oj5ZrkR7PFM7X/5kE4MYZaFMpDIPIcw3bqB2fUXLo/MYlRLsw7gBAT6hJAMBrNdKuTphfw==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-linux-riscv64": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-riscv64/-/sass-embedded-linux-riscv64-1.92.1.tgz", - "integrity": "sha512-b9bxe0CMsbSsLx3nrR0cq8xpIkoAC6X36o4DGMITF3m2v3KsojC7ru9X0Gz+zUFr6rwpq/0lTNzFLNu6sPNo3w==", - "cpu": [ - "riscv64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-linux-x64": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-x64/-/sass-embedded-linux-x64-1.92.1.tgz", - "integrity": "sha512-xuiK5Jp5NldW4bvlC7AuX1Wf7o0gLZ3md/hNg+bkTvxtCDgnUHtfdo8Q+xWP11bD9QX31xXFWpmUB8UDLi6XQQ==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-unknown-all": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-unknown-all/-/sass-embedded-unknown-all-1.92.1.tgz", - "integrity": "sha512-AT9oXvtNY4N+Nd0wvoWqq9A5HjdH/X3aUH4boQUtXyaJ/9DUwnQmBpP5Gtn028ZS8exOGBdobmmWAuigv0k/OA==", - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "!android", - "!darwin", - "!linux", - "!win32" - ], - "dependencies": { - "sass": "1.92.1" - } - }, - "node_modules/sass-embedded-win32-arm64": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-win32-arm64/-/sass-embedded-win32-arm64-1.92.1.tgz", - "integrity": "sha512-KvmpQjY9yTBMtTYz4WBqetlv9bGaDW1aStcu7MSTbH7YiSybX/9fnxlCAEQv1WlIidQhcJAiyk0Eae+LGK7cIQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded-win32-x64": { - "version": "1.92.1", - "resolved": "https://registry.npmjs.org/sass-embedded-win32-x64/-/sass-embedded-win32-x64-1.92.1.tgz", - "integrity": "sha512-B6Nz/GbH7Vkpb2TkQHsGcczWM5t+70VWopWF1x5V5yxLpA8ZzVQ7NTKKi+jDoVY2Efu6ZyzgT9n5KgG2kWliXA==", - "cpu": [ - "x64" - ], - "dev": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-embedded/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/sass-embedded/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/sass/node_modules/chokidar": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", - "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "readdirp": "^4.0.1" - }, - "engines": { - "node": ">= 14.16.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/sass/node_modules/readdirp": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", - "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", - "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">= 14.18.0" - }, - "funding": { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/shell-quote": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.3.tgz", - "integrity": "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/simple-update-notifier": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", - "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.5.3" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sprintf-js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", - "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", - "license": "BSD-3-Clause" - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/sync-child-process": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/sync-child-process/-/sync-child-process-1.0.2.tgz", - "integrity": "sha512-8lD+t2KrrScJ/7KXCSyfhT3/hRq78rC0wBFqNJXv3mZyn6hW2ypM05JmlSvtqRbeq6jqA94oHbxAr2vYsJ8vDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "sync-message-port": "^1.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/sync-message-port": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/sync-message-port/-/sync-message-port-1.1.3.tgz", - "integrity": "sha512-GTt8rSKje5FilG+wEdfCkOcLL7LWqpMlr2c3LRuKt/YXxcJ52aGSbGBAdI4L3aaqfrBt6y711El53ItyH1NWzg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/three": { - "version": "0.180.0", - "resolved": "https://registry.npmjs.org/three/-/three-0.180.0.tgz", - "integrity": "sha512-o+qycAMZrh+TsE01GqWUxUIKR1AL0S8pq7zDkYOQw8GqfX8b8VoCKYUoHbhiX5j+7hr8XsuHDVU6+gkQJQKg9w==", - "license": "MIT" - }, - "node_modules/tinyglobby": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", - "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.3" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/tinyglobby/node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/touch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz", - "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", - "dev": true, - "license": "ISC", - "bin": { - "nodetouch": "bin/nodetouch.js" - } - }, - "node_modules/tree-kill": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", - "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", - "dev": true, - "license": "MIT", - "bin": { - "tree-kill": "cli.js" - } - }, - "node_modules/tslib": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "dev": true, - "license": "0BSD" - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/undefsafe": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", - "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", - "dev": true, - "license": "MIT" - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/uuid": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz", - "integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==", - "dev": true, - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/esm/bin/uuid" - } - }, - "node_modules/varint": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/varint/-/varint-6.0.0.tgz", - "integrity": "sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==", - "dev": true, - "license": "MIT" - }, - "node_modules/vite": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.1.5.tgz", - "integrity": "sha512-4cKBO9wR75r0BeIWWWId9XK9Lj6La5X846Zw9dFfzMRw38IlTk2iCcUt6hsyiDRcPidc55ZParFYDXi0nXOeLQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "^0.25.0", - "fdir": "^6.5.0", - "picomatch": "^4.0.3", - "postcss": "^8.5.6", - "rollup": "^4.43.0", - "tinyglobby": "^0.2.15" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "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" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "jiti": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - }, - "tsx": { - "optional": true - }, - "yaml": { - "optional": true - } - } - }, - "node_modules/vite-plugin-devtools-json": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/vite-plugin-devtools-json/-/vite-plugin-devtools-json-1.0.0.tgz", - "integrity": "sha512-MobvwqX76Vqt/O4AbnNMNWoXWGrKUqZbphCUle/J2KXH82yKQiunOeKnz/nqEPosPsoWWPP9FtNuPBSYpiiwkw==", - "dev": true, - "license": "MIT", - "dependencies": { - "uuid": "^11.1.0" - }, - "peerDependencies": { - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0" - } - }, - "node_modules/vite/node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/vite/node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/ws": { - "version": "8.18.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", - "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/node_modules/.vite/deps/_metadata.json b/node_modules/.vite/deps/_metadata.json deleted file mode 100644 index 2ae75ed..0000000 --- a/node_modules/.vite/deps/_metadata.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "hash": "5eac6a41", - "configHash": "86a557ed", - "lockfileHash": "3ceab950", - "browserHash": "1d3df51c", - "optimized": { - "sprintf-js": { - "src": "../../sprintf-js/src/sprintf.js", - "file": "sprintf-js.js", - "fileHash": "cfe4c24f", - "needsInterop": true - }, - "three": { - "src": "../../three/build/three.module.js", - "file": "three.js", - "fileHash": "7e792144", - "needsInterop": false - }, - "three/src/math/MathUtils.js": { - "src": "../../three/src/math/MathUtils.js", - "file": "three_src_math_MathUtils__js.js", - "fileHash": "6afcef1b", - "needsInterop": false - }, - "three/tsl": { - "src": "../../three/build/three.tsl.js", - "file": "three_tsl.js", - "fileHash": "40fd901e", - "needsInterop": false - }, - "three/webgpu": { - "src": "../../three/build/three.webgpu.js", - "file": "three_webgpu.js", - "fileHash": "0d6a1d7c", - "needsInterop": false - } - }, - "chunks": { - "chunk-5FFPRNLG": { - "file": "chunk-5FFPRNLG.js" - }, - "chunk-GHUIN7QU": { - "file": "chunk-GHUIN7QU.js" - }, - "chunk-BUSYA2B4": { - "file": "chunk-BUSYA2B4.js" - } - } -} \ No newline at end of file diff --git a/node_modules/.vite/deps/package.json b/node_modules/.vite/deps/package.json deleted file mode 100644 index 3dbc1ca..0000000 --- a/node_modules/.vite/deps/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} diff --git a/node_modules/.vite/deps/sprintf-js.js b/node_modules/.vite/deps/sprintf-js.js deleted file mode 100644 index 27c5526..0000000 --- a/node_modules/.vite/deps/sprintf-js.js +++ /dev/null @@ -1,208 +0,0 @@ -import { - __commonJS -} from "./chunk-BUSYA2B4.js"; - -// node_modules/sprintf-js/src/sprintf.js -var require_sprintf = __commonJS({ - "node_modules/sprintf-js/src/sprintf.js"(exports) { - !(function() { - "use strict"; - var re = { - 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 sprintf(key) { - return sprintf_format(sprintf_parse(key), arguments); - } - function vsprintf(fmt, argv) { - return sprintf.apply(null, [fmt].concat(argv || [])); - } - function sprintf_format(parse_tree, argv) { - var cursor = 1, tree_length = parse_tree.length, arg, output = "", i, k, ph, pad, pad_character, pad_length, is_positive, sign; - for (i = 0; i < tree_length; i++) { - if (typeof parse_tree[i] === "string") { - output += parse_tree[i]; - } else if (typeof parse_tree[i] === "object") { - ph = parse_tree[i]; - if (ph.keys) { - arg = argv[cursor]; - for (k = 0; k < ph.keys.length; k++) { - if (arg == void 0) { - throw new Error(sprintf('[sprintf] Cannot access property "%s" of undefined value "%s"', ph.keys[k], ph.keys[k - 1])); - } - arg = arg[ph.keys[k]]; - } - } else if (ph.param_no) { - arg = argv[ph.param_no]; - } else { - arg = argv[cursor++]; - } - if (re.not_type.test(ph.type) && re.not_primitive.test(ph.type) && arg instanceof Function) { - arg = arg(); - } - if (re.numeric_arg.test(ph.type) && (typeof arg !== "number" && isNaN(arg))) { - throw new TypeError(sprintf("[sprintf] expecting number but found %T", arg)); - } - if (re.number.test(ph.type)) { - is_positive = arg >= 0; - } - switch (ph.type) { - case "b": - arg = parseInt(arg, 10).toString(2); - break; - case "c": - arg = String.fromCharCode(parseInt(arg, 10)); - break; - case "d": - case "i": - arg = parseInt(arg, 10); - break; - case "j": - arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0); - break; - case "e": - arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential(); - break; - case "f": - arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg); - break; - case "g": - arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg); - break; - case "o": - arg = (parseInt(arg, 10) >>> 0).toString(8); - break; - case "s": - arg = String(arg); - arg = ph.precision ? arg.substring(0, ph.precision) : arg; - break; - case "t": - arg = String(!!arg); - arg = ph.precision ? arg.substring(0, ph.precision) : arg; - break; - case "T": - arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase(); - arg = ph.precision ? arg.substring(0, ph.precision) : arg; - break; - case "u": - arg = parseInt(arg, 10) >>> 0; - break; - case "v": - arg = arg.valueOf(); - arg = ph.precision ? arg.substring(0, ph.precision) : arg; - break; - case "x": - arg = (parseInt(arg, 10) >>> 0).toString(16); - break; - case "X": - arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase(); - break; - } - if (re.json.test(ph.type)) { - output += arg; - } else { - if (re.number.test(ph.type) && (!is_positive || ph.sign)) { - sign = is_positive ? "+" : "-"; - arg = arg.toString().replace(re.sign, ""); - } else { - sign = ""; - } - pad_character = ph.pad_char ? ph.pad_char === "0" ? "0" : ph.pad_char.charAt(1) : " "; - pad_length = ph.width - (sign + arg).length; - pad = ph.width ? pad_length > 0 ? pad_character.repeat(pad_length) : "" : ""; - output += ph.align ? sign + arg + pad : pad_character === "0" ? sign + pad + arg : pad + sign + arg; - } - } - } - return output; - } - var sprintf_cache = /* @__PURE__ */ Object.create(null); - function sprintf_parse(fmt) { - if (sprintf_cache[fmt]) { - return sprintf_cache[fmt]; - } - var _fmt = fmt, match, parse_tree = [], arg_names = 0; - while (_fmt) { - if ((match = re.text.exec(_fmt)) !== null) { - parse_tree.push(match[0]); - } else if ((match = re.modulo.exec(_fmt)) !== null) { - parse_tree.push("%"); - } else if ((match = re.placeholder.exec(_fmt)) !== null) { - if (match[2]) { - arg_names |= 1; - var field_list = [], replacement_field = match[2], field_match = []; - if ((field_match = re.key.exec(replacement_field)) !== null) { - field_list.push(field_match[1]); - while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") { - if ((field_match = re.key_access.exec(replacement_field)) !== null) { - field_list.push(field_match[1]); - } else if ((field_match = re.index_access.exec(replacement_field)) !== null) { - field_list.push(field_match[1]); - } else { - throw new SyntaxError("[sprintf] failed to parse named argument key"); - } - } - } else { - throw new SyntaxError("[sprintf] failed to parse named argument key"); - } - match[2] = field_list; - } else { - arg_names |= 2; - } - if (arg_names === 3) { - throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported"); - } - parse_tree.push( - { - placeholder: match[0], - param_no: match[1], - keys: match[2], - sign: match[3], - pad_char: match[4], - align: match[5], - width: match[6], - precision: match[7], - type: match[8] - } - ); - } else { - throw new SyntaxError("[sprintf] unexpected placeholder"); - } - _fmt = _fmt.substring(match[0].length); - } - return sprintf_cache[fmt] = parse_tree; - } - if (typeof exports !== "undefined") { - exports["sprintf"] = sprintf; - exports["vsprintf"] = vsprintf; - } - if (typeof window !== "undefined") { - window["sprintf"] = sprintf; - window["vsprintf"] = vsprintf; - if (typeof define === "function" && define["amd"]) { - define(function() { - return { - "sprintf": sprintf, - "vsprintf": vsprintf - }; - }); - } - } - })(); - } -}); -export default require_sprintf(); -//# sourceMappingURL=sprintf-js.js.map diff --git a/node_modules/.vite/deps/sprintf-js.js.map b/node_modules/.vite/deps/sprintf-js.js.map deleted file mode 100644 index 8344105..0000000 --- a/node_modules/.vite/deps/sprintf-js.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../sprintf-js/src/sprintf.js"], - "sourcesContent": ["/* global window, exports, define */\n\n!function() {\n 'use strict'\n\n var re = {\n not_string: /[^s]/,\n not_bool: /[^t]/,\n not_type: /[^T]/,\n not_primitive: /[^v]/,\n number: /[diefg]/,\n numeric_arg: /[bcdiefguxX]/,\n json: /[j]/,\n not_json: /[^j]/,\n text: /^[^\\x25]+/,\n modulo: /^\\x25{2}/,\n placeholder: /^\\x25(?:([1-9]\\d*)\\$|\\(([^)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-gijostTuvxX])/,\n key: /^([a-z_][a-z_\\d]*)/i,\n key_access: /^\\.([a-z_][a-z_\\d]*)/i,\n index_access: /^\\[(\\d+)\\]/,\n sign: /^[+-]/\n }\n\n function sprintf(key) {\n // `arguments` is not an array, but should be fine for this call\n return sprintf_format(sprintf_parse(key), arguments)\n }\n\n function vsprintf(fmt, argv) {\n return sprintf.apply(null, [fmt].concat(argv || []))\n }\n\n function sprintf_format(parse_tree, argv) {\n var cursor = 1, tree_length = parse_tree.length, arg, output = '', i, k, ph, pad, pad_character, pad_length, is_positive, sign\n for (i = 0; i < tree_length; i++) {\n if (typeof parse_tree[i] === 'string') {\n output += parse_tree[i]\n }\n else if (typeof parse_tree[i] === 'object') {\n ph = parse_tree[i] // convenience purposes only\n if (ph.keys) { // keyword argument\n arg = argv[cursor]\n for (k = 0; k < ph.keys.length; k++) {\n if (arg == undefined) {\n throw new Error(sprintf('[sprintf] Cannot access property \"%s\" of undefined value \"%s\"', ph.keys[k], ph.keys[k-1]))\n }\n arg = arg[ph.keys[k]]\n }\n }\n else if (ph.param_no) { // positional argument (explicit)\n arg = argv[ph.param_no]\n }\n else { // positional argument (implicit)\n arg = argv[cursor++]\n }\n\n if (re.not_type.test(ph.type) && re.not_primitive.test(ph.type) && arg instanceof Function) {\n arg = arg()\n }\n\n if (re.numeric_arg.test(ph.type) && (typeof arg !== 'number' && isNaN(arg))) {\n throw new TypeError(sprintf('[sprintf] expecting number but found %T', arg))\n }\n\n if (re.number.test(ph.type)) {\n is_positive = arg >= 0\n }\n\n switch (ph.type) {\n case 'b':\n arg = parseInt(arg, 10).toString(2)\n break\n case 'c':\n arg = String.fromCharCode(parseInt(arg, 10))\n break\n case 'd':\n case 'i':\n arg = parseInt(arg, 10)\n break\n case 'j':\n arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0)\n break\n case 'e':\n arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential()\n break\n case 'f':\n arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg)\n break\n case 'g':\n arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg)\n break\n case 'o':\n arg = (parseInt(arg, 10) >>> 0).toString(8)\n break\n case 's':\n arg = String(arg)\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 't':\n arg = String(!!arg)\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'T':\n arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase()\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'u':\n arg = parseInt(arg, 10) >>> 0\n break\n case 'v':\n arg = arg.valueOf()\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'x':\n arg = (parseInt(arg, 10) >>> 0).toString(16)\n break\n case 'X':\n arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase()\n break\n }\n if (re.json.test(ph.type)) {\n output += arg\n }\n else {\n if (re.number.test(ph.type) && (!is_positive || ph.sign)) {\n sign = is_positive ? '+' : '-'\n arg = arg.toString().replace(re.sign, '')\n }\n else {\n sign = ''\n }\n pad_character = ph.pad_char ? ph.pad_char === '0' ? '0' : ph.pad_char.charAt(1) : ' '\n pad_length = ph.width - (sign + arg).length\n pad = ph.width ? (pad_length > 0 ? pad_character.repeat(pad_length) : '') : ''\n output += ph.align ? sign + arg + pad : (pad_character === '0' ? sign + pad + arg : pad + sign + arg)\n }\n }\n }\n return output\n }\n\n var sprintf_cache = Object.create(null)\n\n function sprintf_parse(fmt) {\n if (sprintf_cache[fmt]) {\n return sprintf_cache[fmt]\n }\n\n var _fmt = fmt, match, parse_tree = [], arg_names = 0\n while (_fmt) {\n if ((match = re.text.exec(_fmt)) !== null) {\n parse_tree.push(match[0])\n }\n else if ((match = re.modulo.exec(_fmt)) !== null) {\n parse_tree.push('%')\n }\n else if ((match = re.placeholder.exec(_fmt)) !== null) {\n if (match[2]) {\n arg_names |= 1\n var field_list = [], replacement_field = match[2], field_match = []\n if ((field_match = re.key.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {\n if ((field_match = re.key_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n }\n else if ((field_match = re.index_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n }\n else {\n throw new SyntaxError('[sprintf] failed to parse named argument key')\n }\n }\n }\n else {\n throw new SyntaxError('[sprintf] failed to parse named argument key')\n }\n match[2] = field_list\n }\n else {\n arg_names |= 2\n }\n if (arg_names === 3) {\n throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported')\n }\n\n parse_tree.push(\n {\n placeholder: match[0],\n param_no: match[1],\n keys: match[2],\n sign: match[3],\n pad_char: match[4],\n align: match[5],\n width: match[6],\n precision: match[7],\n type: match[8]\n }\n )\n }\n else {\n throw new SyntaxError('[sprintf] unexpected placeholder')\n }\n _fmt = _fmt.substring(match[0].length)\n }\n return sprintf_cache[fmt] = parse_tree\n }\n\n /**\n * export to either browser or node.js\n */\n /* eslint-disable quote-props */\n if (typeof exports !== 'undefined') {\n exports['sprintf'] = sprintf\n exports['vsprintf'] = vsprintf\n }\n if (typeof window !== 'undefined') {\n window['sprintf'] = sprintf\n window['vsprintf'] = vsprintf\n\n if (typeof define === 'function' && define['amd']) {\n define(function() {\n return {\n 'sprintf': sprintf,\n 'vsprintf': vsprintf\n }\n })\n }\n }\n /* eslint-enable quote-props */\n}(); // eslint-disable-line\n"], - "mappings": ";;;;;AAAA;AAAA;AAEA,MAAC,WAAW;AACR;AAEA,UAAI,KAAK;AAAA,QACL,YAAY;AAAA,QACZ,UAAU;AAAA,QACV,UAAU;AAAA,QACV,eAAe;AAAA,QACf,QAAQ;AAAA,QACR,aAAa;AAAA,QACb,MAAM;AAAA,QACN,UAAU;AAAA,QACV,MAAM;AAAA,QACN,QAAQ;AAAA,QACR,aAAa;AAAA,QACb,KAAK;AAAA,QACL,YAAY;AAAA,QACZ,cAAc;AAAA,QACd,MAAM;AAAA,MACV;AAEA,eAAS,QAAQ,KAAK;AAElB,eAAO,eAAe,cAAc,GAAG,GAAG,SAAS;AAAA,MACvD;AAEA,eAAS,SAAS,KAAK,MAAM;AACzB,eAAO,QAAQ,MAAM,MAAM,CAAC,GAAG,EAAE,OAAO,QAAQ,CAAC,CAAC,CAAC;AAAA,MACvD;AAEA,eAAS,eAAe,YAAY,MAAM;AACtC,YAAI,SAAS,GAAG,cAAc,WAAW,QAAQ,KAAK,SAAS,IAAI,GAAG,GAAG,IAAI,KAAK,eAAe,YAAY,aAAa;AAC1H,aAAK,IAAI,GAAG,IAAI,aAAa,KAAK;AAC9B,cAAI,OAAO,WAAW,CAAC,MAAM,UAAU;AACnC,sBAAU,WAAW,CAAC;AAAA,UAC1B,WACS,OAAO,WAAW,CAAC,MAAM,UAAU;AACxC,iBAAK,WAAW,CAAC;AACjB,gBAAI,GAAG,MAAM;AACT,oBAAM,KAAK,MAAM;AACjB,mBAAK,IAAI,GAAG,IAAI,GAAG,KAAK,QAAQ,KAAK;AACjC,oBAAI,OAAO,QAAW;AAClB,wBAAM,IAAI,MAAM,QAAQ,iEAAiE,GAAG,KAAK,CAAC,GAAG,GAAG,KAAK,IAAE,CAAC,CAAC,CAAC;AAAA,gBACtH;AACA,sBAAM,IAAI,GAAG,KAAK,CAAC,CAAC;AAAA,cACxB;AAAA,YACJ,WACS,GAAG,UAAU;AAClB,oBAAM,KAAK,GAAG,QAAQ;AAAA,YAC1B,OACK;AACD,oBAAM,KAAK,QAAQ;AAAA,YACvB;AAEA,gBAAI,GAAG,SAAS,KAAK,GAAG,IAAI,KAAK,GAAG,cAAc,KAAK,GAAG,IAAI,KAAK,eAAe,UAAU;AACxF,oBAAM,IAAI;AAAA,YACd;AAEA,gBAAI,GAAG,YAAY,KAAK,GAAG,IAAI,MAAM,OAAO,QAAQ,YAAY,MAAM,GAAG,IAAI;AACzE,oBAAM,IAAI,UAAU,QAAQ,2CAA2C,GAAG,CAAC;AAAA,YAC/E;AAEA,gBAAI,GAAG,OAAO,KAAK,GAAG,IAAI,GAAG;AACzB,4BAAc,OAAO;AAAA,YACzB;AAEA,oBAAQ,GAAG,MAAM;AAAA,cACb,KAAK;AACD,sBAAM,SAAS,KAAK,EAAE,EAAE,SAAS,CAAC;AAClC;AAAA,cACJ,KAAK;AACD,sBAAM,OAAO,aAAa,SAAS,KAAK,EAAE,CAAC;AAC3C;AAAA,cACJ,KAAK;AAAA,cACL,KAAK;AACD,sBAAM,SAAS,KAAK,EAAE;AACtB;AAAA,cACJ,KAAK;AACD,sBAAM,KAAK,UAAU,KAAK,MAAM,GAAG,QAAQ,SAAS,GAAG,KAAK,IAAI,CAAC;AACjE;AAAA,cACJ,KAAK;AACD,sBAAM,GAAG,YAAY,WAAW,GAAG,EAAE,cAAc,GAAG,SAAS,IAAI,WAAW,GAAG,EAAE,cAAc;AACjG;AAAA,cACJ,KAAK;AACD,sBAAM,GAAG,YAAY,WAAW,GAAG,EAAE,QAAQ,GAAG,SAAS,IAAI,WAAW,GAAG;AAC3E;AAAA,cACJ,KAAK;AACD,sBAAM,GAAG,YAAY,OAAO,OAAO,IAAI,YAAY,GAAG,SAAS,CAAC,CAAC,IAAI,WAAW,GAAG;AACnF;AAAA,cACJ,KAAK;AACD,uBAAO,SAAS,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;AAC1C;AAAA,cACJ,KAAK;AACD,sBAAM,OAAO,GAAG;AAChB,sBAAO,GAAG,YAAY,IAAI,UAAU,GAAG,GAAG,SAAS,IAAI;AACvD;AAAA,cACJ,KAAK;AACD,sBAAM,OAAO,CAAC,CAAC,GAAG;AAClB,sBAAO,GAAG,YAAY,IAAI,UAAU,GAAG,GAAG,SAAS,IAAI;AACvD;AAAA,cACJ,KAAK;AACD,sBAAM,OAAO,UAAU,SAAS,KAAK,GAAG,EAAE,MAAM,GAAG,EAAE,EAAE,YAAY;AACnE,sBAAO,GAAG,YAAY,IAAI,UAAU,GAAG,GAAG,SAAS,IAAI;AACvD;AAAA,cACJ,KAAK;AACD,sBAAM,SAAS,KAAK,EAAE,MAAM;AAC5B;AAAA,cACJ,KAAK;AACD,sBAAM,IAAI,QAAQ;AAClB,sBAAO,GAAG,YAAY,IAAI,UAAU,GAAG,GAAG,SAAS,IAAI;AACvD;AAAA,cACJ,KAAK;AACD,uBAAO,SAAS,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE;AAC3C;AAAA,cACJ,KAAK;AACD,uBAAO,SAAS,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,EAAE,YAAY;AACzD;AAAA,YACR;AACA,gBAAI,GAAG,KAAK,KAAK,GAAG,IAAI,GAAG;AACvB,wBAAU;AAAA,YACd,OACK;AACD,kBAAI,GAAG,OAAO,KAAK,GAAG,IAAI,MAAM,CAAC,eAAe,GAAG,OAAO;AACtD,uBAAO,cAAc,MAAM;AAC3B,sBAAM,IAAI,SAAS,EAAE,QAAQ,GAAG,MAAM,EAAE;AAAA,cAC5C,OACK;AACD,uBAAO;AAAA,cACX;AACA,8BAAgB,GAAG,WAAW,GAAG,aAAa,MAAM,MAAM,GAAG,SAAS,OAAO,CAAC,IAAI;AAClF,2BAAa,GAAG,SAAS,OAAO,KAAK;AACrC,oBAAM,GAAG,QAAS,aAAa,IAAI,cAAc,OAAO,UAAU,IAAI,KAAM;AAC5E,wBAAU,GAAG,QAAQ,OAAO,MAAM,MAAO,kBAAkB,MAAM,OAAO,MAAM,MAAM,MAAM,OAAO;AAAA,YACrG;AAAA,UACJ;AAAA,QACJ;AACA,eAAO;AAAA,MACX;AAEA,UAAI,gBAAgB,uBAAO,OAAO,IAAI;AAEtC,eAAS,cAAc,KAAK;AACxB,YAAI,cAAc,GAAG,GAAG;AACpB,iBAAO,cAAc,GAAG;AAAA,QAC5B;AAEA,YAAI,OAAO,KAAK,OAAO,aAAa,CAAC,GAAG,YAAY;AACpD,eAAO,MAAM;AACT,eAAK,QAAQ,GAAG,KAAK,KAAK,IAAI,OAAO,MAAM;AACvC,uBAAW,KAAK,MAAM,CAAC,CAAC;AAAA,UAC5B,YACU,QAAQ,GAAG,OAAO,KAAK,IAAI,OAAO,MAAM;AAC9C,uBAAW,KAAK,GAAG;AAAA,UACvB,YACU,QAAQ,GAAG,YAAY,KAAK,IAAI,OAAO,MAAM;AACnD,gBAAI,MAAM,CAAC,GAAG;AACV,2BAAa;AACb,kBAAI,aAAa,CAAC,GAAG,oBAAoB,MAAM,CAAC,GAAG,cAAc,CAAC;AAClE,mBAAK,cAAc,GAAG,IAAI,KAAK,iBAAiB,OAAO,MAAM;AACzD,2BAAW,KAAK,YAAY,CAAC,CAAC;AAC9B,wBAAQ,oBAAoB,kBAAkB,UAAU,YAAY,CAAC,EAAE,MAAM,OAAO,IAAI;AACpF,uBAAK,cAAc,GAAG,WAAW,KAAK,iBAAiB,OAAO,MAAM;AAChE,+BAAW,KAAK,YAAY,CAAC,CAAC;AAAA,kBAClC,YACU,cAAc,GAAG,aAAa,KAAK,iBAAiB,OAAO,MAAM;AACvE,+BAAW,KAAK,YAAY,CAAC,CAAC;AAAA,kBAClC,OACK;AACD,0BAAM,IAAI,YAAY,8CAA8C;AAAA,kBACxE;AAAA,gBACJ;AAAA,cACJ,OACK;AACD,sBAAM,IAAI,YAAY,8CAA8C;AAAA,cACxE;AACA,oBAAM,CAAC,IAAI;AAAA,YACf,OACK;AACD,2BAAa;AAAA,YACjB;AACA,gBAAI,cAAc,GAAG;AACjB,oBAAM,IAAI,MAAM,2EAA2E;AAAA,YAC/F;AAEA,uBAAW;AAAA,cACP;AAAA,gBACI,aAAa,MAAM,CAAC;AAAA,gBACpB,UAAa,MAAM,CAAC;AAAA,gBACpB,MAAa,MAAM,CAAC;AAAA,gBACpB,MAAa,MAAM,CAAC;AAAA,gBACpB,UAAa,MAAM,CAAC;AAAA,gBACpB,OAAa,MAAM,CAAC;AAAA,gBACpB,OAAa,MAAM,CAAC;AAAA,gBACpB,WAAa,MAAM,CAAC;AAAA,gBACpB,MAAa,MAAM,CAAC;AAAA,cACxB;AAAA,YACJ;AAAA,UACJ,OACK;AACD,kBAAM,IAAI,YAAY,kCAAkC;AAAA,UAC5D;AACA,iBAAO,KAAK,UAAU,MAAM,CAAC,EAAE,MAAM;AAAA,QACzC;AACA,eAAO,cAAc,GAAG,IAAI;AAAA,MAChC;AAMA,UAAI,OAAO,YAAY,aAAa;AAChC,gBAAQ,SAAS,IAAI;AACrB,gBAAQ,UAAU,IAAI;AAAA,MAC1B;AACA,UAAI,OAAO,WAAW,aAAa;AAC/B,eAAO,SAAS,IAAI;AACpB,eAAO,UAAU,IAAI;AAErB,YAAI,OAAO,WAAW,cAAc,OAAO,KAAK,GAAG;AAC/C,iBAAO,WAAW;AACd,mBAAO;AAAA,cACH,WAAW;AAAA,cACX,YAAY;AAAA,YAChB;AAAA,UACJ,CAAC;AAAA,QACL;AAAA,MACJ;AAAA,IAEJ,GAAE;AAAA;AAAA;", - "names": [] -} diff --git a/node_modules/.vite/uuid.json b/node_modules/.vite/uuid.json deleted file mode 100644 index 199169a..0000000 --- a/node_modules/.vite/uuid.json +++ /dev/null @@ -1 +0,0 @@ -9cbcdb16-9371-4676-b0f2-be9c5185f138 \ No newline at end of file diff --git a/node_modules/@bufbuild/protobuf/README.md b/node_modules/@bufbuild/protobuf/README.md deleted file mode 100644 index 52883a3..0000000 --- a/node_modules/@bufbuild/protobuf/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# @bufbuild/protobuf - -This package provides the runtime library for the [protoc-gen-es](https://www.npmjs.com/package/@bufbuild/protoc-gen-es) -code generator plugin. - -## Protocol Buffers for ECMAScript - -A complete implementation of [Protocol Buffers](https://protobuf.dev/) in TypeScript, -suitable for web browsers and Node.js, created by [Buf](https://buf.build). - -**Protobuf-ES** is a solid, modern alternative to existing Protobuf implementations for the JavaScript ecosystem. It's -the first project in this space to provide a comprehensive plugin framework and decouple the base types from RPC -functionality. - -Some additional features that set it apart from the others: - -- ECMAScript module support -- First-class TypeScript support -- Generation of idiomatic JavaScript and TypeScript code -- Generation of [much smaller bundles](https://github.com/bufbuild/protobuf-es/tree/main/packages/bundle-size/) -- Implementation of all proto3 features, including the [canonical JSON format](https://protobuf.dev/programming-guides/proto3/#json) -- Implementation of all proto2 features, except for extensions and the text format -- Usage of standard JavaScript APIs instead of the [Closure Library](http://googlecode.blogspot.com/2009/11/introducing-closure-tools.html) -- Compatibility is covered by the Protocol Buffers [conformance tests](https://github.com/bufbuild/protobuf-es/tree/main/packages/protobuf-conformance/) -- Descriptor and reflection support - -## Installation - -```bash -npm install @bufbuild/protobuf -``` - -## Documentation - -To learn how to work with `@bufbuild/protobuf`, check out the docs for the [Runtime API](https://github.com/bufbuild/protobuf-es/tree/main/MANUAL.md#working-with-messages) -and the [generated code](https://github.com/bufbuild/protobuf-es/tree/main/MANUAL.md#generated-code). - -Official documentation for the Protobuf-ES project can be found at [github.com/bufbuild/protobuf-es](https://github.com/bufbuild/protobuf-es). - -For more information on Buf, check out the official [Buf documentation](https://buf.build/docs/). - -## Examples - -A complete code example can be found in the **Protobuf-ES** repo [here](https://github.com/bufbuild/protobuf-es/tree/main/packages/protobuf-example). diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/clone.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/clone.d.ts deleted file mode 100644 index 1bb50b6..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/clone.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { MessageShape } from "./types.js"; -import { type DescMessage } from "./descriptors.js"; -/** - * Create a deep copy of a message, including extensions and unknown fields. - */ -export declare function clone(schema: Desc, message: MessageShape): MessageShape; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/clone.js b/node_modules/@bufbuild/protobuf/dist/cjs/clone.js deleted file mode 100644 index d263859..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/clone.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.clone = clone; -const descriptors_js_1 = require("./descriptors.js"); -const reflect_js_1 = require("./reflect/reflect.js"); -const guard_js_1 = require("./reflect/guard.js"); -/** - * Create a deep copy of a message, including extensions and unknown fields. - */ -function clone(schema, message) { - return cloneReflect((0, reflect_js_1.reflect)(schema, message)).message; -} -function cloneReflect(i) { - const o = (0, reflect_js_1.reflect)(i.desc); - for (const f of i.fields) { - if (!i.isSet(f)) { - continue; - } - switch (f.fieldKind) { - case "list": - const list = o.get(f); - for (const item of i.get(f)) { - list.add(cloneSingular(f, item)); - } - break; - case "map": - const map = o.get(f); - for (const entry of i.get(f).entries()) { - map.set(entry[0], cloneSingular(f, entry[1])); - } - break; - default: { - o.set(f, cloneSingular(f, i.get(f))); - break; - } - } - } - const unknown = i.getUnknown(); - if (unknown && unknown.length > 0) { - o.setUnknown([...unknown]); - } - return o; -} -function cloneSingular(field, value) { - if (field.message !== undefined && (0, guard_js_1.isReflectMessage)(value)) { - return cloneReflect(value); - } - if (field.scalar == descriptors_js_1.ScalarType.BYTES && value instanceof Uint8Array) { - // @ts-expect-error T cannot extend Uint8Array in practice - return value.slice(); - } - return value; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/enum.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/enum.d.ts deleted file mode 100644 index 8f5c83a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/enum.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { DescFile } from "../descriptors.js"; -import type { GenEnum } from "./types.js"; -import type { JsonValue } from "../json-value.js"; -export { tsEnum } from "../codegenv2/enum.js"; -/** - * Hydrate an enum descriptor. - * - * @private - */ -export declare function enumDesc(file: DescFile, path: number, ...paths: number[]): GenEnum; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/enum.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/enum.js deleted file mode 100644 index 853ae9f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/enum.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.tsEnum = void 0; -exports.enumDesc = enumDesc; -var enum_js_1 = require("../codegenv2/enum.js"); -Object.defineProperty(exports, "tsEnum", { enumerable: true, get: function () { return enum_js_1.tsEnum; } }); -/** - * Hydrate an enum descriptor. - * - * @private - */ -function enumDesc(file, path, ...paths) { - if (paths.length == 0) { - return file.enums[path]; - } - const e = paths.pop(); // we checked length above - return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]).nestedEnums[e]; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/extension.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/extension.d.ts deleted file mode 100644 index 7d6374b..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/extension.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Message } from "../types.js"; -import type { DescFile } from "../descriptors.js"; -import type { GenExtension } from "./types.js"; -/** - * Hydrate an extension descriptor. - * - * @private - */ -export declare function extDesc(file: DescFile, path: number, ...paths: number[]): GenExtension; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/extension.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/extension.js deleted file mode 100644 index 9d4947a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/extension.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.extDesc = extDesc; -/** - * Hydrate an extension descriptor. - * - * @private - */ -function extDesc(file, path, ...paths) { - if (paths.length == 0) { - return file.extensions[path]; - } - const e = paths.pop(); // we checked length above - return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]).nestedExtensions[e]; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/file.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/file.d.ts deleted file mode 100644 index 5c3a513..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/file.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { fileDesc } from "../codegenv2/file.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/file.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/file.js deleted file mode 100644 index b007f31..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/file.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fileDesc = void 0; -var file_js_1 = require("../codegenv2/file.js"); -Object.defineProperty(exports, "fileDesc", { enumerable: true, get: function () { return file_js_1.fileDesc; } }); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/index.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/index.d.ts deleted file mode 100644 index a3f2ade..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from "../codegenv2/boot.js"; -export * from "../codegenv2/embed.js"; -export * from "./enum.js"; -export * from "./extension.js"; -export * from "./file.js"; -export * from "./message.js"; -export * from "./service.js"; -export * from "./symbols.js"; -export * from "../codegenv2/scalar.js"; -export * from "./types.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/index.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/index.js deleted file mode 100644 index 1680a97..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/index.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("../codegenv2/boot.js"), exports); -__exportStar(require("../codegenv2/embed.js"), exports); -__exportStar(require("./enum.js"), exports); -__exportStar(require("./extension.js"), exports); -__exportStar(require("./file.js"), exports); -__exportStar(require("./message.js"), exports); -__exportStar(require("./service.js"), exports); -__exportStar(require("./symbols.js"), exports); -__exportStar(require("../codegenv2/scalar.js"), exports); -__exportStar(require("./types.js"), exports); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/message.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/message.d.ts deleted file mode 100644 index 46ad4ad..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/message.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { Message } from "../types.js"; -import type { DescFile } from "../descriptors.js"; -import type { GenMessage } from "./types.js"; -import type { JsonValue } from "../json-value.js"; -/** - * Hydrate a message descriptor. - * - * @private - */ -export declare function messageDesc(file: DescFile, path: number, ...paths: number[]): GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/message.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/message.js deleted file mode 100644 index e7219ed..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/message.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.messageDesc = messageDesc; -/** - * Hydrate a message descriptor. - * - * @private - */ -function messageDesc(file, path, ...paths) { - return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]); -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/service.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/service.d.ts deleted file mode 100644 index 5818f75..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/service.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { GenService, GenServiceMethods } from "./types.js"; -import type { DescFile } from "../descriptors.js"; -/** - * Hydrate a service descriptor. - * - * @private - */ -export declare function serviceDesc(file: DescFile, path: number, ...paths: number[]): GenService; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/service.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/service.js deleted file mode 100644 index 8fb7f8b..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/service.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.serviceDesc = serviceDesc; -/** - * Hydrate a service descriptor. - * - * @private - */ -function serviceDesc(file, path, ...paths) { - if (paths.length > 0) { - throw new Error(); - } - return file.services[path]; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/symbols.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/symbols.d.ts deleted file mode 100644 index fb9fd70..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/symbols.d.ts +++ /dev/null @@ -1,135 +0,0 @@ -/** - * @private - */ -export declare const packageName = "@bufbuild/protobuf"; -/** - * @private - */ -export declare const wktPublicImportPaths: Readonly>; -/** - * @private - */ -export declare const symbols: { - readonly codegen: { - readonly boot: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/boot.js"; - readonly from: string; - }; - readonly fileDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/file.js"; - readonly from: string; - }; - readonly enumDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/enum.js"; - readonly from: string; - }; - readonly extDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/extension.js"; - readonly from: string; - }; - readonly messageDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/message.js"; - readonly from: string; - }; - readonly serviceDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/service.js"; - readonly from: string; - }; - readonly tsEnum: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/enum.js"; - readonly from: string; - }; - readonly GenFile: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv1/types.js"; - readonly from: string; - }; - readonly GenEnum: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv1/types.js"; - readonly from: string; - }; - readonly GenExtension: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv1/types.js"; - readonly from: string; - }; - readonly GenMessage: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv1/types.js"; - readonly from: string; - }; - readonly GenService: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv1/types.js"; - readonly from: string; - }; - }; - readonly isMessage: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../is-message.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly Message: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../types.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly create: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../create.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly fromJson: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../from-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly fromJsonString: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../from-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly fromBinary: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../from-binary.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly toBinary: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../to-binary.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly toJson: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../to-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly toJsonString: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../to-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly protoInt64: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../proto-int64.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly JsonValue: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../json-value.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly JsonObject: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../json-value.js"; - readonly from: "@bufbuild/protobuf"; - }; -}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/symbols.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/symbols.js deleted file mode 100644 index 6491cc3..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/symbols.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.symbols = exports.wktPublicImportPaths = exports.packageName = void 0; -const symbols_js_1 = require("../codegenv2/symbols.js"); -/** - * @private - */ -exports.packageName = symbols_js_1.packageName; -/** - * @private - */ -exports.wktPublicImportPaths = symbols_js_1.wktPublicImportPaths; -/** - * @private - */ -// biome-ignore format: want this to read well -exports.symbols = Object.assign(Object.assign({}, symbols_js_1.symbols), { codegen: { - boot: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/boot.js", from: exports.packageName + "/codegenv1" }, - fileDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/file.js", from: exports.packageName + "/codegenv1" }, - enumDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/enum.js", from: exports.packageName + "/codegenv1" }, - extDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/extension.js", from: exports.packageName + "/codegenv1" }, - messageDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/message.js", from: exports.packageName + "/codegenv1" }, - serviceDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/service.js", from: exports.packageName + "/codegenv1" }, - tsEnum: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/enum.js", from: exports.packageName + "/codegenv1" }, - GenFile: { typeOnly: true, bootstrapWktFrom: "../../codegenv1/types.js", from: exports.packageName + "/codegenv1" }, - GenEnum: { typeOnly: true, bootstrapWktFrom: "../../codegenv1/types.js", from: exports.packageName + "/codegenv1" }, - GenExtension: { typeOnly: true, bootstrapWktFrom: "../../codegenv1/types.js", from: exports.packageName + "/codegenv1" }, - GenMessage: { typeOnly: true, bootstrapWktFrom: "../../codegenv1/types.js", from: exports.packageName + "/codegenv1" }, - GenService: { typeOnly: true, bootstrapWktFrom: "../../codegenv1/types.js", from: exports.packageName + "/codegenv1" }, - } }); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/types.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/types.d.ts deleted file mode 100644 index 8060fad..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/types.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -import type { Message } from "../types.js"; -import type { DescEnum, DescEnumValue, DescExtension, DescField, DescFile, DescMessage, DescMethod, DescService } from "../descriptors.js"; -import type { JsonValue } from "../json-value.js"; -/** - * Describes a protobuf source file. - * - * @private - */ -export type GenFile = DescFile; -/** - * Describes a message declaration in a protobuf source file. - * - * This type is identical to DescMessage, but carries additional type - * information. - * - * @private - */ -export type GenMessage = Omit & { - field: Record, DescField>; - typeName: RuntimeShape["$typeName"]; -} & brandv1; -/** - * Describes an enumeration in a protobuf source file. - * - * This type is identical to DescEnum, but carries additional type - * information. - * - * @private - */ -export type GenEnum = Omit & { - value: Record; -} & brandv1; -/** - * Describes an extension in a protobuf source file. - * - * This type is identical to DescExtension, but carries additional type - * information. - * - * @private - */ -export type GenExtension = DescExtension & brandv1; -/** - * Describes a service declaration in a protobuf source file. - * - * This type is identical to DescService, but carries additional type - * information. - * - * @private - */ -export type GenService = Omit & { - method: { - [K in keyof RuntimeShape]: RuntimeShape[K] & DescMethod; - }; -}; -/** - * @private - */ -export type GenServiceMethods = Record>; -declare class brandv1 { - protected v: "codegenv1"; - protected a: A | boolean; - protected b: B | boolean; -} -/** - * Union of the property names of all fields, including oneof members. - * For an anonymous message (no generated message shape), it's simply a string. - */ -type MessageFieldNames = Message extends T ? string : Exclude ? K : P]-?: true; -}, number | symbol>; -type Oneof = { - case: K | undefined; - value?: unknown; -}; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/types.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/types.js deleted file mode 100644 index 2972b99..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/types.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -class brandv1 { - constructor() { - this.v = "codegenv1"; - this.a = false; - this.b = false; - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/boot.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/boot.d.ts deleted file mode 100644 index 3edbb6c..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/boot.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -import type { DescriptorProto_ExtensionRange, FieldDescriptorProto_Label, FieldDescriptorProto_Type, FieldOptions_OptionRetention, FieldOptions_OptionTargetType, FieldOptions_EditionDefault, EnumValueDescriptorProto, FileDescriptorProto } from "../wkt/gen/google/protobuf/descriptor_pb.js"; -import type { DescFile } from "../descriptors.js"; -/** - * Hydrate a file descriptor for google/protobuf/descriptor.proto from a plain - * object. - * - * See createFileDescriptorProtoBoot() for details. - * - * @private - */ -export declare function boot(boot: FileDescriptorProtoBoot): DescFile; -/** - * An object literal for initializing the message google.protobuf.FileDescriptorProto - * for google/protobuf/descriptor.proto. - * - * See createFileDescriptorProtoBoot() for details. - * - * @private - */ -export type FileDescriptorProtoBoot = { - name: "google/protobuf/descriptor.proto"; - package: "google.protobuf"; - messageType: DescriptorProtoBoot[]; - enumType: EnumDescriptorProtoBoot[]; -}; -export type DescriptorProtoBoot = { - name: string; - field?: FieldDescriptorProtoBoot[]; - nestedType?: DescriptorProtoBoot[]; - enumType?: EnumDescriptorProtoBoot[]; - extensionRange?: Pick[]; -}; -export type FieldDescriptorProtoBoot = { - name: string; - number: number; - label?: FieldDescriptorProto_Label; - type: FieldDescriptorProto_Type; - typeName?: string; - extendee?: string; - defaultValue?: string; - options?: FieldOptionsBoot; -}; -export type FieldOptionsBoot = { - packed?: boolean; - deprecated?: boolean; - retention?: FieldOptions_OptionRetention; - targets?: FieldOptions_OptionTargetType[]; - editionDefaults?: FieldOptions_EditionDefaultBoot[]; -}; -export type FieldOptions_EditionDefaultBoot = Pick; -export type EnumDescriptorProtoBoot = { - name: string; - value: EnumValueDescriptorProtoBoot[]; -}; -export type EnumValueDescriptorProtoBoot = Pick; -/** - * Creates the message google.protobuf.FileDescriptorProto from an object literal. - * - * See createFileDescriptorProtoBoot() for details. - * - * @private - */ -export declare function bootFileDescriptorProto(init: FileDescriptorProtoBoot): FileDescriptorProto; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/boot.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/boot.js deleted file mode 100644 index 23ddeed..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/boot.js +++ /dev/null @@ -1,105 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.boot = boot; -exports.bootFileDescriptorProto = bootFileDescriptorProto; -const restore_json_names_js_1 = require("./restore-json-names.js"); -const registry_js_1 = require("../registry.js"); -/** - * Hydrate a file descriptor for google/protobuf/descriptor.proto from a plain - * object. - * - * See createFileDescriptorProtoBoot() for details. - * - * @private - */ -function boot(boot) { - const root = bootFileDescriptorProto(boot); - root.messageType.forEach(restore_json_names_js_1.restoreJsonNames); - const reg = (0, registry_js_1.createFileRegistry)(root, () => undefined); - // biome-ignore lint/style/noNonNullAssertion: non-null assertion because we just created the registry from the file we look up - return reg.getFile(root.name); -} -/** - * Creates the message google.protobuf.FileDescriptorProto from an object literal. - * - * See createFileDescriptorProtoBoot() for details. - * - * @private - */ -function bootFileDescriptorProto(init) { - const proto = Object.create({ - syntax: "", - edition: 0, - }); - return Object.assign(proto, Object.assign(Object.assign({ $typeName: "google.protobuf.FileDescriptorProto", dependency: [], publicDependency: [], weakDependency: [], optionDependency: [], service: [], extension: [] }, init), { messageType: init.messageType.map(bootDescriptorProto), enumType: init.enumType.map(bootEnumDescriptorProto) })); -} -function bootDescriptorProto(init) { - var _a, _b, _c, _d, _e, _f, _g, _h; - const proto = Object.create({ - visibility: 0, - }); - return Object.assign(proto, { - $typeName: "google.protobuf.DescriptorProto", - name: init.name, - field: (_b = (_a = init.field) === null || _a === void 0 ? void 0 : _a.map(bootFieldDescriptorProto)) !== null && _b !== void 0 ? _b : [], - extension: [], - nestedType: (_d = (_c = init.nestedType) === null || _c === void 0 ? void 0 : _c.map(bootDescriptorProto)) !== null && _d !== void 0 ? _d : [], - enumType: (_f = (_e = init.enumType) === null || _e === void 0 ? void 0 : _e.map(bootEnumDescriptorProto)) !== null && _f !== void 0 ? _f : [], - extensionRange: (_h = (_g = init.extensionRange) === null || _g === void 0 ? void 0 : _g.map((e) => (Object.assign({ $typeName: "google.protobuf.DescriptorProto.ExtensionRange" }, e)))) !== null && _h !== void 0 ? _h : [], - oneofDecl: [], - reservedRange: [], - reservedName: [], - }); -} -function bootFieldDescriptorProto(init) { - const proto = Object.create({ - label: 1, - typeName: "", - extendee: "", - defaultValue: "", - oneofIndex: 0, - jsonName: "", - proto3Optional: false, - }); - return Object.assign(proto, Object.assign(Object.assign({ $typeName: "google.protobuf.FieldDescriptorProto" }, init), { options: init.options ? bootFieldOptions(init.options) : undefined })); -} -function bootFieldOptions(init) { - var _a, _b, _c; - const proto = Object.create({ - ctype: 0, - packed: false, - jstype: 0, - lazy: false, - unverifiedLazy: false, - deprecated: false, - weak: false, - debugRedact: false, - retention: 0, - }); - return Object.assign(proto, Object.assign(Object.assign({ $typeName: "google.protobuf.FieldOptions" }, init), { targets: (_a = init.targets) !== null && _a !== void 0 ? _a : [], editionDefaults: (_c = (_b = init.editionDefaults) === null || _b === void 0 ? void 0 : _b.map((e) => (Object.assign({ $typeName: "google.protobuf.FieldOptions.EditionDefault" }, e)))) !== null && _c !== void 0 ? _c : [], uninterpretedOption: [] })); -} -function bootEnumDescriptorProto(init) { - const proto = Object.create({ - visibility: 0, - }); - return Object.assign(proto, { - $typeName: "google.protobuf.EnumDescriptorProto", - name: init.name, - reservedName: [], - reservedRange: [], - value: init.value.map((e) => (Object.assign({ $typeName: "google.protobuf.EnumValueDescriptorProto" }, e))), - }); -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/embed.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/embed.d.ts deleted file mode 100644 index a0feea1..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/embed.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import type { DescEnum, DescExtension, DescMessage, DescService } from "../descriptors.js"; -import { type FileDescriptorProto } from "../wkt/gen/google/protobuf/descriptor_pb.js"; -import type { FileDescriptorProtoBoot } from "./boot.js"; -type EmbedUnknown = { - bootable: false; - proto(): FileDescriptorProto; - base64(): string; -}; -type EmbedDescriptorProto = Omit & { - bootable: true; - boot(): FileDescriptorProtoBoot; -}; -/** - * Create necessary information to embed a file descriptor in - * generated code. - * - * @private - */ -export declare function embedFileDesc(file: FileDescriptorProto): EmbedUnknown | EmbedDescriptorProto; -/** - * Compute the path to a message, enumeration, extension, or service in a - * file descriptor. - * - * @private - */ -export declare function pathInFileDesc(desc: DescMessage | DescEnum | DescExtension | DescService): number[]; -/** - * The file descriptor for google/protobuf/descriptor.proto cannot be embedded - * in serialized form, since it is required to parse itself. - * - * This function takes an instance of the message, and returns a plain object - * that can be hydrated to the message again via bootFileDescriptorProto(). - * - * This function only works with a message google.protobuf.FileDescriptorProto - * for google/protobuf/descriptor.proto, and only supports features that are - * relevant for the specific use case. For example, it discards file options, - * reserved ranges and reserved names, and field options that are unused in - * descriptor.proto. - * - * @private - */ -export declare function createFileDescriptorProtoBoot(proto: FileDescriptorProto): FileDescriptorProtoBoot; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/embed.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/embed.js deleted file mode 100644 index 37336dd..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/embed.js +++ /dev/null @@ -1,244 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.embedFileDesc = embedFileDesc; -exports.pathInFileDesc = pathInFileDesc; -exports.createFileDescriptorProtoBoot = createFileDescriptorProtoBoot; -const names_js_1 = require("../reflect/names.js"); -const fields_js_1 = require("../fields.js"); -const base64_encoding_js_1 = require("../wire/base64-encoding.js"); -const to_binary_js_1 = require("../to-binary.js"); -const clone_js_1 = require("../clone.js"); -const descriptor_pb_js_1 = require("../wkt/gen/google/protobuf/descriptor_pb.js"); -/** - * Create necessary information to embed a file descriptor in - * generated code. - * - * @private - */ -function embedFileDesc(file) { - const embed = { - bootable: false, - proto() { - const stripped = (0, clone_js_1.clone)(descriptor_pb_js_1.FileDescriptorProtoSchema, file); - (0, fields_js_1.clearField)(stripped, descriptor_pb_js_1.FileDescriptorProtoSchema.field.dependency); - (0, fields_js_1.clearField)(stripped, descriptor_pb_js_1.FileDescriptorProtoSchema.field.sourceCodeInfo); - stripped.messageType.map(stripJsonNames); - return stripped; - }, - base64() { - const bytes = (0, to_binary_js_1.toBinary)(descriptor_pb_js_1.FileDescriptorProtoSchema, this.proto()); - return (0, base64_encoding_js_1.base64Encode)(bytes, "std_raw"); - }, - }; - return file.name == "google/protobuf/descriptor.proto" - ? Object.assign(Object.assign({}, embed), { bootable: true, boot() { - return createFileDescriptorProtoBoot(this.proto()); - } }) : embed; -} -function stripJsonNames(d) { - for (const f of d.field) { - if (f.jsonName === (0, names_js_1.protoCamelCase)(f.name)) { - (0, fields_js_1.clearField)(f, descriptor_pb_js_1.FieldDescriptorProtoSchema.field.jsonName); - } - } - for (const n of d.nestedType) { - stripJsonNames(n); - } -} -/** - * Compute the path to a message, enumeration, extension, or service in a - * file descriptor. - * - * @private - */ -function pathInFileDesc(desc) { - if (desc.kind == "service") { - return [desc.file.services.indexOf(desc)]; - } - const parent = desc.parent; - if (parent == undefined) { - switch (desc.kind) { - case "enum": - return [desc.file.enums.indexOf(desc)]; - case "message": - return [desc.file.messages.indexOf(desc)]; - case "extension": - return [desc.file.extensions.indexOf(desc)]; - } - } - function findPath(cur) { - const nested = []; - for (let parent = cur.parent; parent;) { - const idx = parent.nestedMessages.indexOf(cur); - nested.unshift(idx); - cur = parent; - parent = cur.parent; - } - nested.unshift(cur.file.messages.indexOf(cur)); - return nested; - } - const path = findPath(parent); - switch (desc.kind) { - case "extension": - return [...path, parent.nestedExtensions.indexOf(desc)]; - case "message": - return [...path, parent.nestedMessages.indexOf(desc)]; - case "enum": - return [...path, parent.nestedEnums.indexOf(desc)]; - } -} -/** - * The file descriptor for google/protobuf/descriptor.proto cannot be embedded - * in serialized form, since it is required to parse itself. - * - * This function takes an instance of the message, and returns a plain object - * that can be hydrated to the message again via bootFileDescriptorProto(). - * - * This function only works with a message google.protobuf.FileDescriptorProto - * for google/protobuf/descriptor.proto, and only supports features that are - * relevant for the specific use case. For example, it discards file options, - * reserved ranges and reserved names, and field options that are unused in - * descriptor.proto. - * - * @private - */ -function createFileDescriptorProtoBoot(proto) { - var _a; - assert(proto.name == "google/protobuf/descriptor.proto"); - assert(proto.package == "google.protobuf"); - assert(!proto.dependency.length); - assert(!proto.publicDependency.length); - assert(!proto.weakDependency.length); - assert(!proto.optionDependency.length); - assert(!proto.service.length); - assert(!proto.extension.length); - assert(proto.sourceCodeInfo === undefined); - assert(proto.syntax == "" || proto.syntax == "proto2"); - assert(!((_a = proto.options) === null || _a === void 0 ? void 0 : _a.features)); // we're dropping file options - assert(proto.edition === descriptor_pb_js_1.Edition.EDITION_UNKNOWN); - return { - name: proto.name, - package: proto.package, - messageType: proto.messageType.map(createDescriptorBoot), - enumType: proto.enumType.map(createEnumDescriptorBoot), - }; -} -function createDescriptorBoot(proto) { - assert(proto.extension.length == 0); - assert(!proto.oneofDecl.length); - assert(!proto.options); - assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.DescriptorProtoSchema.field.visibility)); - const b = { - name: proto.name, - }; - if (proto.field.length) { - b.field = proto.field.map(createFieldDescriptorBoot); - } - if (proto.nestedType.length) { - b.nestedType = proto.nestedType.map(createDescriptorBoot); - } - if (proto.enumType.length) { - b.enumType = proto.enumType.map(createEnumDescriptorBoot); - } - if (proto.extensionRange.length) { - b.extensionRange = proto.extensionRange.map((r) => { - assert(!r.options); - return { start: r.start, end: r.end }; - }); - } - return b; -} -function createFieldDescriptorBoot(proto) { - assert((0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldDescriptorProtoSchema.field.name)); - assert((0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldDescriptorProtoSchema.field.number)); - assert((0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldDescriptorProtoSchema.field.type)); - assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldDescriptorProtoSchema.field.oneofIndex)); - assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldDescriptorProtoSchema.field.jsonName) || - proto.jsonName === (0, names_js_1.protoCamelCase)(proto.name)); - const b = { - name: proto.name, - number: proto.number, - type: proto.type, - }; - if ((0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldDescriptorProtoSchema.field.label)) { - b.label = proto.label; - } - if ((0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldDescriptorProtoSchema.field.typeName)) { - b.typeName = proto.typeName; - } - if ((0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldDescriptorProtoSchema.field.extendee)) { - b.extendee = proto.extendee; - } - if ((0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldDescriptorProtoSchema.field.defaultValue)) { - b.defaultValue = proto.defaultValue; - } - if (proto.options) { - b.options = createFieldOptionsBoot(proto.options); - } - return b; -} -function createFieldOptionsBoot(proto) { - const b = {}; - assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldOptionsSchema.field.ctype)); - if ((0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldOptionsSchema.field.packed)) { - b.packed = proto.packed; - } - assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldOptionsSchema.field.jstype)); - assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldOptionsSchema.field.lazy)); - assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldOptionsSchema.field.unverifiedLazy)); - if ((0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldOptionsSchema.field.deprecated)) { - b.deprecated = proto.deprecated; - } - assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldOptionsSchema.field.weak)); - assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldOptionsSchema.field.debugRedact)); - if ((0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldOptionsSchema.field.retention)) { - b.retention = proto.retention; - } - if (proto.targets.length) { - b.targets = proto.targets; - } - if (proto.editionDefaults.length) { - b.editionDefaults = proto.editionDefaults.map((d) => ({ - value: d.value, - edition: d.edition, - })); - } - assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldOptionsSchema.field.features)); - assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.FieldOptionsSchema.field.uninterpretedOption)); - return b; -} -function createEnumDescriptorBoot(proto) { - assert(!proto.options); - assert(!(0, fields_js_1.isFieldSet)(proto, descriptor_pb_js_1.EnumDescriptorProtoSchema.field.visibility)); - return { - name: proto.name, - value: proto.value.map((v) => { - assert(!v.options); - return { - name: v.name, - number: v.number, - }; - }), - }; -} -/** - * Assert that condition is truthy or throw error. - */ -function assert(condition) { - if (!condition) { - throw new Error(); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/enum.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/enum.d.ts deleted file mode 100644 index e77b8fe..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/enum.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { DescEnum, DescFile } from "../descriptors.js"; -import type { GenEnum } from "./types.js"; -import type { JsonValue } from "../json-value.js"; -/** - * Hydrate an enum descriptor. - * - * @private - */ -export declare function enumDesc(file: DescFile, path: number, ...paths: number[]): GenEnum; -/** - * Construct a TypeScript enum object at runtime from a descriptor. - */ -export declare function tsEnum(desc: DescEnum): enumObject; -type enumObject = { - [key: number]: string; - [k: string]: number | string; -}; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/enum.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/enum.js deleted file mode 100644 index 515d1d1..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/enum.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.enumDesc = enumDesc; -exports.tsEnum = tsEnum; -/** - * Hydrate an enum descriptor. - * - * @private - */ -function enumDesc(file, path, ...paths) { - if (paths.length == 0) { - return file.enums[path]; - } - const e = paths.pop(); // we checked length above - return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]).nestedEnums[e]; -} -/** - * Construct a TypeScript enum object at runtime from a descriptor. - */ -function tsEnum(desc) { - const enumObject = {}; - for (const value of desc.values) { - enumObject[value.localName] = value.number; - enumObject[value.number] = value.localName; - } - return enumObject; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/extension.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/extension.d.ts deleted file mode 100644 index 7d6374b..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/extension.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Message } from "../types.js"; -import type { DescFile } from "../descriptors.js"; -import type { GenExtension } from "./types.js"; -/** - * Hydrate an extension descriptor. - * - * @private - */ -export declare function extDesc(file: DescFile, path: number, ...paths: number[]): GenExtension; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/extension.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/extension.js deleted file mode 100644 index 9d4947a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/extension.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.extDesc = extDesc; -/** - * Hydrate an extension descriptor. - * - * @private - */ -function extDesc(file, path, ...paths) { - if (paths.length == 0) { - return file.extensions[path]; - } - const e = paths.pop(); // we checked length above - return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]).nestedExtensions[e]; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/file.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/file.d.ts deleted file mode 100644 index 4d9853f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/file.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { DescFile } from "../descriptors.js"; -/** - * Hydrate a file descriptor. - * - * @private - */ -export declare function fileDesc(b64: string, imports?: DescFile[]): DescFile; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/file.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/file.js deleted file mode 100644 index d559c87..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/file.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fileDesc = fileDesc; -const base64_encoding_js_1 = require("../wire/base64-encoding.js"); -const descriptor_pb_js_1 = require("../wkt/gen/google/protobuf/descriptor_pb.js"); -const registry_js_1 = require("../registry.js"); -const restore_json_names_js_1 = require("./restore-json-names.js"); -const from_binary_js_1 = require("../from-binary.js"); -/** - * Hydrate a file descriptor. - * - * @private - */ -function fileDesc(b64, imports) { - var _a; - const root = (0, from_binary_js_1.fromBinary)(descriptor_pb_js_1.FileDescriptorProtoSchema, (0, base64_encoding_js_1.base64Decode)(b64)); - root.messageType.forEach(restore_json_names_js_1.restoreJsonNames); - root.dependency = (_a = imports === null || imports === void 0 ? void 0 : imports.map((f) => f.proto.name)) !== null && _a !== void 0 ? _a : []; - const reg = (0, registry_js_1.createFileRegistry)(root, (protoFileName) => imports === null || imports === void 0 ? void 0 : imports.find((f) => f.proto.name === protoFileName)); - // biome-ignore lint/style/noNonNullAssertion: non-null assertion because we just created the registry from the file we look up - return reg.getFile(root.name); -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/index.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/index.d.ts deleted file mode 100644 index b74cd36..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from "./boot.js"; -export * from "./embed.js"; -export * from "./enum.js"; -export * from "./extension.js"; -export * from "./file.js"; -export * from "./message.js"; -export * from "./service.js"; -export * from "./symbols.js"; -export * from "./scalar.js"; -export * from "./types.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/index.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/index.js deleted file mode 100644 index 05a2399..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/index.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./boot.js"), exports); -__exportStar(require("./embed.js"), exports); -__exportStar(require("./enum.js"), exports); -__exportStar(require("./extension.js"), exports); -__exportStar(require("./file.js"), exports); -__exportStar(require("./message.js"), exports); -__exportStar(require("./service.js"), exports); -__exportStar(require("./symbols.js"), exports); -__exportStar(require("./scalar.js"), exports); -__exportStar(require("./types.js"), exports); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/message.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/message.d.ts deleted file mode 100644 index f0f3977..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/message.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Message } from "../types.js"; -import type { DescFile } from "../descriptors.js"; -import type { GenMessage } from "./types.js"; -/** - * Hydrate a message descriptor. - * - * @private - */ -export declare function messageDesc(file: DescFile, path: number, ...paths: number[]): GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/message.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/message.js deleted file mode 100644 index e7219ed..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/message.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.messageDesc = messageDesc; -/** - * Hydrate a message descriptor. - * - * @private - */ -function messageDesc(file, path, ...paths) { - return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]); -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/restore-json-names.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/restore-json-names.d.ts deleted file mode 100644 index d83d94d..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/restore-json-names.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { DescriptorProto } from "../wkt/gen/google/protobuf/descriptor_pb.js"; -/** - * @private - */ -export declare function restoreJsonNames(message: DescriptorProto): void; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/restore-json-names.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/restore-json-names.js deleted file mode 100644 index f57747b..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/restore-json-names.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.restoreJsonNames = restoreJsonNames; -const names_js_1 = require("../reflect/names.js"); -const unsafe_js_1 = require("../reflect/unsafe.js"); -/** - * @private - */ -function restoreJsonNames(message) { - for (const f of message.field) { - if (!(0, unsafe_js_1.unsafeIsSetExplicit)(f, "jsonName")) { - f.jsonName = (0, names_js_1.protoCamelCase)(f.name); - } - } - message.nestedType.forEach(restoreJsonNames); -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/scalar.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/scalar.d.ts deleted file mode 100644 index 5c48fce..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/scalar.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ScalarType } from "../descriptors.js"; -/** - * Return the TypeScript type (as a string) for the given scalar type. - */ -export declare function scalarTypeScriptType(scalar: ScalarType, longAsString: boolean): "string" | "boolean" | "bigint" | "bigint | string" | "Uint8Array" | "number"; -/** - * Return the JSON type (as a string) for the given scalar type. - */ -export declare function scalarJsonType(scalar: ScalarType): "string" | "boolean" | "number" | `number | "NaN" | "Infinity" | "-Infinity"`; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/scalar.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/scalar.js deleted file mode 100644 index e60bd78..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/scalar.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scalarTypeScriptType = scalarTypeScriptType; -exports.scalarJsonType = scalarJsonType; -const descriptors_js_1 = require("../descriptors.js"); -/** - * Return the TypeScript type (as a string) for the given scalar type. - */ -function scalarTypeScriptType(scalar, longAsString) { - switch (scalar) { - case descriptors_js_1.ScalarType.STRING: - return "string"; - case descriptors_js_1.ScalarType.BOOL: - return "boolean"; - case descriptors_js_1.ScalarType.UINT64: - case descriptors_js_1.ScalarType.SFIXED64: - case descriptors_js_1.ScalarType.FIXED64: - case descriptors_js_1.ScalarType.SINT64: - case descriptors_js_1.ScalarType.INT64: - return longAsString ? "string" : "bigint"; - case descriptors_js_1.ScalarType.BYTES: - return "Uint8Array"; - default: - return "number"; - } -} -/** - * Return the JSON type (as a string) for the given scalar type. - */ -function scalarJsonType(scalar) { - switch (scalar) { - case descriptors_js_1.ScalarType.DOUBLE: - case descriptors_js_1.ScalarType.FLOAT: - return `number | "NaN" | "Infinity" | "-Infinity"`; - case descriptors_js_1.ScalarType.UINT64: - case descriptors_js_1.ScalarType.SFIXED64: - case descriptors_js_1.ScalarType.FIXED64: - case descriptors_js_1.ScalarType.SINT64: - case descriptors_js_1.ScalarType.INT64: - return "string"; - case descriptors_js_1.ScalarType.INT32: - case descriptors_js_1.ScalarType.FIXED32: - case descriptors_js_1.ScalarType.UINT32: - case descriptors_js_1.ScalarType.SFIXED32: - case descriptors_js_1.ScalarType.SINT32: - return "number"; - case descriptors_js_1.ScalarType.STRING: - return "string"; - case descriptors_js_1.ScalarType.BOOL: - return "boolean"; - case descriptors_js_1.ScalarType.BYTES: - return "string"; - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/service.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/service.d.ts deleted file mode 100644 index 5818f75..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/service.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { GenService, GenServiceMethods } from "./types.js"; -import type { DescFile } from "../descriptors.js"; -/** - * Hydrate a service descriptor. - * - * @private - */ -export declare function serviceDesc(file: DescFile, path: number, ...paths: number[]): GenService; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/service.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/service.js deleted file mode 100644 index 8fb7f8b..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/service.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.serviceDesc = serviceDesc; -/** - * Hydrate a service descriptor. - * - * @private - */ -function serviceDesc(file, path, ...paths) { - if (paths.length > 0) { - throw new Error(); - } - return file.services[path]; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/symbols.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/symbols.d.ts deleted file mode 100644 index f9d8502..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/symbols.d.ts +++ /dev/null @@ -1,135 +0,0 @@ -/** - * @private - */ -export declare const packageName = "@bufbuild/protobuf"; -/** - * @private - */ -export declare const wktPublicImportPaths: Readonly>; -/** - * @private - */ -export declare const symbols: { - readonly isMessage: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../is-message.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly Message: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../types.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly create: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../create.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly fromJson: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../from-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly fromJsonString: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../from-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly fromBinary: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../from-binary.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly toBinary: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../to-binary.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly toJson: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../to-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly toJsonString: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../to-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly protoInt64: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../proto-int64.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly JsonValue: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../json-value.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly JsonObject: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../json-value.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly codegen: { - readonly boot: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/boot.js"; - readonly from: string; - }; - readonly fileDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/file.js"; - readonly from: string; - }; - readonly enumDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/enum.js"; - readonly from: string; - }; - readonly extDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/extension.js"; - readonly from: string; - }; - readonly messageDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/message.js"; - readonly from: string; - }; - readonly serviceDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/service.js"; - readonly from: string; - }; - readonly tsEnum: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/enum.js"; - readonly from: string; - }; - readonly GenFile: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv2/types.js"; - readonly from: string; - }; - readonly GenEnum: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv2/types.js"; - readonly from: string; - }; - readonly GenExtension: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv2/types.js"; - readonly from: string; - }; - readonly GenMessage: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv2/types.js"; - readonly from: string; - }; - readonly GenService: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv2/types.js"; - readonly from: string; - }; - }; -}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/symbols.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/symbols.js deleted file mode 100644 index 9d3a410..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/symbols.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.symbols = exports.wktPublicImportPaths = exports.packageName = void 0; -/** - * @private - */ -exports.packageName = "@bufbuild/protobuf"; -/** - * @private - */ -exports.wktPublicImportPaths = { - "google/protobuf/compiler/plugin.proto": exports.packageName + "/wkt", - "google/protobuf/any.proto": exports.packageName + "/wkt", - "google/protobuf/api.proto": exports.packageName + "/wkt", - "google/protobuf/cpp_features.proto": exports.packageName + "/wkt", - "google/protobuf/descriptor.proto": exports.packageName + "/wkt", - "google/protobuf/duration.proto": exports.packageName + "/wkt", - "google/protobuf/empty.proto": exports.packageName + "/wkt", - "google/protobuf/field_mask.proto": exports.packageName + "/wkt", - "google/protobuf/go_features.proto": exports.packageName + "/wkt", - "google/protobuf/java_features.proto": exports.packageName + "/wkt", - "google/protobuf/source_context.proto": exports.packageName + "/wkt", - "google/protobuf/struct.proto": exports.packageName + "/wkt", - "google/protobuf/timestamp.proto": exports.packageName + "/wkt", - "google/protobuf/type.proto": exports.packageName + "/wkt", - "google/protobuf/wrappers.proto": exports.packageName + "/wkt", -}; -/** - * @private - */ -// biome-ignore format: want this to read well -exports.symbols = { - isMessage: { typeOnly: false, bootstrapWktFrom: "../../is-message.js", from: exports.packageName }, - Message: { typeOnly: true, bootstrapWktFrom: "../../types.js", from: exports.packageName }, - create: { typeOnly: false, bootstrapWktFrom: "../../create.js", from: exports.packageName }, - fromJson: { typeOnly: false, bootstrapWktFrom: "../../from-json.js", from: exports.packageName }, - fromJsonString: { typeOnly: false, bootstrapWktFrom: "../../from-json.js", from: exports.packageName }, - fromBinary: { typeOnly: false, bootstrapWktFrom: "../../from-binary.js", from: exports.packageName }, - toBinary: { typeOnly: false, bootstrapWktFrom: "../../to-binary.js", from: exports.packageName }, - toJson: { typeOnly: false, bootstrapWktFrom: "../../to-json.js", from: exports.packageName }, - toJsonString: { typeOnly: false, bootstrapWktFrom: "../../to-json.js", from: exports.packageName }, - protoInt64: { typeOnly: false, bootstrapWktFrom: "../../proto-int64.js", from: exports.packageName }, - JsonValue: { typeOnly: true, bootstrapWktFrom: "../../json-value.js", from: exports.packageName }, - JsonObject: { typeOnly: true, bootstrapWktFrom: "../../json-value.js", from: exports.packageName }, - codegen: { - boot: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/boot.js", from: exports.packageName + "/codegenv2" }, - fileDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/file.js", from: exports.packageName + "/codegenv2" }, - enumDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/enum.js", from: exports.packageName + "/codegenv2" }, - extDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/extension.js", from: exports.packageName + "/codegenv2" }, - messageDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/message.js", from: exports.packageName + "/codegenv2" }, - serviceDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/service.js", from: exports.packageName + "/codegenv2" }, - tsEnum: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/enum.js", from: exports.packageName + "/codegenv2" }, - GenFile: { typeOnly: true, bootstrapWktFrom: "../../codegenv2/types.js", from: exports.packageName + "/codegenv2" }, - GenEnum: { typeOnly: true, bootstrapWktFrom: "../../codegenv2/types.js", from: exports.packageName + "/codegenv2" }, - GenExtension: { typeOnly: true, bootstrapWktFrom: "../../codegenv2/types.js", from: exports.packageName + "/codegenv2" }, - GenMessage: { typeOnly: true, bootstrapWktFrom: "../../codegenv2/types.js", from: exports.packageName + "/codegenv2" }, - GenService: { typeOnly: true, bootstrapWktFrom: "../../codegenv2/types.js", from: exports.packageName + "/codegenv2" }, - }, -}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/types.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/types.d.ts deleted file mode 100644 index 286d368..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/types.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -import type { Message } from "../types.js"; -import type { DescEnum, DescEnumValue, DescExtension, DescField, DescFile, DescMessage, DescMethod, DescService } from "../descriptors.js"; -import type { JsonValue } from "../json-value.js"; -/** - * Describes a protobuf source file. - * - * @private - */ -export type GenFile = DescFile; -/** - * Describes a message declaration in a protobuf source file. - * - * This type is identical to DescMessage, but carries additional type - * information. - * - * @private - */ -export type GenMessage = Omit & { - field: Record, DescField>; - typeName: RuntimeShape["$typeName"]; -} & brandv2; -/** - * Describes an enumeration in a protobuf source file. - * - * This type is identical to DescEnum, but carries additional type - * information. - * - * @private - */ -export type GenEnum = Omit & { - value: Record; -} & brandv2; -/** - * Describes an extension in a protobuf source file. - * - * This type is identical to DescExtension, but carries additional type - * information. - * - * @private - */ -export type GenExtension = DescExtension & brandv2; -/** - * Describes a service declaration in a protobuf source file. - * - * This type is identical to DescService, but carries additional type - * information. - * - * @private - */ -export type GenService = Omit & { - method: { - [K in keyof RuntimeShape]: RuntimeShape[K] & DescMethod; - }; -}; -/** - * @private - */ -export type GenServiceMethods = Record>; -declare class brandv2 { - protected v: "codegenv2"; - protected a: A | boolean; - protected b: B | boolean; -} -/** - * Union of the property names of all fields, including oneof members. - * For an anonymous message (no generated message shape), it's simply a string. - */ -type MessageFieldNames = Message extends T ? string : Exclude ? K : P]-?: true; -}, number | symbol>; -type Oneof = { - case: K | undefined; - value?: unknown; -}; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/types.js b/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/types.js deleted file mode 100644 index cc8767f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/types.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -class brandv2 { - constructor() { - this.v = "codegenv2"; - this.a = false; - this.b = false; - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/create.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/create.d.ts deleted file mode 100644 index 0f86a36..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/create.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { type DescMessage } from "./descriptors.js"; -import type { MessageInitShape, MessageShape } from "./types.js"; -/** - * Create a new message instance. - * - * The second argument is an optional initializer object, where all fields are - * optional. - */ -export declare function create(schema: Desc, init?: MessageInitShape): MessageShape; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/create.js b/node_modules/@bufbuild/protobuf/dist/cjs/create.js deleted file mode 100644 index e2416b8..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/create.js +++ /dev/null @@ -1,259 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.create = create; -const is_message_js_1 = require("./is-message.js"); -const descriptors_js_1 = require("./descriptors.js"); -const scalar_js_1 = require("./reflect/scalar.js"); -const guard_js_1 = require("./reflect/guard.js"); -const unsafe_js_1 = require("./reflect/unsafe.js"); -const wrappers_js_1 = require("./wkt/wrappers.js"); -// bootstrap-inject google.protobuf.Edition.EDITION_PROTO3: const $name: Edition.$localName = $number; -const EDITION_PROTO3 = 999; -// bootstrap-inject google.protobuf.Edition.EDITION_PROTO2: const $name: Edition.$localName = $number; -const EDITION_PROTO2 = 998; -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.IMPLICIT: const $name: FeatureSet_FieldPresence.$localName = $number; -const IMPLICIT = 2; -/** - * Create a new message instance. - * - * The second argument is an optional initializer object, where all fields are - * optional. - */ -function create(schema, init) { - if ((0, is_message_js_1.isMessage)(init, schema)) { - return init; - } - const message = createZeroMessage(schema); - if (init !== undefined) { - initMessage(schema, message, init); - } - return message; -} -/** - * Sets field values from a MessageInitShape on a zero message. - */ -function initMessage(messageDesc, message, init) { - for (const member of messageDesc.members) { - let value = init[member.localName]; - if (value == null) { - // intentionally ignore undefined and null - continue; - } - let field; - if (member.kind == "oneof") { - const oneofField = (0, unsafe_js_1.unsafeOneofCase)(init, member); - if (!oneofField) { - continue; - } - field = oneofField; - value = (0, unsafe_js_1.unsafeGet)(init, oneofField); - } - else { - field = member; - } - switch (field.fieldKind) { - case "message": - value = toMessage(field, value); - break; - case "scalar": - value = initScalar(field, value); - break; - case "list": - value = initList(field, value); - break; - case "map": - value = initMap(field, value); - break; - } - (0, unsafe_js_1.unsafeSet)(message, field, value); - } - return message; -} -function initScalar(field, value) { - if (field.scalar == descriptors_js_1.ScalarType.BYTES) { - return toU8Arr(value); - } - return value; -} -function initMap(field, value) { - if ((0, guard_js_1.isObject)(value)) { - if (field.scalar == descriptors_js_1.ScalarType.BYTES) { - return convertObjectValues(value, toU8Arr); - } - if (field.mapKind == "message") { - return convertObjectValues(value, (val) => toMessage(field, val)); - } - } - return value; -} -function initList(field, value) { - if (Array.isArray(value)) { - if (field.scalar == descriptors_js_1.ScalarType.BYTES) { - return value.map(toU8Arr); - } - if (field.listKind == "message") { - return value.map((item) => toMessage(field, item)); - } - } - return value; -} -function toMessage(field, value) { - if (field.fieldKind == "message" && - !field.oneof && - (0, wrappers_js_1.isWrapperDesc)(field.message)) { - // Types from google/protobuf/wrappers.proto are unwrapped when used in - // a singular field that is not part of a oneof group. - return initScalar(field.message.fields[0], value); - } - if ((0, guard_js_1.isObject)(value)) { - if (field.message.typeName == "google.protobuf.Struct" && - field.parent.typeName !== "google.protobuf.Value") { - // google.protobuf.Struct is represented with JsonObject when used in a - // field, except when used in google.protobuf.Value. - return value; - } - if (!(0, is_message_js_1.isMessage)(value, field.message)) { - return create(field.message, value); - } - } - return value; -} -// converts any ArrayLike to Uint8Array if necessary. -function toU8Arr(value) { - return Array.isArray(value) ? new Uint8Array(value) : value; -} -function convertObjectValues(obj, fn) { - const ret = {}; - for (const entry of Object.entries(obj)) { - ret[entry[0]] = fn(entry[1]); - } - return ret; -} -const tokenZeroMessageField = Symbol(); -const messagePrototypes = new WeakMap(); -/** - * Create a zero message. - */ -function createZeroMessage(desc) { - let msg; - if (!needsPrototypeChain(desc)) { - msg = { - $typeName: desc.typeName, - }; - for (const member of desc.members) { - if (member.kind == "oneof" || member.presence == IMPLICIT) { - msg[member.localName] = createZeroField(member); - } - } - } - else { - // Support default values and track presence via the prototype chain - const cached = messagePrototypes.get(desc); - let prototype; - let members; - if (cached) { - ({ prototype, members } = cached); - } - else { - prototype = {}; - members = new Set(); - for (const member of desc.members) { - if (member.kind == "oneof") { - // we can only put immutable values on the prototype, - // oneof ADTs are mutable - continue; - } - if (member.fieldKind != "scalar" && member.fieldKind != "enum") { - // only scalar and enum values are immutable, map, list, and message - // are not - continue; - } - if (member.presence == IMPLICIT) { - // implicit presence tracks field presence by zero values - e.g. 0, false, "", are unset, 1, true, "x" are set. - // message, map, list fields are mutable, and also have IMPLICIT presence. - continue; - } - members.add(member); - prototype[member.localName] = createZeroField(member); - } - messagePrototypes.set(desc, { prototype, members }); - } - msg = Object.create(prototype); - msg.$typeName = desc.typeName; - for (const member of desc.members) { - if (members.has(member)) { - continue; - } - if (member.kind == "field") { - if (member.fieldKind == "message") { - continue; - } - if (member.fieldKind == "scalar" || member.fieldKind == "enum") { - if (member.presence != IMPLICIT) { - continue; - } - } - } - msg[member.localName] = createZeroField(member); - } - } - return msg; -} -/** - * Do we need the prototype chain to track field presence? - */ -function needsPrototypeChain(desc) { - switch (desc.file.edition) { - case EDITION_PROTO3: - // proto3 always uses implicit presence, we never need the prototype chain. - return false; - case EDITION_PROTO2: - // proto2 never uses implicit presence, we always need the prototype chain. - return true; - default: - // If a message uses scalar or enum fields with explicit presence, we need - // the prototype chain to track presence. This rule does not apply to fields - // in a oneof group - they use a different mechanism to track presence. - return desc.fields.some((f) => f.presence != IMPLICIT && f.fieldKind != "message" && !f.oneof); - } -} -/** - * Returns a zero value for oneof groups, and for every field kind except - * messages. Scalar and enum fields can have default values. - */ -function createZeroField(field) { - if (field.kind == "oneof") { - return { case: undefined }; - } - if (field.fieldKind == "list") { - return []; - } - if (field.fieldKind == "map") { - return {}; // Object.create(null) would be desirable here, but is unsupported by react https://react.dev/reference/react/use-server#serializable-parameters-and-return-values - } - if (field.fieldKind == "message") { - return tokenZeroMessageField; - } - const defaultValue = field.getDefaultValue(); - if (defaultValue !== undefined) { - return field.fieldKind == "scalar" && field.longAsString - ? defaultValue.toString() - : defaultValue; - } - return field.fieldKind == "scalar" - ? (0, scalar_js_1.scalarZeroValue)(field.scalar, field.longAsString) - : field.enum.values[0].number; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/descriptors.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/descriptors.d.ts deleted file mode 100644 index b3fe9b5..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/descriptors.d.ts +++ /dev/null @@ -1,627 +0,0 @@ -import type { DescriptorProto, Edition, EnumDescriptorProto, EnumValueDescriptorProto, FeatureSet_FieldPresence, FieldDescriptorProto, FileDescriptorProto, MethodDescriptorProto, MethodOptions_IdempotencyLevel, OneofDescriptorProto, ServiceDescriptorProto } from "./wkt/gen/google/protobuf/descriptor_pb.js"; -import type { ScalarValue } from "./reflect/scalar.js"; -export type SupportedEdition = Extract; -type SupportedFieldPresence = Extract; -/** - * Scalar value types. This is a subset of field types declared by protobuf - * enum google.protobuf.FieldDescriptorProto.Type The types GROUP and MESSAGE - * are omitted, but the numerical values are identical. - */ -export declare enum ScalarType { - DOUBLE = 1, - FLOAT = 2, - INT64 = 3, - UINT64 = 4, - INT32 = 5, - FIXED64 = 6, - FIXED32 = 7, - BOOL = 8, - STRING = 9, - BYTES = 12, - UINT32 = 13, - SFIXED32 = 15, - SFIXED64 = 16, - SINT32 = 17,// Uses ZigZag encoding. - SINT64 = 18 -} -/** - * A union of all descriptors, discriminated by a `kind` property. - */ -export type AnyDesc = DescFile | DescEnum | DescEnumValue | DescMessage | DescField | DescExtension | DescOneof | DescService | DescMethod; -/** - * Describes a protobuf source file. - */ -export interface DescFile { - readonly kind: "file"; - /** - * The edition of the protobuf file. Will be EDITION_PROTO2 for syntax="proto2", - * EDITION_PROTO3 for syntax="proto3"; - */ - readonly edition: SupportedEdition; - /** - * The name of the file, excluding the .proto suffix. - * For a protobuf file `foo/bar.proto`, this is `foo/bar`. - */ - readonly name: string; - /** - * Files imported by this file. - */ - readonly dependencies: DescFile[]; - /** - * Top-level enumerations declared in this file. - * Note that more enumerations might be declared within message declarations. - */ - readonly enums: DescEnum[]; - /** - * Top-level messages declared in this file. - * Note that more messages might be declared within message declarations. - */ - readonly messages: DescMessage[]; - /** - * Top-level extensions declared in this file. - * Note that more extensions might be declared within message declarations. - */ - readonly extensions: DescExtension[]; - /** - * Services declared in this file. - */ - readonly services: DescService[]; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: FileDescriptorProto; - toString(): string; -} -/** - * Describes an enumeration in a protobuf source file. - */ -export interface DescEnum { - readonly kind: "enum"; - /** - * The fully qualified name of the enumeration. (We omit the leading dot.) - */ - readonly typeName: string; - /** - * The name of the enumeration, as declared in the protobuf source. - */ - readonly name: string; - /** - * The file this enumeration was declared in. - */ - readonly file: DescFile; - /** - * The parent message, if this enumeration was declared inside a message declaration. - */ - readonly parent: DescMessage | undefined; - /** - * Enumerations can be open or closed. - * See https://protobuf.dev/programming-guides/enum/ - */ - readonly open: boolean; - /** - * Values declared for this enumeration. - */ - readonly values: DescEnumValue[]; - /** - * All values of this enum by their number. - */ - readonly value: Record; - /** - * A prefix shared by all enum values. - * For example, `my_enum_` for `enum MyEnum {MY_ENUM_A=0; MY_ENUM_B=1;}` - */ - readonly sharedPrefix?: string; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: EnumDescriptorProto; - toString(): string; -} -/** - * Describes an individual value of an enumeration in a protobuf source file. - */ -export interface DescEnumValue { - readonly kind: "enum_value"; - /** - * The name of the enumeration value, as specified in the protobuf source. - */ - readonly name: string; - /** - * A safe and idiomatic name for the value in a TypeScript enum. - */ - readonly localName: string; - /** - * The enumeration this value belongs to. - */ - readonly parent: DescEnum; - /** - * The numeric enumeration value, as specified in the protobuf source. - */ - readonly number: number; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: EnumValueDescriptorProto; - toString(): string; -} -/** - * Describes a message declaration in a protobuf source file. - */ -export interface DescMessage { - readonly kind: "message"; - /** - * The fully qualified name of the message. (We omit the leading dot.) - */ - readonly typeName: string; - /** - * The name of the message, as specified in the protobuf source. - */ - readonly name: string; - /** - * The file this message was declared in. - */ - readonly file: DescFile; - /** - * The parent message, if this message was declared inside a message declaration. - */ - readonly parent: DescMessage | undefined; - /** - * Fields declared for this message, including fields declared in a oneof - * group. - */ - readonly fields: DescField[]; - /** - * All fields of this message by their "localName". - */ - readonly field: Record; - /** - * Oneof groups declared for this message. - * This does not include synthetic oneofs for proto3 optionals. - */ - readonly oneofs: DescOneof[]; - /** - * Fields and oneof groups for this message, ordered by their appearance in the - * protobuf source. - */ - readonly members: (DescField | DescOneof)[]; - /** - * Enumerations declared within the message, if any. - */ - readonly nestedEnums: DescEnum[]; - /** - * Messages declared within the message, if any. - * This does not include synthetic messages like map entries. - */ - readonly nestedMessages: DescMessage[]; - /** - * Extensions declared within the message, if any. - */ - readonly nestedExtensions: DescExtension[]; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: DescriptorProto; - toString(): string; -} -/** - * Describes a field declaration in a protobuf source file. - */ -export type DescField = (descFieldScalar & descFieldCommon) | (descFieldList & descFieldCommon) | (descFieldMessage & descFieldCommon) | (descFieldEnum & descFieldCommon) | (descFieldMap & descFieldCommon); -type descFieldCommon = descFieldAndExtensionShared & { - readonly kind: "field"; - /** - * The message this field is declared on. - */ - readonly parent: DescMessage; - /** - * A safe and idiomatic name for the field as a property in ECMAScript. - */ - readonly localName: string; -}; -/** - * Describes an extension in a protobuf source file. - */ -export type DescExtension = (Omit & descExtensionCommon) | (Omit & descExtensionCommon) | (Omit & descExtensionCommon) | (descFieldList & descExtensionCommon); -type descExtensionCommon = descFieldAndExtensionShared & { - readonly kind: "extension"; - /** - * The fully qualified name of the extension. - */ - readonly typeName: string; - /** - * The file this extension was declared in. - */ - readonly file: DescFile; - /** - * The parent message, if this extension was declared inside a message declaration. - */ - readonly parent: DescMessage | undefined; - /** - * The message that this extension extends. - */ - readonly extendee: DescMessage; - /** - * The `oneof` group this field belongs to, if any. - */ - readonly oneof: undefined; -}; -interface descFieldAndExtensionShared { - /** - * The field name, as specified in the protobuf source - */ - readonly name: string; - /** - * The field number, as specified in the protobuf source. - */ - readonly number: number; - /** - * The field name in JSON. - */ - readonly jsonName: string; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * Presence of the field. - * See https://protobuf.dev/programming-guides/field_presence/ - */ - readonly presence: SupportedFieldPresence; - /** - * The compiler-generated descriptor. - */ - readonly proto: FieldDescriptorProto; - /** - * Get the edition features for this protobuf element. - */ - toString(): string; -} -type descFieldSingularCommon = { - /** - * The `oneof` group this field belongs to, if any. - * - * This does not include synthetic oneofs for proto3 optionals. - */ - readonly oneof: DescOneof | undefined; -}; -type descFieldScalar = T extends T ? { - readonly fieldKind: "scalar"; - /** - * Scalar type, if it is a scalar field. - */ - readonly scalar: T; - /** - * By default, 64-bit integral types (int64, uint64, sint64, fixed64, - * sfixed64) are represented with BigInt. - * - * If the field option `jstype = JS_STRING` is set, this property - * is true, and 64-bit integral types are represented with String. - */ - readonly longAsString: boolean; - /** - * The message type, if it is a message field. - */ - readonly message: undefined; - /** - * The enum type, if it is an enum field. - */ - readonly enum: undefined; - /** - * Return the default value specified in the protobuf source. - */ - getDefaultValue(): ScalarValue | undefined; -} & descFieldSingularCommon : never; -type descFieldMessage = { - readonly fieldKind: "message"; - /** - * Scalar type, if it is a scalar field. - */ - readonly scalar: undefined; - /** - * The message type, if it is a message field. - */ - readonly message: DescMessage; - /** - * Encode the message delimited (a.k.a. proto2 group encoding), or - * length-prefixed? - */ - readonly delimitedEncoding: boolean; - /** - * The enum type, if it is an enum field. - */ - readonly enum: undefined; - /** - * Return the default value specified in the protobuf source. - */ - getDefaultValue(): undefined; -} & descFieldSingularCommon; -type descFieldEnum = { - readonly fieldKind: "enum"; - /** - * Scalar type, if it is a scalar field. - */ - readonly scalar: undefined; - /** - * The message type, if it is a message field. - */ - readonly message: undefined; - /** - * The enum type, if it is an enum field. - */ - readonly enum: DescEnum; - /** - * Return the default value specified in the protobuf source. - */ - getDefaultValue(): number | undefined; -} & descFieldSingularCommon; -type descFieldList = (descFieldListScalar & descFieldListCommon) | (descFieldListEnum & descFieldListCommon) | (descFieldListMessage & descFieldListCommon); -type descFieldListCommon = { - readonly fieldKind: "list"; - /** - * Pack this repeated field? Only valid for repeated enum fields, and - * for repeated scalar fields except BYTES and STRING. - */ - readonly packed: boolean; - /** - * The `oneof` group this field belongs to, if any. - */ - readonly oneof: undefined; -}; -type descFieldListScalar = T extends T ? { - readonly listKind: "scalar"; - /** - * The enum list element type. - */ - readonly enum: undefined; - /** - * The message list element type. - */ - readonly message: undefined; - /** - * Scalar list element type. - */ - readonly scalar: T; - /** - * By default, 64-bit integral types (int64, uint64, sint64, fixed64, - * sfixed64) are represented with BigInt. - * - * If the field option `jstype = JS_STRING` is set, this property - * is true, and 64-bit integral types are represented with String. - */ - readonly longAsString: boolean; -} : never; -type descFieldListEnum = { - readonly listKind: "enum"; - /** - * The enum list element type. - */ - readonly enum: DescEnum; - /** - * The message list element type. - */ - readonly message: undefined; - /** - * Scalar list element type. - */ - readonly scalar: undefined; -}; -type descFieldListMessage = { - readonly listKind: "message"; - /** - * The enum list element type. - */ - readonly enum: undefined; - /** - * The message list element type. - */ - readonly message: DescMessage; - /** - * Scalar list element type. - */ - readonly scalar: undefined; - /** - * Encode the message delimited (a.k.a. proto2 group encoding), or - * length-prefixed? - */ - readonly delimitedEncoding: boolean; -}; -type descFieldMap = (descFieldMapScalar & descFieldMapCommon) | (descFieldMapEnum & descFieldMapCommon) | (descFieldMapMessage & descFieldMapCommon); -type descFieldMapCommon = T extends Exclude ? { - readonly fieldKind: "map"; - /** - * The scalar map key type. - */ - readonly mapKey: T; - /** - * The `oneof` group this field belongs to, if any. - */ - readonly oneof: undefined; - /** - * Encode the map entry message delimited (a.k.a. proto2 group encoding), - * or length-prefixed? As of Edition 2023, this is always false for map fields, - * and also applies to map values, if they are messages. - */ - readonly delimitedEncoding: false; -} : never; -type descFieldMapScalar = T extends T ? { - readonly mapKind: "scalar"; - /** - * The enum map value type. - */ - readonly enum: undefined; - /** - * The message map value type. - */ - readonly message: undefined; - /** - * Scalar map value type. - */ - readonly scalar: T; -} : never; -type descFieldMapEnum = { - readonly mapKind: "enum"; - /** - * The enum map value type. - */ - readonly enum: DescEnum; - /** - * The message map value type. - */ - readonly message: undefined; - /** - * Scalar map value type. - */ - readonly scalar: undefined; -}; -type descFieldMapMessage = { - readonly mapKind: "message"; - /** - * The enum map value type. - */ - readonly enum: undefined; - /** - * The message map value type. - */ - readonly message: DescMessage; - /** - * Scalar map value type. - */ - readonly scalar: undefined; -}; -/** - * Describes a oneof group in a protobuf source file. - */ -export interface DescOneof { - readonly kind: "oneof"; - /** - * The name of the oneof group, as specified in the protobuf source. - */ - readonly name: string; - /** - * A safe and idiomatic name for the oneof group as a property in ECMAScript. - */ - readonly localName: string; - /** - * The message this oneof group was declared in. - */ - readonly parent: DescMessage; - /** - * The fields declared in this oneof group. - */ - readonly fields: DescField[]; - /** - * Marked as deprecated in the protobuf source. - * Note that oneof groups cannot be marked as deprecated, this property - * only exists for consistency and will always be false. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: OneofDescriptorProto; - toString(): string; -} -/** - * Describes a service declaration in a protobuf source file. - */ -export interface DescService { - readonly kind: "service"; - /** - * The fully qualified name of the service. (We omit the leading dot.) - */ - readonly typeName: string; - /** - * The name of the service, as specified in the protobuf source. - */ - readonly name: string; - /** - * The file this service was declared in. - */ - readonly file: DescFile; - /** - * The RPCs this service declares. - */ - readonly methods: DescMethod[]; - /** - * All methods of this service by their "localName". - */ - readonly method: Record; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: ServiceDescriptorProto; - toString(): string; -} -/** - * Describes an RPC declaration in a protobuf source file. - */ -export interface DescMethod { - readonly kind: "rpc"; - /** - * The name of the RPC, as specified in the protobuf source. - */ - readonly name: string; - /** - * A safe and idiomatic name for the RPC as a method in ECMAScript. - */ - readonly localName: string; - /** - * The parent service. - */ - readonly parent: DescService; - /** - * One of the four available method types. - */ - readonly methodKind: "unary" | "server_streaming" | "client_streaming" | "bidi_streaming"; - /** - * The message type for requests. - */ - readonly input: DescMessage; - /** - * The message type for responses. - */ - readonly output: DescMessage; - /** - * The idempotency level declared in the protobuf source, if any. - */ - readonly idempotency: MethodOptions_IdempotencyLevel; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: MethodDescriptorProto; - toString(): string; -} -/** - * Comments on an element in a protobuf source file. - */ -export interface DescComments { - readonly leadingDetached: readonly string[]; - readonly leading?: string; - readonly trailing?: string; - readonly sourcePath: readonly number[]; -} -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/descriptors.js b/node_modules/@bufbuild/protobuf/dist/cjs/descriptors.js deleted file mode 100644 index c3d72ee..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/descriptors.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ScalarType = void 0; -/** - * Scalar value types. This is a subset of field types declared by protobuf - * enum google.protobuf.FieldDescriptorProto.Type The types GROUP and MESSAGE - * are omitted, but the numerical values are identical. - */ -var ScalarType; -(function (ScalarType) { - // 0 is reserved for errors. - // Order is weird for historical reasons. - ScalarType[ScalarType["DOUBLE"] = 1] = "DOUBLE"; - ScalarType[ScalarType["FLOAT"] = 2] = "FLOAT"; - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - // negative values are likely. - ScalarType[ScalarType["INT64"] = 3] = "INT64"; - ScalarType[ScalarType["UINT64"] = 4] = "UINT64"; - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - // negative values are likely. - ScalarType[ScalarType["INT32"] = 5] = "INT32"; - ScalarType[ScalarType["FIXED64"] = 6] = "FIXED64"; - ScalarType[ScalarType["FIXED32"] = 7] = "FIXED32"; - ScalarType[ScalarType["BOOL"] = 8] = "BOOL"; - ScalarType[ScalarType["STRING"] = 9] = "STRING"; - // Tag-delimited aggregate. - // Group type is deprecated and not supported in proto3. However, Proto3 - // implementations should still be able to parse the group wire format and - // treat group fields as unknown fields. - // TYPE_GROUP = 10, - // TYPE_MESSAGE = 11, // Length-delimited aggregate. - // New in version 2. - ScalarType[ScalarType["BYTES"] = 12] = "BYTES"; - ScalarType[ScalarType["UINT32"] = 13] = "UINT32"; - // TYPE_ENUM = 14, - ScalarType[ScalarType["SFIXED32"] = 15] = "SFIXED32"; - ScalarType[ScalarType["SFIXED64"] = 16] = "SFIXED64"; - ScalarType[ScalarType["SINT32"] = 17] = "SINT32"; - ScalarType[ScalarType["SINT64"] = 18] = "SINT64"; -})(ScalarType || (exports.ScalarType = ScalarType = {})); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/equals.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/equals.d.ts deleted file mode 100644 index 914048f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/equals.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import type { MessageShape } from "./types.js"; -import { type DescMessage } from "./descriptors.js"; -import type { Registry } from "./registry.js"; -interface EqualsOptions { - /** - * A registry to look up extensions, and messages packed in Any. - * - * @private Experimental API, does not follow semantic versioning. - */ - registry: Registry; - /** - * Unpack google.protobuf.Any before comparing. - * If a type is not in the registry, comparison falls back to comparing the - * fields of Any. - * - * @private Experimental API, does not follow semantic versioning. - */ - unpackAny?: boolean; - /** - * Consider extensions when comparing. - * - * @private Experimental API, does not follow semantic versioning. - */ - extensions?: boolean; - /** - * Consider unknown fields when comparing. - * The registry is used to distinguish between extensions, and unknown fields - * caused by schema changes. - * - * @private Experimental API, does not follow semantic versioning. - */ - unknown?: boolean; -} -/** - * Compare two messages of the same type. - * - * Note that this function disregards extensions and unknown fields, and that - * NaN is not equal NaN, following the IEEE standard. - */ -export declare function equals(schema: Desc, a: MessageShape, b: MessageShape, options?: EqualsOptions): boolean; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/equals.js b/node_modules/@bufbuild/protobuf/dist/cjs/equals.js deleted file mode 100644 index 6954dd5..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/equals.js +++ /dev/null @@ -1,204 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.equals = equals; -const scalar_js_1 = require("./reflect/scalar.js"); -const reflect_js_1 = require("./reflect/reflect.js"); -const descriptors_js_1 = require("./descriptors.js"); -const index_js_1 = require("./wkt/index.js"); -const extensions_js_1 = require("./extensions.js"); -/** - * Compare two messages of the same type. - * - * Note that this function disregards extensions and unknown fields, and that - * NaN is not equal NaN, following the IEEE standard. - */ -function equals(schema, a, b, options) { - if (a.$typeName != schema.typeName || b.$typeName != schema.typeName) { - return false; - } - if (a === b) { - return true; - } - return reflectEquals((0, reflect_js_1.reflect)(schema, a), (0, reflect_js_1.reflect)(schema, b), options); -} -function reflectEquals(a, b, opts) { - if (a.desc.typeName === "google.protobuf.Any" && (opts === null || opts === void 0 ? void 0 : opts.unpackAny) == true) { - return anyUnpackedEquals(a.message, b.message, opts); - } - for (const f of a.fields) { - if (!fieldEquals(f, a, b, opts)) { - return false; - } - } - if ((opts === null || opts === void 0 ? void 0 : opts.unknown) == true && !unknownEquals(a, b, opts.registry)) { - return false; - } - if ((opts === null || opts === void 0 ? void 0 : opts.extensions) == true && !extensionsEquals(a, b, opts)) { - return false; - } - return true; -} -// TODO(tstamm) add an option to consider NaN equal to NaN? -function fieldEquals(f, a, b, opts) { - if (!a.isSet(f) && !b.isSet(f)) { - return true; - } - if (!a.isSet(f) || !b.isSet(f)) { - return false; - } - switch (f.fieldKind) { - case "scalar": - return (0, scalar_js_1.scalarEquals)(f.scalar, a.get(f), b.get(f)); - case "enum": - return a.get(f) === b.get(f); - case "message": - return reflectEquals(a.get(f), b.get(f), opts); - case "map": { - // TODO(tstamm) can't we compare sizes first? - const mapA = a.get(f); - const mapB = b.get(f); - const keys = []; - for (const k of mapA.keys()) { - if (!mapB.has(k)) { - return false; - } - keys.push(k); - } - for (const k of mapB.keys()) { - if (!mapA.has(k)) { - return false; - } - } - for (const key of keys) { - const va = mapA.get(key); - const vb = mapB.get(key); - if (va === vb) { - continue; - } - switch (f.mapKind) { - case "enum": - return false; - case "message": - if (!reflectEquals(va, vb, opts)) { - return false; - } - break; - case "scalar": - if (!(0, scalar_js_1.scalarEquals)(f.scalar, va, vb)) { - return false; - } - break; - } - } - break; - } - case "list": { - const listA = a.get(f); - const listB = b.get(f); - if (listA.size != listB.size) { - return false; - } - for (let i = 0; i < listA.size; i++) { - const va = listA.get(i); - const vb = listB.get(i); - if (va === vb) { - continue; - } - switch (f.listKind) { - case "enum": - return false; - case "message": - if (!reflectEquals(va, vb, opts)) { - return false; - } - break; - case "scalar": - if (!(0, scalar_js_1.scalarEquals)(f.scalar, va, vb)) { - return false; - } - break; - } - } - break; - } - } - return true; -} -function anyUnpackedEquals(a, b, opts) { - if (a.typeUrl !== b.typeUrl) { - return false; - } - const unpackedA = (0, index_js_1.anyUnpack)(a, opts.registry); - const unpackedB = (0, index_js_1.anyUnpack)(b, opts.registry); - if (unpackedA && unpackedB) { - const schema = opts.registry.getMessage(unpackedA.$typeName); - if (schema) { - return equals(schema, unpackedA, unpackedB, opts); - } - } - return (0, scalar_js_1.scalarEquals)(descriptors_js_1.ScalarType.BYTES, a.value, b.value); -} -function unknownEquals(a, b, registry) { - function getTrulyUnknown(msg, registry) { - var _a; - const u = (_a = msg.getUnknown()) !== null && _a !== void 0 ? _a : []; - return registry - ? u.filter((uf) => !registry.getExtensionFor(msg.desc, uf.no)) - : u; - } - const unknownA = getTrulyUnknown(a, registry); - const unknownB = getTrulyUnknown(b, registry); - if (unknownA.length != unknownB.length) { - return false; - } - for (let i = 0; i < unknownA.length; i++) { - const a = unknownA[i]; - const b = unknownB[i]; - if (a.no != b.no) { - return false; - } - if (a.wireType != b.wireType) { - return false; - } - if (!(0, scalar_js_1.scalarEquals)(descriptors_js_1.ScalarType.BYTES, a.data, b.data)) { - return false; - } - } - return true; -} -function extensionsEquals(a, b, opts) { - function getSetExtensions(msg, registry) { - var _a; - return ((_a = msg.getUnknown()) !== null && _a !== void 0 ? _a : []) - .map((uf) => registry.getExtensionFor(msg.desc, uf.no)) - .filter((e) => e != undefined) - .filter((e, index, arr) => arr.indexOf(e) === index); - } - const extensionsA = getSetExtensions(a, opts.registry); - const extensionsB = getSetExtensions(b, opts.registry); - if (extensionsA.length != extensionsB.length || - extensionsA.some((e) => !extensionsB.includes(e))) { - return false; - } - for (const extension of extensionsA) { - const [containerA, field] = (0, extensions_js_1.createExtensionContainer)(extension, (0, extensions_js_1.getExtension)(a.message, extension)); - const [containerB] = (0, extensions_js_1.createExtensionContainer)(extension, (0, extensions_js_1.getExtension)(b.message, extension)); - if (!fieldEquals(field, containerA, containerB, opts)) { - return false; - } - } - return true; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/extensions.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/extensions.d.ts deleted file mode 100644 index 8336447..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/extensions.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -import type { AnyDesc, DescEnum, DescEnumValue, DescExtension, DescField, DescFile, DescMessage, DescMethod, DescOneof, DescService } from "./descriptors.js"; -import type { ReflectMessage } from "./reflect/reflect-types.js"; -import type { Extendee, ExtensionValueShape } from "./types.js"; -import type { EnumOptions, EnumValueOptions, FieldOptions, FileOptions, MessageOptions, MethodOptions, OneofOptions, ServiceOptions } from "./wkt/gen/google/protobuf/descriptor_pb.js"; -/** - * Retrieve an extension value from a message. - * - * The function never returns undefined. Use hasExtension() to check whether an - * extension is set. If the extension is not set, this function returns the - * default value (if one was specified in the protobuf source), or the zero value - * (for example `0` for numeric types, `[]` for repeated extension fields, and - * an empty message instance for message fields). - * - * Extensions are stored as unknown fields on a message. To mutate an extension - * value, make sure to store the new value with setExtension() after mutating. - * - * If the extension does not extend the given message, an error is raised. - */ -export declare function getExtension(message: Extendee, extension: Desc): ExtensionValueShape; -/** - * Set an extension value on a message. If the message already has a value for - * this extension, the value is replaced. - * - * If the extension does not extend the given message, an error is raised. - */ -export declare function setExtension(message: Extendee, extension: Desc, value: ExtensionValueShape): void; -/** - * Remove an extension value from a message. - * - * If the extension does not extend the given message, an error is raised. - */ -export declare function clearExtension(message: Extendee, extension: Desc): void; -/** - * Check whether an extension is set on a message. - */ -export declare function hasExtension(message: Extendee, extension: Desc): boolean; -/** - * Check whether an option is set on a descriptor. - * - * Options are extensions to the `google.protobuf.*Options` messages defined in - * google/protobuf/descriptor.proto. This function gets the option message from - * the descriptor, and calls hasExtension(). - */ -export declare function hasOption>(element: Desc, option: Ext): boolean; -/** - * Retrieve an option value from a descriptor. - * - * Options are extensions to the `google.protobuf.*Options` messages defined in - * google/protobuf/descriptor.proto. This function gets the option message from - * the descriptor, and calls getExtension(). Same as getExtension(), this - * function never returns undefined. - */ -export declare function getOption>(element: Desc, option: Ext): ExtensionValueShape; -type DescForOptionExtension = Extendee extends FileOptions ? DescFile : Extendee extends EnumOptions ? DescEnum : Extendee extends EnumValueOptions ? DescEnumValue : Extendee extends MessageOptions ? DescMessage : Extendee extends MessageOptions ? DescEnum : Extendee extends FieldOptions ? DescField | DescExtension : Extendee extends OneofOptions ? DescOneof : Extendee extends ServiceOptions ? DescService : Extendee extends EnumOptions ? DescEnum : Extendee extends MethodOptions ? DescMethod : AnyDesc; -/** - * @private - */ -export declare function createExtensionContainer(extension: Desc, value?: ExtensionValueShape): [ReflectMessage, DescField, () => ExtensionValueShape]; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/extensions.js b/node_modules/@bufbuild/protobuf/dist/cjs/extensions.js deleted file mode 100644 index 93c807e..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/extensions.js +++ /dev/null @@ -1,169 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getExtension = getExtension; -exports.setExtension = setExtension; -exports.clearExtension = clearExtension; -exports.hasExtension = hasExtension; -exports.hasOption = hasOption; -exports.getOption = getOption; -exports.createExtensionContainer = createExtensionContainer; -const create_js_1 = require("./create.js"); -const from_binary_js_1 = require("./from-binary.js"); -const reflect_js_1 = require("./reflect/reflect.js"); -const scalar_js_1 = require("./reflect/scalar.js"); -const to_binary_js_1 = require("./to-binary.js"); -const binary_encoding_js_1 = require("./wire/binary-encoding.js"); -const wrappers_js_1 = require("./wkt/wrappers.js"); -/** - * Retrieve an extension value from a message. - * - * The function never returns undefined. Use hasExtension() to check whether an - * extension is set. If the extension is not set, this function returns the - * default value (if one was specified in the protobuf source), or the zero value - * (for example `0` for numeric types, `[]` for repeated extension fields, and - * an empty message instance for message fields). - * - * Extensions are stored as unknown fields on a message. To mutate an extension - * value, make sure to store the new value with setExtension() after mutating. - * - * If the extension does not extend the given message, an error is raised. - */ -function getExtension(message, extension) { - assertExtendee(extension, message); - const ufs = filterUnknownFields(message.$unknown, extension); - const [container, field, get] = createExtensionContainer(extension); - for (const uf of ufs) { - (0, from_binary_js_1.readField)(container, new binary_encoding_js_1.BinaryReader(uf.data), field, uf.wireType, { - readUnknownFields: true, - }); - } - return get(); -} -/** - * Set an extension value on a message. If the message already has a value for - * this extension, the value is replaced. - * - * If the extension does not extend the given message, an error is raised. - */ -function setExtension(message, extension, value) { - var _a; - assertExtendee(extension, message); - const ufs = ((_a = message.$unknown) !== null && _a !== void 0 ? _a : []).filter((uf) => uf.no !== extension.number); - const [container, field] = createExtensionContainer(extension, value); - const writer = new binary_encoding_js_1.BinaryWriter(); - (0, to_binary_js_1.writeField)(writer, { writeUnknownFields: true }, container, field); - const reader = new binary_encoding_js_1.BinaryReader(writer.finish()); - while (reader.pos < reader.len) { - const [no, wireType] = reader.tag(); - const data = reader.skip(wireType, no); - ufs.push({ no, wireType, data }); - } - message.$unknown = ufs; -} -/** - * Remove an extension value from a message. - * - * If the extension does not extend the given message, an error is raised. - */ -function clearExtension(message, extension) { - assertExtendee(extension, message); - if (message.$unknown === undefined) { - return; - } - message.$unknown = message.$unknown.filter((uf) => uf.no !== extension.number); -} -/** - * Check whether an extension is set on a message. - */ -function hasExtension(message, extension) { - var _a; - return (extension.extendee.typeName === message.$typeName && - !!((_a = message.$unknown) === null || _a === void 0 ? void 0 : _a.find((uf) => uf.no === extension.number))); -} -/** - * Check whether an option is set on a descriptor. - * - * Options are extensions to the `google.protobuf.*Options` messages defined in - * google/protobuf/descriptor.proto. This function gets the option message from - * the descriptor, and calls hasExtension(). - */ -function hasOption(element, option) { - const message = element.proto.options; - if (!message) { - return false; - } - return hasExtension(message, option); -} -/** - * Retrieve an option value from a descriptor. - * - * Options are extensions to the `google.protobuf.*Options` messages defined in - * google/protobuf/descriptor.proto. This function gets the option message from - * the descriptor, and calls getExtension(). Same as getExtension(), this - * function never returns undefined. - */ -function getOption(element, option) { - const message = element.proto.options; - if (!message) { - const [, , get] = createExtensionContainer(option); - return get(); - } - return getExtension(message, option); -} -function filterUnknownFields(unknownFields, extension) { - if (unknownFields === undefined) - return []; - if (extension.fieldKind === "enum" || extension.fieldKind === "scalar") { - // singular scalar fields do not merge, we pick the last - for (let i = unknownFields.length - 1; i >= 0; --i) { - if (unknownFields[i].no == extension.number) { - return [unknownFields[i]]; - } - } - return []; - } - return unknownFields.filter((uf) => uf.no === extension.number); -} -/** - * @private - */ -function createExtensionContainer(extension, value) { - const localName = extension.typeName; - const field = Object.assign(Object.assign({}, extension), { kind: "field", parent: extension.extendee, localName }); - const desc = Object.assign(Object.assign({}, extension.extendee), { fields: [field], members: [field], oneofs: [] }); - const container = (0, create_js_1.create)(desc, value !== undefined ? { [localName]: value } : undefined); - return [ - (0, reflect_js_1.reflect)(desc, container), - field, - () => { - const value = container[localName]; - if (value === undefined) { - // biome-ignore lint/style/noNonNullAssertion: Only message fields are undefined, rest will have a zero value. - const desc = extension.message; - if ((0, wrappers_js_1.isWrapperDesc)(desc)) { - return (0, scalar_js_1.scalarZeroValue)(desc.fields[0].scalar, desc.fields[0].longAsString); - } - return (0, create_js_1.create)(desc); - } - return value; - }, - ]; -} -function assertExtendee(extension, message) { - if (extension.extendee.typeName != message.$typeName) { - throw new Error(`extension ${extension.typeName} can only be applied to message ${extension.extendee.typeName}`); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/fields.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/fields.d.ts deleted file mode 100644 index a44a0c8..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/fields.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type { MessageShape } from "./types.js"; -import type { DescField, DescMessage } from "./descriptors.js"; -/** - * Returns true if the field is set. - * - * - Scalar and enum fields with implicit presence (proto3): - * Set if not a zero value. - * - * - Scalar and enum fields with explicit presence (proto2, oneof): - * Set if a value was set when creating or parsing the message, or when a - * value was assigned to the field's property. - * - * - Message fields: - * Set if the property is not undefined. - * - * - List and map fields: - * Set if not empty. - */ -export declare function isFieldSet(message: MessageShape, field: DescField): boolean; -/** - * Resets the field, so that isFieldSet() will return false. - */ -export declare function clearField(message: MessageShape, field: DescField): void; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/fields.js b/node_modules/@bufbuild/protobuf/dist/cjs/fields.js deleted file mode 100644 index 6e569cc..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/fields.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isFieldSet = isFieldSet; -exports.clearField = clearField; -const unsafe_js_1 = require("./reflect/unsafe.js"); -/** - * Returns true if the field is set. - * - * - Scalar and enum fields with implicit presence (proto3): - * Set if not a zero value. - * - * - Scalar and enum fields with explicit presence (proto2, oneof): - * Set if a value was set when creating or parsing the message, or when a - * value was assigned to the field's property. - * - * - Message fields: - * Set if the property is not undefined. - * - * - List and map fields: - * Set if not empty. - */ -function isFieldSet(message, field) { - return (field.parent.typeName == message.$typeName && (0, unsafe_js_1.unsafeIsSet)(message, field)); -} -/** - * Resets the field, so that isFieldSet() will return false. - */ -function clearField(message, field) { - if (field.parent.typeName == message.$typeName) { - (0, unsafe_js_1.unsafeClear)(message, field); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/from-binary.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/from-binary.d.ts deleted file mode 100644 index b04a9d3..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/from-binary.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { type DescField, type DescMessage } from "./descriptors.js"; -import type { MessageShape } from "./types.js"; -import type { ReflectMessage } from "./reflect/index.js"; -import { BinaryReader, WireType } from "./wire/binary-encoding.js"; -/** - * Options for parsing binary data. - */ -export interface BinaryReadOptions { - /** - * Retain unknown fields during parsing? The default behavior is to retain - * unknown fields and include them in the serialized output. - * - * For more details see https://developers.google.com/protocol-buffers/docs/proto3#unknowns - */ - readUnknownFields: boolean; -} -/** - * Parse serialized binary data. - */ -export declare function fromBinary(schema: Desc, bytes: Uint8Array, options?: Partial): MessageShape; -/** - * Parse from binary data, merging fields. - * - * Repeated fields are appended. Map entries are added, overwriting - * existing keys. - * - * If a message field is already present, it will be merged with the - * new data. - */ -export declare function mergeFromBinary(schema: Desc, target: MessageShape, bytes: Uint8Array, options?: Partial): MessageShape; -/** - * @private - */ -export declare function readField(message: ReflectMessage, reader: BinaryReader, field: DescField, wireType: WireType, options: BinaryReadOptions): void; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/from-binary.js b/node_modules/@bufbuild/protobuf/dist/cjs/from-binary.js deleted file mode 100644 index 484281a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/from-binary.js +++ /dev/null @@ -1,241 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromBinary = fromBinary; -exports.mergeFromBinary = mergeFromBinary; -exports.readField = readField; -const descriptors_js_1 = require("./descriptors.js"); -const scalar_js_1 = require("./reflect/scalar.js"); -const reflect_js_1 = require("./reflect/reflect.js"); -const binary_encoding_js_1 = require("./wire/binary-encoding.js"); -const varint_js_1 = require("./wire/varint.js"); -// Default options for parsing binary data. -const readDefaults = { - readUnknownFields: true, -}; -function makeReadOptions(options) { - return options ? Object.assign(Object.assign({}, readDefaults), options) : readDefaults; -} -/** - * Parse serialized binary data. - */ -function fromBinary(schema, bytes, options) { - const msg = (0, reflect_js_1.reflect)(schema, undefined, false); - readMessage(msg, new binary_encoding_js_1.BinaryReader(bytes), makeReadOptions(options), false, bytes.byteLength); - return msg.message; -} -/** - * Parse from binary data, merging fields. - * - * Repeated fields are appended. Map entries are added, overwriting - * existing keys. - * - * If a message field is already present, it will be merged with the - * new data. - */ -function mergeFromBinary(schema, target, bytes, options) { - readMessage((0, reflect_js_1.reflect)(schema, target, false), new binary_encoding_js_1.BinaryReader(bytes), makeReadOptions(options), false, bytes.byteLength); - return target; -} -/** - * If `delimited` is false, read the length given in `lengthOrDelimitedFieldNo`. - * - * If `delimited` is true, read until an EndGroup tag. `lengthOrDelimitedFieldNo` - * is the expected field number. - * - * @private - */ -function readMessage(message, reader, options, delimited, lengthOrDelimitedFieldNo) { - var _a; - const end = delimited ? reader.len : reader.pos + lengthOrDelimitedFieldNo; - let fieldNo; - let wireType; - const unknownFields = (_a = message.getUnknown()) !== null && _a !== void 0 ? _a : []; - while (reader.pos < end) { - [fieldNo, wireType] = reader.tag(); - if (delimited && wireType == binary_encoding_js_1.WireType.EndGroup) { - break; - } - const field = message.findNumber(fieldNo); - if (!field) { - const data = reader.skip(wireType, fieldNo); - if (options.readUnknownFields) { - unknownFields.push({ no: fieldNo, wireType, data }); - } - continue; - } - readField(message, reader, field, wireType, options); - } - if (delimited) { - if (wireType != binary_encoding_js_1.WireType.EndGroup || fieldNo !== lengthOrDelimitedFieldNo) { - throw new Error("invalid end group tag"); - } - } - if (unknownFields.length > 0) { - message.setUnknown(unknownFields); - } -} -/** - * @private - */ -function readField(message, reader, field, wireType, options) { - var _a; - switch (field.fieldKind) { - case "scalar": - message.set(field, readScalar(reader, field.scalar)); - break; - case "enum": - const val = readScalar(reader, descriptors_js_1.ScalarType.INT32); - if (field.enum.open) { - message.set(field, val); - } - else { - const ok = field.enum.values.some((v) => v.number === val); - if (ok) { - message.set(field, val); - } - else if (options.readUnknownFields) { - const bytes = []; - (0, varint_js_1.varint32write)(val, bytes); - const unknownFields = (_a = message.getUnknown()) !== null && _a !== void 0 ? _a : []; - unknownFields.push({ - no: field.number, - wireType, - data: new Uint8Array(bytes), - }); - message.setUnknown(unknownFields); - } - } - break; - case "message": - message.set(field, readMessageField(reader, options, field, message.get(field))); - break; - case "list": - readListField(reader, wireType, message.get(field), options); - break; - case "map": - readMapEntry(reader, message.get(field), options); - break; - } -} -// Read a map field, expecting key field = 1, value field = 2 -function readMapEntry(reader, map, options) { - const field = map.field(); - let key; - let val; - // Read the length of the map entry, which is a varint. - const len = reader.uint32(); - // WARNING: Calculate end AFTER advancing reader.pos (above), so that - // reader.pos is at the start of the map entry. - const end = reader.pos + len; - while (reader.pos < end) { - const [fieldNo] = reader.tag(); - switch (fieldNo) { - case 1: - key = readScalar(reader, field.mapKey); - break; - case 2: - switch (field.mapKind) { - case "scalar": - val = readScalar(reader, field.scalar); - break; - case "enum": - val = reader.int32(); - break; - case "message": - val = readMessageField(reader, options, field); - break; - } - break; - } - } - if (key === undefined) { - key = (0, scalar_js_1.scalarZeroValue)(field.mapKey, false); - } - if (val === undefined) { - switch (field.mapKind) { - case "scalar": - val = (0, scalar_js_1.scalarZeroValue)(field.scalar, false); - break; - case "enum": - val = field.enum.values[0].number; - break; - case "message": - val = (0, reflect_js_1.reflect)(field.message, undefined, false); - break; - } - } - map.set(key, val); -} -function readListField(reader, wireType, list, options) { - var _a; - const field = list.field(); - if (field.listKind === "message") { - list.add(readMessageField(reader, options, field)); - return; - } - const scalarType = (_a = field.scalar) !== null && _a !== void 0 ? _a : descriptors_js_1.ScalarType.INT32; - const packed = wireType == binary_encoding_js_1.WireType.LengthDelimited && - scalarType != descriptors_js_1.ScalarType.STRING && - scalarType != descriptors_js_1.ScalarType.BYTES; - if (!packed) { - list.add(readScalar(reader, scalarType)); - return; - } - const e = reader.uint32() + reader.pos; - while (reader.pos < e) { - list.add(readScalar(reader, scalarType)); - } -} -function readMessageField(reader, options, field, mergeMessage) { - const delimited = field.delimitedEncoding; - const message = mergeMessage !== null && mergeMessage !== void 0 ? mergeMessage : (0, reflect_js_1.reflect)(field.message, undefined, false); - readMessage(message, reader, options, delimited, delimited ? field.number : reader.uint32()); - return message; -} -function readScalar(reader, type) { - switch (type) { - case descriptors_js_1.ScalarType.STRING: - return reader.string(); - case descriptors_js_1.ScalarType.BOOL: - return reader.bool(); - case descriptors_js_1.ScalarType.DOUBLE: - return reader.double(); - case descriptors_js_1.ScalarType.FLOAT: - return reader.float(); - case descriptors_js_1.ScalarType.INT32: - return reader.int32(); - case descriptors_js_1.ScalarType.INT64: - return reader.int64(); - case descriptors_js_1.ScalarType.UINT64: - return reader.uint64(); - case descriptors_js_1.ScalarType.FIXED64: - return reader.fixed64(); - case descriptors_js_1.ScalarType.BYTES: - return reader.bytes(); - case descriptors_js_1.ScalarType.FIXED32: - return reader.fixed32(); - case descriptors_js_1.ScalarType.SFIXED32: - return reader.sfixed32(); - case descriptors_js_1.ScalarType.SFIXED64: - return reader.sfixed64(); - case descriptors_js_1.ScalarType.SINT64: - return reader.sint64(); - case descriptors_js_1.ScalarType.UINT32: - return reader.uint32(); - case descriptors_js_1.ScalarType.SINT32: - return reader.sint32(); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/from-json.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/from-json.d.ts deleted file mode 100644 index 06f4d6c..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/from-json.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { type DescEnum, type DescMessage } from "./descriptors.js"; -import type { JsonValue } from "./json-value.js"; -import type { Registry } from "./registry.js"; -import type { EnumJsonType, EnumShape, MessageShape } from "./types.js"; -/** - * Options for parsing JSON data. - */ -export interface JsonReadOptions { - /** - * Ignore unknown fields: Proto3 JSON parser should reject unknown fields - * by default. This option ignores unknown fields in parsing, as well as - * unrecognized enum string representations. - */ - ignoreUnknownFields: boolean; - /** - * This option is required to read `google.protobuf.Any` and extensions - * from JSON format. - */ - registry?: Registry; -} -/** - * Parse a message from a JSON string. - */ -export declare function fromJsonString(schema: Desc, json: string, options?: Partial): MessageShape; -/** - * Parse a message from a JSON string, merging fields. - * - * Repeated fields are appended. Map entries are added, overwriting - * existing keys. - * - * If a message field is already present, it will be merged with the - * new data. - */ -export declare function mergeFromJsonString(schema: Desc, target: MessageShape, json: string, options?: Partial): MessageShape; -/** - * Parse a message from a JSON value. - */ -export declare function fromJson(schema: Desc, json: JsonValue, options?: Partial): MessageShape; -/** - * Parse a message from a JSON value, merging fields. - * - * Repeated fields are appended. Map entries are added, overwriting - * existing keys. - * - * If a message field is already present, it will be merged with the - * new data. - */ -export declare function mergeFromJson(schema: Desc, target: MessageShape, json: JsonValue, options?: Partial): MessageShape; -/** - * Parses an enum value from JSON. - */ -export declare function enumFromJson(descEnum: Desc, json: EnumJsonType): EnumShape; -/** - * Is the given value a JSON enum value? - */ -export declare function isEnumJson(descEnum: Desc, value: unknown): value is EnumJsonType; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/from-json.js b/node_modules/@bufbuild/protobuf/dist/cjs/from-json.js deleted file mode 100644 index 06e5a24..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/from-json.js +++ /dev/null @@ -1,622 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromJsonString = fromJsonString; -exports.mergeFromJsonString = mergeFromJsonString; -exports.fromJson = fromJson; -exports.mergeFromJson = mergeFromJson; -exports.enumFromJson = enumFromJson; -exports.isEnumJson = isEnumJson; -const descriptors_js_1 = require("./descriptors.js"); -const proto_int64_js_1 = require("./proto-int64.js"); -const create_js_1 = require("./create.js"); -const reflect_js_1 = require("./reflect/reflect.js"); -const error_js_1 = require("./reflect/error.js"); -const reflect_check_js_1 = require("./reflect/reflect-check.js"); -const scalar_js_1 = require("./reflect/scalar.js"); -const base64_encoding_js_1 = require("./wire/base64-encoding.js"); -const index_js_1 = require("./wkt/index.js"); -const extensions_js_1 = require("./extensions.js"); -// Default options for parsing JSON. -const jsonReadDefaults = { - ignoreUnknownFields: false, -}; -function makeReadOptions(options) { - return options ? Object.assign(Object.assign({}, jsonReadDefaults), options) : jsonReadDefaults; -} -/** - * Parse a message from a JSON string. - */ -function fromJsonString(schema, json, options) { - return fromJson(schema, parseJsonString(json, schema.typeName), options); -} -/** - * Parse a message from a JSON string, merging fields. - * - * Repeated fields are appended. Map entries are added, overwriting - * existing keys. - * - * If a message field is already present, it will be merged with the - * new data. - */ -function mergeFromJsonString(schema, target, json, options) { - return mergeFromJson(schema, target, parseJsonString(json, schema.typeName), options); -} -/** - * Parse a message from a JSON value. - */ -function fromJson(schema, json, options) { - const msg = (0, reflect_js_1.reflect)(schema); - try { - readMessage(msg, json, makeReadOptions(options)); - } - catch (e) { - if ((0, error_js_1.isFieldError)(e)) { - // @ts-expect-error we use the ES2022 error CTOR option "cause" for better stack traces - throw new Error(`cannot decode ${e.field()} from JSON: ${e.message}`, { - cause: e, - }); - } - throw e; - } - return msg.message; -} -/** - * Parse a message from a JSON value, merging fields. - * - * Repeated fields are appended. Map entries are added, overwriting - * existing keys. - * - * If a message field is already present, it will be merged with the - * new data. - */ -function mergeFromJson(schema, target, json, options) { - try { - readMessage((0, reflect_js_1.reflect)(schema, target), json, makeReadOptions(options)); - } - catch (e) { - if ((0, error_js_1.isFieldError)(e)) { - // @ts-expect-error we use the ES2022 error CTOR option "cause" for better stack traces - throw new Error(`cannot decode ${e.field()} from JSON: ${e.message}`, { - cause: e, - }); - } - throw e; - } - return target; -} -/** - * Parses an enum value from JSON. - */ -function enumFromJson(descEnum, json) { - const val = readEnum(descEnum, json, false, false); - if (val === tokenIgnoredUnknownEnum) { - throw new Error(`cannot decode ${descEnum} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`); - } - return val; -} -/** - * Is the given value a JSON enum value? - */ -function isEnumJson(descEnum, value) { - return undefined !== descEnum.values.find((v) => v.name === value); -} -function readMessage(msg, json, opts) { - var _a; - if (tryWktFromJson(msg, json, opts)) { - return; - } - if (json == null || Array.isArray(json) || typeof json != "object") { - throw new Error(`cannot decode ${msg.desc} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`); - } - const oneofSeen = new Map(); - const jsonNames = new Map(); - for (const field of msg.desc.fields) { - jsonNames.set(field.name, field).set(field.jsonName, field); - } - for (const [jsonKey, jsonValue] of Object.entries(json)) { - const field = jsonNames.get(jsonKey); - if (field) { - if (field.oneof) { - if (jsonValue === null && field.fieldKind == "scalar") { - // see conformance test Required.Proto3.JsonInput.OneofFieldNull{First,Second} - continue; - } - const seen = oneofSeen.get(field.oneof); - if (seen !== undefined) { - throw new error_js_1.FieldError(field.oneof, `oneof set multiple times by ${seen.name} and ${field.name}`); - } - oneofSeen.set(field.oneof, field); - } - readField(msg, field, jsonValue, opts); - } - else { - let extension = undefined; - if (jsonKey.startsWith("[") && - jsonKey.endsWith("]") && - // biome-ignore lint/suspicious/noAssignInExpressions: no - (extension = (_a = opts.registry) === null || _a === void 0 ? void 0 : _a.getExtension(jsonKey.substring(1, jsonKey.length - 1))) && - extension.extendee.typeName === msg.desc.typeName) { - const [container, field, get] = (0, extensions_js_1.createExtensionContainer)(extension); - readField(container, field, jsonValue, opts); - (0, extensions_js_1.setExtension)(msg.message, extension, get()); - } - if (!extension && !opts.ignoreUnknownFields) { - throw new Error(`cannot decode ${msg.desc} from JSON: key "${jsonKey}" is unknown`); - } - } - } -} -function readField(msg, field, json, opts) { - switch (field.fieldKind) { - case "scalar": - readScalarField(msg, field, json); - break; - case "enum": - readEnumField(msg, field, json, opts); - break; - case "message": - readMessageField(msg, field, json, opts); - break; - case "list": - readListField(msg.get(field), json, opts); - break; - case "map": - readMapField(msg.get(field), json, opts); - break; - } -} -function readMapField(map, json, opts) { - if (json === null) { - return; - } - const field = map.field(); - if (typeof json != "object" || Array.isArray(json)) { - throw new error_js_1.FieldError(field, "expected object, got " + (0, reflect_check_js_1.formatVal)(json)); - } - for (const [jsonMapKey, jsonMapValue] of Object.entries(json)) { - if (jsonMapValue === null) { - throw new error_js_1.FieldError(field, "map value must not be null"); - } - let value; - switch (field.mapKind) { - case "message": - const msgValue = (0, reflect_js_1.reflect)(field.message); - readMessage(msgValue, jsonMapValue, opts); - value = msgValue; - break; - case "enum": - value = readEnum(field.enum, jsonMapValue, opts.ignoreUnknownFields, true); - if (value === tokenIgnoredUnknownEnum) { - return; - } - break; - case "scalar": - value = scalarFromJson(field, jsonMapValue, true); - break; - } - const key = mapKeyFromJson(field.mapKey, jsonMapKey); - map.set(key, value); - } -} -function readListField(list, json, opts) { - if (json === null) { - return; - } - const field = list.field(); - if (!Array.isArray(json)) { - throw new error_js_1.FieldError(field, "expected Array, got " + (0, reflect_check_js_1.formatVal)(json)); - } - for (const jsonItem of json) { - if (jsonItem === null) { - throw new error_js_1.FieldError(field, "list item must not be null"); - } - switch (field.listKind) { - case "message": - const msgValue = (0, reflect_js_1.reflect)(field.message); - readMessage(msgValue, jsonItem, opts); - list.add(msgValue); - break; - case "enum": - const enumValue = readEnum(field.enum, jsonItem, opts.ignoreUnknownFields, true); - if (enumValue !== tokenIgnoredUnknownEnum) { - list.add(enumValue); - } - break; - case "scalar": - list.add(scalarFromJson(field, jsonItem, true)); - break; - } - } -} -function readMessageField(msg, field, json, opts) { - if (json === null && field.message.typeName != "google.protobuf.Value") { - msg.clear(field); - return; - } - const msgValue = msg.isSet(field) ? msg.get(field) : (0, reflect_js_1.reflect)(field.message); - readMessage(msgValue, json, opts); - msg.set(field, msgValue); -} -function readEnumField(msg, field, json, opts) { - const enumValue = readEnum(field.enum, json, opts.ignoreUnknownFields, false); - if (enumValue === tokenNull) { - msg.clear(field); - } - else if (enumValue !== tokenIgnoredUnknownEnum) { - msg.set(field, enumValue); - } -} -function readScalarField(msg, field, json) { - const scalarValue = scalarFromJson(field, json, false); - if (scalarValue === tokenNull) { - msg.clear(field); - } - else { - msg.set(field, scalarValue); - } -} -const tokenIgnoredUnknownEnum = Symbol(); -function readEnum(desc, json, ignoreUnknownFields, nullAsZeroValue) { - if (json === null) { - if (desc.typeName == "google.protobuf.NullValue") { - return 0; // google.protobuf.NullValue.NULL_VALUE = 0 - } - return nullAsZeroValue ? desc.values[0].number : tokenNull; - } - switch (typeof json) { - case "number": - if (Number.isInteger(json)) { - return json; - } - break; - case "string": - const value = desc.values.find((ev) => ev.name === json); - if (value !== undefined) { - return value.number; - } - if (ignoreUnknownFields) { - return tokenIgnoredUnknownEnum; - } - break; - } - throw new Error(`cannot decode ${desc} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`); -} -const tokenNull = Symbol(); -function scalarFromJson(field, json, nullAsZeroValue) { - if (json === null) { - if (nullAsZeroValue) { - return (0, scalar_js_1.scalarZeroValue)(field.scalar, false); - } - return tokenNull; - } - // int64, sfixed64, sint64, fixed64, uint64: Reflect supports string and number. - // string, bool: Supported by reflect. - switch (field.scalar) { - // float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity". - // Either numbers or strings are accepted. Exponent notation is also accepted. - case descriptors_js_1.ScalarType.DOUBLE: - case descriptors_js_1.ScalarType.FLOAT: - if (json === "NaN") - return NaN; - if (json === "Infinity") - return Number.POSITIVE_INFINITY; - if (json === "-Infinity") - return Number.NEGATIVE_INFINITY; - if (typeof json == "number") { - if (Number.isNaN(json)) { - // NaN must be encoded with string constants - throw new error_js_1.FieldError(field, "unexpected NaN number"); - } - if (!Number.isFinite(json)) { - // Infinity must be encoded with string constants - throw new error_js_1.FieldError(field, "unexpected infinite number"); - } - break; - } - if (typeof json == "string") { - if (json === "") { - // empty string is not a number - break; - } - if (json.trim().length !== json.length) { - // extra whitespace - break; - } - const float = Number(json); - if (!Number.isFinite(float)) { - // Infinity and NaN must be encoded with string constants - break; - } - return float; - } - break; - // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted. - case descriptors_js_1.ScalarType.INT32: - case descriptors_js_1.ScalarType.FIXED32: - case descriptors_js_1.ScalarType.SFIXED32: - case descriptors_js_1.ScalarType.SINT32: - case descriptors_js_1.ScalarType.UINT32: - return int32FromJson(json); - // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings. - // Either standard or URL-safe base64 encoding with/without paddings are accepted. - case descriptors_js_1.ScalarType.BYTES: - if (typeof json == "string") { - if (json === "") { - return new Uint8Array(0); - } - try { - return (0, base64_encoding_js_1.base64Decode)(json); - } - catch (e) { - const message = e instanceof Error ? e.message : String(e); - throw new error_js_1.FieldError(field, message); - } - } - break; - } - return json; -} -/** - * Try to parse a JSON value to a map key for the reflect API. - * - * Returns the input if the JSON value cannot be converted. - */ -function mapKeyFromJson(type, json) { - switch (type) { - case descriptors_js_1.ScalarType.BOOL: - switch (json) { - case "true": - return true; - case "false": - return false; - } - return json; - case descriptors_js_1.ScalarType.INT32: - case descriptors_js_1.ScalarType.FIXED32: - case descriptors_js_1.ScalarType.UINT32: - case descriptors_js_1.ScalarType.SFIXED32: - case descriptors_js_1.ScalarType.SINT32: - return int32FromJson(json); - default: - return json; - } -} -/** - * Try to parse a JSON value to a 32-bit integer for the reflect API. - * - * Returns the input if the JSON value cannot be converted. - */ -function int32FromJson(json) { - if (typeof json == "string") { - if (json === "") { - // empty string is not a number - return json; - } - if (json.trim().length !== json.length) { - // extra whitespace - return json; - } - const num = Number(json); - if (Number.isNaN(num)) { - // not a number - return json; - } - return num; - } - return json; -} -function parseJsonString(jsonString, typeName) { - try { - return JSON.parse(jsonString); - } - catch (e) { - const message = e instanceof Error ? e.message : String(e); - throw new Error(`cannot decode message ${typeName} from JSON: ${message}`, - // @ts-expect-error we use the ES2022 error CTOR option "cause" for better stack traces - { cause: e }); - } -} -function tryWktFromJson(msg, jsonValue, opts) { - if (!msg.desc.typeName.startsWith("google.protobuf.")) { - return false; - } - switch (msg.desc.typeName) { - case "google.protobuf.Any": - anyFromJson(msg.message, jsonValue, opts); - return true; - case "google.protobuf.Timestamp": - timestampFromJson(msg.message, jsonValue); - return true; - case "google.protobuf.Duration": - durationFromJson(msg.message, jsonValue); - return true; - case "google.protobuf.FieldMask": - fieldMaskFromJson(msg.message, jsonValue); - return true; - case "google.protobuf.Struct": - structFromJson(msg.message, jsonValue); - return true; - case "google.protobuf.Value": - valueFromJson(msg.message, jsonValue); - return true; - case "google.protobuf.ListValue": - listValueFromJson(msg.message, jsonValue); - return true; - default: - if ((0, index_js_1.isWrapperDesc)(msg.desc)) { - const valueField = msg.desc.fields[0]; - if (jsonValue === null) { - msg.clear(valueField); - } - else { - msg.set(valueField, scalarFromJson(valueField, jsonValue, true)); - } - return true; - } - return false; - } -} -function anyFromJson(any, json, opts) { - var _a; - if (json === null || Array.isArray(json) || typeof json != "object") { - throw new Error(`cannot decode message ${any.$typeName} from JSON: expected object but got ${(0, reflect_check_js_1.formatVal)(json)}`); - } - if (Object.keys(json).length == 0) { - return; - } - const typeUrl = json["@type"]; - if (typeof typeUrl != "string" || typeUrl == "") { - throw new Error(`cannot decode message ${any.$typeName} from JSON: "@type" is empty`); - } - const typeName = typeUrl.includes("/") - ? typeUrl.substring(typeUrl.lastIndexOf("/") + 1) - : typeUrl; - if (!typeName.length) { - throw new Error(`cannot decode message ${any.$typeName} from JSON: "@type" is invalid`); - } - const desc = (_a = opts.registry) === null || _a === void 0 ? void 0 : _a.getMessage(typeName); - if (!desc) { - throw new Error(`cannot decode message ${any.$typeName} from JSON: ${typeUrl} is not in the type registry`); - } - const msg = (0, reflect_js_1.reflect)(desc); - if (typeName.startsWith("google.protobuf.") && - Object.prototype.hasOwnProperty.call(json, "value")) { - const value = json.value; - readMessage(msg, value, opts); - } - else { - const copy = Object.assign({}, json); - // biome-ignore lint/performance/noDelete: - delete copy["@type"]; - readMessage(msg, copy, opts); - } - (0, index_js_1.anyPack)(msg.desc, msg.message, any); -} -function timestampFromJson(timestamp, json) { - if (typeof json !== "string") { - throw new Error(`cannot decode message ${timestamp.$typeName} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`); - } - const matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:\.([0-9]{1,9}))?(?:Z|([+-][0-9][0-9]:[0-9][0-9]))$/); - if (!matches) { - throw new Error(`cannot decode message ${timestamp.$typeName} from JSON: invalid RFC 3339 string`); - } - const ms = Date.parse( - // biome-ignore format: want this to read well - matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z")); - if (Number.isNaN(ms)) { - throw new Error(`cannot decode message ${timestamp.$typeName} from JSON: invalid RFC 3339 string`); - } - if (ms < Date.parse("0001-01-01T00:00:00Z") || - ms > Date.parse("9999-12-31T23:59:59Z")) { - throw new Error(`cannot decode message ${timestamp.$typeName} from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`); - } - timestamp.seconds = proto_int64_js_1.protoInt64.parse(ms / 1000); - timestamp.nanos = 0; - if (matches[7]) { - timestamp.nanos = - parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - - 1000000000; - } -} -function durationFromJson(duration, json) { - if (typeof json !== "string") { - throw new Error(`cannot decode message ${duration.$typeName} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`); - } - const match = json.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/); - if (match === null) { - throw new Error(`cannot decode message ${duration.$typeName} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`); - } - const longSeconds = Number(match[1]); - if (longSeconds > 315576000000 || longSeconds < -315576000000) { - throw new Error(`cannot decode message ${duration.$typeName} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`); - } - duration.seconds = proto_int64_js_1.protoInt64.parse(longSeconds); - if (typeof match[2] !== "string") { - return; - } - const nanosStr = match[2] + "0".repeat(9 - match[2].length); - duration.nanos = parseInt(nanosStr); - if (longSeconds < 0 || Object.is(longSeconds, -0)) { - duration.nanos = -duration.nanos; - } -} -function fieldMaskFromJson(fieldMask, json) { - if (typeof json !== "string") { - throw new Error(`cannot decode message ${fieldMask.$typeName} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`); - } - if (json === "") { - return; - } - function camelToSnake(str) { - if (str.includes("_")) { - throw new Error(`cannot decode message ${fieldMask.$typeName} from JSON: path names must be lowerCamelCase`); - } - const sc = str.replace(/[A-Z]/g, (letter) => "_" + letter.toLowerCase()); - return sc[0] === "_" ? sc.substring(1) : sc; - } - fieldMask.paths = json.split(",").map(camelToSnake); -} -function structFromJson(struct, json) { - if (typeof json != "object" || json == null || Array.isArray(json)) { - throw new Error(`cannot decode message ${struct.$typeName} from JSON ${(0, reflect_check_js_1.formatVal)(json)}`); - } - for (const [k, v] of Object.entries(json)) { - const parsedV = (0, create_js_1.create)(index_js_1.ValueSchema); - valueFromJson(parsedV, v); - struct.fields[k] = parsedV; - } -} -function valueFromJson(value, json) { - switch (typeof json) { - case "number": - value.kind = { case: "numberValue", value: json }; - break; - case "string": - value.kind = { case: "stringValue", value: json }; - break; - case "boolean": - value.kind = { case: "boolValue", value: json }; - break; - case "object": - if (json === null) { - value.kind = { case: "nullValue", value: index_js_1.NullValue.NULL_VALUE }; - } - else if (Array.isArray(json)) { - const listValue = (0, create_js_1.create)(index_js_1.ListValueSchema); - listValueFromJson(listValue, json); - value.kind = { case: "listValue", value: listValue }; - } - else { - const struct = (0, create_js_1.create)(index_js_1.StructSchema); - structFromJson(struct, json); - value.kind = { case: "structValue", value: struct }; - } - break; - default: - throw new Error(`cannot decode message ${value.$typeName} from JSON ${(0, reflect_check_js_1.formatVal)(json)}`); - } - return value; -} -function listValueFromJson(listValue, json) { - if (!Array.isArray(json)) { - throw new Error(`cannot decode message ${listValue.$typeName} from JSON ${(0, reflect_check_js_1.formatVal)(json)}`); - } - for (const e of json) { - const value = (0, create_js_1.create)(index_js_1.ValueSchema); - valueFromJson(value, e); - listValue.values.push(value); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/index.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/index.d.ts deleted file mode 100644 index 7a23115..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export * from "./types.js"; -export * from "./is-message.js"; -export * from "./create.js"; -export * from "./clone.js"; -export * from "./descriptors.js"; -export * from "./equals.js"; -export * from "./fields.js"; -export * from "./registry.js"; -export type { JsonValue, JsonObject } from "./json-value.js"; -export { toBinary } from "./to-binary.js"; -export type { BinaryWriteOptions } from "./to-binary.js"; -export { fromBinary, mergeFromBinary } from "./from-binary.js"; -export type { BinaryReadOptions } from "./from-binary.js"; -export * from "./to-json.js"; -export * from "./from-json.js"; -export * from "./merge.js"; -export { hasExtension, getExtension, setExtension, clearExtension, hasOption, getOption, } from "./extensions.js"; -export * from "./proto-int64.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/index.js b/node_modules/@bufbuild/protobuf/dist/cjs/index.js deleted file mode 100644 index c32f6ff..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/index.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getOption = exports.hasOption = exports.clearExtension = exports.setExtension = exports.getExtension = exports.hasExtension = exports.mergeFromBinary = exports.fromBinary = exports.toBinary = void 0; -__exportStar(require("./types.js"), exports); -__exportStar(require("./is-message.js"), exports); -__exportStar(require("./create.js"), exports); -__exportStar(require("./clone.js"), exports); -__exportStar(require("./descriptors.js"), exports); -__exportStar(require("./equals.js"), exports); -__exportStar(require("./fields.js"), exports); -__exportStar(require("./registry.js"), exports); -var to_binary_js_1 = require("./to-binary.js"); -Object.defineProperty(exports, "toBinary", { enumerable: true, get: function () { return to_binary_js_1.toBinary; } }); -var from_binary_js_1 = require("./from-binary.js"); -Object.defineProperty(exports, "fromBinary", { enumerable: true, get: function () { return from_binary_js_1.fromBinary; } }); -Object.defineProperty(exports, "mergeFromBinary", { enumerable: true, get: function () { return from_binary_js_1.mergeFromBinary; } }); -__exportStar(require("./to-json.js"), exports); -__exportStar(require("./from-json.js"), exports); -__exportStar(require("./merge.js"), exports); -var extensions_js_1 = require("./extensions.js"); -Object.defineProperty(exports, "hasExtension", { enumerable: true, get: function () { return extensions_js_1.hasExtension; } }); -Object.defineProperty(exports, "getExtension", { enumerable: true, get: function () { return extensions_js_1.getExtension; } }); -Object.defineProperty(exports, "setExtension", { enumerable: true, get: function () { return extensions_js_1.setExtension; } }); -Object.defineProperty(exports, "clearExtension", { enumerable: true, get: function () { return extensions_js_1.clearExtension; } }); -Object.defineProperty(exports, "hasOption", { enumerable: true, get: function () { return extensions_js_1.hasOption; } }); -Object.defineProperty(exports, "getOption", { enumerable: true, get: function () { return extensions_js_1.getOption; } }); -__exportStar(require("./proto-int64.js"), exports); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/is-message.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/is-message.d.ts deleted file mode 100644 index 085782d..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/is-message.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { MessageShape } from "./types.js"; -import type { DescMessage } from "./descriptors.js"; -/** - * Determine whether the given `arg` is a message. - * If `desc` is set, determine whether `arg` is this specific message. - */ -export declare function isMessage(arg: unknown, schema?: Desc): arg is MessageShape; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/is-message.js b/node_modules/@bufbuild/protobuf/dist/cjs/is-message.js deleted file mode 100644 index 438a86b..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/is-message.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isMessage = isMessage; -/** - * Determine whether the given `arg` is a message. - * If `desc` is set, determine whether `arg` is this specific message. - */ -function isMessage(arg, schema) { - const isMessage = arg !== null && - typeof arg == "object" && - "$typeName" in arg && - typeof arg.$typeName == "string"; - if (!isMessage) { - return false; - } - if (schema === undefined) { - return true; - } - return schema.typeName === arg.$typeName; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/json-value.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/json-value.d.ts deleted file mode 100644 index 3857eb8..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/json-value.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Represents any possible JSON value: - * - number - * - string - * - boolean - * - null - * - object (with any JSON value as property) - * - array (with any JSON value as element) - */ -export type JsonValue = number | string | boolean | null | JsonObject | JsonValue[]; -/** - * Represents a JSON object. - */ -export type JsonObject = { - [k: string]: JsonValue; -}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/json-value.js b/node_modules/@bufbuild/protobuf/dist/cjs/json-value.js deleted file mode 100644 index c14a1ee..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/json-value.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/merge.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/merge.d.ts deleted file mode 100644 index aad01ed..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/merge.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { MessageShape } from "./types.js"; -import type { DescMessage } from "./descriptors.js"; -/** - * Merge message `source` into message `target`, following Protobuf semantics. - * - * This is the same as serializing the source message, then deserializing it - * into the target message via `mergeFromBinary()`, with one difference: - * While serialization will create a copy of all values, `merge()` will copy - * the reference for `bytes` and messages. - * - * Also see https://protobuf.com/docs/language-spec#merging-protobuf-messages - */ -export declare function merge(schema: Desc, target: MessageShape, source: MessageShape): void; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/merge.js b/node_modules/@bufbuild/protobuf/dist/cjs/merge.js deleted file mode 100644 index be7599e..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/merge.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.merge = merge; -const reflect_js_1 = require("./reflect/reflect.js"); -/** - * Merge message `source` into message `target`, following Protobuf semantics. - * - * This is the same as serializing the source message, then deserializing it - * into the target message via `mergeFromBinary()`, with one difference: - * While serialization will create a copy of all values, `merge()` will copy - * the reference for `bytes` and messages. - * - * Also see https://protobuf.com/docs/language-spec#merging-protobuf-messages - */ -function merge(schema, target, source) { - reflectMerge((0, reflect_js_1.reflect)(schema, target), (0, reflect_js_1.reflect)(schema, source)); -} -function reflectMerge(target, source) { - var _a; - var _b; - const sourceUnknown = source.message.$unknown; - if (sourceUnknown !== undefined && sourceUnknown.length > 0) { - (_a = (_b = target.message).$unknown) !== null && _a !== void 0 ? _a : (_b.$unknown = []); - target.message.$unknown.push(...sourceUnknown); - } - for (const f of target.fields) { - if (!source.isSet(f)) { - continue; - } - switch (f.fieldKind) { - case "scalar": - case "enum": - target.set(f, source.get(f)); - break; - case "message": - if (target.isSet(f)) { - reflectMerge(target.get(f), source.get(f)); - } - else { - target.set(f, source.get(f)); - } - break; - case "list": - const list = target.get(f); - for (const e of source.get(f)) { - list.add(e); - } - break; - case "map": - const map = target.get(f); - for (const [k, v] of source.get(f)) { - map.set(k, v); - } - break; - } - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/package.json b/node_modules/@bufbuild/protobuf/dist/cjs/package.json deleted file mode 100644 index 729ac4d..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/package.json +++ /dev/null @@ -1 +0,0 @@ -{"type":"commonjs"} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.d.ts deleted file mode 100644 index 3eaf231..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Int64Support for the current environment. - */ -export declare const protoInt64: Int64Support; -/** - * We use the `bigint` primitive to represent 64-bit integral types. If bigint - * is unavailable, we fall back to a string representation, which means that - * all values typed as `bigint` will actually be strings. - * - * If your code is intended to run in an environment where bigint may be - * unavailable, it must handle both the bigint and the string representation. - * For presenting values, this is straight-forward with implicit or explicit - * conversion to string: - * - * ```ts - * let el = document.createElement("span"); - * el.innerText = message.int64Field; // assuming a protobuf int64 field - * - * console.log(`int64: ${message.int64Field}`); - * - * let str: string = message.int64Field.toString(); - * ``` - * - * If you need to manipulate 64-bit integral values and are sure the values - * can be safely represented as an IEEE-754 double precision number, you can - * convert to a JavaScript Number: - * - * ```ts - * console.log(message.int64Field.toString()) - * let num = Number(message.int64Field); - * num = num + 1; - * message.int64Field = protoInt64.parse(num); - * ``` - * - * If you need to manipulate 64-bit integral values that are outside the - * range of safe representation as a JavaScript Number, we recommend you - * use a third party library, for example the npm package "long": - * - * ```ts - * // convert the field value to a Long - * const bits = protoInt64.enc(message.int64Field); - * const longValue = Long.fromBits(bits.lo, bits.hi); - * - * // perform arithmetic - * const longResult = longValue.subtract(1); - * - * // set the result in the field - * message.int64Field = protoInt64.dec(longResult.low, longResult.high); - * - * // Assuming int64Field contains 9223372036854775807: - * console.log(message.int64Field); // 9223372036854775806 - * ``` - */ -interface Int64Support { - /** - * 0n if bigint is available, "0" if unavailable. - */ - readonly zero: bigint; - /** - * Is bigint available? - */ - readonly supported: boolean; - /** - * Parse a signed 64-bit integer. - * Returns a bigint if available, a string otherwise. - */ - parse(value: string | number | bigint): bigint; - /** - * Parse an unsigned 64-bit integer. - * Returns a bigint if available, a string otherwise. - */ - uParse(value: string | number | bigint): bigint; - /** - * Convert a signed 64-bit integral value to a two's complement. - */ - enc(value: string | number | bigint): { - lo: number; - hi: number; - }; - /** - * Convert an unsigned 64-bit integral value to a two's complement. - */ - uEnc(value: string | number | bigint): { - lo: number; - hi: number; - }; - /** - * Convert a two's complement to a signed 64-bit integral value. - * Returns a bigint if available, a string otherwise. - */ - dec(lo: number, hi: number): bigint; - /** - * Convert a two's complement to an unsigned 64-bit integral value. - * Returns a bigint if available, a string otherwise. - */ - uDec(lo: number, hi: number): bigint; -} -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.js b/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.js deleted file mode 100644 index 0b44018..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.js +++ /dev/null @@ -1,129 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.protoInt64 = void 0; -const varint_js_1 = require("./wire/varint.js"); -/** - * Int64Support for the current environment. - */ -exports.protoInt64 = makeInt64Support(); -function makeInt64Support() { - const dv = new DataView(new ArrayBuffer(8)); - // note that Safari 14 implements BigInt, but not the DataView methods - const ok = typeof BigInt === "function" && - typeof dv.getBigInt64 === "function" && - typeof dv.getBigUint64 === "function" && - typeof dv.setBigInt64 === "function" && - typeof dv.setBigUint64 === "function" && - (typeof process != "object" || - typeof process.env != "object" || - process.env.BUF_BIGINT_DISABLE !== "1"); - if (ok) { - const MIN = BigInt("-9223372036854775808"); - const MAX = BigInt("9223372036854775807"); - const UMIN = BigInt("0"); - const UMAX = BigInt("18446744073709551615"); - return { - zero: BigInt(0), - supported: true, - parse(value) { - const bi = typeof value == "bigint" ? value : BigInt(value); - if (bi > MAX || bi < MIN) { - throw new Error(`invalid int64: ${value}`); - } - return bi; - }, - uParse(value) { - const bi = typeof value == "bigint" ? value : BigInt(value); - if (bi > UMAX || bi < UMIN) { - throw new Error(`invalid uint64: ${value}`); - } - return bi; - }, - enc(value) { - dv.setBigInt64(0, this.parse(value), true); - return { - lo: dv.getInt32(0, true), - hi: dv.getInt32(4, true), - }; - }, - uEnc(value) { - dv.setBigInt64(0, this.uParse(value), true); - return { - lo: dv.getInt32(0, true), - hi: dv.getInt32(4, true), - }; - }, - dec(lo, hi) { - dv.setInt32(0, lo, true); - dv.setInt32(4, hi, true); - return dv.getBigInt64(0, true); - }, - uDec(lo, hi) { - dv.setInt32(0, lo, true); - dv.setInt32(4, hi, true); - return dv.getBigUint64(0, true); - }, - }; - } - return { - zero: "0", - supported: false, - parse(value) { - if (typeof value != "string") { - value = value.toString(); - } - assertInt64String(value); - return value; - }, - uParse(value) { - if (typeof value != "string") { - value = value.toString(); - } - assertUInt64String(value); - return value; - }, - enc(value) { - if (typeof value != "string") { - value = value.toString(); - } - assertInt64String(value); - return (0, varint_js_1.int64FromString)(value); - }, - uEnc(value) { - if (typeof value != "string") { - value = value.toString(); - } - assertUInt64String(value); - return (0, varint_js_1.int64FromString)(value); - }, - dec(lo, hi) { - return (0, varint_js_1.int64ToString)(lo, hi); - }, - uDec(lo, hi) { - return (0, varint_js_1.uInt64ToString)(lo, hi); - }, - }; -} -function assertInt64String(value) { - if (!/^-?[0-9]+$/.test(value)) { - throw new Error("invalid int64: " + value); - } -} -function assertUInt64String(value) { - if (!/^[0-9]+$/.test(value)) { - throw new Error("invalid uint64: " + value); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/error.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/error.d.ts deleted file mode 100644 index c6bf1db..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/error.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { DescField, DescOneof } from "../descriptors.js"; -declare const errorNames: string[]; -export declare class FieldError extends Error { - readonly name: (typeof errorNames)[number]; - constructor(fieldOrOneof: DescField | DescOneof, message: string, name?: (typeof errorNames)[number]); - readonly field: () => DescField | DescOneof; -} -export declare function isFieldError(arg: unknown): arg is FieldError; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/error.js b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/error.js deleted file mode 100644 index 79bdb73..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/error.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FieldError = void 0; -exports.isFieldError = isFieldError; -const errorNames = [ - "FieldValueInvalidError", - "FieldListRangeError", - "ForeignFieldError", -]; -class FieldError extends Error { - constructor(fieldOrOneof, message, name = "FieldValueInvalidError") { - super(message); - this.name = name; - this.field = () => fieldOrOneof; - } -} -exports.FieldError = FieldError; -function isFieldError(arg) { - return (arg instanceof Error && - errorNames.includes(arg.name) && - "field" in arg && - typeof arg.field == "function"); -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/guard.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/guard.d.ts deleted file mode 100644 index c53aeb2..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/guard.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type { Message } from "../types.js"; -import type { ScalarValue } from "./scalar.js"; -import type { ReflectList, ReflectMap, ReflectMessage } from "./reflect-types.js"; -import type { DescField, DescMessage } from "../descriptors.js"; -export declare function isObject(arg: unknown): arg is Record; -export declare function isOneofADT(arg: unknown): arg is OneofADT; -export type OneofADT = { - case: undefined; - value?: undefined; -} | { - case: string; - value: Message | ScalarValue; -}; -export declare function isReflectList(arg: unknown, field?: DescField & { - fieldKind: "list"; -}): arg is ReflectList; -export declare function isReflectMap(arg: unknown, field?: DescField & { - fieldKind: "map"; -}): arg is ReflectMap; -export declare function isReflectMessage(arg: unknown, messageDesc?: DescMessage): arg is ReflectMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/guard.js b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/guard.js deleted file mode 100644 index ebf01d4..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/guard.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isObject = isObject; -exports.isOneofADT = isOneofADT; -exports.isReflectList = isReflectList; -exports.isReflectMap = isReflectMap; -exports.isReflectMessage = isReflectMessage; -const unsafe_js_1 = require("./unsafe.js"); -function isObject(arg) { - return arg !== null && typeof arg == "object" && !Array.isArray(arg); -} -function isOneofADT(arg) { - return (arg !== null && - typeof arg == "object" && - "case" in arg && - ((typeof arg.case == "string" && "value" in arg && arg.value != null) || - (arg.case === undefined && - (!("value" in arg) || arg.value === undefined)))); -} -function isReflectList(arg, field) { - var _a, _b, _c, _d; - if (isObject(arg) && - unsafe_js_1.unsafeLocal in arg && - "add" in arg && - "field" in arg && - typeof arg.field == "function") { - if (field !== undefined) { - const a = field; - const b = arg.field(); - return (a.listKind == b.listKind && - a.scalar === b.scalar && - ((_a = a.message) === null || _a === void 0 ? void 0 : _a.typeName) === ((_b = b.message) === null || _b === void 0 ? void 0 : _b.typeName) && - ((_c = a.enum) === null || _c === void 0 ? void 0 : _c.typeName) === ((_d = b.enum) === null || _d === void 0 ? void 0 : _d.typeName)); - } - return true; - } - return false; -} -function isReflectMap(arg, field) { - var _a, _b, _c, _d; - if (isObject(arg) && - unsafe_js_1.unsafeLocal in arg && - "has" in arg && - "field" in arg && - typeof arg.field == "function") { - if (field !== undefined) { - const a = field, b = arg.field(); - return (a.mapKey === b.mapKey && - a.mapKind == b.mapKind && - a.scalar === b.scalar && - ((_a = a.message) === null || _a === void 0 ? void 0 : _a.typeName) === ((_b = b.message) === null || _b === void 0 ? void 0 : _b.typeName) && - ((_c = a.enum) === null || _c === void 0 ? void 0 : _c.typeName) === ((_d = b.enum) === null || _d === void 0 ? void 0 : _d.typeName)); - } - return true; - } - return false; -} -function isReflectMessage(arg, messageDesc) { - return (isObject(arg) && - unsafe_js_1.unsafeLocal in arg && - "desc" in arg && - isObject(arg.desc) && - arg.desc.kind === "message" && - (messageDesc === undefined || arg.desc.typeName == messageDesc.typeName)); -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/index.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/index.d.ts deleted file mode 100644 index 97a7130..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./error.js"; -export * from "./names.js"; -export * from "./nested-types.js"; -export * from "./reflect.js"; -export * from "./reflect-types.js"; -export * from "./scalar.js"; -export * from "./path.js"; -export { isReflectList, isReflectMap, isReflectMessage } from "./guard.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/index.js b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/index.js deleted file mode 100644 index 59c48ca..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/index.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isReflectMessage = exports.isReflectMap = exports.isReflectList = void 0; -__exportStar(require("./error.js"), exports); -__exportStar(require("./names.js"), exports); -__exportStar(require("./nested-types.js"), exports); -__exportStar(require("./reflect.js"), exports); -__exportStar(require("./reflect-types.js"), exports); -__exportStar(require("./scalar.js"), exports); -__exportStar(require("./path.js"), exports); -var guard_js_1 = require("./guard.js"); -Object.defineProperty(exports, "isReflectList", { enumerable: true, get: function () { return guard_js_1.isReflectList; } }); -Object.defineProperty(exports, "isReflectMap", { enumerable: true, get: function () { return guard_js_1.isReflectMap; } }); -Object.defineProperty(exports, "isReflectMessage", { enumerable: true, get: function () { return guard_js_1.isReflectMessage; } }); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/names.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/names.d.ts deleted file mode 100644 index 3824c63..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/names.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { AnyDesc } from "../descriptors.js"; -/** - * Return a fully-qualified name for a Protobuf descriptor. - * For a file descriptor, return the original file path. - * - * See https://protobuf.com/docs/language-spec#fully-qualified-names - */ -export declare function qualifiedName(desc: AnyDesc): string; -/** - * Converts snake_case to protoCamelCase according to the convention - * used by protoc to convert a field name to a JSON name. - */ -export declare function protoCamelCase(snakeCase: string): string; -/** - * Escapes names that are reserved for ECMAScript built-in object properties. - * - * Also see safeIdentifier() from @bufbuild/protoplugin. - */ -export declare function safeObjectProperty(name: string): string; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/names.js b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/names.js deleted file mode 100644 index 873e694..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/names.js +++ /dev/null @@ -1,101 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.qualifiedName = qualifiedName; -exports.protoCamelCase = protoCamelCase; -exports.safeObjectProperty = safeObjectProperty; -/** - * Return a fully-qualified name for a Protobuf descriptor. - * For a file descriptor, return the original file path. - * - * See https://protobuf.com/docs/language-spec#fully-qualified-names - */ -function qualifiedName(desc) { - switch (desc.kind) { - case "field": - case "oneof": - case "rpc": - return desc.parent.typeName + "." + desc.name; - case "enum_value": { - const p = desc.parent.parent - ? desc.parent.parent.typeName - : desc.parent.file.proto.package; - return p + (p.length > 0 ? "." : "") + desc.name; - } - case "service": - case "message": - case "enum": - case "extension": - return desc.typeName; - case "file": - return desc.proto.name; - } -} -/** - * Converts snake_case to protoCamelCase according to the convention - * used by protoc to convert a field name to a JSON name. - */ -function protoCamelCase(snakeCase) { - let capNext = false; - const b = []; - for (let i = 0; i < snakeCase.length; i++) { - let c = snakeCase.charAt(i); - switch (c) { - case "_": - capNext = true; - break; - case "0": - case "1": - case "2": - case "3": - case "4": - case "5": - case "6": - case "7": - case "8": - case "9": - b.push(c); - capNext = false; - break; - default: - if (capNext) { - capNext = false; - c = c.toUpperCase(); - } - b.push(c); - break; - } - } - return b.join(""); -} -/** - * Names that cannot be used for object properties because they are reserved - * by built-in JavaScript properties. - */ -const reservedObjectProperties = new Set([ - // names reserved by JavaScript - "constructor", - "toString", - "toJSON", - "valueOf", -]); -/** - * Escapes names that are reserved for ECMAScript built-in object properties. - * - * Also see safeIdentifier() from @bufbuild/protoplugin. - */ -function safeObjectProperty(name) { - return reservedObjectProperties.has(name) ? name + "$" : name; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/nested-types.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/nested-types.d.ts deleted file mode 100644 index 3817501..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/nested-types.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type { AnyDesc, DescEnum, DescExtension, DescFile, DescMessage, DescService } from "../descriptors.js"; -/** - * Iterate over all types - enumerations, extensions, services, messages - - * and enumerations, extensions and messages nested in messages. - */ -export declare function nestedTypes(desc: DescFile | DescMessage): Iterable; -/** - * Iterate over types referenced by fields of the given message. - * - * For example: - * - * ```proto - * syntax="proto3"; - * - * message Example { - * Msg singular = 1; - * repeated Level list = 2; - * } - * - * message Msg {} - * - * enum Level { - * LEVEL_UNSPECIFIED = 0; - * } - * ``` - * - * The message Example references the message Msg, and the enum Level. - */ -export declare function usedTypes(descMessage: DescMessage): Iterable; -/** - * Returns the ancestors of a given Protobuf element, up to the file. - */ -export declare function parentTypes(desc: AnyDesc): Parent[]; -type Parent = DescFile | DescEnum | DescMessage | DescService; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/nested-types.js b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/nested-types.js deleted file mode 100644 index 330e5cb..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/nested-types.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.nestedTypes = nestedTypes; -exports.usedTypes = usedTypes; -exports.parentTypes = parentTypes; -/** - * Iterate over all types - enumerations, extensions, services, messages - - * and enumerations, extensions and messages nested in messages. - */ -function* nestedTypes(desc) { - switch (desc.kind) { - case "file": - for (const message of desc.messages) { - yield message; - yield* nestedTypes(message); - } - yield* desc.enums; - yield* desc.services; - yield* desc.extensions; - break; - case "message": - for (const message of desc.nestedMessages) { - yield message; - yield* nestedTypes(message); - } - yield* desc.nestedEnums; - yield* desc.nestedExtensions; - break; - } -} -/** - * Iterate over types referenced by fields of the given message. - * - * For example: - * - * ```proto - * syntax="proto3"; - * - * message Example { - * Msg singular = 1; - * repeated Level list = 2; - * } - * - * message Msg {} - * - * enum Level { - * LEVEL_UNSPECIFIED = 0; - * } - * ``` - * - * The message Example references the message Msg, and the enum Level. - */ -function usedTypes(descMessage) { - return usedTypesInternal(descMessage, new Set()); -} -function* usedTypesInternal(descMessage, seen) { - var _a, _b; - for (const field of descMessage.fields) { - const ref = (_b = (_a = field.enum) !== null && _a !== void 0 ? _a : field.message) !== null && _b !== void 0 ? _b : undefined; - if (!ref || seen.has(ref.typeName)) { - continue; - } - seen.add(ref.typeName); - yield ref; - if (ref.kind == "message") { - yield* usedTypesInternal(ref, seen); - } - } -} -/** - * Returns the ancestors of a given Protobuf element, up to the file. - */ -function parentTypes(desc) { - const parents = []; - while (desc.kind !== "file") { - const p = parent(desc); - desc = p; - parents.push(p); - } - return parents; -} -function parent(desc) { - var _a; - switch (desc.kind) { - case "enum_value": - case "field": - case "oneof": - case "rpc": - return desc.parent; - case "service": - return desc.file; - case "extension": - case "enum": - case "message": - return (_a = desc.parent) !== null && _a !== void 0 ? _a : desc.file; - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/path.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/path.d.ts deleted file mode 100644 index cb352b2..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/path.d.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { type DescExtension, type DescField, type DescMessage, type DescOneof } from "../descriptors.js"; -import type { Registry } from "../registry.js"; -/** - * A path to a (nested) member of a Protobuf message, such as a field, oneof, - * extension, list element, or map entry. - * - * Note that we may add additional types to this union in the future to support - * more use cases. - */ -export type Path = (DescField | DescExtension | DescOneof | { - kind: "list_sub"; - index: number; -} | { - kind: "map_sub"; - key: string | number | bigint | boolean; -})[]; -/** - * Builds a Path. - */ -export type PathBuilder = { - /** - * The root message of the path. - */ - readonly schema: DescMessage; - /** - * Add field access. - * - * Throws an InvalidPathError if the field cannot be added to the path. - */ - field(field: DescField): PathBuilder; - /** - * Access a oneof. - * - * Throws an InvalidPathError if the oneof cannot be added to the path. - * - */ - oneof(oneof: DescOneof): PathBuilder; - /** - * Access an extension. - * - * Throws an InvalidPathError if the extension cannot be added to the path. - */ - extension(extension: DescExtension): PathBuilder; - /** - * Access a list field by index. - * - * Throws an InvalidPathError if the list access cannot be added to the path. - */ - list(index: number): PathBuilder; - /** - * Access a map field by key. - * - * Throws an InvalidPathError if the map access cannot be added to the path. - */ - map(key: string | number | bigint | boolean): PathBuilder; - /** - * Append a path. - * - * Throws an InvalidPathError if the path cannot be added. - */ - add(path: Path | PathBuilder): PathBuilder; - /** - * Return the path. - */ - toPath(): Path; - /** - * Create a copy of this builder. - */ - clone(): PathBuilder; - /** - * Get the current container - a list, map, or message. - */ - getLeft(): DescMessage | (DescField & { - fieldKind: "list"; - }) | (DescField & { - fieldKind: "map"; - }) | undefined; -}; -/** - * Create a PathBuilder. - */ -export declare function buildPath(schema: DescMessage): PathBuilder; -/** - * Parse a Path from a string. - * - * Throws an InvalidPathError if the path is invalid. - * - * Note that a Registry must be provided via the options argument to parse - * paths that refer to an extension. - */ -export declare function parsePath(schema: DescMessage, path: string, options?: { - registry?: Registry; -}): Path; -/** - * Stringify a path. - */ -export declare function pathToString(path: Path): string; -/** - * InvalidPathError is thrown for invalid Paths, for example during parsing from - * a string, or when a new Path is built. - */ -export declare class InvalidPathError extends Error { - name: string; - readonly schema: DescMessage; - readonly path: Path | string; - constructor(schema: DescMessage, message: string, path: string | Path); -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/path.js b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/path.js deleted file mode 100644 index 6acbeba..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/path.js +++ /dev/null @@ -1,376 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InvalidPathError = void 0; -exports.buildPath = buildPath; -exports.parsePath = parsePath; -exports.pathToString = pathToString; -const descriptors_js_1 = require("../descriptors.js"); -/** - * Create a PathBuilder. - */ -function buildPath(schema) { - return new PathBuilderImpl(schema, schema, []); -} -/** - * Parse a Path from a string. - * - * Throws an InvalidPathError if the path is invalid. - * - * Note that a Registry must be provided via the options argument to parse - * paths that refer to an extension. - */ -function parsePath(schema, path, options) { - var _a, _b; - const builder = new PathBuilderImpl(schema, schema, []); - const err = (message, i) => new InvalidPathError(schema, message + " at column " + (i + 1), path); - for (let i = 0; i < path.length;) { - const token = nextToken(i, path); - const left = builder.getLeft(); - let right = undefined; - if ("field" in token) { - right = - (left === null || left === void 0 ? void 0 : left.kind) != "message" - ? undefined - : ((_a = left.fields.find((field) => field.name === token.field)) !== null && _a !== void 0 ? _a : left.oneofs.find((oneof) => oneof.name === token.field)); - if (!right) { - throw err(`Unknown field "${token.field}"`, i); - } - } - else if ("ext" in token) { - right = (_b = options === null || options === void 0 ? void 0 : options.registry) === null || _b === void 0 ? void 0 : _b.getExtension(token.ext); - if (!right) { - throw err(`Unknown extension "${token.ext}"`, i); - } - } - else if ("val" in token) { - // list or map - right = - (left === null || left === void 0 ? void 0 : left.kind) == "field" && - left.fieldKind == "list" && - typeof token.val == "bigint" - ? { kind: "list_sub", index: Number(token.val) } - : { kind: "map_sub", key: token.val }; - } - else if ("err" in token) { - throw err(token.err, token.i); - } - if (right) { - try { - builder.add([right]); - } - catch (e) { - throw err(e instanceof InvalidPathError ? e.message : String(e), i); - } - } - i = token.i; - } - return builder.toPath(); -} -/** - * Stringify a path. - */ -function pathToString(path) { - const str = []; - for (const ele of path) { - switch (ele.kind) { - case "field": - case "oneof": - if (str.length > 0) { - str.push("."); - } - str.push(ele.name); - break; - case "extension": - str.push("[", ele.typeName, "]"); - break; - case "list_sub": - str.push("[", ele.index, "]"); - break; - case "map_sub": - if (typeof ele.key == "string") { - str.push('["', ele.key - .split("\\") - .join("\\\\") - .split('"') - .join('\\"') - .split("\r") - .join("\\r") - .split("\n") - .join("\\n"), '"]'); - } - else { - str.push("[", ele.key, "]"); - } - break; - } - } - return str.join(""); -} -/** - * InvalidPathError is thrown for invalid Paths, for example during parsing from - * a string, or when a new Path is built. - */ -class InvalidPathError extends Error { - constructor(schema, message, path) { - super(message); - this.name = "InvalidPathError"; - this.schema = schema; - this.path = path; - // see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#example - Object.setPrototypeOf(this, new.target.prototype); - } -} -exports.InvalidPathError = InvalidPathError; -class PathBuilderImpl { - constructor(schema, left, path) { - this.schema = schema; - this.left = left; - this.path = path; - } - getLeft() { - return this.left; - } - field(field) { - return this.push(field); - } - oneof(oneof) { - return this.push(oneof); - } - extension(extension) { - return this.push(extension); - } - list(index) { - return this.push({ kind: "list_sub", index }); - } - map(key) { - return this.push({ kind: "map_sub", key }); - } - add(pathOrBuilder) { - const path = Array.isArray(pathOrBuilder) - ? pathOrBuilder - : pathOrBuilder.toPath(); - const l = this.path.length; - try { - for (const ele of path) { - this.push(ele); - } - } - catch (e) { - // undo pushes - this.path.splice(l); - throw e; - } - return this; - } - toPath() { - return this.path.concat(); - } - clone() { - return new PathBuilderImpl(this.schema, this.left, this.path.concat()); - } - push(ele) { - switch (ele.kind) { - case "field": - if (!this.left || - this.left.kind != "message" || - this.left.typeName != ele.parent.typeName) { - throw this.err("field access"); - } - this.path.push(ele); - this.left = - ele.fieldKind == "message" - ? ele.message - : ele.fieldKind == "list" || ele.fieldKind == "map" - ? ele - : undefined; - return this; - case "oneof": - if (!this.left || - this.left.kind != "message" || - this.left.typeName != ele.parent.typeName) { - throw this.err("oneof access"); - } - this.path.push(ele); - this.left = undefined; - return this; - case "extension": - if (!this.left || - this.left.kind != "message" || - this.left.typeName != ele.extendee.typeName) { - throw this.err("extension access"); - } - this.path.push(ele); - this.left = ele.fieldKind == "message" ? ele.message : undefined; - return this; - case "list_sub": - if (!this.left || - this.left.kind != "field" || - this.left.fieldKind != "list") { - throw this.err("list access"); - } - if (ele.index < 0 || !Number.isInteger(ele.index)) { - throw this.err("list index"); - } - this.path.push(ele); - this.left = - this.left.listKind == "message" ? this.left.message : undefined; - return this; - case "map_sub": - if (!this.left || - this.left.kind != "field" || - this.left.fieldKind != "map") { - throw this.err("map access"); - } - if (!checkKeyType(ele.key, this.left.mapKey)) { - throw this.err("map key"); - } - this.path.push(ele); - this.left = - this.left.mapKind == "message" ? this.left.message : undefined; - return this; - } - } - err(what) { - return new InvalidPathError(this.schema, "Invalid " + what, this.path); - } -} -function checkKeyType(key, type) { - switch (type) { - case descriptors_js_1.ScalarType.STRING: - return typeof key == "string"; - case descriptors_js_1.ScalarType.INT32: - case descriptors_js_1.ScalarType.UINT32: - case descriptors_js_1.ScalarType.SINT32: - case descriptors_js_1.ScalarType.SFIXED32: - case descriptors_js_1.ScalarType.FIXED32: - return typeof key == "number"; - case descriptors_js_1.ScalarType.UINT64: - case descriptors_js_1.ScalarType.INT64: - case descriptors_js_1.ScalarType.FIXED64: - case descriptors_js_1.ScalarType.SFIXED64: - case descriptors_js_1.ScalarType.SINT64: - return typeof key == "bigint"; - case descriptors_js_1.ScalarType.BOOL: - return typeof key == "boolean"; - } -} -function nextToken(i, path) { - const re_extension = /^[A-Za-z_][A-Za-z_0-9]*(?:\.[A-Za-z_][A-Za-z_0-9]*)*$/; - const re_field = /^[A-Za-z_][A-Za-z_0-9]*$/; - if (path[i] == "[") { - i++; - while (path[i] == " ") { - // skip leading whitespace - i++; - } - if (i >= path.length) { - return { err: "Premature end", i: path.length - 1 }; - } - let token; - if (path[i] == `"`) { - // string literal - i++; - let val = ""; - for (;;) { - if (path[i] == `"`) { - // end of string literal - i++; - break; - } - if (path[i] == "\\") { - switch (path[i + 1]) { - case `"`: - case "\\": - val += path[i + 1]; - break; - case "r": - val += "\r"; - break; - case "n": - val += "\n"; - break; - default: - return { err: "Invalid escape sequence", i }; - } - i++; - } - else { - val += path[i]; - } - if (i >= path.length) { - return { err: "Premature end of string", i: path.length - 1 }; - } - i++; - } - token = { val }; - } - else if (path[i].match(/\d/)) { - // integer literal - const start = i; - while (i < path.length && /\d/.test(path[i])) { - i++; - } - token = { val: BigInt(path.substring(start, i)) }; - } - else if (path[i] == "]") { - return { err: "Premature ]", i }; - } - else { - // extension identifier or bool literal - const start = i; - while (i < path.length && path[i] != " " && path[i] != "]") { - i++; - } - const name = path.substring(start, i); - if (name === "true") { - token = { val: true }; - } - else if (name === "false") { - token = { val: false }; - } - else if (re_extension.test(name)) { - token = { ext: name }; - } - else { - return { err: "Invalid ident", i: start }; - } - } - while (path[i] == " ") { - // skip trailing whitespace - i++; - } - if (path[i] != "]") { - return { err: "Missing ]", i }; - } - i++; - return Object.assign(Object.assign({}, token), { i }); - } - // field identifier - if (i > 0) { - if (path[i] != ".") { - return { err: `Expected "."`, i }; - } - i++; - } - const start = i; - while (i < path.length && path[i] != "." && path[i] != "[") { - i++; - } - const field = path.substring(start, i); - return re_field.test(field) - ? { field, i } - : { err: "Invalid ident", i: start }; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-check.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-check.d.ts deleted file mode 100644 index 63f27b9..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-check.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { type DescField } from "../descriptors.js"; -import { FieldError } from "./error.js"; -/** - * Check whether the given field value is valid for the reflect API. - */ -export declare function checkField(field: DescField, value: unknown): FieldError | undefined; -/** - * Check whether the given list item is valid for the reflect API. - */ -export declare function checkListItem(field: DescField & { - fieldKind: "list"; -}, index: number, value: unknown): FieldError | undefined; -/** - * Check whether the given map key and value are valid for the reflect API. - */ -export declare function checkMapEntry(field: DescField & { - fieldKind: "map"; -}, key: unknown, value: unknown): FieldError | undefined; -export declare function formatVal(val: unknown): string; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-check.js b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-check.js deleted file mode 100644 index caa7557..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-check.js +++ /dev/null @@ -1,266 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkField = checkField; -exports.checkListItem = checkListItem; -exports.checkMapEntry = checkMapEntry; -exports.formatVal = formatVal; -const descriptors_js_1 = require("../descriptors.js"); -const is_message_js_1 = require("../is-message.js"); -const error_js_1 = require("./error.js"); -const guard_js_1 = require("./guard.js"); -const binary_encoding_js_1 = require("../wire/binary-encoding.js"); -const text_encoding_js_1 = require("../wire/text-encoding.js"); -const proto_int64_js_1 = require("../proto-int64.js"); -/** - * Check whether the given field value is valid for the reflect API. - */ -function checkField(field, value) { - const check = field.fieldKind == "list" - ? (0, guard_js_1.isReflectList)(value, field) - : field.fieldKind == "map" - ? (0, guard_js_1.isReflectMap)(value, field) - : checkSingular(field, value); - if (check === true) { - return undefined; - } - let reason; - switch (field.fieldKind) { - case "list": - reason = `expected ${formatReflectList(field)}, got ${formatVal(value)}`; - break; - case "map": - reason = `expected ${formatReflectMap(field)}, got ${formatVal(value)}`; - break; - default: { - reason = reasonSingular(field, value, check); - } - } - return new error_js_1.FieldError(field, reason); -} -/** - * Check whether the given list item is valid for the reflect API. - */ -function checkListItem(field, index, value) { - const check = checkSingular(field, value); - if (check !== true) { - return new error_js_1.FieldError(field, `list item #${index + 1}: ${reasonSingular(field, value, check)}`); - } - return undefined; -} -/** - * Check whether the given map key and value are valid for the reflect API. - */ -function checkMapEntry(field, key, value) { - const checkKey = checkScalarValue(key, field.mapKey); - if (checkKey !== true) { - return new error_js_1.FieldError(field, `invalid map key: ${reasonSingular({ scalar: field.mapKey }, key, checkKey)}`); - } - const checkVal = checkSingular(field, value); - if (checkVal !== true) { - return new error_js_1.FieldError(field, `map entry ${formatVal(key)}: ${reasonSingular(field, value, checkVal)}`); - } - return undefined; -} -function checkSingular(field, value) { - if (field.scalar !== undefined) { - return checkScalarValue(value, field.scalar); - } - if (field.enum !== undefined) { - if (field.enum.open) { - return Number.isInteger(value); - } - return field.enum.values.some((v) => v.number === value); - } - return (0, guard_js_1.isReflectMessage)(value, field.message); -} -function checkScalarValue(value, scalar) { - switch (scalar) { - case descriptors_js_1.ScalarType.DOUBLE: - return typeof value == "number"; - case descriptors_js_1.ScalarType.FLOAT: - if (typeof value != "number") { - return false; - } - if (Number.isNaN(value) || !Number.isFinite(value)) { - return true; - } - if (value > binary_encoding_js_1.FLOAT32_MAX || value < binary_encoding_js_1.FLOAT32_MIN) { - return `${value.toFixed()} out of range`; - } - return true; - case descriptors_js_1.ScalarType.INT32: - case descriptors_js_1.ScalarType.SFIXED32: - case descriptors_js_1.ScalarType.SINT32: - // signed - if (typeof value !== "number" || !Number.isInteger(value)) { - return false; - } - if (value > binary_encoding_js_1.INT32_MAX || value < binary_encoding_js_1.INT32_MIN) { - return `${value.toFixed()} out of range`; - } - return true; - case descriptors_js_1.ScalarType.FIXED32: - case descriptors_js_1.ScalarType.UINT32: - // unsigned - if (typeof value !== "number" || !Number.isInteger(value)) { - return false; - } - if (value > binary_encoding_js_1.UINT32_MAX || value < 0) { - return `${value.toFixed()} out of range`; - } - return true; - case descriptors_js_1.ScalarType.BOOL: - return typeof value == "boolean"; - case descriptors_js_1.ScalarType.STRING: - if (typeof value != "string") { - return false; - } - return (0, text_encoding_js_1.getTextEncoding)().checkUtf8(value) || "invalid UTF8"; - case descriptors_js_1.ScalarType.BYTES: - return value instanceof Uint8Array; - case descriptors_js_1.ScalarType.INT64: - case descriptors_js_1.ScalarType.SFIXED64: - case descriptors_js_1.ScalarType.SINT64: - // signed - if (typeof value == "bigint" || - typeof value == "number" || - (typeof value == "string" && value.length > 0)) { - try { - proto_int64_js_1.protoInt64.parse(value); - return true; - } - catch (_) { - return `${value} out of range`; - } - } - return false; - case descriptors_js_1.ScalarType.FIXED64: - case descriptors_js_1.ScalarType.UINT64: - // unsigned - if (typeof value == "bigint" || - typeof value == "number" || - (typeof value == "string" && value.length > 0)) { - try { - proto_int64_js_1.protoInt64.uParse(value); - return true; - } - catch (_) { - return `${value} out of range`; - } - } - return false; - } -} -function reasonSingular(field, val, details) { - details = - typeof details == "string" ? `: ${details}` : `, got ${formatVal(val)}`; - if (field.scalar !== undefined) { - return `expected ${scalarTypeDescription(field.scalar)}` + details; - } - if (field.enum !== undefined) { - return `expected ${field.enum.toString()}` + details; - } - return `expected ${formatReflectMessage(field.message)}` + details; -} -function formatVal(val) { - switch (typeof val) { - case "object": - if (val === null) { - return "null"; - } - if (val instanceof Uint8Array) { - return `Uint8Array(${val.length})`; - } - if (Array.isArray(val)) { - return `Array(${val.length})`; - } - if ((0, guard_js_1.isReflectList)(val)) { - return formatReflectList(val.field()); - } - if ((0, guard_js_1.isReflectMap)(val)) { - return formatReflectMap(val.field()); - } - if ((0, guard_js_1.isReflectMessage)(val)) { - return formatReflectMessage(val.desc); - } - if ((0, is_message_js_1.isMessage)(val)) { - return `message ${val.$typeName}`; - } - return "object"; - case "string": - return val.length > 30 ? "string" : `"${val.split('"').join('\\"')}"`; - case "boolean": - return String(val); - case "number": - return String(val); - case "bigint": - return String(val) + "n"; - default: - // "symbol" | "undefined" | "object" | "function" - return typeof val; - } -} -function formatReflectMessage(desc) { - return `ReflectMessage (${desc.typeName})`; -} -function formatReflectList(field) { - switch (field.listKind) { - case "message": - return `ReflectList (${field.message.toString()})`; - case "enum": - return `ReflectList (${field.enum.toString()})`; - case "scalar": - return `ReflectList (${descriptors_js_1.ScalarType[field.scalar]})`; - } -} -function formatReflectMap(field) { - switch (field.mapKind) { - case "message": - return `ReflectMap (${descriptors_js_1.ScalarType[field.mapKey]}, ${field.message.toString()})`; - case "enum": - return `ReflectMap (${descriptors_js_1.ScalarType[field.mapKey]}, ${field.enum.toString()})`; - case "scalar": - return `ReflectMap (${descriptors_js_1.ScalarType[field.mapKey]}, ${descriptors_js_1.ScalarType[field.scalar]})`; - } -} -function scalarTypeDescription(scalar) { - switch (scalar) { - case descriptors_js_1.ScalarType.STRING: - return "string"; - case descriptors_js_1.ScalarType.BOOL: - return "boolean"; - case descriptors_js_1.ScalarType.INT64: - case descriptors_js_1.ScalarType.SINT64: - case descriptors_js_1.ScalarType.SFIXED64: - return "bigint (int64)"; - case descriptors_js_1.ScalarType.UINT64: - case descriptors_js_1.ScalarType.FIXED64: - return "bigint (uint64)"; - case descriptors_js_1.ScalarType.BYTES: - return "Uint8Array"; - case descriptors_js_1.ScalarType.DOUBLE: - return "number (float64)"; - case descriptors_js_1.ScalarType.FLOAT: - return "number (float32)"; - case descriptors_js_1.ScalarType.FIXED32: - case descriptors_js_1.ScalarType.UINT32: - return "number (uint32)"; - case descriptors_js_1.ScalarType.INT32: - case descriptors_js_1.ScalarType.SFIXED32: - case descriptors_js_1.ScalarType.SINT32: - return "number (int32)"; - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-types.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-types.d.ts deleted file mode 100644 index f300dd9..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-types.d.ts +++ /dev/null @@ -1,217 +0,0 @@ -import type { DescField, DescMessage, DescOneof } from "../descriptors.js"; -import { unsafeLocal } from "./unsafe.js"; -import type { Message, UnknownField } from "../types.js"; -import type { ScalarValue } from "./scalar.js"; -/** - * ReflectMessage provides dynamic access and manipulation of a message. - */ -export interface ReflectMessage { - /** - * The underlying message instance. - */ - readonly message: Message; - /** - * The descriptor for the message. - */ - readonly desc: DescMessage; - /** - * The fields of the message. This is a shortcut to message.fields. - */ - readonly fields: readonly DescField[]; - /** - * The fields of the message, sorted by field number ascending. - */ - readonly sortedFields: readonly DescField[]; - /** - * Oneof groups of the message. This is a shortcut to message.oneofs. - */ - readonly oneofs: readonly DescOneof[]; - /** - * Fields and oneof groups for this message. This is a shortcut to message.members. - */ - readonly members: readonly (DescField | DescOneof)[]; - /** - * Find a field by number. - */ - findNumber(number: number): DescField | undefined; - /** - * Returns true if the field is set. - * - * - Scalar and enum fields with implicit presence (proto3): - * Set if not a zero value. - * - * - Scalar and enum fields with explicit presence (proto2, oneof): - * Set if a value was set when creating or parsing the message, or when a - * value was assigned to the field's property. - * - * - Message fields: - * Set if the property is not undefined. - * - * - List and map fields: - * Set if not empty. - */ - isSet(field: DescField): boolean; - /** - * Resets the field, so that isSet() will return false. - */ - clear(field: DescField): void; - /** - * Return the selected field of a oneof group. - */ - oneofCase(oneof: DescOneof): DescField | undefined; - /** - * Returns the field value. Values are converted or wrapped to make it easier - * to manipulate messages. - * - * - Scalar fields: - * Returns the value, but converts 64-bit integer fields with the option - * `jstype=JS_STRING` to a bigint value. - * If the field is not set, the default value is returned. If no default - * value is set, the zero value is returned. - * - * - Enum fields: - * Returns the numeric value. If the field is not set, the default value is - * returned. If no default value is set, the zero value is returned. - * - * - Message fields: - * Returns a ReflectMessage. If the field is not set, a new message is - * returned, but not set on the field. - * - * - List fields: - * Returns a ReflectList object. - * - * - Map fields: - * Returns a ReflectMap object. - * - * Note that get() never returns `undefined`. To determine whether a field is - * set, use isSet(). - */ - get(field: Field): ReflectMessageGet; - /** - * Set a field value. - * - * Expects values in the same form that get() returns: - * - * - Scalar fields: - * 64-bit integer fields with the option `jstype=JS_STRING` as a bigint value. - * - * - Message fields: - * ReflectMessage. - * - * - List fields: - * ReflectList. - * - * - Map fields: - * ReflectMap. - * - * Throws an error if the value is invalid for the field. `undefined` is not - * a valid value. To reset a field, use clear(). - */ - set(field: Field, value: unknown): void; - /** - * Returns the unknown fields of the message. - */ - getUnknown(): UnknownField[] | undefined; - /** - * Sets the unknown fields of the message, overwriting any previous values. - */ - setUnknown(value: UnknownField[]): void; - [unsafeLocal]: Message; -} -/** - * ReflectList provides dynamic access and manipulation of a list field on a - * message. - * - * ReflectList is iterable - you can loop through all items with a for...of loop. - * - * Values are converted or wrapped to make it easier to manipulate them: - * - Scalar 64-bit integer fields with the option `jstype=JS_STRING` are - * converted to bigint. - * - Messages are wrapped in a ReflectMessage. - */ -export interface ReflectList extends Iterable { - /** - * Returns the list field. - */ - field(): DescField & { - fieldKind: "list"; - }; - /** - * The size of the list. - */ - readonly size: number; - /** - * Retrieves the item at the specified index, or undefined if the index - * is out of range. - */ - get(index: number): V | undefined; - /** - * Adds an item at the end of the list. - * Throws an error if an item is invalid for this list. - */ - add(item: V): void; - /** - * Replaces the item at the specified index with the specified item. - * Throws an error if the index is out of range (index < 0 || index >= size). - * Throws an error if the item is invalid for this list. - */ - set(index: number, item: V): void; - /** - * Removes all items from the list. - */ - clear(): void; - [Symbol.iterator](): IterableIterator; - entries(): IterableIterator<[number, V]>; - keys(): IterableIterator; - values(): IterableIterator; - [unsafeLocal]: unknown[]; -} -/** - * ReflectMap provides dynamic access and manipulation of a map field on a - * message. - * - * ReflectMap is iterable - you can loop through all entries with a for...of loop. - * - * Keys and values are converted or wrapped to make it easier to manipulate them: - * - A map field is a record object on a message, where keys are always strings. - * ReflectMap converts keys to their closest possible type in TypeScript. - * - Messages are wrapped in a ReflectMessage. - */ -export interface ReflectMap extends ReadonlyMap { - /** - * Returns the map field. - */ - field(): DescField & { - fieldKind: "map"; - }; - /** - * Removes the entry for the specified key. - * Returns false if the key is unknown. - */ - delete(key: K): boolean; - /** - * Sets or replaces the item at the specified key with the specified value. - * Throws an error if the key or value is invalid for this map. - */ - set(key: K, value: V): this; - /** - * Removes all entries from the map. - */ - clear(): void; - [unsafeLocal]: Record; -} -/** - * The return type of ReflectMessage.get() - */ -export type ReflectMessageGet = (Field extends { - fieldKind: "map"; -} ? ReflectMap : Field extends { - fieldKind: "list"; -} ? ReflectList : Field extends { - fieldKind: "enum"; -} ? number : Field extends { - fieldKind: "message"; -} ? ReflectMessage : Field extends { - fieldKind: "scalar"; - scalar: infer T; -} ? ScalarValue : never); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-types.js b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-types.js deleted file mode 100644 index 737751a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-types.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -const unsafe_js_1 = require("./unsafe.js"); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect.d.ts deleted file mode 100644 index 3bfb1ad..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { type DescField, type DescMessage } from "../descriptors.js"; -import type { MessageShape } from "../types.js"; -import type { ReflectList, ReflectMap, ReflectMessage } from "./reflect-types.js"; -/** - * Create a ReflectMessage. - */ -export declare function reflect(messageDesc: Desc, message?: MessageShape, -/** - * By default, field values are validated when setting them. For example, - * a value for an uint32 field must be a ECMAScript Number >= 0. - * - * When field values are trusted, performance can be improved by disabling - * checks. - */ -check?: boolean): ReflectMessage; -/** - * Create a ReflectList. - */ -export declare function reflectList(field: DescField & { - fieldKind: "list"; -}, unsafeInput?: unknown[], -/** - * By default, field values are validated when setting them. For example, - * a value for an uint32 field must be a ECMAScript Number >= 0. - * - * When field values are trusted, performance can be improved by disabling - * checks. - */ -check?: boolean): ReflectList; -/** - * Create a ReflectMap. - */ -export declare function reflectMap(field: DescField & { - fieldKind: "map"; -}, unsafeInput?: Record, -/** - * By default, field values are validated when setting them. For example, - * a value for an uint32 field must be a ECMAScript Number >= 0. - * - * When field values are trusted, performance can be improved by disabling - * checks. - */ -check?: boolean): ReflectMap; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect.js b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect.js deleted file mode 100644 index 91cc5ca..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect.js +++ /dev/null @@ -1,541 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.reflect = reflect; -exports.reflectList = reflectList; -exports.reflectMap = reflectMap; -const descriptors_js_1 = require("../descriptors.js"); -const reflect_check_js_1 = require("./reflect-check.js"); -const error_js_1 = require("./error.js"); -const unsafe_js_1 = require("./unsafe.js"); -const create_js_1 = require("../create.js"); -const wrappers_js_1 = require("../wkt/wrappers.js"); -const scalar_js_1 = require("./scalar.js"); -const proto_int64_js_1 = require("../proto-int64.js"); -const guard_js_1 = require("./guard.js"); -/** - * Create a ReflectMessage. - */ -function reflect(messageDesc, message, -/** - * By default, field values are validated when setting them. For example, - * a value for an uint32 field must be a ECMAScript Number >= 0. - * - * When field values are trusted, performance can be improved by disabling - * checks. - */ -check = true) { - return new ReflectMessageImpl(messageDesc, message, check); -} -class ReflectMessageImpl { - get sortedFields() { - var _a; - return ((_a = this._sortedFields) !== null && _a !== void 0 ? _a : - // biome-ignore lint/suspicious/noAssignInExpressions: no - (this._sortedFields = this.desc.fields - .concat() - .sort((a, b) => a.number - b.number))); - } - constructor(messageDesc, message, check = true) { - this.lists = new Map(); - this.maps = new Map(); - this.check = check; - this.desc = messageDesc; - this.message = this[unsafe_js_1.unsafeLocal] = message !== null && message !== void 0 ? message : (0, create_js_1.create)(messageDesc); - this.fields = messageDesc.fields; - this.oneofs = messageDesc.oneofs; - this.members = messageDesc.members; - } - findNumber(number) { - if (!this._fieldsByNumber) { - this._fieldsByNumber = new Map(this.desc.fields.map((f) => [f.number, f])); - } - return this._fieldsByNumber.get(number); - } - oneofCase(oneof) { - assertOwn(this.message, oneof); - return (0, unsafe_js_1.unsafeOneofCase)(this.message, oneof); - } - isSet(field) { - assertOwn(this.message, field); - return (0, unsafe_js_1.unsafeIsSet)(this.message, field); - } - clear(field) { - assertOwn(this.message, field); - (0, unsafe_js_1.unsafeClear)(this.message, field); - } - get(field) { - assertOwn(this.message, field); - const value = (0, unsafe_js_1.unsafeGet)(this.message, field); - switch (field.fieldKind) { - case "list": - // eslint-disable-next-line no-case-declarations - let list = this.lists.get(field); - if (!list || list[unsafe_js_1.unsafeLocal] !== value) { - this.lists.set(field, - // biome-ignore lint/suspicious/noAssignInExpressions: no - (list = new ReflectListImpl(field, value, this.check))); - } - return list; - case "map": - let map = this.maps.get(field); - if (!map || map[unsafe_js_1.unsafeLocal] !== value) { - this.maps.set(field, - // biome-ignore lint/suspicious/noAssignInExpressions: no - (map = new ReflectMapImpl(field, value, this.check))); - } - return map; - case "message": - return messageToReflect(field, value, this.check); - case "scalar": - return (value === undefined - ? (0, scalar_js_1.scalarZeroValue)(field.scalar, false) - : longToReflect(field, value)); - case "enum": - return (value !== null && value !== void 0 ? value : field.enum.values[0].number); - } - } - set(field, value) { - assertOwn(this.message, field); - if (this.check) { - const err = (0, reflect_check_js_1.checkField)(field, value); - if (err) { - throw err; - } - } - let local; - if (field.fieldKind == "message") { - local = messageToLocal(field, value); - } - else if ((0, guard_js_1.isReflectMap)(value) || (0, guard_js_1.isReflectList)(value)) { - local = value[unsafe_js_1.unsafeLocal]; - } - else { - local = longToLocal(field, value); - } - (0, unsafe_js_1.unsafeSet)(this.message, field, local); - } - getUnknown() { - return this.message.$unknown; - } - setUnknown(value) { - this.message.$unknown = value; - } -} -function assertOwn(owner, member) { - if (member.parent.typeName !== owner.$typeName) { - throw new error_js_1.FieldError(member, `cannot use ${member.toString()} with message ${owner.$typeName}`, "ForeignFieldError"); - } -} -/** - * Create a ReflectList. - */ -function reflectList(field, unsafeInput, -/** - * By default, field values are validated when setting them. For example, - * a value for an uint32 field must be a ECMAScript Number >= 0. - * - * When field values are trusted, performance can be improved by disabling - * checks. - */ -check = true) { - return new ReflectListImpl(field, unsafeInput !== null && unsafeInput !== void 0 ? unsafeInput : [], check); -} -class ReflectListImpl { - field() { - return this._field; - } - get size() { - return this._arr.length; - } - constructor(field, unsafeInput, check) { - this._field = field; - this._arr = this[unsafe_js_1.unsafeLocal] = unsafeInput; - this.check = check; - } - get(index) { - const item = this._arr[index]; - return item === undefined - ? undefined - : listItemToReflect(this._field, item, this.check); - } - set(index, item) { - if (index < 0 || index >= this._arr.length) { - throw new error_js_1.FieldError(this._field, `list item #${index + 1}: out of range`); - } - if (this.check) { - const err = (0, reflect_check_js_1.checkListItem)(this._field, index, item); - if (err) { - throw err; - } - } - this._arr[index] = listItemToLocal(this._field, item); - } - add(item) { - if (this.check) { - const err = (0, reflect_check_js_1.checkListItem)(this._field, this._arr.length, item); - if (err) { - throw err; - } - } - this._arr.push(listItemToLocal(this._field, item)); - return undefined; - } - clear() { - this._arr.splice(0, this._arr.length); - } - [Symbol.iterator]() { - return this.values(); - } - keys() { - return this._arr.keys(); - } - *values() { - for (const item of this._arr) { - yield listItemToReflect(this._field, item, this.check); - } - } - *entries() { - for (let i = 0; i < this._arr.length; i++) { - yield [i, listItemToReflect(this._field, this._arr[i], this.check)]; - } - } -} -/** - * Create a ReflectMap. - */ -function reflectMap(field, unsafeInput, -/** - * By default, field values are validated when setting them. For example, - * a value for an uint32 field must be a ECMAScript Number >= 0. - * - * When field values are trusted, performance can be improved by disabling - * checks. - */ -check = true) { - return new ReflectMapImpl(field, unsafeInput, check); -} -class ReflectMapImpl { - constructor(field, unsafeInput, check = true) { - this.obj = this[unsafe_js_1.unsafeLocal] = unsafeInput !== null && unsafeInput !== void 0 ? unsafeInput : {}; - this.check = check; - this._field = field; - } - field() { - return this._field; - } - set(key, value) { - if (this.check) { - const err = (0, reflect_check_js_1.checkMapEntry)(this._field, key, value); - if (err) { - throw err; - } - } - this.obj[mapKeyToLocal(key)] = mapValueToLocal(this._field, value); - return this; - } - delete(key) { - const k = mapKeyToLocal(key); - const has = Object.prototype.hasOwnProperty.call(this.obj, k); - if (has) { - delete this.obj[k]; - } - return has; - } - clear() { - for (const key of Object.keys(this.obj)) { - delete this.obj[key]; - } - } - get(key) { - let val = this.obj[mapKeyToLocal(key)]; - if (val !== undefined) { - val = mapValueToReflect(this._field, val, this.check); - } - return val; - } - has(key) { - return Object.prototype.hasOwnProperty.call(this.obj, mapKeyToLocal(key)); - } - *keys() { - for (const objKey of Object.keys(this.obj)) { - yield mapKeyToReflect(objKey, this._field.mapKey); - } - } - *entries() { - for (const objEntry of Object.entries(this.obj)) { - yield [ - mapKeyToReflect(objEntry[0], this._field.mapKey), - mapValueToReflect(this._field, objEntry[1], this.check), - ]; - } - } - [Symbol.iterator]() { - return this.entries(); - } - get size() { - return Object.keys(this.obj).length; - } - *values() { - for (const val of Object.values(this.obj)) { - yield mapValueToReflect(this._field, val, this.check); - } - } - forEach(callbackfn, thisArg) { - for (const mapEntry of this.entries()) { - callbackfn.call(thisArg, mapEntry[1], mapEntry[0], this); - } - } -} -function messageToLocal(field, value) { - if (!(0, guard_js_1.isReflectMessage)(value)) { - return value; - } - if ((0, wrappers_js_1.isWrapper)(value.message) && - !field.oneof && - field.fieldKind == "message") { - // Types from google/protobuf/wrappers.proto are unwrapped when used in - // a singular field that is not part of a oneof group. - return value.message.value; - } - if (value.desc.typeName == "google.protobuf.Struct" && - field.parent.typeName != "google.protobuf.Value") { - // google.protobuf.Struct is represented with JsonObject when used in a - // field, except when used in google.protobuf.Value. - return wktStructToLocal(value.message); - } - return value.message; -} -function messageToReflect(field, value, check) { - if (value !== undefined) { - if ((0, wrappers_js_1.isWrapperDesc)(field.message) && - !field.oneof && - field.fieldKind == "message") { - // Types from google/protobuf/wrappers.proto are unwrapped when used in - // a singular field that is not part of a oneof group. - value = { - $typeName: field.message.typeName, - value: longToReflect(field.message.fields[0], value), - }; - } - else if (field.message.typeName == "google.protobuf.Struct" && - field.parent.typeName != "google.protobuf.Value" && - (0, guard_js_1.isObject)(value)) { - // google.protobuf.Struct is represented with JsonObject when used in a - // field, except when used in google.protobuf.Value. - value = wktStructToReflect(value); - } - } - return new ReflectMessageImpl(field.message, value, check); -} -function listItemToLocal(field, value) { - if (field.listKind == "message") { - return messageToLocal(field, value); - } - return longToLocal(field, value); -} -function listItemToReflect(field, value, check) { - if (field.listKind == "message") { - return messageToReflect(field, value, check); - } - return longToReflect(field, value); -} -function mapValueToLocal(field, value) { - if (field.mapKind == "message") { - return messageToLocal(field, value); - } - return longToLocal(field, value); -} -function mapValueToReflect(field, value, check) { - if (field.mapKind == "message") { - return messageToReflect(field, value, check); - } - return value; -} -function mapKeyToLocal(key) { - return typeof key == "string" || typeof key == "number" ? key : String(key); -} -/** - * Converts a map key (any scalar value except float, double, or bytes) from its - * representation in a message (string or number, the only possible object key - * types) to the closest possible type in ECMAScript. - */ -function mapKeyToReflect(key, type) { - switch (type) { - case descriptors_js_1.ScalarType.STRING: - return key; - case descriptors_js_1.ScalarType.INT32: - case descriptors_js_1.ScalarType.FIXED32: - case descriptors_js_1.ScalarType.UINT32: - case descriptors_js_1.ScalarType.SFIXED32: - case descriptors_js_1.ScalarType.SINT32: { - const n = Number.parseInt(key); - if (Number.isFinite(n)) { - return n; - } - break; - } - case descriptors_js_1.ScalarType.BOOL: - switch (key) { - case "true": - return true; - case "false": - return false; - } - break; - case descriptors_js_1.ScalarType.UINT64: - case descriptors_js_1.ScalarType.FIXED64: - try { - return proto_int64_js_1.protoInt64.uParse(key); - } - catch (_a) { - // - } - break; - default: - // INT64, SFIXED64, SINT64 - try { - return proto_int64_js_1.protoInt64.parse(key); - } - catch (_b) { - // - } - break; - } - return key; -} -function longToReflect(field, value) { - switch (field.scalar) { - case descriptors_js_1.ScalarType.INT64: - case descriptors_js_1.ScalarType.SFIXED64: - case descriptors_js_1.ScalarType.SINT64: - if ("longAsString" in field && - field.longAsString && - typeof value == "string") { - value = proto_int64_js_1.protoInt64.parse(value); - } - break; - case descriptors_js_1.ScalarType.FIXED64: - case descriptors_js_1.ScalarType.UINT64: - if ("longAsString" in field && - field.longAsString && - typeof value == "string") { - value = proto_int64_js_1.protoInt64.uParse(value); - } - break; - } - return value; -} -function longToLocal(field, value) { - switch (field.scalar) { - case descriptors_js_1.ScalarType.INT64: - case descriptors_js_1.ScalarType.SFIXED64: - case descriptors_js_1.ScalarType.SINT64: - if ("longAsString" in field && field.longAsString) { - value = String(value); - } - else if (typeof value == "string" || typeof value == "number") { - value = proto_int64_js_1.protoInt64.parse(value); - } - break; - case descriptors_js_1.ScalarType.FIXED64: - case descriptors_js_1.ScalarType.UINT64: - if ("longAsString" in field && field.longAsString) { - value = String(value); - } - else if (typeof value == "string" || typeof value == "number") { - value = proto_int64_js_1.protoInt64.uParse(value); - } - break; - } - return value; -} -function wktStructToReflect(json) { - const struct = { - $typeName: "google.protobuf.Struct", - fields: {}, - }; - if ((0, guard_js_1.isObject)(json)) { - for (const [k, v] of Object.entries(json)) { - struct.fields[k] = wktValueToReflect(v); - } - } - return struct; -} -function wktStructToLocal(val) { - const json = {}; - for (const [k, v] of Object.entries(val.fields)) { - json[k] = wktValueToLocal(v); - } - return json; -} -function wktValueToLocal(val) { - switch (val.kind.case) { - case "structValue": - return wktStructToLocal(val.kind.value); - case "listValue": - return val.kind.value.values.map(wktValueToLocal); - case "nullValue": - case undefined: - return null; - default: - return val.kind.value; - } -} -function wktValueToReflect(json) { - const value = { - $typeName: "google.protobuf.Value", - kind: { case: undefined }, - }; - switch (typeof json) { - case "number": - value.kind = { case: "numberValue", value: json }; - break; - case "string": - value.kind = { case: "stringValue", value: json }; - break; - case "boolean": - value.kind = { case: "boolValue", value: json }; - break; - case "object": - if (json === null) { - const nullValue = 0; - value.kind = { case: "nullValue", value: nullValue }; - } - else if (Array.isArray(json)) { - const listValue = { - $typeName: "google.protobuf.ListValue", - values: [], - }; - if (Array.isArray(json)) { - for (const e of json) { - listValue.values.push(wktValueToReflect(e)); - } - } - value.kind = { - case: "listValue", - value: listValue, - }; - } - else { - value.kind = { - case: "structValue", - value: wktStructToReflect(json), - }; - } - break; - } - return value; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/scalar.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/scalar.d.ts deleted file mode 100644 index 16ac91f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/scalar.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { ScalarType } from "../descriptors.js"; -/** - * ScalarValue maps from a scalar field type to a TypeScript value type. - */ -export type ScalarValue = T extends ScalarType.STRING ? string : T extends ScalarType.INT32 ? number : T extends ScalarType.UINT32 ? number : T extends ScalarType.SINT32 ? number : T extends ScalarType.FIXED32 ? number : T extends ScalarType.SFIXED32 ? number : T extends ScalarType.FLOAT ? number : T extends ScalarType.DOUBLE ? number : T extends ScalarType.INT64 ? LongAsString extends true ? string : bigint : T extends ScalarType.SINT64 ? LongAsString extends true ? string : bigint : T extends ScalarType.SFIXED64 ? LongAsString extends true ? string : bigint : T extends ScalarType.UINT64 ? LongAsString extends true ? string : bigint : T extends ScalarType.FIXED64 ? LongAsString extends true ? string : bigint : T extends ScalarType.BOOL ? boolean : T extends ScalarType.BYTES ? Uint8Array : never; -/** - * Returns true if both scalar values are equal. - */ -export declare function scalarEquals(type: ScalarType, a: ScalarValue | undefined, b: ScalarValue | undefined): boolean; -/** - * Returns the zero value for the given scalar type. - */ -export declare function scalarZeroValue(type: T, longAsString: LongAsString): ScalarValue; -/** - * Returns true for a zero-value. For example, an integer has the zero-value `0`, - * a boolean is `false`, a string is `""`, and bytes is an empty Uint8Array. - * - * In proto3, zero-values are not written to the wire, unless the field is - * optional or repeated. - */ -export declare function isScalarZeroValue(type: ScalarType, value: unknown): boolean; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/scalar.js b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/scalar.js deleted file mode 100644 index f4e6c4a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/scalar.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scalarEquals = scalarEquals; -exports.scalarZeroValue = scalarZeroValue; -exports.isScalarZeroValue = isScalarZeroValue; -const proto_int64_js_1 = require("../proto-int64.js"); -const descriptors_js_1 = require("../descriptors.js"); -/** - * Returns true if both scalar values are equal. - */ -function scalarEquals(type, a, b) { - if (a === b) { - // This correctly matches equal values except BYTES and (possibly) 64-bit integers. - return true; - } - // Special case BYTES - we need to compare each byte individually - if (type == descriptors_js_1.ScalarType.BYTES) { - if (!(a instanceof Uint8Array) || !(b instanceof Uint8Array)) { - return false; - } - if (a.length !== b.length) { - return false; - } - for (let i = 0; i < a.length; i++) { - if (a[i] !== b[i]) { - return false; - } - } - return true; - } - // Special case 64-bit integers - we support number, string and bigint representation. - switch (type) { - case descriptors_js_1.ScalarType.UINT64: - case descriptors_js_1.ScalarType.FIXED64: - case descriptors_js_1.ScalarType.INT64: - case descriptors_js_1.ScalarType.SFIXED64: - case descriptors_js_1.ScalarType.SINT64: - // Loose comparison will match between 0n, 0 and "0". - return a == b; - } - // Anything that hasn't been caught by strict comparison or special cased - // BYTES and 64-bit integers is not equal. - return false; -} -/** - * Returns the zero value for the given scalar type. - */ -function scalarZeroValue(type, longAsString) { - switch (type) { - case descriptors_js_1.ScalarType.STRING: - return ""; - case descriptors_js_1.ScalarType.BOOL: - return false; - case descriptors_js_1.ScalarType.DOUBLE: - case descriptors_js_1.ScalarType.FLOAT: - return 0.0; - case descriptors_js_1.ScalarType.INT64: - case descriptors_js_1.ScalarType.UINT64: - case descriptors_js_1.ScalarType.SFIXED64: - case descriptors_js_1.ScalarType.FIXED64: - case descriptors_js_1.ScalarType.SINT64: - return (longAsString ? "0" : proto_int64_js_1.protoInt64.zero); - case descriptors_js_1.ScalarType.BYTES: - return new Uint8Array(0); - default: - // Handles INT32, UINT32, SINT32, FIXED32, SFIXED32. - // We do not use individual cases to save a few bytes code size. - return 0; - } -} -/** - * Returns true for a zero-value. For example, an integer has the zero-value `0`, - * a boolean is `false`, a string is `""`, and bytes is an empty Uint8Array. - * - * In proto3, zero-values are not written to the wire, unless the field is - * optional or repeated. - */ -function isScalarZeroValue(type, value) { - switch (type) { - case descriptors_js_1.ScalarType.BOOL: - return value === false; - case descriptors_js_1.ScalarType.STRING: - return value === ""; - case descriptors_js_1.ScalarType.BYTES: - return value instanceof Uint8Array && !value.byteLength; - default: - return value == 0; // Loose comparison matches 0n, 0 and "0" - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/unsafe.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/unsafe.d.ts deleted file mode 100644 index 02fd72f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/unsafe.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import type { DescField, DescOneof } from "../descriptors.js"; -export declare const unsafeLocal: unique symbol; -/** - * Return the selected field of a oneof group. - * - * @private - */ -export declare function unsafeOneofCase(target: Record, oneof: DescOneof): DescField | undefined; -/** - * Returns true if the field is set. - * - * @private - */ -export declare function unsafeIsSet(target: Record, field: DescField): boolean; -/** - * Returns true if the field is set, but only for singular fields with explicit - * presence (proto2). - * - * @private - */ -export declare function unsafeIsSetExplicit(target: object, localName: string): boolean; -/** - * Return a field value, respecting oneof groups. - * - * @private - */ -export declare function unsafeGet(target: Record, field: DescField): unknown; -/** - * Set a field value, respecting oneof groups. - * - * @private - */ -export declare function unsafeSet(target: Record, field: DescField, value: unknown): void; -/** - * Resets the field, so that unsafeIsSet() will return false. - * - * @private - */ -export declare function unsafeClear(target: Record, field: DescField): void; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/unsafe.js b/node_modules/@bufbuild/protobuf/dist/cjs/reflect/unsafe.js deleted file mode 100644 index 33b6d44..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/reflect/unsafe.js +++ /dev/null @@ -1,149 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.unsafeLocal = void 0; -exports.unsafeOneofCase = unsafeOneofCase; -exports.unsafeIsSet = unsafeIsSet; -exports.unsafeIsSetExplicit = unsafeIsSetExplicit; -exports.unsafeGet = unsafeGet; -exports.unsafeSet = unsafeSet; -exports.unsafeClear = unsafeClear; -const scalar_js_1 = require("./scalar.js"); -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.IMPLICIT: const $name: FeatureSet_FieldPresence.$localName = $number; -const IMPLICIT = 2; -exports.unsafeLocal = Symbol.for("reflect unsafe local"); -/** - * Return the selected field of a oneof group. - * - * @private - */ -function unsafeOneofCase( -// biome-ignore lint/suspicious/noExplicitAny: `any` is the best choice for dynamic access -target, oneof) { - const c = target[oneof.localName].case; - if (c === undefined) { - return c; - } - return oneof.fields.find((f) => f.localName === c); -} -/** - * Returns true if the field is set. - * - * @private - */ -function unsafeIsSet( -// biome-ignore lint/suspicious/noExplicitAny: `any` is the best choice for dynamic access -target, field) { - const name = field.localName; - if (field.oneof) { - return target[field.oneof.localName].case === name; - } - if (field.presence != IMPLICIT) { - // Fields with explicit presence have properties on the prototype chain - // for default / zero values (except for proto3). - return (target[name] !== undefined && - Object.prototype.hasOwnProperty.call(target, name)); - } - switch (field.fieldKind) { - case "list": - return target[name].length > 0; - case "map": - return Object.keys(target[name]).length > 0; - case "scalar": - return !(0, scalar_js_1.isScalarZeroValue)(field.scalar, target[name]); - case "enum": - return target[name] !== field.enum.values[0].number; - } - throw new Error("message field with implicit presence"); -} -/** - * Returns true if the field is set, but only for singular fields with explicit - * presence (proto2). - * - * @private - */ -function unsafeIsSetExplicit(target, localName) { - return (Object.prototype.hasOwnProperty.call(target, localName) && - target[localName] !== undefined); -} -/** - * Return a field value, respecting oneof groups. - * - * @private - */ -function unsafeGet(target, field) { - if (field.oneof) { - const oneof = target[field.oneof.localName]; - if (oneof.case === field.localName) { - return oneof.value; - } - return undefined; - } - return target[field.localName]; -} -/** - * Set a field value, respecting oneof groups. - * - * @private - */ -function unsafeSet(target, field, value) { - if (field.oneof) { - target[field.oneof.localName] = { - case: field.localName, - value: value, - }; - } - else { - target[field.localName] = value; - } -} -/** - * Resets the field, so that unsafeIsSet() will return false. - * - * @private - */ -function unsafeClear( -// biome-ignore lint/suspicious/noExplicitAny: `any` is the best choice for dynamic access -target, field) { - const name = field.localName; - if (field.oneof) { - const oneofLocalName = field.oneof.localName; - if (target[oneofLocalName].case === name) { - target[oneofLocalName] = { case: undefined }; - } - } - else if (field.presence != IMPLICIT) { - // Fields with explicit presence have properties on the prototype chain - // for default / zero values (except for proto3). By deleting their own - // property, the field is reset. - delete target[name]; - } - else { - switch (field.fieldKind) { - case "map": - target[name] = {}; - break; - case "list": - target[name] = []; - break; - case "enum": - target[name] = field.enum.values[0].number; - break; - case "scalar": - target[name] = (0, scalar_js_1.scalarZeroValue)(field.scalar, field.longAsString); - break; - } - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/registry.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/registry.d.ts deleted file mode 100644 index 4a1b5ae..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/registry.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -import type { FileDescriptorProto, FileDescriptorSet } from "./wkt/gen/google/protobuf/descriptor_pb.js"; -import { type DescEnum, type DescExtension, type DescFile, type DescMessage, type DescService, type SupportedEdition } from "./descriptors.js"; -/** - * A set of descriptors for messages, enumerations, extensions, - * and services. - */ -export interface Registry { - readonly kind: "registry"; - /** - * All types (message, enumeration, extension, or service) contained - * in this registry. - */ - [Symbol.iterator](): IterableIterator; - /** - * Look up a type (message, enumeration, extension, or service) by - * its fully qualified name. - */ - get(typeName: string): DescMessage | DescEnum | DescExtension | DescService | undefined; - /** - * Look up a message descriptor by its fully qualified name. - */ - getMessage(typeName: string): DescMessage | undefined; - /** - * Look up an enumeration descriptor by its fully qualified name. - */ - getEnum(typeName: string): DescEnum | undefined; - /** - * Look up an extension descriptor by its fully qualified name. - */ - getExtension(typeName: string): DescExtension | undefined; - /** - * Look up an extension by the extendee - the message it extends - and - * the extension number. - */ - getExtensionFor(extendee: DescMessage, no: number): DescExtension | undefined; - /** - * Look up a service descriptor by its fully qualified name. - */ - getService(typeName: string): DescService | undefined; -} -/** - * A registry that allows adding and removing descriptors. - */ -export interface MutableRegistry extends Registry { - /** - * Adds the given descriptor - but not types nested within - to the registry. - */ - add(desc: DescMessage | DescEnum | DescExtension | DescService): void; - /** - * Remove the given descriptor - but not types nested within - from the registry. - */ - remove(desc: DescMessage | DescEnum | DescExtension | DescService): void; -} -/** - * A registry that includes files. - */ -export interface FileRegistry extends Registry { - /** - * All files in this registry. - */ - readonly files: Iterable; - /** - * Look up a file descriptor by file name. - */ - getFile(fileName: string): DescFile | undefined; -} -/** - * Create a registry from the given inputs. - * - * An input can be: - * - Any message, enum, service, or extension descriptor, which adds just the - * descriptor for this type. - * - A file descriptor, which adds all typed defined in this file. - * - A registry, which adds all types from the registry. - * - * For duplicate descriptors (same type name), the one given last wins. - */ -export declare function createRegistry(...input: (Registry | DescFile | DescMessage | DescEnum | DescExtension | DescService)[]): Registry; -/** - * Create a registry that allows adding and removing descriptors. - */ -export declare function createMutableRegistry(...input: (Registry | DescFile | DescMessage | DescEnum | DescExtension | DescService)[]): MutableRegistry; -/** - * Create a registry (including file descriptors) from a google.protobuf.FileDescriptorSet - * message. - */ -export declare function createFileRegistry(fileDescriptorSet: FileDescriptorSet): FileRegistry; -/** - * Create a registry (including file descriptors) from a google.protobuf.FileDescriptorProto - * message. For every import, the given resolver function is called. - */ -export declare function createFileRegistry(fileDescriptorProto: FileDescriptorProto, resolve: (protoFileName: string) => FileDescriptorProto | DescFile | undefined): FileRegistry; -/** - * Create a registry (including file descriptors) from one or more registries, - * merging them. - */ -export declare function createFileRegistry(...registries: FileRegistry[]): FileRegistry; -export declare const minimumEdition: SupportedEdition, maximumEdition: SupportedEdition; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/registry.js b/node_modules/@bufbuild/protobuf/dist/cjs/registry.js deleted file mode 100644 index 778088f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/registry.js +++ /dev/null @@ -1,922 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.maximumEdition = exports.minimumEdition = void 0; -exports.createRegistry = createRegistry; -exports.createMutableRegistry = createMutableRegistry; -exports.createFileRegistry = createFileRegistry; -const descriptors_js_1 = require("./descriptors.js"); -const text_format_js_1 = require("./wire/text-format.js"); -const nested_types_js_1 = require("./reflect/nested-types.js"); -const unsafe_js_1 = require("./reflect/unsafe.js"); -const names_js_1 = require("./reflect/names.js"); -/** - * Create a registry from the given inputs. - * - * An input can be: - * - Any message, enum, service, or extension descriptor, which adds just the - * descriptor for this type. - * - A file descriptor, which adds all typed defined in this file. - * - A registry, which adds all types from the registry. - * - * For duplicate descriptors (same type name), the one given last wins. - */ -function createRegistry(...input) { - return initBaseRegistry(input); -} -/** - * Create a registry that allows adding and removing descriptors. - */ -function createMutableRegistry(...input) { - const reg = initBaseRegistry(input); - return Object.assign(Object.assign({}, reg), { remove(desc) { - var _a; - if (desc.kind == "extension") { - (_a = reg.extendees.get(desc.extendee.typeName)) === null || _a === void 0 ? void 0 : _a.delete(desc.number); - } - reg.types.delete(desc.typeName); - } }); -} -function createFileRegistry(...args) { - const registry = createBaseRegistry(); - if (!args.length) { - return registry; - } - if ("$typeName" in args[0] && - args[0].$typeName == "google.protobuf.FileDescriptorSet") { - for (const file of args[0].file) { - addFile(file, registry); - } - return registry; - } - if ("$typeName" in args[0]) { - const input = args[0]; - const resolve = args[1]; - const seen = new Set(); - function recurseDeps(file) { - const deps = []; - for (const protoFileName of file.dependency) { - if (registry.getFile(protoFileName) != undefined) { - continue; - } - if (seen.has(protoFileName)) { - continue; - } - const dep = resolve(protoFileName); - if (!dep) { - throw new Error(`Unable to resolve ${protoFileName}, imported by ${file.name}`); - } - if ("kind" in dep) { - registry.addFile(dep, false, true); - } - else { - seen.add(dep.name); - deps.push(dep); - } - } - return deps.concat(...deps.map(recurseDeps)); - } - for (const file of [input, ...recurseDeps(input)].reverse()) { - addFile(file, registry); - } - } - else { - for (const fileReg of args) { - for (const file of fileReg.files) { - registry.addFile(file); - } - } - } - return registry; -} -/** - * @private - */ -function createBaseRegistry() { - const types = new Map(); - const extendees = new Map(); - const files = new Map(); - return { - kind: "registry", - types, - extendees, - [Symbol.iterator]() { - return types.values(); - }, - get files() { - return files.values(); - }, - addFile(file, skipTypes, withDeps) { - files.set(file.proto.name, file); - if (!skipTypes) { - for (const type of (0, nested_types_js_1.nestedTypes)(file)) { - this.add(type); - } - } - if (withDeps) { - for (const f of file.dependencies) { - this.addFile(f, skipTypes, withDeps); - } - } - }, - add(desc) { - if (desc.kind == "extension") { - let numberToExt = extendees.get(desc.extendee.typeName); - if (!numberToExt) { - extendees.set(desc.extendee.typeName, - // biome-ignore lint/suspicious/noAssignInExpressions: no - (numberToExt = new Map())); - } - numberToExt.set(desc.number, desc); - } - types.set(desc.typeName, desc); - }, - get(typeName) { - return types.get(typeName); - }, - getFile(fileName) { - return files.get(fileName); - }, - getMessage(typeName) { - const t = types.get(typeName); - return (t === null || t === void 0 ? void 0 : t.kind) == "message" ? t : undefined; - }, - getEnum(typeName) { - const t = types.get(typeName); - return (t === null || t === void 0 ? void 0 : t.kind) == "enum" ? t : undefined; - }, - getExtension(typeName) { - const t = types.get(typeName); - return (t === null || t === void 0 ? void 0 : t.kind) == "extension" ? t : undefined; - }, - getExtensionFor(extendee, no) { - var _a; - return (_a = extendees.get(extendee.typeName)) === null || _a === void 0 ? void 0 : _a.get(no); - }, - getService(typeName) { - const t = types.get(typeName); - return (t === null || t === void 0 ? void 0 : t.kind) == "service" ? t : undefined; - }, - }; -} -/** - * @private - */ -function initBaseRegistry(inputs) { - const registry = createBaseRegistry(); - for (const input of inputs) { - switch (input.kind) { - case "registry": - for (const n of input) { - registry.add(n); - } - break; - case "file": - registry.addFile(input); - break; - default: - registry.add(input); - break; - } - } - return registry; -} -// bootstrap-inject google.protobuf.Edition.EDITION_PROTO2: const $name: Edition.$localName = $number; -const EDITION_PROTO2 = 998; -// bootstrap-inject google.protobuf.Edition.EDITION_PROTO3: const $name: Edition.$localName = $number; -const EDITION_PROTO3 = 999; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_STRING: const $name: FieldDescriptorProto_Type.$localName = $number; -const TYPE_STRING = 9; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_GROUP: const $name: FieldDescriptorProto_Type.$localName = $number; -const TYPE_GROUP = 10; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_MESSAGE: const $name: FieldDescriptorProto_Type.$localName = $number; -const TYPE_MESSAGE = 11; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_BYTES: const $name: FieldDescriptorProto_Type.$localName = $number; -const TYPE_BYTES = 12; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_ENUM: const $name: FieldDescriptorProto_Type.$localName = $number; -const TYPE_ENUM = 14; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Label.LABEL_REPEATED: const $name: FieldDescriptorProto_Label.$localName = $number; -const LABEL_REPEATED = 3; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Label.LABEL_REQUIRED: const $name: FieldDescriptorProto_Label.$localName = $number; -const LABEL_REQUIRED = 2; -// bootstrap-inject google.protobuf.FieldOptions.JSType.JS_STRING: const $name: FieldOptions_JSType.$localName = $number; -const JS_STRING = 1; -// bootstrap-inject google.protobuf.MethodOptions.IdempotencyLevel.IDEMPOTENCY_UNKNOWN: const $name: MethodOptions_IdempotencyLevel.$localName = $number; -const IDEMPOTENCY_UNKNOWN = 0; -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.EXPLICIT: const $name: FeatureSet_FieldPresence.$localName = $number; -const EXPLICIT = 1; -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.IMPLICIT: const $name: FeatureSet_FieldPresence.$localName = $number; -const IMPLICIT = 2; -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.LEGACY_REQUIRED: const $name: FeatureSet_FieldPresence.$localName = $number; -const LEGACY_REQUIRED = 3; -// bootstrap-inject google.protobuf.FeatureSet.RepeatedFieldEncoding.PACKED: const $name: FeatureSet_RepeatedFieldEncoding.$localName = $number; -const PACKED = 1; -// bootstrap-inject google.protobuf.FeatureSet.MessageEncoding.DELIMITED: const $name: FeatureSet_MessageEncoding.$localName = $number; -const DELIMITED = 2; -// bootstrap-inject google.protobuf.FeatureSet.EnumType.OPEN: const $name: FeatureSet_EnumType.$localName = $number; -const OPEN = 1; -// biome-ignore format: want this to read well -// bootstrap-inject defaults: EDITION_PROTO2 to EDITION_2024: export const minimumEdition: SupportedEdition = $minimumEdition, maximumEdition: SupportedEdition = $maximumEdition; -// generated from protoc v32.0 -exports.minimumEdition = 998, exports.maximumEdition = 1001; -const featureDefaults = { - // EDITION_PROTO2 - 998: { - fieldPresence: 1, // EXPLICIT, - enumType: 2, // CLOSED, - repeatedFieldEncoding: 2, // EXPANDED, - utf8Validation: 3, // NONE, - messageEncoding: 1, // LENGTH_PREFIXED, - jsonFormat: 2, // LEGACY_BEST_EFFORT, - enforceNamingStyle: 2, // STYLE_LEGACY, - defaultSymbolVisibility: 1, // EXPORT_ALL, - }, - // EDITION_PROTO3 - 999: { - fieldPresence: 2, // IMPLICIT, - enumType: 1, // OPEN, - repeatedFieldEncoding: 1, // PACKED, - utf8Validation: 2, // VERIFY, - messageEncoding: 1, // LENGTH_PREFIXED, - jsonFormat: 1, // ALLOW, - enforceNamingStyle: 2, // STYLE_LEGACY, - defaultSymbolVisibility: 1, // EXPORT_ALL, - }, - // EDITION_2023 - 1000: { - fieldPresence: 1, // EXPLICIT, - enumType: 1, // OPEN, - repeatedFieldEncoding: 1, // PACKED, - utf8Validation: 2, // VERIFY, - messageEncoding: 1, // LENGTH_PREFIXED, - jsonFormat: 1, // ALLOW, - enforceNamingStyle: 2, // STYLE_LEGACY, - defaultSymbolVisibility: 1, // EXPORT_ALL, - }, - // EDITION_2024 - 1001: { - fieldPresence: 1, // EXPLICIT, - enumType: 1, // OPEN, - repeatedFieldEncoding: 1, // PACKED, - utf8Validation: 2, // VERIFY, - messageEncoding: 1, // LENGTH_PREFIXED, - jsonFormat: 1, // ALLOW, - enforceNamingStyle: 1, // STYLE2024, - defaultSymbolVisibility: 2, // EXPORT_TOP_LEVEL, - }, -}; -/** - * Create a descriptor for a file, add it to the registry. - */ -function addFile(proto, reg) { - var _a, _b; - const file = { - kind: "file", - proto, - deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false, - edition: getFileEdition(proto), - name: proto.name.replace(/\.proto$/, ""), - dependencies: findFileDependencies(proto, reg), - enums: [], - messages: [], - extensions: [], - services: [], - toString() { - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- we asserted above - return `file ${proto.name}`; - }, - }; - const mapEntriesStore = new Map(); - const mapEntries = { - get(typeName) { - return mapEntriesStore.get(typeName); - }, - add(desc) { - var _a; - assert(((_a = desc.proto.options) === null || _a === void 0 ? void 0 : _a.mapEntry) === true); - mapEntriesStore.set(desc.typeName, desc); - }, - }; - for (const enumProto of proto.enumType) { - addEnum(enumProto, file, undefined, reg); - } - for (const messageProto of proto.messageType) { - addMessage(messageProto, file, undefined, reg, mapEntries); - } - for (const serviceProto of proto.service) { - addService(serviceProto, file, reg); - } - addExtensions(file, reg); - for (const mapEntry of mapEntriesStore.values()) { - // to create a map field, we need access to the map entry's fields - addFields(mapEntry, reg, mapEntries); - } - for (const message of file.messages) { - addFields(message, reg, mapEntries); - addExtensions(message, reg); - } - reg.addFile(file, true); -} -/** - * Create descriptors for extensions, and add them to the message / file, - * and to our cart. - * Recurses into nested types. - */ -function addExtensions(desc, reg) { - switch (desc.kind) { - case "file": - for (const proto of desc.proto.extension) { - const ext = newField(proto, desc, reg); - desc.extensions.push(ext); - reg.add(ext); - } - break; - case "message": - for (const proto of desc.proto.extension) { - const ext = newField(proto, desc, reg); - desc.nestedExtensions.push(ext); - reg.add(ext); - } - for (const message of desc.nestedMessages) { - addExtensions(message, reg); - } - break; - } -} -/** - * Create descriptors for fields and oneof groups, and add them to the message. - * Recurses into nested types. - */ -function addFields(message, reg, mapEntries) { - const allOneofs = message.proto.oneofDecl.map((proto) => newOneof(proto, message)); - const oneofsSeen = new Set(); - for (const proto of message.proto.field) { - const oneof = findOneof(proto, allOneofs); - const field = newField(proto, message, reg, oneof, mapEntries); - message.fields.push(field); - message.field[field.localName] = field; - if (oneof === undefined) { - message.members.push(field); - } - else { - oneof.fields.push(field); - if (!oneofsSeen.has(oneof)) { - oneofsSeen.add(oneof); - message.members.push(oneof); - } - } - } - for (const oneof of allOneofs.filter((o) => oneofsSeen.has(o))) { - message.oneofs.push(oneof); - } - for (const child of message.nestedMessages) { - addFields(child, reg, mapEntries); - } -} -/** - * Create a descriptor for an enumeration, and add it our cart and to the - * parent type, if any. - */ -function addEnum(proto, file, parent, reg) { - var _a, _b, _c, _d, _e; - const sharedPrefix = findEnumSharedPrefix(proto.name, proto.value); - const desc = { - kind: "enum", - proto, - deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false, - file, - parent, - open: true, - name: proto.name, - typeName: makeTypeName(proto, parent, file), - value: {}, - values: [], - sharedPrefix, - toString() { - return `enum ${this.typeName}`; - }, - }; - desc.open = isEnumOpen(desc); - reg.add(desc); - for (const p of proto.value) { - const name = p.name; - desc.values.push( - // biome-ignore lint/suspicious/noAssignInExpressions: no - (desc.value[p.number] = { - kind: "enum_value", - proto: p, - deprecated: (_d = (_c = p.options) === null || _c === void 0 ? void 0 : _c.deprecated) !== null && _d !== void 0 ? _d : false, - parent: desc, - name, - localName: (0, names_js_1.safeObjectProperty)(sharedPrefix == undefined - ? name - : name.substring(sharedPrefix.length)), - number: p.number, - toString() { - return `enum value ${desc.typeName}.${name}`; - }, - })); - } - ((_e = parent === null || parent === void 0 ? void 0 : parent.nestedEnums) !== null && _e !== void 0 ? _e : file.enums).push(desc); -} -/** - * Create a descriptor for a message, including nested types, and add it to our - * cart. Note that this does not create descriptors fields. - */ -function addMessage(proto, file, parent, reg, mapEntries) { - var _a, _b, _c, _d; - const desc = { - kind: "message", - proto, - deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false, - file, - parent, - name: proto.name, - typeName: makeTypeName(proto, parent, file), - fields: [], - field: {}, - oneofs: [], - members: [], - nestedEnums: [], - nestedMessages: [], - nestedExtensions: [], - toString() { - return `message ${this.typeName}`; - }, - }; - if (((_c = proto.options) === null || _c === void 0 ? void 0 : _c.mapEntry) === true) { - mapEntries.add(desc); - } - else { - ((_d = parent === null || parent === void 0 ? void 0 : parent.nestedMessages) !== null && _d !== void 0 ? _d : file.messages).push(desc); - reg.add(desc); - } - for (const enumProto of proto.enumType) { - addEnum(enumProto, file, desc, reg); - } - for (const messageProto of proto.nestedType) { - addMessage(messageProto, file, desc, reg, mapEntries); - } -} -/** - * Create a descriptor for a service, including methods, and add it to our - * cart. - */ -function addService(proto, file, reg) { - var _a, _b; - const desc = { - kind: "service", - proto, - deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false, - file, - name: proto.name, - typeName: makeTypeName(proto, undefined, file), - methods: [], - method: {}, - toString() { - return `service ${this.typeName}`; - }, - }; - file.services.push(desc); - reg.add(desc); - for (const methodProto of proto.method) { - const method = newMethod(methodProto, desc, reg); - desc.methods.push(method); - desc.method[method.localName] = method; - } -} -/** - * Create a descriptor for a method. - */ -function newMethod(proto, parent, reg) { - var _a, _b, _c, _d; - let methodKind; - if (proto.clientStreaming && proto.serverStreaming) { - methodKind = "bidi_streaming"; - } - else if (proto.clientStreaming) { - methodKind = "client_streaming"; - } - else if (proto.serverStreaming) { - methodKind = "server_streaming"; - } - else { - methodKind = "unary"; - } - const input = reg.getMessage(trimLeadingDot(proto.inputType)); - const output = reg.getMessage(trimLeadingDot(proto.outputType)); - assert(input, `invalid MethodDescriptorProto: input_type ${proto.inputType} not found`); - assert(output, `invalid MethodDescriptorProto: output_type ${proto.inputType} not found`); - const name = proto.name; - return { - kind: "rpc", - proto, - deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false, - parent, - name, - localName: (0, names_js_1.safeObjectProperty)(name.length - ? (0, names_js_1.safeObjectProperty)(name[0].toLowerCase() + name.substring(1)) - : name), - methodKind, - input, - output, - idempotency: (_d = (_c = proto.options) === null || _c === void 0 ? void 0 : _c.idempotencyLevel) !== null && _d !== void 0 ? _d : IDEMPOTENCY_UNKNOWN, - toString() { - return `rpc ${parent.typeName}.${name}`; - }, - }; -} -/** - * Create a descriptor for a oneof group. - */ -function newOneof(proto, parent) { - return { - kind: "oneof", - proto, - deprecated: false, - parent, - fields: [], - name: proto.name, - localName: (0, names_js_1.safeObjectProperty)((0, names_js_1.protoCamelCase)(proto.name)), - toString() { - return `oneof ${parent.typeName}.${this.name}`; - }, - }; -} -function newField(proto, parentOrFile, reg, oneof, mapEntries) { - var _a, _b, _c; - const isExtension = mapEntries === undefined; - const field = { - kind: "field", - proto, - deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false, - name: proto.name, - number: proto.number, - scalar: undefined, - message: undefined, - enum: undefined, - presence: getFieldPresence(proto, oneof, isExtension, parentOrFile), - listKind: undefined, - mapKind: undefined, - mapKey: undefined, - delimitedEncoding: undefined, - packed: undefined, - longAsString: false, - getDefaultValue: undefined, - }; - if (isExtension) { - // extension field - const file = parentOrFile.kind == "file" ? parentOrFile : parentOrFile.file; - const parent = parentOrFile.kind == "file" ? undefined : parentOrFile; - const typeName = makeTypeName(proto, parent, file); - field.kind = "extension"; - field.file = file; - field.parent = parent; - field.oneof = undefined; - field.typeName = typeName; - field.jsonName = `[${typeName}]`; // option json_name is not allowed on extension fields - field.toString = () => `extension ${typeName}`; - const extendee = reg.getMessage(trimLeadingDot(proto.extendee)); - assert(extendee, `invalid FieldDescriptorProto: extendee ${proto.extendee} not found`); - field.extendee = extendee; - } - else { - // regular field - const parent = parentOrFile; - assert(parent.kind == "message"); - field.parent = parent; - field.oneof = oneof; - field.localName = oneof - ? (0, names_js_1.protoCamelCase)(proto.name) - : (0, names_js_1.safeObjectProperty)((0, names_js_1.protoCamelCase)(proto.name)); - field.jsonName = proto.jsonName; - field.toString = () => `field ${parent.typeName}.${proto.name}`; - } - const label = proto.label; - const type = proto.type; - const jstype = (_c = proto.options) === null || _c === void 0 ? void 0 : _c.jstype; - if (label === LABEL_REPEATED) { - // list or map field - const mapEntry = type == TYPE_MESSAGE - ? mapEntries === null || mapEntries === void 0 ? void 0 : mapEntries.get(trimLeadingDot(proto.typeName)) - : undefined; - if (mapEntry) { - // map field - field.fieldKind = "map"; - const { key, value } = findMapEntryFields(mapEntry); - field.mapKey = key.scalar; - field.mapKind = value.fieldKind; - field.message = value.message; - field.delimitedEncoding = false; // map fields are always LENGTH_PREFIXED - field.enum = value.enum; - field.scalar = value.scalar; - return field; - } - // list field - field.fieldKind = "list"; - switch (type) { - case TYPE_MESSAGE: - case TYPE_GROUP: - field.listKind = "message"; - field.message = reg.getMessage(trimLeadingDot(proto.typeName)); - assert(field.message); - field.delimitedEncoding = isDelimitedEncoding(proto, parentOrFile); - break; - case TYPE_ENUM: - field.listKind = "enum"; - field.enum = reg.getEnum(trimLeadingDot(proto.typeName)); - assert(field.enum); - break; - default: - field.listKind = "scalar"; - field.scalar = type; - field.longAsString = jstype == JS_STRING; - break; - } - field.packed = isPackedField(proto, parentOrFile); - return field; - } - // singular - switch (type) { - case TYPE_MESSAGE: - case TYPE_GROUP: - field.fieldKind = "message"; - field.message = reg.getMessage(trimLeadingDot(proto.typeName)); - assert(field.message, `invalid FieldDescriptorProto: type_name ${proto.typeName} not found`); - field.delimitedEncoding = isDelimitedEncoding(proto, parentOrFile); - field.getDefaultValue = () => undefined; - break; - case TYPE_ENUM: { - const enumeration = reg.getEnum(trimLeadingDot(proto.typeName)); - assert(enumeration !== undefined, `invalid FieldDescriptorProto: type_name ${proto.typeName} not found`); - field.fieldKind = "enum"; - field.enum = reg.getEnum(trimLeadingDot(proto.typeName)); - field.getDefaultValue = () => { - return (0, unsafe_js_1.unsafeIsSetExplicit)(proto, "defaultValue") - ? (0, text_format_js_1.parseTextFormatEnumValue)(enumeration, proto.defaultValue) - : undefined; - }; - break; - } - default: { - field.fieldKind = "scalar"; - field.scalar = type; - field.longAsString = jstype == JS_STRING; - field.getDefaultValue = () => { - return (0, unsafe_js_1.unsafeIsSetExplicit)(proto, "defaultValue") - ? (0, text_format_js_1.parseTextFormatScalarValue)(type, proto.defaultValue) - : undefined; - }; - break; - } - } - return field; -} -/** - * Parse the "syntax" and "edition" fields, returning one of the supported - * editions. - */ -function getFileEdition(proto) { - switch (proto.syntax) { - case "": - case "proto2": - return EDITION_PROTO2; - case "proto3": - return EDITION_PROTO3; - case "editions": - if (proto.edition in featureDefaults) { - return proto.edition; - } - throw new Error(`${proto.name}: unsupported edition`); - default: - throw new Error(`${proto.name}: unsupported syntax "${proto.syntax}"`); - } -} -/** - * Resolve dependencies of FileDescriptorProto to DescFile. - */ -function findFileDependencies(proto, reg) { - return proto.dependency.map((wantName) => { - const dep = reg.getFile(wantName); - if (!dep) { - throw new Error(`Cannot find ${wantName}, imported by ${proto.name}`); - } - return dep; - }); -} -/** - * Finds a prefix shared by enum values, for example `my_enum_` for - * `enum MyEnum {MY_ENUM_A=0; MY_ENUM_B=1;}`. - */ -function findEnumSharedPrefix(enumName, values) { - const prefix = camelToSnakeCase(enumName) + "_"; - for (const value of values) { - if (!value.name.toLowerCase().startsWith(prefix)) { - return undefined; - } - const shortName = value.name.substring(prefix.length); - if (shortName.length == 0) { - return undefined; - } - if (/^\d/.test(shortName)) { - // identifiers must not start with numbers - return undefined; - } - } - return prefix; -} -/** - * Converts lowerCamelCase or UpperCamelCase into lower_snake_case. - * This is used to find shared prefixes in an enum. - */ -function camelToSnakeCase(camel) { - return (camel.substring(0, 1) + camel.substring(1).replace(/[A-Z]/g, (c) => "_" + c)).toLowerCase(); -} -/** - * Create a fully qualified name for a protobuf type or extension field. - * - * The fully qualified name for messages, enumerations, and services is - * constructed by concatenating the package name (if present), parent - * message names (for nested types), and the type name. We omit the leading - * dot added by protobuf compilers. Examples: - * - mypackage.MyMessage - * - mypackage.MyMessage.NestedMessage - * - * The fully qualified name for extension fields is constructed by - * concatenating the package name (if present), parent message names (for - * extensions declared within a message), and the field name. Examples: - * - mypackage.extfield - * - mypackage.MyMessage.extfield - */ -function makeTypeName(proto, parent, file) { - let typeName; - if (parent) { - typeName = `${parent.typeName}.${proto.name}`; - } - else if (file.proto.package.length > 0) { - typeName = `${file.proto.package}.${proto.name}`; - } - else { - typeName = `${proto.name}`; - } - return typeName; -} -/** - * Remove the leading dot from a fully qualified type name. - */ -function trimLeadingDot(typeName) { - return typeName.startsWith(".") ? typeName.substring(1) : typeName; -} -/** - * Did the user put the field in a oneof group? - * Synthetic oneofs for proto3 optionals are ignored. - */ -function findOneof(proto, allOneofs) { - if (!(0, unsafe_js_1.unsafeIsSetExplicit)(proto, "oneofIndex")) { - return undefined; - } - if (proto.proto3Optional) { - return undefined; - } - const oneof = allOneofs[proto.oneofIndex]; - assert(oneof, `invalid FieldDescriptorProto: oneof #${proto.oneofIndex} for field #${proto.number} not found`); - return oneof; -} -/** - * Presence of the field. - * See https://protobuf.dev/programming-guides/field_presence/ - */ -function getFieldPresence(proto, oneof, isExtension, parent) { - if (proto.label == LABEL_REQUIRED) { - // proto2 required is LEGACY_REQUIRED - return LEGACY_REQUIRED; - } - if (proto.label == LABEL_REPEATED) { - // repeated fields (including maps) do not track presence - return IMPLICIT; - } - if (!!oneof || proto.proto3Optional) { - // oneof is always explicit - return EXPLICIT; - } - if (isExtension) { - // extensions always track presence - return EXPLICIT; - } - const resolved = resolveFeature("fieldPresence", { proto, parent }); - if (resolved == IMPLICIT && - (proto.type == TYPE_MESSAGE || proto.type == TYPE_GROUP)) { - // singular message field cannot be implicit - return EXPLICIT; - } - return resolved; -} -/** - * Pack this repeated field? - */ -function isPackedField(proto, parent) { - if (proto.label != LABEL_REPEATED) { - return false; - } - switch (proto.type) { - case TYPE_STRING: - case TYPE_BYTES: - case TYPE_GROUP: - case TYPE_MESSAGE: - // length-delimited types cannot be packed - return false; - } - const o = proto.options; - if (o && (0, unsafe_js_1.unsafeIsSetExplicit)(o, "packed")) { - // prefer the field option over edition features - return o.packed; - } - return (PACKED == - resolveFeature("repeatedFieldEncoding", { - proto, - parent, - })); -} -/** - * Find the key and value fields of a synthetic map entry message. - */ -function findMapEntryFields(mapEntry) { - const key = mapEntry.fields.find((f) => f.number === 1); - const value = mapEntry.fields.find((f) => f.number === 2); - assert(key && - key.fieldKind == "scalar" && - key.scalar != descriptors_js_1.ScalarType.BYTES && - key.scalar != descriptors_js_1.ScalarType.FLOAT && - key.scalar != descriptors_js_1.ScalarType.DOUBLE && - value && - value.fieldKind != "list" && - value.fieldKind != "map"); - return { key, value }; -} -/** - * Enumerations can be open or closed. - * See https://protobuf.dev/programming-guides/enum/ - */ -function isEnumOpen(desc) { - var _a; - return (OPEN == - resolveFeature("enumType", { - proto: desc.proto, - parent: (_a = desc.parent) !== null && _a !== void 0 ? _a : desc.file, - })); -} -/** - * Encode the message delimited (a.k.a. proto2 group encoding), or - * length-prefixed? - */ -function isDelimitedEncoding(proto, parent) { - if (proto.type == TYPE_GROUP) { - return true; - } - return (DELIMITED == - resolveFeature("messageEncoding", { - proto, - parent, - })); -} -function resolveFeature(name, ref) { - var _a, _b; - const featureSet = (_a = ref.proto.options) === null || _a === void 0 ? void 0 : _a.features; - if (featureSet) { - const val = featureSet[name]; - if (val != 0) { - return val; - } - } - if ("kind" in ref) { - if (ref.kind == "message") { - return resolveFeature(name, (_b = ref.parent) !== null && _b !== void 0 ? _b : ref.file); - } - const editionDefaults = featureDefaults[ref.edition]; - if (!editionDefaults) { - throw new Error(`feature default for edition ${ref.edition} not found`); - } - return editionDefaults[name]; - } - return resolveFeature(name, ref.parent); -} -/** - * Assert that condition is truthy or throw error (with message) - */ -function assert(condition, msg) { - if (!condition) { - throw new Error(msg); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/to-binary.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/to-binary.d.ts deleted file mode 100644 index 236ed49..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/to-binary.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { MessageShape } from "./types.js"; -import { BinaryWriter } from "./wire/binary-encoding.js"; -import { type DescField, type DescMessage } from "./descriptors.js"; -import type { ReflectMessage } from "./reflect/index.js"; -/** - * Options for serializing to binary data. - * - * V1 also had the option `readerFactory` for using a custom implementation to - * encode to binary. - */ -export interface BinaryWriteOptions { - /** - * Include unknown fields in the serialized output? The default behavior - * is to retain unknown fields and include them in the serialized output. - * - * For more details see https://developers.google.com/protocol-buffers/docs/proto3#unknowns - */ - writeUnknownFields: boolean; -} -export declare function toBinary(schema: Desc, message: MessageShape, options?: Partial): Uint8Array; -/** - * @private - */ -export declare function writeField(writer: BinaryWriter, opts: BinaryWriteOptions, msg: ReflectMessage, field: DescField): void; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/to-binary.js b/node_modules/@bufbuild/protobuf/dist/cjs/to-binary.js deleted file mode 100644 index 061c7ed..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/to-binary.js +++ /dev/null @@ -1,199 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toBinary = toBinary; -exports.writeField = writeField; -const reflect_js_1 = require("./reflect/reflect.js"); -const binary_encoding_js_1 = require("./wire/binary-encoding.js"); -const descriptors_js_1 = require("./descriptors.js"); -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.LEGACY_REQUIRED: const $name: FeatureSet_FieldPresence.$localName = $number; -const LEGACY_REQUIRED = 3; -// Default options for serializing binary data. -const writeDefaults = { - writeUnknownFields: true, -}; -function makeWriteOptions(options) { - return options ? Object.assign(Object.assign({}, writeDefaults), options) : writeDefaults; -} -function toBinary(schema, message, options) { - return writeFields(new binary_encoding_js_1.BinaryWriter(), makeWriteOptions(options), (0, reflect_js_1.reflect)(schema, message)).finish(); -} -function writeFields(writer, opts, msg) { - var _a; - for (const f of msg.sortedFields) { - if (!msg.isSet(f)) { - if (f.presence == LEGACY_REQUIRED) { - throw new Error(`cannot encode ${f} to binary: required field not set`); - } - continue; - } - writeField(writer, opts, msg, f); - } - if (opts.writeUnknownFields) { - for (const { no, wireType, data } of (_a = msg.getUnknown()) !== null && _a !== void 0 ? _a : []) { - writer.tag(no, wireType).raw(data); - } - } - return writer; -} -/** - * @private - */ -function writeField(writer, opts, msg, field) { - var _a; - switch (field.fieldKind) { - case "scalar": - case "enum": - writeScalar(writer, msg.desc.typeName, field.name, (_a = field.scalar) !== null && _a !== void 0 ? _a : descriptors_js_1.ScalarType.INT32, field.number, msg.get(field)); - break; - case "list": - writeListField(writer, opts, field, msg.get(field)); - break; - case "message": - writeMessageField(writer, opts, field, msg.get(field)); - break; - case "map": - for (const [key, val] of msg.get(field)) { - writeMapEntry(writer, opts, field, key, val); - } - break; - } -} -function writeScalar(writer, msgName, fieldName, scalarType, fieldNo, value) { - writeScalarValue(writer.tag(fieldNo, writeTypeOfScalar(scalarType)), msgName, fieldName, scalarType, value); -} -function writeMessageField(writer, opts, field, message) { - if (field.delimitedEncoding) { - writeFields(writer.tag(field.number, binary_encoding_js_1.WireType.StartGroup), opts, message).tag(field.number, binary_encoding_js_1.WireType.EndGroup); - } - else { - writeFields(writer.tag(field.number, binary_encoding_js_1.WireType.LengthDelimited).fork(), opts, message).join(); - } -} -function writeListField(writer, opts, field, list) { - var _a; - if (field.listKind == "message") { - for (const item of list) { - writeMessageField(writer, opts, field, item); - } - return; - } - const scalarType = (_a = field.scalar) !== null && _a !== void 0 ? _a : descriptors_js_1.ScalarType.INT32; - if (field.packed) { - if (!list.size) { - return; - } - writer.tag(field.number, binary_encoding_js_1.WireType.LengthDelimited).fork(); - for (const item of list) { - writeScalarValue(writer, field.parent.typeName, field.name, scalarType, item); - } - writer.join(); - return; - } - for (const item of list) { - writeScalar(writer, field.parent.typeName, field.name, scalarType, field.number, item); - } -} -function writeMapEntry(writer, opts, field, key, value) { - var _a; - writer.tag(field.number, binary_encoding_js_1.WireType.LengthDelimited).fork(); - // write key, expecting key field number = 1 - writeScalar(writer, field.parent.typeName, field.name, field.mapKey, 1, key); - // write value, expecting value field number = 2 - switch (field.mapKind) { - case "scalar": - case "enum": - writeScalar(writer, field.parent.typeName, field.name, (_a = field.scalar) !== null && _a !== void 0 ? _a : descriptors_js_1.ScalarType.INT32, 2, value); - break; - case "message": - writeFields(writer.tag(2, binary_encoding_js_1.WireType.LengthDelimited).fork(), opts, value).join(); - break; - } - writer.join(); -} -function writeScalarValue(writer, msgName, fieldName, type, value) { - try { - switch (type) { - case descriptors_js_1.ScalarType.STRING: - writer.string(value); - break; - case descriptors_js_1.ScalarType.BOOL: - writer.bool(value); - break; - case descriptors_js_1.ScalarType.DOUBLE: - writer.double(value); - break; - case descriptors_js_1.ScalarType.FLOAT: - writer.float(value); - break; - case descriptors_js_1.ScalarType.INT32: - writer.int32(value); - break; - case descriptors_js_1.ScalarType.INT64: - writer.int64(value); - break; - case descriptors_js_1.ScalarType.UINT64: - writer.uint64(value); - break; - case descriptors_js_1.ScalarType.FIXED64: - writer.fixed64(value); - break; - case descriptors_js_1.ScalarType.BYTES: - writer.bytes(value); - break; - case descriptors_js_1.ScalarType.FIXED32: - writer.fixed32(value); - break; - case descriptors_js_1.ScalarType.SFIXED32: - writer.sfixed32(value); - break; - case descriptors_js_1.ScalarType.SFIXED64: - writer.sfixed64(value); - break; - case descriptors_js_1.ScalarType.SINT64: - writer.sint64(value); - break; - case descriptors_js_1.ScalarType.UINT32: - writer.uint32(value); - break; - case descriptors_js_1.ScalarType.SINT32: - writer.sint32(value); - break; - } - } - catch (e) { - if (e instanceof Error) { - throw new Error(`cannot encode field ${msgName}.${fieldName} to binary: ${e.message}`); - } - throw e; - } -} -function writeTypeOfScalar(type) { - switch (type) { - case descriptors_js_1.ScalarType.BYTES: - case descriptors_js_1.ScalarType.STRING: - return binary_encoding_js_1.WireType.LengthDelimited; - case descriptors_js_1.ScalarType.DOUBLE: - case descriptors_js_1.ScalarType.FIXED64: - case descriptors_js_1.ScalarType.SFIXED64: - return binary_encoding_js_1.WireType.Bit64; - case descriptors_js_1.ScalarType.FIXED32: - case descriptors_js_1.ScalarType.SFIXED32: - case descriptors_js_1.ScalarType.FLOAT: - return binary_encoding_js_1.WireType.Bit32; - default: - return binary_encoding_js_1.WireType.Varint; - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/to-json.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/to-json.d.ts deleted file mode 100644 index f15b9b5..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/to-json.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { type DescEnum, type DescMessage } from "./descriptors.js"; -import type { JsonValue } from "./json-value.js"; -import type { Registry } from "./registry.js"; -import type { EnumJsonType, EnumShape, MessageJsonType, MessageShape } from "./types.js"; -/** - * Options for serializing to JSON. - */ -export interface JsonWriteOptions { - /** - * By default, fields with implicit presence are not serialized if they are - * unset. For example, an empty list field or a proto3 int32 field with 0 is - * not serialized. With this option enabled, such fields are included in the - * output. - */ - alwaysEmitImplicit: boolean; - /** - * Emit enum values as integers instead of strings: The name of an enum - * value is used by default in JSON output. An option may be provided to - * use the numeric value of the enum value instead. - */ - enumAsInteger: boolean; - /** - * Use proto field name instead of lowerCamelCase name: By default proto3 - * JSON printer should convert the field name to lowerCamelCase and use - * that as the JSON name. An implementation may provide an option to use - * proto field name as the JSON name instead. Proto3 JSON parsers are - * required to accept both the converted lowerCamelCase name and the proto - * field name. - */ - useProtoFieldName: boolean; - /** - * This option is required to write `google.protobuf.Any` and extensions - * to JSON format. - */ - registry?: Registry; -} -/** - * Options for serializing to JSON. - */ -export interface JsonWriteStringOptions extends JsonWriteOptions { - /** - * Format JSON with indentation. Indicates the number of space characters to - * be used as indentation. - * - * This option is passed to JSON.stringify as `space`. - */ - prettySpaces: number; -} -/** - * Serialize the message to a JSON value, a JavaScript value that can be - * passed to JSON.stringify(). - */ -export declare function toJson | undefined = undefined>(schema: Desc, message: MessageShape, options?: Opts): ToJson; -type ToJson> = Opts extends undefined | { - alwaysEmitImplicit?: false; - enumAsInteger?: false; - useProtoFieldName?: false; -} ? MessageJsonType : JsonValue; -/** - * Serialize the message to a JSON string. - */ -export declare function toJsonString(schema: Desc, message: MessageShape, options?: Partial): string; -/** - * Serialize a single enum value to JSON. - */ -export declare function enumToJson(descEnum: Desc, value: EnumShape): EnumJsonType; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/to-json.js b/node_modules/@bufbuild/protobuf/dist/cjs/to-json.js deleted file mode 100644 index 430f83f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/to-json.js +++ /dev/null @@ -1,387 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toJson = toJson; -exports.toJsonString = toJsonString; -exports.enumToJson = enumToJson; -const descriptors_js_1 = require("./descriptors.js"); -const names_js_1 = require("./reflect/names.js"); -const reflect_js_1 = require("./reflect/reflect.js"); -const index_js_1 = require("./wkt/index.js"); -const wrappers_js_1 = require("./wkt/wrappers.js"); -const index_js_2 = require("./wire/index.js"); -const extensions_js_1 = require("./extensions.js"); -const reflect_check_js_1 = require("./reflect/reflect-check.js"); -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.LEGACY_REQUIRED: const $name: FeatureSet_FieldPresence.$localName = $number; -const LEGACY_REQUIRED = 3; -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.IMPLICIT: const $name: FeatureSet_FieldPresence.$localName = $number; -const IMPLICIT = 2; -// Default options for serializing to JSON. -const jsonWriteDefaults = { - alwaysEmitImplicit: false, - enumAsInteger: false, - useProtoFieldName: false, -}; -function makeWriteOptions(options) { - return options ? Object.assign(Object.assign({}, jsonWriteDefaults), options) : jsonWriteDefaults; -} -/** - * Serialize the message to a JSON value, a JavaScript value that can be - * passed to JSON.stringify(). - */ -function toJson(schema, message, options) { - return reflectToJson((0, reflect_js_1.reflect)(schema, message), makeWriteOptions(options)); -} -/** - * Serialize the message to a JSON string. - */ -function toJsonString(schema, message, options) { - var _a; - const jsonValue = toJson(schema, message, options); - return JSON.stringify(jsonValue, null, (_a = options === null || options === void 0 ? void 0 : options.prettySpaces) !== null && _a !== void 0 ? _a : 0); -} -/** - * Serialize a single enum value to JSON. - */ -function enumToJson(descEnum, value) { - var _a; - if (descEnum.typeName == "google.protobuf.NullValue") { - return null; - } - const name = (_a = descEnum.value[value]) === null || _a === void 0 ? void 0 : _a.name; - if (name === undefined) { - throw new Error(`${value} is not a value in ${descEnum}`); - } - return name; -} -function reflectToJson(msg, opts) { - var _a; - const wktJson = tryWktToJson(msg, opts); - if (wktJson !== undefined) - return wktJson; - const json = {}; - for (const f of msg.sortedFields) { - if (!msg.isSet(f)) { - if (f.presence == LEGACY_REQUIRED) { - throw new Error(`cannot encode ${f} to JSON: required field not set`); - } - if (!opts.alwaysEmitImplicit || f.presence !== IMPLICIT) { - // Fields with implicit presence omit zero values (e.g. empty string) by default - continue; - } - } - const jsonValue = fieldToJson(f, msg.get(f), opts); - if (jsonValue !== undefined) { - json[jsonName(f, opts)] = jsonValue; - } - } - if (opts.registry) { - const tagSeen = new Set(); - for (const { no } of (_a = msg.getUnknown()) !== null && _a !== void 0 ? _a : []) { - // Same tag can appear multiple times, so we - // keep track and skip identical ones. - if (!tagSeen.has(no)) { - tagSeen.add(no); - const extension = opts.registry.getExtensionFor(msg.desc, no); - if (!extension) { - continue; - } - const value = (0, extensions_js_1.getExtension)(msg.message, extension); - const [container, field] = (0, extensions_js_1.createExtensionContainer)(extension, value); - const jsonValue = fieldToJson(field, container.get(field), opts); - if (jsonValue !== undefined) { - json[extension.jsonName] = jsonValue; - } - } - } - } - return json; -} -function fieldToJson(f, val, opts) { - switch (f.fieldKind) { - case "scalar": - return scalarToJson(f, val); - case "message": - return reflectToJson(val, opts); - case "enum": - return enumToJsonInternal(f.enum, val, opts.enumAsInteger); - case "list": - return listToJson(val, opts); - case "map": - return mapToJson(val, opts); - } -} -function mapToJson(map, opts) { - const f = map.field(); - const jsonObj = {}; - switch (f.mapKind) { - case "scalar": - for (const [entryKey, entryValue] of map) { - jsonObj[entryKey] = scalarToJson(f, entryValue); - } - break; - case "message": - for (const [entryKey, entryValue] of map) { - jsonObj[entryKey] = reflectToJson(entryValue, opts); - } - break; - case "enum": - for (const [entryKey, entryValue] of map) { - jsonObj[entryKey] = enumToJsonInternal(f.enum, entryValue, opts.enumAsInteger); - } - break; - } - return opts.alwaysEmitImplicit || map.size > 0 ? jsonObj : undefined; -} -function listToJson(list, opts) { - const f = list.field(); - const jsonArr = []; - switch (f.listKind) { - case "scalar": - for (const item of list) { - jsonArr.push(scalarToJson(f, item)); - } - break; - case "enum": - for (const item of list) { - jsonArr.push(enumToJsonInternal(f.enum, item, opts.enumAsInteger)); - } - break; - case "message": - for (const item of list) { - jsonArr.push(reflectToJson(item, opts)); - } - break; - } - return opts.alwaysEmitImplicit || jsonArr.length > 0 ? jsonArr : undefined; -} -function enumToJsonInternal(desc, value, enumAsInteger) { - var _a; - if (typeof value != "number") { - throw new Error(`cannot encode ${desc} to JSON: expected number, got ${(0, reflect_check_js_1.formatVal)(value)}`); - } - if (desc.typeName == "google.protobuf.NullValue") { - return null; - } - if (enumAsInteger) { - return value; - } - const val = desc.value[value]; - return (_a = val === null || val === void 0 ? void 0 : val.name) !== null && _a !== void 0 ? _a : value; // if we don't know the enum value, just return the number -} -function scalarToJson(field, value) { - var _a, _b, _c, _d, _e, _f; - switch (field.scalar) { - // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted. - case descriptors_js_1.ScalarType.INT32: - case descriptors_js_1.ScalarType.SFIXED32: - case descriptors_js_1.ScalarType.SINT32: - case descriptors_js_1.ScalarType.FIXED32: - case descriptors_js_1.ScalarType.UINT32: - if (typeof value != "number") { - throw new Error(`cannot encode ${field} to JSON: ${(_a = (0, reflect_check_js_1.checkField)(field, value)) === null || _a === void 0 ? void 0 : _a.message}`); - } - return value; - // float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity". - // Either numbers or strings are accepted. Exponent notation is also accepted. - case descriptors_js_1.ScalarType.FLOAT: - case descriptors_js_1.ScalarType.DOUBLE: // eslint-disable-line no-fallthrough - if (typeof value != "number") { - throw new Error(`cannot encode ${field} to JSON: ${(_b = (0, reflect_check_js_1.checkField)(field, value)) === null || _b === void 0 ? void 0 : _b.message}`); - } - if (Number.isNaN(value)) - return "NaN"; - if (value === Number.POSITIVE_INFINITY) - return "Infinity"; - if (value === Number.NEGATIVE_INFINITY) - return "-Infinity"; - return value; - // string: - case descriptors_js_1.ScalarType.STRING: - if (typeof value != "string") { - throw new Error(`cannot encode ${field} to JSON: ${(_c = (0, reflect_check_js_1.checkField)(field, value)) === null || _c === void 0 ? void 0 : _c.message}`); - } - return value; - // bool: - case descriptors_js_1.ScalarType.BOOL: - if (typeof value != "boolean") { - throw new Error(`cannot encode ${field} to JSON: ${(_d = (0, reflect_check_js_1.checkField)(field, value)) === null || _d === void 0 ? void 0 : _d.message}`); - } - return value; - // JSON value will be a decimal string. Either numbers or strings are accepted. - case descriptors_js_1.ScalarType.UINT64: - case descriptors_js_1.ScalarType.FIXED64: - case descriptors_js_1.ScalarType.INT64: - case descriptors_js_1.ScalarType.SFIXED64: - case descriptors_js_1.ScalarType.SINT64: - if (typeof value != "bigint" && typeof value != "string") { - throw new Error(`cannot encode ${field} to JSON: ${(_e = (0, reflect_check_js_1.checkField)(field, value)) === null || _e === void 0 ? void 0 : _e.message}`); - } - return value.toString(); - // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings. - // Either standard or URL-safe base64 encoding with/without paddings are accepted. - case descriptors_js_1.ScalarType.BYTES: - if (value instanceof Uint8Array) { - return (0, index_js_2.base64Encode)(value); - } - throw new Error(`cannot encode ${field} to JSON: ${(_f = (0, reflect_check_js_1.checkField)(field, value)) === null || _f === void 0 ? void 0 : _f.message}`); - } -} -function jsonName(f, opts) { - return opts.useProtoFieldName ? f.name : f.jsonName; -} -// returns a json value if wkt, otherwise returns undefined. -function tryWktToJson(msg, opts) { - if (!msg.desc.typeName.startsWith("google.protobuf.")) { - return undefined; - } - switch (msg.desc.typeName) { - case "google.protobuf.Any": - return anyToJson(msg.message, opts); - case "google.protobuf.Timestamp": - return timestampToJson(msg.message); - case "google.protobuf.Duration": - return durationToJson(msg.message); - case "google.protobuf.FieldMask": - return fieldMaskToJson(msg.message); - case "google.protobuf.Struct": - return structToJson(msg.message); - case "google.protobuf.Value": - return valueToJson(msg.message); - case "google.protobuf.ListValue": - return listValueToJson(msg.message); - default: - if ((0, wrappers_js_1.isWrapperDesc)(msg.desc)) { - const valueField = msg.desc.fields[0]; - return scalarToJson(valueField, msg.get(valueField)); - } - return undefined; - } -} -function anyToJson(val, opts) { - if (val.typeUrl === "") { - return {}; - } - const { registry } = opts; - let message; - let desc; - if (registry) { - message = (0, index_js_1.anyUnpack)(val, registry); - if (message) { - desc = registry.getMessage(message.$typeName); - } - } - if (!desc || !message) { - throw new Error(`cannot encode message ${val.$typeName} to JSON: "${val.typeUrl}" is not in the type registry`); - } - let json = reflectToJson((0, reflect_js_1.reflect)(desc, message), opts); - if (desc.typeName.startsWith("google.protobuf.") || - json === null || - Array.isArray(json) || - typeof json !== "object") { - json = { value: json }; - } - json["@type"] = val.typeUrl; - return json; -} -function durationToJson(val) { - if (Number(val.seconds) > 315576000000 || - Number(val.seconds) < -315576000000) { - throw new Error(`cannot encode message ${val.$typeName} to JSON: value out of range`); - } - let text = val.seconds.toString(); - if (val.nanos !== 0) { - let nanosStr = Math.abs(val.nanos).toString(); - nanosStr = "0".repeat(9 - nanosStr.length) + nanosStr; - if (nanosStr.substring(3) === "000000") { - nanosStr = nanosStr.substring(0, 3); - } - else if (nanosStr.substring(6) === "000") { - nanosStr = nanosStr.substring(0, 6); - } - text += "." + nanosStr; - if (val.nanos < 0 && Number(val.seconds) == 0) { - text = "-" + text; - } - } - return text + "s"; -} -function fieldMaskToJson(val) { - return val.paths - .map((p) => { - if (p.match(/_[0-9]?_/g) || p.match(/[A-Z]/g)) { - throw new Error(`cannot encode message ${val.$typeName} to JSON: lowerCamelCase of path name "` + - p + - '" is irreversible'); - } - return (0, names_js_1.protoCamelCase)(p); - }) - .join(","); -} -function structToJson(val) { - const json = {}; - for (const [k, v] of Object.entries(val.fields)) { - json[k] = valueToJson(v); - } - return json; -} -function valueToJson(val) { - switch (val.kind.case) { - case "nullValue": - return null; - case "numberValue": - if (!Number.isFinite(val.kind.value)) { - throw new Error(`${val.$typeName} cannot be NaN or Infinity`); - } - return val.kind.value; - case "boolValue": - return val.kind.value; - case "stringValue": - return val.kind.value; - case "structValue": - return structToJson(val.kind.value); - case "listValue": - return listValueToJson(val.kind.value); - default: - throw new Error(`${val.$typeName} must have a value`); - } -} -function listValueToJson(val) { - return val.values.map(valueToJson); -} -function timestampToJson(val) { - const ms = Number(val.seconds) * 1000; - if (ms < Date.parse("0001-01-01T00:00:00Z") || - ms > Date.parse("9999-12-31T23:59:59Z")) { - throw new Error(`cannot encode message ${val.$typeName} to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`); - } - if (val.nanos < 0) { - throw new Error(`cannot encode message ${val.$typeName} to JSON: nanos must not be negative`); - } - let z = "Z"; - if (val.nanos > 0) { - const nanosStr = (val.nanos + 1000000000).toString().substring(1); - if (nanosStr.substring(3) === "000000") { - z = "." + nanosStr.substring(0, 3) + "Z"; - } - else if (nanosStr.substring(6) === "000") { - z = "." + nanosStr.substring(0, 6) + "Z"; - } - else { - z = "." + nanosStr + "Z"; - } - } - return new Date(ms).toISOString().replace(".000Z", z); -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/types.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/types.d.ts deleted file mode 100644 index 93e4eff..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/types.d.ts +++ /dev/null @@ -1,128 +0,0 @@ -import type { GenEnum as GenEnumV1, GenExtension as GenExtensionV1, GenMessage as GenMessageV1 } from "./codegenv1/types.js"; -import type { GenEnum as GenEnumV2, GenExtension as GenExtensionV2, GenMessage as GenMessageV2 } from "./codegenv2/types.js"; -import type { DescEnum, DescExtension, DescMessage, DescMethod } from "./descriptors.js"; -import type { OneofADT } from "./reflect/guard.js"; -import type { WireType } from "./wire/index.js"; -import type { JsonValue } from "./json-value.js"; -/** - * The type `Message` contains the properties shared by all messages. - */ -export type Message = { - /** - * The fully qualified Protobuf type-name of the message. - */ - readonly $typeName: TypeName; - /** - * Unknown fields and extensions stored on the message. - */ - $unknown?: UnknownField[]; -}; -/** - * Extract the message type from a message descriptor. - */ -export type MessageShape = Desc extends GenMessageV1 ? RuntimeShapeV1 : Desc extends GenMessageV2 ? RuntimeShape : Message; -/** - * Extract the message JSON type from a message descriptor. - * - * JSON types are only available for code generated with the plugin option - * `json_types=true`. If JSON types are unavailable, this type falls back to the - * `JsonValue` type. - */ -export type MessageJsonType = Desc extends GenMessageV1 ? JsonTypeV1 : Desc extends GenMessageV2 ? JsonType : JsonValue; -/** - * Extract the message Valid type from a message descriptor. - * - * Valid types are only available for code generated with the plugin option - * `valid_types`. If Valid types are unavailable, this type falls back to the - * regular message shape. - */ -export type MessageValidType = Desc extends GenMessageV1 ? RuntimeShapeV1 : Desc extends GenMessageV2 ? ValidType : Desc extends GenMessageV2 ? RuntimeShape : Message; -/** - * Extract the init type from a message descriptor. - * The init type is accepted by the function create(). - */ -export type MessageInitShape = Desc extends GenMessageV1 ? MessageInit : Desc extends GenMessageV2 ? MessageInit : Record; -/** - * Extract the enum type of from an enum descriptor. - */ -export type EnumShape = Desc extends GenEnumV1 ? RuntimeShape : Desc extends GenEnumV2 ? RuntimeShape : number; -/** - * Extract the enum JSON type from a enum descriptor. - */ -export type EnumJsonType = Desc extends GenEnumV1 ? JsonType : Desc extends GenEnumV2 ? JsonType : string | null; -/** - * Extract the value type from an extension descriptor. - */ -export type ExtensionValueShape = Desc extends GenExtensionV1 ? RuntimeShape : Desc extends GenExtensionV2 ? RuntimeShape : unknown; -/** - * Extract the type of the extended message from an extension descriptor. - */ -export type Extendee = Desc extends GenExtensionV1 ? Extendee : Desc extends GenExtensionV2 ? Extendee : Message; -/** - * Unknown fields are fields that were not recognized during parsing, or - * extension. - */ -export type UnknownField = { - readonly no: number; - readonly wireType: WireType; - readonly data: Uint8Array; -}; -/** - * Describes a streaming RPC declaration. - */ -export type DescMethodStreaming = DescMethodClientStreaming | DescMethodServerStreaming | DescMethodBiDiStreaming; -/** - * Describes a unary RPC declaration. - */ -export type DescMethodUnary = DescMethodTyped<"unary", I, O>; -/** - * Describes a server streaming RPC declaration. - */ -export type DescMethodServerStreaming = DescMethodTyped<"server_streaming", I, O>; -/** - * Describes a client streaming RPC declaration. - */ -export type DescMethodClientStreaming = DescMethodTyped<"client_streaming", I, O>; -/** - * Describes a bidi streaming RPC declaration. - */ -export type DescMethodBiDiStreaming = DescMethodTyped<"bidi_streaming", I, O>; -/** - * The init type for a message, which makes all fields optional. - * The init type is accepted by the function create(). - */ -type MessageInit = T | { - [P in keyof T as P extends "$unknown" ? never : P]?: P extends "$typeName" ? never : FieldInit; -}; -type FieldInit = F extends (Date | Uint8Array | bigint | boolean | string | number) ? F : F extends Array ? Array> : F extends ReadonlyArray ? ReadonlyArray> : F extends Message ? MessageInit : F extends OneofSelectedMessage ? { - case: C; - value: MessageInit; -} : F extends OneofADT ? F : F extends MapWithMessage ? { - [key: string | number]: MessageInit; -} : F; -type MapWithMessage = { - [key: string | number]: V; -}; -type OneofSelectedMessage = { - case: K; - value: M; -}; -type DescMethodTyped = Omit & { - /** - * One of the four available method types. - */ - readonly methodKind: K; - /** - * The message type for requests. - */ - readonly input: I; - /** - * The message type for responses. - */ - readonly output: O; -}; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/types.js b/node_modules/@bufbuild/protobuf/dist/cjs/types.js deleted file mode 100644 index c14a1ee..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/types.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/base64-encoding.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wire/base64-encoding.d.ts deleted file mode 100644 index bbe3d7d..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/base64-encoding.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Decodes a base64 string to a byte array. - * - * - ignores white-space, including line breaks and tabs - * - allows inner padding (can decode concatenated base64 strings) - * - does not require padding - * - understands base64url encoding: - * "-" instead of "+", - * "_" instead of "/", - * no padding - */ -export declare function base64Decode(base64Str: string): Uint8Array; -/** - * Encode a byte array to a base64 string. - * - * By default, this function uses the standard base64 encoding with padding. - * - * To encode without padding, use encoding = "std_raw". - * - * To encode with the URL encoding, use encoding = "url", which replaces the - * characters +/ by their URL-safe counterparts -_, and omits padding. - */ -export declare function base64Encode(bytes: Uint8Array, encoding?: "std" | "std_raw" | "url"): string; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/base64-encoding.js b/node_modules/@bufbuild/protobuf/dist/cjs/wire/base64-encoding.js deleted file mode 100644 index 9a84985..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/base64-encoding.js +++ /dev/null @@ -1,156 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.base64Decode = base64Decode; -exports.base64Encode = base64Encode; -/** - * Decodes a base64 string to a byte array. - * - * - ignores white-space, including line breaks and tabs - * - allows inner padding (can decode concatenated base64 strings) - * - does not require padding - * - understands base64url encoding: - * "-" instead of "+", - * "_" instead of "/", - * no padding - */ -function base64Decode(base64Str) { - const table = getDecodeTable(); - // estimate byte size, not accounting for inner padding and whitespace - let es = (base64Str.length * 3) / 4; - if (base64Str[base64Str.length - 2] == "=") - es -= 2; - else if (base64Str[base64Str.length - 1] == "=") - es -= 1; - let bytes = new Uint8Array(es), bytePos = 0, // position in byte array - groupPos = 0, // position in base64 group - b, // current byte - p = 0; // previous byte - for (let i = 0; i < base64Str.length; i++) { - b = table[base64Str.charCodeAt(i)]; - if (b === undefined) { - switch (base64Str[i]) { - // @ts-ignore TS7029: Fallthrough case in switch -- ignore instead of expect-error for compiler settings without noFallthroughCasesInSwitch: true - case "=": - groupPos = 0; // reset state when padding found - case "\n": - case "\r": - case "\t": - case " ": - continue; // skip white-space, and padding - default: - throw Error("invalid base64 string"); - } - } - switch (groupPos) { - case 0: - p = b; - groupPos = 1; - break; - case 1: - bytes[bytePos++] = (p << 2) | ((b & 48) >> 4); - p = b; - groupPos = 2; - break; - case 2: - bytes[bytePos++] = ((p & 15) << 4) | ((b & 60) >> 2); - p = b; - groupPos = 3; - break; - case 3: - bytes[bytePos++] = ((p & 3) << 6) | b; - groupPos = 0; - break; - } - } - if (groupPos == 1) - throw Error("invalid base64 string"); - return bytes.subarray(0, bytePos); -} -/** - * Encode a byte array to a base64 string. - * - * By default, this function uses the standard base64 encoding with padding. - * - * To encode without padding, use encoding = "std_raw". - * - * To encode with the URL encoding, use encoding = "url", which replaces the - * characters +/ by their URL-safe counterparts -_, and omits padding. - */ -function base64Encode(bytes, encoding = "std") { - const table = getEncodeTable(encoding); - const pad = encoding == "std"; - let base64 = "", groupPos = 0, // position in base64 group - b, // current byte - p = 0; // carry over from previous byte - for (let i = 0; i < bytes.length; i++) { - b = bytes[i]; - switch (groupPos) { - case 0: - base64 += table[b >> 2]; - p = (b & 3) << 4; - groupPos = 1; - break; - case 1: - base64 += table[p | (b >> 4)]; - p = (b & 15) << 2; - groupPos = 2; - break; - case 2: - base64 += table[p | (b >> 6)]; - base64 += table[b & 63]; - groupPos = 0; - break; - } - } - // add output padding - if (groupPos) { - base64 += table[p]; - if (pad) { - base64 += "="; - if (groupPos == 1) - base64 += "="; - } - } - return base64; -} -// lookup table from base64 character to byte -let encodeTableStd; -let encodeTableUrl; -// lookup table from base64 character *code* to byte because lookup by number is fast -let decodeTable; -function getEncodeTable(encoding) { - if (!encodeTableStd) { - encodeTableStd = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""); - encodeTableUrl = encodeTableStd.slice(0, -2).concat("-", "_"); - } - return encoding == "url" - ? // biome-ignore lint/style/noNonNullAssertion: TS fails to narrow down - encodeTableUrl - : encodeTableStd; -} -function getDecodeTable() { - if (!decodeTable) { - decodeTable = []; - const encodeTable = getEncodeTable("std"); - for (let i = 0; i < encodeTable.length; i++) - decodeTable[encodeTable[i].charCodeAt(0)] = i; - // support base64url variants - decodeTable["-".charCodeAt(0)] = encodeTable.indexOf("+"); - decodeTable["_".charCodeAt(0)] = encodeTable.indexOf("/"); - } - return decodeTable; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.d.ts deleted file mode 100644 index 58f1a08..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.d.ts +++ /dev/null @@ -1,264 +0,0 @@ -/** - * Protobuf binary format wire types. - * - * A wire type provides just enough information to find the length of the - * following value. - * - * See https://developers.google.com/protocol-buffers/docs/encoding#structure - */ -export declare enum WireType { - /** - * Used for int32, int64, uint32, uint64, sint32, sint64, bool, enum - */ - Varint = 0, - /** - * Used for fixed64, sfixed64, double. - * Always 8 bytes with little-endian byte order. - */ - Bit64 = 1, - /** - * Used for string, bytes, embedded messages, packed repeated fields - * - * Only repeated numeric types (types which use the varint, 32-bit, - * or 64-bit wire types) can be packed. In proto3, such fields are - * packed by default. - */ - LengthDelimited = 2, - /** - * Start of a tag-delimited aggregate, such as a proto2 group, or a message - * in editions with message_encoding = DELIMITED. - */ - StartGroup = 3, - /** - * End of a tag-delimited aggregate. - */ - EndGroup = 4, - /** - * Used for fixed32, sfixed32, float. - * Always 4 bytes with little-endian byte order. - */ - Bit32 = 5 -} -/** - * Maximum value for a 32-bit floating point value (Protobuf FLOAT). - */ -export declare const FLOAT32_MAX = 3.4028234663852886e+38; -/** - * Minimum value for a 32-bit floating point value (Protobuf FLOAT). - */ -export declare const FLOAT32_MIN = -3.4028234663852886e+38; -/** - * Maximum value for an unsigned 32-bit integer (Protobuf UINT32, FIXED32). - */ -export declare const UINT32_MAX = 4294967295; -/** - * Maximum value for a signed 32-bit integer (Protobuf INT32, SFIXED32, SINT32). - */ -export declare const INT32_MAX = 2147483647; -/** - * Minimum value for a signed 32-bit integer (Protobuf INT32, SFIXED32, SINT32). - */ -export declare const INT32_MIN = -2147483648; -export declare class BinaryWriter { - private readonly encodeUtf8; - /** - * We cannot allocate a buffer for the entire output - * because we don't know it's size. - * - * So we collect smaller chunks of known size and - * concat them later. - * - * Use `raw()` to push data to this array. It will flush - * `buf` first. - */ - private chunks; - /** - * A growing buffer for byte values. If you don't know - * the size of the data you are writing, push to this - * array. - */ - protected buf: number[]; - /** - * Previous fork states. - */ - private stack; - constructor(encodeUtf8?: (text: string) => Uint8Array); - /** - * Return all bytes written and reset this writer. - */ - finish(): Uint8Array; - /** - * Start a new fork for length-delimited data like a message - * or a packed repeated field. - * - * Must be joined later with `join()`. - */ - fork(): this; - /** - * Join the last fork. Write its length and bytes, then - * return to the previous state. - */ - join(): this; - /** - * Writes a tag (field number and wire type). - * - * Equivalent to `uint32( (fieldNo << 3 | type) >>> 0 )`. - * - * Generated code should compute the tag ahead of time and call `uint32()`. - */ - tag(fieldNo: number, type: WireType): this; - /** - * Write a chunk of raw bytes. - */ - raw(chunk: Uint8Array): this; - /** - * Write a `uint32` value, an unsigned 32 bit varint. - */ - uint32(value: number): this; - /** - * Write a `int32` value, a signed 32 bit varint. - */ - int32(value: number): this; - /** - * Write a `bool` value, a variant. - */ - bool(value: boolean): this; - /** - * Write a `bytes` value, length-delimited arbitrary data. - */ - bytes(value: Uint8Array): this; - /** - * Write a `string` value, length-delimited data converted to UTF-8 text. - */ - string(value: string): this; - /** - * Write a `float` value, 32-bit floating point number. - */ - float(value: number): this; - /** - * Write a `double` value, a 64-bit floating point number. - */ - double(value: number): this; - /** - * Write a `fixed32` value, an unsigned, fixed-length 32-bit integer. - */ - fixed32(value: number): this; - /** - * Write a `sfixed32` value, a signed, fixed-length 32-bit integer. - */ - sfixed32(value: number): this; - /** - * Write a `sint32` value, a signed, zigzag-encoded 32-bit varint. - */ - sint32(value: number): this; - /** - * Write a `fixed64` value, a signed, fixed-length 64-bit integer. - */ - sfixed64(value: string | number | bigint): this; - /** - * Write a `fixed64` value, an unsigned, fixed-length 64 bit integer. - */ - fixed64(value: string | number | bigint): this; - /** - * Write a `int64` value, a signed 64-bit varint. - */ - int64(value: string | number | bigint): this; - /** - * Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint. - */ - sint64(value: string | number | bigint): this; - /** - * Write a `uint64` value, an unsigned 64-bit varint. - */ - uint64(value: string | number | bigint): this; -} -export declare class BinaryReader { - private readonly decodeUtf8; - /** - * Current position. - */ - pos: number; - /** - * Number of bytes available in this reader. - */ - readonly len: number; - protected readonly buf: Uint8Array; - private readonly view; - constructor(buf: Uint8Array, decodeUtf8?: (bytes: Uint8Array) => string); - /** - * Reads a tag - field number and wire type. - */ - tag(): [number, WireType]; - /** - * Skip one element and return the skipped data. - * - * When skipping StartGroup, provide the tags field number to check for - * matching field number in the EndGroup tag. - */ - skip(wireType: WireType, fieldNo?: number): Uint8Array; - protected varint64: () => [number, number]; - /** - * Throws error if position in byte array is out of range. - */ - protected assertBounds(): void; - /** - * Read a `uint32` field, an unsigned 32 bit varint. - */ - uint32: () => number; - /** - * Read a `int32` field, a signed 32 bit varint. - */ - int32(): number; - /** - * Read a `sint32` field, a signed, zigzag-encoded 32-bit varint. - */ - sint32(): number; - /** - * Read a `int64` field, a signed 64-bit varint. - */ - int64(): bigint | string; - /** - * Read a `uint64` field, an unsigned 64-bit varint. - */ - uint64(): bigint | string; - /** - * Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint. - */ - sint64(): bigint | string; - /** - * Read a `bool` field, a variant. - */ - bool(): boolean; - /** - * Read a `fixed32` field, an unsigned, fixed-length 32-bit integer. - */ - fixed32(): number; - /** - * Read a `sfixed32` field, a signed, fixed-length 32-bit integer. - */ - sfixed32(): number; - /** - * Read a `fixed64` field, an unsigned, fixed-length 64 bit integer. - */ - fixed64(): bigint | string; - /** - * Read a `fixed64` field, a signed, fixed-length 64-bit integer. - */ - sfixed64(): bigint | string; - /** - * Read a `float` field, 32-bit floating point number. - */ - float(): number; - /** - * Read a `double` field, a 64-bit floating point number. - */ - double(): number; - /** - * Read a `bytes` field, length-delimited arbitrary data. - */ - bytes(): Uint8Array; - /** - * Read a `string` field, length-delimited data converted to UTF-8 text. - */ - string(): string; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.js b/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.js deleted file mode 100644 index edc1a5f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.js +++ /dev/null @@ -1,515 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BinaryReader = exports.BinaryWriter = exports.INT32_MIN = exports.INT32_MAX = exports.UINT32_MAX = exports.FLOAT32_MIN = exports.FLOAT32_MAX = exports.WireType = void 0; -const varint_js_1 = require("./varint.js"); -const proto_int64_js_1 = require("../proto-int64.js"); -const text_encoding_js_1 = require("./text-encoding.js"); -/** - * Protobuf binary format wire types. - * - * A wire type provides just enough information to find the length of the - * following value. - * - * See https://developers.google.com/protocol-buffers/docs/encoding#structure - */ -var WireType; -(function (WireType) { - /** - * Used for int32, int64, uint32, uint64, sint32, sint64, bool, enum - */ - WireType[WireType["Varint"] = 0] = "Varint"; - /** - * Used for fixed64, sfixed64, double. - * Always 8 bytes with little-endian byte order. - */ - WireType[WireType["Bit64"] = 1] = "Bit64"; - /** - * Used for string, bytes, embedded messages, packed repeated fields - * - * Only repeated numeric types (types which use the varint, 32-bit, - * or 64-bit wire types) can be packed. In proto3, such fields are - * packed by default. - */ - WireType[WireType["LengthDelimited"] = 2] = "LengthDelimited"; - /** - * Start of a tag-delimited aggregate, such as a proto2 group, or a message - * in editions with message_encoding = DELIMITED. - */ - WireType[WireType["StartGroup"] = 3] = "StartGroup"; - /** - * End of a tag-delimited aggregate. - */ - WireType[WireType["EndGroup"] = 4] = "EndGroup"; - /** - * Used for fixed32, sfixed32, float. - * Always 4 bytes with little-endian byte order. - */ - WireType[WireType["Bit32"] = 5] = "Bit32"; -})(WireType || (exports.WireType = WireType = {})); -/** - * Maximum value for a 32-bit floating point value (Protobuf FLOAT). - */ -exports.FLOAT32_MAX = 3.4028234663852886e38; -/** - * Minimum value for a 32-bit floating point value (Protobuf FLOAT). - */ -exports.FLOAT32_MIN = -3.4028234663852886e38; -/** - * Maximum value for an unsigned 32-bit integer (Protobuf UINT32, FIXED32). - */ -exports.UINT32_MAX = 0xffffffff; -/** - * Maximum value for a signed 32-bit integer (Protobuf INT32, SFIXED32, SINT32). - */ -exports.INT32_MAX = 0x7fffffff; -/** - * Minimum value for a signed 32-bit integer (Protobuf INT32, SFIXED32, SINT32). - */ -exports.INT32_MIN = -0x80000000; -class BinaryWriter { - constructor(encodeUtf8 = (0, text_encoding_js_1.getTextEncoding)().encodeUtf8) { - this.encodeUtf8 = encodeUtf8; - /** - * Previous fork states. - */ - this.stack = []; - this.chunks = []; - this.buf = []; - } - /** - * Return all bytes written and reset this writer. - */ - finish() { - if (this.buf.length) { - this.chunks.push(new Uint8Array(this.buf)); // flush the buffer - this.buf = []; - } - let len = 0; - for (let i = 0; i < this.chunks.length; i++) - len += this.chunks[i].length; - let bytes = new Uint8Array(len); - let offset = 0; - for (let i = 0; i < this.chunks.length; i++) { - bytes.set(this.chunks[i], offset); - offset += this.chunks[i].length; - } - this.chunks = []; - return bytes; - } - /** - * Start a new fork for length-delimited data like a message - * or a packed repeated field. - * - * Must be joined later with `join()`. - */ - fork() { - this.stack.push({ chunks: this.chunks, buf: this.buf }); - this.chunks = []; - this.buf = []; - return this; - } - /** - * Join the last fork. Write its length and bytes, then - * return to the previous state. - */ - join() { - // get chunk of fork - let chunk = this.finish(); - // restore previous state - let prev = this.stack.pop(); - if (!prev) - throw new Error("invalid state, fork stack empty"); - this.chunks = prev.chunks; - this.buf = prev.buf; - // write length of chunk as varint - this.uint32(chunk.byteLength); - return this.raw(chunk); - } - /** - * Writes a tag (field number and wire type). - * - * Equivalent to `uint32( (fieldNo << 3 | type) >>> 0 )`. - * - * Generated code should compute the tag ahead of time and call `uint32()`. - */ - tag(fieldNo, type) { - return this.uint32(((fieldNo << 3) | type) >>> 0); - } - /** - * Write a chunk of raw bytes. - */ - raw(chunk) { - if (this.buf.length) { - this.chunks.push(new Uint8Array(this.buf)); - this.buf = []; - } - this.chunks.push(chunk); - return this; - } - /** - * Write a `uint32` value, an unsigned 32 bit varint. - */ - uint32(value) { - assertUInt32(value); - // write value as varint 32, inlined for speed - while (value > 0x7f) { - this.buf.push((value & 0x7f) | 0x80); - value = value >>> 7; - } - this.buf.push(value); - return this; - } - /** - * Write a `int32` value, a signed 32 bit varint. - */ - int32(value) { - assertInt32(value); - (0, varint_js_1.varint32write)(value, this.buf); - return this; - } - /** - * Write a `bool` value, a variant. - */ - bool(value) { - this.buf.push(value ? 1 : 0); - return this; - } - /** - * Write a `bytes` value, length-delimited arbitrary data. - */ - bytes(value) { - this.uint32(value.byteLength); // write length of chunk as varint - return this.raw(value); - } - /** - * Write a `string` value, length-delimited data converted to UTF-8 text. - */ - string(value) { - let chunk = this.encodeUtf8(value); - this.uint32(chunk.byteLength); // write length of chunk as varint - return this.raw(chunk); - } - /** - * Write a `float` value, 32-bit floating point number. - */ - float(value) { - assertFloat32(value); - let chunk = new Uint8Array(4); - new DataView(chunk.buffer).setFloat32(0, value, true); - return this.raw(chunk); - } - /** - * Write a `double` value, a 64-bit floating point number. - */ - double(value) { - let chunk = new Uint8Array(8); - new DataView(chunk.buffer).setFloat64(0, value, true); - return this.raw(chunk); - } - /** - * Write a `fixed32` value, an unsigned, fixed-length 32-bit integer. - */ - fixed32(value) { - assertUInt32(value); - let chunk = new Uint8Array(4); - new DataView(chunk.buffer).setUint32(0, value, true); - return this.raw(chunk); - } - /** - * Write a `sfixed32` value, a signed, fixed-length 32-bit integer. - */ - sfixed32(value) { - assertInt32(value); - let chunk = new Uint8Array(4); - new DataView(chunk.buffer).setInt32(0, value, true); - return this.raw(chunk); - } - /** - * Write a `sint32` value, a signed, zigzag-encoded 32-bit varint. - */ - sint32(value) { - assertInt32(value); - // zigzag encode - value = ((value << 1) ^ (value >> 31)) >>> 0; - (0, varint_js_1.varint32write)(value, this.buf); - return this; - } - /** - * Write a `fixed64` value, a signed, fixed-length 64-bit integer. - */ - sfixed64(value) { - let chunk = new Uint8Array(8), view = new DataView(chunk.buffer), tc = proto_int64_js_1.protoInt64.enc(value); - view.setInt32(0, tc.lo, true); - view.setInt32(4, tc.hi, true); - return this.raw(chunk); - } - /** - * Write a `fixed64` value, an unsigned, fixed-length 64 bit integer. - */ - fixed64(value) { - let chunk = new Uint8Array(8), view = new DataView(chunk.buffer), tc = proto_int64_js_1.protoInt64.uEnc(value); - view.setInt32(0, tc.lo, true); - view.setInt32(4, tc.hi, true); - return this.raw(chunk); - } - /** - * Write a `int64` value, a signed 64-bit varint. - */ - int64(value) { - let tc = proto_int64_js_1.protoInt64.enc(value); - (0, varint_js_1.varint64write)(tc.lo, tc.hi, this.buf); - return this; - } - /** - * Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint. - */ - sint64(value) { - const tc = proto_int64_js_1.protoInt64.enc(value), - // zigzag encode - sign = tc.hi >> 31, lo = (tc.lo << 1) ^ sign, hi = ((tc.hi << 1) | (tc.lo >>> 31)) ^ sign; - (0, varint_js_1.varint64write)(lo, hi, this.buf); - return this; - } - /** - * Write a `uint64` value, an unsigned 64-bit varint. - */ - uint64(value) { - const tc = proto_int64_js_1.protoInt64.uEnc(value); - (0, varint_js_1.varint64write)(tc.lo, tc.hi, this.buf); - return this; - } -} -exports.BinaryWriter = BinaryWriter; -class BinaryReader { - constructor(buf, decodeUtf8 = (0, text_encoding_js_1.getTextEncoding)().decodeUtf8) { - this.decodeUtf8 = decodeUtf8; - this.varint64 = varint_js_1.varint64read; // dirty cast for `this` - /** - * Read a `uint32` field, an unsigned 32 bit varint. - */ - this.uint32 = varint_js_1.varint32read; - this.buf = buf; - this.len = buf.length; - this.pos = 0; - this.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength); - } - /** - * Reads a tag - field number and wire type. - */ - tag() { - let tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7; - if (fieldNo <= 0 || wireType < 0 || wireType > 5) - throw new Error("illegal tag: field no " + fieldNo + " wire type " + wireType); - return [fieldNo, wireType]; - } - /** - * Skip one element and return the skipped data. - * - * When skipping StartGroup, provide the tags field number to check for - * matching field number in the EndGroup tag. - */ - skip(wireType, fieldNo) { - let start = this.pos; - switch (wireType) { - case WireType.Varint: - while (this.buf[this.pos++] & 0x80) { - // ignore - } - break; - // @ts-ignore TS7029: Fallthrough case in switch -- ignore instead of expect-error for compiler settings without noFallthroughCasesInSwitch: true - case WireType.Bit64: - this.pos += 4; - case WireType.Bit32: - this.pos += 4; - break; - case WireType.LengthDelimited: - let len = this.uint32(); - this.pos += len; - break; - case WireType.StartGroup: - for (;;) { - const [fn, wt] = this.tag(); - if (wt === WireType.EndGroup) { - if (fieldNo !== undefined && fn !== fieldNo) { - throw new Error("invalid end group tag"); - } - break; - } - this.skip(wt, fn); - } - break; - default: - throw new Error("cant skip wire type " + wireType); - } - this.assertBounds(); - return this.buf.subarray(start, this.pos); - } - /** - * Throws error if position in byte array is out of range. - */ - assertBounds() { - if (this.pos > this.len) - throw new RangeError("premature EOF"); - } - /** - * Read a `int32` field, a signed 32 bit varint. - */ - int32() { - return this.uint32() | 0; - } - /** - * Read a `sint32` field, a signed, zigzag-encoded 32-bit varint. - */ - sint32() { - let zze = this.uint32(); - // decode zigzag - return (zze >>> 1) ^ -(zze & 1); - } - /** - * Read a `int64` field, a signed 64-bit varint. - */ - int64() { - return proto_int64_js_1.protoInt64.dec(...this.varint64()); - } - /** - * Read a `uint64` field, an unsigned 64-bit varint. - */ - uint64() { - return proto_int64_js_1.protoInt64.uDec(...this.varint64()); - } - /** - * Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint. - */ - sint64() { - let [lo, hi] = this.varint64(); - // decode zig zag - let s = -(lo & 1); - lo = ((lo >>> 1) | ((hi & 1) << 31)) ^ s; - hi = (hi >>> 1) ^ s; - return proto_int64_js_1.protoInt64.dec(lo, hi); - } - /** - * Read a `bool` field, a variant. - */ - bool() { - let [lo, hi] = this.varint64(); - return lo !== 0 || hi !== 0; - } - /** - * Read a `fixed32` field, an unsigned, fixed-length 32-bit integer. - */ - fixed32() { - // biome-ignore lint/suspicious/noAssignInExpressions: no - return this.view.getUint32((this.pos += 4) - 4, true); - } - /** - * Read a `sfixed32` field, a signed, fixed-length 32-bit integer. - */ - sfixed32() { - // biome-ignore lint/suspicious/noAssignInExpressions: no - return this.view.getInt32((this.pos += 4) - 4, true); - } - /** - * Read a `fixed64` field, an unsigned, fixed-length 64 bit integer. - */ - fixed64() { - return proto_int64_js_1.protoInt64.uDec(this.sfixed32(), this.sfixed32()); - } - /** - * Read a `fixed64` field, a signed, fixed-length 64-bit integer. - */ - sfixed64() { - return proto_int64_js_1.protoInt64.dec(this.sfixed32(), this.sfixed32()); - } - /** - * Read a `float` field, 32-bit floating point number. - */ - float() { - // biome-ignore lint/suspicious/noAssignInExpressions: no - return this.view.getFloat32((this.pos += 4) - 4, true); - } - /** - * Read a `double` field, a 64-bit floating point number. - */ - double() { - // biome-ignore lint/suspicious/noAssignInExpressions: no - return this.view.getFloat64((this.pos += 8) - 8, true); - } - /** - * Read a `bytes` field, length-delimited arbitrary data. - */ - bytes() { - let len = this.uint32(), start = this.pos; - this.pos += len; - this.assertBounds(); - return this.buf.subarray(start, start + len); - } - /** - * Read a `string` field, length-delimited data converted to UTF-8 text. - */ - string() { - return this.decodeUtf8(this.bytes()); - } -} -exports.BinaryReader = BinaryReader; -/** - * Assert a valid signed protobuf 32-bit integer as a number or string. - */ -function assertInt32(arg) { - if (typeof arg == "string") { - arg = Number(arg); - } - else if (typeof arg != "number") { - throw new Error("invalid int32: " + typeof arg); - } - if (!Number.isInteger(arg) || - arg > exports.INT32_MAX || - arg < exports.INT32_MIN) - throw new Error("invalid int32: " + arg); -} -/** - * Assert a valid unsigned protobuf 32-bit integer as a number or string. - */ -function assertUInt32(arg) { - if (typeof arg == "string") { - arg = Number(arg); - } - else if (typeof arg != "number") { - throw new Error("invalid uint32: " + typeof arg); - } - if (!Number.isInteger(arg) || - arg > exports.UINT32_MAX || - arg < 0) - throw new Error("invalid uint32: " + arg); -} -/** - * Assert a valid protobuf float value as a number or string. - */ -function assertFloat32(arg) { - if (typeof arg == "string") { - const o = arg; - arg = Number(arg); - if (Number.isNaN(arg) && o !== "NaN") { - throw new Error("invalid float32: " + o); - } - } - else if (typeof arg != "number") { - throw new Error("invalid float32: " + typeof arg); - } - if (Number.isFinite(arg) && - (arg > exports.FLOAT32_MAX || arg < exports.FLOAT32_MIN)) - throw new Error("invalid float32: " + arg); -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/index.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wire/index.d.ts deleted file mode 100644 index 8630d1f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./binary-encoding.js"; -export * from "./base64-encoding.js"; -export * from "./text-encoding.js"; -export * from "./text-format.js"; -export * from "./size-delimited.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/index.js b/node_modules/@bufbuild/protobuf/dist/cjs/wire/index.js deleted file mode 100644 index b3980e1..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/index.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./binary-encoding.js"), exports); -__exportStar(require("./base64-encoding.js"), exports); -__exportStar(require("./text-encoding.js"), exports); -__exportStar(require("./text-format.js"), exports); -__exportStar(require("./size-delimited.js"), exports); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/size-delimited.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wire/size-delimited.d.ts deleted file mode 100644 index 0294989..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/size-delimited.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import type { DescMessage } from "../descriptors.js"; -import type { BinaryWriteOptions } from "../to-binary.js"; -import type { MessageShape } from "../types.js"; -import type { BinaryReadOptions } from "../from-binary.js"; -/** - * Serialize a message, prefixing it with its size. - * - * A size-delimited message is a varint size in bytes, followed by exactly - * that many bytes of a message serialized with the binary format. - * - * This size-delimited format is compatible with other implementations. - * For details, see https://github.com/protocolbuffers/protobuf/issues/10229 - */ -export declare function sizeDelimitedEncode(messageDesc: Desc, message: MessageShape, options?: BinaryWriteOptions): Uint8Array; -/** - * Parse a stream of size-delimited messages. - * - * A size-delimited message is a varint size in bytes, followed by exactly - * that many bytes of a message serialized with the binary format. - * - * This size-delimited format is compatible with other implementations. - * For details, see https://github.com/protocolbuffers/protobuf/issues/10229 - */ -export declare function sizeDelimitedDecodeStream(messageDesc: Desc, iterable: AsyncIterable, options?: BinaryReadOptions): AsyncIterableIterator>; -/** - * Decodes the size from the given size-delimited message, which may be - * incomplete. - * - * Returns an object with the following properties: - * - size: The size of the delimited message in bytes - * - offset: The offset in the given byte array where the message starts - * - eof: true - * - * If the size-delimited data does not include all bytes of the varint size, - * the following object is returned: - * - size: null - * - offset: null - * - eof: false - * - * This function can be used to implement parsing of size-delimited messages - * from a stream. - */ -export declare function sizeDelimitedPeek(data: Uint8Array): { - readonly eof: false; - readonly size: number; - readonly offset: number; -} | { - readonly eof: true; - readonly size: null; - readonly offset: null; -}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/size-delimited.js b/node_modules/@bufbuild/protobuf/dist/cjs/wire/size-delimited.js deleted file mode 100644 index 1b1c8f1..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/size-delimited.js +++ /dev/null @@ -1,153 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __asyncValues = (this && this.__asyncValues) || function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -}; -var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } -var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; - function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } - function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sizeDelimitedEncode = sizeDelimitedEncode; -exports.sizeDelimitedDecodeStream = sizeDelimitedDecodeStream; -exports.sizeDelimitedPeek = sizeDelimitedPeek; -const to_binary_js_1 = require("../to-binary.js"); -const binary_encoding_js_1 = require("./binary-encoding.js"); -const from_binary_js_1 = require("../from-binary.js"); -/** - * Serialize a message, prefixing it with its size. - * - * A size-delimited message is a varint size in bytes, followed by exactly - * that many bytes of a message serialized with the binary format. - * - * This size-delimited format is compatible with other implementations. - * For details, see https://github.com/protocolbuffers/protobuf/issues/10229 - */ -function sizeDelimitedEncode(messageDesc, message, options) { - const writer = new binary_encoding_js_1.BinaryWriter(); - writer.bytes((0, to_binary_js_1.toBinary)(messageDesc, message, options)); - return writer.finish(); -} -/** - * Parse a stream of size-delimited messages. - * - * A size-delimited message is a varint size in bytes, followed by exactly - * that many bytes of a message serialized with the binary format. - * - * This size-delimited format is compatible with other implementations. - * For details, see https://github.com/protocolbuffers/protobuf/issues/10229 - */ -function sizeDelimitedDecodeStream(messageDesc, iterable, options) { - return __asyncGenerator(this, arguments, function* sizeDelimitedDecodeStream_1() { - var _a, e_1, _b, _c; - // append chunk to buffer, returning updated buffer - function append(buffer, chunk) { - const n = new Uint8Array(buffer.byteLength + chunk.byteLength); - n.set(buffer); - n.set(chunk, buffer.length); - return n; - } - let buffer = new Uint8Array(0); - try { - for (var _d = true, iterable_1 = __asyncValues(iterable), iterable_1_1; iterable_1_1 = yield __await(iterable_1.next()), _a = iterable_1_1.done, !_a; _d = true) { - _c = iterable_1_1.value; - _d = false; - const chunk = _c; - buffer = append(buffer, chunk); - for (;;) { - const size = sizeDelimitedPeek(buffer); - if (size.eof) { - // size is incomplete, buffer more data - break; - } - if (size.offset + size.size > buffer.byteLength) { - // message is incomplete, buffer more data - break; - } - yield yield __await((0, from_binary_js_1.fromBinary)(messageDesc, buffer.subarray(size.offset, size.offset + size.size), options)); - buffer = buffer.subarray(size.offset + size.size); - } - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (!_d && !_a && (_b = iterable_1.return)) yield __await(_b.call(iterable_1)); - } - finally { if (e_1) throw e_1.error; } - } - if (buffer.byteLength > 0) { - throw new Error("incomplete data"); - } - }); -} -/** - * Decodes the size from the given size-delimited message, which may be - * incomplete. - * - * Returns an object with the following properties: - * - size: The size of the delimited message in bytes - * - offset: The offset in the given byte array where the message starts - * - eof: true - * - * If the size-delimited data does not include all bytes of the varint size, - * the following object is returned: - * - size: null - * - offset: null - * - eof: false - * - * This function can be used to implement parsing of size-delimited messages - * from a stream. - */ -function sizeDelimitedPeek(data) { - const sizeEof = { eof: true, size: null, offset: null }; - for (let i = 0; i < 10; i++) { - if (i > data.byteLength) { - return sizeEof; - } - if ((data[i] & 0x80) == 0) { - const reader = new binary_encoding_js_1.BinaryReader(data); - let size; - try { - size = reader.uint32(); - } - catch (e) { - if (e instanceof RangeError) { - return sizeEof; - } - throw e; - } - return { - eof: false, - size, - offset: reader.pos, - }; - } - } - throw new Error("invalid varint"); -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.d.ts deleted file mode 100644 index 17761ea..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -interface TextEncoding { - /** - * Verify that the given text is valid UTF-8. - */ - checkUtf8: (text: string) => boolean; - /** - * Encode UTF-8 text to binary. - */ - encodeUtf8: (text: string) => Uint8Array; - /** - * Decode UTF-8 text from binary. - */ - decodeUtf8: (bytes: Uint8Array) => string; -} -/** - * Protobuf-ES requires the Text Encoding API to convert UTF-8 from and to - * binary. This WHATWG API is widely available, but it is not part of the - * ECMAScript standard. On runtimes where it is not available, use this - * function to provide your own implementation. - * - * Note that the Text Encoding API does not provide a way to validate UTF-8. - * Our implementation falls back to use encodeURIComponent(). - */ -export declare function configureTextEncoding(textEncoding: TextEncoding): void; -export declare function getTextEncoding(): TextEncoding; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.js b/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.js deleted file mode 100644 index 64acbe4..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.configureTextEncoding = configureTextEncoding; -exports.getTextEncoding = getTextEncoding; -const symbol = Symbol.for("@bufbuild/protobuf/text-encoding"); -/** - * Protobuf-ES requires the Text Encoding API to convert UTF-8 from and to - * binary. This WHATWG API is widely available, but it is not part of the - * ECMAScript standard. On runtimes where it is not available, use this - * function to provide your own implementation. - * - * Note that the Text Encoding API does not provide a way to validate UTF-8. - * Our implementation falls back to use encodeURIComponent(). - */ -function configureTextEncoding(textEncoding) { - globalThis[symbol] = textEncoding; -} -function getTextEncoding() { - if (globalThis[symbol] == undefined) { - const te = new globalThis.TextEncoder(); - const td = new globalThis.TextDecoder(); - globalThis[symbol] = { - encodeUtf8(text) { - return te.encode(text); - }, - decodeUtf8(bytes) { - return td.decode(bytes); - }, - checkUtf8(text) { - try { - encodeURIComponent(text); - return true; - } - catch (_) { - return false; - } - }, - }; - } - return globalThis[symbol]; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-format.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-format.d.ts deleted file mode 100644 index 06bdbdd..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-format.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { type DescEnum, ScalarType } from "../descriptors.js"; -/** - * Parse an enum value from the Protobuf text format. - * - * @private - */ -export declare function parseTextFormatEnumValue(descEnum: DescEnum, value: string): number; -/** - * Parse a scalar value from the Protobuf text format. - * - * @private - */ -export declare function parseTextFormatScalarValue(type: ScalarType, value: string): number | boolean | string | bigint | Uint8Array; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-format.js b/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-format.js deleted file mode 100644 index da0434e..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-format.js +++ /dev/null @@ -1,199 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseTextFormatEnumValue = parseTextFormatEnumValue; -exports.parseTextFormatScalarValue = parseTextFormatScalarValue; -const descriptors_js_1 = require("../descriptors.js"); -const proto_int64_js_1 = require("../proto-int64.js"); -/** - * Parse an enum value from the Protobuf text format. - * - * @private - */ -function parseTextFormatEnumValue(descEnum, value) { - const enumValue = descEnum.values.find((v) => v.name === value); - if (!enumValue) { - throw new Error(`cannot parse ${descEnum} default value: ${value}`); - } - return enumValue.number; -} -/** - * Parse a scalar value from the Protobuf text format. - * - * @private - */ -function parseTextFormatScalarValue(type, value) { - switch (type) { - case descriptors_js_1.ScalarType.STRING: - return value; - case descriptors_js_1.ScalarType.BYTES: { - const u = unescapeBytesDefaultValue(value); - if (u === false) { - throw new Error(`cannot parse ${descriptors_js_1.ScalarType[type]} default value: ${value}`); - } - return u; - } - case descriptors_js_1.ScalarType.INT64: - case descriptors_js_1.ScalarType.SFIXED64: - case descriptors_js_1.ScalarType.SINT64: - return proto_int64_js_1.protoInt64.parse(value); - case descriptors_js_1.ScalarType.UINT64: - case descriptors_js_1.ScalarType.FIXED64: - return proto_int64_js_1.protoInt64.uParse(value); - case descriptors_js_1.ScalarType.DOUBLE: - case descriptors_js_1.ScalarType.FLOAT: - switch (value) { - case "inf": - return Number.POSITIVE_INFINITY; - case "-inf": - return Number.NEGATIVE_INFINITY; - case "nan": - return Number.NaN; - default: - return parseFloat(value); - } - case descriptors_js_1.ScalarType.BOOL: - return value === "true"; - case descriptors_js_1.ScalarType.INT32: - case descriptors_js_1.ScalarType.UINT32: - case descriptors_js_1.ScalarType.SINT32: - case descriptors_js_1.ScalarType.FIXED32: - case descriptors_js_1.ScalarType.SFIXED32: - return parseInt(value, 10); - } -} -/** - * Parses a text-encoded default value (proto2) of a BYTES field. - */ -function unescapeBytesDefaultValue(str) { - const b = []; - const input = { - tail: str, - c: "", - next() { - if (this.tail.length == 0) { - return false; - } - this.c = this.tail[0]; - this.tail = this.tail.substring(1); - return true; - }, - take(n) { - if (this.tail.length >= n) { - const r = this.tail.substring(0, n); - this.tail = this.tail.substring(n); - return r; - } - return false; - }, - }; - while (input.next()) { - switch (input.c) { - case "\\": - if (input.next()) { - switch (input.c) { - case "\\": - b.push(input.c.charCodeAt(0)); - break; - case "b": - b.push(0x08); - break; - case "f": - b.push(0x0c); - break; - case "n": - b.push(0x0a); - break; - case "r": - b.push(0x0d); - break; - case "t": - b.push(0x09); - break; - case "v": - b.push(0x0b); - break; - case "0": - case "1": - case "2": - case "3": - case "4": - case "5": - case "6": - case "7": { - const s = input.c; - const t = input.take(2); - if (t === false) { - return false; - } - const n = parseInt(s + t, 8); - if (Number.isNaN(n)) { - return false; - } - b.push(n); - break; - } - case "x": { - const s = input.c; - const t = input.take(2); - if (t === false) { - return false; - } - const n = parseInt(s + t, 16); - if (Number.isNaN(n)) { - return false; - } - b.push(n); - break; - } - case "u": { - const s = input.c; - const t = input.take(4); - if (t === false) { - return false; - } - const n = parseInt(s + t, 16); - if (Number.isNaN(n)) { - return false; - } - const chunk = new Uint8Array(4); - const view = new DataView(chunk.buffer); - view.setInt32(0, n, true); - b.push(chunk[0], chunk[1], chunk[2], chunk[3]); - break; - } - case "U": { - const s = input.c; - const t = input.take(8); - if (t === false) { - return false; - } - const tc = proto_int64_js_1.protoInt64.uEnc(s + t); - const chunk = new Uint8Array(8); - const view = new DataView(chunk.buffer); - view.setInt32(0, tc.lo, true); - view.setInt32(4, tc.hi, true); - b.push(chunk[0], chunk[1], chunk[2], chunk[3], chunk[4], chunk[5], chunk[6], chunk[7]); - break; - } - } - } - break; - default: - b.push(input.c.charCodeAt(0)); - } - } - return new Uint8Array(b); -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/varint.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wire/varint.d.ts deleted file mode 100644 index b45ef94..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/varint.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Read a 64 bit varint as two JS numbers. - * - * Returns tuple: - * [0]: low bits - * [1]: high bits - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175 - */ -export declare function varint64read(this: T): [number, number]; -/** - * Write a 64 bit varint, given as two JS numbers, to the given bytes array. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344 - */ -export declare function varint64write(lo: number, hi: number, bytes: number[]): void; -/** - * Parse decimal string of 64 bit integer value as two JS numbers. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export declare function int64FromString(dec: string): { - lo: number; - hi: number; -}; -/** - * Losslessly converts a 64-bit signed integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export declare function int64ToString(lo: number, hi: number): string; -/** - * Losslessly converts a 64-bit unsigned integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export declare function uInt64ToString(lo: number, hi: number): string; -/** - * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)` - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144 - */ -export declare function varint32write(value: number, bytes: number[]): void; -/** - * Read an unsigned 32 bit varint. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220 - */ -export declare function varint32read(this: T): number; -type ReaderLike = { - buf: Uint8Array; - pos: number; - len: number; - assertBounds(): void; -}; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wire/varint.js b/node_modules/@bufbuild/protobuf/dist/cjs/wire/varint.js deleted file mode 100644 index a59369b..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wire/varint.js +++ /dev/null @@ -1,322 +0,0 @@ -"use strict"; -// Copyright 2008 Google Inc. 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 Google Inc. 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 -// OWNER 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. -// -// Code generated by the Protocol Buffer compiler is owned by the owner -// of the input file used when generating it. This code is not -// standalone and requires a support library to be linked with it. This -// support library is itself covered by the above license. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.varint64read = varint64read; -exports.varint64write = varint64write; -exports.int64FromString = int64FromString; -exports.int64ToString = int64ToString; -exports.uInt64ToString = uInt64ToString; -exports.varint32write = varint32write; -exports.varint32read = varint32read; -/** - * Read a 64 bit varint as two JS numbers. - * - * Returns tuple: - * [0]: low bits - * [1]: high bits - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175 - */ -function varint64read() { - let lowBits = 0; - let highBits = 0; - for (let shift = 0; shift < 28; shift += 7) { - let b = this.buf[this.pos++]; - lowBits |= (b & 0x7f) << shift; - if ((b & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - } - let middleByte = this.buf[this.pos++]; - // last four bits of the first 32 bit number - lowBits |= (middleByte & 0x0f) << 28; - // 3 upper bits are part of the next 32 bit number - highBits = (middleByte & 0x70) >> 4; - if ((middleByte & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - for (let shift = 3; shift <= 31; shift += 7) { - let b = this.buf[this.pos++]; - highBits |= (b & 0x7f) << shift; - if ((b & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - } - throw new Error("invalid varint"); -} -/** - * Write a 64 bit varint, given as two JS numbers, to the given bytes array. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344 - */ -function varint64write(lo, hi, bytes) { - for (let i = 0; i < 28; i = i + 7) { - const shift = lo >>> i; - const hasNext = !(shift >>> 7 == 0 && hi == 0); - const byte = (hasNext ? shift | 0x80 : shift) & 0xff; - bytes.push(byte); - if (!hasNext) { - return; - } - } - const splitBits = ((lo >>> 28) & 0x0f) | ((hi & 0x07) << 4); - const hasMoreBits = !(hi >> 3 == 0); - bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xff); - if (!hasMoreBits) { - return; - } - for (let i = 3; i < 31; i = i + 7) { - const shift = hi >>> i; - const hasNext = !(shift >>> 7 == 0); - const byte = (hasNext ? shift | 0x80 : shift) & 0xff; - bytes.push(byte); - if (!hasNext) { - return; - } - } - bytes.push((hi >>> 31) & 0x01); -} -// constants for binary math -const TWO_PWR_32_DBL = 0x100000000; -/** - * Parse decimal string of 64 bit integer value as two JS numbers. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -function int64FromString(dec) { - // Check for minus sign. - const minus = dec[0] === "-"; - if (minus) { - dec = dec.slice(1); - } - // Work 6 decimal digits at a time, acting like we're converting base 1e6 - // digits to binary. This is safe to do with floating point math because - // Number.isSafeInteger(ALL_32_BITS * 1e6) == true. - const base = 1e6; - let lowBits = 0; - let highBits = 0; - function add1e6digit(begin, end) { - // Note: Number('') is 0. - const digit1e6 = Number(dec.slice(begin, end)); - highBits *= base; - lowBits = lowBits * base + digit1e6; - // Carry bits from lowBits to - if (lowBits >= TWO_PWR_32_DBL) { - highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0); - lowBits = lowBits % TWO_PWR_32_DBL; - } - } - add1e6digit(-24, -18); - add1e6digit(-18, -12); - add1e6digit(-12, -6); - add1e6digit(-6); - return minus ? negate(lowBits, highBits) : newBits(lowBits, highBits); -} -/** - * Losslessly converts a 64-bit signed integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -function int64ToString(lo, hi) { - let bits = newBits(lo, hi); - // If we're treating the input as a signed value and the high bit is set, do - // a manual two's complement conversion before the decimal conversion. - const negative = bits.hi & 0x80000000; - if (negative) { - bits = negate(bits.lo, bits.hi); - } - const result = uInt64ToString(bits.lo, bits.hi); - return negative ? "-" + result : result; -} -/** - * Losslessly converts a 64-bit unsigned integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -function uInt64ToString(lo, hi) { - ({ lo, hi } = toUnsigned(lo, hi)); - // Skip the expensive conversion if the number is small enough to use the - // built-in conversions. - // Number.MAX_SAFE_INTEGER = 0x001FFFFF FFFFFFFF, thus any number with - // highBits <= 0x1FFFFF can be safely expressed with a double and retain - // integer precision. - // Proven by: Number.isSafeInteger(0x1FFFFF * 2**32 + 0xFFFFFFFF) == true. - if (hi <= 0x1fffff) { - return String(TWO_PWR_32_DBL * hi + lo); - } - // What this code is doing is essentially converting the input number from - // base-2 to base-1e7, which allows us to represent the 64-bit range with - // only 3 (very large) digits. Those digits are then trivial to convert to - // a base-10 string. - // The magic numbers used here are - - // 2^24 = 16777216 = (1,6777216) in base-1e7. - // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7. - // Split 32:32 representation into 16:24:24 representation so our - // intermediate digits don't overflow. - const low = lo & 0xffffff; - const mid = ((lo >>> 24) | (hi << 8)) & 0xffffff; - const high = (hi >> 16) & 0xffff; - // Assemble our three base-1e7 digits, ignoring carries. The maximum - // value in a digit at this step is representable as a 48-bit integer, which - // can be stored in a 64-bit floating point number. - let digitA = low + mid * 6777216 + high * 6710656; - let digitB = mid + high * 8147497; - let digitC = high * 2; - // Apply carries from A to B and from B to C. - const base = 10000000; - if (digitA >= base) { - digitB += Math.floor(digitA / base); - digitA %= base; - } - if (digitB >= base) { - digitC += Math.floor(digitB / base); - digitB %= base; - } - // If digitC is 0, then we should have returned in the trivial code path - // at the top for non-safe integers. Given this, we can assume both digitB - // and digitA need leading zeros. - return (digitC.toString() + - decimalFrom1e7WithLeadingZeros(digitB) + - decimalFrom1e7WithLeadingZeros(digitA)); -} -function toUnsigned(lo, hi) { - return { lo: lo >>> 0, hi: hi >>> 0 }; -} -function newBits(lo, hi) { - return { lo: lo | 0, hi: hi | 0 }; -} -/** - * Returns two's compliment negation of input. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Signed_32-bit_integers - */ -function negate(lowBits, highBits) { - highBits = ~highBits; - if (lowBits) { - lowBits = ~lowBits + 1; - } - else { - // If lowBits is 0, then bitwise-not is 0xFFFFFFFF, - // adding 1 to that, results in 0x100000000, which leaves - // the low bits 0x0 and simply adds one to the high bits. - highBits += 1; - } - return newBits(lowBits, highBits); -} -/** - * Returns decimal representation of digit1e7 with leading zeros. - */ -const decimalFrom1e7WithLeadingZeros = (digit1e7) => { - const partial = String(digit1e7); - return "0000000".slice(partial.length) + partial; -}; -/** - * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)` - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144 - */ -function varint32write(value, bytes) { - if (value >= 0) { - // write value as varint 32 - while (value > 0x7f) { - bytes.push((value & 0x7f) | 0x80); - value = value >>> 7; - } - bytes.push(value); - } - else { - for (let i = 0; i < 9; i++) { - bytes.push((value & 127) | 128); - value = value >> 7; - } - bytes.push(1); - } -} -/** - * Read an unsigned 32 bit varint. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220 - */ -function varint32read() { - let b = this.buf[this.pos++]; - let result = b & 0x7f; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 7; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 14; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 21; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - // Extract only last 4 bits - b = this.buf[this.pos++]; - result |= (b & 0x0f) << 28; - for (let readBytes = 5; (b & 0x80) !== 0 && readBytes < 10; readBytes++) - b = this.buf[this.pos++]; - if ((b & 0x80) != 0) - throw new Error("invalid varint"); - this.assertBounds(); - // Result can have 32 bits, convert it to unsigned - return result >>> 0; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/any.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/any.d.ts deleted file mode 100644 index 5d41781..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/any.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import type { Message, MessageShape } from "../types.js"; -import type { Any } from "./gen/google/protobuf/any_pb.js"; -import type { DescMessage } from "../descriptors.js"; -import type { Registry } from "../registry.js"; -/** - * Creates a `google.protobuf.Any` from a message. - */ -export declare function anyPack(schema: Desc, message: MessageShape): Any; -/** - * Packs the message into the given any. - */ -export declare function anyPack(schema: Desc, message: MessageShape, into: Any): void; -/** - * Returns true if the Any contains the type given by schema. - */ -export declare function anyIs(any: Any, schema: DescMessage): boolean; -/** - * Returns true if the Any contains a message with the given typeName. - */ -export declare function anyIs(any: Any, typeName: string): boolean; -/** - * Unpacks the message the Any represents. - * - * Returns undefined if the Any is empty, or if packed type is not included - * in the given registry. - */ -export declare function anyUnpack(any: Any, registry: Registry): Message | undefined; -/** - * Unpacks the message the Any represents. - * - * Returns undefined if the Any is empty, or if it does not contain the type - * given by schema. - */ -export declare function anyUnpack(any: Any, schema: Desc): MessageShape | undefined; -/** - * Same as anyUnpack but unpacks into the target message. - */ -export declare function anyUnpackTo(any: Any, schema: Desc, message: MessageShape): MessageShape | undefined; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/any.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/any.js deleted file mode 100644 index 894e451..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/any.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.anyPack = anyPack; -exports.anyIs = anyIs; -exports.anyUnpack = anyUnpack; -exports.anyUnpackTo = anyUnpackTo; -const any_pb_js_1 = require("./gen/google/protobuf/any_pb.js"); -const create_js_1 = require("../create.js"); -const to_binary_js_1 = require("../to-binary.js"); -const from_binary_js_1 = require("../from-binary.js"); -function anyPack(schema, message, into) { - let ret = false; - if (!into) { - into = (0, create_js_1.create)(any_pb_js_1.AnySchema); - ret = true; - } - into.value = (0, to_binary_js_1.toBinary)(schema, message); - into.typeUrl = typeNameToUrl(message.$typeName); - return ret ? into : undefined; -} -function anyIs(any, descOrTypeName) { - if (any.typeUrl === "") { - return false; - } - const want = typeof descOrTypeName == "string" - ? descOrTypeName - : descOrTypeName.typeName; - const got = typeUrlToName(any.typeUrl); - return want === got; -} -function anyUnpack(any, registryOrMessageDesc) { - if (any.typeUrl === "") { - return undefined; - } - const desc = registryOrMessageDesc.kind == "message" - ? registryOrMessageDesc - : registryOrMessageDesc.getMessage(typeUrlToName(any.typeUrl)); - if (!desc || !anyIs(any, desc)) { - return undefined; - } - return (0, from_binary_js_1.fromBinary)(desc, any.value); -} -/** - * Same as anyUnpack but unpacks into the target message. - */ -function anyUnpackTo(any, schema, message) { - if (!anyIs(any, schema)) { - return undefined; - } - return (0, from_binary_js_1.mergeFromBinary)(schema, message, any.value); -} -function typeNameToUrl(name) { - return `type.googleapis.com/${name}`; -} -function typeUrlToName(url) { - const slash = url.lastIndexOf("/"); - const name = slash >= 0 ? url.substring(slash + 1) : url; - if (!name.length) { - throw new Error(`invalid type url: ${url}`); - } - return name; -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/any_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/any_pb.d.ts deleted file mode 100644 index a61678f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/any_pb.d.ts +++ /dev/null @@ -1,238 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/any.proto. - */ -export declare const file_google_protobuf_any: GenFile; -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * // or ... - * if (any.isSameTypeAs(Foo.getDefaultInstance())) { - * foo = any.unpack(Foo.getDefaultInstance()); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := anypb.New(foo) - * if err != nil { - * ... - * } - * ... - * foo := &pb.Foo{} - * if err := any.UnmarshalTo(foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - * - * - * @generated from message google.protobuf.Any - */ -export type Any = Message<"google.protobuf.Any"> & { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. As of May 2023, there are no widely used type server - * implementations and no plans to implement one. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - * - * - * @generated from field: string type_url = 1; - */ - typeUrl: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * - * @generated from field: bytes value = 2; - */ - value: Uint8Array; -}; -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * // or ... - * if (any.isSameTypeAs(Foo.getDefaultInstance())) { - * foo = any.unpack(Foo.getDefaultInstance()); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := anypb.New(foo) - * if err != nil { - * ... - * } - * ... - * foo := &pb.Foo{} - * if err := any.UnmarshalTo(foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - * - * - * @generated from message google.protobuf.Any - */ -export type AnyJson = { - "@type"?: string; -}; -/** - * Describes the message google.protobuf.Any. - * Use `create(AnySchema)` to create a new message. - */ -export declare const AnySchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/any_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/any_pb.js deleted file mode 100644 index d1e5a2e..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/any_pb.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AnySchema = exports.file_google_protobuf_any = void 0; -const file_js_1 = require("../../../../codegenv2/file.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -/** - * Describes the file google/protobuf/any.proto. - */ -exports.file_google_protobuf_any = (0, file_js_1.fileDesc)("Chlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvEg9nb29nbGUucHJvdG9idWYiJgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQnYKE2NvbS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAFaLGdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2FueXBiogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"); -/** - * Describes the message google.protobuf.Any. - * Use `create(AnySchema)` to create a new message. - */ -exports.AnySchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_any, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/api_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/api_pb.d.ts deleted file mode 100644 index 6438076..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/api_pb.d.ts +++ /dev/null @@ -1,537 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { SourceContext, SourceContextJson } from "./source_context_pb.js"; -import type { Option, OptionJson, Syntax, SyntaxJson } from "./type_pb.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/api.proto. - */ -export declare const file_google_protobuf_api: GenFile; -/** - * Api is a light-weight descriptor for an API Interface. - * - * Interfaces are also described as "protocol buffer services" in some contexts, - * such as by the "service" keyword in a .proto file, but they are different - * from API Services, which represent a concrete implementation of an interface - * as opposed to simply a description of methods and bindings. They are also - * sometimes simply referred to as "APIs" in other contexts, such as the name of - * this message itself. See https://cloud.google.com/apis/design/glossary for - * detailed terminology. - * - * New usages of this message as an alternative to ServiceDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Api - */ -export type Api = Message<"google.protobuf.Api"> & { - /** - * The fully qualified name of this interface, including package name - * followed by the interface's simple name. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * The methods of this interface, in unspecified order. - * - * @generated from field: repeated google.protobuf.Method methods = 2; - */ - methods: Method[]; - /** - * Any metadata attached to the interface. - * - * @generated from field: repeated google.protobuf.Option options = 3; - */ - options: Option[]; - /** - * A version string for this interface. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version is - * omitted, it defaults to zero. If the entire version field is empty, the - * major version is derived from the package name, as outlined below. If the - * field is not empty, the version in the package name will be verified to be - * consistent with what is provided here. - * - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * - * The major version is also reflected in the package name of the - * interface, which must end in `v`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, non-GA interfaces. - * - * - * @generated from field: string version = 4; - */ - version: string; - /** - * Source context for the protocol buffer service represented by this - * message. - * - * @generated from field: google.protobuf.SourceContext source_context = 5; - */ - sourceContext?: SourceContext; - /** - * Included interfaces. See [Mixin][]. - * - * @generated from field: repeated google.protobuf.Mixin mixins = 6; - */ - mixins: Mixin[]; - /** - * The source syntax of the service. - * - * @generated from field: google.protobuf.Syntax syntax = 7; - */ - syntax: Syntax; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * @generated from field: string edition = 8; - */ - edition: string; -}; -/** - * Api is a light-weight descriptor for an API Interface. - * - * Interfaces are also described as "protocol buffer services" in some contexts, - * such as by the "service" keyword in a .proto file, but they are different - * from API Services, which represent a concrete implementation of an interface - * as opposed to simply a description of methods and bindings. They are also - * sometimes simply referred to as "APIs" in other contexts, such as the name of - * this message itself. See https://cloud.google.com/apis/design/glossary for - * detailed terminology. - * - * New usages of this message as an alternative to ServiceDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Api - */ -export type ApiJson = { - /** - * The fully qualified name of this interface, including package name - * followed by the interface's simple name. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * The methods of this interface, in unspecified order. - * - * @generated from field: repeated google.protobuf.Method methods = 2; - */ - methods?: MethodJson[]; - /** - * Any metadata attached to the interface. - * - * @generated from field: repeated google.protobuf.Option options = 3; - */ - options?: OptionJson[]; - /** - * A version string for this interface. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version is - * omitted, it defaults to zero. If the entire version field is empty, the - * major version is derived from the package name, as outlined below. If the - * field is not empty, the version in the package name will be verified to be - * consistent with what is provided here. - * - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * - * The major version is also reflected in the package name of the - * interface, which must end in `v`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, non-GA interfaces. - * - * - * @generated from field: string version = 4; - */ - version?: string; - /** - * Source context for the protocol buffer service represented by this - * message. - * - * @generated from field: google.protobuf.SourceContext source_context = 5; - */ - sourceContext?: SourceContextJson; - /** - * Included interfaces. See [Mixin][]. - * - * @generated from field: repeated google.protobuf.Mixin mixins = 6; - */ - mixins?: MixinJson[]; - /** - * The source syntax of the service. - * - * @generated from field: google.protobuf.Syntax syntax = 7; - */ - syntax?: SyntaxJson; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * @generated from field: string edition = 8; - */ - edition?: string; -}; -/** - * Describes the message google.protobuf.Api. - * Use `create(ApiSchema)` to create a new message. - */ -export declare const ApiSchema: GenMessage; -/** - * Method represents a method of an API interface. - * - * New usages of this message as an alternative to MethodDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Method - */ -export type Method = Message<"google.protobuf.Method"> & { - /** - * The simple name of this method. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * A URL of the input message type. - * - * @generated from field: string request_type_url = 2; - */ - requestTypeUrl: string; - /** - * If true, the request is streamed. - * - * @generated from field: bool request_streaming = 3; - */ - requestStreaming: boolean; - /** - * The URL of the output message type. - * - * @generated from field: string response_type_url = 4; - */ - responseTypeUrl: string; - /** - * If true, the response is streamed. - * - * @generated from field: bool response_streaming = 5; - */ - responseStreaming: boolean; - /** - * Any metadata attached to the method. - * - * @generated from field: repeated google.protobuf.Option options = 6; - */ - options: Option[]; - /** - * The source syntax of this method. - * - * This field should be ignored, instead the syntax should be inherited from - * Api. This is similar to Field and EnumValue. - * - * @generated from field: google.protobuf.Syntax syntax = 7 [deprecated = true]; - * @deprecated - */ - syntax: Syntax; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * This field should be ignored, instead the edition should be inherited from - * Api. This is similar to Field and EnumValue. - * - * @generated from field: string edition = 8 [deprecated = true]; - * @deprecated - */ - edition: string; -}; -/** - * Method represents a method of an API interface. - * - * New usages of this message as an alternative to MethodDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Method - */ -export type MethodJson = { - /** - * The simple name of this method. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * A URL of the input message type. - * - * @generated from field: string request_type_url = 2; - */ - requestTypeUrl?: string; - /** - * If true, the request is streamed. - * - * @generated from field: bool request_streaming = 3; - */ - requestStreaming?: boolean; - /** - * The URL of the output message type. - * - * @generated from field: string response_type_url = 4; - */ - responseTypeUrl?: string; - /** - * If true, the response is streamed. - * - * @generated from field: bool response_streaming = 5; - */ - responseStreaming?: boolean; - /** - * Any metadata attached to the method. - * - * @generated from field: repeated google.protobuf.Option options = 6; - */ - options?: OptionJson[]; - /** - * The source syntax of this method. - * - * This field should be ignored, instead the syntax should be inherited from - * Api. This is similar to Field and EnumValue. - * - * @generated from field: google.protobuf.Syntax syntax = 7 [deprecated = true]; - * @deprecated - */ - syntax?: SyntaxJson; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * This field should be ignored, instead the edition should be inherited from - * Api. This is similar to Field and EnumValue. - * - * @generated from field: string edition = 8 [deprecated = true]; - * @deprecated - */ - edition?: string; -}; -/** - * Describes the message google.protobuf.Method. - * Use `create(MethodSchema)` to create a new message. - */ -export declare const MethodSchema: GenMessage; -/** - * Declares an API Interface to be included in this interface. The including - * interface must redeclare all the methods from the included interface, but - * documentation and options are inherited as follows: - * - * - If after comment and whitespace stripping, the documentation - * string of the redeclared method is empty, it will be inherited - * from the original method. - * - * - Each annotation belonging to the service config (http, - * visibility) which is not set in the redeclared method will be - * inherited. - * - * - If an http annotation is inherited, the path pattern will be - * modified as follows. Any version prefix will be replaced by the - * version of the including interface plus the [root][] path if - * specified. - * - * Example of a simple mixin: - * - * package google.acl.v1; - * service AccessControl { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v1/{resource=**}:getAcl"; - * } - * } - * - * package google.storage.v2; - * service Storage { - * rpc GetAcl(GetAclRequest) returns (Acl); - * - * // Get a data record. - * rpc GetData(GetDataRequest) returns (Data) { - * option (google.api.http).get = "/v2/{resource=**}"; - * } - * } - * - * Example of a mixin configuration: - * - * apis: - * - name: google.storage.v2.Storage - * mixins: - * - name: google.acl.v1.AccessControl - * - * The mixin construct implies that all methods in `AccessControl` are - * also declared with same name and request/response types in - * `Storage`. A documentation generator or annotation processor will - * see the effective `Storage.GetAcl` method after inheriting - * documentation and annotations as follows: - * - * service Storage { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v2/{resource=**}:getAcl"; - * } - * ... - * } - * - * Note how the version in the path pattern changed from `v1` to `v2`. - * - * If the `root` field in the mixin is specified, it should be a - * relative path under which inherited HTTP paths are placed. Example: - * - * apis: - * - name: google.storage.v2.Storage - * mixins: - * - name: google.acl.v1.AccessControl - * root: acls - * - * This implies the following inherited HTTP annotation: - * - * service Storage { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; - * } - * ... - * } - * - * @generated from message google.protobuf.Mixin - */ -export type Mixin = Message<"google.protobuf.Mixin"> & { - /** - * The fully qualified name of the interface which is included. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * If non-empty specifies a path under which inherited HTTP paths - * are rooted. - * - * @generated from field: string root = 2; - */ - root: string; -}; -/** - * Declares an API Interface to be included in this interface. The including - * interface must redeclare all the methods from the included interface, but - * documentation and options are inherited as follows: - * - * - If after comment and whitespace stripping, the documentation - * string of the redeclared method is empty, it will be inherited - * from the original method. - * - * - Each annotation belonging to the service config (http, - * visibility) which is not set in the redeclared method will be - * inherited. - * - * - If an http annotation is inherited, the path pattern will be - * modified as follows. Any version prefix will be replaced by the - * version of the including interface plus the [root][] path if - * specified. - * - * Example of a simple mixin: - * - * package google.acl.v1; - * service AccessControl { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v1/{resource=**}:getAcl"; - * } - * } - * - * package google.storage.v2; - * service Storage { - * rpc GetAcl(GetAclRequest) returns (Acl); - * - * // Get a data record. - * rpc GetData(GetDataRequest) returns (Data) { - * option (google.api.http).get = "/v2/{resource=**}"; - * } - * } - * - * Example of a mixin configuration: - * - * apis: - * - name: google.storage.v2.Storage - * mixins: - * - name: google.acl.v1.AccessControl - * - * The mixin construct implies that all methods in `AccessControl` are - * also declared with same name and request/response types in - * `Storage`. A documentation generator or annotation processor will - * see the effective `Storage.GetAcl` method after inheriting - * documentation and annotations as follows: - * - * service Storage { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v2/{resource=**}:getAcl"; - * } - * ... - * } - * - * Note how the version in the path pattern changed from `v1` to `v2`. - * - * If the `root` field in the mixin is specified, it should be a - * relative path under which inherited HTTP paths are placed. Example: - * - * apis: - * - name: google.storage.v2.Storage - * mixins: - * - name: google.acl.v1.AccessControl - * root: acls - * - * This implies the following inherited HTTP annotation: - * - * service Storage { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; - * } - * ... - * } - * - * @generated from message google.protobuf.Mixin - */ -export type MixinJson = { - /** - * The fully qualified name of the interface which is included. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * If non-empty specifies a path under which inherited HTTP paths - * are rooted. - * - * @generated from field: string root = 2; - */ - root?: string; -}; -/** - * Describes the message google.protobuf.Mixin. - * Use `create(MixinSchema)` to create a new message. - */ -export declare const MixinSchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/api_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/api_pb.js deleted file mode 100644 index aee1760..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/api_pb.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MixinSchema = exports.MethodSchema = exports.ApiSchema = exports.file_google_protobuf_api = void 0; -const file_js_1 = require("../../../../codegenv2/file.js"); -const source_context_pb_js_1 = require("./source_context_pb.js"); -const type_pb_js_1 = require("./type_pb.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -/** - * Describes the file google/protobuf/api.proto. - */ -exports.file_google_protobuf_api = (0, file_js_1.fileDesc)("Chlnb29nbGUvcHJvdG9idWYvYXBpLnByb3RvEg9nb29nbGUucHJvdG9idWYikgIKA0FwaRIMCgRuYW1lGAEgASgJEigKB21ldGhvZHMYAiADKAsyFy5nb29nbGUucHJvdG9idWYuTWV0aG9kEigKB29wdGlvbnMYAyADKAsyFy5nb29nbGUucHJvdG9idWYuT3B0aW9uEg8KB3ZlcnNpb24YBCABKAkSNgoOc291cmNlX2NvbnRleHQYBSABKAsyHi5nb29nbGUucHJvdG9idWYuU291cmNlQ29udGV4dBImCgZtaXhpbnMYBiADKAsyFi5nb29nbGUucHJvdG9idWYuTWl4aW4SJwoGc3ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3RvYnVmLlN5bnRheBIPCgdlZGl0aW9uGAggASgJIu4BCgZNZXRob2QSDAoEbmFtZRgBIAEoCRIYChByZXF1ZXN0X3R5cGVfdXJsGAIgASgJEhkKEXJlcXVlc3Rfc3RyZWFtaW5nGAMgASgIEhkKEXJlc3BvbnNlX3R5cGVfdXJsGAQgASgJEhoKEnJlc3BvbnNlX3N0cmVhbWluZxgFIAEoCBIoCgdvcHRpb25zGAYgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhIrCgZzeW50YXgYByABKA4yFy5nb29nbGUucHJvdG9idWYuU3ludGF4QgIYARITCgdlZGl0aW9uGAggASgJQgIYASIjCgVNaXhpbhIMCgRuYW1lGAEgASgJEgwKBHJvb3QYAiABKAlCdgoTY29tLmdvb2dsZS5wcm90b2J1ZkIIQXBpUHJvdG9QAVosZ29vZ2xlLmdvbGFuZy5vcmcvcHJvdG9idWYvdHlwZXMva25vd24vYXBpcGKiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw", [source_context_pb_js_1.file_google_protobuf_source_context, type_pb_js_1.file_google_protobuf_type]); -/** - * Describes the message google.protobuf.Api. - * Use `create(ApiSchema)` to create a new message. - */ -exports.ApiSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_api, 0); -/** - * Describes the message google.protobuf.Method. - * Use `create(MethodSchema)` to create a new message. - */ -exports.MethodSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_api, 1); -/** - * Describes the message google.protobuf.Mixin. - * Use `create(MixinSchema)` to create a new message. - */ -exports.MixinSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_api, 2); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts deleted file mode 100644 index 2c3eaf6..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +++ /dev/null @@ -1,490 +0,0 @@ -import type { GenEnum, GenFile, GenMessage } from "../../../../../codegenv2/types.js"; -import type { FileDescriptorProto, FileDescriptorProtoJson, GeneratedCodeInfo, GeneratedCodeInfoJson } from "../descriptor_pb.js"; -import type { Message } from "../../../../../types.js"; -/** - * Describes the file google/protobuf/compiler/plugin.proto. - */ -export declare const file_google_protobuf_compiler_plugin: GenFile; -/** - * The version number of protocol compiler. - * - * @generated from message google.protobuf.compiler.Version - */ -export type Version = Message<"google.protobuf.compiler.Version"> & { - /** - * @generated from field: optional int32 major = 1; - */ - major: number; - /** - * @generated from field: optional int32 minor = 2; - */ - minor: number; - /** - * @generated from field: optional int32 patch = 3; - */ - patch: number; - /** - * A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should - * be empty for mainline stable releases. - * - * @generated from field: optional string suffix = 4; - */ - suffix: string; -}; -/** - * The version number of protocol compiler. - * - * @generated from message google.protobuf.compiler.Version - */ -export type VersionJson = { - /** - * @generated from field: optional int32 major = 1; - */ - major?: number; - /** - * @generated from field: optional int32 minor = 2; - */ - minor?: number; - /** - * @generated from field: optional int32 patch = 3; - */ - patch?: number; - /** - * A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should - * be empty for mainline stable releases. - * - * @generated from field: optional string suffix = 4; - */ - suffix?: string; -}; -/** - * Describes the message google.protobuf.compiler.Version. - * Use `create(VersionSchema)` to create a new message. - */ -export declare const VersionSchema: GenMessage; -/** - * An encoded CodeGeneratorRequest is written to the plugin's stdin. - * - * @generated from message google.protobuf.compiler.CodeGeneratorRequest - */ -export type CodeGeneratorRequest = Message<"google.protobuf.compiler.CodeGeneratorRequest"> & { - /** - * The .proto files that were explicitly listed on the command-line. The - * code generator should generate code only for these files. Each file's - * descriptor will be included in proto_file, below. - * - * @generated from field: repeated string file_to_generate = 1; - */ - fileToGenerate: string[]; - /** - * The generator parameter passed on the command-line. - * - * @generated from field: optional string parameter = 2; - */ - parameter: string; - /** - * FileDescriptorProtos for all files in files_to_generate and everything - * they import. The files will appear in topological order, so each file - * appears before any file that imports it. - * - * Note: the files listed in files_to_generate will include runtime-retention - * options only, but all other files will include source-retention options. - * The source_file_descriptors field below is available in case you need - * source-retention options for files_to_generate. - * - * protoc guarantees that all proto_files will be written after - * the fields above, even though this is not technically guaranteed by the - * protobuf wire format. This theoretically could allow a plugin to stream - * in the FileDescriptorProtos and handle them one by one rather than read - * the entire set into memory at once. However, as of this writing, this - * is not similarly optimized on protoc's end -- it will store all fields in - * memory at once before sending them to the plugin. - * - * Type names of fields and extensions in the FileDescriptorProto are always - * fully qualified. - * - * @generated from field: repeated google.protobuf.FileDescriptorProto proto_file = 15; - */ - protoFile: FileDescriptorProto[]; - /** - * File descriptors with all options, including source-retention options. - * These descriptors are only provided for the files listed in - * files_to_generate. - * - * @generated from field: repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17; - */ - sourceFileDescriptors: FileDescriptorProto[]; - /** - * The version number of protocol compiler. - * - * @generated from field: optional google.protobuf.compiler.Version compiler_version = 3; - */ - compilerVersion?: Version; -}; -/** - * An encoded CodeGeneratorRequest is written to the plugin's stdin. - * - * @generated from message google.protobuf.compiler.CodeGeneratorRequest - */ -export type CodeGeneratorRequestJson = { - /** - * The .proto files that were explicitly listed on the command-line. The - * code generator should generate code only for these files. Each file's - * descriptor will be included in proto_file, below. - * - * @generated from field: repeated string file_to_generate = 1; - */ - fileToGenerate?: string[]; - /** - * The generator parameter passed on the command-line. - * - * @generated from field: optional string parameter = 2; - */ - parameter?: string; - /** - * FileDescriptorProtos for all files in files_to_generate and everything - * they import. The files will appear in topological order, so each file - * appears before any file that imports it. - * - * Note: the files listed in files_to_generate will include runtime-retention - * options only, but all other files will include source-retention options. - * The source_file_descriptors field below is available in case you need - * source-retention options for files_to_generate. - * - * protoc guarantees that all proto_files will be written after - * the fields above, even though this is not technically guaranteed by the - * protobuf wire format. This theoretically could allow a plugin to stream - * in the FileDescriptorProtos and handle them one by one rather than read - * the entire set into memory at once. However, as of this writing, this - * is not similarly optimized on protoc's end -- it will store all fields in - * memory at once before sending them to the plugin. - * - * Type names of fields and extensions in the FileDescriptorProto are always - * fully qualified. - * - * @generated from field: repeated google.protobuf.FileDescriptorProto proto_file = 15; - */ - protoFile?: FileDescriptorProtoJson[]; - /** - * File descriptors with all options, including source-retention options. - * These descriptors are only provided for the files listed in - * files_to_generate. - * - * @generated from field: repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17; - */ - sourceFileDescriptors?: FileDescriptorProtoJson[]; - /** - * The version number of protocol compiler. - * - * @generated from field: optional google.protobuf.compiler.Version compiler_version = 3; - */ - compilerVersion?: VersionJson; -}; -/** - * Describes the message google.protobuf.compiler.CodeGeneratorRequest. - * Use `create(CodeGeneratorRequestSchema)` to create a new message. - */ -export declare const CodeGeneratorRequestSchema: GenMessage; -/** - * The plugin writes an encoded CodeGeneratorResponse to stdout. - * - * @generated from message google.protobuf.compiler.CodeGeneratorResponse - */ -export type CodeGeneratorResponse = Message<"google.protobuf.compiler.CodeGeneratorResponse"> & { - /** - * Error message. If non-empty, code generation failed. The plugin process - * should exit with status code zero even if it reports an error in this way. - * - * This should be used to indicate errors in .proto files which prevent the - * code generator from generating correct code. Errors which indicate a - * problem in protoc itself -- such as the input CodeGeneratorRequest being - * unparseable -- should be reported by writing a message to stderr and - * exiting with a non-zero status code. - * - * @generated from field: optional string error = 1; - */ - error: string; - /** - * A bitmask of supported features that the code generator supports. - * This is a bitwise "or" of values from the Feature enum. - * - * @generated from field: optional uint64 supported_features = 2; - */ - supportedFeatures: bigint; - /** - * The minimum edition this plugin supports. This will be treated as an - * Edition enum, but we want to allow unknown values. It should be specified - * according the edition enum value, *not* the edition number. Only takes - * effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. - * - * @generated from field: optional int32 minimum_edition = 3; - */ - minimumEdition: number; - /** - * The maximum edition this plugin supports. This will be treated as an - * Edition enum, but we want to allow unknown values. It should be specified - * according the edition enum value, *not* the edition number. Only takes - * effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. - * - * @generated from field: optional int32 maximum_edition = 4; - */ - maximumEdition: number; - /** - * @generated from field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15; - */ - file: CodeGeneratorResponse_File[]; -}; -/** - * The plugin writes an encoded CodeGeneratorResponse to stdout. - * - * @generated from message google.protobuf.compiler.CodeGeneratorResponse - */ -export type CodeGeneratorResponseJson = { - /** - * Error message. If non-empty, code generation failed. The plugin process - * should exit with status code zero even if it reports an error in this way. - * - * This should be used to indicate errors in .proto files which prevent the - * code generator from generating correct code. Errors which indicate a - * problem in protoc itself -- such as the input CodeGeneratorRequest being - * unparseable -- should be reported by writing a message to stderr and - * exiting with a non-zero status code. - * - * @generated from field: optional string error = 1; - */ - error?: string; - /** - * A bitmask of supported features that the code generator supports. - * This is a bitwise "or" of values from the Feature enum. - * - * @generated from field: optional uint64 supported_features = 2; - */ - supportedFeatures?: string; - /** - * The minimum edition this plugin supports. This will be treated as an - * Edition enum, but we want to allow unknown values. It should be specified - * according the edition enum value, *not* the edition number. Only takes - * effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. - * - * @generated from field: optional int32 minimum_edition = 3; - */ - minimumEdition?: number; - /** - * The maximum edition this plugin supports. This will be treated as an - * Edition enum, but we want to allow unknown values. It should be specified - * according the edition enum value, *not* the edition number. Only takes - * effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. - * - * @generated from field: optional int32 maximum_edition = 4; - */ - maximumEdition?: number; - /** - * @generated from field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15; - */ - file?: CodeGeneratorResponse_FileJson[]; -}; -/** - * Describes the message google.protobuf.compiler.CodeGeneratorResponse. - * Use `create(CodeGeneratorResponseSchema)` to create a new message. - */ -export declare const CodeGeneratorResponseSchema: GenMessage; -/** - * Represents a single generated file. - * - * @generated from message google.protobuf.compiler.CodeGeneratorResponse.File - */ -export type CodeGeneratorResponse_File = Message<"google.protobuf.compiler.CodeGeneratorResponse.File"> & { - /** - * The file name, relative to the output directory. The name must not - * contain "." or ".." components and must be relative, not be absolute (so, - * the file cannot lie outside the output directory). "/" must be used as - * the path separator, not "\". - * - * If the name is omitted, the content will be appended to the previous - * file. This allows the generator to break large files into small chunks, - * and allows the generated text to be streamed back to protoc so that large - * files need not reside completely in memory at one time. Note that as of - * this writing protoc does not optimize for this -- it will read the entire - * CodeGeneratorResponse before writing files to disk. - * - * @generated from field: optional string name = 1; - */ - name: string; - /** - * If non-empty, indicates that the named file should already exist, and the - * content here is to be inserted into that file at a defined insertion - * point. This feature allows a code generator to extend the output - * produced by another code generator. The original generator may provide - * insertion points by placing special annotations in the file that look - * like: - * @@protoc_insertion_point(NAME) - * The annotation can have arbitrary text before and after it on the line, - * which allows it to be placed in a comment. NAME should be replaced with - * an identifier naming the point -- this is what other generators will use - * as the insertion_point. Code inserted at this point will be placed - * immediately above the line containing the insertion point (thus multiple - * insertions to the same point will come out in the order they were added). - * The double-@ is intended to make it unlikely that the generated code - * could contain things that look like insertion points by accident. - * - * For example, the C++ code generator places the following line in the - * .pb.h files that it generates: - * // @@protoc_insertion_point(namespace_scope) - * This line appears within the scope of the file's package namespace, but - * outside of any particular class. Another plugin can then specify the - * insertion_point "namespace_scope" to generate additional classes or - * other declarations that should be placed in this scope. - * - * Note that if the line containing the insertion point begins with - * whitespace, the same whitespace will be added to every line of the - * inserted text. This is useful for languages like Python, where - * indentation matters. In these languages, the insertion point comment - * should be indented the same amount as any inserted code will need to be - * in order to work correctly in that context. - * - * The code generator that generates the initial file and the one which - * inserts into it must both run as part of a single invocation of protoc. - * Code generators are executed in the order in which they appear on the - * command line. - * - * If |insertion_point| is present, |name| must also be present. - * - * @generated from field: optional string insertion_point = 2; - */ - insertionPoint: string; - /** - * The file contents. - * - * @generated from field: optional string content = 15; - */ - content: string; - /** - * Information describing the file content being inserted. If an insertion - * point is used, this information will be appropriately offset and inserted - * into the code generation metadata for the generated files. - * - * @generated from field: optional google.protobuf.GeneratedCodeInfo generated_code_info = 16; - */ - generatedCodeInfo?: GeneratedCodeInfo; -}; -/** - * Represents a single generated file. - * - * @generated from message google.protobuf.compiler.CodeGeneratorResponse.File - */ -export type CodeGeneratorResponse_FileJson = { - /** - * The file name, relative to the output directory. The name must not - * contain "." or ".." components and must be relative, not be absolute (so, - * the file cannot lie outside the output directory). "/" must be used as - * the path separator, not "\". - * - * If the name is omitted, the content will be appended to the previous - * file. This allows the generator to break large files into small chunks, - * and allows the generated text to be streamed back to protoc so that large - * files need not reside completely in memory at one time. Note that as of - * this writing protoc does not optimize for this -- it will read the entire - * CodeGeneratorResponse before writing files to disk. - * - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * If non-empty, indicates that the named file should already exist, and the - * content here is to be inserted into that file at a defined insertion - * point. This feature allows a code generator to extend the output - * produced by another code generator. The original generator may provide - * insertion points by placing special annotations in the file that look - * like: - * @@protoc_insertion_point(NAME) - * The annotation can have arbitrary text before and after it on the line, - * which allows it to be placed in a comment. NAME should be replaced with - * an identifier naming the point -- this is what other generators will use - * as the insertion_point. Code inserted at this point will be placed - * immediately above the line containing the insertion point (thus multiple - * insertions to the same point will come out in the order they were added). - * The double-@ is intended to make it unlikely that the generated code - * could contain things that look like insertion points by accident. - * - * For example, the C++ code generator places the following line in the - * .pb.h files that it generates: - * // @@protoc_insertion_point(namespace_scope) - * This line appears within the scope of the file's package namespace, but - * outside of any particular class. Another plugin can then specify the - * insertion_point "namespace_scope" to generate additional classes or - * other declarations that should be placed in this scope. - * - * Note that if the line containing the insertion point begins with - * whitespace, the same whitespace will be added to every line of the - * inserted text. This is useful for languages like Python, where - * indentation matters. In these languages, the insertion point comment - * should be indented the same amount as any inserted code will need to be - * in order to work correctly in that context. - * - * The code generator that generates the initial file and the one which - * inserts into it must both run as part of a single invocation of protoc. - * Code generators are executed in the order in which they appear on the - * command line. - * - * If |insertion_point| is present, |name| must also be present. - * - * @generated from field: optional string insertion_point = 2; - */ - insertionPoint?: string; - /** - * The file contents. - * - * @generated from field: optional string content = 15; - */ - content?: string; - /** - * Information describing the file content being inserted. If an insertion - * point is used, this information will be appropriately offset and inserted - * into the code generation metadata for the generated files. - * - * @generated from field: optional google.protobuf.GeneratedCodeInfo generated_code_info = 16; - */ - generatedCodeInfo?: GeneratedCodeInfoJson; -}; -/** - * Describes the message google.protobuf.compiler.CodeGeneratorResponse.File. - * Use `create(CodeGeneratorResponse_FileSchema)` to create a new message. - */ -export declare const CodeGeneratorResponse_FileSchema: GenMessage; -/** - * Sync with code_generator.h. - * - * @generated from enum google.protobuf.compiler.CodeGeneratorResponse.Feature - */ -export declare enum CodeGeneratorResponse_Feature { - /** - * @generated from enum value: FEATURE_NONE = 0; - */ - NONE = 0, - /** - * @generated from enum value: FEATURE_PROTO3_OPTIONAL = 1; - */ - PROTO3_OPTIONAL = 1, - /** - * @generated from enum value: FEATURE_SUPPORTS_EDITIONS = 2; - */ - SUPPORTS_EDITIONS = 2 -} -/** - * Sync with code_generator.h. - * - * @generated from enum google.protobuf.compiler.CodeGeneratorResponse.Feature - */ -export type CodeGeneratorResponse_FeatureJson = "FEATURE_NONE" | "FEATURE_PROTO3_OPTIONAL" | "FEATURE_SUPPORTS_EDITIONS"; -/** - * Describes the enum google.protobuf.compiler.CodeGeneratorResponse.Feature. - */ -export declare const CodeGeneratorResponse_FeatureSchema: GenEnum; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.js deleted file mode 100644 index 05fe4a3..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CodeGeneratorResponse_FeatureSchema = exports.CodeGeneratorResponse_Feature = exports.CodeGeneratorResponse_FileSchema = exports.CodeGeneratorResponseSchema = exports.CodeGeneratorRequestSchema = exports.VersionSchema = exports.file_google_protobuf_compiler_plugin = void 0; -const file_js_1 = require("../../../../../codegenv2/file.js"); -const descriptor_pb_js_1 = require("../descriptor_pb.js"); -const message_js_1 = require("../../../../../codegenv2/message.js"); -const enum_js_1 = require("../../../../../codegenv2/enum.js"); -/** - * Describes the file google/protobuf/compiler/plugin.proto. - */ -exports.file_google_protobuf_compiler_plugin = (0, file_js_1.fileDesc)("CiVnb29nbGUvcHJvdG9idWYvY29tcGlsZXIvcGx1Z2luLnByb3RvEhhnb29nbGUucHJvdG9idWYuY29tcGlsZXIiRgoHVmVyc2lvbhINCgVtYWpvchgBIAEoBRINCgVtaW5vchgCIAEoBRINCgVwYXRjaBgDIAEoBRIOCgZzdWZmaXgYBCABKAkigQIKFENvZGVHZW5lcmF0b3JSZXF1ZXN0EhgKEGZpbGVfdG9fZ2VuZXJhdGUYASADKAkSEQoJcGFyYW1ldGVyGAIgASgJEjgKCnByb3RvX2ZpbGUYDyADKAsyJC5nb29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90bxJFChdzb3VyY2VfZmlsZV9kZXNjcmlwdG9ycxgRIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5GaWxlRGVzY3JpcHRvclByb3RvEjsKEGNvbXBpbGVyX3ZlcnNpb24YAyABKAsyIS5nb29nbGUucHJvdG9idWYuY29tcGlsZXIuVmVyc2lvbiKSAwoVQ29kZUdlbmVyYXRvclJlc3BvbnNlEg0KBWVycm9yGAEgASgJEhoKEnN1cHBvcnRlZF9mZWF0dXJlcxgCIAEoBBIXCg9taW5pbXVtX2VkaXRpb24YAyABKAUSFwoPbWF4aW11bV9lZGl0aW9uGAQgASgFEkIKBGZpbGUYDyADKAsyNC5nb29nbGUucHJvdG9idWYuY29tcGlsZXIuQ29kZUdlbmVyYXRvclJlc3BvbnNlLkZpbGUafwoERmlsZRIMCgRuYW1lGAEgASgJEhcKD2luc2VydGlvbl9wb2ludBgCIAEoCRIPCgdjb250ZW50GA8gASgJEj8KE2dlbmVyYXRlZF9jb2RlX2luZm8YECABKAsyIi5nb29nbGUucHJvdG9idWYuR2VuZXJhdGVkQ29kZUluZm8iVwoHRmVhdHVyZRIQCgxGRUFUVVJFX05PTkUQABIbChdGRUFUVVJFX1BST1RPM19PUFRJT05BTBABEh0KGUZFQVRVUkVfU1VQUE9SVFNfRURJVElPTlMQAkJyChxjb20uZ29vZ2xlLnByb3RvYnVmLmNvbXBpbGVyQgxQbHVnaW5Qcm90b3NaKWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL3BsdWdpbnBiqgIYR29vZ2xlLlByb3RvYnVmLkNvbXBpbGVy", [descriptor_pb_js_1.file_google_protobuf_descriptor]); -/** - * Describes the message google.protobuf.compiler.Version. - * Use `create(VersionSchema)` to create a new message. - */ -exports.VersionSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_compiler_plugin, 0); -/** - * Describes the message google.protobuf.compiler.CodeGeneratorRequest. - * Use `create(CodeGeneratorRequestSchema)` to create a new message. - */ -exports.CodeGeneratorRequestSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_compiler_plugin, 1); -/** - * Describes the message google.protobuf.compiler.CodeGeneratorResponse. - * Use `create(CodeGeneratorResponseSchema)` to create a new message. - */ -exports.CodeGeneratorResponseSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_compiler_plugin, 2); -/** - * Describes the message google.protobuf.compiler.CodeGeneratorResponse.File. - * Use `create(CodeGeneratorResponse_FileSchema)` to create a new message. - */ -exports.CodeGeneratorResponse_FileSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_compiler_plugin, 2, 0); -/** - * Sync with code_generator.h. - * - * @generated from enum google.protobuf.compiler.CodeGeneratorResponse.Feature - */ -var CodeGeneratorResponse_Feature; -(function (CodeGeneratorResponse_Feature) { - /** - * @generated from enum value: FEATURE_NONE = 0; - */ - CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["NONE"] = 0] = "NONE"; - /** - * @generated from enum value: FEATURE_PROTO3_OPTIONAL = 1; - */ - CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["PROTO3_OPTIONAL"] = 1] = "PROTO3_OPTIONAL"; - /** - * @generated from enum value: FEATURE_SUPPORTS_EDITIONS = 2; - */ - CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["SUPPORTS_EDITIONS"] = 2] = "SUPPORTS_EDITIONS"; -})(CodeGeneratorResponse_Feature || (exports.CodeGeneratorResponse_Feature = CodeGeneratorResponse_Feature = {})); -/** - * Describes the enum google.protobuf.compiler.CodeGeneratorResponse.Feature. - */ -exports.CodeGeneratorResponse_FeatureSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_compiler_plugin, 2, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.d.ts deleted file mode 100644 index 7da3c6d..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -import type { GenEnum, GenExtension, GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { FeatureSet } from "./descriptor_pb.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/cpp_features.proto. - */ -export declare const file_google_protobuf_cpp_features: GenFile; -/** - * @generated from message pb.CppFeatures - */ -export type CppFeatures = Message<"pb.CppFeatures"> & { - /** - * Whether or not to treat an enum field as closed. This option is only - * applicable to enum fields, and will be removed in the future. It is - * consistent with the legacy behavior of using proto3 enum types for proto2 - * fields. - * - * @generated from field: optional bool legacy_closed_enum = 1; - */ - legacyClosedEnum: boolean; - /** - * @generated from field: optional pb.CppFeatures.StringType string_type = 2; - */ - stringType: CppFeatures_StringType; - /** - * @generated from field: optional bool enum_name_uses_string_view = 3; - */ - enumNameUsesStringView: boolean; -}; -/** - * @generated from message pb.CppFeatures - */ -export type CppFeaturesJson = { - /** - * Whether or not to treat an enum field as closed. This option is only - * applicable to enum fields, and will be removed in the future. It is - * consistent with the legacy behavior of using proto3 enum types for proto2 - * fields. - * - * @generated from field: optional bool legacy_closed_enum = 1; - */ - legacyClosedEnum?: boolean; - /** - * @generated from field: optional pb.CppFeatures.StringType string_type = 2; - */ - stringType?: CppFeatures_StringTypeJson; - /** - * @generated from field: optional bool enum_name_uses_string_view = 3; - */ - enumNameUsesStringView?: boolean; -}; -/** - * Describes the message pb.CppFeatures. - * Use `create(CppFeaturesSchema)` to create a new message. - */ -export declare const CppFeaturesSchema: GenMessage; -/** - * @generated from enum pb.CppFeatures.StringType - */ -export declare enum CppFeatures_StringType { - /** - * @generated from enum value: STRING_TYPE_UNKNOWN = 0; - */ - STRING_TYPE_UNKNOWN = 0, - /** - * @generated from enum value: VIEW = 1; - */ - VIEW = 1, - /** - * @generated from enum value: CORD = 2; - */ - CORD = 2, - /** - * @generated from enum value: STRING = 3; - */ - STRING = 3 -} -/** - * @generated from enum pb.CppFeatures.StringType - */ -export type CppFeatures_StringTypeJson = "STRING_TYPE_UNKNOWN" | "VIEW" | "CORD" | "STRING"; -/** - * Describes the enum pb.CppFeatures.StringType. - */ -export declare const CppFeatures_StringTypeSchema: GenEnum; -/** - * @generated from extension: optional pb.CppFeatures cpp = 1000; - */ -export declare const cpp: GenExtension; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.js deleted file mode 100644 index ec91bef..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.cpp = exports.CppFeatures_StringTypeSchema = exports.CppFeatures_StringType = exports.CppFeaturesSchema = exports.file_google_protobuf_cpp_features = void 0; -const file_js_1 = require("../../../../codegenv2/file.js"); -const descriptor_pb_js_1 = require("./descriptor_pb.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -const enum_js_1 = require("../../../../codegenv2/enum.js"); -const extension_js_1 = require("../../../../codegenv2/extension.js"); -/** - * Describes the file google/protobuf/cpp_features.proto. - */ -exports.file_google_protobuf_cpp_features = (0, file_js_1.fileDesc)("CiJnb29nbGUvcHJvdG9idWYvY3BwX2ZlYXR1cmVzLnByb3RvEgJwYiL8AwoLQ3BwRmVhdHVyZXMS+wEKEmxlZ2FjeV9jbG9zZWRfZW51bRgBIAEoCELeAYgBAZgBBJgBAaIBCRIEdHJ1ZRiEB6IBChIFZmFsc2UY5weyAbgBCOgHEOgHGq8BVGhlIGxlZ2FjeSBjbG9zZWQgZW51bSBiZWhhdmlvciBpbiBDKysgaXMgZGVwcmVjYXRlZCBhbmQgaXMgc2NoZWR1bGVkIHRvIGJlIHJlbW92ZWQgaW4gZWRpdGlvbiAyMDI1LiAgU2VlIGh0dHA6Ly9wcm90b2J1Zi5kZXYvcHJvZ3JhbW1pbmctZ3VpZGVzL2VudW0vI2NwcCBmb3IgbW9yZSBpbmZvcm1hdGlvbhJaCgtzdHJpbmdfdHlwZRgCIAEoDjIaLnBiLkNwcEZlYXR1cmVzLlN0cmluZ1R5cGVCKYgBAZgBBJgBAaIBCxIGU1RSSU5HGIQHogEJEgRWSUVXGOkHsgEDCOgHEkwKGmVudW1fbmFtZV91c2VzX3N0cmluZ192aWV3GAMgASgIQiiIAQGYAQaYAQGiAQoSBWZhbHNlGIQHogEJEgR0cnVlGOkHsgEDCOkHIkUKClN0cmluZ1R5cGUSFwoTU1RSSU5HX1RZUEVfVU5LTk9XThAAEggKBFZJRVcQARIICgRDT1JEEAISCgoGU1RSSU5HEAM6PwoDY3BwEhsuZ29vZ2xlLnByb3RvYnVmLkZlYXR1cmVTZXQY6AcgASgLMg8ucGIuQ3BwRmVhdHVyZXNSA2NwcA", [descriptor_pb_js_1.file_google_protobuf_descriptor]); -/** - * Describes the message pb.CppFeatures. - * Use `create(CppFeaturesSchema)` to create a new message. - */ -exports.CppFeaturesSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_cpp_features, 0); -/** - * @generated from enum pb.CppFeatures.StringType - */ -var CppFeatures_StringType; -(function (CppFeatures_StringType) { - /** - * @generated from enum value: STRING_TYPE_UNKNOWN = 0; - */ - CppFeatures_StringType[CppFeatures_StringType["STRING_TYPE_UNKNOWN"] = 0] = "STRING_TYPE_UNKNOWN"; - /** - * @generated from enum value: VIEW = 1; - */ - CppFeatures_StringType[CppFeatures_StringType["VIEW"] = 1] = "VIEW"; - /** - * @generated from enum value: CORD = 2; - */ - CppFeatures_StringType[CppFeatures_StringType["CORD"] = 2] = "CORD"; - /** - * @generated from enum value: STRING = 3; - */ - CppFeatures_StringType[CppFeatures_StringType["STRING"] = 3] = "STRING"; -})(CppFeatures_StringType || (exports.CppFeatures_StringType = CppFeatures_StringType = {})); -/** - * Describes the enum pb.CppFeatures.StringType. - */ -exports.CppFeatures_StringTypeSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_cpp_features, 0, 0); -/** - * @generated from extension: optional pb.CppFeatures cpp = 1000; - */ -exports.cpp = (0, extension_js_1.extDesc)(exports.file_google_protobuf_cpp_features, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts deleted file mode 100644 index d0ae9dd..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts +++ /dev/null @@ -1,4123 +0,0 @@ -import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/descriptor.proto. - */ -export declare const file_google_protobuf_descriptor: GenFile; -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - * - * @generated from message google.protobuf.FileDescriptorSet - */ -export type FileDescriptorSet = Message<"google.protobuf.FileDescriptorSet"> & { - /** - * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1; - */ - file: FileDescriptorProto[]; -}; -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - * - * @generated from message google.protobuf.FileDescriptorSet - */ -export type FileDescriptorSetJson = { - /** - * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1; - */ - file?: FileDescriptorProtoJson[]; -}; -/** - * Describes the message google.protobuf.FileDescriptorSet. - * Use `create(FileDescriptorSetSchema)` to create a new message. - */ -export declare const FileDescriptorSetSchema: GenMessage; -/** - * Describes a complete .proto file. - * - * @generated from message google.protobuf.FileDescriptorProto - */ -export type FileDescriptorProto = Message<"google.protobuf.FileDescriptorProto"> & { - /** - * file name, relative to root of source tree - * - * @generated from field: optional string name = 1; - */ - name: string; - /** - * e.g. "foo", "foo.bar", etc. - * - * @generated from field: optional string package = 2; - */ - package: string; - /** - * Names of files imported by this file. - * - * @generated from field: repeated string dependency = 3; - */ - dependency: string[]; - /** - * Indexes of the public imported files in the dependency list above. - * - * @generated from field: repeated int32 public_dependency = 10; - */ - publicDependency: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - * - * @generated from field: repeated int32 weak_dependency = 11; - */ - weakDependency: number[]; - /** - * Names of files imported by this file purely for the purpose of providing - * option extensions. These are excluded from the dependency list above. - * - * @generated from field: repeated string option_dependency = 15; - */ - optionDependency: string[]; - /** - * All top-level definitions in this file. - * - * @generated from field: repeated google.protobuf.DescriptorProto message_type = 4; - */ - messageType: DescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 5; - */ - enumType: EnumDescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.ServiceDescriptorProto service = 6; - */ - service: ServiceDescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7; - */ - extension: FieldDescriptorProto[]; - /** - * @generated from field: optional google.protobuf.FileOptions options = 8; - */ - options?: FileOptions; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - * - * @generated from field: optional google.protobuf.SourceCodeInfo source_code_info = 9; - */ - sourceCodeInfo?: SourceCodeInfo; - /** - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional string syntax = 12; - */ - syntax: string; - /** - * The edition of the proto file. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.Edition edition = 14; - */ - edition: Edition; -}; -/** - * Describes a complete .proto file. - * - * @generated from message google.protobuf.FileDescriptorProto - */ -export type FileDescriptorProtoJson = { - /** - * file name, relative to root of source tree - * - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * e.g. "foo", "foo.bar", etc. - * - * @generated from field: optional string package = 2; - */ - package?: string; - /** - * Names of files imported by this file. - * - * @generated from field: repeated string dependency = 3; - */ - dependency?: string[]; - /** - * Indexes of the public imported files in the dependency list above. - * - * @generated from field: repeated int32 public_dependency = 10; - */ - publicDependency?: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - * - * @generated from field: repeated int32 weak_dependency = 11; - */ - weakDependency?: number[]; - /** - * Names of files imported by this file purely for the purpose of providing - * option extensions. These are excluded from the dependency list above. - * - * @generated from field: repeated string option_dependency = 15; - */ - optionDependency?: string[]; - /** - * All top-level definitions in this file. - * - * @generated from field: repeated google.protobuf.DescriptorProto message_type = 4; - */ - messageType?: DescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 5; - */ - enumType?: EnumDescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.ServiceDescriptorProto service = 6; - */ - service?: ServiceDescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7; - */ - extension?: FieldDescriptorProtoJson[]; - /** - * @generated from field: optional google.protobuf.FileOptions options = 8; - */ - options?: FileOptionsJson; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - * - * @generated from field: optional google.protobuf.SourceCodeInfo source_code_info = 9; - */ - sourceCodeInfo?: SourceCodeInfoJson; - /** - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional string syntax = 12; - */ - syntax?: string; - /** - * The edition of the proto file. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.Edition edition = 14; - */ - edition?: EditionJson; -}; -/** - * Describes the message google.protobuf.FileDescriptorProto. - * Use `create(FileDescriptorProtoSchema)` to create a new message. - */ -export declare const FileDescriptorProtoSchema: GenMessage; -/** - * Describes a message type. - * - * @generated from message google.protobuf.DescriptorProto - */ -export type DescriptorProto = Message<"google.protobuf.DescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * @generated from field: repeated google.protobuf.FieldDescriptorProto field = 2; - */ - field: FieldDescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 6; - */ - extension: FieldDescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.DescriptorProto nested_type = 3; - */ - nestedType: DescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 4; - */ - enumType: EnumDescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - extensionRange: DescriptorProto_ExtensionRange[]; - /** - * @generated from field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - oneofDecl: OneofDescriptorProto[]; - /** - * @generated from field: optional google.protobuf.MessageOptions options = 7; - */ - options?: MessageOptions; - /** - * @generated from field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - reservedRange: DescriptorProto_ReservedRange[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - * - * @generated from field: repeated string reserved_name = 10; - */ - reservedName: string[]; - /** - * Support for `export` and `local` keywords on enums. - * - * @generated from field: optional google.protobuf.SymbolVisibility visibility = 11; - */ - visibility: SymbolVisibility; -}; -/** - * Describes a message type. - * - * @generated from message google.protobuf.DescriptorProto - */ -export type DescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * @generated from field: repeated google.protobuf.FieldDescriptorProto field = 2; - */ - field?: FieldDescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 6; - */ - extension?: FieldDescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.DescriptorProto nested_type = 3; - */ - nestedType?: DescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 4; - */ - enumType?: EnumDescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - extensionRange?: DescriptorProto_ExtensionRangeJson[]; - /** - * @generated from field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - oneofDecl?: OneofDescriptorProtoJson[]; - /** - * @generated from field: optional google.protobuf.MessageOptions options = 7; - */ - options?: MessageOptionsJson; - /** - * @generated from field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - reservedRange?: DescriptorProto_ReservedRangeJson[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - * - * @generated from field: repeated string reserved_name = 10; - */ - reservedName?: string[]; - /** - * Support for `export` and `local` keywords on enums. - * - * @generated from field: optional google.protobuf.SymbolVisibility visibility = 11; - */ - visibility?: SymbolVisibilityJson; -}; -/** - * Describes the message google.protobuf.DescriptorProto. - * Use `create(DescriptorProtoSchema)` to create a new message. - */ -export declare const DescriptorProtoSchema: GenMessage; -/** - * @generated from message google.protobuf.DescriptorProto.ExtensionRange - */ -export type DescriptorProto_ExtensionRange = Message<"google.protobuf.DescriptorProto.ExtensionRange"> & { - /** - * Inclusive. - * - * @generated from field: optional int32 start = 1; - */ - start: number; - /** - * Exclusive. - * - * @generated from field: optional int32 end = 2; - */ - end: number; - /** - * @generated from field: optional google.protobuf.ExtensionRangeOptions options = 3; - */ - options?: ExtensionRangeOptions; -}; -/** - * @generated from message google.protobuf.DescriptorProto.ExtensionRange - */ -export type DescriptorProto_ExtensionRangeJson = { - /** - * Inclusive. - * - * @generated from field: optional int32 start = 1; - */ - start?: number; - /** - * Exclusive. - * - * @generated from field: optional int32 end = 2; - */ - end?: number; - /** - * @generated from field: optional google.protobuf.ExtensionRangeOptions options = 3; - */ - options?: ExtensionRangeOptionsJson; -}; -/** - * Describes the message google.protobuf.DescriptorProto.ExtensionRange. - * Use `create(DescriptorProto_ExtensionRangeSchema)` to create a new message. - */ -export declare const DescriptorProto_ExtensionRangeSchema: GenMessage; -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - * - * @generated from message google.protobuf.DescriptorProto.ReservedRange - */ -export type DescriptorProto_ReservedRange = Message<"google.protobuf.DescriptorProto.ReservedRange"> & { - /** - * Inclusive. - * - * @generated from field: optional int32 start = 1; - */ - start: number; - /** - * Exclusive. - * - * @generated from field: optional int32 end = 2; - */ - end: number; -}; -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - * - * @generated from message google.protobuf.DescriptorProto.ReservedRange - */ -export type DescriptorProto_ReservedRangeJson = { - /** - * Inclusive. - * - * @generated from field: optional int32 start = 1; - */ - start?: number; - /** - * Exclusive. - * - * @generated from field: optional int32 end = 2; - */ - end?: number; -}; -/** - * Describes the message google.protobuf.DescriptorProto.ReservedRange. - * Use `create(DescriptorProto_ReservedRangeSchema)` to create a new message. - */ -export declare const DescriptorProto_ReservedRangeSchema: GenMessage; -/** - * @generated from message google.protobuf.ExtensionRangeOptions - */ -export type ExtensionRangeOptions = Message<"google.protobuf.ExtensionRangeOptions"> & { - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; - /** - * For external users: DO NOT USE. We are in the process of open sourcing - * extension declaration and executing internal cleanups before it can be - * used externally. - * - * @generated from field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; - */ - declaration: ExtensionRangeOptions_Declaration[]; - /** - * Any features defined in the specific edition. - * - * @generated from field: optional google.protobuf.FeatureSet features = 50; - */ - features?: FeatureSet; - /** - * The verification state of the range. - * TODO: flip the default to DECLARATION once all empty ranges - * are marked as UNVERIFIED. - * - * @generated from field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED]; - */ - verification: ExtensionRangeOptions_VerificationState; -}; -/** - * @generated from message google.protobuf.ExtensionRangeOptions - */ -export type ExtensionRangeOptionsJson = { - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; - /** - * For external users: DO NOT USE. We are in the process of open sourcing - * extension declaration and executing internal cleanups before it can be - * used externally. - * - * @generated from field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; - */ - declaration?: ExtensionRangeOptions_DeclarationJson[]; - /** - * Any features defined in the specific edition. - * - * @generated from field: optional google.protobuf.FeatureSet features = 50; - */ - features?: FeatureSetJson; - /** - * The verification state of the range. - * TODO: flip the default to DECLARATION once all empty ranges - * are marked as UNVERIFIED. - * - * @generated from field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED]; - */ - verification?: ExtensionRangeOptions_VerificationStateJson; -}; -/** - * Describes the message google.protobuf.ExtensionRangeOptions. - * Use `create(ExtensionRangeOptionsSchema)` to create a new message. - */ -export declare const ExtensionRangeOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.ExtensionRangeOptions.Declaration - */ -export type ExtensionRangeOptions_Declaration = Message<"google.protobuf.ExtensionRangeOptions.Declaration"> & { - /** - * The extension number declared within the extension range. - * - * @generated from field: optional int32 number = 1; - */ - number: number; - /** - * The fully-qualified name of the extension field. There must be a leading - * dot in front of the full name. - * - * @generated from field: optional string full_name = 2; - */ - fullName: string; - /** - * The fully-qualified type name of the extension field. Unlike - * Metadata.type, Declaration.type must have a leading dot for messages - * and enums. - * - * @generated from field: optional string type = 3; - */ - type: string; - /** - * If true, indicates that the number is reserved in the extension range, - * and any extension field with the number will fail to compile. Set this - * when a declared extension field is deleted. - * - * @generated from field: optional bool reserved = 5; - */ - reserved: boolean; - /** - * If true, indicates that the extension must be defined as repeated. - * Otherwise the extension must be defined as optional. - * - * @generated from field: optional bool repeated = 6; - */ - repeated: boolean; -}; -/** - * @generated from message google.protobuf.ExtensionRangeOptions.Declaration - */ -export type ExtensionRangeOptions_DeclarationJson = { - /** - * The extension number declared within the extension range. - * - * @generated from field: optional int32 number = 1; - */ - number?: number; - /** - * The fully-qualified name of the extension field. There must be a leading - * dot in front of the full name. - * - * @generated from field: optional string full_name = 2; - */ - fullName?: string; - /** - * The fully-qualified type name of the extension field. Unlike - * Metadata.type, Declaration.type must have a leading dot for messages - * and enums. - * - * @generated from field: optional string type = 3; - */ - type?: string; - /** - * If true, indicates that the number is reserved in the extension range, - * and any extension field with the number will fail to compile. Set this - * when a declared extension field is deleted. - * - * @generated from field: optional bool reserved = 5; - */ - reserved?: boolean; - /** - * If true, indicates that the extension must be defined as repeated. - * Otherwise the extension must be defined as optional. - * - * @generated from field: optional bool repeated = 6; - */ - repeated?: boolean; -}; -/** - * Describes the message google.protobuf.ExtensionRangeOptions.Declaration. - * Use `create(ExtensionRangeOptions_DeclarationSchema)` to create a new message. - */ -export declare const ExtensionRangeOptions_DeclarationSchema: GenMessage; -/** - * The verification state of the extension range. - * - * @generated from enum google.protobuf.ExtensionRangeOptions.VerificationState - */ -export declare enum ExtensionRangeOptions_VerificationState { - /** - * All the extensions of the range must be declared. - * - * @generated from enum value: DECLARATION = 0; - */ - DECLARATION = 0, - /** - * @generated from enum value: UNVERIFIED = 1; - */ - UNVERIFIED = 1 -} -/** - * The verification state of the extension range. - * - * @generated from enum google.protobuf.ExtensionRangeOptions.VerificationState - */ -export type ExtensionRangeOptions_VerificationStateJson = "DECLARATION" | "UNVERIFIED"; -/** - * Describes the enum google.protobuf.ExtensionRangeOptions.VerificationState. - */ -export declare const ExtensionRangeOptions_VerificationStateSchema: GenEnum; -/** - * Describes a field within a message. - * - * @generated from message google.protobuf.FieldDescriptorProto - */ -export type FieldDescriptorProto = Message<"google.protobuf.FieldDescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * @generated from field: optional int32 number = 3; - */ - number: number; - /** - * @generated from field: optional google.protobuf.FieldDescriptorProto.Label label = 4; - */ - label: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - * - * @generated from field: optional google.protobuf.FieldDescriptorProto.Type type = 5; - */ - type: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - * - * @generated from field: optional string type_name = 6; - */ - typeName: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - * - * @generated from field: optional string extendee = 2; - */ - extendee: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * - * @generated from field: optional string default_value = 7; - */ - defaultValue: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - * - * @generated from field: optional int32 oneof_index = 9; - */ - oneofIndex: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - * - * @generated from field: optional string json_name = 10; - */ - jsonName: string; - /** - * @generated from field: optional google.protobuf.FieldOptions options = 8; - */ - options?: FieldOptions; - /** - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must belong to a oneof to signal - * to old proto3 clients that presence is tracked for this field. This oneof - * is known as a "synthetic" oneof, and this field must be its sole member - * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs - * exist in the descriptor only, and do not generate any API. Synthetic oneofs - * must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - * - * @generated from field: optional bool proto3_optional = 17; - */ - proto3Optional: boolean; -}; -/** - * Describes a field within a message. - * - * @generated from message google.protobuf.FieldDescriptorProto - */ -export type FieldDescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * @generated from field: optional int32 number = 3; - */ - number?: number; - /** - * @generated from field: optional google.protobuf.FieldDescriptorProto.Label label = 4; - */ - label?: FieldDescriptorProto_LabelJson; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - * - * @generated from field: optional google.protobuf.FieldDescriptorProto.Type type = 5; - */ - type?: FieldDescriptorProto_TypeJson; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - * - * @generated from field: optional string type_name = 6; - */ - typeName?: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - * - * @generated from field: optional string extendee = 2; - */ - extendee?: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * - * @generated from field: optional string default_value = 7; - */ - defaultValue?: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - * - * @generated from field: optional int32 oneof_index = 9; - */ - oneofIndex?: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - * - * @generated from field: optional string json_name = 10; - */ - jsonName?: string; - /** - * @generated from field: optional google.protobuf.FieldOptions options = 8; - */ - options?: FieldOptionsJson; - /** - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must belong to a oneof to signal - * to old proto3 clients that presence is tracked for this field. This oneof - * is known as a "synthetic" oneof, and this field must be its sole member - * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs - * exist in the descriptor only, and do not generate any API. Synthetic oneofs - * must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - * - * @generated from field: optional bool proto3_optional = 17; - */ - proto3Optional?: boolean; -}; -/** - * Describes the message google.protobuf.FieldDescriptorProto. - * Use `create(FieldDescriptorProtoSchema)` to create a new message. - */ -export declare const FieldDescriptorProtoSchema: GenMessage; -/** - * @generated from enum google.protobuf.FieldDescriptorProto.Type - */ -export declare enum FieldDescriptorProto_Type { - /** - * 0 is reserved for errors. - * Order is weird for historical reasons. - * - * @generated from enum value: TYPE_DOUBLE = 1; - */ - DOUBLE = 1, - /** - * @generated from enum value: TYPE_FLOAT = 2; - */ - FLOAT = 2, - /** - * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - * - * @generated from enum value: TYPE_INT64 = 3; - */ - INT64 = 3, - /** - * @generated from enum value: TYPE_UINT64 = 4; - */ - UINT64 = 4, - /** - * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - * - * @generated from enum value: TYPE_INT32 = 5; - */ - INT32 = 5, - /** - * @generated from enum value: TYPE_FIXED64 = 6; - */ - FIXED64 = 6, - /** - * @generated from enum value: TYPE_FIXED32 = 7; - */ - FIXED32 = 7, - /** - * @generated from enum value: TYPE_BOOL = 8; - */ - BOOL = 8, - /** - * @generated from enum value: TYPE_STRING = 9; - */ - STRING = 9, - /** - * Tag-delimited aggregate. - * Group type is deprecated and not supported after google.protobuf. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. In Editions, the group wire format - * can be enabled via the `message_encoding` feature. - * - * @generated from enum value: TYPE_GROUP = 10; - */ - GROUP = 10, - /** - * Length-delimited aggregate. - * - * @generated from enum value: TYPE_MESSAGE = 11; - */ - MESSAGE = 11, - /** - * New in version 2. - * - * @generated from enum value: TYPE_BYTES = 12; - */ - BYTES = 12, - /** - * @generated from enum value: TYPE_UINT32 = 13; - */ - UINT32 = 13, - /** - * @generated from enum value: TYPE_ENUM = 14; - */ - ENUM = 14, - /** - * @generated from enum value: TYPE_SFIXED32 = 15; - */ - SFIXED32 = 15, - /** - * @generated from enum value: TYPE_SFIXED64 = 16; - */ - SFIXED64 = 16, - /** - * Uses ZigZag encoding. - * - * @generated from enum value: TYPE_SINT32 = 17; - */ - SINT32 = 17, - /** - * Uses ZigZag encoding. - * - * @generated from enum value: TYPE_SINT64 = 18; - */ - SINT64 = 18 -} -/** - * @generated from enum google.protobuf.FieldDescriptorProto.Type - */ -export type FieldDescriptorProto_TypeJson = "TYPE_DOUBLE" | "TYPE_FLOAT" | "TYPE_INT64" | "TYPE_UINT64" | "TYPE_INT32" | "TYPE_FIXED64" | "TYPE_FIXED32" | "TYPE_BOOL" | "TYPE_STRING" | "TYPE_GROUP" | "TYPE_MESSAGE" | "TYPE_BYTES" | "TYPE_UINT32" | "TYPE_ENUM" | "TYPE_SFIXED32" | "TYPE_SFIXED64" | "TYPE_SINT32" | "TYPE_SINT64"; -/** - * Describes the enum google.protobuf.FieldDescriptorProto.Type. - */ -export declare const FieldDescriptorProto_TypeSchema: GenEnum; -/** - * @generated from enum google.protobuf.FieldDescriptorProto.Label - */ -export declare enum FieldDescriptorProto_Label { - /** - * 0 is reserved for errors - * - * @generated from enum value: LABEL_OPTIONAL = 1; - */ - OPTIONAL = 1, - /** - * @generated from enum value: LABEL_REPEATED = 3; - */ - REPEATED = 3, - /** - * The required label is only allowed in google.protobuf. In proto3 and Editions - * it's explicitly prohibited. In Editions, the `field_presence` feature - * can be used to get this behavior. - * - * @generated from enum value: LABEL_REQUIRED = 2; - */ - REQUIRED = 2 -} -/** - * @generated from enum google.protobuf.FieldDescriptorProto.Label - */ -export type FieldDescriptorProto_LabelJson = "LABEL_OPTIONAL" | "LABEL_REPEATED" | "LABEL_REQUIRED"; -/** - * Describes the enum google.protobuf.FieldDescriptorProto.Label. - */ -export declare const FieldDescriptorProto_LabelSchema: GenEnum; -/** - * Describes a oneof. - * - * @generated from message google.protobuf.OneofDescriptorProto - */ -export type OneofDescriptorProto = Message<"google.protobuf.OneofDescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * @generated from field: optional google.protobuf.OneofOptions options = 2; - */ - options?: OneofOptions; -}; -/** - * Describes a oneof. - * - * @generated from message google.protobuf.OneofDescriptorProto - */ -export type OneofDescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * @generated from field: optional google.protobuf.OneofOptions options = 2; - */ - options?: OneofOptionsJson; -}; -/** - * Describes the message google.protobuf.OneofDescriptorProto. - * Use `create(OneofDescriptorProtoSchema)` to create a new message. - */ -export declare const OneofDescriptorProtoSchema: GenMessage; -/** - * Describes an enum type. - * - * @generated from message google.protobuf.EnumDescriptorProto - */ -export type EnumDescriptorProto = Message<"google.protobuf.EnumDescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * @generated from field: repeated google.protobuf.EnumValueDescriptorProto value = 2; - */ - value: EnumValueDescriptorProto[]; - /** - * @generated from field: optional google.protobuf.EnumOptions options = 3; - */ - options?: EnumOptions; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - * - * @generated from field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; - */ - reservedRange: EnumDescriptorProto_EnumReservedRange[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - * - * @generated from field: repeated string reserved_name = 5; - */ - reservedName: string[]; - /** - * Support for `export` and `local` keywords on enums. - * - * @generated from field: optional google.protobuf.SymbolVisibility visibility = 6; - */ - visibility: SymbolVisibility; -}; -/** - * Describes an enum type. - * - * @generated from message google.protobuf.EnumDescriptorProto - */ -export type EnumDescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * @generated from field: repeated google.protobuf.EnumValueDescriptorProto value = 2; - */ - value?: EnumValueDescriptorProtoJson[]; - /** - * @generated from field: optional google.protobuf.EnumOptions options = 3; - */ - options?: EnumOptionsJson; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - * - * @generated from field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; - */ - reservedRange?: EnumDescriptorProto_EnumReservedRangeJson[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - * - * @generated from field: repeated string reserved_name = 5; - */ - reservedName?: string[]; - /** - * Support for `export` and `local` keywords on enums. - * - * @generated from field: optional google.protobuf.SymbolVisibility visibility = 6; - */ - visibility?: SymbolVisibilityJson; -}; -/** - * Describes the message google.protobuf.EnumDescriptorProto. - * Use `create(EnumDescriptorProtoSchema)` to create a new message. - */ -export declare const EnumDescriptorProtoSchema: GenMessage; -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - * - * @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange - */ -export type EnumDescriptorProto_EnumReservedRange = Message<"google.protobuf.EnumDescriptorProto.EnumReservedRange"> & { - /** - * Inclusive. - * - * @generated from field: optional int32 start = 1; - */ - start: number; - /** - * Inclusive. - * - * @generated from field: optional int32 end = 2; - */ - end: number; -}; -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - * - * @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange - */ -export type EnumDescriptorProto_EnumReservedRangeJson = { - /** - * Inclusive. - * - * @generated from field: optional int32 start = 1; - */ - start?: number; - /** - * Inclusive. - * - * @generated from field: optional int32 end = 2; - */ - end?: number; -}; -/** - * Describes the message google.protobuf.EnumDescriptorProto.EnumReservedRange. - * Use `create(EnumDescriptorProto_EnumReservedRangeSchema)` to create a new message. - */ -export declare const EnumDescriptorProto_EnumReservedRangeSchema: GenMessage; -/** - * Describes a value within an enum. - * - * @generated from message google.protobuf.EnumValueDescriptorProto - */ -export type EnumValueDescriptorProto = Message<"google.protobuf.EnumValueDescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * @generated from field: optional int32 number = 2; - */ - number: number; - /** - * @generated from field: optional google.protobuf.EnumValueOptions options = 3; - */ - options?: EnumValueOptions; -}; -/** - * Describes a value within an enum. - * - * @generated from message google.protobuf.EnumValueDescriptorProto - */ -export type EnumValueDescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * @generated from field: optional int32 number = 2; - */ - number?: number; - /** - * @generated from field: optional google.protobuf.EnumValueOptions options = 3; - */ - options?: EnumValueOptionsJson; -}; -/** - * Describes the message google.protobuf.EnumValueDescriptorProto. - * Use `create(EnumValueDescriptorProtoSchema)` to create a new message. - */ -export declare const EnumValueDescriptorProtoSchema: GenMessage; -/** - * Describes a service. - * - * @generated from message google.protobuf.ServiceDescriptorProto - */ -export type ServiceDescriptorProto = Message<"google.protobuf.ServiceDescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2; - */ - method: MethodDescriptorProto[]; - /** - * @generated from field: optional google.protobuf.ServiceOptions options = 3; - */ - options?: ServiceOptions; -}; -/** - * Describes a service. - * - * @generated from message google.protobuf.ServiceDescriptorProto - */ -export type ServiceDescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2; - */ - method?: MethodDescriptorProtoJson[]; - /** - * @generated from field: optional google.protobuf.ServiceOptions options = 3; - */ - options?: ServiceOptionsJson; -}; -/** - * Describes the message google.protobuf.ServiceDescriptorProto. - * Use `create(ServiceDescriptorProtoSchema)` to create a new message. - */ -export declare const ServiceDescriptorProtoSchema: GenMessage; -/** - * Describes a method of a service. - * - * @generated from message google.protobuf.MethodDescriptorProto - */ -export type MethodDescriptorProto = Message<"google.protobuf.MethodDescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - * - * @generated from field: optional string input_type = 2; - */ - inputType: string; - /** - * @generated from field: optional string output_type = 3; - */ - outputType: string; - /** - * @generated from field: optional google.protobuf.MethodOptions options = 4; - */ - options?: MethodOptions; - /** - * Identifies if client streams multiple client messages - * - * @generated from field: optional bool client_streaming = 5 [default = false]; - */ - clientStreaming: boolean; - /** - * Identifies if server streams multiple server messages - * - * @generated from field: optional bool server_streaming = 6 [default = false]; - */ - serverStreaming: boolean; -}; -/** - * Describes a method of a service. - * - * @generated from message google.protobuf.MethodDescriptorProto - */ -export type MethodDescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - * - * @generated from field: optional string input_type = 2; - */ - inputType?: string; - /** - * @generated from field: optional string output_type = 3; - */ - outputType?: string; - /** - * @generated from field: optional google.protobuf.MethodOptions options = 4; - */ - options?: MethodOptionsJson; - /** - * Identifies if client streams multiple client messages - * - * @generated from field: optional bool client_streaming = 5 [default = false]; - */ - clientStreaming?: boolean; - /** - * Identifies if server streams multiple server messages - * - * @generated from field: optional bool server_streaming = 6 [default = false]; - */ - serverStreaming?: boolean; -}; -/** - * Describes the message google.protobuf.MethodDescriptorProto. - * Use `create(MethodDescriptorProtoSchema)` to create a new message. - */ -export declare const MethodDescriptorProtoSchema: GenMessage; -/** - * @generated from message google.protobuf.FileOptions - */ -export type FileOptions = Message<"google.protobuf.FileOptions"> & { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - * - * @generated from field: optional string java_package = 1; - */ - javaPackage: string; - /** - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * - * @generated from field: optional string java_outer_classname = 8; - */ - javaOuterClassname: string; - /** - * If enabled, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the wrapper class - * named by java_outer_classname. However, the wrapper class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - * - * @generated from field: optional bool java_multiple_files = 10 [default = false]; - */ - javaMultipleFiles: boolean; - /** - * This option does nothing. - * - * @generated from field: optional bool java_generate_equals_and_hash = 20 [deprecated = true]; - * @deprecated - */ - javaGenerateEqualsAndHash: boolean; - /** - * A proto2 file can set this to true to opt in to UTF-8 checking for Java, - * which will throw an exception if invalid UTF-8 is parsed from the wire or - * assigned to a string field. - * - * TODO: clarify exactly what kinds of field types this option - * applies to, and update these docs accordingly. - * - * Proto3 files already perform these checks. Setting the option explicitly to - * false has no effect: it cannot be used to opt proto3 files out of UTF-8 - * checks. - * - * @generated from field: optional bool java_string_check_utf8 = 27 [default = false]; - */ - javaStringCheckUtf8: boolean; - /** - * @generated from field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; - */ - optimizeFor: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - * - * @generated from field: optional string go_package = 11; - */ - goPackage: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - * - * @generated from field: optional bool cc_generic_services = 16 [default = false]; - */ - ccGenericServices: boolean; - /** - * @generated from field: optional bool java_generic_services = 17 [default = false]; - */ - javaGenericServices: boolean; - /** - * @generated from field: optional bool py_generic_services = 18 [default = false]; - */ - pyGenericServices: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - * - * @generated from field: optional bool deprecated = 23 [default = false]; - */ - deprecated: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - * - * @generated from field: optional bool cc_enable_arenas = 31 [default = true]; - */ - ccEnableArenas: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - * - * @generated from field: optional string objc_class_prefix = 36; - */ - objcClassPrefix: string; - /** - * Namespace for generated classes; defaults to the package. - * - * @generated from field: optional string csharp_namespace = 37; - */ - csharpNamespace: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - * - * @generated from field: optional string swift_prefix = 39; - */ - swiftPrefix: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - * - * @generated from field: optional string php_class_prefix = 40; - */ - phpClassPrefix: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - * - * @generated from field: optional string php_namespace = 41; - */ - phpNamespace: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - * - * @generated from field: optional string php_metadata_namespace = 44; - */ - phpMetadataNamespace: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - * - * @generated from field: optional string ruby_package = 45; - */ - rubyPackage: string; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 50; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.FileOptions - */ -export type FileOptionsJson = { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - * - * @generated from field: optional string java_package = 1; - */ - javaPackage?: string; - /** - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * - * @generated from field: optional string java_outer_classname = 8; - */ - javaOuterClassname?: string; - /** - * If enabled, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the wrapper class - * named by java_outer_classname. However, the wrapper class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - * - * @generated from field: optional bool java_multiple_files = 10 [default = false]; - */ - javaMultipleFiles?: boolean; - /** - * This option does nothing. - * - * @generated from field: optional bool java_generate_equals_and_hash = 20 [deprecated = true]; - * @deprecated - */ - javaGenerateEqualsAndHash?: boolean; - /** - * A proto2 file can set this to true to opt in to UTF-8 checking for Java, - * which will throw an exception if invalid UTF-8 is parsed from the wire or - * assigned to a string field. - * - * TODO: clarify exactly what kinds of field types this option - * applies to, and update these docs accordingly. - * - * Proto3 files already perform these checks. Setting the option explicitly to - * false has no effect: it cannot be used to opt proto3 files out of UTF-8 - * checks. - * - * @generated from field: optional bool java_string_check_utf8 = 27 [default = false]; - */ - javaStringCheckUtf8?: boolean; - /** - * @generated from field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; - */ - optimizeFor?: FileOptions_OptimizeModeJson; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - * - * @generated from field: optional string go_package = 11; - */ - goPackage?: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - * - * @generated from field: optional bool cc_generic_services = 16 [default = false]; - */ - ccGenericServices?: boolean; - /** - * @generated from field: optional bool java_generic_services = 17 [default = false]; - */ - javaGenericServices?: boolean; - /** - * @generated from field: optional bool py_generic_services = 18 [default = false]; - */ - pyGenericServices?: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - * - * @generated from field: optional bool deprecated = 23 [default = false]; - */ - deprecated?: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - * - * @generated from field: optional bool cc_enable_arenas = 31 [default = true]; - */ - ccEnableArenas?: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - * - * @generated from field: optional string objc_class_prefix = 36; - */ - objcClassPrefix?: string; - /** - * Namespace for generated classes; defaults to the package. - * - * @generated from field: optional string csharp_namespace = 37; - */ - csharpNamespace?: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - * - * @generated from field: optional string swift_prefix = 39; - */ - swiftPrefix?: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - * - * @generated from field: optional string php_class_prefix = 40; - */ - phpClassPrefix?: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - * - * @generated from field: optional string php_namespace = 41; - */ - phpNamespace?: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - * - * @generated from field: optional string php_metadata_namespace = 44; - */ - phpMetadataNamespace?: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - * - * @generated from field: optional string ruby_package = 45; - */ - rubyPackage?: string; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 50; - */ - features?: FeatureSetJson; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.FileOptions. - * Use `create(FileOptionsSchema)` to create a new message. - */ -export declare const FileOptionsSchema: GenMessage; -/** - * Generated classes can be optimized for speed or code size. - * - * @generated from enum google.protobuf.FileOptions.OptimizeMode - */ -export declare enum FileOptions_OptimizeMode { - /** - * Generate complete code for parsing, serialization, - * - * @generated from enum value: SPEED = 1; - */ - SPEED = 1, - /** - * etc. - * - * Use ReflectionOps to implement these methods. - * - * @generated from enum value: CODE_SIZE = 2; - */ - CODE_SIZE = 2, - /** - * Generate code using MessageLite and the lite runtime. - * - * @generated from enum value: LITE_RUNTIME = 3; - */ - LITE_RUNTIME = 3 -} -/** - * Generated classes can be optimized for speed or code size. - * - * @generated from enum google.protobuf.FileOptions.OptimizeMode - */ -export type FileOptions_OptimizeModeJson = "SPEED" | "CODE_SIZE" | "LITE_RUNTIME"; -/** - * Describes the enum google.protobuf.FileOptions.OptimizeMode. - */ -export declare const FileOptions_OptimizeModeSchema: GenEnum; -/** - * @generated from message google.protobuf.MessageOptions - */ -export type MessageOptions = Message<"google.protobuf.MessageOptions"> & { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - * - * @generated from field: optional bool message_set_wire_format = 1 [default = false]; - */ - messageSetWireFormat: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - * - * @generated from field: optional bool no_standard_descriptor_accessor = 2 [default = false]; - */ - noStandardDescriptorAccessor: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - * - * @generated from field: optional bool deprecated = 3 [default = false]; - */ - deprecated: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - * - * @generated from field: optional bool map_entry = 7; - */ - mapEntry: boolean; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * - * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; - * @deprecated - */ - deprecatedLegacyJsonFieldConflicts: boolean; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 12; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.MessageOptions - */ -export type MessageOptionsJson = { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - * - * @generated from field: optional bool message_set_wire_format = 1 [default = false]; - */ - messageSetWireFormat?: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - * - * @generated from field: optional bool no_standard_descriptor_accessor = 2 [default = false]; - */ - noStandardDescriptorAccessor?: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - * - * @generated from field: optional bool deprecated = 3 [default = false]; - */ - deprecated?: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - * - * @generated from field: optional bool map_entry = 7; - */ - mapEntry?: boolean; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * - * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; - * @deprecated - */ - deprecatedLegacyJsonFieldConflicts?: boolean; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 12; - */ - features?: FeatureSetJson; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.MessageOptions. - * Use `create(MessageOptionsSchema)` to create a new message. - */ -export declare const MessageOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.FieldOptions - */ -export type FieldOptions = Message<"google.protobuf.FieldOptions"> & { - /** - * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead. - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is only implemented to support use of - * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of - * type "bytes" in the open source release. - * TODO: make ctype actually deprecated. - * - * @generated from field: optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; - */ - ctype: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. This option is prohibited in - * Editions, but the `repeated_field_encoding` feature can be used to control - * the behavior. - * - * @generated from field: optional bool packed = 2; - */ - packed: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - * - * @generated from field: optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; - */ - jstype: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * Note that lazy message fields are still eagerly verified to check - * ill-formed wireformat or missing required fields. Calling IsInitialized() - * on the outer message would fail if the inner message has missing required - * fields. Failed verification would result in parsing failure (except when - * uninitialized messages are acceptable). - * - * @generated from field: optional bool lazy = 5 [default = false]; - */ - lazy: boolean; - /** - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - * - * @generated from field: optional bool unverified_lazy = 15 [default = false]; - */ - unverifiedLazy: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - * - * @generated from field: optional bool deprecated = 3 [default = false]; - */ - deprecated: boolean; - /** - * DEPRECATED. DO NOT USE! - * For Google-internal migration only. Do not use. - * - * @generated from field: optional bool weak = 10 [default = false, deprecated = true]; - * @deprecated - */ - weak: boolean; - /** - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * - * @generated from field: optional bool debug_redact = 16 [default = false]; - */ - debugRedact: boolean; - /** - * @generated from field: optional google.protobuf.FieldOptions.OptionRetention retention = 17; - */ - retention: FieldOptions_OptionRetention; - /** - * @generated from field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; - */ - targets: FieldOptions_OptionTargetType[]; - /** - * @generated from field: repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; - */ - editionDefaults: FieldOptions_EditionDefault[]; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 21; - */ - features?: FeatureSet; - /** - * @generated from field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22; - */ - featureSupport?: FieldOptions_FeatureSupport; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.FieldOptions - */ -export type FieldOptionsJson = { - /** - * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead. - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is only implemented to support use of - * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of - * type "bytes" in the open source release. - * TODO: make ctype actually deprecated. - * - * @generated from field: optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; - */ - ctype?: FieldOptions_CTypeJson; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. This option is prohibited in - * Editions, but the `repeated_field_encoding` feature can be used to control - * the behavior. - * - * @generated from field: optional bool packed = 2; - */ - packed?: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - * - * @generated from field: optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; - */ - jstype?: FieldOptions_JSTypeJson; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * Note that lazy message fields are still eagerly verified to check - * ill-formed wireformat or missing required fields. Calling IsInitialized() - * on the outer message would fail if the inner message has missing required - * fields. Failed verification would result in parsing failure (except when - * uninitialized messages are acceptable). - * - * @generated from field: optional bool lazy = 5 [default = false]; - */ - lazy?: boolean; - /** - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - * - * @generated from field: optional bool unverified_lazy = 15 [default = false]; - */ - unverifiedLazy?: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - * - * @generated from field: optional bool deprecated = 3 [default = false]; - */ - deprecated?: boolean; - /** - * DEPRECATED. DO NOT USE! - * For Google-internal migration only. Do not use. - * - * @generated from field: optional bool weak = 10 [default = false, deprecated = true]; - * @deprecated - */ - weak?: boolean; - /** - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * - * @generated from field: optional bool debug_redact = 16 [default = false]; - */ - debugRedact?: boolean; - /** - * @generated from field: optional google.protobuf.FieldOptions.OptionRetention retention = 17; - */ - retention?: FieldOptions_OptionRetentionJson; - /** - * @generated from field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; - */ - targets?: FieldOptions_OptionTargetTypeJson[]; - /** - * @generated from field: repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; - */ - editionDefaults?: FieldOptions_EditionDefaultJson[]; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 21; - */ - features?: FeatureSetJson; - /** - * @generated from field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22; - */ - featureSupport?: FieldOptions_FeatureSupportJson; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.FieldOptions. - * Use `create(FieldOptionsSchema)` to create a new message. - */ -export declare const FieldOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.FieldOptions.EditionDefault - */ -export type FieldOptions_EditionDefault = Message<"google.protobuf.FieldOptions.EditionDefault"> & { - /** - * @generated from field: optional google.protobuf.Edition edition = 3; - */ - edition: Edition; - /** - * Textproto value. - * - * @generated from field: optional string value = 2; - */ - value: string; -}; -/** - * @generated from message google.protobuf.FieldOptions.EditionDefault - */ -export type FieldOptions_EditionDefaultJson = { - /** - * @generated from field: optional google.protobuf.Edition edition = 3; - */ - edition?: EditionJson; - /** - * Textproto value. - * - * @generated from field: optional string value = 2; - */ - value?: string; -}; -/** - * Describes the message google.protobuf.FieldOptions.EditionDefault. - * Use `create(FieldOptions_EditionDefaultSchema)` to create a new message. - */ -export declare const FieldOptions_EditionDefaultSchema: GenMessage; -/** - * Information about the support window of a feature. - * - * @generated from message google.protobuf.FieldOptions.FeatureSupport - */ -export type FieldOptions_FeatureSupport = Message<"google.protobuf.FieldOptions.FeatureSupport"> & { - /** - * The edition that this feature was first available in. In editions - * earlier than this one, the default assigned to EDITION_LEGACY will be - * used, and proto files will not be able to override it. - * - * @generated from field: optional google.protobuf.Edition edition_introduced = 1; - */ - editionIntroduced: Edition; - /** - * The edition this feature becomes deprecated in. Using this after this - * edition may trigger warnings. - * - * @generated from field: optional google.protobuf.Edition edition_deprecated = 2; - */ - editionDeprecated: Edition; - /** - * The deprecation warning text if this feature is used after the edition it - * was marked deprecated in. - * - * @generated from field: optional string deprecation_warning = 3; - */ - deprecationWarning: string; - /** - * The edition this feature is no longer available in. In editions after - * this one, the last default assigned will be used, and proto files will - * not be able to override it. - * - * @generated from field: optional google.protobuf.Edition edition_removed = 4; - */ - editionRemoved: Edition; -}; -/** - * Information about the support window of a feature. - * - * @generated from message google.protobuf.FieldOptions.FeatureSupport - */ -export type FieldOptions_FeatureSupportJson = { - /** - * The edition that this feature was first available in. In editions - * earlier than this one, the default assigned to EDITION_LEGACY will be - * used, and proto files will not be able to override it. - * - * @generated from field: optional google.protobuf.Edition edition_introduced = 1; - */ - editionIntroduced?: EditionJson; - /** - * The edition this feature becomes deprecated in. Using this after this - * edition may trigger warnings. - * - * @generated from field: optional google.protobuf.Edition edition_deprecated = 2; - */ - editionDeprecated?: EditionJson; - /** - * The deprecation warning text if this feature is used after the edition it - * was marked deprecated in. - * - * @generated from field: optional string deprecation_warning = 3; - */ - deprecationWarning?: string; - /** - * The edition this feature is no longer available in. In editions after - * this one, the last default assigned will be used, and proto files will - * not be able to override it. - * - * @generated from field: optional google.protobuf.Edition edition_removed = 4; - */ - editionRemoved?: EditionJson; -}; -/** - * Describes the message google.protobuf.FieldOptions.FeatureSupport. - * Use `create(FieldOptions_FeatureSupportSchema)` to create a new message. - */ -export declare const FieldOptions_FeatureSupportSchema: GenMessage; -/** - * @generated from enum google.protobuf.FieldOptions.CType - */ -export declare enum FieldOptions_CType { - /** - * Default mode. - * - * @generated from enum value: STRING = 0; - */ - STRING = 0, - /** - * The option [ctype=CORD] may be applied to a non-repeated field of type - * "bytes". It indicates that in C++, the data should be stored in a Cord - * instead of a string. For very large strings, this may reduce memory - * fragmentation. It may also allow better performance when parsing from a - * Cord, or when parsing with aliasing enabled, as the parsed Cord may then - * alias the original buffer. - * - * @generated from enum value: CORD = 1; - */ - CORD = 1, - /** - * @generated from enum value: STRING_PIECE = 2; - */ - STRING_PIECE = 2 -} -/** - * @generated from enum google.protobuf.FieldOptions.CType - */ -export type FieldOptions_CTypeJson = "STRING" | "CORD" | "STRING_PIECE"; -/** - * Describes the enum google.protobuf.FieldOptions.CType. - */ -export declare const FieldOptions_CTypeSchema: GenEnum; -/** - * @generated from enum google.protobuf.FieldOptions.JSType - */ -export declare enum FieldOptions_JSType { - /** - * Use the default type. - * - * @generated from enum value: JS_NORMAL = 0; - */ - JS_NORMAL = 0, - /** - * Use JavaScript strings. - * - * @generated from enum value: JS_STRING = 1; - */ - JS_STRING = 1, - /** - * Use JavaScript numbers. - * - * @generated from enum value: JS_NUMBER = 2; - */ - JS_NUMBER = 2 -} -/** - * @generated from enum google.protobuf.FieldOptions.JSType - */ -export type FieldOptions_JSTypeJson = "JS_NORMAL" | "JS_STRING" | "JS_NUMBER"; -/** - * Describes the enum google.protobuf.FieldOptions.JSType. - */ -export declare const FieldOptions_JSTypeSchema: GenEnum; -/** - * If set to RETENTION_SOURCE, the option will be omitted from the binary. - * - * @generated from enum google.protobuf.FieldOptions.OptionRetention - */ -export declare enum FieldOptions_OptionRetention { - /** - * @generated from enum value: RETENTION_UNKNOWN = 0; - */ - RETENTION_UNKNOWN = 0, - /** - * @generated from enum value: RETENTION_RUNTIME = 1; - */ - RETENTION_RUNTIME = 1, - /** - * @generated from enum value: RETENTION_SOURCE = 2; - */ - RETENTION_SOURCE = 2 -} -/** - * If set to RETENTION_SOURCE, the option will be omitted from the binary. - * - * @generated from enum google.protobuf.FieldOptions.OptionRetention - */ -export type FieldOptions_OptionRetentionJson = "RETENTION_UNKNOWN" | "RETENTION_RUNTIME" | "RETENTION_SOURCE"; -/** - * Describes the enum google.protobuf.FieldOptions.OptionRetention. - */ -export declare const FieldOptions_OptionRetentionSchema: GenEnum; -/** - * This indicates the types of entities that the field may apply to when used - * as an option. If it is unset, then the field may be freely used as an - * option on any kind of entity. - * - * @generated from enum google.protobuf.FieldOptions.OptionTargetType - */ -export declare enum FieldOptions_OptionTargetType { - /** - * @generated from enum value: TARGET_TYPE_UNKNOWN = 0; - */ - TARGET_TYPE_UNKNOWN = 0, - /** - * @generated from enum value: TARGET_TYPE_FILE = 1; - */ - TARGET_TYPE_FILE = 1, - /** - * @generated from enum value: TARGET_TYPE_EXTENSION_RANGE = 2; - */ - TARGET_TYPE_EXTENSION_RANGE = 2, - /** - * @generated from enum value: TARGET_TYPE_MESSAGE = 3; - */ - TARGET_TYPE_MESSAGE = 3, - /** - * @generated from enum value: TARGET_TYPE_FIELD = 4; - */ - TARGET_TYPE_FIELD = 4, - /** - * @generated from enum value: TARGET_TYPE_ONEOF = 5; - */ - TARGET_TYPE_ONEOF = 5, - /** - * @generated from enum value: TARGET_TYPE_ENUM = 6; - */ - TARGET_TYPE_ENUM = 6, - /** - * @generated from enum value: TARGET_TYPE_ENUM_ENTRY = 7; - */ - TARGET_TYPE_ENUM_ENTRY = 7, - /** - * @generated from enum value: TARGET_TYPE_SERVICE = 8; - */ - TARGET_TYPE_SERVICE = 8, - /** - * @generated from enum value: TARGET_TYPE_METHOD = 9; - */ - TARGET_TYPE_METHOD = 9 -} -/** - * This indicates the types of entities that the field may apply to when used - * as an option. If it is unset, then the field may be freely used as an - * option on any kind of entity. - * - * @generated from enum google.protobuf.FieldOptions.OptionTargetType - */ -export type FieldOptions_OptionTargetTypeJson = "TARGET_TYPE_UNKNOWN" | "TARGET_TYPE_FILE" | "TARGET_TYPE_EXTENSION_RANGE" | "TARGET_TYPE_MESSAGE" | "TARGET_TYPE_FIELD" | "TARGET_TYPE_ONEOF" | "TARGET_TYPE_ENUM" | "TARGET_TYPE_ENUM_ENTRY" | "TARGET_TYPE_SERVICE" | "TARGET_TYPE_METHOD"; -/** - * Describes the enum google.protobuf.FieldOptions.OptionTargetType. - */ -export declare const FieldOptions_OptionTargetTypeSchema: GenEnum; -/** - * @generated from message google.protobuf.OneofOptions - */ -export type OneofOptions = Message<"google.protobuf.OneofOptions"> & { - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 1; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.OneofOptions - */ -export type OneofOptionsJson = { - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 1; - */ - features?: FeatureSetJson; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.OneofOptions. - * Use `create(OneofOptionsSchema)` to create a new message. - */ -export declare const OneofOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.EnumOptions - */ -export type EnumOptions = Message<"google.protobuf.EnumOptions"> & { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - * - * @generated from field: optional bool allow_alias = 2; - */ - allowAlias: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - * - * @generated from field: optional bool deprecated = 3 [default = false]; - */ - deprecated: boolean; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO Remove this legacy behavior once downstream teams have - * had time to migrate. - * - * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; - * @deprecated - */ - deprecatedLegacyJsonFieldConflicts: boolean; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 7; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.EnumOptions - */ -export type EnumOptionsJson = { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - * - * @generated from field: optional bool allow_alias = 2; - */ - allowAlias?: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - * - * @generated from field: optional bool deprecated = 3 [default = false]; - */ - deprecated?: boolean; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO Remove this legacy behavior once downstream teams have - * had time to migrate. - * - * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; - * @deprecated - */ - deprecatedLegacyJsonFieldConflicts?: boolean; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 7; - */ - features?: FeatureSetJson; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.EnumOptions. - * Use `create(EnumOptionsSchema)` to create a new message. - */ -export declare const EnumOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.EnumValueOptions - */ -export type EnumValueOptions = Message<"google.protobuf.EnumValueOptions"> & { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - * - * @generated from field: optional bool deprecated = 1 [default = false]; - */ - deprecated: boolean; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 2; - */ - features?: FeatureSet; - /** - * Indicate that fields annotated with this enum value should not be printed - * out when using debug formats, e.g. when the field contains sensitive - * credentials. - * - * @generated from field: optional bool debug_redact = 3 [default = false]; - */ - debugRedact: boolean; - /** - * Information about the support window of a feature value. - * - * @generated from field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4; - */ - featureSupport?: FieldOptions_FeatureSupport; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.EnumValueOptions - */ -export type EnumValueOptionsJson = { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - * - * @generated from field: optional bool deprecated = 1 [default = false]; - */ - deprecated?: boolean; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 2; - */ - features?: FeatureSetJson; - /** - * Indicate that fields annotated with this enum value should not be printed - * out when using debug formats, e.g. when the field contains sensitive - * credentials. - * - * @generated from field: optional bool debug_redact = 3 [default = false]; - */ - debugRedact?: boolean; - /** - * Information about the support window of a feature value. - * - * @generated from field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4; - */ - featureSupport?: FieldOptions_FeatureSupportJson; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.EnumValueOptions. - * Use `create(EnumValueOptionsSchema)` to create a new message. - */ -export declare const EnumValueOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.ServiceOptions - */ -export type ServiceOptions = Message<"google.protobuf.ServiceOptions"> & { - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 34; - */ - features?: FeatureSet; - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - * - * @generated from field: optional bool deprecated = 33 [default = false]; - */ - deprecated: boolean; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.ServiceOptions - */ -export type ServiceOptionsJson = { - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 34; - */ - features?: FeatureSetJson; - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - * - * @generated from field: optional bool deprecated = 33 [default = false]; - */ - deprecated?: boolean; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.ServiceOptions. - * Use `create(ServiceOptionsSchema)` to create a new message. - */ -export declare const ServiceOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.MethodOptions - */ -export type MethodOptions = Message<"google.protobuf.MethodOptions"> & { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - * - * @generated from field: optional bool deprecated = 33 [default = false]; - */ - deprecated: boolean; - /** - * @generated from field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; - */ - idempotencyLevel: MethodOptions_IdempotencyLevel; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 35; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.MethodOptions - */ -export type MethodOptionsJson = { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - * - * @generated from field: optional bool deprecated = 33 [default = false]; - */ - deprecated?: boolean; - /** - * @generated from field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; - */ - idempotencyLevel?: MethodOptions_IdempotencyLevelJson; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 35; - */ - features?: FeatureSetJson; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.MethodOptions. - * Use `create(MethodOptionsSchema)` to create a new message. - */ -export declare const MethodOptionsSchema: GenMessage; -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - * - * @generated from enum google.protobuf.MethodOptions.IdempotencyLevel - */ -export declare enum MethodOptions_IdempotencyLevel { - /** - * @generated from enum value: IDEMPOTENCY_UNKNOWN = 0; - */ - IDEMPOTENCY_UNKNOWN = 0, - /** - * implies idempotent - * - * @generated from enum value: NO_SIDE_EFFECTS = 1; - */ - NO_SIDE_EFFECTS = 1, - /** - * idempotent, but may have side effects - * - * @generated from enum value: IDEMPOTENT = 2; - */ - IDEMPOTENT = 2 -} -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - * - * @generated from enum google.protobuf.MethodOptions.IdempotencyLevel - */ -export type MethodOptions_IdempotencyLevelJson = "IDEMPOTENCY_UNKNOWN" | "NO_SIDE_EFFECTS" | "IDEMPOTENT"; -/** - * Describes the enum google.protobuf.MethodOptions.IdempotencyLevel. - */ -export declare const MethodOptions_IdempotencyLevelSchema: GenEnum; -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - * - * @generated from message google.protobuf.UninterpretedOption - */ -export type UninterpretedOption = Message<"google.protobuf.UninterpretedOption"> & { - /** - * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2; - */ - name: UninterpretedOption_NamePart[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - * - * @generated from field: optional string identifier_value = 3; - */ - identifierValue: string; - /** - * @generated from field: optional uint64 positive_int_value = 4; - */ - positiveIntValue: bigint; - /** - * @generated from field: optional int64 negative_int_value = 5; - */ - negativeIntValue: bigint; - /** - * @generated from field: optional double double_value = 6; - */ - doubleValue: number; - /** - * @generated from field: optional bytes string_value = 7; - */ - stringValue: Uint8Array; - /** - * @generated from field: optional string aggregate_value = 8; - */ - aggregateValue: string; -}; -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - * - * @generated from message google.protobuf.UninterpretedOption - */ -export type UninterpretedOptionJson = { - /** - * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2; - */ - name?: UninterpretedOption_NamePartJson[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - * - * @generated from field: optional string identifier_value = 3; - */ - identifierValue?: string; - /** - * @generated from field: optional uint64 positive_int_value = 4; - */ - positiveIntValue?: string; - /** - * @generated from field: optional int64 negative_int_value = 5; - */ - negativeIntValue?: string; - /** - * @generated from field: optional double double_value = 6; - */ - doubleValue?: number | "NaN" | "Infinity" | "-Infinity"; - /** - * @generated from field: optional bytes string_value = 7; - */ - stringValue?: string; - /** - * @generated from field: optional string aggregate_value = 8; - */ - aggregateValue?: string; -}; -/** - * Describes the message google.protobuf.UninterpretedOption. - * Use `create(UninterpretedOptionSchema)` to create a new message. - */ -export declare const UninterpretedOptionSchema: GenMessage; -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents - * "foo.(bar.baz).moo". - * - * @generated from message google.protobuf.UninterpretedOption.NamePart - */ -export type UninterpretedOption_NamePart = Message<"google.protobuf.UninterpretedOption.NamePart"> & { - /** - * @generated from field: required string name_part = 1; - */ - namePart: string; - /** - * @generated from field: required bool is_extension = 2; - */ - isExtension: boolean; -}; -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents - * "foo.(bar.baz).moo". - * - * @generated from message google.protobuf.UninterpretedOption.NamePart - */ -export type UninterpretedOption_NamePartJson = { - /** - * @generated from field: required string name_part = 1; - */ - namePart?: string; - /** - * @generated from field: required bool is_extension = 2; - */ - isExtension?: boolean; -}; -/** - * Describes the message google.protobuf.UninterpretedOption.NamePart. - * Use `create(UninterpretedOption_NamePartSchema)` to create a new message. - */ -export declare const UninterpretedOption_NamePartSchema: GenMessage; -/** - * TODO Enums in C++ gencode (and potentially other languages) are - * not well scoped. This means that each of the feature enums below can clash - * with each other. The short names we've chosen maximize call-site - * readability, but leave us very open to this scenario. A future feature will - * be designed and implemented to handle this, hopefully before we ever hit a - * conflict here. - * - * @generated from message google.protobuf.FeatureSet - */ -export type FeatureSet = Message<"google.protobuf.FeatureSet"> & { - /** - * @generated from field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; - */ - fieldPresence: FeatureSet_FieldPresence; - /** - * @generated from field: optional google.protobuf.FeatureSet.EnumType enum_type = 2; - */ - enumType: FeatureSet_EnumType; - /** - * @generated from field: optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; - */ - repeatedFieldEncoding: FeatureSet_RepeatedFieldEncoding; - /** - * @generated from field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; - */ - utf8Validation: FeatureSet_Utf8Validation; - /** - * @generated from field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; - */ - messageEncoding: FeatureSet_MessageEncoding; - /** - * @generated from field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6; - */ - jsonFormat: FeatureSet_JsonFormat; - /** - * @generated from field: optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7; - */ - enforceNamingStyle: FeatureSet_EnforceNamingStyle; - /** - * @generated from field: optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8; - */ - defaultSymbolVisibility: FeatureSet_VisibilityFeature_DefaultSymbolVisibility; -}; -/** - * TODO Enums in C++ gencode (and potentially other languages) are - * not well scoped. This means that each of the feature enums below can clash - * with each other. The short names we've chosen maximize call-site - * readability, but leave us very open to this scenario. A future feature will - * be designed and implemented to handle this, hopefully before we ever hit a - * conflict here. - * - * @generated from message google.protobuf.FeatureSet - */ -export type FeatureSetJson = { - /** - * @generated from field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; - */ - fieldPresence?: FeatureSet_FieldPresenceJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.EnumType enum_type = 2; - */ - enumType?: FeatureSet_EnumTypeJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; - */ - repeatedFieldEncoding?: FeatureSet_RepeatedFieldEncodingJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; - */ - utf8Validation?: FeatureSet_Utf8ValidationJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; - */ - messageEncoding?: FeatureSet_MessageEncodingJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6; - */ - jsonFormat?: FeatureSet_JsonFormatJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7; - */ - enforceNamingStyle?: FeatureSet_EnforceNamingStyleJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8; - */ - defaultSymbolVisibility?: FeatureSet_VisibilityFeature_DefaultSymbolVisibilityJson; -}; -/** - * Describes the message google.protobuf.FeatureSet. - * Use `create(FeatureSetSchema)` to create a new message. - */ -export declare const FeatureSetSchema: GenMessage; -/** - * @generated from message google.protobuf.FeatureSet.VisibilityFeature - */ -export type FeatureSet_VisibilityFeature = Message<"google.protobuf.FeatureSet.VisibilityFeature"> & {}; -/** - * @generated from message google.protobuf.FeatureSet.VisibilityFeature - */ -export type FeatureSet_VisibilityFeatureJson = {}; -/** - * Describes the message google.protobuf.FeatureSet.VisibilityFeature. - * Use `create(FeatureSet_VisibilityFeatureSchema)` to create a new message. - */ -export declare const FeatureSet_VisibilityFeatureSchema: GenMessage; -/** - * @generated from enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility - */ -export declare enum FeatureSet_VisibilityFeature_DefaultSymbolVisibility { - /** - * @generated from enum value: DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0; - */ - DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0, - /** - * Default pre-EDITION_2024, all UNSET visibility are export. - * - * @generated from enum value: EXPORT_ALL = 1; - */ - EXPORT_ALL = 1, - /** - * All top-level symbols default to export, nested default to local. - * - * @generated from enum value: EXPORT_TOP_LEVEL = 2; - */ - EXPORT_TOP_LEVEL = 2, - /** - * All symbols default to local. - * - * @generated from enum value: LOCAL_ALL = 3; - */ - LOCAL_ALL = 3, - /** - * All symbols local by default. Nested types cannot be exported. - * With special case caveat for message { enum {} reserved 1 to max; } - * This is the recommended setting for new protos. - * - * @generated from enum value: STRICT = 4; - */ - STRICT = 4 -} -/** - * @generated from enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility - */ -export type FeatureSet_VisibilityFeature_DefaultSymbolVisibilityJson = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" | "EXPORT_ALL" | "EXPORT_TOP_LEVEL" | "LOCAL_ALL" | "STRICT"; -/** - * Describes the enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility. - */ -export declare const FeatureSet_VisibilityFeature_DefaultSymbolVisibilitySchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.FieldPresence - */ -export declare enum FeatureSet_FieldPresence { - /** - * @generated from enum value: FIELD_PRESENCE_UNKNOWN = 0; - */ - FIELD_PRESENCE_UNKNOWN = 0, - /** - * @generated from enum value: EXPLICIT = 1; - */ - EXPLICIT = 1, - /** - * @generated from enum value: IMPLICIT = 2; - */ - IMPLICIT = 2, - /** - * @generated from enum value: LEGACY_REQUIRED = 3; - */ - LEGACY_REQUIRED = 3 -} -/** - * @generated from enum google.protobuf.FeatureSet.FieldPresence - */ -export type FeatureSet_FieldPresenceJson = "FIELD_PRESENCE_UNKNOWN" | "EXPLICIT" | "IMPLICIT" | "LEGACY_REQUIRED"; -/** - * Describes the enum google.protobuf.FeatureSet.FieldPresence. - */ -export declare const FeatureSet_FieldPresenceSchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.EnumType - */ -export declare enum FeatureSet_EnumType { - /** - * @generated from enum value: ENUM_TYPE_UNKNOWN = 0; - */ - ENUM_TYPE_UNKNOWN = 0, - /** - * @generated from enum value: OPEN = 1; - */ - OPEN = 1, - /** - * @generated from enum value: CLOSED = 2; - */ - CLOSED = 2 -} -/** - * @generated from enum google.protobuf.FeatureSet.EnumType - */ -export type FeatureSet_EnumTypeJson = "ENUM_TYPE_UNKNOWN" | "OPEN" | "CLOSED"; -/** - * Describes the enum google.protobuf.FeatureSet.EnumType. - */ -export declare const FeatureSet_EnumTypeSchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.RepeatedFieldEncoding - */ -export declare enum FeatureSet_RepeatedFieldEncoding { - /** - * @generated from enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0; - */ - REPEATED_FIELD_ENCODING_UNKNOWN = 0, - /** - * @generated from enum value: PACKED = 1; - */ - PACKED = 1, - /** - * @generated from enum value: EXPANDED = 2; - */ - EXPANDED = 2 -} -/** - * @generated from enum google.protobuf.FeatureSet.RepeatedFieldEncoding - */ -export type FeatureSet_RepeatedFieldEncodingJson = "REPEATED_FIELD_ENCODING_UNKNOWN" | "PACKED" | "EXPANDED"; -/** - * Describes the enum google.protobuf.FeatureSet.RepeatedFieldEncoding. - */ -export declare const FeatureSet_RepeatedFieldEncodingSchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.Utf8Validation - */ -export declare enum FeatureSet_Utf8Validation { - /** - * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0; - */ - UTF8_VALIDATION_UNKNOWN = 0, - /** - * @generated from enum value: VERIFY = 2; - */ - VERIFY = 2, - /** - * @generated from enum value: NONE = 3; - */ - NONE = 3 -} -/** - * @generated from enum google.protobuf.FeatureSet.Utf8Validation - */ -export type FeatureSet_Utf8ValidationJson = "UTF8_VALIDATION_UNKNOWN" | "VERIFY" | "NONE"; -/** - * Describes the enum google.protobuf.FeatureSet.Utf8Validation. - */ -export declare const FeatureSet_Utf8ValidationSchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.MessageEncoding - */ -export declare enum FeatureSet_MessageEncoding { - /** - * @generated from enum value: MESSAGE_ENCODING_UNKNOWN = 0; - */ - MESSAGE_ENCODING_UNKNOWN = 0, - /** - * @generated from enum value: LENGTH_PREFIXED = 1; - */ - LENGTH_PREFIXED = 1, - /** - * @generated from enum value: DELIMITED = 2; - */ - DELIMITED = 2 -} -/** - * @generated from enum google.protobuf.FeatureSet.MessageEncoding - */ -export type FeatureSet_MessageEncodingJson = "MESSAGE_ENCODING_UNKNOWN" | "LENGTH_PREFIXED" | "DELIMITED"; -/** - * Describes the enum google.protobuf.FeatureSet.MessageEncoding. - */ -export declare const FeatureSet_MessageEncodingSchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.JsonFormat - */ -export declare enum FeatureSet_JsonFormat { - /** - * @generated from enum value: JSON_FORMAT_UNKNOWN = 0; - */ - JSON_FORMAT_UNKNOWN = 0, - /** - * @generated from enum value: ALLOW = 1; - */ - ALLOW = 1, - /** - * @generated from enum value: LEGACY_BEST_EFFORT = 2; - */ - LEGACY_BEST_EFFORT = 2 -} -/** - * @generated from enum google.protobuf.FeatureSet.JsonFormat - */ -export type FeatureSet_JsonFormatJson = "JSON_FORMAT_UNKNOWN" | "ALLOW" | "LEGACY_BEST_EFFORT"; -/** - * Describes the enum google.protobuf.FeatureSet.JsonFormat. - */ -export declare const FeatureSet_JsonFormatSchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.EnforceNamingStyle - */ -export declare enum FeatureSet_EnforceNamingStyle { - /** - * @generated from enum value: ENFORCE_NAMING_STYLE_UNKNOWN = 0; - */ - ENFORCE_NAMING_STYLE_UNKNOWN = 0, - /** - * @generated from enum value: STYLE2024 = 1; - */ - STYLE2024 = 1, - /** - * @generated from enum value: STYLE_LEGACY = 2; - */ - STYLE_LEGACY = 2 -} -/** - * @generated from enum google.protobuf.FeatureSet.EnforceNamingStyle - */ -export type FeatureSet_EnforceNamingStyleJson = "ENFORCE_NAMING_STYLE_UNKNOWN" | "STYLE2024" | "STYLE_LEGACY"; -/** - * Describes the enum google.protobuf.FeatureSet.EnforceNamingStyle. - */ -export declare const FeatureSet_EnforceNamingStyleSchema: GenEnum; -/** - * A compiled specification for the defaults of a set of features. These - * messages are generated from FeatureSet extensions and can be used to seed - * feature resolution. The resolution with this object becomes a simple search - * for the closest matching edition, followed by proto merges. - * - * @generated from message google.protobuf.FeatureSetDefaults - */ -export type FeatureSetDefaults = Message<"google.protobuf.FeatureSetDefaults"> & { - /** - * @generated from field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; - */ - defaults: FeatureSetDefaults_FeatureSetEditionDefault[]; - /** - * The minimum supported edition (inclusive) when this was constructed. - * Editions before this will not have defaults. - * - * @generated from field: optional google.protobuf.Edition minimum_edition = 4; - */ - minimumEdition: Edition; - /** - * The maximum known edition (inclusive) when this was constructed. Editions - * after this will not have reliable defaults. - * - * @generated from field: optional google.protobuf.Edition maximum_edition = 5; - */ - maximumEdition: Edition; -}; -/** - * A compiled specification for the defaults of a set of features. These - * messages are generated from FeatureSet extensions and can be used to seed - * feature resolution. The resolution with this object becomes a simple search - * for the closest matching edition, followed by proto merges. - * - * @generated from message google.protobuf.FeatureSetDefaults - */ -export type FeatureSetDefaultsJson = { - /** - * @generated from field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; - */ - defaults?: FeatureSetDefaults_FeatureSetEditionDefaultJson[]; - /** - * The minimum supported edition (inclusive) when this was constructed. - * Editions before this will not have defaults. - * - * @generated from field: optional google.protobuf.Edition minimum_edition = 4; - */ - minimumEdition?: EditionJson; - /** - * The maximum known edition (inclusive) when this was constructed. Editions - * after this will not have reliable defaults. - * - * @generated from field: optional google.protobuf.Edition maximum_edition = 5; - */ - maximumEdition?: EditionJson; -}; -/** - * Describes the message google.protobuf.FeatureSetDefaults. - * Use `create(FeatureSetDefaultsSchema)` to create a new message. - */ -export declare const FeatureSetDefaultsSchema: GenMessage; -/** - * A map from every known edition with a unique set of defaults to its - * defaults. Not all editions may be contained here. For a given edition, - * the defaults at the closest matching edition ordered at or before it should - * be used. This field must be in strict ascending order by edition. - * - * @generated from message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - */ -export type FeatureSetDefaults_FeatureSetEditionDefault = Message<"google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"> & { - /** - * @generated from field: optional google.protobuf.Edition edition = 3; - */ - edition: Edition; - /** - * Defaults of features that can be overridden in this edition. - * - * @generated from field: optional google.protobuf.FeatureSet overridable_features = 4; - */ - overridableFeatures?: FeatureSet; - /** - * Defaults of features that can't be overridden in this edition. - * - * @generated from field: optional google.protobuf.FeatureSet fixed_features = 5; - */ - fixedFeatures?: FeatureSet; -}; -/** - * A map from every known edition with a unique set of defaults to its - * defaults. Not all editions may be contained here. For a given edition, - * the defaults at the closest matching edition ordered at or before it should - * be used. This field must be in strict ascending order by edition. - * - * @generated from message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - */ -export type FeatureSetDefaults_FeatureSetEditionDefaultJson = { - /** - * @generated from field: optional google.protobuf.Edition edition = 3; - */ - edition?: EditionJson; - /** - * Defaults of features that can be overridden in this edition. - * - * @generated from field: optional google.protobuf.FeatureSet overridable_features = 4; - */ - overridableFeatures?: FeatureSetJson; - /** - * Defaults of features that can't be overridden in this edition. - * - * @generated from field: optional google.protobuf.FeatureSet fixed_features = 5; - */ - fixedFeatures?: FeatureSetJson; -}; -/** - * Describes the message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault. - * Use `create(FeatureSetDefaults_FeatureSetEditionDefaultSchema)` to create a new message. - */ -export declare const FeatureSetDefaults_FeatureSetEditionDefaultSchema: GenMessage; -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - * - * @generated from message google.protobuf.SourceCodeInfo - */ -export type SourceCodeInfo = Message<"google.protobuf.SourceCodeInfo"> & { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - * - * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1; - */ - location: SourceCodeInfo_Location[]; -}; -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - * - * @generated from message google.protobuf.SourceCodeInfo - */ -export type SourceCodeInfoJson = { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - * - * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1; - */ - location?: SourceCodeInfo_LocationJson[]; -}; -/** - * Describes the message google.protobuf.SourceCodeInfo. - * Use `create(SourceCodeInfoSchema)` to create a new message. - */ -export declare const SourceCodeInfoSchema: GenMessage; -/** - * @generated from message google.protobuf.SourceCodeInfo.Location - */ -export type SourceCodeInfo_Location = Message<"google.protobuf.SourceCodeInfo.Location"> & { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition appears. - * For example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - * - * @generated from field: repeated int32 path = 1 [packed = true]; - */ - path: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - * - * @generated from field: repeated int32 span = 2 [packed = true]; - */ - span: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - * - * @generated from field: optional string leading_comments = 3; - */ - leadingComments: string; - /** - * @generated from field: optional string trailing_comments = 4; - */ - trailingComments: string; - /** - * @generated from field: repeated string leading_detached_comments = 6; - */ - leadingDetachedComments: string[]; -}; -/** - * @generated from message google.protobuf.SourceCodeInfo.Location - */ -export type SourceCodeInfo_LocationJson = { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition appears. - * For example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - * - * @generated from field: repeated int32 path = 1 [packed = true]; - */ - path?: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - * - * @generated from field: repeated int32 span = 2 [packed = true]; - */ - span?: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - * - * @generated from field: optional string leading_comments = 3; - */ - leadingComments?: string; - /** - * @generated from field: optional string trailing_comments = 4; - */ - trailingComments?: string; - /** - * @generated from field: repeated string leading_detached_comments = 6; - */ - leadingDetachedComments?: string[]; -}; -/** - * Describes the message google.protobuf.SourceCodeInfo.Location. - * Use `create(SourceCodeInfo_LocationSchema)` to create a new message. - */ -export declare const SourceCodeInfo_LocationSchema: GenMessage; -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - * - * @generated from message google.protobuf.GeneratedCodeInfo - */ -export type GeneratedCodeInfo = Message<"google.protobuf.GeneratedCodeInfo"> & { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - * - * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; - */ - annotation: GeneratedCodeInfo_Annotation[]; -}; -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - * - * @generated from message google.protobuf.GeneratedCodeInfo - */ -export type GeneratedCodeInfoJson = { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - * - * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; - */ - annotation?: GeneratedCodeInfo_AnnotationJson[]; -}; -/** - * Describes the message google.protobuf.GeneratedCodeInfo. - * Use `create(GeneratedCodeInfoSchema)` to create a new message. - */ -export declare const GeneratedCodeInfoSchema: GenMessage; -/** - * @generated from message google.protobuf.GeneratedCodeInfo.Annotation - */ -export type GeneratedCodeInfo_Annotation = Message<"google.protobuf.GeneratedCodeInfo.Annotation"> & { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - * - * @generated from field: repeated int32 path = 1 [packed = true]; - */ - path: number[]; - /** - * Identifies the filesystem path to the original source .proto. - * - * @generated from field: optional string source_file = 2; - */ - sourceFile: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - * - * @generated from field: optional int32 begin = 3; - */ - begin: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - * - * @generated from field: optional int32 end = 4; - */ - end: number; - /** - * @generated from field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; - */ - semantic: GeneratedCodeInfo_Annotation_Semantic; -}; -/** - * @generated from message google.protobuf.GeneratedCodeInfo.Annotation - */ -export type GeneratedCodeInfo_AnnotationJson = { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - * - * @generated from field: repeated int32 path = 1 [packed = true]; - */ - path?: number[]; - /** - * Identifies the filesystem path to the original source .proto. - * - * @generated from field: optional string source_file = 2; - */ - sourceFile?: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - * - * @generated from field: optional int32 begin = 3; - */ - begin?: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - * - * @generated from field: optional int32 end = 4; - */ - end?: number; - /** - * @generated from field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; - */ - semantic?: GeneratedCodeInfo_Annotation_SemanticJson; -}; -/** - * Describes the message google.protobuf.GeneratedCodeInfo.Annotation. - * Use `create(GeneratedCodeInfo_AnnotationSchema)` to create a new message. - */ -export declare const GeneratedCodeInfo_AnnotationSchema: GenMessage; -/** - * Represents the identified object's effect on the element in the original - * .proto file. - * - * @generated from enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic - */ -export declare enum GeneratedCodeInfo_Annotation_Semantic { - /** - * There is no effect or the effect is indescribable. - * - * @generated from enum value: NONE = 0; - */ - NONE = 0, - /** - * The element is set or otherwise mutated. - * - * @generated from enum value: SET = 1; - */ - SET = 1, - /** - * An alias to the element is returned. - * - * @generated from enum value: ALIAS = 2; - */ - ALIAS = 2 -} -/** - * Represents the identified object's effect on the element in the original - * .proto file. - * - * @generated from enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic - */ -export type GeneratedCodeInfo_Annotation_SemanticJson = "NONE" | "SET" | "ALIAS"; -/** - * Describes the enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic. - */ -export declare const GeneratedCodeInfo_Annotation_SemanticSchema: GenEnum; -/** - * The full set of known editions. - * - * @generated from enum google.protobuf.Edition - */ -export declare enum Edition { - /** - * A placeholder for an unknown edition value. - * - * @generated from enum value: EDITION_UNKNOWN = 0; - */ - EDITION_UNKNOWN = 0, - /** - * A placeholder edition for specifying default behaviors *before* a feature - * was first introduced. This is effectively an "infinite past". - * - * @generated from enum value: EDITION_LEGACY = 900; - */ - EDITION_LEGACY = 900, - /** - * Legacy syntax "editions". These pre-date editions, but behave much like - * distinct editions. These can't be used to specify the edition of proto - * files, but feature definitions must supply proto2/proto3 defaults for - * backwards compatibility. - * - * @generated from enum value: EDITION_PROTO2 = 998; - */ - EDITION_PROTO2 = 998, - /** - * @generated from enum value: EDITION_PROTO3 = 999; - */ - EDITION_PROTO3 = 999, - /** - * Editions that have been released. The specific values are arbitrary and - * should not be depended on, but they will always be time-ordered for easy - * comparison. - * - * @generated from enum value: EDITION_2023 = 1000; - */ - EDITION_2023 = 1000, - /** - * @generated from enum value: EDITION_2024 = 1001; - */ - EDITION_2024 = 1001, - /** - * Placeholder editions for testing feature resolution. These should not be - * used or relied on outside of tests. - * - * @generated from enum value: EDITION_1_TEST_ONLY = 1; - */ - EDITION_1_TEST_ONLY = 1, - /** - * @generated from enum value: EDITION_2_TEST_ONLY = 2; - */ - EDITION_2_TEST_ONLY = 2, - /** - * @generated from enum value: EDITION_99997_TEST_ONLY = 99997; - */ - EDITION_99997_TEST_ONLY = 99997, - /** - * @generated from enum value: EDITION_99998_TEST_ONLY = 99998; - */ - EDITION_99998_TEST_ONLY = 99998, - /** - * @generated from enum value: EDITION_99999_TEST_ONLY = 99999; - */ - EDITION_99999_TEST_ONLY = 99999, - /** - * Placeholder for specifying unbounded edition support. This should only - * ever be used by plugins that can expect to never require any changes to - * support a new edition. - * - * @generated from enum value: EDITION_MAX = 2147483647; - */ - EDITION_MAX = 2147483647 -} -/** - * The full set of known editions. - * - * @generated from enum google.protobuf.Edition - */ -export type EditionJson = "EDITION_UNKNOWN" | "EDITION_LEGACY" | "EDITION_PROTO2" | "EDITION_PROTO3" | "EDITION_2023" | "EDITION_2024" | "EDITION_1_TEST_ONLY" | "EDITION_2_TEST_ONLY" | "EDITION_99997_TEST_ONLY" | "EDITION_99998_TEST_ONLY" | "EDITION_99999_TEST_ONLY" | "EDITION_MAX"; -/** - * Describes the enum google.protobuf.Edition. - */ -export declare const EditionSchema: GenEnum; -/** - * Describes the 'visibility' of a symbol with respect to the proto import - * system. Symbols can only be imported when the visibility rules do not prevent - * it (ex: local symbols cannot be imported). Visibility modifiers can only set - * on `message` and `enum` as they are the only types available to be referenced - * from other files. - * - * @generated from enum google.protobuf.SymbolVisibility - */ -export declare enum SymbolVisibility { - /** - * @generated from enum value: VISIBILITY_UNSET = 0; - */ - VISIBILITY_UNSET = 0, - /** - * @generated from enum value: VISIBILITY_LOCAL = 1; - */ - VISIBILITY_LOCAL = 1, - /** - * @generated from enum value: VISIBILITY_EXPORT = 2; - */ - VISIBILITY_EXPORT = 2 -} -/** - * Describes the 'visibility' of a symbol with respect to the proto import - * system. Symbols can only be imported when the visibility rules do not prevent - * it (ex: local symbols cannot be imported). Visibility modifiers can only set - * on `message` and `enum` as they are the only types available to be referenced - * from other files. - * - * @generated from enum google.protobuf.SymbolVisibility - */ -export type SymbolVisibilityJson = "VISIBILITY_UNSET" | "VISIBILITY_LOCAL" | "VISIBILITY_EXPORT"; -/** - * Describes the enum google.protobuf.SymbolVisibility. - */ -export declare const SymbolVisibilitySchema: GenEnum; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js deleted file mode 100644 index f92b699..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +++ /dev/null @@ -1,886 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FeatureSet_FieldPresence = exports.FeatureSet_VisibilityFeature_DefaultSymbolVisibilitySchema = exports.FeatureSet_VisibilityFeature_DefaultSymbolVisibility = exports.FeatureSet_VisibilityFeatureSchema = exports.FeatureSetSchema = exports.UninterpretedOption_NamePartSchema = exports.UninterpretedOptionSchema = exports.MethodOptions_IdempotencyLevelSchema = exports.MethodOptions_IdempotencyLevel = exports.MethodOptionsSchema = exports.ServiceOptionsSchema = exports.EnumValueOptionsSchema = exports.EnumOptionsSchema = exports.OneofOptionsSchema = exports.FieldOptions_OptionTargetTypeSchema = exports.FieldOptions_OptionTargetType = exports.FieldOptions_OptionRetentionSchema = exports.FieldOptions_OptionRetention = exports.FieldOptions_JSTypeSchema = exports.FieldOptions_JSType = exports.FieldOptions_CTypeSchema = exports.FieldOptions_CType = exports.FieldOptions_FeatureSupportSchema = exports.FieldOptions_EditionDefaultSchema = exports.FieldOptionsSchema = exports.MessageOptionsSchema = exports.FileOptions_OptimizeModeSchema = exports.FileOptions_OptimizeMode = exports.FileOptionsSchema = exports.MethodDescriptorProtoSchema = exports.ServiceDescriptorProtoSchema = exports.EnumValueDescriptorProtoSchema = exports.EnumDescriptorProto_EnumReservedRangeSchema = exports.EnumDescriptorProtoSchema = exports.OneofDescriptorProtoSchema = exports.FieldDescriptorProto_LabelSchema = exports.FieldDescriptorProto_Label = exports.FieldDescriptorProto_TypeSchema = exports.FieldDescriptorProto_Type = exports.FieldDescriptorProtoSchema = exports.ExtensionRangeOptions_VerificationStateSchema = exports.ExtensionRangeOptions_VerificationState = exports.ExtensionRangeOptions_DeclarationSchema = exports.ExtensionRangeOptionsSchema = exports.DescriptorProto_ReservedRangeSchema = exports.DescriptorProto_ExtensionRangeSchema = exports.DescriptorProtoSchema = exports.FileDescriptorProtoSchema = exports.FileDescriptorSetSchema = exports.file_google_protobuf_descriptor = void 0; -exports.SymbolVisibilitySchema = exports.SymbolVisibility = exports.EditionSchema = exports.Edition = exports.GeneratedCodeInfo_Annotation_SemanticSchema = exports.GeneratedCodeInfo_Annotation_Semantic = exports.GeneratedCodeInfo_AnnotationSchema = exports.GeneratedCodeInfoSchema = exports.SourceCodeInfo_LocationSchema = exports.SourceCodeInfoSchema = exports.FeatureSetDefaults_FeatureSetEditionDefaultSchema = exports.FeatureSetDefaultsSchema = exports.FeatureSet_EnforceNamingStyleSchema = exports.FeatureSet_EnforceNamingStyle = exports.FeatureSet_JsonFormatSchema = exports.FeatureSet_JsonFormat = exports.FeatureSet_MessageEncodingSchema = exports.FeatureSet_MessageEncoding = exports.FeatureSet_Utf8ValidationSchema = exports.FeatureSet_Utf8Validation = exports.FeatureSet_RepeatedFieldEncodingSchema = exports.FeatureSet_RepeatedFieldEncoding = exports.FeatureSet_EnumTypeSchema = exports.FeatureSet_EnumType = exports.FeatureSet_FieldPresenceSchema = void 0; -const boot_js_1 = require("../../../../codegenv2/boot.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -const enum_js_1 = require("../../../../codegenv2/enum.js"); -/** - * Describes the file google/protobuf/descriptor.proto. - */ -exports.file_google_protobuf_descriptor = (0, boot_js_1.boot)({ "name": "google/protobuf/descriptor.proto", "package": "google.protobuf", "messageType": [{ "name": "FileDescriptorSet", "field": [{ "name": "file", "number": 1, "type": 11, "label": 3, "typeName": ".google.protobuf.FileDescriptorProto" }], "extensionRange": [{ "start": 536000000, "end": 536000001 }] }, { "name": "FileDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "package", "number": 2, "type": 9, "label": 1 }, { "name": "dependency", "number": 3, "type": 9, "label": 3 }, { "name": "public_dependency", "number": 10, "type": 5, "label": 3 }, { "name": "weak_dependency", "number": 11, "type": 5, "label": 3 }, { "name": "option_dependency", "number": 15, "type": 9, "label": 3 }, { "name": "message_type", "number": 4, "type": 11, "label": 3, "typeName": ".google.protobuf.DescriptorProto" }, { "name": "enum_type", "number": 5, "type": 11, "label": 3, "typeName": ".google.protobuf.EnumDescriptorProto" }, { "name": "service", "number": 6, "type": 11, "label": 3, "typeName": ".google.protobuf.ServiceDescriptorProto" }, { "name": "extension", "number": 7, "type": 11, "label": 3, "typeName": ".google.protobuf.FieldDescriptorProto" }, { "name": "options", "number": 8, "type": 11, "label": 1, "typeName": ".google.protobuf.FileOptions" }, { "name": "source_code_info", "number": 9, "type": 11, "label": 1, "typeName": ".google.protobuf.SourceCodeInfo" }, { "name": "syntax", "number": 12, "type": 9, "label": 1 }, { "name": "edition", "number": 14, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }] }, { "name": "DescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "field", "number": 2, "type": 11, "label": 3, "typeName": ".google.protobuf.FieldDescriptorProto" }, { "name": "extension", "number": 6, "type": 11, "label": 3, "typeName": ".google.protobuf.FieldDescriptorProto" }, { "name": "nested_type", "number": 3, "type": 11, "label": 3, "typeName": ".google.protobuf.DescriptorProto" }, { "name": "enum_type", "number": 4, "type": 11, "label": 3, "typeName": ".google.protobuf.EnumDescriptorProto" }, { "name": "extension_range", "number": 5, "type": 11, "label": 3, "typeName": ".google.protobuf.DescriptorProto.ExtensionRange" }, { "name": "oneof_decl", "number": 8, "type": 11, "label": 3, "typeName": ".google.protobuf.OneofDescriptorProto" }, { "name": "options", "number": 7, "type": 11, "label": 1, "typeName": ".google.protobuf.MessageOptions" }, { "name": "reserved_range", "number": 9, "type": 11, "label": 3, "typeName": ".google.protobuf.DescriptorProto.ReservedRange" }, { "name": "reserved_name", "number": 10, "type": 9, "label": 3 }, { "name": "visibility", "number": 11, "type": 14, "label": 1, "typeName": ".google.protobuf.SymbolVisibility" }], "nestedType": [{ "name": "ExtensionRange", "field": [{ "name": "start", "number": 1, "type": 5, "label": 1 }, { "name": "end", "number": 2, "type": 5, "label": 1 }, { "name": "options", "number": 3, "type": 11, "label": 1, "typeName": ".google.protobuf.ExtensionRangeOptions" }] }, { "name": "ReservedRange", "field": [{ "name": "start", "number": 1, "type": 5, "label": 1 }, { "name": "end", "number": 2, "type": 5, "label": 1 }] }] }, { "name": "ExtensionRangeOptions", "field": [{ "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }, { "name": "declaration", "number": 2, "type": 11, "label": 3, "typeName": ".google.protobuf.ExtensionRangeOptions.Declaration", "options": { "retention": 2 } }, { "name": "features", "number": 50, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "verification", "number": 3, "type": 14, "label": 1, "typeName": ".google.protobuf.ExtensionRangeOptions.VerificationState", "defaultValue": "UNVERIFIED", "options": { "retention": 2 } }], "nestedType": [{ "name": "Declaration", "field": [{ "name": "number", "number": 1, "type": 5, "label": 1 }, { "name": "full_name", "number": 2, "type": 9, "label": 1 }, { "name": "type", "number": 3, "type": 9, "label": 1 }, { "name": "reserved", "number": 5, "type": 8, "label": 1 }, { "name": "repeated", "number": 6, "type": 8, "label": 1 }] }], "enumType": [{ "name": "VerificationState", "value": [{ "name": "DECLARATION", "number": 0 }, { "name": "UNVERIFIED", "number": 1 }] }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "FieldDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "number", "number": 3, "type": 5, "label": 1 }, { "name": "label", "number": 4, "type": 14, "label": 1, "typeName": ".google.protobuf.FieldDescriptorProto.Label" }, { "name": "type", "number": 5, "type": 14, "label": 1, "typeName": ".google.protobuf.FieldDescriptorProto.Type" }, { "name": "type_name", "number": 6, "type": 9, "label": 1 }, { "name": "extendee", "number": 2, "type": 9, "label": 1 }, { "name": "default_value", "number": 7, "type": 9, "label": 1 }, { "name": "oneof_index", "number": 9, "type": 5, "label": 1 }, { "name": "json_name", "number": 10, "type": 9, "label": 1 }, { "name": "options", "number": 8, "type": 11, "label": 1, "typeName": ".google.protobuf.FieldOptions" }, { "name": "proto3_optional", "number": 17, "type": 8, "label": 1 }], "enumType": [{ "name": "Type", "value": [{ "name": "TYPE_DOUBLE", "number": 1 }, { "name": "TYPE_FLOAT", "number": 2 }, { "name": "TYPE_INT64", "number": 3 }, { "name": "TYPE_UINT64", "number": 4 }, { "name": "TYPE_INT32", "number": 5 }, { "name": "TYPE_FIXED64", "number": 6 }, { "name": "TYPE_FIXED32", "number": 7 }, { "name": "TYPE_BOOL", "number": 8 }, { "name": "TYPE_STRING", "number": 9 }, { "name": "TYPE_GROUP", "number": 10 }, { "name": "TYPE_MESSAGE", "number": 11 }, { "name": "TYPE_BYTES", "number": 12 }, { "name": "TYPE_UINT32", "number": 13 }, { "name": "TYPE_ENUM", "number": 14 }, { "name": "TYPE_SFIXED32", "number": 15 }, { "name": "TYPE_SFIXED64", "number": 16 }, { "name": "TYPE_SINT32", "number": 17 }, { "name": "TYPE_SINT64", "number": 18 }] }, { "name": "Label", "value": [{ "name": "LABEL_OPTIONAL", "number": 1 }, { "name": "LABEL_REPEATED", "number": 3 }, { "name": "LABEL_REQUIRED", "number": 2 }] }] }, { "name": "OneofDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "options", "number": 2, "type": 11, "label": 1, "typeName": ".google.protobuf.OneofOptions" }] }, { "name": "EnumDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "value", "number": 2, "type": 11, "label": 3, "typeName": ".google.protobuf.EnumValueDescriptorProto" }, { "name": "options", "number": 3, "type": 11, "label": 1, "typeName": ".google.protobuf.EnumOptions" }, { "name": "reserved_range", "number": 4, "type": 11, "label": 3, "typeName": ".google.protobuf.EnumDescriptorProto.EnumReservedRange" }, { "name": "reserved_name", "number": 5, "type": 9, "label": 3 }, { "name": "visibility", "number": 6, "type": 14, "label": 1, "typeName": ".google.protobuf.SymbolVisibility" }], "nestedType": [{ "name": "EnumReservedRange", "field": [{ "name": "start", "number": 1, "type": 5, "label": 1 }, { "name": "end", "number": 2, "type": 5, "label": 1 }] }] }, { "name": "EnumValueDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "number", "number": 2, "type": 5, "label": 1 }, { "name": "options", "number": 3, "type": 11, "label": 1, "typeName": ".google.protobuf.EnumValueOptions" }] }, { "name": "ServiceDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "method", "number": 2, "type": 11, "label": 3, "typeName": ".google.protobuf.MethodDescriptorProto" }, { "name": "options", "number": 3, "type": 11, "label": 1, "typeName": ".google.protobuf.ServiceOptions" }] }, { "name": "MethodDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "input_type", "number": 2, "type": 9, "label": 1 }, { "name": "output_type", "number": 3, "type": 9, "label": 1 }, { "name": "options", "number": 4, "type": 11, "label": 1, "typeName": ".google.protobuf.MethodOptions" }, { "name": "client_streaming", "number": 5, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "server_streaming", "number": 6, "type": 8, "label": 1, "defaultValue": "false" }] }, { "name": "FileOptions", "field": [{ "name": "java_package", "number": 1, "type": 9, "label": 1 }, { "name": "java_outer_classname", "number": 8, "type": 9, "label": 1 }, { "name": "java_multiple_files", "number": 10, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "java_generate_equals_and_hash", "number": 20, "type": 8, "label": 1, "options": { "deprecated": true } }, { "name": "java_string_check_utf8", "number": 27, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "optimize_for", "number": 9, "type": 14, "label": 1, "typeName": ".google.protobuf.FileOptions.OptimizeMode", "defaultValue": "SPEED" }, { "name": "go_package", "number": 11, "type": 9, "label": 1 }, { "name": "cc_generic_services", "number": 16, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "java_generic_services", "number": 17, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "py_generic_services", "number": 18, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "deprecated", "number": 23, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "cc_enable_arenas", "number": 31, "type": 8, "label": 1, "defaultValue": "true" }, { "name": "objc_class_prefix", "number": 36, "type": 9, "label": 1 }, { "name": "csharp_namespace", "number": 37, "type": 9, "label": 1 }, { "name": "swift_prefix", "number": 39, "type": 9, "label": 1 }, { "name": "php_class_prefix", "number": 40, "type": 9, "label": 1 }, { "name": "php_namespace", "number": 41, "type": 9, "label": 1 }, { "name": "php_metadata_namespace", "number": 44, "type": 9, "label": 1 }, { "name": "ruby_package", "number": 45, "type": 9, "label": 1 }, { "name": "features", "number": 50, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "enumType": [{ "name": "OptimizeMode", "value": [{ "name": "SPEED", "number": 1 }, { "name": "CODE_SIZE", "number": 2 }, { "name": "LITE_RUNTIME", "number": 3 }] }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "MessageOptions", "field": [{ "name": "message_set_wire_format", "number": 1, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "no_standard_descriptor_accessor", "number": 2, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "deprecated", "number": 3, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "map_entry", "number": 7, "type": 8, "label": 1 }, { "name": "deprecated_legacy_json_field_conflicts", "number": 11, "type": 8, "label": 1, "options": { "deprecated": true } }, { "name": "features", "number": 12, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "FieldOptions", "field": [{ "name": "ctype", "number": 1, "type": 14, "label": 1, "typeName": ".google.protobuf.FieldOptions.CType", "defaultValue": "STRING" }, { "name": "packed", "number": 2, "type": 8, "label": 1 }, { "name": "jstype", "number": 6, "type": 14, "label": 1, "typeName": ".google.protobuf.FieldOptions.JSType", "defaultValue": "JS_NORMAL" }, { "name": "lazy", "number": 5, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "unverified_lazy", "number": 15, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "deprecated", "number": 3, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "weak", "number": 10, "type": 8, "label": 1, "defaultValue": "false", "options": { "deprecated": true } }, { "name": "debug_redact", "number": 16, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "retention", "number": 17, "type": 14, "label": 1, "typeName": ".google.protobuf.FieldOptions.OptionRetention" }, { "name": "targets", "number": 19, "type": 14, "label": 3, "typeName": ".google.protobuf.FieldOptions.OptionTargetType" }, { "name": "edition_defaults", "number": 20, "type": 11, "label": 3, "typeName": ".google.protobuf.FieldOptions.EditionDefault" }, { "name": "features", "number": 21, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "feature_support", "number": 22, "type": 11, "label": 1, "typeName": ".google.protobuf.FieldOptions.FeatureSupport" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "nestedType": [{ "name": "EditionDefault", "field": [{ "name": "edition", "number": 3, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }, { "name": "value", "number": 2, "type": 9, "label": 1 }] }, { "name": "FeatureSupport", "field": [{ "name": "edition_introduced", "number": 1, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }, { "name": "edition_deprecated", "number": 2, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }, { "name": "deprecation_warning", "number": 3, "type": 9, "label": 1 }, { "name": "edition_removed", "number": 4, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }] }], "enumType": [{ "name": "CType", "value": [{ "name": "STRING", "number": 0 }, { "name": "CORD", "number": 1 }, { "name": "STRING_PIECE", "number": 2 }] }, { "name": "JSType", "value": [{ "name": "JS_NORMAL", "number": 0 }, { "name": "JS_STRING", "number": 1 }, { "name": "JS_NUMBER", "number": 2 }] }, { "name": "OptionRetention", "value": [{ "name": "RETENTION_UNKNOWN", "number": 0 }, { "name": "RETENTION_RUNTIME", "number": 1 }, { "name": "RETENTION_SOURCE", "number": 2 }] }, { "name": "OptionTargetType", "value": [{ "name": "TARGET_TYPE_UNKNOWN", "number": 0 }, { "name": "TARGET_TYPE_FILE", "number": 1 }, { "name": "TARGET_TYPE_EXTENSION_RANGE", "number": 2 }, { "name": "TARGET_TYPE_MESSAGE", "number": 3 }, { "name": "TARGET_TYPE_FIELD", "number": 4 }, { "name": "TARGET_TYPE_ONEOF", "number": 5 }, { "name": "TARGET_TYPE_ENUM", "number": 6 }, { "name": "TARGET_TYPE_ENUM_ENTRY", "number": 7 }, { "name": "TARGET_TYPE_SERVICE", "number": 8 }, { "name": "TARGET_TYPE_METHOD", "number": 9 }] }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "OneofOptions", "field": [{ "name": "features", "number": 1, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "EnumOptions", "field": [{ "name": "allow_alias", "number": 2, "type": 8, "label": 1 }, { "name": "deprecated", "number": 3, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "deprecated_legacy_json_field_conflicts", "number": 6, "type": 8, "label": 1, "options": { "deprecated": true } }, { "name": "features", "number": 7, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "EnumValueOptions", "field": [{ "name": "deprecated", "number": 1, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "features", "number": 2, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "debug_redact", "number": 3, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "feature_support", "number": 4, "type": 11, "label": 1, "typeName": ".google.protobuf.FieldOptions.FeatureSupport" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "ServiceOptions", "field": [{ "name": "features", "number": 34, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "deprecated", "number": 33, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "MethodOptions", "field": [{ "name": "deprecated", "number": 33, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "idempotency_level", "number": 34, "type": 14, "label": 1, "typeName": ".google.protobuf.MethodOptions.IdempotencyLevel", "defaultValue": "IDEMPOTENCY_UNKNOWN" }, { "name": "features", "number": 35, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "enumType": [{ "name": "IdempotencyLevel", "value": [{ "name": "IDEMPOTENCY_UNKNOWN", "number": 0 }, { "name": "NO_SIDE_EFFECTS", "number": 1 }, { "name": "IDEMPOTENT", "number": 2 }] }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "UninterpretedOption", "field": [{ "name": "name", "number": 2, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption.NamePart" }, { "name": "identifier_value", "number": 3, "type": 9, "label": 1 }, { "name": "positive_int_value", "number": 4, "type": 4, "label": 1 }, { "name": "negative_int_value", "number": 5, "type": 3, "label": 1 }, { "name": "double_value", "number": 6, "type": 1, "label": 1 }, { "name": "string_value", "number": 7, "type": 12, "label": 1 }, { "name": "aggregate_value", "number": 8, "type": 9, "label": 1 }], "nestedType": [{ "name": "NamePart", "field": [{ "name": "name_part", "number": 1, "type": 9, "label": 2 }, { "name": "is_extension", "number": 2, "type": 8, "label": 2 }] }] }, { "name": "FeatureSet", "field": [{ "name": "field_presence", "number": 1, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.FieldPresence", "options": { "retention": 1, "targets": [4, 1], "editionDefaults": [{ "value": "EXPLICIT", "edition": 900 }, { "value": "IMPLICIT", "edition": 999 }, { "value": "EXPLICIT", "edition": 1000 }] } }, { "name": "enum_type", "number": 2, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.EnumType", "options": { "retention": 1, "targets": [6, 1], "editionDefaults": [{ "value": "CLOSED", "edition": 900 }, { "value": "OPEN", "edition": 999 }] } }, { "name": "repeated_field_encoding", "number": 3, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.RepeatedFieldEncoding", "options": { "retention": 1, "targets": [4, 1], "editionDefaults": [{ "value": "EXPANDED", "edition": 900 }, { "value": "PACKED", "edition": 999 }] } }, { "name": "utf8_validation", "number": 4, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.Utf8Validation", "options": { "retention": 1, "targets": [4, 1], "editionDefaults": [{ "value": "NONE", "edition": 900 }, { "value": "VERIFY", "edition": 999 }] } }, { "name": "message_encoding", "number": 5, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.MessageEncoding", "options": { "retention": 1, "targets": [4, 1], "editionDefaults": [{ "value": "LENGTH_PREFIXED", "edition": 900 }] } }, { "name": "json_format", "number": 6, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.JsonFormat", "options": { "retention": 1, "targets": [3, 6, 1], "editionDefaults": [{ "value": "LEGACY_BEST_EFFORT", "edition": 900 }, { "value": "ALLOW", "edition": 999 }] } }, { "name": "enforce_naming_style", "number": 7, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.EnforceNamingStyle", "options": { "retention": 2, "targets": [1, 2, 3, 4, 5, 6, 7, 8, 9], "editionDefaults": [{ "value": "STYLE_LEGACY", "edition": 900 }, { "value": "STYLE2024", "edition": 1001 }] } }, { "name": "default_symbol_visibility", "number": 8, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility", "options": { "retention": 2, "targets": [1], "editionDefaults": [{ "value": "EXPORT_ALL", "edition": 900 }, { "value": "EXPORT_TOP_LEVEL", "edition": 1001 }] } }], "nestedType": [{ "name": "VisibilityFeature", "enumType": [{ "name": "DefaultSymbolVisibility", "value": [{ "name": "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN", "number": 0 }, { "name": "EXPORT_ALL", "number": 1 }, { "name": "EXPORT_TOP_LEVEL", "number": 2 }, { "name": "LOCAL_ALL", "number": 3 }, { "name": "STRICT", "number": 4 }] }] }], "enumType": [{ "name": "FieldPresence", "value": [{ "name": "FIELD_PRESENCE_UNKNOWN", "number": 0 }, { "name": "EXPLICIT", "number": 1 }, { "name": "IMPLICIT", "number": 2 }, { "name": "LEGACY_REQUIRED", "number": 3 }] }, { "name": "EnumType", "value": [{ "name": "ENUM_TYPE_UNKNOWN", "number": 0 }, { "name": "OPEN", "number": 1 }, { "name": "CLOSED", "number": 2 }] }, { "name": "RepeatedFieldEncoding", "value": [{ "name": "REPEATED_FIELD_ENCODING_UNKNOWN", "number": 0 }, { "name": "PACKED", "number": 1 }, { "name": "EXPANDED", "number": 2 }] }, { "name": "Utf8Validation", "value": [{ "name": "UTF8_VALIDATION_UNKNOWN", "number": 0 }, { "name": "VERIFY", "number": 2 }, { "name": "NONE", "number": 3 }] }, { "name": "MessageEncoding", "value": [{ "name": "MESSAGE_ENCODING_UNKNOWN", "number": 0 }, { "name": "LENGTH_PREFIXED", "number": 1 }, { "name": "DELIMITED", "number": 2 }] }, { "name": "JsonFormat", "value": [{ "name": "JSON_FORMAT_UNKNOWN", "number": 0 }, { "name": "ALLOW", "number": 1 }, { "name": "LEGACY_BEST_EFFORT", "number": 2 }] }, { "name": "EnforceNamingStyle", "value": [{ "name": "ENFORCE_NAMING_STYLE_UNKNOWN", "number": 0 }, { "name": "STYLE2024", "number": 1 }, { "name": "STYLE_LEGACY", "number": 2 }] }], "extensionRange": [{ "start": 1000, "end": 9995 }, { "start": 9995, "end": 10000 }, { "start": 10000, "end": 10001 }] }, { "name": "FeatureSetDefaults", "field": [{ "name": "defaults", "number": 1, "type": 11, "label": 3, "typeName": ".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault" }, { "name": "minimum_edition", "number": 4, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }, { "name": "maximum_edition", "number": 5, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }], "nestedType": [{ "name": "FeatureSetEditionDefault", "field": [{ "name": "edition", "number": 3, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }, { "name": "overridable_features", "number": 4, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "fixed_features", "number": 5, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }] }] }, { "name": "SourceCodeInfo", "field": [{ "name": "location", "number": 1, "type": 11, "label": 3, "typeName": ".google.protobuf.SourceCodeInfo.Location" }], "nestedType": [{ "name": "Location", "field": [{ "name": "path", "number": 1, "type": 5, "label": 3, "options": { "packed": true } }, { "name": "span", "number": 2, "type": 5, "label": 3, "options": { "packed": true } }, { "name": "leading_comments", "number": 3, "type": 9, "label": 1 }, { "name": "trailing_comments", "number": 4, "type": 9, "label": 1 }, { "name": "leading_detached_comments", "number": 6, "type": 9, "label": 3 }] }], "extensionRange": [{ "start": 536000000, "end": 536000001 }] }, { "name": "GeneratedCodeInfo", "field": [{ "name": "annotation", "number": 1, "type": 11, "label": 3, "typeName": ".google.protobuf.GeneratedCodeInfo.Annotation" }], "nestedType": [{ "name": "Annotation", "field": [{ "name": "path", "number": 1, "type": 5, "label": 3, "options": { "packed": true } }, { "name": "source_file", "number": 2, "type": 9, "label": 1 }, { "name": "begin", "number": 3, "type": 5, "label": 1 }, { "name": "end", "number": 4, "type": 5, "label": 1 }, { "name": "semantic", "number": 5, "type": 14, "label": 1, "typeName": ".google.protobuf.GeneratedCodeInfo.Annotation.Semantic" }], "enumType": [{ "name": "Semantic", "value": [{ "name": "NONE", "number": 0 }, { "name": "SET", "number": 1 }, { "name": "ALIAS", "number": 2 }] }] }] }], "enumType": [{ "name": "Edition", "value": [{ "name": "EDITION_UNKNOWN", "number": 0 }, { "name": "EDITION_LEGACY", "number": 900 }, { "name": "EDITION_PROTO2", "number": 998 }, { "name": "EDITION_PROTO3", "number": 999 }, { "name": "EDITION_2023", "number": 1000 }, { "name": "EDITION_2024", "number": 1001 }, { "name": "EDITION_1_TEST_ONLY", "number": 1 }, { "name": "EDITION_2_TEST_ONLY", "number": 2 }, { "name": "EDITION_99997_TEST_ONLY", "number": 99997 }, { "name": "EDITION_99998_TEST_ONLY", "number": 99998 }, { "name": "EDITION_99999_TEST_ONLY", "number": 99999 }, { "name": "EDITION_MAX", "number": 2147483647 }] }, { "name": "SymbolVisibility", "value": [{ "name": "VISIBILITY_UNSET", "number": 0 }, { "name": "VISIBILITY_LOCAL", "number": 1 }, { "name": "VISIBILITY_EXPORT", "number": 2 }] }] }); -/** - * Describes the message google.protobuf.FileDescriptorSet. - * Use `create(FileDescriptorSetSchema)` to create a new message. - */ -exports.FileDescriptorSetSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 0); -/** - * Describes the message google.protobuf.FileDescriptorProto. - * Use `create(FileDescriptorProtoSchema)` to create a new message. - */ -exports.FileDescriptorProtoSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 1); -/** - * Describes the message google.protobuf.DescriptorProto. - * Use `create(DescriptorProtoSchema)` to create a new message. - */ -exports.DescriptorProtoSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 2); -/** - * Describes the message google.protobuf.DescriptorProto.ExtensionRange. - * Use `create(DescriptorProto_ExtensionRangeSchema)` to create a new message. - */ -exports.DescriptorProto_ExtensionRangeSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 2, 0); -/** - * Describes the message google.protobuf.DescriptorProto.ReservedRange. - * Use `create(DescriptorProto_ReservedRangeSchema)` to create a new message. - */ -exports.DescriptorProto_ReservedRangeSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 2, 1); -/** - * Describes the message google.protobuf.ExtensionRangeOptions. - * Use `create(ExtensionRangeOptionsSchema)` to create a new message. - */ -exports.ExtensionRangeOptionsSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 3); -/** - * Describes the message google.protobuf.ExtensionRangeOptions.Declaration. - * Use `create(ExtensionRangeOptions_DeclarationSchema)` to create a new message. - */ -exports.ExtensionRangeOptions_DeclarationSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 3, 0); -/** - * The verification state of the extension range. - * - * @generated from enum google.protobuf.ExtensionRangeOptions.VerificationState - */ -var ExtensionRangeOptions_VerificationState; -(function (ExtensionRangeOptions_VerificationState) { - /** - * All the extensions of the range must be declared. - * - * @generated from enum value: DECLARATION = 0; - */ - ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["DECLARATION"] = 0] = "DECLARATION"; - /** - * @generated from enum value: UNVERIFIED = 1; - */ - ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNVERIFIED"] = 1] = "UNVERIFIED"; -})(ExtensionRangeOptions_VerificationState || (exports.ExtensionRangeOptions_VerificationState = ExtensionRangeOptions_VerificationState = {})); -/** - * Describes the enum google.protobuf.ExtensionRangeOptions.VerificationState. - */ -exports.ExtensionRangeOptions_VerificationStateSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 3, 0); -/** - * Describes the message google.protobuf.FieldDescriptorProto. - * Use `create(FieldDescriptorProtoSchema)` to create a new message. - */ -exports.FieldDescriptorProtoSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 4); -/** - * @generated from enum google.protobuf.FieldDescriptorProto.Type - */ -var FieldDescriptorProto_Type; -(function (FieldDescriptorProto_Type) { - /** - * 0 is reserved for errors. - * Order is weird for historical reasons. - * - * @generated from enum value: TYPE_DOUBLE = 1; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["DOUBLE"] = 1] = "DOUBLE"; - /** - * @generated from enum value: TYPE_FLOAT = 2; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["FLOAT"] = 2] = "FLOAT"; - /** - * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - * - * @generated from enum value: TYPE_INT64 = 3; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["INT64"] = 3] = "INT64"; - /** - * @generated from enum value: TYPE_UINT64 = 4; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["UINT64"] = 4] = "UINT64"; - /** - * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - * - * @generated from enum value: TYPE_INT32 = 5; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["INT32"] = 5] = "INT32"; - /** - * @generated from enum value: TYPE_FIXED64 = 6; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["FIXED64"] = 6] = "FIXED64"; - /** - * @generated from enum value: TYPE_FIXED32 = 7; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["FIXED32"] = 7] = "FIXED32"; - /** - * @generated from enum value: TYPE_BOOL = 8; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["BOOL"] = 8] = "BOOL"; - /** - * @generated from enum value: TYPE_STRING = 9; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["STRING"] = 9] = "STRING"; - /** - * Tag-delimited aggregate. - * Group type is deprecated and not supported after google.protobuf. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. In Editions, the group wire format - * can be enabled via the `message_encoding` feature. - * - * @generated from enum value: TYPE_GROUP = 10; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["GROUP"] = 10] = "GROUP"; - /** - * Length-delimited aggregate. - * - * @generated from enum value: TYPE_MESSAGE = 11; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["MESSAGE"] = 11] = "MESSAGE"; - /** - * New in version 2. - * - * @generated from enum value: TYPE_BYTES = 12; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["BYTES"] = 12] = "BYTES"; - /** - * @generated from enum value: TYPE_UINT32 = 13; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["UINT32"] = 13] = "UINT32"; - /** - * @generated from enum value: TYPE_ENUM = 14; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["ENUM"] = 14] = "ENUM"; - /** - * @generated from enum value: TYPE_SFIXED32 = 15; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["SFIXED32"] = 15] = "SFIXED32"; - /** - * @generated from enum value: TYPE_SFIXED64 = 16; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["SFIXED64"] = 16] = "SFIXED64"; - /** - * Uses ZigZag encoding. - * - * @generated from enum value: TYPE_SINT32 = 17; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["SINT32"] = 17] = "SINT32"; - /** - * Uses ZigZag encoding. - * - * @generated from enum value: TYPE_SINT64 = 18; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["SINT64"] = 18] = "SINT64"; -})(FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = FieldDescriptorProto_Type = {})); -/** - * Describes the enum google.protobuf.FieldDescriptorProto.Type. - */ -exports.FieldDescriptorProto_TypeSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 4, 0); -/** - * @generated from enum google.protobuf.FieldDescriptorProto.Label - */ -var FieldDescriptorProto_Label; -(function (FieldDescriptorProto_Label) { - /** - * 0 is reserved for errors - * - * @generated from enum value: LABEL_OPTIONAL = 1; - */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["OPTIONAL"] = 1] = "OPTIONAL"; - /** - * @generated from enum value: LABEL_REPEATED = 3; - */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["REPEATED"] = 3] = "REPEATED"; - /** - * The required label is only allowed in google.protobuf. In proto3 and Editions - * it's explicitly prohibited. In Editions, the `field_presence` feature - * can be used to get this behavior. - * - * @generated from enum value: LABEL_REQUIRED = 2; - */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["REQUIRED"] = 2] = "REQUIRED"; -})(FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = FieldDescriptorProto_Label = {})); -/** - * Describes the enum google.protobuf.FieldDescriptorProto.Label. - */ -exports.FieldDescriptorProto_LabelSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 4, 1); -/** - * Describes the message google.protobuf.OneofDescriptorProto. - * Use `create(OneofDescriptorProtoSchema)` to create a new message. - */ -exports.OneofDescriptorProtoSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 5); -/** - * Describes the message google.protobuf.EnumDescriptorProto. - * Use `create(EnumDescriptorProtoSchema)` to create a new message. - */ -exports.EnumDescriptorProtoSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 6); -/** - * Describes the message google.protobuf.EnumDescriptorProto.EnumReservedRange. - * Use `create(EnumDescriptorProto_EnumReservedRangeSchema)` to create a new message. - */ -exports.EnumDescriptorProto_EnumReservedRangeSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 6, 0); -/** - * Describes the message google.protobuf.EnumValueDescriptorProto. - * Use `create(EnumValueDescriptorProtoSchema)` to create a new message. - */ -exports.EnumValueDescriptorProtoSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 7); -/** - * Describes the message google.protobuf.ServiceDescriptorProto. - * Use `create(ServiceDescriptorProtoSchema)` to create a new message. - */ -exports.ServiceDescriptorProtoSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 8); -/** - * Describes the message google.protobuf.MethodDescriptorProto. - * Use `create(MethodDescriptorProtoSchema)` to create a new message. - */ -exports.MethodDescriptorProtoSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 9); -/** - * Describes the message google.protobuf.FileOptions. - * Use `create(FileOptionsSchema)` to create a new message. - */ -exports.FileOptionsSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 10); -/** - * Generated classes can be optimized for speed or code size. - * - * @generated from enum google.protobuf.FileOptions.OptimizeMode - */ -var FileOptions_OptimizeMode; -(function (FileOptions_OptimizeMode) { - /** - * Generate complete code for parsing, serialization, - * - * @generated from enum value: SPEED = 1; - */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED"; - /** - * etc. - * - * Use ReflectionOps to implement these methods. - * - * @generated from enum value: CODE_SIZE = 2; - */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE"; - /** - * Generate code using MessageLite and the lite runtime. - * - * @generated from enum value: LITE_RUNTIME = 3; - */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME"; -})(FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = FileOptions_OptimizeMode = {})); -/** - * Describes the enum google.protobuf.FileOptions.OptimizeMode. - */ -exports.FileOptions_OptimizeModeSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 10, 0); -/** - * Describes the message google.protobuf.MessageOptions. - * Use `create(MessageOptionsSchema)` to create a new message. - */ -exports.MessageOptionsSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 11); -/** - * Describes the message google.protobuf.FieldOptions. - * Use `create(FieldOptionsSchema)` to create a new message. - */ -exports.FieldOptionsSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 12); -/** - * Describes the message google.protobuf.FieldOptions.EditionDefault. - * Use `create(FieldOptions_EditionDefaultSchema)` to create a new message. - */ -exports.FieldOptions_EditionDefaultSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 12, 0); -/** - * Describes the message google.protobuf.FieldOptions.FeatureSupport. - * Use `create(FieldOptions_FeatureSupportSchema)` to create a new message. - */ -exports.FieldOptions_FeatureSupportSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 12, 1); -/** - * @generated from enum google.protobuf.FieldOptions.CType - */ -var FieldOptions_CType; -(function (FieldOptions_CType) { - /** - * Default mode. - * - * @generated from enum value: STRING = 0; - */ - FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING"; - /** - * The option [ctype=CORD] may be applied to a non-repeated field of type - * "bytes". It indicates that in C++, the data should be stored in a Cord - * instead of a string. For very large strings, this may reduce memory - * fragmentation. It may also allow better performance when parsing from a - * Cord, or when parsing with aliasing enabled, as the parsed Cord may then - * alias the original buffer. - * - * @generated from enum value: CORD = 1; - */ - FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD"; - /** - * @generated from enum value: STRING_PIECE = 2; - */ - FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE"; -})(FieldOptions_CType || (exports.FieldOptions_CType = FieldOptions_CType = {})); -/** - * Describes the enum google.protobuf.FieldOptions.CType. - */ -exports.FieldOptions_CTypeSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 12, 0); -/** - * @generated from enum google.protobuf.FieldOptions.JSType - */ -var FieldOptions_JSType; -(function (FieldOptions_JSType) { - /** - * Use the default type. - * - * @generated from enum value: JS_NORMAL = 0; - */ - FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL"; - /** - * Use JavaScript strings. - * - * @generated from enum value: JS_STRING = 1; - */ - FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING"; - /** - * Use JavaScript numbers. - * - * @generated from enum value: JS_NUMBER = 2; - */ - FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER"; -})(FieldOptions_JSType || (exports.FieldOptions_JSType = FieldOptions_JSType = {})); -/** - * Describes the enum google.protobuf.FieldOptions.JSType. - */ -exports.FieldOptions_JSTypeSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 12, 1); -/** - * If set to RETENTION_SOURCE, the option will be omitted from the binary. - * - * @generated from enum google.protobuf.FieldOptions.OptionRetention - */ -var FieldOptions_OptionRetention; -(function (FieldOptions_OptionRetention) { - /** - * @generated from enum value: RETENTION_UNKNOWN = 0; - */ - FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_UNKNOWN"] = 0] = "RETENTION_UNKNOWN"; - /** - * @generated from enum value: RETENTION_RUNTIME = 1; - */ - FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_RUNTIME"] = 1] = "RETENTION_RUNTIME"; - /** - * @generated from enum value: RETENTION_SOURCE = 2; - */ - FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_SOURCE"] = 2] = "RETENTION_SOURCE"; -})(FieldOptions_OptionRetention || (exports.FieldOptions_OptionRetention = FieldOptions_OptionRetention = {})); -/** - * Describes the enum google.protobuf.FieldOptions.OptionRetention. - */ -exports.FieldOptions_OptionRetentionSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 12, 2); -/** - * This indicates the types of entities that the field may apply to when used - * as an option. If it is unset, then the field may be freely used as an - * option on any kind of entity. - * - * @generated from enum google.protobuf.FieldOptions.OptionTargetType - */ -var FieldOptions_OptionTargetType; -(function (FieldOptions_OptionTargetType) { - /** - * @generated from enum value: TARGET_TYPE_UNKNOWN = 0; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_UNKNOWN"] = 0] = "TARGET_TYPE_UNKNOWN"; - /** - * @generated from enum value: TARGET_TYPE_FILE = 1; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FILE"] = 1] = "TARGET_TYPE_FILE"; - /** - * @generated from enum value: TARGET_TYPE_EXTENSION_RANGE = 2; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_EXTENSION_RANGE"] = 2] = "TARGET_TYPE_EXTENSION_RANGE"; - /** - * @generated from enum value: TARGET_TYPE_MESSAGE = 3; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_MESSAGE"] = 3] = "TARGET_TYPE_MESSAGE"; - /** - * @generated from enum value: TARGET_TYPE_FIELD = 4; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FIELD"] = 4] = "TARGET_TYPE_FIELD"; - /** - * @generated from enum value: TARGET_TYPE_ONEOF = 5; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ONEOF"] = 5] = "TARGET_TYPE_ONEOF"; - /** - * @generated from enum value: TARGET_TYPE_ENUM = 6; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM"] = 6] = "TARGET_TYPE_ENUM"; - /** - * @generated from enum value: TARGET_TYPE_ENUM_ENTRY = 7; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM_ENTRY"] = 7] = "TARGET_TYPE_ENUM_ENTRY"; - /** - * @generated from enum value: TARGET_TYPE_SERVICE = 8; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_SERVICE"] = 8] = "TARGET_TYPE_SERVICE"; - /** - * @generated from enum value: TARGET_TYPE_METHOD = 9; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_METHOD"] = 9] = "TARGET_TYPE_METHOD"; -})(FieldOptions_OptionTargetType || (exports.FieldOptions_OptionTargetType = FieldOptions_OptionTargetType = {})); -/** - * Describes the enum google.protobuf.FieldOptions.OptionTargetType. - */ -exports.FieldOptions_OptionTargetTypeSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 12, 3); -/** - * Describes the message google.protobuf.OneofOptions. - * Use `create(OneofOptionsSchema)` to create a new message. - */ -exports.OneofOptionsSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 13); -/** - * Describes the message google.protobuf.EnumOptions. - * Use `create(EnumOptionsSchema)` to create a new message. - */ -exports.EnumOptionsSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 14); -/** - * Describes the message google.protobuf.EnumValueOptions. - * Use `create(EnumValueOptionsSchema)` to create a new message. - */ -exports.EnumValueOptionsSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 15); -/** - * Describes the message google.protobuf.ServiceOptions. - * Use `create(ServiceOptionsSchema)` to create a new message. - */ -exports.ServiceOptionsSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 16); -/** - * Describes the message google.protobuf.MethodOptions. - * Use `create(MethodOptionsSchema)` to create a new message. - */ -exports.MethodOptionsSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 17); -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - * - * @generated from enum google.protobuf.MethodOptions.IdempotencyLevel - */ -var MethodOptions_IdempotencyLevel; -(function (MethodOptions_IdempotencyLevel) { - /** - * @generated from enum value: IDEMPOTENCY_UNKNOWN = 0; - */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN"; - /** - * implies idempotent - * - * @generated from enum value: NO_SIDE_EFFECTS = 1; - */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS"; - /** - * idempotent, but may have side effects - * - * @generated from enum value: IDEMPOTENT = 2; - */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT"; -})(MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = MethodOptions_IdempotencyLevel = {})); -/** - * Describes the enum google.protobuf.MethodOptions.IdempotencyLevel. - */ -exports.MethodOptions_IdempotencyLevelSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 17, 0); -/** - * Describes the message google.protobuf.UninterpretedOption. - * Use `create(UninterpretedOptionSchema)` to create a new message. - */ -exports.UninterpretedOptionSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 18); -/** - * Describes the message google.protobuf.UninterpretedOption.NamePart. - * Use `create(UninterpretedOption_NamePartSchema)` to create a new message. - */ -exports.UninterpretedOption_NamePartSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 18, 0); -/** - * Describes the message google.protobuf.FeatureSet. - * Use `create(FeatureSetSchema)` to create a new message. - */ -exports.FeatureSetSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 19); -/** - * Describes the message google.protobuf.FeatureSet.VisibilityFeature. - * Use `create(FeatureSet_VisibilityFeatureSchema)` to create a new message. - */ -exports.FeatureSet_VisibilityFeatureSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 19, 0); -/** - * @generated from enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility - */ -var FeatureSet_VisibilityFeature_DefaultSymbolVisibility; -(function (FeatureSet_VisibilityFeature_DefaultSymbolVisibility) { - /** - * @generated from enum value: DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0; - */ - FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"; - /** - * Default pre-EDITION_2024, all UNSET visibility are export. - * - * @generated from enum value: EXPORT_ALL = 1; - */ - FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["EXPORT_ALL"] = 1] = "EXPORT_ALL"; - /** - * All top-level symbols default to export, nested default to local. - * - * @generated from enum value: EXPORT_TOP_LEVEL = 2; - */ - FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["EXPORT_TOP_LEVEL"] = 2] = "EXPORT_TOP_LEVEL"; - /** - * All symbols default to local. - * - * @generated from enum value: LOCAL_ALL = 3; - */ - FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["LOCAL_ALL"] = 3] = "LOCAL_ALL"; - /** - * All symbols local by default. Nested types cannot be exported. - * With special case caveat for message { enum {} reserved 1 to max; } - * This is the recommended setting for new protos. - * - * @generated from enum value: STRICT = 4; - */ - FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["STRICT"] = 4] = "STRICT"; -})(FeatureSet_VisibilityFeature_DefaultSymbolVisibility || (exports.FeatureSet_VisibilityFeature_DefaultSymbolVisibility = FeatureSet_VisibilityFeature_DefaultSymbolVisibility = {})); -/** - * Describes the enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility. - */ -exports.FeatureSet_VisibilityFeature_DefaultSymbolVisibilitySchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 19, 0, 0); -/** - * @generated from enum google.protobuf.FeatureSet.FieldPresence - */ -var FeatureSet_FieldPresence; -(function (FeatureSet_FieldPresence) { - /** - * @generated from enum value: FIELD_PRESENCE_UNKNOWN = 0; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["FIELD_PRESENCE_UNKNOWN"] = 0] = "FIELD_PRESENCE_UNKNOWN"; - /** - * @generated from enum value: EXPLICIT = 1; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["EXPLICIT"] = 1] = "EXPLICIT"; - /** - * @generated from enum value: IMPLICIT = 2; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["IMPLICIT"] = 2] = "IMPLICIT"; - /** - * @generated from enum value: LEGACY_REQUIRED = 3; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["LEGACY_REQUIRED"] = 3] = "LEGACY_REQUIRED"; -})(FeatureSet_FieldPresence || (exports.FeatureSet_FieldPresence = FeatureSet_FieldPresence = {})); -/** - * Describes the enum google.protobuf.FeatureSet.FieldPresence. - */ -exports.FeatureSet_FieldPresenceSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 19, 0); -/** - * @generated from enum google.protobuf.FeatureSet.EnumType - */ -var FeatureSet_EnumType; -(function (FeatureSet_EnumType) { - /** - * @generated from enum value: ENUM_TYPE_UNKNOWN = 0; - */ - FeatureSet_EnumType[FeatureSet_EnumType["ENUM_TYPE_UNKNOWN"] = 0] = "ENUM_TYPE_UNKNOWN"; - /** - * @generated from enum value: OPEN = 1; - */ - FeatureSet_EnumType[FeatureSet_EnumType["OPEN"] = 1] = "OPEN"; - /** - * @generated from enum value: CLOSED = 2; - */ - FeatureSet_EnumType[FeatureSet_EnumType["CLOSED"] = 2] = "CLOSED"; -})(FeatureSet_EnumType || (exports.FeatureSet_EnumType = FeatureSet_EnumType = {})); -/** - * Describes the enum google.protobuf.FeatureSet.EnumType. - */ -exports.FeatureSet_EnumTypeSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 19, 1); -/** - * @generated from enum google.protobuf.FeatureSet.RepeatedFieldEncoding - */ -var FeatureSet_RepeatedFieldEncoding; -(function (FeatureSet_RepeatedFieldEncoding) { - /** - * @generated from enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0; - */ - FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["REPEATED_FIELD_ENCODING_UNKNOWN"] = 0] = "REPEATED_FIELD_ENCODING_UNKNOWN"; - /** - * @generated from enum value: PACKED = 1; - */ - FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["PACKED"] = 1] = "PACKED"; - /** - * @generated from enum value: EXPANDED = 2; - */ - FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["EXPANDED"] = 2] = "EXPANDED"; -})(FeatureSet_RepeatedFieldEncoding || (exports.FeatureSet_RepeatedFieldEncoding = FeatureSet_RepeatedFieldEncoding = {})); -/** - * Describes the enum google.protobuf.FeatureSet.RepeatedFieldEncoding. - */ -exports.FeatureSet_RepeatedFieldEncodingSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 19, 2); -/** - * @generated from enum google.protobuf.FeatureSet.Utf8Validation - */ -var FeatureSet_Utf8Validation; -(function (FeatureSet_Utf8Validation) { - /** - * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0; - */ - FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN"; - /** - * @generated from enum value: VERIFY = 2; - */ - FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["VERIFY"] = 2] = "VERIFY"; - /** - * @generated from enum value: NONE = 3; - */ - FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 3] = "NONE"; -})(FeatureSet_Utf8Validation || (exports.FeatureSet_Utf8Validation = FeatureSet_Utf8Validation = {})); -/** - * Describes the enum google.protobuf.FeatureSet.Utf8Validation. - */ -exports.FeatureSet_Utf8ValidationSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 19, 3); -/** - * @generated from enum google.protobuf.FeatureSet.MessageEncoding - */ -var FeatureSet_MessageEncoding; -(function (FeatureSet_MessageEncoding) { - /** - * @generated from enum value: MESSAGE_ENCODING_UNKNOWN = 0; - */ - FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["MESSAGE_ENCODING_UNKNOWN"] = 0] = "MESSAGE_ENCODING_UNKNOWN"; - /** - * @generated from enum value: LENGTH_PREFIXED = 1; - */ - FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["LENGTH_PREFIXED"] = 1] = "LENGTH_PREFIXED"; - /** - * @generated from enum value: DELIMITED = 2; - */ - FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["DELIMITED"] = 2] = "DELIMITED"; -})(FeatureSet_MessageEncoding || (exports.FeatureSet_MessageEncoding = FeatureSet_MessageEncoding = {})); -/** - * Describes the enum google.protobuf.FeatureSet.MessageEncoding. - */ -exports.FeatureSet_MessageEncodingSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 19, 4); -/** - * @generated from enum google.protobuf.FeatureSet.JsonFormat - */ -var FeatureSet_JsonFormat; -(function (FeatureSet_JsonFormat) { - /** - * @generated from enum value: JSON_FORMAT_UNKNOWN = 0; - */ - FeatureSet_JsonFormat[FeatureSet_JsonFormat["JSON_FORMAT_UNKNOWN"] = 0] = "JSON_FORMAT_UNKNOWN"; - /** - * @generated from enum value: ALLOW = 1; - */ - FeatureSet_JsonFormat[FeatureSet_JsonFormat["ALLOW"] = 1] = "ALLOW"; - /** - * @generated from enum value: LEGACY_BEST_EFFORT = 2; - */ - FeatureSet_JsonFormat[FeatureSet_JsonFormat["LEGACY_BEST_EFFORT"] = 2] = "LEGACY_BEST_EFFORT"; -})(FeatureSet_JsonFormat || (exports.FeatureSet_JsonFormat = FeatureSet_JsonFormat = {})); -/** - * Describes the enum google.protobuf.FeatureSet.JsonFormat. - */ -exports.FeatureSet_JsonFormatSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 19, 5); -/** - * @generated from enum google.protobuf.FeatureSet.EnforceNamingStyle - */ -var FeatureSet_EnforceNamingStyle; -(function (FeatureSet_EnforceNamingStyle) { - /** - * @generated from enum value: ENFORCE_NAMING_STYLE_UNKNOWN = 0; - */ - FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["ENFORCE_NAMING_STYLE_UNKNOWN"] = 0] = "ENFORCE_NAMING_STYLE_UNKNOWN"; - /** - * @generated from enum value: STYLE2024 = 1; - */ - FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["STYLE2024"] = 1] = "STYLE2024"; - /** - * @generated from enum value: STYLE_LEGACY = 2; - */ - FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["STYLE_LEGACY"] = 2] = "STYLE_LEGACY"; -})(FeatureSet_EnforceNamingStyle || (exports.FeatureSet_EnforceNamingStyle = FeatureSet_EnforceNamingStyle = {})); -/** - * Describes the enum google.protobuf.FeatureSet.EnforceNamingStyle. - */ -exports.FeatureSet_EnforceNamingStyleSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 19, 6); -/** - * Describes the message google.protobuf.FeatureSetDefaults. - * Use `create(FeatureSetDefaultsSchema)` to create a new message. - */ -exports.FeatureSetDefaultsSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 20); -/** - * Describes the message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault. - * Use `create(FeatureSetDefaults_FeatureSetEditionDefaultSchema)` to create a new message. - */ -exports.FeatureSetDefaults_FeatureSetEditionDefaultSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 20, 0); -/** - * Describes the message google.protobuf.SourceCodeInfo. - * Use `create(SourceCodeInfoSchema)` to create a new message. - */ -exports.SourceCodeInfoSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 21); -/** - * Describes the message google.protobuf.SourceCodeInfo.Location. - * Use `create(SourceCodeInfo_LocationSchema)` to create a new message. - */ -exports.SourceCodeInfo_LocationSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 21, 0); -/** - * Describes the message google.protobuf.GeneratedCodeInfo. - * Use `create(GeneratedCodeInfoSchema)` to create a new message. - */ -exports.GeneratedCodeInfoSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 22); -/** - * Describes the message google.protobuf.GeneratedCodeInfo.Annotation. - * Use `create(GeneratedCodeInfo_AnnotationSchema)` to create a new message. - */ -exports.GeneratedCodeInfo_AnnotationSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_descriptor, 22, 0); -/** - * Represents the identified object's effect on the element in the original - * .proto file. - * - * @generated from enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic - */ -var GeneratedCodeInfo_Annotation_Semantic; -(function (GeneratedCodeInfo_Annotation_Semantic) { - /** - * There is no effect or the effect is indescribable. - * - * @generated from enum value: NONE = 0; - */ - GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["NONE"] = 0] = "NONE"; - /** - * The element is set or otherwise mutated. - * - * @generated from enum value: SET = 1; - */ - GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["SET"] = 1] = "SET"; - /** - * An alias to the element is returned. - * - * @generated from enum value: ALIAS = 2; - */ - GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["ALIAS"] = 2] = "ALIAS"; -})(GeneratedCodeInfo_Annotation_Semantic || (exports.GeneratedCodeInfo_Annotation_Semantic = GeneratedCodeInfo_Annotation_Semantic = {})); -/** - * Describes the enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic. - */ -exports.GeneratedCodeInfo_Annotation_SemanticSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 22, 0, 0); -/** - * The full set of known editions. - * - * @generated from enum google.protobuf.Edition - */ -var Edition; -(function (Edition) { - /** - * A placeholder for an unknown edition value. - * - * @generated from enum value: EDITION_UNKNOWN = 0; - */ - Edition[Edition["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN"; - /** - * A placeholder edition for specifying default behaviors *before* a feature - * was first introduced. This is effectively an "infinite past". - * - * @generated from enum value: EDITION_LEGACY = 900; - */ - Edition[Edition["EDITION_LEGACY"] = 900] = "EDITION_LEGACY"; - /** - * Legacy syntax "editions". These pre-date editions, but behave much like - * distinct editions. These can't be used to specify the edition of proto - * files, but feature definitions must supply proto2/proto3 defaults for - * backwards compatibility. - * - * @generated from enum value: EDITION_PROTO2 = 998; - */ - Edition[Edition["EDITION_PROTO2"] = 998] = "EDITION_PROTO2"; - /** - * @generated from enum value: EDITION_PROTO3 = 999; - */ - Edition[Edition["EDITION_PROTO3"] = 999] = "EDITION_PROTO3"; - /** - * Editions that have been released. The specific values are arbitrary and - * should not be depended on, but they will always be time-ordered for easy - * comparison. - * - * @generated from enum value: EDITION_2023 = 1000; - */ - Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023"; - /** - * @generated from enum value: EDITION_2024 = 1001; - */ - Edition[Edition["EDITION_2024"] = 1001] = "EDITION_2024"; - /** - * Placeholder editions for testing feature resolution. These should not be - * used or relied on outside of tests. - * - * @generated from enum value: EDITION_1_TEST_ONLY = 1; - */ - Edition[Edition["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY"; - /** - * @generated from enum value: EDITION_2_TEST_ONLY = 2; - */ - Edition[Edition["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY"; - /** - * @generated from enum value: EDITION_99997_TEST_ONLY = 99997; - */ - Edition[Edition["EDITION_99997_TEST_ONLY"] = 99997] = "EDITION_99997_TEST_ONLY"; - /** - * @generated from enum value: EDITION_99998_TEST_ONLY = 99998; - */ - Edition[Edition["EDITION_99998_TEST_ONLY"] = 99998] = "EDITION_99998_TEST_ONLY"; - /** - * @generated from enum value: EDITION_99999_TEST_ONLY = 99999; - */ - Edition[Edition["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY"; - /** - * Placeholder for specifying unbounded edition support. This should only - * ever be used by plugins that can expect to never require any changes to - * support a new edition. - * - * @generated from enum value: EDITION_MAX = 2147483647; - */ - Edition[Edition["EDITION_MAX"] = 2147483647] = "EDITION_MAX"; -})(Edition || (exports.Edition = Edition = {})); -/** - * Describes the enum google.protobuf.Edition. - */ -exports.EditionSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 0); -/** - * Describes the 'visibility' of a symbol with respect to the proto import - * system. Symbols can only be imported when the visibility rules do not prevent - * it (ex: local symbols cannot be imported). Visibility modifiers can only set - * on `message` and `enum` as they are the only types available to be referenced - * from other files. - * - * @generated from enum google.protobuf.SymbolVisibility - */ -var SymbolVisibility; -(function (SymbolVisibility) { - /** - * @generated from enum value: VISIBILITY_UNSET = 0; - */ - SymbolVisibility[SymbolVisibility["VISIBILITY_UNSET"] = 0] = "VISIBILITY_UNSET"; - /** - * @generated from enum value: VISIBILITY_LOCAL = 1; - */ - SymbolVisibility[SymbolVisibility["VISIBILITY_LOCAL"] = 1] = "VISIBILITY_LOCAL"; - /** - * @generated from enum value: VISIBILITY_EXPORT = 2; - */ - SymbolVisibility[SymbolVisibility["VISIBILITY_EXPORT"] = 2] = "VISIBILITY_EXPORT"; -})(SymbolVisibility || (exports.SymbolVisibility = SymbolVisibility = {})); -/** - * Describes the enum google.protobuf.SymbolVisibility. - */ -exports.SymbolVisibilitySchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_descriptor, 1); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/duration_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/duration_pb.d.ts deleted file mode 100644 index a779ebf..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/duration_pb.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/duration.proto. - */ -export declare const file_google_protobuf_duration: GenFile; -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (duration.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - * - * - * @generated from message google.protobuf.Duration - */ -export type Duration = Message<"google.protobuf.Duration"> & { - /** - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - * - * @generated from field: int64 seconds = 1; - */ - seconds: bigint; - /** - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - * - * @generated from field: int32 nanos = 2; - */ - nanos: number; -}; -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (duration.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - * - * - * @generated from message google.protobuf.Duration - */ -export type DurationJson = string; -/** - * Describes the message google.protobuf.Duration. - * Use `create(DurationSchema)` to create a new message. - */ -export declare const DurationSchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/duration_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/duration_pb.js deleted file mode 100644 index 5d32362..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/duration_pb.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DurationSchema = exports.file_google_protobuf_duration = void 0; -const file_js_1 = require("../../../../codegenv2/file.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -/** - * Describes the file google/protobuf/duration.proto. - */ -exports.file_google_protobuf_duration = (0, file_js_1.fileDesc)("Ch5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIqCghEdXJhdGlvbhIPCgdzZWNvbmRzGAEgASgDEg0KBW5hbm9zGAIgASgFQoMBChNjb20uZ29vZ2xlLnByb3RvYnVmQg1EdXJhdGlvblByb3RvUAFaMWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2R1cmF0aW9ucGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw"); -/** - * Describes the message google.protobuf.Duration. - * Use `create(DurationSchema)` to create a new message. - */ -exports.DurationSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_duration, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/empty_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/empty_pb.d.ts deleted file mode 100644 index d53d568..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/empty_pb.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/empty.proto. - */ -export declare const file_google_protobuf_empty: GenFile; -/** - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * - * - * @generated from message google.protobuf.Empty - */ -export type Empty = Message<"google.protobuf.Empty"> & {}; -/** - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * - * - * @generated from message google.protobuf.Empty - */ -export type EmptyJson = Record; -/** - * Describes the message google.protobuf.Empty. - * Use `create(EmptySchema)` to create a new message. - */ -export declare const EmptySchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/empty_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/empty_pb.js deleted file mode 100644 index 99bb662..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/empty_pb.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EmptySchema = exports.file_google_protobuf_empty = void 0; -const file_js_1 = require("../../../../codegenv2/file.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -/** - * Describes the file google/protobuf/empty.proto. - */ -exports.file_google_protobuf_empty = (0, file_js_1.fileDesc)("Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIHCgVFbXB0eUJ9ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3RvUAFaLmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2VtcHR5cGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw"); -/** - * Describes the message google.protobuf.Empty. - * Use `create(EmptySchema)` to create a new message. - */ -exports.EmptySchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_empty, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.d.ts deleted file mode 100644 index 31781f3..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.d.ts +++ /dev/null @@ -1,428 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/field_mask.proto. - */ -export declare const file_google_protobuf_field_mask: GenFile; -/** - * `FieldMask` represents a set of symbolic field paths, for example: - * - * paths: "f.a" - * paths: "f.b.d" - * - * Here `f` represents a field in some root message, `a` and `b` - * fields in the message found in `f`, and `d` a field found in the - * message in `f.b`. - * - * Field masks are used to specify a subset of fields that should be - * returned by a get operation or modified by an update operation. - * Field masks also have a custom JSON encoding (see below). - * - * # Field Masks in Projections - * - * When used in the context of a projection, a response message or - * sub-message is filtered by the API to only contain those fields as - * specified in the mask. For example, if the mask in the previous - * example is applied to a response message as follows: - * - * f { - * a : 22 - * b { - * d : 1 - * x : 2 - * } - * y : 13 - * } - * z: 8 - * - * The result will not contain specific values for fields x,y and z - * (their value will be set to the default, and omitted in proto text - * output): - * - * - * f { - * a : 22 - * b { - * d : 1 - * } - * } - * - * A repeated field is not allowed except at the last position of a - * paths string. - * - * If a FieldMask object is not present in a get operation, the - * operation applies to all fields (as if a FieldMask of all fields - * had been specified). - * - * Note that a field mask does not necessarily apply to the - * top-level response message. In case of a REST get operation, the - * field mask applies directly to the response, but in case of a REST - * list operation, the mask instead applies to each individual message - * in the returned resource list. In case of a REST custom method, - * other definitions may be used. Where the mask applies will be - * clearly documented together with its declaration in the API. In - * any case, the effect on the returned resource/resources is required - * behavior for APIs. - * - * # Field Masks in Update Operations - * - * A field mask in update operations specifies which fields of the - * targeted resource are going to be updated. The API is required - * to only change the values of the fields as specified in the mask - * and leave the others untouched. If a resource is passed in to - * describe the updated values, the API ignores the values of all - * fields not covered by the mask. - * - * If a repeated field is specified for an update operation, new values will - * be appended to the existing repeated field in the target resource. Note that - * a repeated field is only allowed in the last position of a `paths` string. - * - * If a sub-message is specified in the last position of the field mask for an - * update operation, then new value will be merged into the existing sub-message - * in the target resource. - * - * For example, given the target message: - * - * f { - * b { - * d: 1 - * x: 2 - * } - * c: [1] - * } - * - * And an update message: - * - * f { - * b { - * d: 10 - * } - * c: [2] - * } - * - * then if the field mask is: - * - * paths: ["f.b", "f.c"] - * - * then the result will be: - * - * f { - * b { - * d: 10 - * x: 2 - * } - * c: [1, 2] - * } - * - * An implementation may provide options to override this default behavior for - * repeated and message fields. - * - * In order to reset a field's value to the default, the field must - * be in the mask and set to the default value in the provided resource. - * Hence, in order to reset all fields of a resource, provide a default - * instance of the resource and set all fields in the mask, or do - * not provide a mask as described below. - * - * If a field mask is not present on update, the operation applies to - * all fields (as if a field mask of all fields has been specified). - * Note that in the presence of schema evolution, this may mean that - * fields the client does not know and has therefore not filled into - * the request will be reset to their default. If this is unwanted - * behavior, a specific service may require a client to always specify - * a field mask, producing an error if not. - * - * As with get operations, the location of the resource which - * describes the updated values in the request message depends on the - * operation kind. In any case, the effect of the field mask is - * required to be honored by the API. - * - * ## Considerations for HTTP REST - * - * The HTTP kind of an update operation which uses a field mask must - * be set to PATCH instead of PUT in order to satisfy HTTP semantics - * (PUT must only be used for full updates). - * - * # JSON Encoding of Field Masks - * - * In JSON, a field mask is encoded as a single string where paths are - * separated by a comma. Fields name in each path are converted - * to/from lower-camel naming conventions. - * - * As an example, consider the following message declarations: - * - * message Profile { - * User user = 1; - * Photo photo = 2; - * } - * message User { - * string display_name = 1; - * string address = 2; - * } - * - * In proto a field mask for `Profile` may look as such: - * - * mask { - * paths: "user.display_name" - * paths: "photo" - * } - * - * In JSON, the same mask is represented as below: - * - * { - * mask: "user.displayName,photo" - * } - * - * # Field Masks and Oneof Fields - * - * Field masks treat fields in oneofs just as regular fields. Consider the - * following message: - * - * message SampleMessage { - * oneof test_oneof { - * string name = 4; - * SubMessage sub_message = 9; - * } - * } - * - * The field mask can be: - * - * mask { - * paths: "name" - * } - * - * Or: - * - * mask { - * paths: "sub_message" - * } - * - * Note that oneof type names ("test_oneof" in this case) cannot be used in - * paths. - * - * ## Field Mask Verification - * - * The implementation of any API method which has a FieldMask type field in the - * request should verify the included field paths, and return an - * `INVALID_ARGUMENT` error if any path is unmappable. - * - * @generated from message google.protobuf.FieldMask - */ -export type FieldMask = Message<"google.protobuf.FieldMask"> & { - /** - * The set of field mask paths. - * - * @generated from field: repeated string paths = 1; - */ - paths: string[]; -}; -/** - * `FieldMask` represents a set of symbolic field paths, for example: - * - * paths: "f.a" - * paths: "f.b.d" - * - * Here `f` represents a field in some root message, `a` and `b` - * fields in the message found in `f`, and `d` a field found in the - * message in `f.b`. - * - * Field masks are used to specify a subset of fields that should be - * returned by a get operation or modified by an update operation. - * Field masks also have a custom JSON encoding (see below). - * - * # Field Masks in Projections - * - * When used in the context of a projection, a response message or - * sub-message is filtered by the API to only contain those fields as - * specified in the mask. For example, if the mask in the previous - * example is applied to a response message as follows: - * - * f { - * a : 22 - * b { - * d : 1 - * x : 2 - * } - * y : 13 - * } - * z: 8 - * - * The result will not contain specific values for fields x,y and z - * (their value will be set to the default, and omitted in proto text - * output): - * - * - * f { - * a : 22 - * b { - * d : 1 - * } - * } - * - * A repeated field is not allowed except at the last position of a - * paths string. - * - * If a FieldMask object is not present in a get operation, the - * operation applies to all fields (as if a FieldMask of all fields - * had been specified). - * - * Note that a field mask does not necessarily apply to the - * top-level response message. In case of a REST get operation, the - * field mask applies directly to the response, but in case of a REST - * list operation, the mask instead applies to each individual message - * in the returned resource list. In case of a REST custom method, - * other definitions may be used. Where the mask applies will be - * clearly documented together with its declaration in the API. In - * any case, the effect on the returned resource/resources is required - * behavior for APIs. - * - * # Field Masks in Update Operations - * - * A field mask in update operations specifies which fields of the - * targeted resource are going to be updated. The API is required - * to only change the values of the fields as specified in the mask - * and leave the others untouched. If a resource is passed in to - * describe the updated values, the API ignores the values of all - * fields not covered by the mask. - * - * If a repeated field is specified for an update operation, new values will - * be appended to the existing repeated field in the target resource. Note that - * a repeated field is only allowed in the last position of a `paths` string. - * - * If a sub-message is specified in the last position of the field mask for an - * update operation, then new value will be merged into the existing sub-message - * in the target resource. - * - * For example, given the target message: - * - * f { - * b { - * d: 1 - * x: 2 - * } - * c: [1] - * } - * - * And an update message: - * - * f { - * b { - * d: 10 - * } - * c: [2] - * } - * - * then if the field mask is: - * - * paths: ["f.b", "f.c"] - * - * then the result will be: - * - * f { - * b { - * d: 10 - * x: 2 - * } - * c: [1, 2] - * } - * - * An implementation may provide options to override this default behavior for - * repeated and message fields. - * - * In order to reset a field's value to the default, the field must - * be in the mask and set to the default value in the provided resource. - * Hence, in order to reset all fields of a resource, provide a default - * instance of the resource and set all fields in the mask, or do - * not provide a mask as described below. - * - * If a field mask is not present on update, the operation applies to - * all fields (as if a field mask of all fields has been specified). - * Note that in the presence of schema evolution, this may mean that - * fields the client does not know and has therefore not filled into - * the request will be reset to their default. If this is unwanted - * behavior, a specific service may require a client to always specify - * a field mask, producing an error if not. - * - * As with get operations, the location of the resource which - * describes the updated values in the request message depends on the - * operation kind. In any case, the effect of the field mask is - * required to be honored by the API. - * - * ## Considerations for HTTP REST - * - * The HTTP kind of an update operation which uses a field mask must - * be set to PATCH instead of PUT in order to satisfy HTTP semantics - * (PUT must only be used for full updates). - * - * # JSON Encoding of Field Masks - * - * In JSON, a field mask is encoded as a single string where paths are - * separated by a comma. Fields name in each path are converted - * to/from lower-camel naming conventions. - * - * As an example, consider the following message declarations: - * - * message Profile { - * User user = 1; - * Photo photo = 2; - * } - * message User { - * string display_name = 1; - * string address = 2; - * } - * - * In proto a field mask for `Profile` may look as such: - * - * mask { - * paths: "user.display_name" - * paths: "photo" - * } - * - * In JSON, the same mask is represented as below: - * - * { - * mask: "user.displayName,photo" - * } - * - * # Field Masks and Oneof Fields - * - * Field masks treat fields in oneofs just as regular fields. Consider the - * following message: - * - * message SampleMessage { - * oneof test_oneof { - * string name = 4; - * SubMessage sub_message = 9; - * } - * } - * - * The field mask can be: - * - * mask { - * paths: "name" - * } - * - * Or: - * - * mask { - * paths: "sub_message" - * } - * - * Note that oneof type names ("test_oneof" in this case) cannot be used in - * paths. - * - * ## Field Mask Verification - * - * The implementation of any API method which has a FieldMask type field in the - * request should verify the included field paths, and return an - * `INVALID_ARGUMENT` error if any path is unmappable. - * - * @generated from message google.protobuf.FieldMask - */ -export type FieldMaskJson = string; -/** - * Describes the message google.protobuf.FieldMask. - * Use `create(FieldMaskSchema)` to create a new message. - */ -export declare const FieldMaskSchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.js deleted file mode 100644 index dbacdba..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FieldMaskSchema = exports.file_google_protobuf_field_mask = void 0; -const file_js_1 = require("../../../../codegenv2/file.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -/** - * Describes the file google/protobuf/field_mask.proto. - */ -exports.file_google_protobuf_field_mask = (0, file_js_1.fileDesc)("CiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxIPZ29vZ2xlLnByb3RvYnVmIhoKCUZpZWxkTWFzaxINCgVwYXRocxgBIAMoCUKFAQoTY29tLmdvb2dsZS5wcm90b2J1ZkIORmllbGRNYXNrUHJvdG9QAVoyZ29vZ2xlLmdvbGFuZy5vcmcvcHJvdG9idWYvdHlwZXMva25vd24vZmllbGRtYXNrcGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw"); -/** - * Describes the message google.protobuf.FieldMask. - * Use `create(FieldMaskSchema)` to create a new message. - */ -exports.FieldMaskSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_field_mask, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.d.ts deleted file mode 100644 index 8925b9a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.d.ts +++ /dev/null @@ -1,124 +0,0 @@ -import type { GenEnum, GenExtension, GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { FeatureSet } from "./descriptor_pb.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/go_features.proto. - */ -export declare const file_google_protobuf_go_features: GenFile; -/** - * @generated from message pb.GoFeatures - */ -export type GoFeatures = Message<"pb.GoFeatures"> & { - /** - * Whether or not to generate the deprecated UnmarshalJSON method for enums. - * Can only be true for proto using the Open Struct api. - * - * @generated from field: optional bool legacy_unmarshal_json_enum = 1; - */ - legacyUnmarshalJsonEnum: boolean; - /** - * One of OPEN, HYBRID or OPAQUE. - * - * @generated from field: optional pb.GoFeatures.APILevel api_level = 2; - */ - apiLevel: GoFeatures_APILevel; - /** - * @generated from field: optional pb.GoFeatures.StripEnumPrefix strip_enum_prefix = 3; - */ - stripEnumPrefix: GoFeatures_StripEnumPrefix; -}; -/** - * @generated from message pb.GoFeatures - */ -export type GoFeaturesJson = { - /** - * Whether or not to generate the deprecated UnmarshalJSON method for enums. - * Can only be true for proto using the Open Struct api. - * - * @generated from field: optional bool legacy_unmarshal_json_enum = 1; - */ - legacyUnmarshalJsonEnum?: boolean; - /** - * One of OPEN, HYBRID or OPAQUE. - * - * @generated from field: optional pb.GoFeatures.APILevel api_level = 2; - */ - apiLevel?: GoFeatures_APILevelJson; - /** - * @generated from field: optional pb.GoFeatures.StripEnumPrefix strip_enum_prefix = 3; - */ - stripEnumPrefix?: GoFeatures_StripEnumPrefixJson; -}; -/** - * Describes the message pb.GoFeatures. - * Use `create(GoFeaturesSchema)` to create a new message. - */ -export declare const GoFeaturesSchema: GenMessage; -/** - * @generated from enum pb.GoFeatures.APILevel - */ -export declare enum GoFeatures_APILevel { - /** - * API_LEVEL_UNSPECIFIED results in selecting the OPEN API, - * but needs to be a separate value to distinguish between - * an explicitly set api level or a missing api level. - * - * @generated from enum value: API_LEVEL_UNSPECIFIED = 0; - */ - API_LEVEL_UNSPECIFIED = 0, - /** - * @generated from enum value: API_OPEN = 1; - */ - API_OPEN = 1, - /** - * @generated from enum value: API_HYBRID = 2; - */ - API_HYBRID = 2, - /** - * @generated from enum value: API_OPAQUE = 3; - */ - API_OPAQUE = 3 -} -/** - * @generated from enum pb.GoFeatures.APILevel - */ -export type GoFeatures_APILevelJson = "API_LEVEL_UNSPECIFIED" | "API_OPEN" | "API_HYBRID" | "API_OPAQUE"; -/** - * Describes the enum pb.GoFeatures.APILevel. - */ -export declare const GoFeatures_APILevelSchema: GenEnum; -/** - * @generated from enum pb.GoFeatures.StripEnumPrefix - */ -export declare enum GoFeatures_StripEnumPrefix { - /** - * @generated from enum value: STRIP_ENUM_PREFIX_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - /** - * @generated from enum value: STRIP_ENUM_PREFIX_KEEP = 1; - */ - KEEP = 1, - /** - * @generated from enum value: STRIP_ENUM_PREFIX_GENERATE_BOTH = 2; - */ - GENERATE_BOTH = 2, - /** - * @generated from enum value: STRIP_ENUM_PREFIX_STRIP = 3; - */ - STRIP = 3 -} -/** - * @generated from enum pb.GoFeatures.StripEnumPrefix - */ -export type GoFeatures_StripEnumPrefixJson = "STRIP_ENUM_PREFIX_UNSPECIFIED" | "STRIP_ENUM_PREFIX_KEEP" | "STRIP_ENUM_PREFIX_GENERATE_BOTH" | "STRIP_ENUM_PREFIX_STRIP"; -/** - * Describes the enum pb.GoFeatures.StripEnumPrefix. - */ -export declare const GoFeatures_StripEnumPrefixSchema: GenEnum; -/** - * @generated from extension: optional pb.GoFeatures go = 1002; - */ -export declare const go: GenExtension; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.js deleted file mode 100644 index b9d841e..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.go = exports.GoFeatures_StripEnumPrefixSchema = exports.GoFeatures_StripEnumPrefix = exports.GoFeatures_APILevelSchema = exports.GoFeatures_APILevel = exports.GoFeaturesSchema = exports.file_google_protobuf_go_features = void 0; -const file_js_1 = require("../../../../codegenv2/file.js"); -const descriptor_pb_js_1 = require("./descriptor_pb.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -const enum_js_1 = require("../../../../codegenv2/enum.js"); -const extension_js_1 = require("../../../../codegenv2/extension.js"); -/** - * Describes the file google/protobuf/go_features.proto. - */ -exports.file_google_protobuf_go_features = (0, file_js_1.fileDesc)("CiFnb29nbGUvcHJvdG9idWYvZ29fZmVhdHVyZXMucHJvdG8SAnBiIvcECgpHb0ZlYXR1cmVzEqUBChpsZWdhY3lfdW5tYXJzaGFsX2pzb25fZW51bRgBIAEoCEKAAYgBAZgBBpgBAaIBCRIEdHJ1ZRiEB6IBChIFZmFsc2UY5weyAVsI6AcQ6AcaU1RoZSBsZWdhY3kgVW5tYXJzaGFsSlNPTiBBUEkgaXMgZGVwcmVjYXRlZCBhbmQgd2lsbCBiZSByZW1vdmVkIGluIGEgZnV0dXJlIGVkaXRpb24uEmoKCWFwaV9sZXZlbBgCIAEoDjIXLnBiLkdvRmVhdHVyZXMuQVBJTGV2ZWxCPogBAZgBA5gBAaIBGhIVQVBJX0xFVkVMX1VOU1BFQ0lGSUVEGIQHogEPEgpBUElfT1BBUVVFGOkHsgEDCOgHEmsKEXN0cmlwX2VudW1fcHJlZml4GAMgASgOMh4ucGIuR29GZWF0dXJlcy5TdHJpcEVudW1QcmVmaXhCMIgBAZgBBpgBB5gBAaIBGxIWU1RSSVBfRU5VTV9QUkVGSVhfS0VFUBiEB7IBAwjpByJTCghBUElMZXZlbBIZChVBUElfTEVWRUxfVU5TUEVDSUZJRUQQABIMCghBUElfT1BFThABEg4KCkFQSV9IWUJSSUQQAhIOCgpBUElfT1BBUVVFEAMikgEKD1N0cmlwRW51bVByZWZpeBIhCh1TVFJJUF9FTlVNX1BSRUZJWF9VTlNQRUNJRklFRBAAEhoKFlNUUklQX0VOVU1fUFJFRklYX0tFRVAQARIjCh9TVFJJUF9FTlVNX1BSRUZJWF9HRU5FUkFURV9CT1RIEAISGwoXU1RSSVBfRU5VTV9QUkVGSVhfU1RSSVAQAzo8CgJnbxIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0GOoHIAEoCzIOLnBiLkdvRmVhdHVyZXNSAmdvQi9aLWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2dvZmVhdHVyZXNwYg", [descriptor_pb_js_1.file_google_protobuf_descriptor]); -/** - * Describes the message pb.GoFeatures. - * Use `create(GoFeaturesSchema)` to create a new message. - */ -exports.GoFeaturesSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_go_features, 0); -/** - * @generated from enum pb.GoFeatures.APILevel - */ -var GoFeatures_APILevel; -(function (GoFeatures_APILevel) { - /** - * API_LEVEL_UNSPECIFIED results in selecting the OPEN API, - * but needs to be a separate value to distinguish between - * an explicitly set api level or a missing api level. - * - * @generated from enum value: API_LEVEL_UNSPECIFIED = 0; - */ - GoFeatures_APILevel[GoFeatures_APILevel["API_LEVEL_UNSPECIFIED"] = 0] = "API_LEVEL_UNSPECIFIED"; - /** - * @generated from enum value: API_OPEN = 1; - */ - GoFeatures_APILevel[GoFeatures_APILevel["API_OPEN"] = 1] = "API_OPEN"; - /** - * @generated from enum value: API_HYBRID = 2; - */ - GoFeatures_APILevel[GoFeatures_APILevel["API_HYBRID"] = 2] = "API_HYBRID"; - /** - * @generated from enum value: API_OPAQUE = 3; - */ - GoFeatures_APILevel[GoFeatures_APILevel["API_OPAQUE"] = 3] = "API_OPAQUE"; -})(GoFeatures_APILevel || (exports.GoFeatures_APILevel = GoFeatures_APILevel = {})); -/** - * Describes the enum pb.GoFeatures.APILevel. - */ -exports.GoFeatures_APILevelSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_go_features, 0, 0); -/** - * @generated from enum pb.GoFeatures.StripEnumPrefix - */ -var GoFeatures_StripEnumPrefix; -(function (GoFeatures_StripEnumPrefix) { - /** - * @generated from enum value: STRIP_ENUM_PREFIX_UNSPECIFIED = 0; - */ - GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["UNSPECIFIED"] = 0] = "UNSPECIFIED"; - /** - * @generated from enum value: STRIP_ENUM_PREFIX_KEEP = 1; - */ - GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["KEEP"] = 1] = "KEEP"; - /** - * @generated from enum value: STRIP_ENUM_PREFIX_GENERATE_BOTH = 2; - */ - GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["GENERATE_BOTH"] = 2] = "GENERATE_BOTH"; - /** - * @generated from enum value: STRIP_ENUM_PREFIX_STRIP = 3; - */ - GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["STRIP"] = 3] = "STRIP"; -})(GoFeatures_StripEnumPrefix || (exports.GoFeatures_StripEnumPrefix = GoFeatures_StripEnumPrefix = {})); -/** - * Describes the enum pb.GoFeatures.StripEnumPrefix. - */ -exports.GoFeatures_StripEnumPrefixSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_go_features, 0, 1); -/** - * @generated from extension: optional pb.GoFeatures go = 1002; - */ -exports.go = (0, extension_js_1.extDesc)(exports.file_google_protobuf_go_features, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/java_features_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/java_features_pb.d.ts deleted file mode 100644 index 47f1503..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/java_features_pb.d.ts +++ /dev/null @@ -1,194 +0,0 @@ -import type { GenEnum, GenExtension, GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { FeatureSet } from "./descriptor_pb.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/java_features.proto. - */ -export declare const file_google_protobuf_java_features: GenFile; -/** - * @generated from message pb.JavaFeatures - */ -export type JavaFeatures = Message<"pb.JavaFeatures"> & { - /** - * Whether or not to treat an enum field as closed. This option is only - * applicable to enum fields, and will be removed in the future. It is - * consistent with the legacy behavior of using proto3 enum types for proto2 - * fields. - * - * @generated from field: optional bool legacy_closed_enum = 1; - */ - legacyClosedEnum: boolean; - /** - * @generated from field: optional pb.JavaFeatures.Utf8Validation utf8_validation = 2; - */ - utf8Validation: JavaFeatures_Utf8Validation; - /** - * Allows creation of large Java enums, extending beyond the standard - * constant limits imposed by the Java language. - * - * @generated from field: optional bool large_enum = 3; - */ - largeEnum: boolean; - /** - * Whether to use the old default outer class name scheme, or the new feature - * which adds a "Proto" suffix to the outer class name. - * - * Users will not be able to set this option, because we removed it in the - * same edition that it was introduced. But we use it to determine which - * naming scheme to use for outer class name defaults. - * - * @generated from field: optional bool use_old_outer_classname_default = 4; - */ - useOldOuterClassnameDefault: boolean; - /** - * Whether to nest the generated class in the generated file class. This is - * only applicable to *top-level* messages, enums, and services. - * - * @generated from field: optional pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5; - */ - nestInFileClass: JavaFeatures_NestInFileClassFeature_NestInFileClass; -}; -/** - * @generated from message pb.JavaFeatures - */ -export type JavaFeaturesJson = { - /** - * Whether or not to treat an enum field as closed. This option is only - * applicable to enum fields, and will be removed in the future. It is - * consistent with the legacy behavior of using proto3 enum types for proto2 - * fields. - * - * @generated from field: optional bool legacy_closed_enum = 1; - */ - legacyClosedEnum?: boolean; - /** - * @generated from field: optional pb.JavaFeatures.Utf8Validation utf8_validation = 2; - */ - utf8Validation?: JavaFeatures_Utf8ValidationJson; - /** - * Allows creation of large Java enums, extending beyond the standard - * constant limits imposed by the Java language. - * - * @generated from field: optional bool large_enum = 3; - */ - largeEnum?: boolean; - /** - * Whether to use the old default outer class name scheme, or the new feature - * which adds a "Proto" suffix to the outer class name. - * - * Users will not be able to set this option, because we removed it in the - * same edition that it was introduced. But we use it to determine which - * naming scheme to use for outer class name defaults. - * - * @generated from field: optional bool use_old_outer_classname_default = 4; - */ - useOldOuterClassnameDefault?: boolean; - /** - * Whether to nest the generated class in the generated file class. This is - * only applicable to *top-level* messages, enums, and services. - * - * @generated from field: optional pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5; - */ - nestInFileClass?: JavaFeatures_NestInFileClassFeature_NestInFileClassJson; -}; -/** - * Describes the message pb.JavaFeatures. - * Use `create(JavaFeaturesSchema)` to create a new message. - */ -export declare const JavaFeaturesSchema: GenMessage; -/** - * @generated from message pb.JavaFeatures.NestInFileClassFeature - */ -export type JavaFeatures_NestInFileClassFeature = Message<"pb.JavaFeatures.NestInFileClassFeature"> & {}; -/** - * @generated from message pb.JavaFeatures.NestInFileClassFeature - */ -export type JavaFeatures_NestInFileClassFeatureJson = {}; -/** - * Describes the message pb.JavaFeatures.NestInFileClassFeature. - * Use `create(JavaFeatures_NestInFileClassFeatureSchema)` to create a new message. - */ -export declare const JavaFeatures_NestInFileClassFeatureSchema: GenMessage; -/** - * @generated from enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass - */ -export declare enum JavaFeatures_NestInFileClassFeature_NestInFileClass { - /** - * Invalid default, which should never be used. - * - * @generated from enum value: NEST_IN_FILE_CLASS_UNKNOWN = 0; - */ - NEST_IN_FILE_CLASS_UNKNOWN = 0, - /** - * Do not nest the generated class in the file class. - * - * @generated from enum value: NO = 1; - */ - NO = 1, - /** - * Nest the generated class in the file class. - * - * @generated from enum value: YES = 2; - */ - YES = 2, - /** - * Fall back to the `java_multiple_files` option. Users won't be able to - * set this option. - * - * @generated from enum value: LEGACY = 3; - */ - LEGACY = 3 -} -/** - * @generated from enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass - */ -export type JavaFeatures_NestInFileClassFeature_NestInFileClassJson = "NEST_IN_FILE_CLASS_UNKNOWN" | "NO" | "YES" | "LEGACY"; -/** - * Describes the enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass. - */ -export declare const JavaFeatures_NestInFileClassFeature_NestInFileClassSchema: GenEnum; -/** - * The UTF8 validation strategy to use. - * - * @generated from enum pb.JavaFeatures.Utf8Validation - */ -export declare enum JavaFeatures_Utf8Validation { - /** - * Invalid default, which should never be used. - * - * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0; - */ - UTF8_VALIDATION_UNKNOWN = 0, - /** - * Respect the UTF8 validation behavior specified by the global - * utf8_validation feature. - * - * @generated from enum value: DEFAULT = 1; - */ - DEFAULT = 1, - /** - * Verifies UTF8 validity overriding the global utf8_validation - * feature. This represents the legacy java_string_check_utf8 option. - * - * @generated from enum value: VERIFY = 2; - */ - VERIFY = 2 -} -/** - * The UTF8 validation strategy to use. - * - * @generated from enum pb.JavaFeatures.Utf8Validation - */ -export type JavaFeatures_Utf8ValidationJson = "UTF8_VALIDATION_UNKNOWN" | "DEFAULT" | "VERIFY"; -/** - * Describes the enum pb.JavaFeatures.Utf8Validation. - */ -export declare const JavaFeatures_Utf8ValidationSchema: GenEnum; -/** - * @generated from extension: optional pb.JavaFeatures java = 1001; - */ -export declare const java: GenExtension; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/java_features_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/java_features_pb.js deleted file mode 100644 index 3b1780a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/java_features_pb.js +++ /dev/null @@ -1,106 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.java = exports.JavaFeatures_Utf8ValidationSchema = exports.JavaFeatures_Utf8Validation = exports.JavaFeatures_NestInFileClassFeature_NestInFileClassSchema = exports.JavaFeatures_NestInFileClassFeature_NestInFileClass = exports.JavaFeatures_NestInFileClassFeatureSchema = exports.JavaFeaturesSchema = exports.file_google_protobuf_java_features = void 0; -const file_js_1 = require("../../../../codegenv2/file.js"); -const descriptor_pb_js_1 = require("./descriptor_pb.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -const enum_js_1 = require("../../../../codegenv2/enum.js"); -const extension_js_1 = require("../../../../codegenv2/extension.js"); -/** - * Describes the file google/protobuf/java_features.proto. - */ -exports.file_google_protobuf_java_features = (0, file_js_1.fileDesc)("CiNnb29nbGUvcHJvdG9idWYvamF2YV9mZWF0dXJlcy5wcm90bxICcGIigwgKDEphdmFGZWF0dXJlcxL+AQoSbGVnYWN5X2Nsb3NlZF9lbnVtGAEgASgIQuEBiAEBmAEEmAEBogEJEgR0cnVlGIQHogEKEgVmYWxzZRjnB7IBuwEI6AcQ6AcasgFUaGUgbGVnYWN5IGNsb3NlZCBlbnVtIGJlaGF2aW9yIGluIEphdmEgaXMgZGVwcmVjYXRlZCBhbmQgaXMgc2NoZWR1bGVkIHRvIGJlIHJlbW92ZWQgaW4gZWRpdGlvbiAyMDI1LiAgU2VlIGh0dHA6Ly9wcm90b2J1Zi5kZXYvcHJvZ3JhbW1pbmctZ3VpZGVzL2VudW0vI2phdmEgZm9yIG1vcmUgaW5mb3JtYXRpb24uEp8CCg91dGY4X3ZhbGlkYXRpb24YAiABKA4yHy5wYi5KYXZhRmVhdHVyZXMuVXRmOFZhbGlkYXRpb25C5AGIAQGYAQSYAQGiAQwSB0RFRkFVTFQYhAeyAcgBCOgHEOkHGr8BVGhlIEphdmEtc3BlY2lmaWMgdXRmOCB2YWxpZGF0aW9uIGZlYXR1cmUgaXMgZGVwcmVjYXRlZCBhbmQgaXMgc2NoZWR1bGVkIHRvIGJlIHJlbW92ZWQgaW4gZWRpdGlvbiAyMDI1LiAgVXRmOCB2YWxpZGF0aW9uIGJlaGF2aW9yIHNob3VsZCB1c2UgdGhlIGdsb2JhbCBjcm9zcy1sYW5ndWFnZSB1dGY4X3ZhbGlkYXRpb24gZmVhdHVyZS4SMAoKbGFyZ2VfZW51bRgDIAEoCEIciAEBmAEGmAEBogEKEgVmYWxzZRiEB7IBAwjpBxJRCh91c2Vfb2xkX291dGVyX2NsYXNzbmFtZV9kZWZhdWx0GAQgASgIQiiIAQGYAQGiAQkSBHRydWUYhAeiAQoSBWZhbHNlGOkHsgEGCOkHIOkHEn8KEm5lc3RfaW5fZmlsZV9jbGFzcxgFIAEoDjI3LnBiLkphdmFGZWF0dXJlcy5OZXN0SW5GaWxlQ2xhc3NGZWF0dXJlLk5lc3RJbkZpbGVDbGFzc0IqiAEBmAEDmAEGmAEIogELEgZMRUdBQ1kYhAeiAQcSAk5PGOkHsgEDCOkHGnwKFk5lc3RJbkZpbGVDbGFzc0ZlYXR1cmUiWAoPTmVzdEluRmlsZUNsYXNzEh4KGk5FU1RfSU5fRklMRV9DTEFTU19VTktOT1dOEAASBgoCTk8QARIHCgNZRVMQAhIUCgZMRUdBQ1kQAxoIIgYI6Qcg6QdKCAgBEICAgIACIkYKDlV0ZjhWYWxpZGF0aW9uEhsKF1VURjhfVkFMSURBVElPTl9VTktOT1dOEAASCwoHREVGQVVMVBABEgoKBlZFUklGWRACSgQIBhAHOkIKBGphdmESGy5nb29nbGUucHJvdG9idWYuRmVhdHVyZVNldBjpByABKAsyEC5wYi5KYXZhRmVhdHVyZXNSBGphdmFCKAoTY29tLmdvb2dsZS5wcm90b2J1ZkIRSmF2YUZlYXR1cmVzUHJvdG8", [descriptor_pb_js_1.file_google_protobuf_descriptor]); -/** - * Describes the message pb.JavaFeatures. - * Use `create(JavaFeaturesSchema)` to create a new message. - */ -exports.JavaFeaturesSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_java_features, 0); -/** - * Describes the message pb.JavaFeatures.NestInFileClassFeature. - * Use `create(JavaFeatures_NestInFileClassFeatureSchema)` to create a new message. - */ -exports.JavaFeatures_NestInFileClassFeatureSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_java_features, 0, 0); -/** - * @generated from enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass - */ -var JavaFeatures_NestInFileClassFeature_NestInFileClass; -(function (JavaFeatures_NestInFileClassFeature_NestInFileClass) { - /** - * Invalid default, which should never be used. - * - * @generated from enum value: NEST_IN_FILE_CLASS_UNKNOWN = 0; - */ - JavaFeatures_NestInFileClassFeature_NestInFileClass[JavaFeatures_NestInFileClassFeature_NestInFileClass["NEST_IN_FILE_CLASS_UNKNOWN"] = 0] = "NEST_IN_FILE_CLASS_UNKNOWN"; - /** - * Do not nest the generated class in the file class. - * - * @generated from enum value: NO = 1; - */ - JavaFeatures_NestInFileClassFeature_NestInFileClass[JavaFeatures_NestInFileClassFeature_NestInFileClass["NO"] = 1] = "NO"; - /** - * Nest the generated class in the file class. - * - * @generated from enum value: YES = 2; - */ - JavaFeatures_NestInFileClassFeature_NestInFileClass[JavaFeatures_NestInFileClassFeature_NestInFileClass["YES"] = 2] = "YES"; - /** - * Fall back to the `java_multiple_files` option. Users won't be able to - * set this option. - * - * @generated from enum value: LEGACY = 3; - */ - JavaFeatures_NestInFileClassFeature_NestInFileClass[JavaFeatures_NestInFileClassFeature_NestInFileClass["LEGACY"] = 3] = "LEGACY"; -})(JavaFeatures_NestInFileClassFeature_NestInFileClass || (exports.JavaFeatures_NestInFileClassFeature_NestInFileClass = JavaFeatures_NestInFileClassFeature_NestInFileClass = {})); -/** - * Describes the enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass. - */ -exports.JavaFeatures_NestInFileClassFeature_NestInFileClassSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_java_features, 0, 0, 0); -/** - * The UTF8 validation strategy to use. - * - * @generated from enum pb.JavaFeatures.Utf8Validation - */ -var JavaFeatures_Utf8Validation; -(function (JavaFeatures_Utf8Validation) { - /** - * Invalid default, which should never be used. - * - * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0; - */ - JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN"; - /** - * Respect the UTF8 validation behavior specified by the global - * utf8_validation feature. - * - * @generated from enum value: DEFAULT = 1; - */ - JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["DEFAULT"] = 1] = "DEFAULT"; - /** - * Verifies UTF8 validity overriding the global utf8_validation - * feature. This represents the legacy java_string_check_utf8 option. - * - * @generated from enum value: VERIFY = 2; - */ - JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["VERIFY"] = 2] = "VERIFY"; -})(JavaFeatures_Utf8Validation || (exports.JavaFeatures_Utf8Validation = JavaFeatures_Utf8Validation = {})); -/** - * Describes the enum pb.JavaFeatures.Utf8Validation. - */ -exports.JavaFeatures_Utf8ValidationSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_java_features, 0, 0); -/** - * @generated from extension: optional pb.JavaFeatures java = 1001; - */ -exports.java = (0, extension_js_1.extDesc)(exports.file_google_protobuf_java_features, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/source_context_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/source_context_pb.d.ts deleted file mode 100644 index d77cea4..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/source_context_pb.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/source_context.proto. - */ -export declare const file_google_protobuf_source_context: GenFile; -/** - * `SourceContext` represents information about the source of a - * protobuf element, like the file in which it is defined. - * - * @generated from message google.protobuf.SourceContext - */ -export type SourceContext = Message<"google.protobuf.SourceContext"> & { - /** - * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source_context.proto"`. - * - * @generated from field: string file_name = 1; - */ - fileName: string; -}; -/** - * `SourceContext` represents information about the source of a - * protobuf element, like the file in which it is defined. - * - * @generated from message google.protobuf.SourceContext - */ -export type SourceContextJson = { - /** - * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source_context.proto"`. - * - * @generated from field: string file_name = 1; - */ - fileName?: string; -}; -/** - * Describes the message google.protobuf.SourceContext. - * Use `create(SourceContextSchema)` to create a new message. - */ -export declare const SourceContextSchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/source_context_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/source_context_pb.js deleted file mode 100644 index cee461e..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/source_context_pb.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SourceContextSchema = exports.file_google_protobuf_source_context = void 0; -const file_js_1 = require("../../../../codegenv2/file.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -/** - * Describes the file google/protobuf/source_context.proto. - */ -exports.file_google_protobuf_source_context = (0, file_js_1.fileDesc)("CiRnb29nbGUvcHJvdG9idWYvc291cmNlX2NvbnRleHQucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEoCUKKAQoTY29tLmdvb2dsZS5wcm90b2J1ZkISU291cmNlQ29udGV4dFByb3RvUAFaNmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3NvdXJjZWNvbnRleHRwYqICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJvdG8z"); -/** - * Describes the message google.protobuf.SourceContext. - * Use `create(SourceContextSchema)` to create a new message. - */ -exports.SourceContextSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_source_context, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/struct_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/struct_pb.d.ts deleted file mode 100644 index 1bb79e7..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/struct_pb.d.ts +++ /dev/null @@ -1,195 +0,0 @@ -import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -import type { JsonObject, JsonValue } from "../../../../json-value.js"; -/** - * Describes the file google/protobuf/struct.proto. - */ -export declare const file_google_protobuf_struct: GenFile; -/** - * `Struct` represents a structured data value, consisting of fields - * which map to dynamically typed values. In some languages, `Struct` - * might be supported by a native representation. For example, in - * scripting languages like JS a struct is represented as an - * object. The details of that representation are described together - * with the proto support for the language. - * - * The JSON representation for `Struct` is JSON object. - * - * @generated from message google.protobuf.Struct - */ -export type Struct = Message<"google.protobuf.Struct"> & { - /** - * Unordered map of dynamically typed values. - * - * @generated from field: map fields = 1; - */ - fields: { - [key: string]: Value; - }; -}; -/** - * `Struct` represents a structured data value, consisting of fields - * which map to dynamically typed values. In some languages, `Struct` - * might be supported by a native representation. For example, in - * scripting languages like JS a struct is represented as an - * object. The details of that representation are described together - * with the proto support for the language. - * - * The JSON representation for `Struct` is JSON object. - * - * @generated from message google.protobuf.Struct - */ -export type StructJson = JsonObject; -/** - * Describes the message google.protobuf.Struct. - * Use `create(StructSchema)` to create a new message. - */ -export declare const StructSchema: GenMessage; -/** - * `Value` represents a dynamically typed value which can be either - * null, a number, a string, a boolean, a recursive struct value, or a - * list of values. A producer of value is expected to set one of these - * variants. Absence of any variant indicates an error. - * - * The JSON representation for `Value` is JSON value. - * - * @generated from message google.protobuf.Value - */ -export type Value = Message<"google.protobuf.Value"> & { - /** - * The kind of value. - * - * @generated from oneof google.protobuf.Value.kind - */ - kind: { - /** - * Represents a null value. - * - * @generated from field: google.protobuf.NullValue null_value = 1; - */ - value: NullValue; - case: "nullValue"; - } | { - /** - * Represents a double value. - * - * @generated from field: double number_value = 2; - */ - value: number; - case: "numberValue"; - } | { - /** - * Represents a string value. - * - * @generated from field: string string_value = 3; - */ - value: string; - case: "stringValue"; - } | { - /** - * Represents a boolean value. - * - * @generated from field: bool bool_value = 4; - */ - value: boolean; - case: "boolValue"; - } | { - /** - * Represents a structured value. - * - * @generated from field: google.protobuf.Struct struct_value = 5; - */ - value: Struct; - case: "structValue"; - } | { - /** - * Represents a repeated `Value`. - * - * @generated from field: google.protobuf.ListValue list_value = 6; - */ - value: ListValue; - case: "listValue"; - } | { - case: undefined; - value?: undefined; - }; -}; -/** - * `Value` represents a dynamically typed value which can be either - * null, a number, a string, a boolean, a recursive struct value, or a - * list of values. A producer of value is expected to set one of these - * variants. Absence of any variant indicates an error. - * - * The JSON representation for `Value` is JSON value. - * - * @generated from message google.protobuf.Value - */ -export type ValueJson = JsonValue; -/** - * Describes the message google.protobuf.Value. - * Use `create(ValueSchema)` to create a new message. - */ -export declare const ValueSchema: GenMessage; -/** - * `ListValue` is a wrapper around a repeated field of values. - * - * The JSON representation for `ListValue` is JSON array. - * - * @generated from message google.protobuf.ListValue - */ -export type ListValue = Message<"google.protobuf.ListValue"> & { - /** - * Repeated field of dynamically typed values. - * - * @generated from field: repeated google.protobuf.Value values = 1; - */ - values: Value[]; -}; -/** - * `ListValue` is a wrapper around a repeated field of values. - * - * The JSON representation for `ListValue` is JSON array. - * - * @generated from message google.protobuf.ListValue - */ -export type ListValueJson = JsonValue[]; -/** - * Describes the message google.protobuf.ListValue. - * Use `create(ListValueSchema)` to create a new message. - */ -export declare const ListValueSchema: GenMessage; -/** - * `NullValue` is a singleton enumeration to represent the null value for the - * `Value` type union. - * - * The JSON representation for `NullValue` is JSON `null`. - * - * @generated from enum google.protobuf.NullValue - */ -export declare enum NullValue { - /** - * Null value. - * - * @generated from enum value: NULL_VALUE = 0; - */ - NULL_VALUE = 0 -} -/** - * `NullValue` is a singleton enumeration to represent the null value for the - * `Value` type union. - * - * The JSON representation for `NullValue` is JSON `null`. - * - * @generated from enum google.protobuf.NullValue - */ -export type NullValueJson = null; -/** - * Describes the enum google.protobuf.NullValue. - */ -export declare const NullValueSchema: GenEnum; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/struct_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/struct_pb.js deleted file mode 100644 index 928494d..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/struct_pb.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NullValueSchema = exports.NullValue = exports.ListValueSchema = exports.ValueSchema = exports.StructSchema = exports.file_google_protobuf_struct = void 0; -const file_js_1 = require("../../../../codegenv2/file.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -const enum_js_1 = require("../../../../codegenv2/enum.js"); -/** - * Describes the file google/protobuf/struct.proto. - */ -exports.file_google_protobuf_struct = (0, file_js_1.fileDesc)("Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9idWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9idWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToCOAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoMc3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8KDHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RWYWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAAQn8KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAFaL2dvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3N0cnVjdHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"); -/** - * Describes the message google.protobuf.Struct. - * Use `create(StructSchema)` to create a new message. - */ -exports.StructSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_struct, 0); -/** - * Describes the message google.protobuf.Value. - * Use `create(ValueSchema)` to create a new message. - */ -exports.ValueSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_struct, 1); -/** - * Describes the message google.protobuf.ListValue. - * Use `create(ListValueSchema)` to create a new message. - */ -exports.ListValueSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_struct, 2); -/** - * `NullValue` is a singleton enumeration to represent the null value for the - * `Value` type union. - * - * The JSON representation for `NullValue` is JSON `null`. - * - * @generated from enum google.protobuf.NullValue - */ -var NullValue; -(function (NullValue) { - /** - * Null value. - * - * @generated from enum value: NULL_VALUE = 0; - */ - NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE"; -})(NullValue || (exports.NullValue = NullValue = {})); -/** - * Describes the enum google.protobuf.NullValue. - */ -exports.NullValueSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_struct, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.d.ts deleted file mode 100644 index 84f5202..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.d.ts +++ /dev/null @@ -1,221 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/timestamp.proto. - */ -export declare const file_google_protobuf_timestamp: GenFile; -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * Example 5: Compute Timestamp from Java `Instant.now()`. - * - * Instant now = Instant.now(); - * - * Timestamp timestamp = - * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - * .setNanos(now.getNano()).build(); - * - * Example 6: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - * ) to obtain a formatter capable of generating timestamps in this format. - * - * - * @generated from message google.protobuf.Timestamp - */ -export type Timestamp = Message<"google.protobuf.Timestamp"> & { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - * - * @generated from field: int64 seconds = 1; - */ - seconds: bigint; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - * - * @generated from field: int32 nanos = 2; - */ - nanos: number; -}; -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * Example 5: Compute Timestamp from Java `Instant.now()`. - * - * Instant now = Instant.now(); - * - * Timestamp timestamp = - * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - * .setNanos(now.getNano()).build(); - * - * Example 6: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - * ) to obtain a formatter capable of generating timestamps in this format. - * - * - * @generated from message google.protobuf.Timestamp - */ -export type TimestampJson = string; -/** - * Describes the message google.protobuf.Timestamp. - * Use `create(TimestampSchema)` to create a new message. - */ -export declare const TimestampSchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.js deleted file mode 100644 index cbca178..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TimestampSchema = exports.file_google_protobuf_timestamp = void 0; -const file_js_1 = require("../../../../codegenv2/file.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -/** - * Describes the file google/protobuf/timestamp.proto. - */ -exports.file_google_protobuf_timestamp = (0, file_js_1.fileDesc)("Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJvdG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MYAiABKAVChQEKE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb3RvUAFaMmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3RpbWVzdGFtcHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"); -/** - * Describes the message google.protobuf.Timestamp. - * Use `create(TimestampSchema)` to create a new message. - */ -exports.TimestampSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_timestamp, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/type_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/type_pb.d.ts deleted file mode 100644 index 2499d6f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/type_pb.d.ts +++ /dev/null @@ -1,722 +0,0 @@ -import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Any, AnyJson } from "./any_pb.js"; -import type { SourceContext, SourceContextJson } from "./source_context_pb.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/type.proto. - */ -export declare const file_google_protobuf_type: GenFile; -/** - * A protocol buffer message type. - * - * New usages of this message as an alternative to DescriptorProto are strongly - * discouraged. This message does not reliability preserve all information - * necessary to model the schema and preserve semantics. Instead make use of - * FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Type - */ -export type Type = Message<"google.protobuf.Type"> & { - /** - * The fully qualified message name. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * The list of fields. - * - * @generated from field: repeated google.protobuf.Field fields = 2; - */ - fields: Field[]; - /** - * The list of types appearing in `oneof` definitions in this type. - * - * @generated from field: repeated string oneofs = 3; - */ - oneofs: string[]; - /** - * The protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 4; - */ - options: Option[]; - /** - * The source context. - * - * @generated from field: google.protobuf.SourceContext source_context = 5; - */ - sourceContext?: SourceContext; - /** - * The source syntax. - * - * @generated from field: google.protobuf.Syntax syntax = 6; - */ - syntax: Syntax; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * @generated from field: string edition = 7; - */ - edition: string; -}; -/** - * A protocol buffer message type. - * - * New usages of this message as an alternative to DescriptorProto are strongly - * discouraged. This message does not reliability preserve all information - * necessary to model the schema and preserve semantics. Instead make use of - * FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Type - */ -export type TypeJson = { - /** - * The fully qualified message name. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * The list of fields. - * - * @generated from field: repeated google.protobuf.Field fields = 2; - */ - fields?: FieldJson[]; - /** - * The list of types appearing in `oneof` definitions in this type. - * - * @generated from field: repeated string oneofs = 3; - */ - oneofs?: string[]; - /** - * The protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 4; - */ - options?: OptionJson[]; - /** - * The source context. - * - * @generated from field: google.protobuf.SourceContext source_context = 5; - */ - sourceContext?: SourceContextJson; - /** - * The source syntax. - * - * @generated from field: google.protobuf.Syntax syntax = 6; - */ - syntax?: SyntaxJson; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * @generated from field: string edition = 7; - */ - edition?: string; -}; -/** - * Describes the message google.protobuf.Type. - * Use `create(TypeSchema)` to create a new message. - */ -export declare const TypeSchema: GenMessage; -/** - * A single field of a message type. - * - * New usages of this message as an alternative to FieldDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Field - */ -export type Field = Message<"google.protobuf.Field"> & { - /** - * The field type. - * - * @generated from field: google.protobuf.Field.Kind kind = 1; - */ - kind: Field_Kind; - /** - * The field cardinality. - * - * @generated from field: google.protobuf.Field.Cardinality cardinality = 2; - */ - cardinality: Field_Cardinality; - /** - * The field number. - * - * @generated from field: int32 number = 3; - */ - number: number; - /** - * The field name. - * - * @generated from field: string name = 4; - */ - name: string; - /** - * The field type URL, without the scheme, for message or enumeration - * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - * - * @generated from field: string type_url = 6; - */ - typeUrl: string; - /** - * The index of the field type in `Type.oneofs`, for message or enumeration - * types. The first type has index 1; zero means the type is not in the list. - * - * @generated from field: int32 oneof_index = 7; - */ - oneofIndex: number; - /** - * Whether to use alternative packed wire representation. - * - * @generated from field: bool packed = 8; - */ - packed: boolean; - /** - * The protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 9; - */ - options: Option[]; - /** - * The field JSON name. - * - * @generated from field: string json_name = 10; - */ - jsonName: string; - /** - * The string value of the default value of this field. Proto2 syntax only. - * - * @generated from field: string default_value = 11; - */ - defaultValue: string; -}; -/** - * A single field of a message type. - * - * New usages of this message as an alternative to FieldDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Field - */ -export type FieldJson = { - /** - * The field type. - * - * @generated from field: google.protobuf.Field.Kind kind = 1; - */ - kind?: Field_KindJson; - /** - * The field cardinality. - * - * @generated from field: google.protobuf.Field.Cardinality cardinality = 2; - */ - cardinality?: Field_CardinalityJson; - /** - * The field number. - * - * @generated from field: int32 number = 3; - */ - number?: number; - /** - * The field name. - * - * @generated from field: string name = 4; - */ - name?: string; - /** - * The field type URL, without the scheme, for message or enumeration - * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - * - * @generated from field: string type_url = 6; - */ - typeUrl?: string; - /** - * The index of the field type in `Type.oneofs`, for message or enumeration - * types. The first type has index 1; zero means the type is not in the list. - * - * @generated from field: int32 oneof_index = 7; - */ - oneofIndex?: number; - /** - * Whether to use alternative packed wire representation. - * - * @generated from field: bool packed = 8; - */ - packed?: boolean; - /** - * The protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 9; - */ - options?: OptionJson[]; - /** - * The field JSON name. - * - * @generated from field: string json_name = 10; - */ - jsonName?: string; - /** - * The string value of the default value of this field. Proto2 syntax only. - * - * @generated from field: string default_value = 11; - */ - defaultValue?: string; -}; -/** - * Describes the message google.protobuf.Field. - * Use `create(FieldSchema)` to create a new message. - */ -export declare const FieldSchema: GenMessage; -/** - * Basic field types. - * - * @generated from enum google.protobuf.Field.Kind - */ -export declare enum Field_Kind { - /** - * Field type unknown. - * - * @generated from enum value: TYPE_UNKNOWN = 0; - */ - TYPE_UNKNOWN = 0, - /** - * Field type double. - * - * @generated from enum value: TYPE_DOUBLE = 1; - */ - TYPE_DOUBLE = 1, - /** - * Field type float. - * - * @generated from enum value: TYPE_FLOAT = 2; - */ - TYPE_FLOAT = 2, - /** - * Field type int64. - * - * @generated from enum value: TYPE_INT64 = 3; - */ - TYPE_INT64 = 3, - /** - * Field type uint64. - * - * @generated from enum value: TYPE_UINT64 = 4; - */ - TYPE_UINT64 = 4, - /** - * Field type int32. - * - * @generated from enum value: TYPE_INT32 = 5; - */ - TYPE_INT32 = 5, - /** - * Field type fixed64. - * - * @generated from enum value: TYPE_FIXED64 = 6; - */ - TYPE_FIXED64 = 6, - /** - * Field type fixed32. - * - * @generated from enum value: TYPE_FIXED32 = 7; - */ - TYPE_FIXED32 = 7, - /** - * Field type bool. - * - * @generated from enum value: TYPE_BOOL = 8; - */ - TYPE_BOOL = 8, - /** - * Field type string. - * - * @generated from enum value: TYPE_STRING = 9; - */ - TYPE_STRING = 9, - /** - * Field type group. Proto2 syntax only, and deprecated. - * - * @generated from enum value: TYPE_GROUP = 10; - */ - TYPE_GROUP = 10, - /** - * Field type message. - * - * @generated from enum value: TYPE_MESSAGE = 11; - */ - TYPE_MESSAGE = 11, - /** - * Field type bytes. - * - * @generated from enum value: TYPE_BYTES = 12; - */ - TYPE_BYTES = 12, - /** - * Field type uint32. - * - * @generated from enum value: TYPE_UINT32 = 13; - */ - TYPE_UINT32 = 13, - /** - * Field type enum. - * - * @generated from enum value: TYPE_ENUM = 14; - */ - TYPE_ENUM = 14, - /** - * Field type sfixed32. - * - * @generated from enum value: TYPE_SFIXED32 = 15; - */ - TYPE_SFIXED32 = 15, - /** - * Field type sfixed64. - * - * @generated from enum value: TYPE_SFIXED64 = 16; - */ - TYPE_SFIXED64 = 16, - /** - * Field type sint32. - * - * @generated from enum value: TYPE_SINT32 = 17; - */ - TYPE_SINT32 = 17, - /** - * Field type sint64. - * - * @generated from enum value: TYPE_SINT64 = 18; - */ - TYPE_SINT64 = 18 -} -/** - * Basic field types. - * - * @generated from enum google.protobuf.Field.Kind - */ -export type Field_KindJson = "TYPE_UNKNOWN" | "TYPE_DOUBLE" | "TYPE_FLOAT" | "TYPE_INT64" | "TYPE_UINT64" | "TYPE_INT32" | "TYPE_FIXED64" | "TYPE_FIXED32" | "TYPE_BOOL" | "TYPE_STRING" | "TYPE_GROUP" | "TYPE_MESSAGE" | "TYPE_BYTES" | "TYPE_UINT32" | "TYPE_ENUM" | "TYPE_SFIXED32" | "TYPE_SFIXED64" | "TYPE_SINT32" | "TYPE_SINT64"; -/** - * Describes the enum google.protobuf.Field.Kind. - */ -export declare const Field_KindSchema: GenEnum; -/** - * Whether a field is optional, required, or repeated. - * - * @generated from enum google.protobuf.Field.Cardinality - */ -export declare enum Field_Cardinality { - /** - * For fields with unknown cardinality. - * - * @generated from enum value: CARDINALITY_UNKNOWN = 0; - */ - UNKNOWN = 0, - /** - * For optional fields. - * - * @generated from enum value: CARDINALITY_OPTIONAL = 1; - */ - OPTIONAL = 1, - /** - * For required fields. Proto2 syntax only. - * - * @generated from enum value: CARDINALITY_REQUIRED = 2; - */ - REQUIRED = 2, - /** - * For repeated fields. - * - * @generated from enum value: CARDINALITY_REPEATED = 3; - */ - REPEATED = 3 -} -/** - * Whether a field is optional, required, or repeated. - * - * @generated from enum google.protobuf.Field.Cardinality - */ -export type Field_CardinalityJson = "CARDINALITY_UNKNOWN" | "CARDINALITY_OPTIONAL" | "CARDINALITY_REQUIRED" | "CARDINALITY_REPEATED"; -/** - * Describes the enum google.protobuf.Field.Cardinality. - */ -export declare const Field_CardinalitySchema: GenEnum; -/** - * Enum type definition. - * - * New usages of this message as an alternative to EnumDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Enum - */ -export type Enum = Message<"google.protobuf.Enum"> & { - /** - * Enum type name. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * Enum value definitions. - * - * @generated from field: repeated google.protobuf.EnumValue enumvalue = 2; - */ - enumvalue: EnumValue[]; - /** - * Protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 3; - */ - options: Option[]; - /** - * The source context. - * - * @generated from field: google.protobuf.SourceContext source_context = 4; - */ - sourceContext?: SourceContext; - /** - * The source syntax. - * - * @generated from field: google.protobuf.Syntax syntax = 5; - */ - syntax: Syntax; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * @generated from field: string edition = 6; - */ - edition: string; -}; -/** - * Enum type definition. - * - * New usages of this message as an alternative to EnumDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Enum - */ -export type EnumJson = { - /** - * Enum type name. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * Enum value definitions. - * - * @generated from field: repeated google.protobuf.EnumValue enumvalue = 2; - */ - enumvalue?: EnumValueJson[]; - /** - * Protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 3; - */ - options?: OptionJson[]; - /** - * The source context. - * - * @generated from field: google.protobuf.SourceContext source_context = 4; - */ - sourceContext?: SourceContextJson; - /** - * The source syntax. - * - * @generated from field: google.protobuf.Syntax syntax = 5; - */ - syntax?: SyntaxJson; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * @generated from field: string edition = 6; - */ - edition?: string; -}; -/** - * Describes the message google.protobuf.Enum. - * Use `create(EnumSchema)` to create a new message. - */ -export declare const EnumSchema: GenMessage; -/** - * Enum value definition. - * - * New usages of this message as an alternative to EnumValueDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.EnumValue - */ -export type EnumValue = Message<"google.protobuf.EnumValue"> & { - /** - * Enum value name. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * Enum value number. - * - * @generated from field: int32 number = 2; - */ - number: number; - /** - * Protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 3; - */ - options: Option[]; -}; -/** - * Enum value definition. - * - * New usages of this message as an alternative to EnumValueDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.EnumValue - */ -export type EnumValueJson = { - /** - * Enum value name. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * Enum value number. - * - * @generated from field: int32 number = 2; - */ - number?: number; - /** - * Protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 3; - */ - options?: OptionJson[]; -}; -/** - * Describes the message google.protobuf.EnumValue. - * Use `create(EnumValueSchema)` to create a new message. - */ -export declare const EnumValueSchema: GenMessage; -/** - * A protocol buffer option, which can be attached to a message, field, - * enumeration, etc. - * - * New usages of this message as an alternative to FileOptions, MessageOptions, - * FieldOptions, EnumOptions, EnumValueOptions, ServiceOptions, or MethodOptions - * are strongly discouraged. - * - * @generated from message google.protobuf.Option - */ -export type Option = Message<"google.protobuf.Option"> & { - /** - * The option's name. For protobuf built-in options (options defined in - * descriptor.proto), this is the short name. For example, `"map_entry"`. - * For custom options, it should be the fully-qualified name. For example, - * `"google.api.http"`. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * - * @generated from field: google.protobuf.Any value = 2; - */ - value?: Any; -}; -/** - * A protocol buffer option, which can be attached to a message, field, - * enumeration, etc. - * - * New usages of this message as an alternative to FileOptions, MessageOptions, - * FieldOptions, EnumOptions, EnumValueOptions, ServiceOptions, or MethodOptions - * are strongly discouraged. - * - * @generated from message google.protobuf.Option - */ -export type OptionJson = { - /** - * The option's name. For protobuf built-in options (options defined in - * descriptor.proto), this is the short name. For example, `"map_entry"`. - * For custom options, it should be the fully-qualified name. For example, - * `"google.api.http"`. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * - * @generated from field: google.protobuf.Any value = 2; - */ - value?: AnyJson; -}; -/** - * Describes the message google.protobuf.Option. - * Use `create(OptionSchema)` to create a new message. - */ -export declare const OptionSchema: GenMessage; -/** - * The syntax in which a protocol buffer element is defined. - * - * @generated from enum google.protobuf.Syntax - */ -export declare enum Syntax { - /** - * Syntax `proto2`. - * - * @generated from enum value: SYNTAX_PROTO2 = 0; - */ - PROTO2 = 0, - /** - * Syntax `proto3`. - * - * @generated from enum value: SYNTAX_PROTO3 = 1; - */ - PROTO3 = 1, - /** - * Syntax `editions`. - * - * @generated from enum value: SYNTAX_EDITIONS = 2; - */ - EDITIONS = 2 -} -/** - * The syntax in which a protocol buffer element is defined. - * - * @generated from enum google.protobuf.Syntax - */ -export type SyntaxJson = "SYNTAX_PROTO2" | "SYNTAX_PROTO3" | "SYNTAX_EDITIONS"; -/** - * Describes the enum google.protobuf.Syntax. - */ -export declare const SyntaxSchema: GenEnum; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/type_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/type_pb.js deleted file mode 100644 index 12110ed..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/type_pb.js +++ /dev/null @@ -1,242 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SyntaxSchema = exports.Syntax = exports.OptionSchema = exports.EnumValueSchema = exports.EnumSchema = exports.Field_CardinalitySchema = exports.Field_Cardinality = exports.Field_KindSchema = exports.Field_Kind = exports.FieldSchema = exports.TypeSchema = exports.file_google_protobuf_type = void 0; -const file_js_1 = require("../../../../codegenv2/file.js"); -const any_pb_js_1 = require("./any_pb.js"); -const source_context_pb_js_1 = require("./source_context_pb.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -const enum_js_1 = require("../../../../codegenv2/enum.js"); -/** - * Describes the file google/protobuf/type.proto. - */ -exports.file_google_protobuf_type = (0, file_js_1.fileDesc)("Chpnb29nbGUvcHJvdG9idWYvdHlwZS5wcm90bxIPZ29vZ2xlLnByb3RvYnVmIugBCgRUeXBlEgwKBG5hbWUYASABKAkSJgoGZmllbGRzGAIgAygLMhYuZ29vZ2xlLnByb3RvYnVmLkZpZWxkEg4KBm9uZW9mcxgDIAMoCRIoCgdvcHRpb25zGAQgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhI2Cg5zb3VyY2VfY29udGV4dBgFIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb250ZXh0EicKBnN5bnRheBgGIAEoDjIXLmdvb2dsZS5wcm90b2J1Zi5TeW50YXgSDwoHZWRpdGlvbhgHIAEoCSLVBQoFRmllbGQSKQoEa2luZBgBIAEoDjIbLmdvb2dsZS5wcm90b2J1Zi5GaWVsZC5LaW5kEjcKC2NhcmRpbmFsaXR5GAIgASgOMiIuZ29vZ2xlLnByb3RvYnVmLkZpZWxkLkNhcmRpbmFsaXR5Eg4KBm51bWJlchgDIAEoBRIMCgRuYW1lGAQgASgJEhAKCHR5cGVfdXJsGAYgASgJEhMKC29uZW9mX2luZGV4GAcgASgFEg4KBnBhY2tlZBgIIAEoCBIoCgdvcHRpb25zGAkgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhIRCglqc29uX25hbWUYCiABKAkSFQoNZGVmYXVsdF92YWx1ZRgLIAEoCSLIAgoES2luZBIQCgxUWVBFX1VOS05PV04QABIPCgtUWVBFX0RPVUJMRRABEg4KClRZUEVfRkxPQVQQAhIOCgpUWVBFX0lOVDY0EAMSDwoLVFlQRV9VSU5UNjQQBBIOCgpUWVBFX0lOVDMyEAUSEAoMVFlQRV9GSVhFRDY0EAYSEAoMVFlQRV9GSVhFRDMyEAcSDQoJVFlQRV9CT09MEAgSDwoLVFlQRV9TVFJJTkcQCRIOCgpUWVBFX0dST1VQEAoSEAoMVFlQRV9NRVNTQUdFEAsSDgoKVFlQRV9CWVRFUxAMEg8KC1RZUEVfVUlOVDMyEA0SDQoJVFlQRV9FTlVNEA4SEQoNVFlQRV9TRklYRUQzMhAPEhEKDVRZUEVfU0ZJWEVENjQQEBIPCgtUWVBFX1NJTlQzMhAREg8KC1RZUEVfU0lOVDY0EBIidAoLQ2FyZGluYWxpdHkSFwoTQ0FSRElOQUxJVFlfVU5LTk9XThAAEhgKFENBUkRJTkFMSVRZX09QVElPTkFMEAESGAoUQ0FSRElOQUxJVFlfUkVRVUlSRUQQAhIYChRDQVJESU5BTElUWV9SRVBFQVRFRBADIt8BCgRFbnVtEgwKBG5hbWUYASABKAkSLQoJZW51bXZhbHVlGAIgAygLMhouZ29vZ2xlLnByb3RvYnVmLkVudW1WYWx1ZRIoCgdvcHRpb25zGAMgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhI2Cg5zb3VyY2VfY29udGV4dBgEIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb250ZXh0EicKBnN5bnRheBgFIAEoDjIXLmdvb2dsZS5wcm90b2J1Zi5TeW50YXgSDwoHZWRpdGlvbhgGIAEoCSJTCglFbnVtVmFsdWUSDAoEbmFtZRgBIAEoCRIOCgZudW1iZXIYAiABKAUSKAoHb3B0aW9ucxgDIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5PcHRpb24iOwoGT3B0aW9uEgwKBG5hbWUYASABKAkSIwoFdmFsdWUYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55KkMKBlN5bnRheBIRCg1TWU5UQVhfUFJPVE8yEAASEQoNU1lOVEFYX1BST1RPMxABEhMKD1NZTlRBWF9FRElUSU9OUxACQnsKE2NvbS5nb29nbGUucHJvdG9idWZCCVR5cGVQcm90b1ABWi1nb29nbGUuZ29sYW5nLm9yZy9wcm90b2J1Zi90eXBlcy9rbm93bi90eXBlcGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw", [any_pb_js_1.file_google_protobuf_any, source_context_pb_js_1.file_google_protobuf_source_context]); -/** - * Describes the message google.protobuf.Type. - * Use `create(TypeSchema)` to create a new message. - */ -exports.TypeSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_type, 0); -/** - * Describes the message google.protobuf.Field. - * Use `create(FieldSchema)` to create a new message. - */ -exports.FieldSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_type, 1); -/** - * Basic field types. - * - * @generated from enum google.protobuf.Field.Kind - */ -var Field_Kind; -(function (Field_Kind) { - /** - * Field type unknown. - * - * @generated from enum value: TYPE_UNKNOWN = 0; - */ - Field_Kind[Field_Kind["TYPE_UNKNOWN"] = 0] = "TYPE_UNKNOWN"; - /** - * Field type double. - * - * @generated from enum value: TYPE_DOUBLE = 1; - */ - Field_Kind[Field_Kind["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE"; - /** - * Field type float. - * - * @generated from enum value: TYPE_FLOAT = 2; - */ - Field_Kind[Field_Kind["TYPE_FLOAT"] = 2] = "TYPE_FLOAT"; - /** - * Field type int64. - * - * @generated from enum value: TYPE_INT64 = 3; - */ - Field_Kind[Field_Kind["TYPE_INT64"] = 3] = "TYPE_INT64"; - /** - * Field type uint64. - * - * @generated from enum value: TYPE_UINT64 = 4; - */ - Field_Kind[Field_Kind["TYPE_UINT64"] = 4] = "TYPE_UINT64"; - /** - * Field type int32. - * - * @generated from enum value: TYPE_INT32 = 5; - */ - Field_Kind[Field_Kind["TYPE_INT32"] = 5] = "TYPE_INT32"; - /** - * Field type fixed64. - * - * @generated from enum value: TYPE_FIXED64 = 6; - */ - Field_Kind[Field_Kind["TYPE_FIXED64"] = 6] = "TYPE_FIXED64"; - /** - * Field type fixed32. - * - * @generated from enum value: TYPE_FIXED32 = 7; - */ - Field_Kind[Field_Kind["TYPE_FIXED32"] = 7] = "TYPE_FIXED32"; - /** - * Field type bool. - * - * @generated from enum value: TYPE_BOOL = 8; - */ - Field_Kind[Field_Kind["TYPE_BOOL"] = 8] = "TYPE_BOOL"; - /** - * Field type string. - * - * @generated from enum value: TYPE_STRING = 9; - */ - Field_Kind[Field_Kind["TYPE_STRING"] = 9] = "TYPE_STRING"; - /** - * Field type group. Proto2 syntax only, and deprecated. - * - * @generated from enum value: TYPE_GROUP = 10; - */ - Field_Kind[Field_Kind["TYPE_GROUP"] = 10] = "TYPE_GROUP"; - /** - * Field type message. - * - * @generated from enum value: TYPE_MESSAGE = 11; - */ - Field_Kind[Field_Kind["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE"; - /** - * Field type bytes. - * - * @generated from enum value: TYPE_BYTES = 12; - */ - Field_Kind[Field_Kind["TYPE_BYTES"] = 12] = "TYPE_BYTES"; - /** - * Field type uint32. - * - * @generated from enum value: TYPE_UINT32 = 13; - */ - Field_Kind[Field_Kind["TYPE_UINT32"] = 13] = "TYPE_UINT32"; - /** - * Field type enum. - * - * @generated from enum value: TYPE_ENUM = 14; - */ - Field_Kind[Field_Kind["TYPE_ENUM"] = 14] = "TYPE_ENUM"; - /** - * Field type sfixed32. - * - * @generated from enum value: TYPE_SFIXED32 = 15; - */ - Field_Kind[Field_Kind["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32"; - /** - * Field type sfixed64. - * - * @generated from enum value: TYPE_SFIXED64 = 16; - */ - Field_Kind[Field_Kind["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64"; - /** - * Field type sint32. - * - * @generated from enum value: TYPE_SINT32 = 17; - */ - Field_Kind[Field_Kind["TYPE_SINT32"] = 17] = "TYPE_SINT32"; - /** - * Field type sint64. - * - * @generated from enum value: TYPE_SINT64 = 18; - */ - Field_Kind[Field_Kind["TYPE_SINT64"] = 18] = "TYPE_SINT64"; -})(Field_Kind || (exports.Field_Kind = Field_Kind = {})); -/** - * Describes the enum google.protobuf.Field.Kind. - */ -exports.Field_KindSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_type, 1, 0); -/** - * Whether a field is optional, required, or repeated. - * - * @generated from enum google.protobuf.Field.Cardinality - */ -var Field_Cardinality; -(function (Field_Cardinality) { - /** - * For fields with unknown cardinality. - * - * @generated from enum value: CARDINALITY_UNKNOWN = 0; - */ - Field_Cardinality[Field_Cardinality["UNKNOWN"] = 0] = "UNKNOWN"; - /** - * For optional fields. - * - * @generated from enum value: CARDINALITY_OPTIONAL = 1; - */ - Field_Cardinality[Field_Cardinality["OPTIONAL"] = 1] = "OPTIONAL"; - /** - * For required fields. Proto2 syntax only. - * - * @generated from enum value: CARDINALITY_REQUIRED = 2; - */ - Field_Cardinality[Field_Cardinality["REQUIRED"] = 2] = "REQUIRED"; - /** - * For repeated fields. - * - * @generated from enum value: CARDINALITY_REPEATED = 3; - */ - Field_Cardinality[Field_Cardinality["REPEATED"] = 3] = "REPEATED"; -})(Field_Cardinality || (exports.Field_Cardinality = Field_Cardinality = {})); -/** - * Describes the enum google.protobuf.Field.Cardinality. - */ -exports.Field_CardinalitySchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_type, 1, 1); -/** - * Describes the message google.protobuf.Enum. - * Use `create(EnumSchema)` to create a new message. - */ -exports.EnumSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_type, 2); -/** - * Describes the message google.protobuf.EnumValue. - * Use `create(EnumValueSchema)` to create a new message. - */ -exports.EnumValueSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_type, 3); -/** - * Describes the message google.protobuf.Option. - * Use `create(OptionSchema)` to create a new message. - */ -exports.OptionSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_type, 4); -/** - * The syntax in which a protocol buffer element is defined. - * - * @generated from enum google.protobuf.Syntax - */ -var Syntax; -(function (Syntax) { - /** - * Syntax `proto2`. - * - * @generated from enum value: SYNTAX_PROTO2 = 0; - */ - Syntax[Syntax["PROTO2"] = 0] = "PROTO2"; - /** - * Syntax `proto3`. - * - * @generated from enum value: SYNTAX_PROTO3 = 1; - */ - Syntax[Syntax["PROTO3"] = 1] = "PROTO3"; - /** - * Syntax `editions`. - * - * @generated from enum value: SYNTAX_EDITIONS = 2; - */ - Syntax[Syntax["EDITIONS"] = 2] = "EDITIONS"; -})(Syntax || (exports.Syntax = Syntax = {})); -/** - * Describes the enum google.protobuf.Syntax. - */ -exports.SyntaxSchema = (0, enum_js_1.enumDesc)(exports.file_google_protobuf_type, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts deleted file mode 100644 index c63820a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts +++ /dev/null @@ -1,330 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/wrappers.proto. - */ -export declare const file_google_protobuf_wrappers: GenFile; -/** - * Wrapper message for `double`. - * - * The JSON representation for `DoubleValue` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.DoubleValue - */ -export type DoubleValue = Message<"google.protobuf.DoubleValue"> & { - /** - * The double value. - * - * @generated from field: double value = 1; - */ - value: number; -}; -/** - * Wrapper message for `double`. - * - * The JSON representation for `DoubleValue` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.DoubleValue - */ -export type DoubleValueJson = number | "NaN" | "Infinity" | "-Infinity"; -/** - * Describes the message google.protobuf.DoubleValue. - * Use `create(DoubleValueSchema)` to create a new message. - */ -export declare const DoubleValueSchema: GenMessage; -/** - * Wrapper message for `float`. - * - * The JSON representation for `FloatValue` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.FloatValue - */ -export type FloatValue = Message<"google.protobuf.FloatValue"> & { - /** - * The float value. - * - * @generated from field: float value = 1; - */ - value: number; -}; -/** - * Wrapper message for `float`. - * - * The JSON representation for `FloatValue` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.FloatValue - */ -export type FloatValueJson = number | "NaN" | "Infinity" | "-Infinity"; -/** - * Describes the message google.protobuf.FloatValue. - * Use `create(FloatValueSchema)` to create a new message. - */ -export declare const FloatValueSchema: GenMessage; -/** - * Wrapper message for `int64`. - * - * The JSON representation for `Int64Value` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.Int64Value - */ -export type Int64Value = Message<"google.protobuf.Int64Value"> & { - /** - * The int64 value. - * - * @generated from field: int64 value = 1; - */ - value: bigint; -}; -/** - * Wrapper message for `int64`. - * - * The JSON representation for `Int64Value` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.Int64Value - */ -export type Int64ValueJson = string; -/** - * Describes the message google.protobuf.Int64Value. - * Use `create(Int64ValueSchema)` to create a new message. - */ -export declare const Int64ValueSchema: GenMessage; -/** - * Wrapper message for `uint64`. - * - * The JSON representation for `UInt64Value` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.UInt64Value - */ -export type UInt64Value = Message<"google.protobuf.UInt64Value"> & { - /** - * The uint64 value. - * - * @generated from field: uint64 value = 1; - */ - value: bigint; -}; -/** - * Wrapper message for `uint64`. - * - * The JSON representation for `UInt64Value` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.UInt64Value - */ -export type UInt64ValueJson = string; -/** - * Describes the message google.protobuf.UInt64Value. - * Use `create(UInt64ValueSchema)` to create a new message. - */ -export declare const UInt64ValueSchema: GenMessage; -/** - * Wrapper message for `int32`. - * - * The JSON representation for `Int32Value` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.Int32Value - */ -export type Int32Value = Message<"google.protobuf.Int32Value"> & { - /** - * The int32 value. - * - * @generated from field: int32 value = 1; - */ - value: number; -}; -/** - * Wrapper message for `int32`. - * - * The JSON representation for `Int32Value` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.Int32Value - */ -export type Int32ValueJson = number; -/** - * Describes the message google.protobuf.Int32Value. - * Use `create(Int32ValueSchema)` to create a new message. - */ -export declare const Int32ValueSchema: GenMessage; -/** - * Wrapper message for `uint32`. - * - * The JSON representation for `UInt32Value` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.UInt32Value - */ -export type UInt32Value = Message<"google.protobuf.UInt32Value"> & { - /** - * The uint32 value. - * - * @generated from field: uint32 value = 1; - */ - value: number; -}; -/** - * Wrapper message for `uint32`. - * - * The JSON representation for `UInt32Value` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.UInt32Value - */ -export type UInt32ValueJson = number; -/** - * Describes the message google.protobuf.UInt32Value. - * Use `create(UInt32ValueSchema)` to create a new message. - */ -export declare const UInt32ValueSchema: GenMessage; -/** - * Wrapper message for `bool`. - * - * The JSON representation for `BoolValue` is JSON `true` and `false`. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.BoolValue - */ -export type BoolValue = Message<"google.protobuf.BoolValue"> & { - /** - * The bool value. - * - * @generated from field: bool value = 1; - */ - value: boolean; -}; -/** - * Wrapper message for `bool`. - * - * The JSON representation for `BoolValue` is JSON `true` and `false`. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.BoolValue - */ -export type BoolValueJson = boolean; -/** - * Describes the message google.protobuf.BoolValue. - * Use `create(BoolValueSchema)` to create a new message. - */ -export declare const BoolValueSchema: GenMessage; -/** - * Wrapper message for `string`. - * - * The JSON representation for `StringValue` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.StringValue - */ -export type StringValue = Message<"google.protobuf.StringValue"> & { - /** - * The string value. - * - * @generated from field: string value = 1; - */ - value: string; -}; -/** - * Wrapper message for `string`. - * - * The JSON representation for `StringValue` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.StringValue - */ -export type StringValueJson = string; -/** - * Describes the message google.protobuf.StringValue. - * Use `create(StringValueSchema)` to create a new message. - */ -export declare const StringValueSchema: GenMessage; -/** - * Wrapper message for `bytes`. - * - * The JSON representation for `BytesValue` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.BytesValue - */ -export type BytesValue = Message<"google.protobuf.BytesValue"> & { - /** - * The bytes value. - * - * @generated from field: bytes value = 1; - */ - value: Uint8Array; -}; -/** - * Wrapper message for `bytes`. - * - * The JSON representation for `BytesValue` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.BytesValue - */ -export type BytesValueJson = string; -/** - * Describes the message google.protobuf.BytesValue. - * Use `create(BytesValueSchema)` to create a new message. - */ -export declare const BytesValueSchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.js deleted file mode 100644 index ca7211e..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BytesValueSchema = exports.StringValueSchema = exports.BoolValueSchema = exports.UInt32ValueSchema = exports.Int32ValueSchema = exports.UInt64ValueSchema = exports.Int64ValueSchema = exports.FloatValueSchema = exports.DoubleValueSchema = exports.file_google_protobuf_wrappers = void 0; -const file_js_1 = require("../../../../codegenv2/file.js"); -const message_js_1 = require("../../../../codegenv2/message.js"); -/** - * Describes the file google/protobuf/wrappers.proto. - */ -exports.file_google_protobuf_wrappers = (0, file_js_1.fileDesc)("Ch5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIcCgtEb3VibGVWYWx1ZRINCgV2YWx1ZRgBIAEoASIbCgpGbG9hdFZhbHVlEg0KBXZhbHVlGAEgASgCIhsKCkludDY0VmFsdWUSDQoFdmFsdWUYASABKAMiHAoLVUludDY0VmFsdWUSDQoFdmFsdWUYASABKAQiGwoKSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEoBSIcCgtVSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEoDSIaCglCb29sVmFsdWUSDQoFdmFsdWUYASABKAgiHAoLU3RyaW5nVmFsdWUSDQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEKDAQoTY29tLmdvb2dsZS5wcm90b2J1ZkINV3JhcHBlcnNQcm90b1ABWjFnb29nbGUuZ29sYW5nLm9yZy9wcm90b2J1Zi90eXBlcy9rbm93bi93cmFwcGVyc3Bi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"); -/** - * Describes the message google.protobuf.DoubleValue. - * Use `create(DoubleValueSchema)` to create a new message. - */ -exports.DoubleValueSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_wrappers, 0); -/** - * Describes the message google.protobuf.FloatValue. - * Use `create(FloatValueSchema)` to create a new message. - */ -exports.FloatValueSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_wrappers, 1); -/** - * Describes the message google.protobuf.Int64Value. - * Use `create(Int64ValueSchema)` to create a new message. - */ -exports.Int64ValueSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_wrappers, 2); -/** - * Describes the message google.protobuf.UInt64Value. - * Use `create(UInt64ValueSchema)` to create a new message. - */ -exports.UInt64ValueSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_wrappers, 3); -/** - * Describes the message google.protobuf.Int32Value. - * Use `create(Int32ValueSchema)` to create a new message. - */ -exports.Int32ValueSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_wrappers, 4); -/** - * Describes the message google.protobuf.UInt32Value. - * Use `create(UInt32ValueSchema)` to create a new message. - */ -exports.UInt32ValueSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_wrappers, 5); -/** - * Describes the message google.protobuf.BoolValue. - * Use `create(BoolValueSchema)` to create a new message. - */ -exports.BoolValueSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_wrappers, 6); -/** - * Describes the message google.protobuf.StringValue. - * Use `create(StringValueSchema)` to create a new message. - */ -exports.StringValueSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_wrappers, 7); -/** - * Describes the message google.protobuf.BytesValue. - * Use `create(BytesValueSchema)` to create a new message. - */ -exports.BytesValueSchema = (0, message_js_1.messageDesc)(exports.file_google_protobuf_wrappers, 8); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/index.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/index.d.ts deleted file mode 100644 index 23beb45..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export * from "./timestamp.js"; -export * from "./any.js"; -export * from "./wrappers.js"; -export * from "./gen/google/protobuf/any_pb.js"; -export * from "./gen/google/protobuf/api_pb.js"; -export * from "./gen/google/protobuf/cpp_features_pb.js"; -export * from "./gen/google/protobuf/descriptor_pb.js"; -export * from "./gen/google/protobuf/duration_pb.js"; -export * from "./gen/google/protobuf/empty_pb.js"; -export * from "./gen/google/protobuf/field_mask_pb.js"; -export * from "./gen/google/protobuf/go_features_pb.js"; -export * from "./gen/google/protobuf/java_features_pb.js"; -export * from "./gen/google/protobuf/source_context_pb.js"; -export * from "./gen/google/protobuf/struct_pb.js"; -export * from "./gen/google/protobuf/timestamp_pb.js"; -export * from "./gen/google/protobuf/type_pb.js"; -export * from "./gen/google/protobuf/wrappers_pb.js"; -export * from "./gen/google/protobuf/compiler/plugin_pb.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/index.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/index.js deleted file mode 100644 index 3dd32b3..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/index.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./timestamp.js"), exports); -__exportStar(require("./any.js"), exports); -__exportStar(require("./wrappers.js"), exports); -__exportStar(require("./gen/google/protobuf/any_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/api_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/cpp_features_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/descriptor_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/duration_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/empty_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/field_mask_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/go_features_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/java_features_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/source_context_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/struct_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/timestamp_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/type_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/wrappers_pb.js"), exports); -__exportStar(require("./gen/google/protobuf/compiler/plugin_pb.js"), exports); diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/timestamp.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/timestamp.d.ts deleted file mode 100644 index 6ae7c19..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/timestamp.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { Timestamp } from "./gen/google/protobuf/timestamp_pb.js"; -/** - * Create a google.protobuf.Timestamp for the current time. - */ -export declare function timestampNow(): Timestamp; -/** - * Create a google.protobuf.Timestamp message from an ECMAScript Date. - */ -export declare function timestampFromDate(date: Date): Timestamp; -/** - * Convert a google.protobuf.Timestamp message to an ECMAScript Date. - */ -export declare function timestampDate(timestamp: Timestamp): Date; -/** - * Create a google.protobuf.Timestamp message from a Unix timestamp in milliseconds. - */ -export declare function timestampFromMs(timestampMs: number): Timestamp; -/** - * Convert a google.protobuf.Timestamp to a Unix timestamp in milliseconds. - */ -export declare function timestampMs(timestamp: Timestamp): number; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/timestamp.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/timestamp.js deleted file mode 100644 index d0670b7..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/timestamp.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.timestampNow = timestampNow; -exports.timestampFromDate = timestampFromDate; -exports.timestampDate = timestampDate; -exports.timestampFromMs = timestampFromMs; -exports.timestampMs = timestampMs; -const timestamp_pb_js_1 = require("./gen/google/protobuf/timestamp_pb.js"); -const create_js_1 = require("../create.js"); -const proto_int64_js_1 = require("../proto-int64.js"); -/** - * Create a google.protobuf.Timestamp for the current time. - */ -function timestampNow() { - return timestampFromDate(new Date()); -} -/** - * Create a google.protobuf.Timestamp message from an ECMAScript Date. - */ -function timestampFromDate(date) { - return timestampFromMs(date.getTime()); -} -/** - * Convert a google.protobuf.Timestamp message to an ECMAScript Date. - */ -function timestampDate(timestamp) { - return new Date(timestampMs(timestamp)); -} -/** - * Create a google.protobuf.Timestamp message from a Unix timestamp in milliseconds. - */ -function timestampFromMs(timestampMs) { - const seconds = Math.floor(timestampMs / 1000); - return (0, create_js_1.create)(timestamp_pb_js_1.TimestampSchema, { - seconds: proto_int64_js_1.protoInt64.parse(seconds), - nanos: (timestampMs - seconds * 1000) * 1000000, - }); -} -/** - * Convert a google.protobuf.Timestamp to a Unix timestamp in milliseconds. - */ -function timestampMs(timestamp) { - return (Number(timestamp.seconds) * 1000 + Math.round(timestamp.nanos / 1000000)); -} diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.d.ts b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.d.ts deleted file mode 100644 index f836b8e..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Message } from "../types.js"; -import type { BoolValue, BytesValue, DoubleValue, FloatValue, Int32Value, Int64Value, StringValue, UInt32Value, UInt64Value } from "./gen/google/protobuf/wrappers_pb.js"; -import type { DescField, DescMessage } from "../descriptors.js"; -export declare function isWrapper(arg: Message): arg is DoubleValue | FloatValue | Int64Value | UInt64Value | Int32Value | UInt32Value | BoolValue | StringValue | BytesValue; -export type WktWrapperDesc = DescMessage & { - fields: [ - DescField & { - fieldKind: "scalar"; - number: 1; - name: "value"; - oneof: undefined; - } - ]; -}; -export declare function isWrapperDesc(messageDesc: DescMessage): messageDesc is WktWrapperDesc; diff --git a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.js b/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.js deleted file mode 100644 index 4456b58..0000000 --- a/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isWrapper = isWrapper; -exports.isWrapperDesc = isWrapperDesc; -function isWrapper(arg) { - return isWrapperTypeName(arg.$typeName); -} -function isWrapperDesc(messageDesc) { - const f = messageDesc.fields[0]; - return (isWrapperTypeName(messageDesc.typeName) && - f !== undefined && - f.fieldKind == "scalar" && - f.name == "value" && - f.number == 1); -} -function isWrapperTypeName(name) { - return (name.startsWith("google.protobuf.") && - [ - "DoubleValue", - "FloatValue", - "Int64Value", - "UInt64Value", - "Int32Value", - "UInt32Value", - "BoolValue", - "StringValue", - "BytesValue", - ].includes(name.substring(16))); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/clone.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/clone.d.ts deleted file mode 100644 index 1bb50b6..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/clone.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { MessageShape } from "./types.js"; -import { type DescMessage } from "./descriptors.js"; -/** - * Create a deep copy of a message, including extensions and unknown fields. - */ -export declare function clone(schema: Desc, message: MessageShape): MessageShape; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/clone.js b/node_modules/@bufbuild/protobuf/dist/esm/clone.js deleted file mode 100644 index a85b07c..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/clone.js +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { ScalarType } from "./descriptors.js"; -import { reflect } from "./reflect/reflect.js"; -import { isReflectMessage } from "./reflect/guard.js"; -/** - * Create a deep copy of a message, including extensions and unknown fields. - */ -export function clone(schema, message) { - return cloneReflect(reflect(schema, message)).message; -} -function cloneReflect(i) { - const o = reflect(i.desc); - for (const f of i.fields) { - if (!i.isSet(f)) { - continue; - } - switch (f.fieldKind) { - case "list": - const list = o.get(f); - for (const item of i.get(f)) { - list.add(cloneSingular(f, item)); - } - break; - case "map": - const map = o.get(f); - for (const entry of i.get(f).entries()) { - map.set(entry[0], cloneSingular(f, entry[1])); - } - break; - default: { - o.set(f, cloneSingular(f, i.get(f))); - break; - } - } - } - const unknown = i.getUnknown(); - if (unknown && unknown.length > 0) { - o.setUnknown([...unknown]); - } - return o; -} -function cloneSingular(field, value) { - if (field.message !== undefined && isReflectMessage(value)) { - return cloneReflect(value); - } - if (field.scalar == ScalarType.BYTES && value instanceof Uint8Array) { - // @ts-expect-error T cannot extend Uint8Array in practice - return value.slice(); - } - return value; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.d.ts deleted file mode 100644 index 8f5c83a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { DescFile } from "../descriptors.js"; -import type { GenEnum } from "./types.js"; -import type { JsonValue } from "../json-value.js"; -export { tsEnum } from "../codegenv2/enum.js"; -/** - * Hydrate an enum descriptor. - * - * @private - */ -export declare function enumDesc(file: DescFile, path: number, ...paths: number[]): GenEnum; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.js deleted file mode 100644 index c9c337b..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -export { tsEnum } from "../codegenv2/enum.js"; -/** - * Hydrate an enum descriptor. - * - * @private - */ -export function enumDesc(file, path, ...paths) { - if (paths.length == 0) { - return file.enums[path]; - } - const e = paths.pop(); // we checked length above - return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]).nestedEnums[e]; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.d.ts deleted file mode 100644 index 7d6374b..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Message } from "../types.js"; -import type { DescFile } from "../descriptors.js"; -import type { GenExtension } from "./types.js"; -/** - * Hydrate an extension descriptor. - * - * @private - */ -export declare function extDesc(file: DescFile, path: number, ...paths: number[]): GenExtension; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.js deleted file mode 100644 index de24b25..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/** - * Hydrate an extension descriptor. - * - * @private - */ -export function extDesc(file, path, ...paths) { - if (paths.length == 0) { - return file.extensions[path]; - } - const e = paths.pop(); // we checked length above - return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]).nestedExtensions[e]; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.d.ts deleted file mode 100644 index 5c3a513..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { fileDesc } from "../codegenv2/file.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.js deleted file mode 100644 index edc7448..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -export { fileDesc } from "../codegenv2/file.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.d.ts deleted file mode 100644 index a3f2ade..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from "../codegenv2/boot.js"; -export * from "../codegenv2/embed.js"; -export * from "./enum.js"; -export * from "./extension.js"; -export * from "./file.js"; -export * from "./message.js"; -export * from "./service.js"; -export * from "./symbols.js"; -export * from "../codegenv2/scalar.js"; -export * from "./types.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.js deleted file mode 100644 index edf3a3c..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -export * from "../codegenv2/boot.js"; -export * from "../codegenv2/embed.js"; -export * from "./enum.js"; -export * from "./extension.js"; -export * from "./file.js"; -export * from "./message.js"; -export * from "./service.js"; -export * from "./symbols.js"; -export * from "../codegenv2/scalar.js"; -export * from "./types.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.d.ts deleted file mode 100644 index 46ad4ad..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { Message } from "../types.js"; -import type { DescFile } from "../descriptors.js"; -import type { GenMessage } from "./types.js"; -import type { JsonValue } from "../json-value.js"; -/** - * Hydrate a message descriptor. - * - * @private - */ -export declare function messageDesc(file: DescFile, path: number, ...paths: number[]): GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.js deleted file mode 100644 index adc2f55..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/** - * Hydrate a message descriptor. - * - * @private - */ -export function messageDesc(file, path, ...paths) { - return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.d.ts deleted file mode 100644 index 5818f75..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { GenService, GenServiceMethods } from "./types.js"; -import type { DescFile } from "../descriptors.js"; -/** - * Hydrate a service descriptor. - * - * @private - */ -export declare function serviceDesc(file: DescFile, path: number, ...paths: number[]): GenService; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.js deleted file mode 100644 index e5684e0..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/** - * Hydrate a service descriptor. - * - * @private - */ -export function serviceDesc(file, path, ...paths) { - if (paths.length > 0) { - throw new Error(); - } - return file.services[path]; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.d.ts deleted file mode 100644 index fb9fd70..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.d.ts +++ /dev/null @@ -1,135 +0,0 @@ -/** - * @private - */ -export declare const packageName = "@bufbuild/protobuf"; -/** - * @private - */ -export declare const wktPublicImportPaths: Readonly>; -/** - * @private - */ -export declare const symbols: { - readonly codegen: { - readonly boot: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/boot.js"; - readonly from: string; - }; - readonly fileDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/file.js"; - readonly from: string; - }; - readonly enumDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/enum.js"; - readonly from: string; - }; - readonly extDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/extension.js"; - readonly from: string; - }; - readonly messageDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/message.js"; - readonly from: string; - }; - readonly serviceDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/service.js"; - readonly from: string; - }; - readonly tsEnum: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv1/enum.js"; - readonly from: string; - }; - readonly GenFile: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv1/types.js"; - readonly from: string; - }; - readonly GenEnum: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv1/types.js"; - readonly from: string; - }; - readonly GenExtension: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv1/types.js"; - readonly from: string; - }; - readonly GenMessage: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv1/types.js"; - readonly from: string; - }; - readonly GenService: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv1/types.js"; - readonly from: string; - }; - }; - readonly isMessage: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../is-message.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly Message: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../types.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly create: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../create.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly fromJson: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../from-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly fromJsonString: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../from-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly fromBinary: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../from-binary.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly toBinary: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../to-binary.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly toJson: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../to-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly toJsonString: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../to-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly protoInt64: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../proto-int64.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly JsonValue: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../json-value.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly JsonObject: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../json-value.js"; - readonly from: "@bufbuild/protobuf"; - }; -}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.js deleted file mode 100644 index d4403bc..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.js +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { symbols as symbolsV2, packageName as packageNameV1, wktPublicImportPaths as wktPublicImportPathsV2, } from "../codegenv2/symbols.js"; -/** - * @private - */ -export const packageName = packageNameV1; -/** - * @private - */ -export const wktPublicImportPaths = wktPublicImportPathsV2; -/** - * @private - */ -// biome-ignore format: want this to read well -export const symbols = Object.assign(Object.assign({}, symbolsV2), { codegen: { - boot: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/boot.js", from: packageName + "/codegenv1" }, - fileDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/file.js", from: packageName + "/codegenv1" }, - enumDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/enum.js", from: packageName + "/codegenv1" }, - extDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/extension.js", from: packageName + "/codegenv1" }, - messageDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/message.js", from: packageName + "/codegenv1" }, - serviceDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/service.js", from: packageName + "/codegenv1" }, - tsEnum: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/enum.js", from: packageName + "/codegenv1" }, - GenFile: { typeOnly: true, bootstrapWktFrom: "../../codegenv1/types.js", from: packageName + "/codegenv1" }, - GenEnum: { typeOnly: true, bootstrapWktFrom: "../../codegenv1/types.js", from: packageName + "/codegenv1" }, - GenExtension: { typeOnly: true, bootstrapWktFrom: "../../codegenv1/types.js", from: packageName + "/codegenv1" }, - GenMessage: { typeOnly: true, bootstrapWktFrom: "../../codegenv1/types.js", from: packageName + "/codegenv1" }, - GenService: { typeOnly: true, bootstrapWktFrom: "../../codegenv1/types.js", from: packageName + "/codegenv1" }, - } }); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.d.ts deleted file mode 100644 index 8060fad..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -import type { Message } from "../types.js"; -import type { DescEnum, DescEnumValue, DescExtension, DescField, DescFile, DescMessage, DescMethod, DescService } from "../descriptors.js"; -import type { JsonValue } from "../json-value.js"; -/** - * Describes a protobuf source file. - * - * @private - */ -export type GenFile = DescFile; -/** - * Describes a message declaration in a protobuf source file. - * - * This type is identical to DescMessage, but carries additional type - * information. - * - * @private - */ -export type GenMessage = Omit & { - field: Record, DescField>; - typeName: RuntimeShape["$typeName"]; -} & brandv1; -/** - * Describes an enumeration in a protobuf source file. - * - * This type is identical to DescEnum, but carries additional type - * information. - * - * @private - */ -export type GenEnum = Omit & { - value: Record; -} & brandv1; -/** - * Describes an extension in a protobuf source file. - * - * This type is identical to DescExtension, but carries additional type - * information. - * - * @private - */ -export type GenExtension = DescExtension & brandv1; -/** - * Describes a service declaration in a protobuf source file. - * - * This type is identical to DescService, but carries additional type - * information. - * - * @private - */ -export type GenService = Omit & { - method: { - [K in keyof RuntimeShape]: RuntimeShape[K] & DescMethod; - }; -}; -/** - * @private - */ -export type GenServiceMethods = Record>; -declare class brandv1 { - protected v: "codegenv1"; - protected a: A | boolean; - protected b: B | boolean; -} -/** - * Union of the property names of all fields, including oneof members. - * For an anonymous message (no generated message shape), it's simply a string. - */ -type MessageFieldNames = Message extends T ? string : Exclude ? K : P]-?: true; -}, number | symbol>; -type Oneof = { - case: K | undefined; - value?: unknown; -}; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.js deleted file mode 100644 index 5877ef7..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -class brandv1 { - constructor() { - this.v = "codegenv1"; - this.a = false; - this.b = false; - } -} -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.d.ts deleted file mode 100644 index 3edbb6c..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -import type { DescriptorProto_ExtensionRange, FieldDescriptorProto_Label, FieldDescriptorProto_Type, FieldOptions_OptionRetention, FieldOptions_OptionTargetType, FieldOptions_EditionDefault, EnumValueDescriptorProto, FileDescriptorProto } from "../wkt/gen/google/protobuf/descriptor_pb.js"; -import type { DescFile } from "../descriptors.js"; -/** - * Hydrate a file descriptor for google/protobuf/descriptor.proto from a plain - * object. - * - * See createFileDescriptorProtoBoot() for details. - * - * @private - */ -export declare function boot(boot: FileDescriptorProtoBoot): DescFile; -/** - * An object literal for initializing the message google.protobuf.FileDescriptorProto - * for google/protobuf/descriptor.proto. - * - * See createFileDescriptorProtoBoot() for details. - * - * @private - */ -export type FileDescriptorProtoBoot = { - name: "google/protobuf/descriptor.proto"; - package: "google.protobuf"; - messageType: DescriptorProtoBoot[]; - enumType: EnumDescriptorProtoBoot[]; -}; -export type DescriptorProtoBoot = { - name: string; - field?: FieldDescriptorProtoBoot[]; - nestedType?: DescriptorProtoBoot[]; - enumType?: EnumDescriptorProtoBoot[]; - extensionRange?: Pick[]; -}; -export type FieldDescriptorProtoBoot = { - name: string; - number: number; - label?: FieldDescriptorProto_Label; - type: FieldDescriptorProto_Type; - typeName?: string; - extendee?: string; - defaultValue?: string; - options?: FieldOptionsBoot; -}; -export type FieldOptionsBoot = { - packed?: boolean; - deprecated?: boolean; - retention?: FieldOptions_OptionRetention; - targets?: FieldOptions_OptionTargetType[]; - editionDefaults?: FieldOptions_EditionDefaultBoot[]; -}; -export type FieldOptions_EditionDefaultBoot = Pick; -export type EnumDescriptorProtoBoot = { - name: string; - value: EnumValueDescriptorProtoBoot[]; -}; -export type EnumValueDescriptorProtoBoot = Pick; -/** - * Creates the message google.protobuf.FileDescriptorProto from an object literal. - * - * See createFileDescriptorProtoBoot() for details. - * - * @private - */ -export declare function bootFileDescriptorProto(init: FileDescriptorProtoBoot): FileDescriptorProto; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js deleted file mode 100644 index 65d8654..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { restoreJsonNames } from "./restore-json-names.js"; -import { createFileRegistry } from "../registry.js"; -/** - * Hydrate a file descriptor for google/protobuf/descriptor.proto from a plain - * object. - * - * See createFileDescriptorProtoBoot() for details. - * - * @private - */ -export function boot(boot) { - const root = bootFileDescriptorProto(boot); - root.messageType.forEach(restoreJsonNames); - const reg = createFileRegistry(root, () => undefined); - // biome-ignore lint/style/noNonNullAssertion: non-null assertion because we just created the registry from the file we look up - return reg.getFile(root.name); -} -/** - * Creates the message google.protobuf.FileDescriptorProto from an object literal. - * - * See createFileDescriptorProtoBoot() for details. - * - * @private - */ -export function bootFileDescriptorProto(init) { - const proto = Object.create({ - syntax: "", - edition: 0, - }); - return Object.assign(proto, Object.assign(Object.assign({ $typeName: "google.protobuf.FileDescriptorProto", dependency: [], publicDependency: [], weakDependency: [], optionDependency: [], service: [], extension: [] }, init), { messageType: init.messageType.map(bootDescriptorProto), enumType: init.enumType.map(bootEnumDescriptorProto) })); -} -function bootDescriptorProto(init) { - var _a, _b, _c, _d, _e, _f, _g, _h; - const proto = Object.create({ - visibility: 0, - }); - return Object.assign(proto, { - $typeName: "google.protobuf.DescriptorProto", - name: init.name, - field: (_b = (_a = init.field) === null || _a === void 0 ? void 0 : _a.map(bootFieldDescriptorProto)) !== null && _b !== void 0 ? _b : [], - extension: [], - nestedType: (_d = (_c = init.nestedType) === null || _c === void 0 ? void 0 : _c.map(bootDescriptorProto)) !== null && _d !== void 0 ? _d : [], - enumType: (_f = (_e = init.enumType) === null || _e === void 0 ? void 0 : _e.map(bootEnumDescriptorProto)) !== null && _f !== void 0 ? _f : [], - extensionRange: (_h = (_g = init.extensionRange) === null || _g === void 0 ? void 0 : _g.map((e) => (Object.assign({ $typeName: "google.protobuf.DescriptorProto.ExtensionRange" }, e)))) !== null && _h !== void 0 ? _h : [], - oneofDecl: [], - reservedRange: [], - reservedName: [], - }); -} -function bootFieldDescriptorProto(init) { - const proto = Object.create({ - label: 1, - typeName: "", - extendee: "", - defaultValue: "", - oneofIndex: 0, - jsonName: "", - proto3Optional: false, - }); - return Object.assign(proto, Object.assign(Object.assign({ $typeName: "google.protobuf.FieldDescriptorProto" }, init), { options: init.options ? bootFieldOptions(init.options) : undefined })); -} -function bootFieldOptions(init) { - var _a, _b, _c; - const proto = Object.create({ - ctype: 0, - packed: false, - jstype: 0, - lazy: false, - unverifiedLazy: false, - deprecated: false, - weak: false, - debugRedact: false, - retention: 0, - }); - return Object.assign(proto, Object.assign(Object.assign({ $typeName: "google.protobuf.FieldOptions" }, init), { targets: (_a = init.targets) !== null && _a !== void 0 ? _a : [], editionDefaults: (_c = (_b = init.editionDefaults) === null || _b === void 0 ? void 0 : _b.map((e) => (Object.assign({ $typeName: "google.protobuf.FieldOptions.EditionDefault" }, e)))) !== null && _c !== void 0 ? _c : [], uninterpretedOption: [] })); -} -function bootEnumDescriptorProto(init) { - const proto = Object.create({ - visibility: 0, - }); - return Object.assign(proto, { - $typeName: "google.protobuf.EnumDescriptorProto", - name: init.name, - reservedName: [], - reservedRange: [], - value: init.value.map((e) => (Object.assign({ $typeName: "google.protobuf.EnumValueDescriptorProto" }, e))), - }); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.d.ts deleted file mode 100644 index a0feea1..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import type { DescEnum, DescExtension, DescMessage, DescService } from "../descriptors.js"; -import { type FileDescriptorProto } from "../wkt/gen/google/protobuf/descriptor_pb.js"; -import type { FileDescriptorProtoBoot } from "./boot.js"; -type EmbedUnknown = { - bootable: false; - proto(): FileDescriptorProto; - base64(): string; -}; -type EmbedDescriptorProto = Omit & { - bootable: true; - boot(): FileDescriptorProtoBoot; -}; -/** - * Create necessary information to embed a file descriptor in - * generated code. - * - * @private - */ -export declare function embedFileDesc(file: FileDescriptorProto): EmbedUnknown | EmbedDescriptorProto; -/** - * Compute the path to a message, enumeration, extension, or service in a - * file descriptor. - * - * @private - */ -export declare function pathInFileDesc(desc: DescMessage | DescEnum | DescExtension | DescService): number[]; -/** - * The file descriptor for google/protobuf/descriptor.proto cannot be embedded - * in serialized form, since it is required to parse itself. - * - * This function takes an instance of the message, and returns a plain object - * that can be hydrated to the message again via bootFileDescriptorProto(). - * - * This function only works with a message google.protobuf.FileDescriptorProto - * for google/protobuf/descriptor.proto, and only supports features that are - * relevant for the specific use case. For example, it discards file options, - * reserved ranges and reserved names, and field options that are unused in - * descriptor.proto. - * - * @private - */ -export declare function createFileDescriptorProtoBoot(proto: FileDescriptorProto): FileDescriptorProtoBoot; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js deleted file mode 100644 index 1dfa604..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +++ /dev/null @@ -1,239 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { protoCamelCase } from "../reflect/names.js"; -import { isFieldSet, clearField } from "../fields.js"; -import { base64Encode } from "../wire/base64-encoding.js"; -import { toBinary } from "../to-binary.js"; -import { clone } from "../clone.js"; -import { Edition, FieldDescriptorProtoSchema, FieldOptionsSchema, FileDescriptorProtoSchema, DescriptorProtoSchema, EnumDescriptorProtoSchema, } from "../wkt/gen/google/protobuf/descriptor_pb.js"; -/** - * Create necessary information to embed a file descriptor in - * generated code. - * - * @private - */ -export function embedFileDesc(file) { - const embed = { - bootable: false, - proto() { - const stripped = clone(FileDescriptorProtoSchema, file); - clearField(stripped, FileDescriptorProtoSchema.field.dependency); - clearField(stripped, FileDescriptorProtoSchema.field.sourceCodeInfo); - stripped.messageType.map(stripJsonNames); - return stripped; - }, - base64() { - const bytes = toBinary(FileDescriptorProtoSchema, this.proto()); - return base64Encode(bytes, "std_raw"); - }, - }; - return file.name == "google/protobuf/descriptor.proto" - ? Object.assign(Object.assign({}, embed), { bootable: true, boot() { - return createFileDescriptorProtoBoot(this.proto()); - } }) : embed; -} -function stripJsonNames(d) { - for (const f of d.field) { - if (f.jsonName === protoCamelCase(f.name)) { - clearField(f, FieldDescriptorProtoSchema.field.jsonName); - } - } - for (const n of d.nestedType) { - stripJsonNames(n); - } -} -/** - * Compute the path to a message, enumeration, extension, or service in a - * file descriptor. - * - * @private - */ -export function pathInFileDesc(desc) { - if (desc.kind == "service") { - return [desc.file.services.indexOf(desc)]; - } - const parent = desc.parent; - if (parent == undefined) { - switch (desc.kind) { - case "enum": - return [desc.file.enums.indexOf(desc)]; - case "message": - return [desc.file.messages.indexOf(desc)]; - case "extension": - return [desc.file.extensions.indexOf(desc)]; - } - } - function findPath(cur) { - const nested = []; - for (let parent = cur.parent; parent;) { - const idx = parent.nestedMessages.indexOf(cur); - nested.unshift(idx); - cur = parent; - parent = cur.parent; - } - nested.unshift(cur.file.messages.indexOf(cur)); - return nested; - } - const path = findPath(parent); - switch (desc.kind) { - case "extension": - return [...path, parent.nestedExtensions.indexOf(desc)]; - case "message": - return [...path, parent.nestedMessages.indexOf(desc)]; - case "enum": - return [...path, parent.nestedEnums.indexOf(desc)]; - } -} -/** - * The file descriptor for google/protobuf/descriptor.proto cannot be embedded - * in serialized form, since it is required to parse itself. - * - * This function takes an instance of the message, and returns a plain object - * that can be hydrated to the message again via bootFileDescriptorProto(). - * - * This function only works with a message google.protobuf.FileDescriptorProto - * for google/protobuf/descriptor.proto, and only supports features that are - * relevant for the specific use case. For example, it discards file options, - * reserved ranges and reserved names, and field options that are unused in - * descriptor.proto. - * - * @private - */ -export function createFileDescriptorProtoBoot(proto) { - var _a; - assert(proto.name == "google/protobuf/descriptor.proto"); - assert(proto.package == "google.protobuf"); - assert(!proto.dependency.length); - assert(!proto.publicDependency.length); - assert(!proto.weakDependency.length); - assert(!proto.optionDependency.length); - assert(!proto.service.length); - assert(!proto.extension.length); - assert(proto.sourceCodeInfo === undefined); - assert(proto.syntax == "" || proto.syntax == "proto2"); - assert(!((_a = proto.options) === null || _a === void 0 ? void 0 : _a.features)); // we're dropping file options - assert(proto.edition === Edition.EDITION_UNKNOWN); - return { - name: proto.name, - package: proto.package, - messageType: proto.messageType.map(createDescriptorBoot), - enumType: proto.enumType.map(createEnumDescriptorBoot), - }; -} -function createDescriptorBoot(proto) { - assert(proto.extension.length == 0); - assert(!proto.oneofDecl.length); - assert(!proto.options); - assert(!isFieldSet(proto, DescriptorProtoSchema.field.visibility)); - const b = { - name: proto.name, - }; - if (proto.field.length) { - b.field = proto.field.map(createFieldDescriptorBoot); - } - if (proto.nestedType.length) { - b.nestedType = proto.nestedType.map(createDescriptorBoot); - } - if (proto.enumType.length) { - b.enumType = proto.enumType.map(createEnumDescriptorBoot); - } - if (proto.extensionRange.length) { - b.extensionRange = proto.extensionRange.map((r) => { - assert(!r.options); - return { start: r.start, end: r.end }; - }); - } - return b; -} -function createFieldDescriptorBoot(proto) { - assert(isFieldSet(proto, FieldDescriptorProtoSchema.field.name)); - assert(isFieldSet(proto, FieldDescriptorProtoSchema.field.number)); - assert(isFieldSet(proto, FieldDescriptorProtoSchema.field.type)); - assert(!isFieldSet(proto, FieldDescriptorProtoSchema.field.oneofIndex)); - assert(!isFieldSet(proto, FieldDescriptorProtoSchema.field.jsonName) || - proto.jsonName === protoCamelCase(proto.name)); - const b = { - name: proto.name, - number: proto.number, - type: proto.type, - }; - if (isFieldSet(proto, FieldDescriptorProtoSchema.field.label)) { - b.label = proto.label; - } - if (isFieldSet(proto, FieldDescriptorProtoSchema.field.typeName)) { - b.typeName = proto.typeName; - } - if (isFieldSet(proto, FieldDescriptorProtoSchema.field.extendee)) { - b.extendee = proto.extendee; - } - if (isFieldSet(proto, FieldDescriptorProtoSchema.field.defaultValue)) { - b.defaultValue = proto.defaultValue; - } - if (proto.options) { - b.options = createFieldOptionsBoot(proto.options); - } - return b; -} -function createFieldOptionsBoot(proto) { - const b = {}; - assert(!isFieldSet(proto, FieldOptionsSchema.field.ctype)); - if (isFieldSet(proto, FieldOptionsSchema.field.packed)) { - b.packed = proto.packed; - } - assert(!isFieldSet(proto, FieldOptionsSchema.field.jstype)); - assert(!isFieldSet(proto, FieldOptionsSchema.field.lazy)); - assert(!isFieldSet(proto, FieldOptionsSchema.field.unverifiedLazy)); - if (isFieldSet(proto, FieldOptionsSchema.field.deprecated)) { - b.deprecated = proto.deprecated; - } - assert(!isFieldSet(proto, FieldOptionsSchema.field.weak)); - assert(!isFieldSet(proto, FieldOptionsSchema.field.debugRedact)); - if (isFieldSet(proto, FieldOptionsSchema.field.retention)) { - b.retention = proto.retention; - } - if (proto.targets.length) { - b.targets = proto.targets; - } - if (proto.editionDefaults.length) { - b.editionDefaults = proto.editionDefaults.map((d) => ({ - value: d.value, - edition: d.edition, - })); - } - assert(!isFieldSet(proto, FieldOptionsSchema.field.features)); - assert(!isFieldSet(proto, FieldOptionsSchema.field.uninterpretedOption)); - return b; -} -function createEnumDescriptorBoot(proto) { - assert(!proto.options); - assert(!isFieldSet(proto, EnumDescriptorProtoSchema.field.visibility)); - return { - name: proto.name, - value: proto.value.map((v) => { - assert(!v.options); - return { - name: v.name, - number: v.number, - }; - }), - }; -} -/** - * Assert that condition is truthy or throw error. - */ -function assert(condition) { - if (!condition) { - throw new Error(); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.d.ts deleted file mode 100644 index e77b8fe..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { DescEnum, DescFile } from "../descriptors.js"; -import type { GenEnum } from "./types.js"; -import type { JsonValue } from "../json-value.js"; -/** - * Hydrate an enum descriptor. - * - * @private - */ -export declare function enumDesc(file: DescFile, path: number, ...paths: number[]): GenEnum; -/** - * Construct a TypeScript enum object at runtime from a descriptor. - */ -export declare function tsEnum(desc: DescEnum): enumObject; -type enumObject = { - [key: number]: string; - [k: string]: number | string; -}; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js deleted file mode 100644 index 9235165..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/** - * Hydrate an enum descriptor. - * - * @private - */ -export function enumDesc(file, path, ...paths) { - if (paths.length == 0) { - return file.enums[path]; - } - const e = paths.pop(); // we checked length above - return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]).nestedEnums[e]; -} -/** - * Construct a TypeScript enum object at runtime from a descriptor. - */ -export function tsEnum(desc) { - const enumObject = {}; - for (const value of desc.values) { - enumObject[value.localName] = value.number; - enumObject[value.number] = value.localName; - } - return enumObject; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.d.ts deleted file mode 100644 index 7d6374b..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Message } from "../types.js"; -import type { DescFile } from "../descriptors.js"; -import type { GenExtension } from "./types.js"; -/** - * Hydrate an extension descriptor. - * - * @private - */ -export declare function extDesc(file: DescFile, path: number, ...paths: number[]): GenExtension; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js deleted file mode 100644 index de24b25..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/** - * Hydrate an extension descriptor. - * - * @private - */ -export function extDesc(file, path, ...paths) { - if (paths.length == 0) { - return file.extensions[path]; - } - const e = paths.pop(); // we checked length above - return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]).nestedExtensions[e]; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.d.ts deleted file mode 100644 index 4d9853f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { DescFile } from "../descriptors.js"; -/** - * Hydrate a file descriptor. - * - * @private - */ -export declare function fileDesc(b64: string, imports?: DescFile[]): DescFile; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js deleted file mode 100644 index 55e34c0..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { base64Decode } from "../wire/base64-encoding.js"; -import { FileDescriptorProtoSchema } from "../wkt/gen/google/protobuf/descriptor_pb.js"; -import { createFileRegistry } from "../registry.js"; -import { restoreJsonNames } from "./restore-json-names.js"; -import { fromBinary } from "../from-binary.js"; -/** - * Hydrate a file descriptor. - * - * @private - */ -export function fileDesc(b64, imports) { - var _a; - const root = fromBinary(FileDescriptorProtoSchema, base64Decode(b64)); - root.messageType.forEach(restoreJsonNames); - root.dependency = (_a = imports === null || imports === void 0 ? void 0 : imports.map((f) => f.proto.name)) !== null && _a !== void 0 ? _a : []; - const reg = createFileRegistry(root, (protoFileName) => imports === null || imports === void 0 ? void 0 : imports.find((f) => f.proto.name === protoFileName)); - // biome-ignore lint/style/noNonNullAssertion: non-null assertion because we just created the registry from the file we look up - return reg.getFile(root.name); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.d.ts deleted file mode 100644 index b74cd36..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from "./boot.js"; -export * from "./embed.js"; -export * from "./enum.js"; -export * from "./extension.js"; -export * from "./file.js"; -export * from "./message.js"; -export * from "./service.js"; -export * from "./symbols.js"; -export * from "./scalar.js"; -export * from "./types.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js deleted file mode 100644 index 4b6fc99..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -export * from "./boot.js"; -export * from "./embed.js"; -export * from "./enum.js"; -export * from "./extension.js"; -export * from "./file.js"; -export * from "./message.js"; -export * from "./service.js"; -export * from "./symbols.js"; -export * from "./scalar.js"; -export * from "./types.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.d.ts deleted file mode 100644 index f0f3977..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Message } from "../types.js"; -import type { DescFile } from "../descriptors.js"; -import type { GenMessage } from "./types.js"; -/** - * Hydrate a message descriptor. - * - * @private - */ -export declare function messageDesc(file: DescFile, path: number, ...paths: number[]): GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js deleted file mode 100644 index adc2f55..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/** - * Hydrate a message descriptor. - * - * @private - */ -export function messageDesc(file, path, ...paths) { - return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.d.ts deleted file mode 100644 index d83d94d..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { DescriptorProto } from "../wkt/gen/google/protobuf/descriptor_pb.js"; -/** - * @private - */ -export declare function restoreJsonNames(message: DescriptorProto): void; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js deleted file mode 100644 index 26e48ae..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { protoCamelCase } from "../reflect/names.js"; -import { unsafeIsSetExplicit } from "../reflect/unsafe.js"; -/** - * @private - */ -export function restoreJsonNames(message) { - for (const f of message.field) { - if (!unsafeIsSetExplicit(f, "jsonName")) { - f.jsonName = protoCamelCase(f.name); - } - } - message.nestedType.forEach(restoreJsonNames); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.d.ts deleted file mode 100644 index 5c48fce..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ScalarType } from "../descriptors.js"; -/** - * Return the TypeScript type (as a string) for the given scalar type. - */ -export declare function scalarTypeScriptType(scalar: ScalarType, longAsString: boolean): "string" | "boolean" | "bigint" | "bigint | string" | "Uint8Array" | "number"; -/** - * Return the JSON type (as a string) for the given scalar type. - */ -export declare function scalarJsonType(scalar: ScalarType): "string" | "boolean" | "number" | `number | "NaN" | "Infinity" | "-Infinity"`; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js deleted file mode 100644 index e45b37e..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { ScalarType } from "../descriptors.js"; -/** - * Return the TypeScript type (as a string) for the given scalar type. - */ -export function scalarTypeScriptType(scalar, longAsString) { - switch (scalar) { - case ScalarType.STRING: - return "string"; - case ScalarType.BOOL: - return "boolean"; - case ScalarType.UINT64: - case ScalarType.SFIXED64: - case ScalarType.FIXED64: - case ScalarType.SINT64: - case ScalarType.INT64: - return longAsString ? "string" : "bigint"; - case ScalarType.BYTES: - return "Uint8Array"; - default: - return "number"; - } -} -/** - * Return the JSON type (as a string) for the given scalar type. - */ -export function scalarJsonType(scalar) { - switch (scalar) { - case ScalarType.DOUBLE: - case ScalarType.FLOAT: - return `number | "NaN" | "Infinity" | "-Infinity"`; - case ScalarType.UINT64: - case ScalarType.SFIXED64: - case ScalarType.FIXED64: - case ScalarType.SINT64: - case ScalarType.INT64: - return "string"; - case ScalarType.INT32: - case ScalarType.FIXED32: - case ScalarType.UINT32: - case ScalarType.SFIXED32: - case ScalarType.SINT32: - return "number"; - case ScalarType.STRING: - return "string"; - case ScalarType.BOOL: - return "boolean"; - case ScalarType.BYTES: - return "string"; - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.d.ts deleted file mode 100644 index 5818f75..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { GenService, GenServiceMethods } from "./types.js"; -import type { DescFile } from "../descriptors.js"; -/** - * Hydrate a service descriptor. - * - * @private - */ -export declare function serviceDesc(file: DescFile, path: number, ...paths: number[]): GenService; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js deleted file mode 100644 index e5684e0..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/** - * Hydrate a service descriptor. - * - * @private - */ -export function serviceDesc(file, path, ...paths) { - if (paths.length > 0) { - throw new Error(); - } - return file.services[path]; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.d.ts deleted file mode 100644 index f9d8502..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.d.ts +++ /dev/null @@ -1,135 +0,0 @@ -/** - * @private - */ -export declare const packageName = "@bufbuild/protobuf"; -/** - * @private - */ -export declare const wktPublicImportPaths: Readonly>; -/** - * @private - */ -export declare const symbols: { - readonly isMessage: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../is-message.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly Message: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../types.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly create: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../create.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly fromJson: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../from-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly fromJsonString: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../from-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly fromBinary: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../from-binary.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly toBinary: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../to-binary.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly toJson: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../to-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly toJsonString: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../to-json.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly protoInt64: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../proto-int64.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly JsonValue: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../json-value.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly JsonObject: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../json-value.js"; - readonly from: "@bufbuild/protobuf"; - }; - readonly codegen: { - readonly boot: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/boot.js"; - readonly from: string; - }; - readonly fileDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/file.js"; - readonly from: string; - }; - readonly enumDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/enum.js"; - readonly from: string; - }; - readonly extDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/extension.js"; - readonly from: string; - }; - readonly messageDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/message.js"; - readonly from: string; - }; - readonly serviceDesc: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/service.js"; - readonly from: string; - }; - readonly tsEnum: { - readonly typeOnly: false; - readonly bootstrapWktFrom: "../../codegenv2/enum.js"; - readonly from: string; - }; - readonly GenFile: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv2/types.js"; - readonly from: string; - }; - readonly GenEnum: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv2/types.js"; - readonly from: string; - }; - readonly GenExtension: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv2/types.js"; - readonly from: string; - }; - readonly GenMessage: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv2/types.js"; - readonly from: string; - }; - readonly GenService: { - readonly typeOnly: true; - readonly bootstrapWktFrom: "../../codegenv2/types.js"; - readonly from: string; - }; - }; -}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js deleted file mode 100644 index 62be0a2..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/** - * @private - */ -export const packageName = "@bufbuild/protobuf"; -/** - * @private - */ -export const wktPublicImportPaths = { - "google/protobuf/compiler/plugin.proto": packageName + "/wkt", - "google/protobuf/any.proto": packageName + "/wkt", - "google/protobuf/api.proto": packageName + "/wkt", - "google/protobuf/cpp_features.proto": packageName + "/wkt", - "google/protobuf/descriptor.proto": packageName + "/wkt", - "google/protobuf/duration.proto": packageName + "/wkt", - "google/protobuf/empty.proto": packageName + "/wkt", - "google/protobuf/field_mask.proto": packageName + "/wkt", - "google/protobuf/go_features.proto": packageName + "/wkt", - "google/protobuf/java_features.proto": packageName + "/wkt", - "google/protobuf/source_context.proto": packageName + "/wkt", - "google/protobuf/struct.proto": packageName + "/wkt", - "google/protobuf/timestamp.proto": packageName + "/wkt", - "google/protobuf/type.proto": packageName + "/wkt", - "google/protobuf/wrappers.proto": packageName + "/wkt", -}; -/** - * @private - */ -// biome-ignore format: want this to read well -export const symbols = { - isMessage: { typeOnly: false, bootstrapWktFrom: "../../is-message.js", from: packageName }, - Message: { typeOnly: true, bootstrapWktFrom: "../../types.js", from: packageName }, - create: { typeOnly: false, bootstrapWktFrom: "../../create.js", from: packageName }, - fromJson: { typeOnly: false, bootstrapWktFrom: "../../from-json.js", from: packageName }, - fromJsonString: { typeOnly: false, bootstrapWktFrom: "../../from-json.js", from: packageName }, - fromBinary: { typeOnly: false, bootstrapWktFrom: "../../from-binary.js", from: packageName }, - toBinary: { typeOnly: false, bootstrapWktFrom: "../../to-binary.js", from: packageName }, - toJson: { typeOnly: false, bootstrapWktFrom: "../../to-json.js", from: packageName }, - toJsonString: { typeOnly: false, bootstrapWktFrom: "../../to-json.js", from: packageName }, - protoInt64: { typeOnly: false, bootstrapWktFrom: "../../proto-int64.js", from: packageName }, - JsonValue: { typeOnly: true, bootstrapWktFrom: "../../json-value.js", from: packageName }, - JsonObject: { typeOnly: true, bootstrapWktFrom: "../../json-value.js", from: packageName }, - codegen: { - boot: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/boot.js", from: packageName + "/codegenv2" }, - fileDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/file.js", from: packageName + "/codegenv2" }, - enumDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/enum.js", from: packageName + "/codegenv2" }, - extDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/extension.js", from: packageName + "/codegenv2" }, - messageDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/message.js", from: packageName + "/codegenv2" }, - serviceDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/service.js", from: packageName + "/codegenv2" }, - tsEnum: { typeOnly: false, bootstrapWktFrom: "../../codegenv2/enum.js", from: packageName + "/codegenv2" }, - GenFile: { typeOnly: true, bootstrapWktFrom: "../../codegenv2/types.js", from: packageName + "/codegenv2" }, - GenEnum: { typeOnly: true, bootstrapWktFrom: "../../codegenv2/types.js", from: packageName + "/codegenv2" }, - GenExtension: { typeOnly: true, bootstrapWktFrom: "../../codegenv2/types.js", from: packageName + "/codegenv2" }, - GenMessage: { typeOnly: true, bootstrapWktFrom: "../../codegenv2/types.js", from: packageName + "/codegenv2" }, - GenService: { typeOnly: true, bootstrapWktFrom: "../../codegenv2/types.js", from: packageName + "/codegenv2" }, - }, -}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.d.ts deleted file mode 100644 index 286d368..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -import type { Message } from "../types.js"; -import type { DescEnum, DescEnumValue, DescExtension, DescField, DescFile, DescMessage, DescMethod, DescService } from "../descriptors.js"; -import type { JsonValue } from "../json-value.js"; -/** - * Describes a protobuf source file. - * - * @private - */ -export type GenFile = DescFile; -/** - * Describes a message declaration in a protobuf source file. - * - * This type is identical to DescMessage, but carries additional type - * information. - * - * @private - */ -export type GenMessage = Omit & { - field: Record, DescField>; - typeName: RuntimeShape["$typeName"]; -} & brandv2; -/** - * Describes an enumeration in a protobuf source file. - * - * This type is identical to DescEnum, but carries additional type - * information. - * - * @private - */ -export type GenEnum = Omit & { - value: Record; -} & brandv2; -/** - * Describes an extension in a protobuf source file. - * - * This type is identical to DescExtension, but carries additional type - * information. - * - * @private - */ -export type GenExtension = DescExtension & brandv2; -/** - * Describes a service declaration in a protobuf source file. - * - * This type is identical to DescService, but carries additional type - * information. - * - * @private - */ -export type GenService = Omit & { - method: { - [K in keyof RuntimeShape]: RuntimeShape[K] & DescMethod; - }; -}; -/** - * @private - */ -export type GenServiceMethods = Record>; -declare class brandv2 { - protected v: "codegenv2"; - protected a: A | boolean; - protected b: B | boolean; -} -/** - * Union of the property names of all fields, including oneof members. - * For an anonymous message (no generated message shape), it's simply a string. - */ -type MessageFieldNames = Message extends T ? string : Exclude ? K : P]-?: true; -}, number | symbol>; -type Oneof = { - case: K | undefined; - value?: unknown; -}; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js b/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js deleted file mode 100644 index b7cf882..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -class brandv2 { - constructor() { - this.v = "codegenv2"; - this.a = false; - this.b = false; - } -} -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/create.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/create.d.ts deleted file mode 100644 index 0f86a36..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/create.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { type DescMessage } from "./descriptors.js"; -import type { MessageInitShape, MessageShape } from "./types.js"; -/** - * Create a new message instance. - * - * The second argument is an optional initializer object, where all fields are - * optional. - */ -export declare function create(schema: Desc, init?: MessageInitShape): MessageShape; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/create.js b/node_modules/@bufbuild/protobuf/dist/esm/create.js deleted file mode 100644 index 8f50ebd..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/create.js +++ /dev/null @@ -1,256 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { isMessage } from "./is-message.js"; -import { ScalarType, } from "./descriptors.js"; -import { scalarZeroValue } from "./reflect/scalar.js"; -import { isObject } from "./reflect/guard.js"; -import { unsafeGet, unsafeOneofCase, unsafeSet } from "./reflect/unsafe.js"; -import { isWrapperDesc } from "./wkt/wrappers.js"; -// bootstrap-inject google.protobuf.Edition.EDITION_PROTO3: const $name: Edition.$localName = $number; -const EDITION_PROTO3 = 999; -// bootstrap-inject google.protobuf.Edition.EDITION_PROTO2: const $name: Edition.$localName = $number; -const EDITION_PROTO2 = 998; -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.IMPLICIT: const $name: FeatureSet_FieldPresence.$localName = $number; -const IMPLICIT = 2; -/** - * Create a new message instance. - * - * The second argument is an optional initializer object, where all fields are - * optional. - */ -export function create(schema, init) { - if (isMessage(init, schema)) { - return init; - } - const message = createZeroMessage(schema); - if (init !== undefined) { - initMessage(schema, message, init); - } - return message; -} -/** - * Sets field values from a MessageInitShape on a zero message. - */ -function initMessage(messageDesc, message, init) { - for (const member of messageDesc.members) { - let value = init[member.localName]; - if (value == null) { - // intentionally ignore undefined and null - continue; - } - let field; - if (member.kind == "oneof") { - const oneofField = unsafeOneofCase(init, member); - if (!oneofField) { - continue; - } - field = oneofField; - value = unsafeGet(init, oneofField); - } - else { - field = member; - } - switch (field.fieldKind) { - case "message": - value = toMessage(field, value); - break; - case "scalar": - value = initScalar(field, value); - break; - case "list": - value = initList(field, value); - break; - case "map": - value = initMap(field, value); - break; - } - unsafeSet(message, field, value); - } - return message; -} -function initScalar(field, value) { - if (field.scalar == ScalarType.BYTES) { - return toU8Arr(value); - } - return value; -} -function initMap(field, value) { - if (isObject(value)) { - if (field.scalar == ScalarType.BYTES) { - return convertObjectValues(value, toU8Arr); - } - if (field.mapKind == "message") { - return convertObjectValues(value, (val) => toMessage(field, val)); - } - } - return value; -} -function initList(field, value) { - if (Array.isArray(value)) { - if (field.scalar == ScalarType.BYTES) { - return value.map(toU8Arr); - } - if (field.listKind == "message") { - return value.map((item) => toMessage(field, item)); - } - } - return value; -} -function toMessage(field, value) { - if (field.fieldKind == "message" && - !field.oneof && - isWrapperDesc(field.message)) { - // Types from google/protobuf/wrappers.proto are unwrapped when used in - // a singular field that is not part of a oneof group. - return initScalar(field.message.fields[0], value); - } - if (isObject(value)) { - if (field.message.typeName == "google.protobuf.Struct" && - field.parent.typeName !== "google.protobuf.Value") { - // google.protobuf.Struct is represented with JsonObject when used in a - // field, except when used in google.protobuf.Value. - return value; - } - if (!isMessage(value, field.message)) { - return create(field.message, value); - } - } - return value; -} -// converts any ArrayLike to Uint8Array if necessary. -function toU8Arr(value) { - return Array.isArray(value) ? new Uint8Array(value) : value; -} -function convertObjectValues(obj, fn) { - const ret = {}; - for (const entry of Object.entries(obj)) { - ret[entry[0]] = fn(entry[1]); - } - return ret; -} -const tokenZeroMessageField = Symbol(); -const messagePrototypes = new WeakMap(); -/** - * Create a zero message. - */ -function createZeroMessage(desc) { - let msg; - if (!needsPrototypeChain(desc)) { - msg = { - $typeName: desc.typeName, - }; - for (const member of desc.members) { - if (member.kind == "oneof" || member.presence == IMPLICIT) { - msg[member.localName] = createZeroField(member); - } - } - } - else { - // Support default values and track presence via the prototype chain - const cached = messagePrototypes.get(desc); - let prototype; - let members; - if (cached) { - ({ prototype, members } = cached); - } - else { - prototype = {}; - members = new Set(); - for (const member of desc.members) { - if (member.kind == "oneof") { - // we can only put immutable values on the prototype, - // oneof ADTs are mutable - continue; - } - if (member.fieldKind != "scalar" && member.fieldKind != "enum") { - // only scalar and enum values are immutable, map, list, and message - // are not - continue; - } - if (member.presence == IMPLICIT) { - // implicit presence tracks field presence by zero values - e.g. 0, false, "", are unset, 1, true, "x" are set. - // message, map, list fields are mutable, and also have IMPLICIT presence. - continue; - } - members.add(member); - prototype[member.localName] = createZeroField(member); - } - messagePrototypes.set(desc, { prototype, members }); - } - msg = Object.create(prototype); - msg.$typeName = desc.typeName; - for (const member of desc.members) { - if (members.has(member)) { - continue; - } - if (member.kind == "field") { - if (member.fieldKind == "message") { - continue; - } - if (member.fieldKind == "scalar" || member.fieldKind == "enum") { - if (member.presence != IMPLICIT) { - continue; - } - } - } - msg[member.localName] = createZeroField(member); - } - } - return msg; -} -/** - * Do we need the prototype chain to track field presence? - */ -function needsPrototypeChain(desc) { - switch (desc.file.edition) { - case EDITION_PROTO3: - // proto3 always uses implicit presence, we never need the prototype chain. - return false; - case EDITION_PROTO2: - // proto2 never uses implicit presence, we always need the prototype chain. - return true; - default: - // If a message uses scalar or enum fields with explicit presence, we need - // the prototype chain to track presence. This rule does not apply to fields - // in a oneof group - they use a different mechanism to track presence. - return desc.fields.some((f) => f.presence != IMPLICIT && f.fieldKind != "message" && !f.oneof); - } -} -/** - * Returns a zero value for oneof groups, and for every field kind except - * messages. Scalar and enum fields can have default values. - */ -function createZeroField(field) { - if (field.kind == "oneof") { - return { case: undefined }; - } - if (field.fieldKind == "list") { - return []; - } - if (field.fieldKind == "map") { - return {}; // Object.create(null) would be desirable here, but is unsupported by react https://react.dev/reference/react/use-server#serializable-parameters-and-return-values - } - if (field.fieldKind == "message") { - return tokenZeroMessageField; - } - const defaultValue = field.getDefaultValue(); - if (defaultValue !== undefined) { - return field.fieldKind == "scalar" && field.longAsString - ? defaultValue.toString() - : defaultValue; - } - return field.fieldKind == "scalar" - ? scalarZeroValue(field.scalar, field.longAsString) - : field.enum.values[0].number; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/descriptors.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/descriptors.d.ts deleted file mode 100644 index b3fe9b5..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/descriptors.d.ts +++ /dev/null @@ -1,627 +0,0 @@ -import type { DescriptorProto, Edition, EnumDescriptorProto, EnumValueDescriptorProto, FeatureSet_FieldPresence, FieldDescriptorProto, FileDescriptorProto, MethodDescriptorProto, MethodOptions_IdempotencyLevel, OneofDescriptorProto, ServiceDescriptorProto } from "./wkt/gen/google/protobuf/descriptor_pb.js"; -import type { ScalarValue } from "./reflect/scalar.js"; -export type SupportedEdition = Extract; -type SupportedFieldPresence = Extract; -/** - * Scalar value types. This is a subset of field types declared by protobuf - * enum google.protobuf.FieldDescriptorProto.Type The types GROUP and MESSAGE - * are omitted, but the numerical values are identical. - */ -export declare enum ScalarType { - DOUBLE = 1, - FLOAT = 2, - INT64 = 3, - UINT64 = 4, - INT32 = 5, - FIXED64 = 6, - FIXED32 = 7, - BOOL = 8, - STRING = 9, - BYTES = 12, - UINT32 = 13, - SFIXED32 = 15, - SFIXED64 = 16, - SINT32 = 17,// Uses ZigZag encoding. - SINT64 = 18 -} -/** - * A union of all descriptors, discriminated by a `kind` property. - */ -export type AnyDesc = DescFile | DescEnum | DescEnumValue | DescMessage | DescField | DescExtension | DescOneof | DescService | DescMethod; -/** - * Describes a protobuf source file. - */ -export interface DescFile { - readonly kind: "file"; - /** - * The edition of the protobuf file. Will be EDITION_PROTO2 for syntax="proto2", - * EDITION_PROTO3 for syntax="proto3"; - */ - readonly edition: SupportedEdition; - /** - * The name of the file, excluding the .proto suffix. - * For a protobuf file `foo/bar.proto`, this is `foo/bar`. - */ - readonly name: string; - /** - * Files imported by this file. - */ - readonly dependencies: DescFile[]; - /** - * Top-level enumerations declared in this file. - * Note that more enumerations might be declared within message declarations. - */ - readonly enums: DescEnum[]; - /** - * Top-level messages declared in this file. - * Note that more messages might be declared within message declarations. - */ - readonly messages: DescMessage[]; - /** - * Top-level extensions declared in this file. - * Note that more extensions might be declared within message declarations. - */ - readonly extensions: DescExtension[]; - /** - * Services declared in this file. - */ - readonly services: DescService[]; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: FileDescriptorProto; - toString(): string; -} -/** - * Describes an enumeration in a protobuf source file. - */ -export interface DescEnum { - readonly kind: "enum"; - /** - * The fully qualified name of the enumeration. (We omit the leading dot.) - */ - readonly typeName: string; - /** - * The name of the enumeration, as declared in the protobuf source. - */ - readonly name: string; - /** - * The file this enumeration was declared in. - */ - readonly file: DescFile; - /** - * The parent message, if this enumeration was declared inside a message declaration. - */ - readonly parent: DescMessage | undefined; - /** - * Enumerations can be open or closed. - * See https://protobuf.dev/programming-guides/enum/ - */ - readonly open: boolean; - /** - * Values declared for this enumeration. - */ - readonly values: DescEnumValue[]; - /** - * All values of this enum by their number. - */ - readonly value: Record; - /** - * A prefix shared by all enum values. - * For example, `my_enum_` for `enum MyEnum {MY_ENUM_A=0; MY_ENUM_B=1;}` - */ - readonly sharedPrefix?: string; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: EnumDescriptorProto; - toString(): string; -} -/** - * Describes an individual value of an enumeration in a protobuf source file. - */ -export interface DescEnumValue { - readonly kind: "enum_value"; - /** - * The name of the enumeration value, as specified in the protobuf source. - */ - readonly name: string; - /** - * A safe and idiomatic name for the value in a TypeScript enum. - */ - readonly localName: string; - /** - * The enumeration this value belongs to. - */ - readonly parent: DescEnum; - /** - * The numeric enumeration value, as specified in the protobuf source. - */ - readonly number: number; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: EnumValueDescriptorProto; - toString(): string; -} -/** - * Describes a message declaration in a protobuf source file. - */ -export interface DescMessage { - readonly kind: "message"; - /** - * The fully qualified name of the message. (We omit the leading dot.) - */ - readonly typeName: string; - /** - * The name of the message, as specified in the protobuf source. - */ - readonly name: string; - /** - * The file this message was declared in. - */ - readonly file: DescFile; - /** - * The parent message, if this message was declared inside a message declaration. - */ - readonly parent: DescMessage | undefined; - /** - * Fields declared for this message, including fields declared in a oneof - * group. - */ - readonly fields: DescField[]; - /** - * All fields of this message by their "localName". - */ - readonly field: Record; - /** - * Oneof groups declared for this message. - * This does not include synthetic oneofs for proto3 optionals. - */ - readonly oneofs: DescOneof[]; - /** - * Fields and oneof groups for this message, ordered by their appearance in the - * protobuf source. - */ - readonly members: (DescField | DescOneof)[]; - /** - * Enumerations declared within the message, if any. - */ - readonly nestedEnums: DescEnum[]; - /** - * Messages declared within the message, if any. - * This does not include synthetic messages like map entries. - */ - readonly nestedMessages: DescMessage[]; - /** - * Extensions declared within the message, if any. - */ - readonly nestedExtensions: DescExtension[]; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: DescriptorProto; - toString(): string; -} -/** - * Describes a field declaration in a protobuf source file. - */ -export type DescField = (descFieldScalar & descFieldCommon) | (descFieldList & descFieldCommon) | (descFieldMessage & descFieldCommon) | (descFieldEnum & descFieldCommon) | (descFieldMap & descFieldCommon); -type descFieldCommon = descFieldAndExtensionShared & { - readonly kind: "field"; - /** - * The message this field is declared on. - */ - readonly parent: DescMessage; - /** - * A safe and idiomatic name for the field as a property in ECMAScript. - */ - readonly localName: string; -}; -/** - * Describes an extension in a protobuf source file. - */ -export type DescExtension = (Omit & descExtensionCommon) | (Omit & descExtensionCommon) | (Omit & descExtensionCommon) | (descFieldList & descExtensionCommon); -type descExtensionCommon = descFieldAndExtensionShared & { - readonly kind: "extension"; - /** - * The fully qualified name of the extension. - */ - readonly typeName: string; - /** - * The file this extension was declared in. - */ - readonly file: DescFile; - /** - * The parent message, if this extension was declared inside a message declaration. - */ - readonly parent: DescMessage | undefined; - /** - * The message that this extension extends. - */ - readonly extendee: DescMessage; - /** - * The `oneof` group this field belongs to, if any. - */ - readonly oneof: undefined; -}; -interface descFieldAndExtensionShared { - /** - * The field name, as specified in the protobuf source - */ - readonly name: string; - /** - * The field number, as specified in the protobuf source. - */ - readonly number: number; - /** - * The field name in JSON. - */ - readonly jsonName: string; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * Presence of the field. - * See https://protobuf.dev/programming-guides/field_presence/ - */ - readonly presence: SupportedFieldPresence; - /** - * The compiler-generated descriptor. - */ - readonly proto: FieldDescriptorProto; - /** - * Get the edition features for this protobuf element. - */ - toString(): string; -} -type descFieldSingularCommon = { - /** - * The `oneof` group this field belongs to, if any. - * - * This does not include synthetic oneofs for proto3 optionals. - */ - readonly oneof: DescOneof | undefined; -}; -type descFieldScalar = T extends T ? { - readonly fieldKind: "scalar"; - /** - * Scalar type, if it is a scalar field. - */ - readonly scalar: T; - /** - * By default, 64-bit integral types (int64, uint64, sint64, fixed64, - * sfixed64) are represented with BigInt. - * - * If the field option `jstype = JS_STRING` is set, this property - * is true, and 64-bit integral types are represented with String. - */ - readonly longAsString: boolean; - /** - * The message type, if it is a message field. - */ - readonly message: undefined; - /** - * The enum type, if it is an enum field. - */ - readonly enum: undefined; - /** - * Return the default value specified in the protobuf source. - */ - getDefaultValue(): ScalarValue | undefined; -} & descFieldSingularCommon : never; -type descFieldMessage = { - readonly fieldKind: "message"; - /** - * Scalar type, if it is a scalar field. - */ - readonly scalar: undefined; - /** - * The message type, if it is a message field. - */ - readonly message: DescMessage; - /** - * Encode the message delimited (a.k.a. proto2 group encoding), or - * length-prefixed? - */ - readonly delimitedEncoding: boolean; - /** - * The enum type, if it is an enum field. - */ - readonly enum: undefined; - /** - * Return the default value specified in the protobuf source. - */ - getDefaultValue(): undefined; -} & descFieldSingularCommon; -type descFieldEnum = { - readonly fieldKind: "enum"; - /** - * Scalar type, if it is a scalar field. - */ - readonly scalar: undefined; - /** - * The message type, if it is a message field. - */ - readonly message: undefined; - /** - * The enum type, if it is an enum field. - */ - readonly enum: DescEnum; - /** - * Return the default value specified in the protobuf source. - */ - getDefaultValue(): number | undefined; -} & descFieldSingularCommon; -type descFieldList = (descFieldListScalar & descFieldListCommon) | (descFieldListEnum & descFieldListCommon) | (descFieldListMessage & descFieldListCommon); -type descFieldListCommon = { - readonly fieldKind: "list"; - /** - * Pack this repeated field? Only valid for repeated enum fields, and - * for repeated scalar fields except BYTES and STRING. - */ - readonly packed: boolean; - /** - * The `oneof` group this field belongs to, if any. - */ - readonly oneof: undefined; -}; -type descFieldListScalar = T extends T ? { - readonly listKind: "scalar"; - /** - * The enum list element type. - */ - readonly enum: undefined; - /** - * The message list element type. - */ - readonly message: undefined; - /** - * Scalar list element type. - */ - readonly scalar: T; - /** - * By default, 64-bit integral types (int64, uint64, sint64, fixed64, - * sfixed64) are represented with BigInt. - * - * If the field option `jstype = JS_STRING` is set, this property - * is true, and 64-bit integral types are represented with String. - */ - readonly longAsString: boolean; -} : never; -type descFieldListEnum = { - readonly listKind: "enum"; - /** - * The enum list element type. - */ - readonly enum: DescEnum; - /** - * The message list element type. - */ - readonly message: undefined; - /** - * Scalar list element type. - */ - readonly scalar: undefined; -}; -type descFieldListMessage = { - readonly listKind: "message"; - /** - * The enum list element type. - */ - readonly enum: undefined; - /** - * The message list element type. - */ - readonly message: DescMessage; - /** - * Scalar list element type. - */ - readonly scalar: undefined; - /** - * Encode the message delimited (a.k.a. proto2 group encoding), or - * length-prefixed? - */ - readonly delimitedEncoding: boolean; -}; -type descFieldMap = (descFieldMapScalar & descFieldMapCommon) | (descFieldMapEnum & descFieldMapCommon) | (descFieldMapMessage & descFieldMapCommon); -type descFieldMapCommon = T extends Exclude ? { - readonly fieldKind: "map"; - /** - * The scalar map key type. - */ - readonly mapKey: T; - /** - * The `oneof` group this field belongs to, if any. - */ - readonly oneof: undefined; - /** - * Encode the map entry message delimited (a.k.a. proto2 group encoding), - * or length-prefixed? As of Edition 2023, this is always false for map fields, - * and also applies to map values, if they are messages. - */ - readonly delimitedEncoding: false; -} : never; -type descFieldMapScalar = T extends T ? { - readonly mapKind: "scalar"; - /** - * The enum map value type. - */ - readonly enum: undefined; - /** - * The message map value type. - */ - readonly message: undefined; - /** - * Scalar map value type. - */ - readonly scalar: T; -} : never; -type descFieldMapEnum = { - readonly mapKind: "enum"; - /** - * The enum map value type. - */ - readonly enum: DescEnum; - /** - * The message map value type. - */ - readonly message: undefined; - /** - * Scalar map value type. - */ - readonly scalar: undefined; -}; -type descFieldMapMessage = { - readonly mapKind: "message"; - /** - * The enum map value type. - */ - readonly enum: undefined; - /** - * The message map value type. - */ - readonly message: DescMessage; - /** - * Scalar map value type. - */ - readonly scalar: undefined; -}; -/** - * Describes a oneof group in a protobuf source file. - */ -export interface DescOneof { - readonly kind: "oneof"; - /** - * The name of the oneof group, as specified in the protobuf source. - */ - readonly name: string; - /** - * A safe and idiomatic name for the oneof group as a property in ECMAScript. - */ - readonly localName: string; - /** - * The message this oneof group was declared in. - */ - readonly parent: DescMessage; - /** - * The fields declared in this oneof group. - */ - readonly fields: DescField[]; - /** - * Marked as deprecated in the protobuf source. - * Note that oneof groups cannot be marked as deprecated, this property - * only exists for consistency and will always be false. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: OneofDescriptorProto; - toString(): string; -} -/** - * Describes a service declaration in a protobuf source file. - */ -export interface DescService { - readonly kind: "service"; - /** - * The fully qualified name of the service. (We omit the leading dot.) - */ - readonly typeName: string; - /** - * The name of the service, as specified in the protobuf source. - */ - readonly name: string; - /** - * The file this service was declared in. - */ - readonly file: DescFile; - /** - * The RPCs this service declares. - */ - readonly methods: DescMethod[]; - /** - * All methods of this service by their "localName". - */ - readonly method: Record; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: ServiceDescriptorProto; - toString(): string; -} -/** - * Describes an RPC declaration in a protobuf source file. - */ -export interface DescMethod { - readonly kind: "rpc"; - /** - * The name of the RPC, as specified in the protobuf source. - */ - readonly name: string; - /** - * A safe and idiomatic name for the RPC as a method in ECMAScript. - */ - readonly localName: string; - /** - * The parent service. - */ - readonly parent: DescService; - /** - * One of the four available method types. - */ - readonly methodKind: "unary" | "server_streaming" | "client_streaming" | "bidi_streaming"; - /** - * The message type for requests. - */ - readonly input: DescMessage; - /** - * The message type for responses. - */ - readonly output: DescMessage; - /** - * The idempotency level declared in the protobuf source, if any. - */ - readonly idempotency: MethodOptions_IdempotencyLevel; - /** - * Marked as deprecated in the protobuf source. - */ - readonly deprecated: boolean; - /** - * The compiler-generated descriptor. - */ - readonly proto: MethodDescriptorProto; - toString(): string; -} -/** - * Comments on an element in a protobuf source file. - */ -export interface DescComments { - readonly leadingDetached: readonly string[]; - readonly leading?: string; - readonly trailing?: string; - readonly sourcePath: readonly number[]; -} -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js b/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js deleted file mode 100644 index bb598e8..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/** - * Scalar value types. This is a subset of field types declared by protobuf - * enum google.protobuf.FieldDescriptorProto.Type The types GROUP and MESSAGE - * are omitted, but the numerical values are identical. - */ -export var ScalarType; -(function (ScalarType) { - // 0 is reserved for errors. - // Order is weird for historical reasons. - ScalarType[ScalarType["DOUBLE"] = 1] = "DOUBLE"; - ScalarType[ScalarType["FLOAT"] = 2] = "FLOAT"; - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - // negative values are likely. - ScalarType[ScalarType["INT64"] = 3] = "INT64"; - ScalarType[ScalarType["UINT64"] = 4] = "UINT64"; - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - // negative values are likely. - ScalarType[ScalarType["INT32"] = 5] = "INT32"; - ScalarType[ScalarType["FIXED64"] = 6] = "FIXED64"; - ScalarType[ScalarType["FIXED32"] = 7] = "FIXED32"; - ScalarType[ScalarType["BOOL"] = 8] = "BOOL"; - ScalarType[ScalarType["STRING"] = 9] = "STRING"; - // Tag-delimited aggregate. - // Group type is deprecated and not supported in proto3. However, Proto3 - // implementations should still be able to parse the group wire format and - // treat group fields as unknown fields. - // TYPE_GROUP = 10, - // TYPE_MESSAGE = 11, // Length-delimited aggregate. - // New in version 2. - ScalarType[ScalarType["BYTES"] = 12] = "BYTES"; - ScalarType[ScalarType["UINT32"] = 13] = "UINT32"; - // TYPE_ENUM = 14, - ScalarType[ScalarType["SFIXED32"] = 15] = "SFIXED32"; - ScalarType[ScalarType["SFIXED64"] = 16] = "SFIXED64"; - ScalarType[ScalarType["SINT32"] = 17] = "SINT32"; - ScalarType[ScalarType["SINT64"] = 18] = "SINT64"; -})(ScalarType || (ScalarType = {})); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/equals.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/equals.d.ts deleted file mode 100644 index 914048f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/equals.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import type { MessageShape } from "./types.js"; -import { type DescMessage } from "./descriptors.js"; -import type { Registry } from "./registry.js"; -interface EqualsOptions { - /** - * A registry to look up extensions, and messages packed in Any. - * - * @private Experimental API, does not follow semantic versioning. - */ - registry: Registry; - /** - * Unpack google.protobuf.Any before comparing. - * If a type is not in the registry, comparison falls back to comparing the - * fields of Any. - * - * @private Experimental API, does not follow semantic versioning. - */ - unpackAny?: boolean; - /** - * Consider extensions when comparing. - * - * @private Experimental API, does not follow semantic versioning. - */ - extensions?: boolean; - /** - * Consider unknown fields when comparing. - * The registry is used to distinguish between extensions, and unknown fields - * caused by schema changes. - * - * @private Experimental API, does not follow semantic versioning. - */ - unknown?: boolean; -} -/** - * Compare two messages of the same type. - * - * Note that this function disregards extensions and unknown fields, and that - * NaN is not equal NaN, following the IEEE standard. - */ -export declare function equals(schema: Desc, a: MessageShape, b: MessageShape, options?: EqualsOptions): boolean; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/equals.js b/node_modules/@bufbuild/protobuf/dist/esm/equals.js deleted file mode 100644 index 23b178c..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/equals.js +++ /dev/null @@ -1,201 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { scalarEquals } from "./reflect/scalar.js"; -import { reflect } from "./reflect/reflect.js"; -import { ScalarType, } from "./descriptors.js"; -import { anyUnpack } from "./wkt/index.js"; -import { createExtensionContainer, getExtension } from "./extensions.js"; -/** - * Compare two messages of the same type. - * - * Note that this function disregards extensions and unknown fields, and that - * NaN is not equal NaN, following the IEEE standard. - */ -export function equals(schema, a, b, options) { - if (a.$typeName != schema.typeName || b.$typeName != schema.typeName) { - return false; - } - if (a === b) { - return true; - } - return reflectEquals(reflect(schema, a), reflect(schema, b), options); -} -function reflectEquals(a, b, opts) { - if (a.desc.typeName === "google.protobuf.Any" && (opts === null || opts === void 0 ? void 0 : opts.unpackAny) == true) { - return anyUnpackedEquals(a.message, b.message, opts); - } - for (const f of a.fields) { - if (!fieldEquals(f, a, b, opts)) { - return false; - } - } - if ((opts === null || opts === void 0 ? void 0 : opts.unknown) == true && !unknownEquals(a, b, opts.registry)) { - return false; - } - if ((opts === null || opts === void 0 ? void 0 : opts.extensions) == true && !extensionsEquals(a, b, opts)) { - return false; - } - return true; -} -// TODO(tstamm) add an option to consider NaN equal to NaN? -function fieldEquals(f, a, b, opts) { - if (!a.isSet(f) && !b.isSet(f)) { - return true; - } - if (!a.isSet(f) || !b.isSet(f)) { - return false; - } - switch (f.fieldKind) { - case "scalar": - return scalarEquals(f.scalar, a.get(f), b.get(f)); - case "enum": - return a.get(f) === b.get(f); - case "message": - return reflectEquals(a.get(f), b.get(f), opts); - case "map": { - // TODO(tstamm) can't we compare sizes first? - const mapA = a.get(f); - const mapB = b.get(f); - const keys = []; - for (const k of mapA.keys()) { - if (!mapB.has(k)) { - return false; - } - keys.push(k); - } - for (const k of mapB.keys()) { - if (!mapA.has(k)) { - return false; - } - } - for (const key of keys) { - const va = mapA.get(key); - const vb = mapB.get(key); - if (va === vb) { - continue; - } - switch (f.mapKind) { - case "enum": - return false; - case "message": - if (!reflectEquals(va, vb, opts)) { - return false; - } - break; - case "scalar": - if (!scalarEquals(f.scalar, va, vb)) { - return false; - } - break; - } - } - break; - } - case "list": { - const listA = a.get(f); - const listB = b.get(f); - if (listA.size != listB.size) { - return false; - } - for (let i = 0; i < listA.size; i++) { - const va = listA.get(i); - const vb = listB.get(i); - if (va === vb) { - continue; - } - switch (f.listKind) { - case "enum": - return false; - case "message": - if (!reflectEquals(va, vb, opts)) { - return false; - } - break; - case "scalar": - if (!scalarEquals(f.scalar, va, vb)) { - return false; - } - break; - } - } - break; - } - } - return true; -} -function anyUnpackedEquals(a, b, opts) { - if (a.typeUrl !== b.typeUrl) { - return false; - } - const unpackedA = anyUnpack(a, opts.registry); - const unpackedB = anyUnpack(b, opts.registry); - if (unpackedA && unpackedB) { - const schema = opts.registry.getMessage(unpackedA.$typeName); - if (schema) { - return equals(schema, unpackedA, unpackedB, opts); - } - } - return scalarEquals(ScalarType.BYTES, a.value, b.value); -} -function unknownEquals(a, b, registry) { - function getTrulyUnknown(msg, registry) { - var _a; - const u = (_a = msg.getUnknown()) !== null && _a !== void 0 ? _a : []; - return registry - ? u.filter((uf) => !registry.getExtensionFor(msg.desc, uf.no)) - : u; - } - const unknownA = getTrulyUnknown(a, registry); - const unknownB = getTrulyUnknown(b, registry); - if (unknownA.length != unknownB.length) { - return false; - } - for (let i = 0; i < unknownA.length; i++) { - const a = unknownA[i]; - const b = unknownB[i]; - if (a.no != b.no) { - return false; - } - if (a.wireType != b.wireType) { - return false; - } - if (!scalarEquals(ScalarType.BYTES, a.data, b.data)) { - return false; - } - } - return true; -} -function extensionsEquals(a, b, opts) { - function getSetExtensions(msg, registry) { - var _a; - return ((_a = msg.getUnknown()) !== null && _a !== void 0 ? _a : []) - .map((uf) => registry.getExtensionFor(msg.desc, uf.no)) - .filter((e) => e != undefined) - .filter((e, index, arr) => arr.indexOf(e) === index); - } - const extensionsA = getSetExtensions(a, opts.registry); - const extensionsB = getSetExtensions(b, opts.registry); - if (extensionsA.length != extensionsB.length || - extensionsA.some((e) => !extensionsB.includes(e))) { - return false; - } - for (const extension of extensionsA) { - const [containerA, field] = createExtensionContainer(extension, getExtension(a.message, extension)); - const [containerB] = createExtensionContainer(extension, getExtension(b.message, extension)); - if (!fieldEquals(field, containerA, containerB, opts)) { - return false; - } - } - return true; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/extensions.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/extensions.d.ts deleted file mode 100644 index 8336447..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/extensions.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -import type { AnyDesc, DescEnum, DescEnumValue, DescExtension, DescField, DescFile, DescMessage, DescMethod, DescOneof, DescService } from "./descriptors.js"; -import type { ReflectMessage } from "./reflect/reflect-types.js"; -import type { Extendee, ExtensionValueShape } from "./types.js"; -import type { EnumOptions, EnumValueOptions, FieldOptions, FileOptions, MessageOptions, MethodOptions, OneofOptions, ServiceOptions } from "./wkt/gen/google/protobuf/descriptor_pb.js"; -/** - * Retrieve an extension value from a message. - * - * The function never returns undefined. Use hasExtension() to check whether an - * extension is set. If the extension is not set, this function returns the - * default value (if one was specified in the protobuf source), or the zero value - * (for example `0` for numeric types, `[]` for repeated extension fields, and - * an empty message instance for message fields). - * - * Extensions are stored as unknown fields on a message. To mutate an extension - * value, make sure to store the new value with setExtension() after mutating. - * - * If the extension does not extend the given message, an error is raised. - */ -export declare function getExtension(message: Extendee, extension: Desc): ExtensionValueShape; -/** - * Set an extension value on a message. If the message already has a value for - * this extension, the value is replaced. - * - * If the extension does not extend the given message, an error is raised. - */ -export declare function setExtension(message: Extendee, extension: Desc, value: ExtensionValueShape): void; -/** - * Remove an extension value from a message. - * - * If the extension does not extend the given message, an error is raised. - */ -export declare function clearExtension(message: Extendee, extension: Desc): void; -/** - * Check whether an extension is set on a message. - */ -export declare function hasExtension(message: Extendee, extension: Desc): boolean; -/** - * Check whether an option is set on a descriptor. - * - * Options are extensions to the `google.protobuf.*Options` messages defined in - * google/protobuf/descriptor.proto. This function gets the option message from - * the descriptor, and calls hasExtension(). - */ -export declare function hasOption>(element: Desc, option: Ext): boolean; -/** - * Retrieve an option value from a descriptor. - * - * Options are extensions to the `google.protobuf.*Options` messages defined in - * google/protobuf/descriptor.proto. This function gets the option message from - * the descriptor, and calls getExtension(). Same as getExtension(), this - * function never returns undefined. - */ -export declare function getOption>(element: Desc, option: Ext): ExtensionValueShape; -type DescForOptionExtension = Extendee extends FileOptions ? DescFile : Extendee extends EnumOptions ? DescEnum : Extendee extends EnumValueOptions ? DescEnumValue : Extendee extends MessageOptions ? DescMessage : Extendee extends MessageOptions ? DescEnum : Extendee extends FieldOptions ? DescField | DescExtension : Extendee extends OneofOptions ? DescOneof : Extendee extends ServiceOptions ? DescService : Extendee extends EnumOptions ? DescEnum : Extendee extends MethodOptions ? DescMethod : AnyDesc; -/** - * @private - */ -export declare function createExtensionContainer(extension: Desc, value?: ExtensionValueShape): [ReflectMessage, DescField, () => ExtensionValueShape]; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/extensions.js b/node_modules/@bufbuild/protobuf/dist/esm/extensions.js deleted file mode 100644 index 24191f9..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { create } from "./create.js"; -import { readField } from "./from-binary.js"; -import { reflect } from "./reflect/reflect.js"; -import { scalarZeroValue } from "./reflect/scalar.js"; -import { writeField } from "./to-binary.js"; -import { BinaryReader, BinaryWriter } from "./wire/binary-encoding.js"; -import { isWrapperDesc } from "./wkt/wrappers.js"; -/** - * Retrieve an extension value from a message. - * - * The function never returns undefined. Use hasExtension() to check whether an - * extension is set. If the extension is not set, this function returns the - * default value (if one was specified in the protobuf source), or the zero value - * (for example `0` for numeric types, `[]` for repeated extension fields, and - * an empty message instance for message fields). - * - * Extensions are stored as unknown fields on a message. To mutate an extension - * value, make sure to store the new value with setExtension() after mutating. - * - * If the extension does not extend the given message, an error is raised. - */ -export function getExtension(message, extension) { - assertExtendee(extension, message); - const ufs = filterUnknownFields(message.$unknown, extension); - const [container, field, get] = createExtensionContainer(extension); - for (const uf of ufs) { - readField(container, new BinaryReader(uf.data), field, uf.wireType, { - readUnknownFields: true, - }); - } - return get(); -} -/** - * Set an extension value on a message. If the message already has a value for - * this extension, the value is replaced. - * - * If the extension does not extend the given message, an error is raised. - */ -export function setExtension(message, extension, value) { - var _a; - assertExtendee(extension, message); - const ufs = ((_a = message.$unknown) !== null && _a !== void 0 ? _a : []).filter((uf) => uf.no !== extension.number); - const [container, field] = createExtensionContainer(extension, value); - const writer = new BinaryWriter(); - writeField(writer, { writeUnknownFields: true }, container, field); - const reader = new BinaryReader(writer.finish()); - while (reader.pos < reader.len) { - const [no, wireType] = reader.tag(); - const data = reader.skip(wireType, no); - ufs.push({ no, wireType, data }); - } - message.$unknown = ufs; -} -/** - * Remove an extension value from a message. - * - * If the extension does not extend the given message, an error is raised. - */ -export function clearExtension(message, extension) { - assertExtendee(extension, message); - if (message.$unknown === undefined) { - return; - } - message.$unknown = message.$unknown.filter((uf) => uf.no !== extension.number); -} -/** - * Check whether an extension is set on a message. - */ -export function hasExtension(message, extension) { - var _a; - return (extension.extendee.typeName === message.$typeName && - !!((_a = message.$unknown) === null || _a === void 0 ? void 0 : _a.find((uf) => uf.no === extension.number))); -} -/** - * Check whether an option is set on a descriptor. - * - * Options are extensions to the `google.protobuf.*Options` messages defined in - * google/protobuf/descriptor.proto. This function gets the option message from - * the descriptor, and calls hasExtension(). - */ -export function hasOption(element, option) { - const message = element.proto.options; - if (!message) { - return false; - } - return hasExtension(message, option); -} -/** - * Retrieve an option value from a descriptor. - * - * Options are extensions to the `google.protobuf.*Options` messages defined in - * google/protobuf/descriptor.proto. This function gets the option message from - * the descriptor, and calls getExtension(). Same as getExtension(), this - * function never returns undefined. - */ -export function getOption(element, option) { - const message = element.proto.options; - if (!message) { - const [, , get] = createExtensionContainer(option); - return get(); - } - return getExtension(message, option); -} -function filterUnknownFields(unknownFields, extension) { - if (unknownFields === undefined) - return []; - if (extension.fieldKind === "enum" || extension.fieldKind === "scalar") { - // singular scalar fields do not merge, we pick the last - for (let i = unknownFields.length - 1; i >= 0; --i) { - if (unknownFields[i].no == extension.number) { - return [unknownFields[i]]; - } - } - return []; - } - return unknownFields.filter((uf) => uf.no === extension.number); -} -/** - * @private - */ -export function createExtensionContainer(extension, value) { - const localName = extension.typeName; - const field = Object.assign(Object.assign({}, extension), { kind: "field", parent: extension.extendee, localName }); - const desc = Object.assign(Object.assign({}, extension.extendee), { fields: [field], members: [field], oneofs: [] }); - const container = create(desc, value !== undefined ? { [localName]: value } : undefined); - return [ - reflect(desc, container), - field, - () => { - const value = container[localName]; - if (value === undefined) { - // biome-ignore lint/style/noNonNullAssertion: Only message fields are undefined, rest will have a zero value. - const desc = extension.message; - if (isWrapperDesc(desc)) { - return scalarZeroValue(desc.fields[0].scalar, desc.fields[0].longAsString); - } - return create(desc); - } - return value; - }, - ]; -} -function assertExtendee(extension, message) { - if (extension.extendee.typeName != message.$typeName) { - throw new Error(`extension ${extension.typeName} can only be applied to message ${extension.extendee.typeName}`); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/fields.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/fields.d.ts deleted file mode 100644 index a44a0c8..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/fields.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type { MessageShape } from "./types.js"; -import type { DescField, DescMessage } from "./descriptors.js"; -/** - * Returns true if the field is set. - * - * - Scalar and enum fields with implicit presence (proto3): - * Set if not a zero value. - * - * - Scalar and enum fields with explicit presence (proto2, oneof): - * Set if a value was set when creating or parsing the message, or when a - * value was assigned to the field's property. - * - * - Message fields: - * Set if the property is not undefined. - * - * - List and map fields: - * Set if not empty. - */ -export declare function isFieldSet(message: MessageShape, field: DescField): boolean; -/** - * Resets the field, so that isFieldSet() will return false. - */ -export declare function clearField(message: MessageShape, field: DescField): void; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/fields.js b/node_modules/@bufbuild/protobuf/dist/esm/fields.js deleted file mode 100644 index 788290b..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/fields.js +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { unsafeClear, unsafeIsSet } from "./reflect/unsafe.js"; -/** - * Returns true if the field is set. - * - * - Scalar and enum fields with implicit presence (proto3): - * Set if not a zero value. - * - * - Scalar and enum fields with explicit presence (proto2, oneof): - * Set if a value was set when creating or parsing the message, or when a - * value was assigned to the field's property. - * - * - Message fields: - * Set if the property is not undefined. - * - * - List and map fields: - * Set if not empty. - */ -export function isFieldSet(message, field) { - return (field.parent.typeName == message.$typeName && unsafeIsSet(message, field)); -} -/** - * Resets the field, so that isFieldSet() will return false. - */ -export function clearField(message, field) { - if (field.parent.typeName == message.$typeName) { - unsafeClear(message, field); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/from-binary.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/from-binary.d.ts deleted file mode 100644 index b04a9d3..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/from-binary.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { type DescField, type DescMessage } from "./descriptors.js"; -import type { MessageShape } from "./types.js"; -import type { ReflectMessage } from "./reflect/index.js"; -import { BinaryReader, WireType } from "./wire/binary-encoding.js"; -/** - * Options for parsing binary data. - */ -export interface BinaryReadOptions { - /** - * Retain unknown fields during parsing? The default behavior is to retain - * unknown fields and include them in the serialized output. - * - * For more details see https://developers.google.com/protocol-buffers/docs/proto3#unknowns - */ - readUnknownFields: boolean; -} -/** - * Parse serialized binary data. - */ -export declare function fromBinary(schema: Desc, bytes: Uint8Array, options?: Partial): MessageShape; -/** - * Parse from binary data, merging fields. - * - * Repeated fields are appended. Map entries are added, overwriting - * existing keys. - * - * If a message field is already present, it will be merged with the - * new data. - */ -export declare function mergeFromBinary(schema: Desc, target: MessageShape, bytes: Uint8Array, options?: Partial): MessageShape; -/** - * @private - */ -export declare function readField(message: ReflectMessage, reader: BinaryReader, field: DescField, wireType: WireType, options: BinaryReadOptions): void; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js b/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js deleted file mode 100644 index d90d052..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +++ /dev/null @@ -1,236 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { ScalarType } from "./descriptors.js"; -import { scalarZeroValue } from "./reflect/scalar.js"; -import { reflect } from "./reflect/reflect.js"; -import { BinaryReader, WireType } from "./wire/binary-encoding.js"; -import { varint32write } from "./wire/varint.js"; -// Default options for parsing binary data. -const readDefaults = { - readUnknownFields: true, -}; -function makeReadOptions(options) { - return options ? Object.assign(Object.assign({}, readDefaults), options) : readDefaults; -} -/** - * Parse serialized binary data. - */ -export function fromBinary(schema, bytes, options) { - const msg = reflect(schema, undefined, false); - readMessage(msg, new BinaryReader(bytes), makeReadOptions(options), false, bytes.byteLength); - return msg.message; -} -/** - * Parse from binary data, merging fields. - * - * Repeated fields are appended. Map entries are added, overwriting - * existing keys. - * - * If a message field is already present, it will be merged with the - * new data. - */ -export function mergeFromBinary(schema, target, bytes, options) { - readMessage(reflect(schema, target, false), new BinaryReader(bytes), makeReadOptions(options), false, bytes.byteLength); - return target; -} -/** - * If `delimited` is false, read the length given in `lengthOrDelimitedFieldNo`. - * - * If `delimited` is true, read until an EndGroup tag. `lengthOrDelimitedFieldNo` - * is the expected field number. - * - * @private - */ -function readMessage(message, reader, options, delimited, lengthOrDelimitedFieldNo) { - var _a; - const end = delimited ? reader.len : reader.pos + lengthOrDelimitedFieldNo; - let fieldNo; - let wireType; - const unknownFields = (_a = message.getUnknown()) !== null && _a !== void 0 ? _a : []; - while (reader.pos < end) { - [fieldNo, wireType] = reader.tag(); - if (delimited && wireType == WireType.EndGroup) { - break; - } - const field = message.findNumber(fieldNo); - if (!field) { - const data = reader.skip(wireType, fieldNo); - if (options.readUnknownFields) { - unknownFields.push({ no: fieldNo, wireType, data }); - } - continue; - } - readField(message, reader, field, wireType, options); - } - if (delimited) { - if (wireType != WireType.EndGroup || fieldNo !== lengthOrDelimitedFieldNo) { - throw new Error("invalid end group tag"); - } - } - if (unknownFields.length > 0) { - message.setUnknown(unknownFields); - } -} -/** - * @private - */ -export function readField(message, reader, field, wireType, options) { - var _a; - switch (field.fieldKind) { - case "scalar": - message.set(field, readScalar(reader, field.scalar)); - break; - case "enum": - const val = readScalar(reader, ScalarType.INT32); - if (field.enum.open) { - message.set(field, val); - } - else { - const ok = field.enum.values.some((v) => v.number === val); - if (ok) { - message.set(field, val); - } - else if (options.readUnknownFields) { - const bytes = []; - varint32write(val, bytes); - const unknownFields = (_a = message.getUnknown()) !== null && _a !== void 0 ? _a : []; - unknownFields.push({ - no: field.number, - wireType, - data: new Uint8Array(bytes), - }); - message.setUnknown(unknownFields); - } - } - break; - case "message": - message.set(field, readMessageField(reader, options, field, message.get(field))); - break; - case "list": - readListField(reader, wireType, message.get(field), options); - break; - case "map": - readMapEntry(reader, message.get(field), options); - break; - } -} -// Read a map field, expecting key field = 1, value field = 2 -function readMapEntry(reader, map, options) { - const field = map.field(); - let key; - let val; - // Read the length of the map entry, which is a varint. - const len = reader.uint32(); - // WARNING: Calculate end AFTER advancing reader.pos (above), so that - // reader.pos is at the start of the map entry. - const end = reader.pos + len; - while (reader.pos < end) { - const [fieldNo] = reader.tag(); - switch (fieldNo) { - case 1: - key = readScalar(reader, field.mapKey); - break; - case 2: - switch (field.mapKind) { - case "scalar": - val = readScalar(reader, field.scalar); - break; - case "enum": - val = reader.int32(); - break; - case "message": - val = readMessageField(reader, options, field); - break; - } - break; - } - } - if (key === undefined) { - key = scalarZeroValue(field.mapKey, false); - } - if (val === undefined) { - switch (field.mapKind) { - case "scalar": - val = scalarZeroValue(field.scalar, false); - break; - case "enum": - val = field.enum.values[0].number; - break; - case "message": - val = reflect(field.message, undefined, false); - break; - } - } - map.set(key, val); -} -function readListField(reader, wireType, list, options) { - var _a; - const field = list.field(); - if (field.listKind === "message") { - list.add(readMessageField(reader, options, field)); - return; - } - const scalarType = (_a = field.scalar) !== null && _a !== void 0 ? _a : ScalarType.INT32; - const packed = wireType == WireType.LengthDelimited && - scalarType != ScalarType.STRING && - scalarType != ScalarType.BYTES; - if (!packed) { - list.add(readScalar(reader, scalarType)); - return; - } - const e = reader.uint32() + reader.pos; - while (reader.pos < e) { - list.add(readScalar(reader, scalarType)); - } -} -function readMessageField(reader, options, field, mergeMessage) { - const delimited = field.delimitedEncoding; - const message = mergeMessage !== null && mergeMessage !== void 0 ? mergeMessage : reflect(field.message, undefined, false); - readMessage(message, reader, options, delimited, delimited ? field.number : reader.uint32()); - return message; -} -function readScalar(reader, type) { - switch (type) { - case ScalarType.STRING: - return reader.string(); - case ScalarType.BOOL: - return reader.bool(); - case ScalarType.DOUBLE: - return reader.double(); - case ScalarType.FLOAT: - return reader.float(); - case ScalarType.INT32: - return reader.int32(); - case ScalarType.INT64: - return reader.int64(); - case ScalarType.UINT64: - return reader.uint64(); - case ScalarType.FIXED64: - return reader.fixed64(); - case ScalarType.BYTES: - return reader.bytes(); - case ScalarType.FIXED32: - return reader.fixed32(); - case ScalarType.SFIXED32: - return reader.sfixed32(); - case ScalarType.SFIXED64: - return reader.sfixed64(); - case ScalarType.SINT64: - return reader.sint64(); - case ScalarType.UINT32: - return reader.uint32(); - case ScalarType.SINT32: - return reader.sint32(); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/from-json.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/from-json.d.ts deleted file mode 100644 index 06f4d6c..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/from-json.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { type DescEnum, type DescMessage } from "./descriptors.js"; -import type { JsonValue } from "./json-value.js"; -import type { Registry } from "./registry.js"; -import type { EnumJsonType, EnumShape, MessageShape } from "./types.js"; -/** - * Options for parsing JSON data. - */ -export interface JsonReadOptions { - /** - * Ignore unknown fields: Proto3 JSON parser should reject unknown fields - * by default. This option ignores unknown fields in parsing, as well as - * unrecognized enum string representations. - */ - ignoreUnknownFields: boolean; - /** - * This option is required to read `google.protobuf.Any` and extensions - * from JSON format. - */ - registry?: Registry; -} -/** - * Parse a message from a JSON string. - */ -export declare function fromJsonString(schema: Desc, json: string, options?: Partial): MessageShape; -/** - * Parse a message from a JSON string, merging fields. - * - * Repeated fields are appended. Map entries are added, overwriting - * existing keys. - * - * If a message field is already present, it will be merged with the - * new data. - */ -export declare function mergeFromJsonString(schema: Desc, target: MessageShape, json: string, options?: Partial): MessageShape; -/** - * Parse a message from a JSON value. - */ -export declare function fromJson(schema: Desc, json: JsonValue, options?: Partial): MessageShape; -/** - * Parse a message from a JSON value, merging fields. - * - * Repeated fields are appended. Map entries are added, overwriting - * existing keys. - * - * If a message field is already present, it will be merged with the - * new data. - */ -export declare function mergeFromJson(schema: Desc, target: MessageShape, json: JsonValue, options?: Partial): MessageShape; -/** - * Parses an enum value from JSON. - */ -export declare function enumFromJson(descEnum: Desc, json: EnumJsonType): EnumShape; -/** - * Is the given value a JSON enum value? - */ -export declare function isEnumJson(descEnum: Desc, value: unknown): value is EnumJsonType; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/from-json.js b/node_modules/@bufbuild/protobuf/dist/esm/from-json.js deleted file mode 100644 index 29ed9e0..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +++ /dev/null @@ -1,614 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { ScalarType, } from "./descriptors.js"; -import { protoInt64 } from "./proto-int64.js"; -import { create } from "./create.js"; -import { reflect } from "./reflect/reflect.js"; -import { FieldError, isFieldError } from "./reflect/error.js"; -import { formatVal } from "./reflect/reflect-check.js"; -import { scalarZeroValue } from "./reflect/scalar.js"; -import { base64Decode } from "./wire/base64-encoding.js"; -import { isWrapperDesc, anyPack, ListValueSchema, NullValue, StructSchema, ValueSchema, } from "./wkt/index.js"; -import { createExtensionContainer, setExtension } from "./extensions.js"; -// Default options for parsing JSON. -const jsonReadDefaults = { - ignoreUnknownFields: false, -}; -function makeReadOptions(options) { - return options ? Object.assign(Object.assign({}, jsonReadDefaults), options) : jsonReadDefaults; -} -/** - * Parse a message from a JSON string. - */ -export function fromJsonString(schema, json, options) { - return fromJson(schema, parseJsonString(json, schema.typeName), options); -} -/** - * Parse a message from a JSON string, merging fields. - * - * Repeated fields are appended. Map entries are added, overwriting - * existing keys. - * - * If a message field is already present, it will be merged with the - * new data. - */ -export function mergeFromJsonString(schema, target, json, options) { - return mergeFromJson(schema, target, parseJsonString(json, schema.typeName), options); -} -/** - * Parse a message from a JSON value. - */ -export function fromJson(schema, json, options) { - const msg = reflect(schema); - try { - readMessage(msg, json, makeReadOptions(options)); - } - catch (e) { - if (isFieldError(e)) { - // @ts-expect-error we use the ES2022 error CTOR option "cause" for better stack traces - throw new Error(`cannot decode ${e.field()} from JSON: ${e.message}`, { - cause: e, - }); - } - throw e; - } - return msg.message; -} -/** - * Parse a message from a JSON value, merging fields. - * - * Repeated fields are appended. Map entries are added, overwriting - * existing keys. - * - * If a message field is already present, it will be merged with the - * new data. - */ -export function mergeFromJson(schema, target, json, options) { - try { - readMessage(reflect(schema, target), json, makeReadOptions(options)); - } - catch (e) { - if (isFieldError(e)) { - // @ts-expect-error we use the ES2022 error CTOR option "cause" for better stack traces - throw new Error(`cannot decode ${e.field()} from JSON: ${e.message}`, { - cause: e, - }); - } - throw e; - } - return target; -} -/** - * Parses an enum value from JSON. - */ -export function enumFromJson(descEnum, json) { - const val = readEnum(descEnum, json, false, false); - if (val === tokenIgnoredUnknownEnum) { - throw new Error(`cannot decode ${descEnum} from JSON: ${formatVal(json)}`); - } - return val; -} -/** - * Is the given value a JSON enum value? - */ -export function isEnumJson(descEnum, value) { - return undefined !== descEnum.values.find((v) => v.name === value); -} -function readMessage(msg, json, opts) { - var _a; - if (tryWktFromJson(msg, json, opts)) { - return; - } - if (json == null || Array.isArray(json) || typeof json != "object") { - throw new Error(`cannot decode ${msg.desc} from JSON: ${formatVal(json)}`); - } - const oneofSeen = new Map(); - const jsonNames = new Map(); - for (const field of msg.desc.fields) { - jsonNames.set(field.name, field).set(field.jsonName, field); - } - for (const [jsonKey, jsonValue] of Object.entries(json)) { - const field = jsonNames.get(jsonKey); - if (field) { - if (field.oneof) { - if (jsonValue === null && field.fieldKind == "scalar") { - // see conformance test Required.Proto3.JsonInput.OneofFieldNull{First,Second} - continue; - } - const seen = oneofSeen.get(field.oneof); - if (seen !== undefined) { - throw new FieldError(field.oneof, `oneof set multiple times by ${seen.name} and ${field.name}`); - } - oneofSeen.set(field.oneof, field); - } - readField(msg, field, jsonValue, opts); - } - else { - let extension = undefined; - if (jsonKey.startsWith("[") && - jsonKey.endsWith("]") && - // biome-ignore lint/suspicious/noAssignInExpressions: no - (extension = (_a = opts.registry) === null || _a === void 0 ? void 0 : _a.getExtension(jsonKey.substring(1, jsonKey.length - 1))) && - extension.extendee.typeName === msg.desc.typeName) { - const [container, field, get] = createExtensionContainer(extension); - readField(container, field, jsonValue, opts); - setExtension(msg.message, extension, get()); - } - if (!extension && !opts.ignoreUnknownFields) { - throw new Error(`cannot decode ${msg.desc} from JSON: key "${jsonKey}" is unknown`); - } - } - } -} -function readField(msg, field, json, opts) { - switch (field.fieldKind) { - case "scalar": - readScalarField(msg, field, json); - break; - case "enum": - readEnumField(msg, field, json, opts); - break; - case "message": - readMessageField(msg, field, json, opts); - break; - case "list": - readListField(msg.get(field), json, opts); - break; - case "map": - readMapField(msg.get(field), json, opts); - break; - } -} -function readMapField(map, json, opts) { - if (json === null) { - return; - } - const field = map.field(); - if (typeof json != "object" || Array.isArray(json)) { - throw new FieldError(field, "expected object, got " + formatVal(json)); - } - for (const [jsonMapKey, jsonMapValue] of Object.entries(json)) { - if (jsonMapValue === null) { - throw new FieldError(field, "map value must not be null"); - } - let value; - switch (field.mapKind) { - case "message": - const msgValue = reflect(field.message); - readMessage(msgValue, jsonMapValue, opts); - value = msgValue; - break; - case "enum": - value = readEnum(field.enum, jsonMapValue, opts.ignoreUnknownFields, true); - if (value === tokenIgnoredUnknownEnum) { - return; - } - break; - case "scalar": - value = scalarFromJson(field, jsonMapValue, true); - break; - } - const key = mapKeyFromJson(field.mapKey, jsonMapKey); - map.set(key, value); - } -} -function readListField(list, json, opts) { - if (json === null) { - return; - } - const field = list.field(); - if (!Array.isArray(json)) { - throw new FieldError(field, "expected Array, got " + formatVal(json)); - } - for (const jsonItem of json) { - if (jsonItem === null) { - throw new FieldError(field, "list item must not be null"); - } - switch (field.listKind) { - case "message": - const msgValue = reflect(field.message); - readMessage(msgValue, jsonItem, opts); - list.add(msgValue); - break; - case "enum": - const enumValue = readEnum(field.enum, jsonItem, opts.ignoreUnknownFields, true); - if (enumValue !== tokenIgnoredUnknownEnum) { - list.add(enumValue); - } - break; - case "scalar": - list.add(scalarFromJson(field, jsonItem, true)); - break; - } - } -} -function readMessageField(msg, field, json, opts) { - if (json === null && field.message.typeName != "google.protobuf.Value") { - msg.clear(field); - return; - } - const msgValue = msg.isSet(field) ? msg.get(field) : reflect(field.message); - readMessage(msgValue, json, opts); - msg.set(field, msgValue); -} -function readEnumField(msg, field, json, opts) { - const enumValue = readEnum(field.enum, json, opts.ignoreUnknownFields, false); - if (enumValue === tokenNull) { - msg.clear(field); - } - else if (enumValue !== tokenIgnoredUnknownEnum) { - msg.set(field, enumValue); - } -} -function readScalarField(msg, field, json) { - const scalarValue = scalarFromJson(field, json, false); - if (scalarValue === tokenNull) { - msg.clear(field); - } - else { - msg.set(field, scalarValue); - } -} -const tokenIgnoredUnknownEnum = Symbol(); -function readEnum(desc, json, ignoreUnknownFields, nullAsZeroValue) { - if (json === null) { - if (desc.typeName == "google.protobuf.NullValue") { - return 0; // google.protobuf.NullValue.NULL_VALUE = 0 - } - return nullAsZeroValue ? desc.values[0].number : tokenNull; - } - switch (typeof json) { - case "number": - if (Number.isInteger(json)) { - return json; - } - break; - case "string": - const value = desc.values.find((ev) => ev.name === json); - if (value !== undefined) { - return value.number; - } - if (ignoreUnknownFields) { - return tokenIgnoredUnknownEnum; - } - break; - } - throw new Error(`cannot decode ${desc} from JSON: ${formatVal(json)}`); -} -const tokenNull = Symbol(); -function scalarFromJson(field, json, nullAsZeroValue) { - if (json === null) { - if (nullAsZeroValue) { - return scalarZeroValue(field.scalar, false); - } - return tokenNull; - } - // int64, sfixed64, sint64, fixed64, uint64: Reflect supports string and number. - // string, bool: Supported by reflect. - switch (field.scalar) { - // float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity". - // Either numbers or strings are accepted. Exponent notation is also accepted. - case ScalarType.DOUBLE: - case ScalarType.FLOAT: - if (json === "NaN") - return NaN; - if (json === "Infinity") - return Number.POSITIVE_INFINITY; - if (json === "-Infinity") - return Number.NEGATIVE_INFINITY; - if (typeof json == "number") { - if (Number.isNaN(json)) { - // NaN must be encoded with string constants - throw new FieldError(field, "unexpected NaN number"); - } - if (!Number.isFinite(json)) { - // Infinity must be encoded with string constants - throw new FieldError(field, "unexpected infinite number"); - } - break; - } - if (typeof json == "string") { - if (json === "") { - // empty string is not a number - break; - } - if (json.trim().length !== json.length) { - // extra whitespace - break; - } - const float = Number(json); - if (!Number.isFinite(float)) { - // Infinity and NaN must be encoded with string constants - break; - } - return float; - } - break; - // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted. - case ScalarType.INT32: - case ScalarType.FIXED32: - case ScalarType.SFIXED32: - case ScalarType.SINT32: - case ScalarType.UINT32: - return int32FromJson(json); - // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings. - // Either standard or URL-safe base64 encoding with/without paddings are accepted. - case ScalarType.BYTES: - if (typeof json == "string") { - if (json === "") { - return new Uint8Array(0); - } - try { - return base64Decode(json); - } - catch (e) { - const message = e instanceof Error ? e.message : String(e); - throw new FieldError(field, message); - } - } - break; - } - return json; -} -/** - * Try to parse a JSON value to a map key for the reflect API. - * - * Returns the input if the JSON value cannot be converted. - */ -function mapKeyFromJson(type, json) { - switch (type) { - case ScalarType.BOOL: - switch (json) { - case "true": - return true; - case "false": - return false; - } - return json; - case ScalarType.INT32: - case ScalarType.FIXED32: - case ScalarType.UINT32: - case ScalarType.SFIXED32: - case ScalarType.SINT32: - return int32FromJson(json); - default: - return json; - } -} -/** - * Try to parse a JSON value to a 32-bit integer for the reflect API. - * - * Returns the input if the JSON value cannot be converted. - */ -function int32FromJson(json) { - if (typeof json == "string") { - if (json === "") { - // empty string is not a number - return json; - } - if (json.trim().length !== json.length) { - // extra whitespace - return json; - } - const num = Number(json); - if (Number.isNaN(num)) { - // not a number - return json; - } - return num; - } - return json; -} -function parseJsonString(jsonString, typeName) { - try { - return JSON.parse(jsonString); - } - catch (e) { - const message = e instanceof Error ? e.message : String(e); - throw new Error(`cannot decode message ${typeName} from JSON: ${message}`, - // @ts-expect-error we use the ES2022 error CTOR option "cause" for better stack traces - { cause: e }); - } -} -function tryWktFromJson(msg, jsonValue, opts) { - if (!msg.desc.typeName.startsWith("google.protobuf.")) { - return false; - } - switch (msg.desc.typeName) { - case "google.protobuf.Any": - anyFromJson(msg.message, jsonValue, opts); - return true; - case "google.protobuf.Timestamp": - timestampFromJson(msg.message, jsonValue); - return true; - case "google.protobuf.Duration": - durationFromJson(msg.message, jsonValue); - return true; - case "google.protobuf.FieldMask": - fieldMaskFromJson(msg.message, jsonValue); - return true; - case "google.protobuf.Struct": - structFromJson(msg.message, jsonValue); - return true; - case "google.protobuf.Value": - valueFromJson(msg.message, jsonValue); - return true; - case "google.protobuf.ListValue": - listValueFromJson(msg.message, jsonValue); - return true; - default: - if (isWrapperDesc(msg.desc)) { - const valueField = msg.desc.fields[0]; - if (jsonValue === null) { - msg.clear(valueField); - } - else { - msg.set(valueField, scalarFromJson(valueField, jsonValue, true)); - } - return true; - } - return false; - } -} -function anyFromJson(any, json, opts) { - var _a; - if (json === null || Array.isArray(json) || typeof json != "object") { - throw new Error(`cannot decode message ${any.$typeName} from JSON: expected object but got ${formatVal(json)}`); - } - if (Object.keys(json).length == 0) { - return; - } - const typeUrl = json["@type"]; - if (typeof typeUrl != "string" || typeUrl == "") { - throw new Error(`cannot decode message ${any.$typeName} from JSON: "@type" is empty`); - } - const typeName = typeUrl.includes("/") - ? typeUrl.substring(typeUrl.lastIndexOf("/") + 1) - : typeUrl; - if (!typeName.length) { - throw new Error(`cannot decode message ${any.$typeName} from JSON: "@type" is invalid`); - } - const desc = (_a = opts.registry) === null || _a === void 0 ? void 0 : _a.getMessage(typeName); - if (!desc) { - throw new Error(`cannot decode message ${any.$typeName} from JSON: ${typeUrl} is not in the type registry`); - } - const msg = reflect(desc); - if (typeName.startsWith("google.protobuf.") && - Object.prototype.hasOwnProperty.call(json, "value")) { - const value = json.value; - readMessage(msg, value, opts); - } - else { - const copy = Object.assign({}, json); - // biome-ignore lint/performance/noDelete: - delete copy["@type"]; - readMessage(msg, copy, opts); - } - anyPack(msg.desc, msg.message, any); -} -function timestampFromJson(timestamp, json) { - if (typeof json !== "string") { - throw new Error(`cannot decode message ${timestamp.$typeName} from JSON: ${formatVal(json)}`); - } - const matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:\.([0-9]{1,9}))?(?:Z|([+-][0-9][0-9]:[0-9][0-9]))$/); - if (!matches) { - throw new Error(`cannot decode message ${timestamp.$typeName} from JSON: invalid RFC 3339 string`); - } - const ms = Date.parse( - // biome-ignore format: want this to read well - matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z")); - if (Number.isNaN(ms)) { - throw new Error(`cannot decode message ${timestamp.$typeName} from JSON: invalid RFC 3339 string`); - } - if (ms < Date.parse("0001-01-01T00:00:00Z") || - ms > Date.parse("9999-12-31T23:59:59Z")) { - throw new Error(`cannot decode message ${timestamp.$typeName} from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`); - } - timestamp.seconds = protoInt64.parse(ms / 1000); - timestamp.nanos = 0; - if (matches[7]) { - timestamp.nanos = - parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - - 1000000000; - } -} -function durationFromJson(duration, json) { - if (typeof json !== "string") { - throw new Error(`cannot decode message ${duration.$typeName} from JSON: ${formatVal(json)}`); - } - const match = json.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/); - if (match === null) { - throw new Error(`cannot decode message ${duration.$typeName} from JSON: ${formatVal(json)}`); - } - const longSeconds = Number(match[1]); - if (longSeconds > 315576000000 || longSeconds < -315576000000) { - throw new Error(`cannot decode message ${duration.$typeName} from JSON: ${formatVal(json)}`); - } - duration.seconds = protoInt64.parse(longSeconds); - if (typeof match[2] !== "string") { - return; - } - const nanosStr = match[2] + "0".repeat(9 - match[2].length); - duration.nanos = parseInt(nanosStr); - if (longSeconds < 0 || Object.is(longSeconds, -0)) { - duration.nanos = -duration.nanos; - } -} -function fieldMaskFromJson(fieldMask, json) { - if (typeof json !== "string") { - throw new Error(`cannot decode message ${fieldMask.$typeName} from JSON: ${formatVal(json)}`); - } - if (json === "") { - return; - } - function camelToSnake(str) { - if (str.includes("_")) { - throw new Error(`cannot decode message ${fieldMask.$typeName} from JSON: path names must be lowerCamelCase`); - } - const sc = str.replace(/[A-Z]/g, (letter) => "_" + letter.toLowerCase()); - return sc[0] === "_" ? sc.substring(1) : sc; - } - fieldMask.paths = json.split(",").map(camelToSnake); -} -function structFromJson(struct, json) { - if (typeof json != "object" || json == null || Array.isArray(json)) { - throw new Error(`cannot decode message ${struct.$typeName} from JSON ${formatVal(json)}`); - } - for (const [k, v] of Object.entries(json)) { - const parsedV = create(ValueSchema); - valueFromJson(parsedV, v); - struct.fields[k] = parsedV; - } -} -function valueFromJson(value, json) { - switch (typeof json) { - case "number": - value.kind = { case: "numberValue", value: json }; - break; - case "string": - value.kind = { case: "stringValue", value: json }; - break; - case "boolean": - value.kind = { case: "boolValue", value: json }; - break; - case "object": - if (json === null) { - value.kind = { case: "nullValue", value: NullValue.NULL_VALUE }; - } - else if (Array.isArray(json)) { - const listValue = create(ListValueSchema); - listValueFromJson(listValue, json); - value.kind = { case: "listValue", value: listValue }; - } - else { - const struct = create(StructSchema); - structFromJson(struct, json); - value.kind = { case: "structValue", value: struct }; - } - break; - default: - throw new Error(`cannot decode message ${value.$typeName} from JSON ${formatVal(json)}`); - } - return value; -} -function listValueFromJson(listValue, json) { - if (!Array.isArray(json)) { - throw new Error(`cannot decode message ${listValue.$typeName} from JSON ${formatVal(json)}`); - } - for (const e of json) { - const value = create(ValueSchema); - valueFromJson(value, e); - listValue.values.push(value); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/index.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/index.d.ts deleted file mode 100644 index 7a23115..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export * from "./types.js"; -export * from "./is-message.js"; -export * from "./create.js"; -export * from "./clone.js"; -export * from "./descriptors.js"; -export * from "./equals.js"; -export * from "./fields.js"; -export * from "./registry.js"; -export type { JsonValue, JsonObject } from "./json-value.js"; -export { toBinary } from "./to-binary.js"; -export type { BinaryWriteOptions } from "./to-binary.js"; -export { fromBinary, mergeFromBinary } from "./from-binary.js"; -export type { BinaryReadOptions } from "./from-binary.js"; -export * from "./to-json.js"; -export * from "./from-json.js"; -export * from "./merge.js"; -export { hasExtension, getExtension, setExtension, clearExtension, hasOption, getOption, } from "./extensions.js"; -export * from "./proto-int64.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/index.js b/node_modules/@bufbuild/protobuf/dist/esm/index.js deleted file mode 100644 index 5f79001..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/index.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -export * from "./types.js"; -export * from "./is-message.js"; -export * from "./create.js"; -export * from "./clone.js"; -export * from "./descriptors.js"; -export * from "./equals.js"; -export * from "./fields.js"; -export * from "./registry.js"; -export { toBinary } from "./to-binary.js"; -export { fromBinary, mergeFromBinary } from "./from-binary.js"; -export * from "./to-json.js"; -export * from "./from-json.js"; -export * from "./merge.js"; -export { hasExtension, getExtension, setExtension, clearExtension, hasOption, getOption, } from "./extensions.js"; -export * from "./proto-int64.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/is-message.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/is-message.d.ts deleted file mode 100644 index 085782d..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/is-message.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { MessageShape } from "./types.js"; -import type { DescMessage } from "./descriptors.js"; -/** - * Determine whether the given `arg` is a message. - * If `desc` is set, determine whether `arg` is this specific message. - */ -export declare function isMessage(arg: unknown, schema?: Desc): arg is MessageShape; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/is-message.js b/node_modules/@bufbuild/protobuf/dist/esm/is-message.js deleted file mode 100644 index 2a05b5d..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/** - * Determine whether the given `arg` is a message. - * If `desc` is set, determine whether `arg` is this specific message. - */ -export function isMessage(arg, schema) { - const isMessage = arg !== null && - typeof arg == "object" && - "$typeName" in arg && - typeof arg.$typeName == "string"; - if (!isMessage) { - return false; - } - if (schema === undefined) { - return true; - } - return schema.typeName === arg.$typeName; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/json-value.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/json-value.d.ts deleted file mode 100644 index 3857eb8..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/json-value.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Represents any possible JSON value: - * - number - * - string - * - boolean - * - null - * - object (with any JSON value as property) - * - array (with any JSON value as element) - */ -export type JsonValue = number | string | boolean | null | JsonObject | JsonValue[]; -/** - * Represents a JSON object. - */ -export type JsonObject = { - [k: string]: JsonValue; -}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/json-value.js b/node_modules/@bufbuild/protobuf/dist/esm/json-value.js deleted file mode 100644 index f9c4479..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/json-value.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/merge.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/merge.d.ts deleted file mode 100644 index aad01ed..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/merge.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { MessageShape } from "./types.js"; -import type { DescMessage } from "./descriptors.js"; -/** - * Merge message `source` into message `target`, following Protobuf semantics. - * - * This is the same as serializing the source message, then deserializing it - * into the target message via `mergeFromBinary()`, with one difference: - * While serialization will create a copy of all values, `merge()` will copy - * the reference for `bytes` and messages. - * - * Also see https://protobuf.com/docs/language-spec#merging-protobuf-messages - */ -export declare function merge(schema: Desc, target: MessageShape, source: MessageShape): void; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/merge.js b/node_modules/@bufbuild/protobuf/dist/esm/merge.js deleted file mode 100644 index 16efbba..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/merge.js +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { reflect } from "./reflect/reflect.js"; -/** - * Merge message `source` into message `target`, following Protobuf semantics. - * - * This is the same as serializing the source message, then deserializing it - * into the target message via `mergeFromBinary()`, with one difference: - * While serialization will create a copy of all values, `merge()` will copy - * the reference for `bytes` and messages. - * - * Also see https://protobuf.com/docs/language-spec#merging-protobuf-messages - */ -export function merge(schema, target, source) { - reflectMerge(reflect(schema, target), reflect(schema, source)); -} -function reflectMerge(target, source) { - var _a; - var _b; - const sourceUnknown = source.message.$unknown; - if (sourceUnknown !== undefined && sourceUnknown.length > 0) { - (_a = (_b = target.message).$unknown) !== null && _a !== void 0 ? _a : (_b.$unknown = []); - target.message.$unknown.push(...sourceUnknown); - } - for (const f of target.fields) { - if (!source.isSet(f)) { - continue; - } - switch (f.fieldKind) { - case "scalar": - case "enum": - target.set(f, source.get(f)); - break; - case "message": - if (target.isSet(f)) { - reflectMerge(target.get(f), source.get(f)); - } - else { - target.set(f, source.get(f)); - } - break; - case "list": - const list = target.get(f); - for (const e of source.get(f)) { - list.add(e); - } - break; - case "map": - const map = target.get(f); - for (const [k, v] of source.get(f)) { - map.set(k, v); - } - break; - } - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.d.ts deleted file mode 100644 index 3eaf231..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Int64Support for the current environment. - */ -export declare const protoInt64: Int64Support; -/** - * We use the `bigint` primitive to represent 64-bit integral types. If bigint - * is unavailable, we fall back to a string representation, which means that - * all values typed as `bigint` will actually be strings. - * - * If your code is intended to run in an environment where bigint may be - * unavailable, it must handle both the bigint and the string representation. - * For presenting values, this is straight-forward with implicit or explicit - * conversion to string: - * - * ```ts - * let el = document.createElement("span"); - * el.innerText = message.int64Field; // assuming a protobuf int64 field - * - * console.log(`int64: ${message.int64Field}`); - * - * let str: string = message.int64Field.toString(); - * ``` - * - * If you need to manipulate 64-bit integral values and are sure the values - * can be safely represented as an IEEE-754 double precision number, you can - * convert to a JavaScript Number: - * - * ```ts - * console.log(message.int64Field.toString()) - * let num = Number(message.int64Field); - * num = num + 1; - * message.int64Field = protoInt64.parse(num); - * ``` - * - * If you need to manipulate 64-bit integral values that are outside the - * range of safe representation as a JavaScript Number, we recommend you - * use a third party library, for example the npm package "long": - * - * ```ts - * // convert the field value to a Long - * const bits = protoInt64.enc(message.int64Field); - * const longValue = Long.fromBits(bits.lo, bits.hi); - * - * // perform arithmetic - * const longResult = longValue.subtract(1); - * - * // set the result in the field - * message.int64Field = protoInt64.dec(longResult.low, longResult.high); - * - * // Assuming int64Field contains 9223372036854775807: - * console.log(message.int64Field); // 9223372036854775806 - * ``` - */ -interface Int64Support { - /** - * 0n if bigint is available, "0" if unavailable. - */ - readonly zero: bigint; - /** - * Is bigint available? - */ - readonly supported: boolean; - /** - * Parse a signed 64-bit integer. - * Returns a bigint if available, a string otherwise. - */ - parse(value: string | number | bigint): bigint; - /** - * Parse an unsigned 64-bit integer. - * Returns a bigint if available, a string otherwise. - */ - uParse(value: string | number | bigint): bigint; - /** - * Convert a signed 64-bit integral value to a two's complement. - */ - enc(value: string | number | bigint): { - lo: number; - hi: number; - }; - /** - * Convert an unsigned 64-bit integral value to a two's complement. - */ - uEnc(value: string | number | bigint): { - lo: number; - hi: number; - }; - /** - * Convert a two's complement to a signed 64-bit integral value. - * Returns a bigint if available, a string otherwise. - */ - dec(lo: number, hi: number): bigint; - /** - * Convert a two's complement to an unsigned 64-bit integral value. - * Returns a bigint if available, a string otherwise. - */ - uDec(lo: number, hi: number): bigint; -} -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js b/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js deleted file mode 100644 index 70cf491..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { int64FromString, int64ToString, uInt64ToString, } from "./wire/varint.js"; -/** - * Int64Support for the current environment. - */ -export const protoInt64 = /*@__PURE__*/ makeInt64Support(); -function makeInt64Support() { - const dv = new DataView(new ArrayBuffer(8)); - // note that Safari 14 implements BigInt, but not the DataView methods - const ok = typeof BigInt === "function" && - typeof dv.getBigInt64 === "function" && - typeof dv.getBigUint64 === "function" && - typeof dv.setBigInt64 === "function" && - typeof dv.setBigUint64 === "function" && - (typeof process != "object" || - typeof process.env != "object" || - process.env.BUF_BIGINT_DISABLE !== "1"); - if (ok) { - const MIN = BigInt("-9223372036854775808"); - const MAX = BigInt("9223372036854775807"); - const UMIN = BigInt("0"); - const UMAX = BigInt("18446744073709551615"); - return { - zero: BigInt(0), - supported: true, - parse(value) { - const bi = typeof value == "bigint" ? value : BigInt(value); - if (bi > MAX || bi < MIN) { - throw new Error(`invalid int64: ${value}`); - } - return bi; - }, - uParse(value) { - const bi = typeof value == "bigint" ? value : BigInt(value); - if (bi > UMAX || bi < UMIN) { - throw new Error(`invalid uint64: ${value}`); - } - return bi; - }, - enc(value) { - dv.setBigInt64(0, this.parse(value), true); - return { - lo: dv.getInt32(0, true), - hi: dv.getInt32(4, true), - }; - }, - uEnc(value) { - dv.setBigInt64(0, this.uParse(value), true); - return { - lo: dv.getInt32(0, true), - hi: dv.getInt32(4, true), - }; - }, - dec(lo, hi) { - dv.setInt32(0, lo, true); - dv.setInt32(4, hi, true); - return dv.getBigInt64(0, true); - }, - uDec(lo, hi) { - dv.setInt32(0, lo, true); - dv.setInt32(4, hi, true); - return dv.getBigUint64(0, true); - }, - }; - } - return { - zero: "0", - supported: false, - parse(value) { - if (typeof value != "string") { - value = value.toString(); - } - assertInt64String(value); - return value; - }, - uParse(value) { - if (typeof value != "string") { - value = value.toString(); - } - assertUInt64String(value); - return value; - }, - enc(value) { - if (typeof value != "string") { - value = value.toString(); - } - assertInt64String(value); - return int64FromString(value); - }, - uEnc(value) { - if (typeof value != "string") { - value = value.toString(); - } - assertUInt64String(value); - return int64FromString(value); - }, - dec(lo, hi) { - return int64ToString(lo, hi); - }, - uDec(lo, hi) { - return uInt64ToString(lo, hi); - }, - }; -} -function assertInt64String(value) { - if (!/^-?[0-9]+$/.test(value)) { - throw new Error("invalid int64: " + value); - } -} -function assertUInt64String(value) { - if (!/^[0-9]+$/.test(value)) { - throw new Error("invalid uint64: " + value); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.d.ts deleted file mode 100644 index c6bf1db..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { DescField, DescOneof } from "../descriptors.js"; -declare const errorNames: string[]; -export declare class FieldError extends Error { - readonly name: (typeof errorNames)[number]; - constructor(fieldOrOneof: DescField | DescOneof, message: string, name?: (typeof errorNames)[number]); - readonly field: () => DescField | DescOneof; -} -export declare function isFieldError(arg: unknown): arg is FieldError; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js b/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js deleted file mode 100644 index c8e2bd9..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -const errorNames = [ - "FieldValueInvalidError", - "FieldListRangeError", - "ForeignFieldError", -]; -export class FieldError extends Error { - constructor(fieldOrOneof, message, name = "FieldValueInvalidError") { - super(message); - this.name = name; - this.field = () => fieldOrOneof; - } -} -export function isFieldError(arg) { - return (arg instanceof Error && - errorNames.includes(arg.name) && - "field" in arg && - typeof arg.field == "function"); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.d.ts deleted file mode 100644 index c53aeb2..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type { Message } from "../types.js"; -import type { ScalarValue } from "./scalar.js"; -import type { ReflectList, ReflectMap, ReflectMessage } from "./reflect-types.js"; -import type { DescField, DescMessage } from "../descriptors.js"; -export declare function isObject(arg: unknown): arg is Record; -export declare function isOneofADT(arg: unknown): arg is OneofADT; -export type OneofADT = { - case: undefined; - value?: undefined; -} | { - case: string; - value: Message | ScalarValue; -}; -export declare function isReflectList(arg: unknown, field?: DescField & { - fieldKind: "list"; -}): arg is ReflectList; -export declare function isReflectMap(arg: unknown, field?: DescField & { - fieldKind: "map"; -}): arg is ReflectMap; -export declare function isReflectMessage(arg: unknown, messageDesc?: DescMessage): arg is ReflectMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js b/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js deleted file mode 100644 index 4383a24..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { unsafeLocal } from "./unsafe.js"; -export function isObject(arg) { - return arg !== null && typeof arg == "object" && !Array.isArray(arg); -} -export function isOneofADT(arg) { - return (arg !== null && - typeof arg == "object" && - "case" in arg && - ((typeof arg.case == "string" && "value" in arg && arg.value != null) || - (arg.case === undefined && - (!("value" in arg) || arg.value === undefined)))); -} -export function isReflectList(arg, field) { - var _a, _b, _c, _d; - if (isObject(arg) && - unsafeLocal in arg && - "add" in arg && - "field" in arg && - typeof arg.field == "function") { - if (field !== undefined) { - const a = field; - const b = arg.field(); - return (a.listKind == b.listKind && - a.scalar === b.scalar && - ((_a = a.message) === null || _a === void 0 ? void 0 : _a.typeName) === ((_b = b.message) === null || _b === void 0 ? void 0 : _b.typeName) && - ((_c = a.enum) === null || _c === void 0 ? void 0 : _c.typeName) === ((_d = b.enum) === null || _d === void 0 ? void 0 : _d.typeName)); - } - return true; - } - return false; -} -export function isReflectMap(arg, field) { - var _a, _b, _c, _d; - if (isObject(arg) && - unsafeLocal in arg && - "has" in arg && - "field" in arg && - typeof arg.field == "function") { - if (field !== undefined) { - const a = field, b = arg.field(); - return (a.mapKey === b.mapKey && - a.mapKind == b.mapKind && - a.scalar === b.scalar && - ((_a = a.message) === null || _a === void 0 ? void 0 : _a.typeName) === ((_b = b.message) === null || _b === void 0 ? void 0 : _b.typeName) && - ((_c = a.enum) === null || _c === void 0 ? void 0 : _c.typeName) === ((_d = b.enum) === null || _d === void 0 ? void 0 : _d.typeName)); - } - return true; - } - return false; -} -export function isReflectMessage(arg, messageDesc) { - return (isObject(arg) && - unsafeLocal in arg && - "desc" in arg && - isObject(arg.desc) && - arg.desc.kind === "message" && - (messageDesc === undefined || arg.desc.typeName == messageDesc.typeName)); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.d.ts deleted file mode 100644 index 97a7130..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./error.js"; -export * from "./names.js"; -export * from "./nested-types.js"; -export * from "./reflect.js"; -export * from "./reflect-types.js"; -export * from "./scalar.js"; -export * from "./path.js"; -export { isReflectList, isReflectMap, isReflectMessage } from "./guard.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.js b/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.js deleted file mode 100644 index cf511c9..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -export * from "./error.js"; -export * from "./names.js"; -export * from "./nested-types.js"; -export * from "./reflect.js"; -export * from "./reflect-types.js"; -export * from "./scalar.js"; -export * from "./path.js"; -export { isReflectList, isReflectMap, isReflectMessage } from "./guard.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.d.ts deleted file mode 100644 index 3824c63..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { AnyDesc } from "../descriptors.js"; -/** - * Return a fully-qualified name for a Protobuf descriptor. - * For a file descriptor, return the original file path. - * - * See https://protobuf.com/docs/language-spec#fully-qualified-names - */ -export declare function qualifiedName(desc: AnyDesc): string; -/** - * Converts snake_case to protoCamelCase according to the convention - * used by protoc to convert a field name to a JSON name. - */ -export declare function protoCamelCase(snakeCase: string): string; -/** - * Escapes names that are reserved for ECMAScript built-in object properties. - * - * Also see safeIdentifier() from @bufbuild/protoplugin. - */ -export declare function safeObjectProperty(name: string): string; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js b/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js deleted file mode 100644 index 30d203f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/** - * Return a fully-qualified name for a Protobuf descriptor. - * For a file descriptor, return the original file path. - * - * See https://protobuf.com/docs/language-spec#fully-qualified-names - */ -export function qualifiedName(desc) { - switch (desc.kind) { - case "field": - case "oneof": - case "rpc": - return desc.parent.typeName + "." + desc.name; - case "enum_value": { - const p = desc.parent.parent - ? desc.parent.parent.typeName - : desc.parent.file.proto.package; - return p + (p.length > 0 ? "." : "") + desc.name; - } - case "service": - case "message": - case "enum": - case "extension": - return desc.typeName; - case "file": - return desc.proto.name; - } -} -/** - * Converts snake_case to protoCamelCase according to the convention - * used by protoc to convert a field name to a JSON name. - */ -export function protoCamelCase(snakeCase) { - let capNext = false; - const b = []; - for (let i = 0; i < snakeCase.length; i++) { - let c = snakeCase.charAt(i); - switch (c) { - case "_": - capNext = true; - break; - case "0": - case "1": - case "2": - case "3": - case "4": - case "5": - case "6": - case "7": - case "8": - case "9": - b.push(c); - capNext = false; - break; - default: - if (capNext) { - capNext = false; - c = c.toUpperCase(); - } - b.push(c); - break; - } - } - return b.join(""); -} -/** - * Names that cannot be used for object properties because they are reserved - * by built-in JavaScript properties. - */ -const reservedObjectProperties = new Set([ - // names reserved by JavaScript - "constructor", - "toString", - "toJSON", - "valueOf", -]); -/** - * Escapes names that are reserved for ECMAScript built-in object properties. - * - * Also see safeIdentifier() from @bufbuild/protoplugin. - */ -export function safeObjectProperty(name) { - return reservedObjectProperties.has(name) ? name + "$" : name; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.d.ts deleted file mode 100644 index 3817501..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type { AnyDesc, DescEnum, DescExtension, DescFile, DescMessage, DescService } from "../descriptors.js"; -/** - * Iterate over all types - enumerations, extensions, services, messages - - * and enumerations, extensions and messages nested in messages. - */ -export declare function nestedTypes(desc: DescFile | DescMessage): Iterable; -/** - * Iterate over types referenced by fields of the given message. - * - * For example: - * - * ```proto - * syntax="proto3"; - * - * message Example { - * Msg singular = 1; - * repeated Level list = 2; - * } - * - * message Msg {} - * - * enum Level { - * LEVEL_UNSPECIFIED = 0; - * } - * ``` - * - * The message Example references the message Msg, and the enum Level. - */ -export declare function usedTypes(descMessage: DescMessage): Iterable; -/** - * Returns the ancestors of a given Protobuf element, up to the file. - */ -export declare function parentTypes(desc: AnyDesc): Parent[]; -type Parent = DescFile | DescEnum | DescMessage | DescService; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js b/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js deleted file mode 100644 index aeb2d20..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/** - * Iterate over all types - enumerations, extensions, services, messages - - * and enumerations, extensions and messages nested in messages. - */ -export function* nestedTypes(desc) { - switch (desc.kind) { - case "file": - for (const message of desc.messages) { - yield message; - yield* nestedTypes(message); - } - yield* desc.enums; - yield* desc.services; - yield* desc.extensions; - break; - case "message": - for (const message of desc.nestedMessages) { - yield message; - yield* nestedTypes(message); - } - yield* desc.nestedEnums; - yield* desc.nestedExtensions; - break; - } -} -/** - * Iterate over types referenced by fields of the given message. - * - * For example: - * - * ```proto - * syntax="proto3"; - * - * message Example { - * Msg singular = 1; - * repeated Level list = 2; - * } - * - * message Msg {} - * - * enum Level { - * LEVEL_UNSPECIFIED = 0; - * } - * ``` - * - * The message Example references the message Msg, and the enum Level. - */ -export function usedTypes(descMessage) { - return usedTypesInternal(descMessage, new Set()); -} -function* usedTypesInternal(descMessage, seen) { - var _a, _b; - for (const field of descMessage.fields) { - const ref = (_b = (_a = field.enum) !== null && _a !== void 0 ? _a : field.message) !== null && _b !== void 0 ? _b : undefined; - if (!ref || seen.has(ref.typeName)) { - continue; - } - seen.add(ref.typeName); - yield ref; - if (ref.kind == "message") { - yield* usedTypesInternal(ref, seen); - } - } -} -/** - * Returns the ancestors of a given Protobuf element, up to the file. - */ -export function parentTypes(desc) { - const parents = []; - while (desc.kind !== "file") { - const p = parent(desc); - desc = p; - parents.push(p); - } - return parents; -} -function parent(desc) { - var _a; - switch (desc.kind) { - case "enum_value": - case "field": - case "oneof": - case "rpc": - return desc.parent; - case "service": - return desc.file; - case "extension": - case "enum": - case "message": - return (_a = desc.parent) !== null && _a !== void 0 ? _a : desc.file; - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.d.ts deleted file mode 100644 index cb352b2..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.d.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { type DescExtension, type DescField, type DescMessage, type DescOneof } from "../descriptors.js"; -import type { Registry } from "../registry.js"; -/** - * A path to a (nested) member of a Protobuf message, such as a field, oneof, - * extension, list element, or map entry. - * - * Note that we may add additional types to this union in the future to support - * more use cases. - */ -export type Path = (DescField | DescExtension | DescOneof | { - kind: "list_sub"; - index: number; -} | { - kind: "map_sub"; - key: string | number | bigint | boolean; -})[]; -/** - * Builds a Path. - */ -export type PathBuilder = { - /** - * The root message of the path. - */ - readonly schema: DescMessage; - /** - * Add field access. - * - * Throws an InvalidPathError if the field cannot be added to the path. - */ - field(field: DescField): PathBuilder; - /** - * Access a oneof. - * - * Throws an InvalidPathError if the oneof cannot be added to the path. - * - */ - oneof(oneof: DescOneof): PathBuilder; - /** - * Access an extension. - * - * Throws an InvalidPathError if the extension cannot be added to the path. - */ - extension(extension: DescExtension): PathBuilder; - /** - * Access a list field by index. - * - * Throws an InvalidPathError if the list access cannot be added to the path. - */ - list(index: number): PathBuilder; - /** - * Access a map field by key. - * - * Throws an InvalidPathError if the map access cannot be added to the path. - */ - map(key: string | number | bigint | boolean): PathBuilder; - /** - * Append a path. - * - * Throws an InvalidPathError if the path cannot be added. - */ - add(path: Path | PathBuilder): PathBuilder; - /** - * Return the path. - */ - toPath(): Path; - /** - * Create a copy of this builder. - */ - clone(): PathBuilder; - /** - * Get the current container - a list, map, or message. - */ - getLeft(): DescMessage | (DescField & { - fieldKind: "list"; - }) | (DescField & { - fieldKind: "map"; - }) | undefined; -}; -/** - * Create a PathBuilder. - */ -export declare function buildPath(schema: DescMessage): PathBuilder; -/** - * Parse a Path from a string. - * - * Throws an InvalidPathError if the path is invalid. - * - * Note that a Registry must be provided via the options argument to parse - * paths that refer to an extension. - */ -export declare function parsePath(schema: DescMessage, path: string, options?: { - registry?: Registry; -}): Path; -/** - * Stringify a path. - */ -export declare function pathToString(path: Path): string; -/** - * InvalidPathError is thrown for invalid Paths, for example during parsing from - * a string, or when a new Path is built. - */ -export declare class InvalidPathError extends Error { - name: string; - readonly schema: DescMessage; - readonly path: Path | string; - constructor(schema: DescMessage, message: string, path: string | Path); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.js b/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.js deleted file mode 100644 index b412aa5..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.js +++ /dev/null @@ -1,369 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { ScalarType, } from "../descriptors.js"; -/** - * Create a PathBuilder. - */ -export function buildPath(schema) { - return new PathBuilderImpl(schema, schema, []); -} -/** - * Parse a Path from a string. - * - * Throws an InvalidPathError if the path is invalid. - * - * Note that a Registry must be provided via the options argument to parse - * paths that refer to an extension. - */ -export function parsePath(schema, path, options) { - var _a, _b; - const builder = new PathBuilderImpl(schema, schema, []); - const err = (message, i) => new InvalidPathError(schema, message + " at column " + (i + 1), path); - for (let i = 0; i < path.length;) { - const token = nextToken(i, path); - const left = builder.getLeft(); - let right = undefined; - if ("field" in token) { - right = - (left === null || left === void 0 ? void 0 : left.kind) != "message" - ? undefined - : ((_a = left.fields.find((field) => field.name === token.field)) !== null && _a !== void 0 ? _a : left.oneofs.find((oneof) => oneof.name === token.field)); - if (!right) { - throw err(`Unknown field "${token.field}"`, i); - } - } - else if ("ext" in token) { - right = (_b = options === null || options === void 0 ? void 0 : options.registry) === null || _b === void 0 ? void 0 : _b.getExtension(token.ext); - if (!right) { - throw err(`Unknown extension "${token.ext}"`, i); - } - } - else if ("val" in token) { - // list or map - right = - (left === null || left === void 0 ? void 0 : left.kind) == "field" && - left.fieldKind == "list" && - typeof token.val == "bigint" - ? { kind: "list_sub", index: Number(token.val) } - : { kind: "map_sub", key: token.val }; - } - else if ("err" in token) { - throw err(token.err, token.i); - } - if (right) { - try { - builder.add([right]); - } - catch (e) { - throw err(e instanceof InvalidPathError ? e.message : String(e), i); - } - } - i = token.i; - } - return builder.toPath(); -} -/** - * Stringify a path. - */ -export function pathToString(path) { - const str = []; - for (const ele of path) { - switch (ele.kind) { - case "field": - case "oneof": - if (str.length > 0) { - str.push("."); - } - str.push(ele.name); - break; - case "extension": - str.push("[", ele.typeName, "]"); - break; - case "list_sub": - str.push("[", ele.index, "]"); - break; - case "map_sub": - if (typeof ele.key == "string") { - str.push('["', ele.key - .split("\\") - .join("\\\\") - .split('"') - .join('\\"') - .split("\r") - .join("\\r") - .split("\n") - .join("\\n"), '"]'); - } - else { - str.push("[", ele.key, "]"); - } - break; - } - } - return str.join(""); -} -/** - * InvalidPathError is thrown for invalid Paths, for example during parsing from - * a string, or when a new Path is built. - */ -export class InvalidPathError extends Error { - constructor(schema, message, path) { - super(message); - this.name = "InvalidPathError"; - this.schema = schema; - this.path = path; - // see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#example - Object.setPrototypeOf(this, new.target.prototype); - } -} -class PathBuilderImpl { - constructor(schema, left, path) { - this.schema = schema; - this.left = left; - this.path = path; - } - getLeft() { - return this.left; - } - field(field) { - return this.push(field); - } - oneof(oneof) { - return this.push(oneof); - } - extension(extension) { - return this.push(extension); - } - list(index) { - return this.push({ kind: "list_sub", index }); - } - map(key) { - return this.push({ kind: "map_sub", key }); - } - add(pathOrBuilder) { - const path = Array.isArray(pathOrBuilder) - ? pathOrBuilder - : pathOrBuilder.toPath(); - const l = this.path.length; - try { - for (const ele of path) { - this.push(ele); - } - } - catch (e) { - // undo pushes - this.path.splice(l); - throw e; - } - return this; - } - toPath() { - return this.path.concat(); - } - clone() { - return new PathBuilderImpl(this.schema, this.left, this.path.concat()); - } - push(ele) { - switch (ele.kind) { - case "field": - if (!this.left || - this.left.kind != "message" || - this.left.typeName != ele.parent.typeName) { - throw this.err("field access"); - } - this.path.push(ele); - this.left = - ele.fieldKind == "message" - ? ele.message - : ele.fieldKind == "list" || ele.fieldKind == "map" - ? ele - : undefined; - return this; - case "oneof": - if (!this.left || - this.left.kind != "message" || - this.left.typeName != ele.parent.typeName) { - throw this.err("oneof access"); - } - this.path.push(ele); - this.left = undefined; - return this; - case "extension": - if (!this.left || - this.left.kind != "message" || - this.left.typeName != ele.extendee.typeName) { - throw this.err("extension access"); - } - this.path.push(ele); - this.left = ele.fieldKind == "message" ? ele.message : undefined; - return this; - case "list_sub": - if (!this.left || - this.left.kind != "field" || - this.left.fieldKind != "list") { - throw this.err("list access"); - } - if (ele.index < 0 || !Number.isInteger(ele.index)) { - throw this.err("list index"); - } - this.path.push(ele); - this.left = - this.left.listKind == "message" ? this.left.message : undefined; - return this; - case "map_sub": - if (!this.left || - this.left.kind != "field" || - this.left.fieldKind != "map") { - throw this.err("map access"); - } - if (!checkKeyType(ele.key, this.left.mapKey)) { - throw this.err("map key"); - } - this.path.push(ele); - this.left = - this.left.mapKind == "message" ? this.left.message : undefined; - return this; - } - } - err(what) { - return new InvalidPathError(this.schema, "Invalid " + what, this.path); - } -} -function checkKeyType(key, type) { - switch (type) { - case ScalarType.STRING: - return typeof key == "string"; - case ScalarType.INT32: - case ScalarType.UINT32: - case ScalarType.SINT32: - case ScalarType.SFIXED32: - case ScalarType.FIXED32: - return typeof key == "number"; - case ScalarType.UINT64: - case ScalarType.INT64: - case ScalarType.FIXED64: - case ScalarType.SFIXED64: - case ScalarType.SINT64: - return typeof key == "bigint"; - case ScalarType.BOOL: - return typeof key == "boolean"; - } -} -function nextToken(i, path) { - const re_extension = /^[A-Za-z_][A-Za-z_0-9]*(?:\.[A-Za-z_][A-Za-z_0-9]*)*$/; - const re_field = /^[A-Za-z_][A-Za-z_0-9]*$/; - if (path[i] == "[") { - i++; - while (path[i] == " ") { - // skip leading whitespace - i++; - } - if (i >= path.length) { - return { err: "Premature end", i: path.length - 1 }; - } - let token; - if (path[i] == `"`) { - // string literal - i++; - let val = ""; - for (;;) { - if (path[i] == `"`) { - // end of string literal - i++; - break; - } - if (path[i] == "\\") { - switch (path[i + 1]) { - case `"`: - case "\\": - val += path[i + 1]; - break; - case "r": - val += "\r"; - break; - case "n": - val += "\n"; - break; - default: - return { err: "Invalid escape sequence", i }; - } - i++; - } - else { - val += path[i]; - } - if (i >= path.length) { - return { err: "Premature end of string", i: path.length - 1 }; - } - i++; - } - token = { val }; - } - else if (path[i].match(/\d/)) { - // integer literal - const start = i; - while (i < path.length && /\d/.test(path[i])) { - i++; - } - token = { val: BigInt(path.substring(start, i)) }; - } - else if (path[i] == "]") { - return { err: "Premature ]", i }; - } - else { - // extension identifier or bool literal - const start = i; - while (i < path.length && path[i] != " " && path[i] != "]") { - i++; - } - const name = path.substring(start, i); - if (name === "true") { - token = { val: true }; - } - else if (name === "false") { - token = { val: false }; - } - else if (re_extension.test(name)) { - token = { ext: name }; - } - else { - return { err: "Invalid ident", i: start }; - } - } - while (path[i] == " ") { - // skip trailing whitespace - i++; - } - if (path[i] != "]") { - return { err: "Missing ]", i }; - } - i++; - return Object.assign(Object.assign({}, token), { i }); - } - // field identifier - if (i > 0) { - if (path[i] != ".") { - return { err: `Expected "."`, i }; - } - i++; - } - const start = i; - while (i < path.length && path[i] != "." && path[i] != "[") { - i++; - } - const field = path.substring(start, i); - return re_field.test(field) - ? { field, i } - : { err: "Invalid ident", i: start }; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.d.ts deleted file mode 100644 index 63f27b9..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { type DescField } from "../descriptors.js"; -import { FieldError } from "./error.js"; -/** - * Check whether the given field value is valid for the reflect API. - */ -export declare function checkField(field: DescField, value: unknown): FieldError | undefined; -/** - * Check whether the given list item is valid for the reflect API. - */ -export declare function checkListItem(field: DescField & { - fieldKind: "list"; -}, index: number, value: unknown): FieldError | undefined; -/** - * Check whether the given map key and value are valid for the reflect API. - */ -export declare function checkMapEntry(field: DescField & { - fieldKind: "map"; -}, key: unknown, value: unknown): FieldError | undefined; -export declare function formatVal(val: unknown): string; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js b/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js deleted file mode 100644 index 3e93884..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +++ /dev/null @@ -1,260 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { ScalarType, } from "../descriptors.js"; -import { isMessage } from "../is-message.js"; -import { FieldError } from "./error.js"; -import { isReflectList, isReflectMap, isReflectMessage } from "./guard.js"; -import { FLOAT32_MAX, FLOAT32_MIN, INT32_MAX, INT32_MIN, UINT32_MAX, } from "../wire/binary-encoding.js"; -import { getTextEncoding } from "../wire/text-encoding.js"; -import { protoInt64 } from "../proto-int64.js"; -/** - * Check whether the given field value is valid for the reflect API. - */ -export function checkField(field, value) { - const check = field.fieldKind == "list" - ? isReflectList(value, field) - : field.fieldKind == "map" - ? isReflectMap(value, field) - : checkSingular(field, value); - if (check === true) { - return undefined; - } - let reason; - switch (field.fieldKind) { - case "list": - reason = `expected ${formatReflectList(field)}, got ${formatVal(value)}`; - break; - case "map": - reason = `expected ${formatReflectMap(field)}, got ${formatVal(value)}`; - break; - default: { - reason = reasonSingular(field, value, check); - } - } - return new FieldError(field, reason); -} -/** - * Check whether the given list item is valid for the reflect API. - */ -export function checkListItem(field, index, value) { - const check = checkSingular(field, value); - if (check !== true) { - return new FieldError(field, `list item #${index + 1}: ${reasonSingular(field, value, check)}`); - } - return undefined; -} -/** - * Check whether the given map key and value are valid for the reflect API. - */ -export function checkMapEntry(field, key, value) { - const checkKey = checkScalarValue(key, field.mapKey); - if (checkKey !== true) { - return new FieldError(field, `invalid map key: ${reasonSingular({ scalar: field.mapKey }, key, checkKey)}`); - } - const checkVal = checkSingular(field, value); - if (checkVal !== true) { - return new FieldError(field, `map entry ${formatVal(key)}: ${reasonSingular(field, value, checkVal)}`); - } - return undefined; -} -function checkSingular(field, value) { - if (field.scalar !== undefined) { - return checkScalarValue(value, field.scalar); - } - if (field.enum !== undefined) { - if (field.enum.open) { - return Number.isInteger(value); - } - return field.enum.values.some((v) => v.number === value); - } - return isReflectMessage(value, field.message); -} -function checkScalarValue(value, scalar) { - switch (scalar) { - case ScalarType.DOUBLE: - return typeof value == "number"; - case ScalarType.FLOAT: - if (typeof value != "number") { - return false; - } - if (Number.isNaN(value) || !Number.isFinite(value)) { - return true; - } - if (value > FLOAT32_MAX || value < FLOAT32_MIN) { - return `${value.toFixed()} out of range`; - } - return true; - case ScalarType.INT32: - case ScalarType.SFIXED32: - case ScalarType.SINT32: - // signed - if (typeof value !== "number" || !Number.isInteger(value)) { - return false; - } - if (value > INT32_MAX || value < INT32_MIN) { - return `${value.toFixed()} out of range`; - } - return true; - case ScalarType.FIXED32: - case ScalarType.UINT32: - // unsigned - if (typeof value !== "number" || !Number.isInteger(value)) { - return false; - } - if (value > UINT32_MAX || value < 0) { - return `${value.toFixed()} out of range`; - } - return true; - case ScalarType.BOOL: - return typeof value == "boolean"; - case ScalarType.STRING: - if (typeof value != "string") { - return false; - } - return getTextEncoding().checkUtf8(value) || "invalid UTF8"; - case ScalarType.BYTES: - return value instanceof Uint8Array; - case ScalarType.INT64: - case ScalarType.SFIXED64: - case ScalarType.SINT64: - // signed - if (typeof value == "bigint" || - typeof value == "number" || - (typeof value == "string" && value.length > 0)) { - try { - protoInt64.parse(value); - return true; - } - catch (_) { - return `${value} out of range`; - } - } - return false; - case ScalarType.FIXED64: - case ScalarType.UINT64: - // unsigned - if (typeof value == "bigint" || - typeof value == "number" || - (typeof value == "string" && value.length > 0)) { - try { - protoInt64.uParse(value); - return true; - } - catch (_) { - return `${value} out of range`; - } - } - return false; - } -} -function reasonSingular(field, val, details) { - details = - typeof details == "string" ? `: ${details}` : `, got ${formatVal(val)}`; - if (field.scalar !== undefined) { - return `expected ${scalarTypeDescription(field.scalar)}` + details; - } - if (field.enum !== undefined) { - return `expected ${field.enum.toString()}` + details; - } - return `expected ${formatReflectMessage(field.message)}` + details; -} -export function formatVal(val) { - switch (typeof val) { - case "object": - if (val === null) { - return "null"; - } - if (val instanceof Uint8Array) { - return `Uint8Array(${val.length})`; - } - if (Array.isArray(val)) { - return `Array(${val.length})`; - } - if (isReflectList(val)) { - return formatReflectList(val.field()); - } - if (isReflectMap(val)) { - return formatReflectMap(val.field()); - } - if (isReflectMessage(val)) { - return formatReflectMessage(val.desc); - } - if (isMessage(val)) { - return `message ${val.$typeName}`; - } - return "object"; - case "string": - return val.length > 30 ? "string" : `"${val.split('"').join('\\"')}"`; - case "boolean": - return String(val); - case "number": - return String(val); - case "bigint": - return String(val) + "n"; - default: - // "symbol" | "undefined" | "object" | "function" - return typeof val; - } -} -function formatReflectMessage(desc) { - return `ReflectMessage (${desc.typeName})`; -} -function formatReflectList(field) { - switch (field.listKind) { - case "message": - return `ReflectList (${field.message.toString()})`; - case "enum": - return `ReflectList (${field.enum.toString()})`; - case "scalar": - return `ReflectList (${ScalarType[field.scalar]})`; - } -} -function formatReflectMap(field) { - switch (field.mapKind) { - case "message": - return `ReflectMap (${ScalarType[field.mapKey]}, ${field.message.toString()})`; - case "enum": - return `ReflectMap (${ScalarType[field.mapKey]}, ${field.enum.toString()})`; - case "scalar": - return `ReflectMap (${ScalarType[field.mapKey]}, ${ScalarType[field.scalar]})`; - } -} -function scalarTypeDescription(scalar) { - switch (scalar) { - case ScalarType.STRING: - return "string"; - case ScalarType.BOOL: - return "boolean"; - case ScalarType.INT64: - case ScalarType.SINT64: - case ScalarType.SFIXED64: - return "bigint (int64)"; - case ScalarType.UINT64: - case ScalarType.FIXED64: - return "bigint (uint64)"; - case ScalarType.BYTES: - return "Uint8Array"; - case ScalarType.DOUBLE: - return "number (float64)"; - case ScalarType.FLOAT: - return "number (float32)"; - case ScalarType.FIXED32: - case ScalarType.UINT32: - return "number (uint32)"; - case ScalarType.INT32: - case ScalarType.SFIXED32: - case ScalarType.SINT32: - return "number (int32)"; - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.d.ts deleted file mode 100644 index f300dd9..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.d.ts +++ /dev/null @@ -1,217 +0,0 @@ -import type { DescField, DescMessage, DescOneof } from "../descriptors.js"; -import { unsafeLocal } from "./unsafe.js"; -import type { Message, UnknownField } from "../types.js"; -import type { ScalarValue } from "./scalar.js"; -/** - * ReflectMessage provides dynamic access and manipulation of a message. - */ -export interface ReflectMessage { - /** - * The underlying message instance. - */ - readonly message: Message; - /** - * The descriptor for the message. - */ - readonly desc: DescMessage; - /** - * The fields of the message. This is a shortcut to message.fields. - */ - readonly fields: readonly DescField[]; - /** - * The fields of the message, sorted by field number ascending. - */ - readonly sortedFields: readonly DescField[]; - /** - * Oneof groups of the message. This is a shortcut to message.oneofs. - */ - readonly oneofs: readonly DescOneof[]; - /** - * Fields and oneof groups for this message. This is a shortcut to message.members. - */ - readonly members: readonly (DescField | DescOneof)[]; - /** - * Find a field by number. - */ - findNumber(number: number): DescField | undefined; - /** - * Returns true if the field is set. - * - * - Scalar and enum fields with implicit presence (proto3): - * Set if not a zero value. - * - * - Scalar and enum fields with explicit presence (proto2, oneof): - * Set if a value was set when creating or parsing the message, or when a - * value was assigned to the field's property. - * - * - Message fields: - * Set if the property is not undefined. - * - * - List and map fields: - * Set if not empty. - */ - isSet(field: DescField): boolean; - /** - * Resets the field, so that isSet() will return false. - */ - clear(field: DescField): void; - /** - * Return the selected field of a oneof group. - */ - oneofCase(oneof: DescOneof): DescField | undefined; - /** - * Returns the field value. Values are converted or wrapped to make it easier - * to manipulate messages. - * - * - Scalar fields: - * Returns the value, but converts 64-bit integer fields with the option - * `jstype=JS_STRING` to a bigint value. - * If the field is not set, the default value is returned. If no default - * value is set, the zero value is returned. - * - * - Enum fields: - * Returns the numeric value. If the field is not set, the default value is - * returned. If no default value is set, the zero value is returned. - * - * - Message fields: - * Returns a ReflectMessage. If the field is not set, a new message is - * returned, but not set on the field. - * - * - List fields: - * Returns a ReflectList object. - * - * - Map fields: - * Returns a ReflectMap object. - * - * Note that get() never returns `undefined`. To determine whether a field is - * set, use isSet(). - */ - get(field: Field): ReflectMessageGet; - /** - * Set a field value. - * - * Expects values in the same form that get() returns: - * - * - Scalar fields: - * 64-bit integer fields with the option `jstype=JS_STRING` as a bigint value. - * - * - Message fields: - * ReflectMessage. - * - * - List fields: - * ReflectList. - * - * - Map fields: - * ReflectMap. - * - * Throws an error if the value is invalid for the field. `undefined` is not - * a valid value. To reset a field, use clear(). - */ - set(field: Field, value: unknown): void; - /** - * Returns the unknown fields of the message. - */ - getUnknown(): UnknownField[] | undefined; - /** - * Sets the unknown fields of the message, overwriting any previous values. - */ - setUnknown(value: UnknownField[]): void; - [unsafeLocal]: Message; -} -/** - * ReflectList provides dynamic access and manipulation of a list field on a - * message. - * - * ReflectList is iterable - you can loop through all items with a for...of loop. - * - * Values are converted or wrapped to make it easier to manipulate them: - * - Scalar 64-bit integer fields with the option `jstype=JS_STRING` are - * converted to bigint. - * - Messages are wrapped in a ReflectMessage. - */ -export interface ReflectList extends Iterable { - /** - * Returns the list field. - */ - field(): DescField & { - fieldKind: "list"; - }; - /** - * The size of the list. - */ - readonly size: number; - /** - * Retrieves the item at the specified index, or undefined if the index - * is out of range. - */ - get(index: number): V | undefined; - /** - * Adds an item at the end of the list. - * Throws an error if an item is invalid for this list. - */ - add(item: V): void; - /** - * Replaces the item at the specified index with the specified item. - * Throws an error if the index is out of range (index < 0 || index >= size). - * Throws an error if the item is invalid for this list. - */ - set(index: number, item: V): void; - /** - * Removes all items from the list. - */ - clear(): void; - [Symbol.iterator](): IterableIterator; - entries(): IterableIterator<[number, V]>; - keys(): IterableIterator; - values(): IterableIterator; - [unsafeLocal]: unknown[]; -} -/** - * ReflectMap provides dynamic access and manipulation of a map field on a - * message. - * - * ReflectMap is iterable - you can loop through all entries with a for...of loop. - * - * Keys and values are converted or wrapped to make it easier to manipulate them: - * - A map field is a record object on a message, where keys are always strings. - * ReflectMap converts keys to their closest possible type in TypeScript. - * - Messages are wrapped in a ReflectMessage. - */ -export interface ReflectMap extends ReadonlyMap { - /** - * Returns the map field. - */ - field(): DescField & { - fieldKind: "map"; - }; - /** - * Removes the entry for the specified key. - * Returns false if the key is unknown. - */ - delete(key: K): boolean; - /** - * Sets or replaces the item at the specified key with the specified value. - * Throws an error if the key or value is invalid for this map. - */ - set(key: K, value: V): this; - /** - * Removes all entries from the map. - */ - clear(): void; - [unsafeLocal]: Record; -} -/** - * The return type of ReflectMessage.get() - */ -export type ReflectMessageGet = (Field extends { - fieldKind: "map"; -} ? ReflectMap : Field extends { - fieldKind: "list"; -} ? ReflectList : Field extends { - fieldKind: "enum"; -} ? number : Field extends { - fieldKind: "message"; -} ? ReflectMessage : Field extends { - fieldKind: "scalar"; - scalar: infer T; -} ? ScalarValue : never); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.js b/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.js deleted file mode 100644 index f653c02..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { unsafeLocal } from "./unsafe.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.d.ts deleted file mode 100644 index 3bfb1ad..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { type DescField, type DescMessage } from "../descriptors.js"; -import type { MessageShape } from "../types.js"; -import type { ReflectList, ReflectMap, ReflectMessage } from "./reflect-types.js"; -/** - * Create a ReflectMessage. - */ -export declare function reflect(messageDesc: Desc, message?: MessageShape, -/** - * By default, field values are validated when setting them. For example, - * a value for an uint32 field must be a ECMAScript Number >= 0. - * - * When field values are trusted, performance can be improved by disabling - * checks. - */ -check?: boolean): ReflectMessage; -/** - * Create a ReflectList. - */ -export declare function reflectList(field: DescField & { - fieldKind: "list"; -}, unsafeInput?: unknown[], -/** - * By default, field values are validated when setting them. For example, - * a value for an uint32 field must be a ECMAScript Number >= 0. - * - * When field values are trusted, performance can be improved by disabling - * checks. - */ -check?: boolean): ReflectList; -/** - * Create a ReflectMap. - */ -export declare function reflectMap(field: DescField & { - fieldKind: "map"; -}, unsafeInput?: Record, -/** - * By default, field values are validated when setting them. For example, - * a value for an uint32 field must be a ECMAScript Number >= 0. - * - * When field values are trusted, performance can be improved by disabling - * checks. - */ -check?: boolean): ReflectMap; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js b/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js deleted file mode 100644 index 82e5f01..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +++ /dev/null @@ -1,536 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { ScalarType, } from "../descriptors.js"; -import { checkField, checkListItem, checkMapEntry } from "./reflect-check.js"; -import { FieldError } from "./error.js"; -import { unsafeClear, unsafeGet, unsafeIsSet, unsafeLocal, unsafeOneofCase, unsafeSet, } from "./unsafe.js"; -import { create } from "../create.js"; -import { isWrapper, isWrapperDesc } from "../wkt/wrappers.js"; -import { scalarZeroValue } from "./scalar.js"; -import { protoInt64 } from "../proto-int64.js"; -import { isObject, isReflectList, isReflectMap, isReflectMessage, } from "./guard.js"; -/** - * Create a ReflectMessage. - */ -export function reflect(messageDesc, message, -/** - * By default, field values are validated when setting them. For example, - * a value for an uint32 field must be a ECMAScript Number >= 0. - * - * When field values are trusted, performance can be improved by disabling - * checks. - */ -check = true) { - return new ReflectMessageImpl(messageDesc, message, check); -} -class ReflectMessageImpl { - get sortedFields() { - var _a; - return ((_a = this._sortedFields) !== null && _a !== void 0 ? _a : - // biome-ignore lint/suspicious/noAssignInExpressions: no - (this._sortedFields = this.desc.fields - .concat() - .sort((a, b) => a.number - b.number))); - } - constructor(messageDesc, message, check = true) { - this.lists = new Map(); - this.maps = new Map(); - this.check = check; - this.desc = messageDesc; - this.message = this[unsafeLocal] = message !== null && message !== void 0 ? message : create(messageDesc); - this.fields = messageDesc.fields; - this.oneofs = messageDesc.oneofs; - this.members = messageDesc.members; - } - findNumber(number) { - if (!this._fieldsByNumber) { - this._fieldsByNumber = new Map(this.desc.fields.map((f) => [f.number, f])); - } - return this._fieldsByNumber.get(number); - } - oneofCase(oneof) { - assertOwn(this.message, oneof); - return unsafeOneofCase(this.message, oneof); - } - isSet(field) { - assertOwn(this.message, field); - return unsafeIsSet(this.message, field); - } - clear(field) { - assertOwn(this.message, field); - unsafeClear(this.message, field); - } - get(field) { - assertOwn(this.message, field); - const value = unsafeGet(this.message, field); - switch (field.fieldKind) { - case "list": - // eslint-disable-next-line no-case-declarations - let list = this.lists.get(field); - if (!list || list[unsafeLocal] !== value) { - this.lists.set(field, - // biome-ignore lint/suspicious/noAssignInExpressions: no - (list = new ReflectListImpl(field, value, this.check))); - } - return list; - case "map": - let map = this.maps.get(field); - if (!map || map[unsafeLocal] !== value) { - this.maps.set(field, - // biome-ignore lint/suspicious/noAssignInExpressions: no - (map = new ReflectMapImpl(field, value, this.check))); - } - return map; - case "message": - return messageToReflect(field, value, this.check); - case "scalar": - return (value === undefined - ? scalarZeroValue(field.scalar, false) - : longToReflect(field, value)); - case "enum": - return (value !== null && value !== void 0 ? value : field.enum.values[0].number); - } - } - set(field, value) { - assertOwn(this.message, field); - if (this.check) { - const err = checkField(field, value); - if (err) { - throw err; - } - } - let local; - if (field.fieldKind == "message") { - local = messageToLocal(field, value); - } - else if (isReflectMap(value) || isReflectList(value)) { - local = value[unsafeLocal]; - } - else { - local = longToLocal(field, value); - } - unsafeSet(this.message, field, local); - } - getUnknown() { - return this.message.$unknown; - } - setUnknown(value) { - this.message.$unknown = value; - } -} -function assertOwn(owner, member) { - if (member.parent.typeName !== owner.$typeName) { - throw new FieldError(member, `cannot use ${member.toString()} with message ${owner.$typeName}`, "ForeignFieldError"); - } -} -/** - * Create a ReflectList. - */ -export function reflectList(field, unsafeInput, -/** - * By default, field values are validated when setting them. For example, - * a value for an uint32 field must be a ECMAScript Number >= 0. - * - * When field values are trusted, performance can be improved by disabling - * checks. - */ -check = true) { - return new ReflectListImpl(field, unsafeInput !== null && unsafeInput !== void 0 ? unsafeInput : [], check); -} -class ReflectListImpl { - field() { - return this._field; - } - get size() { - return this._arr.length; - } - constructor(field, unsafeInput, check) { - this._field = field; - this._arr = this[unsafeLocal] = unsafeInput; - this.check = check; - } - get(index) { - const item = this._arr[index]; - return item === undefined - ? undefined - : listItemToReflect(this._field, item, this.check); - } - set(index, item) { - if (index < 0 || index >= this._arr.length) { - throw new FieldError(this._field, `list item #${index + 1}: out of range`); - } - if (this.check) { - const err = checkListItem(this._field, index, item); - if (err) { - throw err; - } - } - this._arr[index] = listItemToLocal(this._field, item); - } - add(item) { - if (this.check) { - const err = checkListItem(this._field, this._arr.length, item); - if (err) { - throw err; - } - } - this._arr.push(listItemToLocal(this._field, item)); - return undefined; - } - clear() { - this._arr.splice(0, this._arr.length); - } - [Symbol.iterator]() { - return this.values(); - } - keys() { - return this._arr.keys(); - } - *values() { - for (const item of this._arr) { - yield listItemToReflect(this._field, item, this.check); - } - } - *entries() { - for (let i = 0; i < this._arr.length; i++) { - yield [i, listItemToReflect(this._field, this._arr[i], this.check)]; - } - } -} -/** - * Create a ReflectMap. - */ -export function reflectMap(field, unsafeInput, -/** - * By default, field values are validated when setting them. For example, - * a value for an uint32 field must be a ECMAScript Number >= 0. - * - * When field values are trusted, performance can be improved by disabling - * checks. - */ -check = true) { - return new ReflectMapImpl(field, unsafeInput, check); -} -class ReflectMapImpl { - constructor(field, unsafeInput, check = true) { - this.obj = this[unsafeLocal] = unsafeInput !== null && unsafeInput !== void 0 ? unsafeInput : {}; - this.check = check; - this._field = field; - } - field() { - return this._field; - } - set(key, value) { - if (this.check) { - const err = checkMapEntry(this._field, key, value); - if (err) { - throw err; - } - } - this.obj[mapKeyToLocal(key)] = mapValueToLocal(this._field, value); - return this; - } - delete(key) { - const k = mapKeyToLocal(key); - const has = Object.prototype.hasOwnProperty.call(this.obj, k); - if (has) { - delete this.obj[k]; - } - return has; - } - clear() { - for (const key of Object.keys(this.obj)) { - delete this.obj[key]; - } - } - get(key) { - let val = this.obj[mapKeyToLocal(key)]; - if (val !== undefined) { - val = mapValueToReflect(this._field, val, this.check); - } - return val; - } - has(key) { - return Object.prototype.hasOwnProperty.call(this.obj, mapKeyToLocal(key)); - } - *keys() { - for (const objKey of Object.keys(this.obj)) { - yield mapKeyToReflect(objKey, this._field.mapKey); - } - } - *entries() { - for (const objEntry of Object.entries(this.obj)) { - yield [ - mapKeyToReflect(objEntry[0], this._field.mapKey), - mapValueToReflect(this._field, objEntry[1], this.check), - ]; - } - } - [Symbol.iterator]() { - return this.entries(); - } - get size() { - return Object.keys(this.obj).length; - } - *values() { - for (const val of Object.values(this.obj)) { - yield mapValueToReflect(this._field, val, this.check); - } - } - forEach(callbackfn, thisArg) { - for (const mapEntry of this.entries()) { - callbackfn.call(thisArg, mapEntry[1], mapEntry[0], this); - } - } -} -function messageToLocal(field, value) { - if (!isReflectMessage(value)) { - return value; - } - if (isWrapper(value.message) && - !field.oneof && - field.fieldKind == "message") { - // Types from google/protobuf/wrappers.proto are unwrapped when used in - // a singular field that is not part of a oneof group. - return value.message.value; - } - if (value.desc.typeName == "google.protobuf.Struct" && - field.parent.typeName != "google.protobuf.Value") { - // google.protobuf.Struct is represented with JsonObject when used in a - // field, except when used in google.protobuf.Value. - return wktStructToLocal(value.message); - } - return value.message; -} -function messageToReflect(field, value, check) { - if (value !== undefined) { - if (isWrapperDesc(field.message) && - !field.oneof && - field.fieldKind == "message") { - // Types from google/protobuf/wrappers.proto are unwrapped when used in - // a singular field that is not part of a oneof group. - value = { - $typeName: field.message.typeName, - value: longToReflect(field.message.fields[0], value), - }; - } - else if (field.message.typeName == "google.protobuf.Struct" && - field.parent.typeName != "google.protobuf.Value" && - isObject(value)) { - // google.protobuf.Struct is represented with JsonObject when used in a - // field, except when used in google.protobuf.Value. - value = wktStructToReflect(value); - } - } - return new ReflectMessageImpl(field.message, value, check); -} -function listItemToLocal(field, value) { - if (field.listKind == "message") { - return messageToLocal(field, value); - } - return longToLocal(field, value); -} -function listItemToReflect(field, value, check) { - if (field.listKind == "message") { - return messageToReflect(field, value, check); - } - return longToReflect(field, value); -} -function mapValueToLocal(field, value) { - if (field.mapKind == "message") { - return messageToLocal(field, value); - } - return longToLocal(field, value); -} -function mapValueToReflect(field, value, check) { - if (field.mapKind == "message") { - return messageToReflect(field, value, check); - } - return value; -} -function mapKeyToLocal(key) { - return typeof key == "string" || typeof key == "number" ? key : String(key); -} -/** - * Converts a map key (any scalar value except float, double, or bytes) from its - * representation in a message (string or number, the only possible object key - * types) to the closest possible type in ECMAScript. - */ -function mapKeyToReflect(key, type) { - switch (type) { - case ScalarType.STRING: - return key; - case ScalarType.INT32: - case ScalarType.FIXED32: - case ScalarType.UINT32: - case ScalarType.SFIXED32: - case ScalarType.SINT32: { - const n = Number.parseInt(key); - if (Number.isFinite(n)) { - return n; - } - break; - } - case ScalarType.BOOL: - switch (key) { - case "true": - return true; - case "false": - return false; - } - break; - case ScalarType.UINT64: - case ScalarType.FIXED64: - try { - return protoInt64.uParse(key); - } - catch (_a) { - // - } - break; - default: - // INT64, SFIXED64, SINT64 - try { - return protoInt64.parse(key); - } - catch (_b) { - // - } - break; - } - return key; -} -function longToReflect(field, value) { - switch (field.scalar) { - case ScalarType.INT64: - case ScalarType.SFIXED64: - case ScalarType.SINT64: - if ("longAsString" in field && - field.longAsString && - typeof value == "string") { - value = protoInt64.parse(value); - } - break; - case ScalarType.FIXED64: - case ScalarType.UINT64: - if ("longAsString" in field && - field.longAsString && - typeof value == "string") { - value = protoInt64.uParse(value); - } - break; - } - return value; -} -function longToLocal(field, value) { - switch (field.scalar) { - case ScalarType.INT64: - case ScalarType.SFIXED64: - case ScalarType.SINT64: - if ("longAsString" in field && field.longAsString) { - value = String(value); - } - else if (typeof value == "string" || typeof value == "number") { - value = protoInt64.parse(value); - } - break; - case ScalarType.FIXED64: - case ScalarType.UINT64: - if ("longAsString" in field && field.longAsString) { - value = String(value); - } - else if (typeof value == "string" || typeof value == "number") { - value = protoInt64.uParse(value); - } - break; - } - return value; -} -function wktStructToReflect(json) { - const struct = { - $typeName: "google.protobuf.Struct", - fields: {}, - }; - if (isObject(json)) { - for (const [k, v] of Object.entries(json)) { - struct.fields[k] = wktValueToReflect(v); - } - } - return struct; -} -function wktStructToLocal(val) { - const json = {}; - for (const [k, v] of Object.entries(val.fields)) { - json[k] = wktValueToLocal(v); - } - return json; -} -function wktValueToLocal(val) { - switch (val.kind.case) { - case "structValue": - return wktStructToLocal(val.kind.value); - case "listValue": - return val.kind.value.values.map(wktValueToLocal); - case "nullValue": - case undefined: - return null; - default: - return val.kind.value; - } -} -function wktValueToReflect(json) { - const value = { - $typeName: "google.protobuf.Value", - kind: { case: undefined }, - }; - switch (typeof json) { - case "number": - value.kind = { case: "numberValue", value: json }; - break; - case "string": - value.kind = { case: "stringValue", value: json }; - break; - case "boolean": - value.kind = { case: "boolValue", value: json }; - break; - case "object": - if (json === null) { - const nullValue = 0; - value.kind = { case: "nullValue", value: nullValue }; - } - else if (Array.isArray(json)) { - const listValue = { - $typeName: "google.protobuf.ListValue", - values: [], - }; - if (Array.isArray(json)) { - for (const e of json) { - listValue.values.push(wktValueToReflect(e)); - } - } - value.kind = { - case: "listValue", - value: listValue, - }; - } - else { - value.kind = { - case: "structValue", - value: wktStructToReflect(json), - }; - } - break; - } - return value; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.d.ts deleted file mode 100644 index 16ac91f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { ScalarType } from "../descriptors.js"; -/** - * ScalarValue maps from a scalar field type to a TypeScript value type. - */ -export type ScalarValue = T extends ScalarType.STRING ? string : T extends ScalarType.INT32 ? number : T extends ScalarType.UINT32 ? number : T extends ScalarType.SINT32 ? number : T extends ScalarType.FIXED32 ? number : T extends ScalarType.SFIXED32 ? number : T extends ScalarType.FLOAT ? number : T extends ScalarType.DOUBLE ? number : T extends ScalarType.INT64 ? LongAsString extends true ? string : bigint : T extends ScalarType.SINT64 ? LongAsString extends true ? string : bigint : T extends ScalarType.SFIXED64 ? LongAsString extends true ? string : bigint : T extends ScalarType.UINT64 ? LongAsString extends true ? string : bigint : T extends ScalarType.FIXED64 ? LongAsString extends true ? string : bigint : T extends ScalarType.BOOL ? boolean : T extends ScalarType.BYTES ? Uint8Array : never; -/** - * Returns true if both scalar values are equal. - */ -export declare function scalarEquals(type: ScalarType, a: ScalarValue | undefined, b: ScalarValue | undefined): boolean; -/** - * Returns the zero value for the given scalar type. - */ -export declare function scalarZeroValue(type: T, longAsString: LongAsString): ScalarValue; -/** - * Returns true for a zero-value. For example, an integer has the zero-value `0`, - * a boolean is `false`, a string is `""`, and bytes is an empty Uint8Array. - * - * In proto3, zero-values are not written to the wire, unless the field is - * optional or repeated. - */ -export declare function isScalarZeroValue(type: ScalarType, value: unknown): boolean; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js b/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js deleted file mode 100644 index c7bf82e..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { protoInt64 } from "../proto-int64.js"; -import { ScalarType } from "../descriptors.js"; -/** - * Returns true if both scalar values are equal. - */ -export function scalarEquals(type, a, b) { - if (a === b) { - // This correctly matches equal values except BYTES and (possibly) 64-bit integers. - return true; - } - // Special case BYTES - we need to compare each byte individually - if (type == ScalarType.BYTES) { - if (!(a instanceof Uint8Array) || !(b instanceof Uint8Array)) { - return false; - } - if (a.length !== b.length) { - return false; - } - for (let i = 0; i < a.length; i++) { - if (a[i] !== b[i]) { - return false; - } - } - return true; - } - // Special case 64-bit integers - we support number, string and bigint representation. - switch (type) { - case ScalarType.UINT64: - case ScalarType.FIXED64: - case ScalarType.INT64: - case ScalarType.SFIXED64: - case ScalarType.SINT64: - // Loose comparison will match between 0n, 0 and "0". - return a == b; - } - // Anything that hasn't been caught by strict comparison or special cased - // BYTES and 64-bit integers is not equal. - return false; -} -/** - * Returns the zero value for the given scalar type. - */ -export function scalarZeroValue(type, longAsString) { - switch (type) { - case ScalarType.STRING: - return ""; - case ScalarType.BOOL: - return false; - case ScalarType.DOUBLE: - case ScalarType.FLOAT: - return 0.0; - case ScalarType.INT64: - case ScalarType.UINT64: - case ScalarType.SFIXED64: - case ScalarType.FIXED64: - case ScalarType.SINT64: - return (longAsString ? "0" : protoInt64.zero); - case ScalarType.BYTES: - return new Uint8Array(0); - default: - // Handles INT32, UINT32, SINT32, FIXED32, SFIXED32. - // We do not use individual cases to save a few bytes code size. - return 0; - } -} -/** - * Returns true for a zero-value. For example, an integer has the zero-value `0`, - * a boolean is `false`, a string is `""`, and bytes is an empty Uint8Array. - * - * In proto3, zero-values are not written to the wire, unless the field is - * optional or repeated. - */ -export function isScalarZeroValue(type, value) { - switch (type) { - case ScalarType.BOOL: - return value === false; - case ScalarType.STRING: - return value === ""; - case ScalarType.BYTES: - return value instanceof Uint8Array && !value.byteLength; - default: - return value == 0; // Loose comparison matches 0n, 0 and "0" - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.d.ts deleted file mode 100644 index 02fd72f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import type { DescField, DescOneof } from "../descriptors.js"; -export declare const unsafeLocal: unique symbol; -/** - * Return the selected field of a oneof group. - * - * @private - */ -export declare function unsafeOneofCase(target: Record, oneof: DescOneof): DescField | undefined; -/** - * Returns true if the field is set. - * - * @private - */ -export declare function unsafeIsSet(target: Record, field: DescField): boolean; -/** - * Returns true if the field is set, but only for singular fields with explicit - * presence (proto2). - * - * @private - */ -export declare function unsafeIsSetExplicit(target: object, localName: string): boolean; -/** - * Return a field value, respecting oneof groups. - * - * @private - */ -export declare function unsafeGet(target: Record, field: DescField): unknown; -/** - * Set a field value, respecting oneof groups. - * - * @private - */ -export declare function unsafeSet(target: Record, field: DescField, value: unknown): void; -/** - * Resets the field, so that unsafeIsSet() will return false. - * - * @private - */ -export declare function unsafeClear(target: Record, field: DescField): void; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js b/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js deleted file mode 100644 index 55bcd7f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { isScalarZeroValue, scalarZeroValue } from "./scalar.js"; -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.IMPLICIT: const $name: FeatureSet_FieldPresence.$localName = $number; -const IMPLICIT = 2; -export const unsafeLocal = Symbol.for("reflect unsafe local"); -/** - * Return the selected field of a oneof group. - * - * @private - */ -export function unsafeOneofCase( -// biome-ignore lint/suspicious/noExplicitAny: `any` is the best choice for dynamic access -target, oneof) { - const c = target[oneof.localName].case; - if (c === undefined) { - return c; - } - return oneof.fields.find((f) => f.localName === c); -} -/** - * Returns true if the field is set. - * - * @private - */ -export function unsafeIsSet( -// biome-ignore lint/suspicious/noExplicitAny: `any` is the best choice for dynamic access -target, field) { - const name = field.localName; - if (field.oneof) { - return target[field.oneof.localName].case === name; - } - if (field.presence != IMPLICIT) { - // Fields with explicit presence have properties on the prototype chain - // for default / zero values (except for proto3). - return (target[name] !== undefined && - Object.prototype.hasOwnProperty.call(target, name)); - } - switch (field.fieldKind) { - case "list": - return target[name].length > 0; - case "map": - return Object.keys(target[name]).length > 0; - case "scalar": - return !isScalarZeroValue(field.scalar, target[name]); - case "enum": - return target[name] !== field.enum.values[0].number; - } - throw new Error("message field with implicit presence"); -} -/** - * Returns true if the field is set, but only for singular fields with explicit - * presence (proto2). - * - * @private - */ -export function unsafeIsSetExplicit(target, localName) { - return (Object.prototype.hasOwnProperty.call(target, localName) && - target[localName] !== undefined); -} -/** - * Return a field value, respecting oneof groups. - * - * @private - */ -export function unsafeGet(target, field) { - if (field.oneof) { - const oneof = target[field.oneof.localName]; - if (oneof.case === field.localName) { - return oneof.value; - } - return undefined; - } - return target[field.localName]; -} -/** - * Set a field value, respecting oneof groups. - * - * @private - */ -export function unsafeSet(target, field, value) { - if (field.oneof) { - target[field.oneof.localName] = { - case: field.localName, - value: value, - }; - } - else { - target[field.localName] = value; - } -} -/** - * Resets the field, so that unsafeIsSet() will return false. - * - * @private - */ -export function unsafeClear( -// biome-ignore lint/suspicious/noExplicitAny: `any` is the best choice for dynamic access -target, field) { - const name = field.localName; - if (field.oneof) { - const oneofLocalName = field.oneof.localName; - if (target[oneofLocalName].case === name) { - target[oneofLocalName] = { case: undefined }; - } - } - else if (field.presence != IMPLICIT) { - // Fields with explicit presence have properties on the prototype chain - // for default / zero values (except for proto3). By deleting their own - // property, the field is reset. - delete target[name]; - } - else { - switch (field.fieldKind) { - case "map": - target[name] = {}; - break; - case "list": - target[name] = []; - break; - case "enum": - target[name] = field.enum.values[0].number; - break; - case "scalar": - target[name] = scalarZeroValue(field.scalar, field.longAsString); - break; - } - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/registry.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/registry.d.ts deleted file mode 100644 index 4a1b5ae..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/registry.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -import type { FileDescriptorProto, FileDescriptorSet } from "./wkt/gen/google/protobuf/descriptor_pb.js"; -import { type DescEnum, type DescExtension, type DescFile, type DescMessage, type DescService, type SupportedEdition } from "./descriptors.js"; -/** - * A set of descriptors for messages, enumerations, extensions, - * and services. - */ -export interface Registry { - readonly kind: "registry"; - /** - * All types (message, enumeration, extension, or service) contained - * in this registry. - */ - [Symbol.iterator](): IterableIterator; - /** - * Look up a type (message, enumeration, extension, or service) by - * its fully qualified name. - */ - get(typeName: string): DescMessage | DescEnum | DescExtension | DescService | undefined; - /** - * Look up a message descriptor by its fully qualified name. - */ - getMessage(typeName: string): DescMessage | undefined; - /** - * Look up an enumeration descriptor by its fully qualified name. - */ - getEnum(typeName: string): DescEnum | undefined; - /** - * Look up an extension descriptor by its fully qualified name. - */ - getExtension(typeName: string): DescExtension | undefined; - /** - * Look up an extension by the extendee - the message it extends - and - * the extension number. - */ - getExtensionFor(extendee: DescMessage, no: number): DescExtension | undefined; - /** - * Look up a service descriptor by its fully qualified name. - */ - getService(typeName: string): DescService | undefined; -} -/** - * A registry that allows adding and removing descriptors. - */ -export interface MutableRegistry extends Registry { - /** - * Adds the given descriptor - but not types nested within - to the registry. - */ - add(desc: DescMessage | DescEnum | DescExtension | DescService): void; - /** - * Remove the given descriptor - but not types nested within - from the registry. - */ - remove(desc: DescMessage | DescEnum | DescExtension | DescService): void; -} -/** - * A registry that includes files. - */ -export interface FileRegistry extends Registry { - /** - * All files in this registry. - */ - readonly files: Iterable; - /** - * Look up a file descriptor by file name. - */ - getFile(fileName: string): DescFile | undefined; -} -/** - * Create a registry from the given inputs. - * - * An input can be: - * - Any message, enum, service, or extension descriptor, which adds just the - * descriptor for this type. - * - A file descriptor, which adds all typed defined in this file. - * - A registry, which adds all types from the registry. - * - * For duplicate descriptors (same type name), the one given last wins. - */ -export declare function createRegistry(...input: (Registry | DescFile | DescMessage | DescEnum | DescExtension | DescService)[]): Registry; -/** - * Create a registry that allows adding and removing descriptors. - */ -export declare function createMutableRegistry(...input: (Registry | DescFile | DescMessage | DescEnum | DescExtension | DescService)[]): MutableRegistry; -/** - * Create a registry (including file descriptors) from a google.protobuf.FileDescriptorSet - * message. - */ -export declare function createFileRegistry(fileDescriptorSet: FileDescriptorSet): FileRegistry; -/** - * Create a registry (including file descriptors) from a google.protobuf.FileDescriptorProto - * message. For every import, the given resolver function is called. - */ -export declare function createFileRegistry(fileDescriptorProto: FileDescriptorProto, resolve: (protoFileName: string) => FileDescriptorProto | DescFile | undefined): FileRegistry; -/** - * Create a registry (including file descriptors) from one or more registries, - * merging them. - */ -export declare function createFileRegistry(...registries: FileRegistry[]): FileRegistry; -export declare const minimumEdition: SupportedEdition, maximumEdition: SupportedEdition; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/registry.js b/node_modules/@bufbuild/protobuf/dist/esm/registry.js deleted file mode 100644 index 3d2bfb3..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/registry.js +++ /dev/null @@ -1,916 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { ScalarType, } from "./descriptors.js"; -import { parseTextFormatEnumValue, parseTextFormatScalarValue, } from "./wire/text-format.js"; -import { nestedTypes } from "./reflect/nested-types.js"; -import { unsafeIsSetExplicit } from "./reflect/unsafe.js"; -import { protoCamelCase, safeObjectProperty } from "./reflect/names.js"; -/** - * Create a registry from the given inputs. - * - * An input can be: - * - Any message, enum, service, or extension descriptor, which adds just the - * descriptor for this type. - * - A file descriptor, which adds all typed defined in this file. - * - A registry, which adds all types from the registry. - * - * For duplicate descriptors (same type name), the one given last wins. - */ -export function createRegistry(...input) { - return initBaseRegistry(input); -} -/** - * Create a registry that allows adding and removing descriptors. - */ -export function createMutableRegistry(...input) { - const reg = initBaseRegistry(input); - return Object.assign(Object.assign({}, reg), { remove(desc) { - var _a; - if (desc.kind == "extension") { - (_a = reg.extendees.get(desc.extendee.typeName)) === null || _a === void 0 ? void 0 : _a.delete(desc.number); - } - reg.types.delete(desc.typeName); - } }); -} -export function createFileRegistry(...args) { - const registry = createBaseRegistry(); - if (!args.length) { - return registry; - } - if ("$typeName" in args[0] && - args[0].$typeName == "google.protobuf.FileDescriptorSet") { - for (const file of args[0].file) { - addFile(file, registry); - } - return registry; - } - if ("$typeName" in args[0]) { - const input = args[0]; - const resolve = args[1]; - const seen = new Set(); - function recurseDeps(file) { - const deps = []; - for (const protoFileName of file.dependency) { - if (registry.getFile(protoFileName) != undefined) { - continue; - } - if (seen.has(protoFileName)) { - continue; - } - const dep = resolve(protoFileName); - if (!dep) { - throw new Error(`Unable to resolve ${protoFileName}, imported by ${file.name}`); - } - if ("kind" in dep) { - registry.addFile(dep, false, true); - } - else { - seen.add(dep.name); - deps.push(dep); - } - } - return deps.concat(...deps.map(recurseDeps)); - } - for (const file of [input, ...recurseDeps(input)].reverse()) { - addFile(file, registry); - } - } - else { - for (const fileReg of args) { - for (const file of fileReg.files) { - registry.addFile(file); - } - } - } - return registry; -} -/** - * @private - */ -function createBaseRegistry() { - const types = new Map(); - const extendees = new Map(); - const files = new Map(); - return { - kind: "registry", - types, - extendees, - [Symbol.iterator]() { - return types.values(); - }, - get files() { - return files.values(); - }, - addFile(file, skipTypes, withDeps) { - files.set(file.proto.name, file); - if (!skipTypes) { - for (const type of nestedTypes(file)) { - this.add(type); - } - } - if (withDeps) { - for (const f of file.dependencies) { - this.addFile(f, skipTypes, withDeps); - } - } - }, - add(desc) { - if (desc.kind == "extension") { - let numberToExt = extendees.get(desc.extendee.typeName); - if (!numberToExt) { - extendees.set(desc.extendee.typeName, - // biome-ignore lint/suspicious/noAssignInExpressions: no - (numberToExt = new Map())); - } - numberToExt.set(desc.number, desc); - } - types.set(desc.typeName, desc); - }, - get(typeName) { - return types.get(typeName); - }, - getFile(fileName) { - return files.get(fileName); - }, - getMessage(typeName) { - const t = types.get(typeName); - return (t === null || t === void 0 ? void 0 : t.kind) == "message" ? t : undefined; - }, - getEnum(typeName) { - const t = types.get(typeName); - return (t === null || t === void 0 ? void 0 : t.kind) == "enum" ? t : undefined; - }, - getExtension(typeName) { - const t = types.get(typeName); - return (t === null || t === void 0 ? void 0 : t.kind) == "extension" ? t : undefined; - }, - getExtensionFor(extendee, no) { - var _a; - return (_a = extendees.get(extendee.typeName)) === null || _a === void 0 ? void 0 : _a.get(no); - }, - getService(typeName) { - const t = types.get(typeName); - return (t === null || t === void 0 ? void 0 : t.kind) == "service" ? t : undefined; - }, - }; -} -/** - * @private - */ -function initBaseRegistry(inputs) { - const registry = createBaseRegistry(); - for (const input of inputs) { - switch (input.kind) { - case "registry": - for (const n of input) { - registry.add(n); - } - break; - case "file": - registry.addFile(input); - break; - default: - registry.add(input); - break; - } - } - return registry; -} -// bootstrap-inject google.protobuf.Edition.EDITION_PROTO2: const $name: Edition.$localName = $number; -const EDITION_PROTO2 = 998; -// bootstrap-inject google.protobuf.Edition.EDITION_PROTO3: const $name: Edition.$localName = $number; -const EDITION_PROTO3 = 999; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_STRING: const $name: FieldDescriptorProto_Type.$localName = $number; -const TYPE_STRING = 9; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_GROUP: const $name: FieldDescriptorProto_Type.$localName = $number; -const TYPE_GROUP = 10; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_MESSAGE: const $name: FieldDescriptorProto_Type.$localName = $number; -const TYPE_MESSAGE = 11; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_BYTES: const $name: FieldDescriptorProto_Type.$localName = $number; -const TYPE_BYTES = 12; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_ENUM: const $name: FieldDescriptorProto_Type.$localName = $number; -const TYPE_ENUM = 14; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Label.LABEL_REPEATED: const $name: FieldDescriptorProto_Label.$localName = $number; -const LABEL_REPEATED = 3; -// bootstrap-inject google.protobuf.FieldDescriptorProto.Label.LABEL_REQUIRED: const $name: FieldDescriptorProto_Label.$localName = $number; -const LABEL_REQUIRED = 2; -// bootstrap-inject google.protobuf.FieldOptions.JSType.JS_STRING: const $name: FieldOptions_JSType.$localName = $number; -const JS_STRING = 1; -// bootstrap-inject google.protobuf.MethodOptions.IdempotencyLevel.IDEMPOTENCY_UNKNOWN: const $name: MethodOptions_IdempotencyLevel.$localName = $number; -const IDEMPOTENCY_UNKNOWN = 0; -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.EXPLICIT: const $name: FeatureSet_FieldPresence.$localName = $number; -const EXPLICIT = 1; -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.IMPLICIT: const $name: FeatureSet_FieldPresence.$localName = $number; -const IMPLICIT = 2; -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.LEGACY_REQUIRED: const $name: FeatureSet_FieldPresence.$localName = $number; -const LEGACY_REQUIRED = 3; -// bootstrap-inject google.protobuf.FeatureSet.RepeatedFieldEncoding.PACKED: const $name: FeatureSet_RepeatedFieldEncoding.$localName = $number; -const PACKED = 1; -// bootstrap-inject google.protobuf.FeatureSet.MessageEncoding.DELIMITED: const $name: FeatureSet_MessageEncoding.$localName = $number; -const DELIMITED = 2; -// bootstrap-inject google.protobuf.FeatureSet.EnumType.OPEN: const $name: FeatureSet_EnumType.$localName = $number; -const OPEN = 1; -// biome-ignore format: want this to read well -// bootstrap-inject defaults: EDITION_PROTO2 to EDITION_2024: export const minimumEdition: SupportedEdition = $minimumEdition, maximumEdition: SupportedEdition = $maximumEdition; -// generated from protoc v32.0 -export const minimumEdition = 998, maximumEdition = 1001; -const featureDefaults = { - // EDITION_PROTO2 - 998: { - fieldPresence: 1, // EXPLICIT, - enumType: 2, // CLOSED, - repeatedFieldEncoding: 2, // EXPANDED, - utf8Validation: 3, // NONE, - messageEncoding: 1, // LENGTH_PREFIXED, - jsonFormat: 2, // LEGACY_BEST_EFFORT, - enforceNamingStyle: 2, // STYLE_LEGACY, - defaultSymbolVisibility: 1, // EXPORT_ALL, - }, - // EDITION_PROTO3 - 999: { - fieldPresence: 2, // IMPLICIT, - enumType: 1, // OPEN, - repeatedFieldEncoding: 1, // PACKED, - utf8Validation: 2, // VERIFY, - messageEncoding: 1, // LENGTH_PREFIXED, - jsonFormat: 1, // ALLOW, - enforceNamingStyle: 2, // STYLE_LEGACY, - defaultSymbolVisibility: 1, // EXPORT_ALL, - }, - // EDITION_2023 - 1000: { - fieldPresence: 1, // EXPLICIT, - enumType: 1, // OPEN, - repeatedFieldEncoding: 1, // PACKED, - utf8Validation: 2, // VERIFY, - messageEncoding: 1, // LENGTH_PREFIXED, - jsonFormat: 1, // ALLOW, - enforceNamingStyle: 2, // STYLE_LEGACY, - defaultSymbolVisibility: 1, // EXPORT_ALL, - }, - // EDITION_2024 - 1001: { - fieldPresence: 1, // EXPLICIT, - enumType: 1, // OPEN, - repeatedFieldEncoding: 1, // PACKED, - utf8Validation: 2, // VERIFY, - messageEncoding: 1, // LENGTH_PREFIXED, - jsonFormat: 1, // ALLOW, - enforceNamingStyle: 1, // STYLE2024, - defaultSymbolVisibility: 2, // EXPORT_TOP_LEVEL, - }, -}; -/** - * Create a descriptor for a file, add it to the registry. - */ -function addFile(proto, reg) { - var _a, _b; - const file = { - kind: "file", - proto, - deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false, - edition: getFileEdition(proto), - name: proto.name.replace(/\.proto$/, ""), - dependencies: findFileDependencies(proto, reg), - enums: [], - messages: [], - extensions: [], - services: [], - toString() { - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- we asserted above - return `file ${proto.name}`; - }, - }; - const mapEntriesStore = new Map(); - const mapEntries = { - get(typeName) { - return mapEntriesStore.get(typeName); - }, - add(desc) { - var _a; - assert(((_a = desc.proto.options) === null || _a === void 0 ? void 0 : _a.mapEntry) === true); - mapEntriesStore.set(desc.typeName, desc); - }, - }; - for (const enumProto of proto.enumType) { - addEnum(enumProto, file, undefined, reg); - } - for (const messageProto of proto.messageType) { - addMessage(messageProto, file, undefined, reg, mapEntries); - } - for (const serviceProto of proto.service) { - addService(serviceProto, file, reg); - } - addExtensions(file, reg); - for (const mapEntry of mapEntriesStore.values()) { - // to create a map field, we need access to the map entry's fields - addFields(mapEntry, reg, mapEntries); - } - for (const message of file.messages) { - addFields(message, reg, mapEntries); - addExtensions(message, reg); - } - reg.addFile(file, true); -} -/** - * Create descriptors for extensions, and add them to the message / file, - * and to our cart. - * Recurses into nested types. - */ -function addExtensions(desc, reg) { - switch (desc.kind) { - case "file": - for (const proto of desc.proto.extension) { - const ext = newField(proto, desc, reg); - desc.extensions.push(ext); - reg.add(ext); - } - break; - case "message": - for (const proto of desc.proto.extension) { - const ext = newField(proto, desc, reg); - desc.nestedExtensions.push(ext); - reg.add(ext); - } - for (const message of desc.nestedMessages) { - addExtensions(message, reg); - } - break; - } -} -/** - * Create descriptors for fields and oneof groups, and add them to the message. - * Recurses into nested types. - */ -function addFields(message, reg, mapEntries) { - const allOneofs = message.proto.oneofDecl.map((proto) => newOneof(proto, message)); - const oneofsSeen = new Set(); - for (const proto of message.proto.field) { - const oneof = findOneof(proto, allOneofs); - const field = newField(proto, message, reg, oneof, mapEntries); - message.fields.push(field); - message.field[field.localName] = field; - if (oneof === undefined) { - message.members.push(field); - } - else { - oneof.fields.push(field); - if (!oneofsSeen.has(oneof)) { - oneofsSeen.add(oneof); - message.members.push(oneof); - } - } - } - for (const oneof of allOneofs.filter((o) => oneofsSeen.has(o))) { - message.oneofs.push(oneof); - } - for (const child of message.nestedMessages) { - addFields(child, reg, mapEntries); - } -} -/** - * Create a descriptor for an enumeration, and add it our cart and to the - * parent type, if any. - */ -function addEnum(proto, file, parent, reg) { - var _a, _b, _c, _d, _e; - const sharedPrefix = findEnumSharedPrefix(proto.name, proto.value); - const desc = { - kind: "enum", - proto, - deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false, - file, - parent, - open: true, - name: proto.name, - typeName: makeTypeName(proto, parent, file), - value: {}, - values: [], - sharedPrefix, - toString() { - return `enum ${this.typeName}`; - }, - }; - desc.open = isEnumOpen(desc); - reg.add(desc); - for (const p of proto.value) { - const name = p.name; - desc.values.push( - // biome-ignore lint/suspicious/noAssignInExpressions: no - (desc.value[p.number] = { - kind: "enum_value", - proto: p, - deprecated: (_d = (_c = p.options) === null || _c === void 0 ? void 0 : _c.deprecated) !== null && _d !== void 0 ? _d : false, - parent: desc, - name, - localName: safeObjectProperty(sharedPrefix == undefined - ? name - : name.substring(sharedPrefix.length)), - number: p.number, - toString() { - return `enum value ${desc.typeName}.${name}`; - }, - })); - } - ((_e = parent === null || parent === void 0 ? void 0 : parent.nestedEnums) !== null && _e !== void 0 ? _e : file.enums).push(desc); -} -/** - * Create a descriptor for a message, including nested types, and add it to our - * cart. Note that this does not create descriptors fields. - */ -function addMessage(proto, file, parent, reg, mapEntries) { - var _a, _b, _c, _d; - const desc = { - kind: "message", - proto, - deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false, - file, - parent, - name: proto.name, - typeName: makeTypeName(proto, parent, file), - fields: [], - field: {}, - oneofs: [], - members: [], - nestedEnums: [], - nestedMessages: [], - nestedExtensions: [], - toString() { - return `message ${this.typeName}`; - }, - }; - if (((_c = proto.options) === null || _c === void 0 ? void 0 : _c.mapEntry) === true) { - mapEntries.add(desc); - } - else { - ((_d = parent === null || parent === void 0 ? void 0 : parent.nestedMessages) !== null && _d !== void 0 ? _d : file.messages).push(desc); - reg.add(desc); - } - for (const enumProto of proto.enumType) { - addEnum(enumProto, file, desc, reg); - } - for (const messageProto of proto.nestedType) { - addMessage(messageProto, file, desc, reg, mapEntries); - } -} -/** - * Create a descriptor for a service, including methods, and add it to our - * cart. - */ -function addService(proto, file, reg) { - var _a, _b; - const desc = { - kind: "service", - proto, - deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false, - file, - name: proto.name, - typeName: makeTypeName(proto, undefined, file), - methods: [], - method: {}, - toString() { - return `service ${this.typeName}`; - }, - }; - file.services.push(desc); - reg.add(desc); - for (const methodProto of proto.method) { - const method = newMethod(methodProto, desc, reg); - desc.methods.push(method); - desc.method[method.localName] = method; - } -} -/** - * Create a descriptor for a method. - */ -function newMethod(proto, parent, reg) { - var _a, _b, _c, _d; - let methodKind; - if (proto.clientStreaming && proto.serverStreaming) { - methodKind = "bidi_streaming"; - } - else if (proto.clientStreaming) { - methodKind = "client_streaming"; - } - else if (proto.serverStreaming) { - methodKind = "server_streaming"; - } - else { - methodKind = "unary"; - } - const input = reg.getMessage(trimLeadingDot(proto.inputType)); - const output = reg.getMessage(trimLeadingDot(proto.outputType)); - assert(input, `invalid MethodDescriptorProto: input_type ${proto.inputType} not found`); - assert(output, `invalid MethodDescriptorProto: output_type ${proto.inputType} not found`); - const name = proto.name; - return { - kind: "rpc", - proto, - deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false, - parent, - name, - localName: safeObjectProperty(name.length - ? safeObjectProperty(name[0].toLowerCase() + name.substring(1)) - : name), - methodKind, - input, - output, - idempotency: (_d = (_c = proto.options) === null || _c === void 0 ? void 0 : _c.idempotencyLevel) !== null && _d !== void 0 ? _d : IDEMPOTENCY_UNKNOWN, - toString() { - return `rpc ${parent.typeName}.${name}`; - }, - }; -} -/** - * Create a descriptor for a oneof group. - */ -function newOneof(proto, parent) { - return { - kind: "oneof", - proto, - deprecated: false, - parent, - fields: [], - name: proto.name, - localName: safeObjectProperty(protoCamelCase(proto.name)), - toString() { - return `oneof ${parent.typeName}.${this.name}`; - }, - }; -} -function newField(proto, parentOrFile, reg, oneof, mapEntries) { - var _a, _b, _c; - const isExtension = mapEntries === undefined; - const field = { - kind: "field", - proto, - deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false, - name: proto.name, - number: proto.number, - scalar: undefined, - message: undefined, - enum: undefined, - presence: getFieldPresence(proto, oneof, isExtension, parentOrFile), - listKind: undefined, - mapKind: undefined, - mapKey: undefined, - delimitedEncoding: undefined, - packed: undefined, - longAsString: false, - getDefaultValue: undefined, - }; - if (isExtension) { - // extension field - const file = parentOrFile.kind == "file" ? parentOrFile : parentOrFile.file; - const parent = parentOrFile.kind == "file" ? undefined : parentOrFile; - const typeName = makeTypeName(proto, parent, file); - field.kind = "extension"; - field.file = file; - field.parent = parent; - field.oneof = undefined; - field.typeName = typeName; - field.jsonName = `[${typeName}]`; // option json_name is not allowed on extension fields - field.toString = () => `extension ${typeName}`; - const extendee = reg.getMessage(trimLeadingDot(proto.extendee)); - assert(extendee, `invalid FieldDescriptorProto: extendee ${proto.extendee} not found`); - field.extendee = extendee; - } - else { - // regular field - const parent = parentOrFile; - assert(parent.kind == "message"); - field.parent = parent; - field.oneof = oneof; - field.localName = oneof - ? protoCamelCase(proto.name) - : safeObjectProperty(protoCamelCase(proto.name)); - field.jsonName = proto.jsonName; - field.toString = () => `field ${parent.typeName}.${proto.name}`; - } - const label = proto.label; - const type = proto.type; - const jstype = (_c = proto.options) === null || _c === void 0 ? void 0 : _c.jstype; - if (label === LABEL_REPEATED) { - // list or map field - const mapEntry = type == TYPE_MESSAGE - ? mapEntries === null || mapEntries === void 0 ? void 0 : mapEntries.get(trimLeadingDot(proto.typeName)) - : undefined; - if (mapEntry) { - // map field - field.fieldKind = "map"; - const { key, value } = findMapEntryFields(mapEntry); - field.mapKey = key.scalar; - field.mapKind = value.fieldKind; - field.message = value.message; - field.delimitedEncoding = false; // map fields are always LENGTH_PREFIXED - field.enum = value.enum; - field.scalar = value.scalar; - return field; - } - // list field - field.fieldKind = "list"; - switch (type) { - case TYPE_MESSAGE: - case TYPE_GROUP: - field.listKind = "message"; - field.message = reg.getMessage(trimLeadingDot(proto.typeName)); - assert(field.message); - field.delimitedEncoding = isDelimitedEncoding(proto, parentOrFile); - break; - case TYPE_ENUM: - field.listKind = "enum"; - field.enum = reg.getEnum(trimLeadingDot(proto.typeName)); - assert(field.enum); - break; - default: - field.listKind = "scalar"; - field.scalar = type; - field.longAsString = jstype == JS_STRING; - break; - } - field.packed = isPackedField(proto, parentOrFile); - return field; - } - // singular - switch (type) { - case TYPE_MESSAGE: - case TYPE_GROUP: - field.fieldKind = "message"; - field.message = reg.getMessage(trimLeadingDot(proto.typeName)); - assert(field.message, `invalid FieldDescriptorProto: type_name ${proto.typeName} not found`); - field.delimitedEncoding = isDelimitedEncoding(proto, parentOrFile); - field.getDefaultValue = () => undefined; - break; - case TYPE_ENUM: { - const enumeration = reg.getEnum(trimLeadingDot(proto.typeName)); - assert(enumeration !== undefined, `invalid FieldDescriptorProto: type_name ${proto.typeName} not found`); - field.fieldKind = "enum"; - field.enum = reg.getEnum(trimLeadingDot(proto.typeName)); - field.getDefaultValue = () => { - return unsafeIsSetExplicit(proto, "defaultValue") - ? parseTextFormatEnumValue(enumeration, proto.defaultValue) - : undefined; - }; - break; - } - default: { - field.fieldKind = "scalar"; - field.scalar = type; - field.longAsString = jstype == JS_STRING; - field.getDefaultValue = () => { - return unsafeIsSetExplicit(proto, "defaultValue") - ? parseTextFormatScalarValue(type, proto.defaultValue) - : undefined; - }; - break; - } - } - return field; -} -/** - * Parse the "syntax" and "edition" fields, returning one of the supported - * editions. - */ -function getFileEdition(proto) { - switch (proto.syntax) { - case "": - case "proto2": - return EDITION_PROTO2; - case "proto3": - return EDITION_PROTO3; - case "editions": - if (proto.edition in featureDefaults) { - return proto.edition; - } - throw new Error(`${proto.name}: unsupported edition`); - default: - throw new Error(`${proto.name}: unsupported syntax "${proto.syntax}"`); - } -} -/** - * Resolve dependencies of FileDescriptorProto to DescFile. - */ -function findFileDependencies(proto, reg) { - return proto.dependency.map((wantName) => { - const dep = reg.getFile(wantName); - if (!dep) { - throw new Error(`Cannot find ${wantName}, imported by ${proto.name}`); - } - return dep; - }); -} -/** - * Finds a prefix shared by enum values, for example `my_enum_` for - * `enum MyEnum {MY_ENUM_A=0; MY_ENUM_B=1;}`. - */ -function findEnumSharedPrefix(enumName, values) { - const prefix = camelToSnakeCase(enumName) + "_"; - for (const value of values) { - if (!value.name.toLowerCase().startsWith(prefix)) { - return undefined; - } - const shortName = value.name.substring(prefix.length); - if (shortName.length == 0) { - return undefined; - } - if (/^\d/.test(shortName)) { - // identifiers must not start with numbers - return undefined; - } - } - return prefix; -} -/** - * Converts lowerCamelCase or UpperCamelCase into lower_snake_case. - * This is used to find shared prefixes in an enum. - */ -function camelToSnakeCase(camel) { - return (camel.substring(0, 1) + camel.substring(1).replace(/[A-Z]/g, (c) => "_" + c)).toLowerCase(); -} -/** - * Create a fully qualified name for a protobuf type or extension field. - * - * The fully qualified name for messages, enumerations, and services is - * constructed by concatenating the package name (if present), parent - * message names (for nested types), and the type name. We omit the leading - * dot added by protobuf compilers. Examples: - * - mypackage.MyMessage - * - mypackage.MyMessage.NestedMessage - * - * The fully qualified name for extension fields is constructed by - * concatenating the package name (if present), parent message names (for - * extensions declared within a message), and the field name. Examples: - * - mypackage.extfield - * - mypackage.MyMessage.extfield - */ -function makeTypeName(proto, parent, file) { - let typeName; - if (parent) { - typeName = `${parent.typeName}.${proto.name}`; - } - else if (file.proto.package.length > 0) { - typeName = `${file.proto.package}.${proto.name}`; - } - else { - typeName = `${proto.name}`; - } - return typeName; -} -/** - * Remove the leading dot from a fully qualified type name. - */ -function trimLeadingDot(typeName) { - return typeName.startsWith(".") ? typeName.substring(1) : typeName; -} -/** - * Did the user put the field in a oneof group? - * Synthetic oneofs for proto3 optionals are ignored. - */ -function findOneof(proto, allOneofs) { - if (!unsafeIsSetExplicit(proto, "oneofIndex")) { - return undefined; - } - if (proto.proto3Optional) { - return undefined; - } - const oneof = allOneofs[proto.oneofIndex]; - assert(oneof, `invalid FieldDescriptorProto: oneof #${proto.oneofIndex} for field #${proto.number} not found`); - return oneof; -} -/** - * Presence of the field. - * See https://protobuf.dev/programming-guides/field_presence/ - */ -function getFieldPresence(proto, oneof, isExtension, parent) { - if (proto.label == LABEL_REQUIRED) { - // proto2 required is LEGACY_REQUIRED - return LEGACY_REQUIRED; - } - if (proto.label == LABEL_REPEATED) { - // repeated fields (including maps) do not track presence - return IMPLICIT; - } - if (!!oneof || proto.proto3Optional) { - // oneof is always explicit - return EXPLICIT; - } - if (isExtension) { - // extensions always track presence - return EXPLICIT; - } - const resolved = resolveFeature("fieldPresence", { proto, parent }); - if (resolved == IMPLICIT && - (proto.type == TYPE_MESSAGE || proto.type == TYPE_GROUP)) { - // singular message field cannot be implicit - return EXPLICIT; - } - return resolved; -} -/** - * Pack this repeated field? - */ -function isPackedField(proto, parent) { - if (proto.label != LABEL_REPEATED) { - return false; - } - switch (proto.type) { - case TYPE_STRING: - case TYPE_BYTES: - case TYPE_GROUP: - case TYPE_MESSAGE: - // length-delimited types cannot be packed - return false; - } - const o = proto.options; - if (o && unsafeIsSetExplicit(o, "packed")) { - // prefer the field option over edition features - return o.packed; - } - return (PACKED == - resolveFeature("repeatedFieldEncoding", { - proto, - parent, - })); -} -/** - * Find the key and value fields of a synthetic map entry message. - */ -function findMapEntryFields(mapEntry) { - const key = mapEntry.fields.find((f) => f.number === 1); - const value = mapEntry.fields.find((f) => f.number === 2); - assert(key && - key.fieldKind == "scalar" && - key.scalar != ScalarType.BYTES && - key.scalar != ScalarType.FLOAT && - key.scalar != ScalarType.DOUBLE && - value && - value.fieldKind != "list" && - value.fieldKind != "map"); - return { key, value }; -} -/** - * Enumerations can be open or closed. - * See https://protobuf.dev/programming-guides/enum/ - */ -function isEnumOpen(desc) { - var _a; - return (OPEN == - resolveFeature("enumType", { - proto: desc.proto, - parent: (_a = desc.parent) !== null && _a !== void 0 ? _a : desc.file, - })); -} -/** - * Encode the message delimited (a.k.a. proto2 group encoding), or - * length-prefixed? - */ -function isDelimitedEncoding(proto, parent) { - if (proto.type == TYPE_GROUP) { - return true; - } - return (DELIMITED == - resolveFeature("messageEncoding", { - proto, - parent, - })); -} -function resolveFeature(name, ref) { - var _a, _b; - const featureSet = (_a = ref.proto.options) === null || _a === void 0 ? void 0 : _a.features; - if (featureSet) { - const val = featureSet[name]; - if (val != 0) { - return val; - } - } - if ("kind" in ref) { - if (ref.kind == "message") { - return resolveFeature(name, (_b = ref.parent) !== null && _b !== void 0 ? _b : ref.file); - } - const editionDefaults = featureDefaults[ref.edition]; - if (!editionDefaults) { - throw new Error(`feature default for edition ${ref.edition} not found`); - } - return editionDefaults[name]; - } - return resolveFeature(name, ref.parent); -} -/** - * Assert that condition is truthy or throw error (with message) - */ -function assert(condition, msg) { - if (!condition) { - throw new Error(msg); - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/to-binary.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/to-binary.d.ts deleted file mode 100644 index 236ed49..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/to-binary.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { MessageShape } from "./types.js"; -import { BinaryWriter } from "./wire/binary-encoding.js"; -import { type DescField, type DescMessage } from "./descriptors.js"; -import type { ReflectMessage } from "./reflect/index.js"; -/** - * Options for serializing to binary data. - * - * V1 also had the option `readerFactory` for using a custom implementation to - * encode to binary. - */ -export interface BinaryWriteOptions { - /** - * Include unknown fields in the serialized output? The default behavior - * is to retain unknown fields and include them in the serialized output. - * - * For more details see https://developers.google.com/protocol-buffers/docs/proto3#unknowns - */ - writeUnknownFields: boolean; -} -export declare function toBinary(schema: Desc, message: MessageShape, options?: Partial): Uint8Array; -/** - * @private - */ -export declare function writeField(writer: BinaryWriter, opts: BinaryWriteOptions, msg: ReflectMessage, field: DescField): void; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js b/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js deleted file mode 100644 index f905a43..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { reflect } from "./reflect/reflect.js"; -import { BinaryWriter, WireType } from "./wire/binary-encoding.js"; -import { ScalarType } from "./descriptors.js"; -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.LEGACY_REQUIRED: const $name: FeatureSet_FieldPresence.$localName = $number; -const LEGACY_REQUIRED = 3; -// Default options for serializing binary data. -const writeDefaults = { - writeUnknownFields: true, -}; -function makeWriteOptions(options) { - return options ? Object.assign(Object.assign({}, writeDefaults), options) : writeDefaults; -} -export function toBinary(schema, message, options) { - return writeFields(new BinaryWriter(), makeWriteOptions(options), reflect(schema, message)).finish(); -} -function writeFields(writer, opts, msg) { - var _a; - for (const f of msg.sortedFields) { - if (!msg.isSet(f)) { - if (f.presence == LEGACY_REQUIRED) { - throw new Error(`cannot encode ${f} to binary: required field not set`); - } - continue; - } - writeField(writer, opts, msg, f); - } - if (opts.writeUnknownFields) { - for (const { no, wireType, data } of (_a = msg.getUnknown()) !== null && _a !== void 0 ? _a : []) { - writer.tag(no, wireType).raw(data); - } - } - return writer; -} -/** - * @private - */ -export function writeField(writer, opts, msg, field) { - var _a; - switch (field.fieldKind) { - case "scalar": - case "enum": - writeScalar(writer, msg.desc.typeName, field.name, (_a = field.scalar) !== null && _a !== void 0 ? _a : ScalarType.INT32, field.number, msg.get(field)); - break; - case "list": - writeListField(writer, opts, field, msg.get(field)); - break; - case "message": - writeMessageField(writer, opts, field, msg.get(field)); - break; - case "map": - for (const [key, val] of msg.get(field)) { - writeMapEntry(writer, opts, field, key, val); - } - break; - } -} -function writeScalar(writer, msgName, fieldName, scalarType, fieldNo, value) { - writeScalarValue(writer.tag(fieldNo, writeTypeOfScalar(scalarType)), msgName, fieldName, scalarType, value); -} -function writeMessageField(writer, opts, field, message) { - if (field.delimitedEncoding) { - writeFields(writer.tag(field.number, WireType.StartGroup), opts, message).tag(field.number, WireType.EndGroup); - } - else { - writeFields(writer.tag(field.number, WireType.LengthDelimited).fork(), opts, message).join(); - } -} -function writeListField(writer, opts, field, list) { - var _a; - if (field.listKind == "message") { - for (const item of list) { - writeMessageField(writer, opts, field, item); - } - return; - } - const scalarType = (_a = field.scalar) !== null && _a !== void 0 ? _a : ScalarType.INT32; - if (field.packed) { - if (!list.size) { - return; - } - writer.tag(field.number, WireType.LengthDelimited).fork(); - for (const item of list) { - writeScalarValue(writer, field.parent.typeName, field.name, scalarType, item); - } - writer.join(); - return; - } - for (const item of list) { - writeScalar(writer, field.parent.typeName, field.name, scalarType, field.number, item); - } -} -function writeMapEntry(writer, opts, field, key, value) { - var _a; - writer.tag(field.number, WireType.LengthDelimited).fork(); - // write key, expecting key field number = 1 - writeScalar(writer, field.parent.typeName, field.name, field.mapKey, 1, key); - // write value, expecting value field number = 2 - switch (field.mapKind) { - case "scalar": - case "enum": - writeScalar(writer, field.parent.typeName, field.name, (_a = field.scalar) !== null && _a !== void 0 ? _a : ScalarType.INT32, 2, value); - break; - case "message": - writeFields(writer.tag(2, WireType.LengthDelimited).fork(), opts, value).join(); - break; - } - writer.join(); -} -function writeScalarValue(writer, msgName, fieldName, type, value) { - try { - switch (type) { - case ScalarType.STRING: - writer.string(value); - break; - case ScalarType.BOOL: - writer.bool(value); - break; - case ScalarType.DOUBLE: - writer.double(value); - break; - case ScalarType.FLOAT: - writer.float(value); - break; - case ScalarType.INT32: - writer.int32(value); - break; - case ScalarType.INT64: - writer.int64(value); - break; - case ScalarType.UINT64: - writer.uint64(value); - break; - case ScalarType.FIXED64: - writer.fixed64(value); - break; - case ScalarType.BYTES: - writer.bytes(value); - break; - case ScalarType.FIXED32: - writer.fixed32(value); - break; - case ScalarType.SFIXED32: - writer.sfixed32(value); - break; - case ScalarType.SFIXED64: - writer.sfixed64(value); - break; - case ScalarType.SINT64: - writer.sint64(value); - break; - case ScalarType.UINT32: - writer.uint32(value); - break; - case ScalarType.SINT32: - writer.sint32(value); - break; - } - } - catch (e) { - if (e instanceof Error) { - throw new Error(`cannot encode field ${msgName}.${fieldName} to binary: ${e.message}`); - } - throw e; - } -} -function writeTypeOfScalar(type) { - switch (type) { - case ScalarType.BYTES: - case ScalarType.STRING: - return WireType.LengthDelimited; - case ScalarType.DOUBLE: - case ScalarType.FIXED64: - case ScalarType.SFIXED64: - return WireType.Bit64; - case ScalarType.FIXED32: - case ScalarType.SFIXED32: - case ScalarType.FLOAT: - return WireType.Bit32; - default: - return WireType.Varint; - } -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/to-json.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/to-json.d.ts deleted file mode 100644 index f15b9b5..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/to-json.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { type DescEnum, type DescMessage } from "./descriptors.js"; -import type { JsonValue } from "./json-value.js"; -import type { Registry } from "./registry.js"; -import type { EnumJsonType, EnumShape, MessageJsonType, MessageShape } from "./types.js"; -/** - * Options for serializing to JSON. - */ -export interface JsonWriteOptions { - /** - * By default, fields with implicit presence are not serialized if they are - * unset. For example, an empty list field or a proto3 int32 field with 0 is - * not serialized. With this option enabled, such fields are included in the - * output. - */ - alwaysEmitImplicit: boolean; - /** - * Emit enum values as integers instead of strings: The name of an enum - * value is used by default in JSON output. An option may be provided to - * use the numeric value of the enum value instead. - */ - enumAsInteger: boolean; - /** - * Use proto field name instead of lowerCamelCase name: By default proto3 - * JSON printer should convert the field name to lowerCamelCase and use - * that as the JSON name. An implementation may provide an option to use - * proto field name as the JSON name instead. Proto3 JSON parsers are - * required to accept both the converted lowerCamelCase name and the proto - * field name. - */ - useProtoFieldName: boolean; - /** - * This option is required to write `google.protobuf.Any` and extensions - * to JSON format. - */ - registry?: Registry; -} -/** - * Options for serializing to JSON. - */ -export interface JsonWriteStringOptions extends JsonWriteOptions { - /** - * Format JSON with indentation. Indicates the number of space characters to - * be used as indentation. - * - * This option is passed to JSON.stringify as `space`. - */ - prettySpaces: number; -} -/** - * Serialize the message to a JSON value, a JavaScript value that can be - * passed to JSON.stringify(). - */ -export declare function toJson | undefined = undefined>(schema: Desc, message: MessageShape, options?: Opts): ToJson; -type ToJson> = Opts extends undefined | { - alwaysEmitImplicit?: false; - enumAsInteger?: false; - useProtoFieldName?: false; -} ? MessageJsonType : JsonValue; -/** - * Serialize the message to a JSON string. - */ -export declare function toJsonString(schema: Desc, message: MessageShape, options?: Partial): string; -/** - * Serialize a single enum value to JSON. - */ -export declare function enumToJson(descEnum: Desc, value: EnumShape): EnumJsonType; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/to-json.js b/node_modules/@bufbuild/protobuf/dist/esm/to-json.js deleted file mode 100644 index e1e3551..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +++ /dev/null @@ -1,382 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { ScalarType, } from "./descriptors.js"; -import { protoCamelCase } from "./reflect/names.js"; -import { reflect } from "./reflect/reflect.js"; -import { anyUnpack } from "./wkt/index.js"; -import { isWrapperDesc } from "./wkt/wrappers.js"; -import { base64Encode } from "./wire/index.js"; -import { createExtensionContainer, getExtension } from "./extensions.js"; -import { checkField, formatVal } from "./reflect/reflect-check.js"; -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.LEGACY_REQUIRED: const $name: FeatureSet_FieldPresence.$localName = $number; -const LEGACY_REQUIRED = 3; -// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.IMPLICIT: const $name: FeatureSet_FieldPresence.$localName = $number; -const IMPLICIT = 2; -// Default options for serializing to JSON. -const jsonWriteDefaults = { - alwaysEmitImplicit: false, - enumAsInteger: false, - useProtoFieldName: false, -}; -function makeWriteOptions(options) { - return options ? Object.assign(Object.assign({}, jsonWriteDefaults), options) : jsonWriteDefaults; -} -/** - * Serialize the message to a JSON value, a JavaScript value that can be - * passed to JSON.stringify(). - */ -export function toJson(schema, message, options) { - return reflectToJson(reflect(schema, message), makeWriteOptions(options)); -} -/** - * Serialize the message to a JSON string. - */ -export function toJsonString(schema, message, options) { - var _a; - const jsonValue = toJson(schema, message, options); - return JSON.stringify(jsonValue, null, (_a = options === null || options === void 0 ? void 0 : options.prettySpaces) !== null && _a !== void 0 ? _a : 0); -} -/** - * Serialize a single enum value to JSON. - */ -export function enumToJson(descEnum, value) { - var _a; - if (descEnum.typeName == "google.protobuf.NullValue") { - return null; - } - const name = (_a = descEnum.value[value]) === null || _a === void 0 ? void 0 : _a.name; - if (name === undefined) { - throw new Error(`${value} is not a value in ${descEnum}`); - } - return name; -} -function reflectToJson(msg, opts) { - var _a; - const wktJson = tryWktToJson(msg, opts); - if (wktJson !== undefined) - return wktJson; - const json = {}; - for (const f of msg.sortedFields) { - if (!msg.isSet(f)) { - if (f.presence == LEGACY_REQUIRED) { - throw new Error(`cannot encode ${f} to JSON: required field not set`); - } - if (!opts.alwaysEmitImplicit || f.presence !== IMPLICIT) { - // Fields with implicit presence omit zero values (e.g. empty string) by default - continue; - } - } - const jsonValue = fieldToJson(f, msg.get(f), opts); - if (jsonValue !== undefined) { - json[jsonName(f, opts)] = jsonValue; - } - } - if (opts.registry) { - const tagSeen = new Set(); - for (const { no } of (_a = msg.getUnknown()) !== null && _a !== void 0 ? _a : []) { - // Same tag can appear multiple times, so we - // keep track and skip identical ones. - if (!tagSeen.has(no)) { - tagSeen.add(no); - const extension = opts.registry.getExtensionFor(msg.desc, no); - if (!extension) { - continue; - } - const value = getExtension(msg.message, extension); - const [container, field] = createExtensionContainer(extension, value); - const jsonValue = fieldToJson(field, container.get(field), opts); - if (jsonValue !== undefined) { - json[extension.jsonName] = jsonValue; - } - } - } - } - return json; -} -function fieldToJson(f, val, opts) { - switch (f.fieldKind) { - case "scalar": - return scalarToJson(f, val); - case "message": - return reflectToJson(val, opts); - case "enum": - return enumToJsonInternal(f.enum, val, opts.enumAsInteger); - case "list": - return listToJson(val, opts); - case "map": - return mapToJson(val, opts); - } -} -function mapToJson(map, opts) { - const f = map.field(); - const jsonObj = {}; - switch (f.mapKind) { - case "scalar": - for (const [entryKey, entryValue] of map) { - jsonObj[entryKey] = scalarToJson(f, entryValue); - } - break; - case "message": - for (const [entryKey, entryValue] of map) { - jsonObj[entryKey] = reflectToJson(entryValue, opts); - } - break; - case "enum": - for (const [entryKey, entryValue] of map) { - jsonObj[entryKey] = enumToJsonInternal(f.enum, entryValue, opts.enumAsInteger); - } - break; - } - return opts.alwaysEmitImplicit || map.size > 0 ? jsonObj : undefined; -} -function listToJson(list, opts) { - const f = list.field(); - const jsonArr = []; - switch (f.listKind) { - case "scalar": - for (const item of list) { - jsonArr.push(scalarToJson(f, item)); - } - break; - case "enum": - for (const item of list) { - jsonArr.push(enumToJsonInternal(f.enum, item, opts.enumAsInteger)); - } - break; - case "message": - for (const item of list) { - jsonArr.push(reflectToJson(item, opts)); - } - break; - } - return opts.alwaysEmitImplicit || jsonArr.length > 0 ? jsonArr : undefined; -} -function enumToJsonInternal(desc, value, enumAsInteger) { - var _a; - if (typeof value != "number") { - throw new Error(`cannot encode ${desc} to JSON: expected number, got ${formatVal(value)}`); - } - if (desc.typeName == "google.protobuf.NullValue") { - return null; - } - if (enumAsInteger) { - return value; - } - const val = desc.value[value]; - return (_a = val === null || val === void 0 ? void 0 : val.name) !== null && _a !== void 0 ? _a : value; // if we don't know the enum value, just return the number -} -function scalarToJson(field, value) { - var _a, _b, _c, _d, _e, _f; - switch (field.scalar) { - // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted. - case ScalarType.INT32: - case ScalarType.SFIXED32: - case ScalarType.SINT32: - case ScalarType.FIXED32: - case ScalarType.UINT32: - if (typeof value != "number") { - throw new Error(`cannot encode ${field} to JSON: ${(_a = checkField(field, value)) === null || _a === void 0 ? void 0 : _a.message}`); - } - return value; - // float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity". - // Either numbers or strings are accepted. Exponent notation is also accepted. - case ScalarType.FLOAT: - case ScalarType.DOUBLE: // eslint-disable-line no-fallthrough - if (typeof value != "number") { - throw new Error(`cannot encode ${field} to JSON: ${(_b = checkField(field, value)) === null || _b === void 0 ? void 0 : _b.message}`); - } - if (Number.isNaN(value)) - return "NaN"; - if (value === Number.POSITIVE_INFINITY) - return "Infinity"; - if (value === Number.NEGATIVE_INFINITY) - return "-Infinity"; - return value; - // string: - case ScalarType.STRING: - if (typeof value != "string") { - throw new Error(`cannot encode ${field} to JSON: ${(_c = checkField(field, value)) === null || _c === void 0 ? void 0 : _c.message}`); - } - return value; - // bool: - case ScalarType.BOOL: - if (typeof value != "boolean") { - throw new Error(`cannot encode ${field} to JSON: ${(_d = checkField(field, value)) === null || _d === void 0 ? void 0 : _d.message}`); - } - return value; - // JSON value will be a decimal string. Either numbers or strings are accepted. - case ScalarType.UINT64: - case ScalarType.FIXED64: - case ScalarType.INT64: - case ScalarType.SFIXED64: - case ScalarType.SINT64: - if (typeof value != "bigint" && typeof value != "string") { - throw new Error(`cannot encode ${field} to JSON: ${(_e = checkField(field, value)) === null || _e === void 0 ? void 0 : _e.message}`); - } - return value.toString(); - // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings. - // Either standard or URL-safe base64 encoding with/without paddings are accepted. - case ScalarType.BYTES: - if (value instanceof Uint8Array) { - return base64Encode(value); - } - throw new Error(`cannot encode ${field} to JSON: ${(_f = checkField(field, value)) === null || _f === void 0 ? void 0 : _f.message}`); - } -} -function jsonName(f, opts) { - return opts.useProtoFieldName ? f.name : f.jsonName; -} -// returns a json value if wkt, otherwise returns undefined. -function tryWktToJson(msg, opts) { - if (!msg.desc.typeName.startsWith("google.protobuf.")) { - return undefined; - } - switch (msg.desc.typeName) { - case "google.protobuf.Any": - return anyToJson(msg.message, opts); - case "google.protobuf.Timestamp": - return timestampToJson(msg.message); - case "google.protobuf.Duration": - return durationToJson(msg.message); - case "google.protobuf.FieldMask": - return fieldMaskToJson(msg.message); - case "google.protobuf.Struct": - return structToJson(msg.message); - case "google.protobuf.Value": - return valueToJson(msg.message); - case "google.protobuf.ListValue": - return listValueToJson(msg.message); - default: - if (isWrapperDesc(msg.desc)) { - const valueField = msg.desc.fields[0]; - return scalarToJson(valueField, msg.get(valueField)); - } - return undefined; - } -} -function anyToJson(val, opts) { - if (val.typeUrl === "") { - return {}; - } - const { registry } = opts; - let message; - let desc; - if (registry) { - message = anyUnpack(val, registry); - if (message) { - desc = registry.getMessage(message.$typeName); - } - } - if (!desc || !message) { - throw new Error(`cannot encode message ${val.$typeName} to JSON: "${val.typeUrl}" is not in the type registry`); - } - let json = reflectToJson(reflect(desc, message), opts); - if (desc.typeName.startsWith("google.protobuf.") || - json === null || - Array.isArray(json) || - typeof json !== "object") { - json = { value: json }; - } - json["@type"] = val.typeUrl; - return json; -} -function durationToJson(val) { - if (Number(val.seconds) > 315576000000 || - Number(val.seconds) < -315576000000) { - throw new Error(`cannot encode message ${val.$typeName} to JSON: value out of range`); - } - let text = val.seconds.toString(); - if (val.nanos !== 0) { - let nanosStr = Math.abs(val.nanos).toString(); - nanosStr = "0".repeat(9 - nanosStr.length) + nanosStr; - if (nanosStr.substring(3) === "000000") { - nanosStr = nanosStr.substring(0, 3); - } - else if (nanosStr.substring(6) === "000") { - nanosStr = nanosStr.substring(0, 6); - } - text += "." + nanosStr; - if (val.nanos < 0 && Number(val.seconds) == 0) { - text = "-" + text; - } - } - return text + "s"; -} -function fieldMaskToJson(val) { - return val.paths - .map((p) => { - if (p.match(/_[0-9]?_/g) || p.match(/[A-Z]/g)) { - throw new Error(`cannot encode message ${val.$typeName} to JSON: lowerCamelCase of path name "` + - p + - '" is irreversible'); - } - return protoCamelCase(p); - }) - .join(","); -} -function structToJson(val) { - const json = {}; - for (const [k, v] of Object.entries(val.fields)) { - json[k] = valueToJson(v); - } - return json; -} -function valueToJson(val) { - switch (val.kind.case) { - case "nullValue": - return null; - case "numberValue": - if (!Number.isFinite(val.kind.value)) { - throw new Error(`${val.$typeName} cannot be NaN or Infinity`); - } - return val.kind.value; - case "boolValue": - return val.kind.value; - case "stringValue": - return val.kind.value; - case "structValue": - return structToJson(val.kind.value); - case "listValue": - return listValueToJson(val.kind.value); - default: - throw new Error(`${val.$typeName} must have a value`); - } -} -function listValueToJson(val) { - return val.values.map(valueToJson); -} -function timestampToJson(val) { - const ms = Number(val.seconds) * 1000; - if (ms < Date.parse("0001-01-01T00:00:00Z") || - ms > Date.parse("9999-12-31T23:59:59Z")) { - throw new Error(`cannot encode message ${val.$typeName} to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`); - } - if (val.nanos < 0) { - throw new Error(`cannot encode message ${val.$typeName} to JSON: nanos must not be negative`); - } - let z = "Z"; - if (val.nanos > 0) { - const nanosStr = (val.nanos + 1000000000).toString().substring(1); - if (nanosStr.substring(3) === "000000") { - z = "." + nanosStr.substring(0, 3) + "Z"; - } - else if (nanosStr.substring(6) === "000") { - z = "." + nanosStr.substring(0, 6) + "Z"; - } - else { - z = "." + nanosStr + "Z"; - } - } - return new Date(ms).toISOString().replace(".000Z", z); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/types.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/types.d.ts deleted file mode 100644 index 93e4eff..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/types.d.ts +++ /dev/null @@ -1,128 +0,0 @@ -import type { GenEnum as GenEnumV1, GenExtension as GenExtensionV1, GenMessage as GenMessageV1 } from "./codegenv1/types.js"; -import type { GenEnum as GenEnumV2, GenExtension as GenExtensionV2, GenMessage as GenMessageV2 } from "./codegenv2/types.js"; -import type { DescEnum, DescExtension, DescMessage, DescMethod } from "./descriptors.js"; -import type { OneofADT } from "./reflect/guard.js"; -import type { WireType } from "./wire/index.js"; -import type { JsonValue } from "./json-value.js"; -/** - * The type `Message` contains the properties shared by all messages. - */ -export type Message = { - /** - * The fully qualified Protobuf type-name of the message. - */ - readonly $typeName: TypeName; - /** - * Unknown fields and extensions stored on the message. - */ - $unknown?: UnknownField[]; -}; -/** - * Extract the message type from a message descriptor. - */ -export type MessageShape = Desc extends GenMessageV1 ? RuntimeShapeV1 : Desc extends GenMessageV2 ? RuntimeShape : Message; -/** - * Extract the message JSON type from a message descriptor. - * - * JSON types are only available for code generated with the plugin option - * `json_types=true`. If JSON types are unavailable, this type falls back to the - * `JsonValue` type. - */ -export type MessageJsonType = Desc extends GenMessageV1 ? JsonTypeV1 : Desc extends GenMessageV2 ? JsonType : JsonValue; -/** - * Extract the message Valid type from a message descriptor. - * - * Valid types are only available for code generated with the plugin option - * `valid_types`. If Valid types are unavailable, this type falls back to the - * regular message shape. - */ -export type MessageValidType = Desc extends GenMessageV1 ? RuntimeShapeV1 : Desc extends GenMessageV2 ? ValidType : Desc extends GenMessageV2 ? RuntimeShape : Message; -/** - * Extract the init type from a message descriptor. - * The init type is accepted by the function create(). - */ -export type MessageInitShape = Desc extends GenMessageV1 ? MessageInit : Desc extends GenMessageV2 ? MessageInit : Record; -/** - * Extract the enum type of from an enum descriptor. - */ -export type EnumShape = Desc extends GenEnumV1 ? RuntimeShape : Desc extends GenEnumV2 ? RuntimeShape : number; -/** - * Extract the enum JSON type from a enum descriptor. - */ -export type EnumJsonType = Desc extends GenEnumV1 ? JsonType : Desc extends GenEnumV2 ? JsonType : string | null; -/** - * Extract the value type from an extension descriptor. - */ -export type ExtensionValueShape = Desc extends GenExtensionV1 ? RuntimeShape : Desc extends GenExtensionV2 ? RuntimeShape : unknown; -/** - * Extract the type of the extended message from an extension descriptor. - */ -export type Extendee = Desc extends GenExtensionV1 ? Extendee : Desc extends GenExtensionV2 ? Extendee : Message; -/** - * Unknown fields are fields that were not recognized during parsing, or - * extension. - */ -export type UnknownField = { - readonly no: number; - readonly wireType: WireType; - readonly data: Uint8Array; -}; -/** - * Describes a streaming RPC declaration. - */ -export type DescMethodStreaming = DescMethodClientStreaming | DescMethodServerStreaming | DescMethodBiDiStreaming; -/** - * Describes a unary RPC declaration. - */ -export type DescMethodUnary = DescMethodTyped<"unary", I, O>; -/** - * Describes a server streaming RPC declaration. - */ -export type DescMethodServerStreaming = DescMethodTyped<"server_streaming", I, O>; -/** - * Describes a client streaming RPC declaration. - */ -export type DescMethodClientStreaming = DescMethodTyped<"client_streaming", I, O>; -/** - * Describes a bidi streaming RPC declaration. - */ -export type DescMethodBiDiStreaming = DescMethodTyped<"bidi_streaming", I, O>; -/** - * The init type for a message, which makes all fields optional. - * The init type is accepted by the function create(). - */ -type MessageInit = T | { - [P in keyof T as P extends "$unknown" ? never : P]?: P extends "$typeName" ? never : FieldInit; -}; -type FieldInit = F extends (Date | Uint8Array | bigint | boolean | string | number) ? F : F extends Array ? Array> : F extends ReadonlyArray ? ReadonlyArray> : F extends Message ? MessageInit : F extends OneofSelectedMessage ? { - case: C; - value: MessageInit; -} : F extends OneofADT ? F : F extends MapWithMessage ? { - [key: string | number]: MessageInit; -} : F; -type MapWithMessage = { - [key: string | number]: V; -}; -type OneofSelectedMessage = { - case: K; - value: M; -}; -type DescMethodTyped = Omit & { - /** - * One of the four available method types. - */ - readonly methodKind: K; - /** - * The message type for requests. - */ - readonly input: I; - /** - * The message type for responses. - */ - readonly output: O; -}; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/types.js b/node_modules/@bufbuild/protobuf/dist/esm/types.js deleted file mode 100644 index f9c4479..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/types.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.d.ts deleted file mode 100644 index bbe3d7d..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Decodes a base64 string to a byte array. - * - * - ignores white-space, including line breaks and tabs - * - allows inner padding (can decode concatenated base64 strings) - * - does not require padding - * - understands base64url encoding: - * "-" instead of "+", - * "_" instead of "/", - * no padding - */ -export declare function base64Decode(base64Str: string): Uint8Array; -/** - * Encode a byte array to a base64 string. - * - * By default, this function uses the standard base64 encoding with padding. - * - * To encode without padding, use encoding = "std_raw". - * - * To encode with the URL encoding, use encoding = "url", which replaces the - * characters +/ by their URL-safe counterparts -_, and omits padding. - */ -export declare function base64Encode(bytes: Uint8Array, encoding?: "std" | "std_raw" | "url"): string; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js b/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js deleted file mode 100644 index 0defc5f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/** - * Decodes a base64 string to a byte array. - * - * - ignores white-space, including line breaks and tabs - * - allows inner padding (can decode concatenated base64 strings) - * - does not require padding - * - understands base64url encoding: - * "-" instead of "+", - * "_" instead of "/", - * no padding - */ -export function base64Decode(base64Str) { - const table = getDecodeTable(); - // estimate byte size, not accounting for inner padding and whitespace - let es = (base64Str.length * 3) / 4; - if (base64Str[base64Str.length - 2] == "=") - es -= 2; - else if (base64Str[base64Str.length - 1] == "=") - es -= 1; - let bytes = new Uint8Array(es), bytePos = 0, // position in byte array - groupPos = 0, // position in base64 group - b, // current byte - p = 0; // previous byte - for (let i = 0; i < base64Str.length; i++) { - b = table[base64Str.charCodeAt(i)]; - if (b === undefined) { - switch (base64Str[i]) { - // @ts-ignore TS7029: Fallthrough case in switch -- ignore instead of expect-error for compiler settings without noFallthroughCasesInSwitch: true - case "=": - groupPos = 0; // reset state when padding found - case "\n": - case "\r": - case "\t": - case " ": - continue; // skip white-space, and padding - default: - throw Error("invalid base64 string"); - } - } - switch (groupPos) { - case 0: - p = b; - groupPos = 1; - break; - case 1: - bytes[bytePos++] = (p << 2) | ((b & 48) >> 4); - p = b; - groupPos = 2; - break; - case 2: - bytes[bytePos++] = ((p & 15) << 4) | ((b & 60) >> 2); - p = b; - groupPos = 3; - break; - case 3: - bytes[bytePos++] = ((p & 3) << 6) | b; - groupPos = 0; - break; - } - } - if (groupPos == 1) - throw Error("invalid base64 string"); - return bytes.subarray(0, bytePos); -} -/** - * Encode a byte array to a base64 string. - * - * By default, this function uses the standard base64 encoding with padding. - * - * To encode without padding, use encoding = "std_raw". - * - * To encode with the URL encoding, use encoding = "url", which replaces the - * characters +/ by their URL-safe counterparts -_, and omits padding. - */ -export function base64Encode(bytes, encoding = "std") { - const table = getEncodeTable(encoding); - const pad = encoding == "std"; - let base64 = "", groupPos = 0, // position in base64 group - b, // current byte - p = 0; // carry over from previous byte - for (let i = 0; i < bytes.length; i++) { - b = bytes[i]; - switch (groupPos) { - case 0: - base64 += table[b >> 2]; - p = (b & 3) << 4; - groupPos = 1; - break; - case 1: - base64 += table[p | (b >> 4)]; - p = (b & 15) << 2; - groupPos = 2; - break; - case 2: - base64 += table[p | (b >> 6)]; - base64 += table[b & 63]; - groupPos = 0; - break; - } - } - // add output padding - if (groupPos) { - base64 += table[p]; - if (pad) { - base64 += "="; - if (groupPos == 1) - base64 += "="; - } - } - return base64; -} -// lookup table from base64 character to byte -let encodeTableStd; -let encodeTableUrl; -// lookup table from base64 character *code* to byte because lookup by number is fast -let decodeTable; -function getEncodeTable(encoding) { - if (!encodeTableStd) { - encodeTableStd = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""); - encodeTableUrl = encodeTableStd.slice(0, -2).concat("-", "_"); - } - return encoding == "url" - ? // biome-ignore lint/style/noNonNullAssertion: TS fails to narrow down - encodeTableUrl - : encodeTableStd; -} -function getDecodeTable() { - if (!decodeTable) { - decodeTable = []; - const encodeTable = getEncodeTable("std"); - for (let i = 0; i < encodeTable.length; i++) - decodeTable[encodeTable[i].charCodeAt(0)] = i; - // support base64url variants - decodeTable["-".charCodeAt(0)] = encodeTable.indexOf("+"); - decodeTable["_".charCodeAt(0)] = encodeTable.indexOf("/"); - } - return decodeTable; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.d.ts deleted file mode 100644 index 58f1a08..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.d.ts +++ /dev/null @@ -1,264 +0,0 @@ -/** - * Protobuf binary format wire types. - * - * A wire type provides just enough information to find the length of the - * following value. - * - * See https://developers.google.com/protocol-buffers/docs/encoding#structure - */ -export declare enum WireType { - /** - * Used for int32, int64, uint32, uint64, sint32, sint64, bool, enum - */ - Varint = 0, - /** - * Used for fixed64, sfixed64, double. - * Always 8 bytes with little-endian byte order. - */ - Bit64 = 1, - /** - * Used for string, bytes, embedded messages, packed repeated fields - * - * Only repeated numeric types (types which use the varint, 32-bit, - * or 64-bit wire types) can be packed. In proto3, such fields are - * packed by default. - */ - LengthDelimited = 2, - /** - * Start of a tag-delimited aggregate, such as a proto2 group, or a message - * in editions with message_encoding = DELIMITED. - */ - StartGroup = 3, - /** - * End of a tag-delimited aggregate. - */ - EndGroup = 4, - /** - * Used for fixed32, sfixed32, float. - * Always 4 bytes with little-endian byte order. - */ - Bit32 = 5 -} -/** - * Maximum value for a 32-bit floating point value (Protobuf FLOAT). - */ -export declare const FLOAT32_MAX = 3.4028234663852886e+38; -/** - * Minimum value for a 32-bit floating point value (Protobuf FLOAT). - */ -export declare const FLOAT32_MIN = -3.4028234663852886e+38; -/** - * Maximum value for an unsigned 32-bit integer (Protobuf UINT32, FIXED32). - */ -export declare const UINT32_MAX = 4294967295; -/** - * Maximum value for a signed 32-bit integer (Protobuf INT32, SFIXED32, SINT32). - */ -export declare const INT32_MAX = 2147483647; -/** - * Minimum value for a signed 32-bit integer (Protobuf INT32, SFIXED32, SINT32). - */ -export declare const INT32_MIN = -2147483648; -export declare class BinaryWriter { - private readonly encodeUtf8; - /** - * We cannot allocate a buffer for the entire output - * because we don't know it's size. - * - * So we collect smaller chunks of known size and - * concat them later. - * - * Use `raw()` to push data to this array. It will flush - * `buf` first. - */ - private chunks; - /** - * A growing buffer for byte values. If you don't know - * the size of the data you are writing, push to this - * array. - */ - protected buf: number[]; - /** - * Previous fork states. - */ - private stack; - constructor(encodeUtf8?: (text: string) => Uint8Array); - /** - * Return all bytes written and reset this writer. - */ - finish(): Uint8Array; - /** - * Start a new fork for length-delimited data like a message - * or a packed repeated field. - * - * Must be joined later with `join()`. - */ - fork(): this; - /** - * Join the last fork. Write its length and bytes, then - * return to the previous state. - */ - join(): this; - /** - * Writes a tag (field number and wire type). - * - * Equivalent to `uint32( (fieldNo << 3 | type) >>> 0 )`. - * - * Generated code should compute the tag ahead of time and call `uint32()`. - */ - tag(fieldNo: number, type: WireType): this; - /** - * Write a chunk of raw bytes. - */ - raw(chunk: Uint8Array): this; - /** - * Write a `uint32` value, an unsigned 32 bit varint. - */ - uint32(value: number): this; - /** - * Write a `int32` value, a signed 32 bit varint. - */ - int32(value: number): this; - /** - * Write a `bool` value, a variant. - */ - bool(value: boolean): this; - /** - * Write a `bytes` value, length-delimited arbitrary data. - */ - bytes(value: Uint8Array): this; - /** - * Write a `string` value, length-delimited data converted to UTF-8 text. - */ - string(value: string): this; - /** - * Write a `float` value, 32-bit floating point number. - */ - float(value: number): this; - /** - * Write a `double` value, a 64-bit floating point number. - */ - double(value: number): this; - /** - * Write a `fixed32` value, an unsigned, fixed-length 32-bit integer. - */ - fixed32(value: number): this; - /** - * Write a `sfixed32` value, a signed, fixed-length 32-bit integer. - */ - sfixed32(value: number): this; - /** - * Write a `sint32` value, a signed, zigzag-encoded 32-bit varint. - */ - sint32(value: number): this; - /** - * Write a `fixed64` value, a signed, fixed-length 64-bit integer. - */ - sfixed64(value: string | number | bigint): this; - /** - * Write a `fixed64` value, an unsigned, fixed-length 64 bit integer. - */ - fixed64(value: string | number | bigint): this; - /** - * Write a `int64` value, a signed 64-bit varint. - */ - int64(value: string | number | bigint): this; - /** - * Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint. - */ - sint64(value: string | number | bigint): this; - /** - * Write a `uint64` value, an unsigned 64-bit varint. - */ - uint64(value: string | number | bigint): this; -} -export declare class BinaryReader { - private readonly decodeUtf8; - /** - * Current position. - */ - pos: number; - /** - * Number of bytes available in this reader. - */ - readonly len: number; - protected readonly buf: Uint8Array; - private readonly view; - constructor(buf: Uint8Array, decodeUtf8?: (bytes: Uint8Array) => string); - /** - * Reads a tag - field number and wire type. - */ - tag(): [number, WireType]; - /** - * Skip one element and return the skipped data. - * - * When skipping StartGroup, provide the tags field number to check for - * matching field number in the EndGroup tag. - */ - skip(wireType: WireType, fieldNo?: number): Uint8Array; - protected varint64: () => [number, number]; - /** - * Throws error if position in byte array is out of range. - */ - protected assertBounds(): void; - /** - * Read a `uint32` field, an unsigned 32 bit varint. - */ - uint32: () => number; - /** - * Read a `int32` field, a signed 32 bit varint. - */ - int32(): number; - /** - * Read a `sint32` field, a signed, zigzag-encoded 32-bit varint. - */ - sint32(): number; - /** - * Read a `int64` field, a signed 64-bit varint. - */ - int64(): bigint | string; - /** - * Read a `uint64` field, an unsigned 64-bit varint. - */ - uint64(): bigint | string; - /** - * Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint. - */ - sint64(): bigint | string; - /** - * Read a `bool` field, a variant. - */ - bool(): boolean; - /** - * Read a `fixed32` field, an unsigned, fixed-length 32-bit integer. - */ - fixed32(): number; - /** - * Read a `sfixed32` field, a signed, fixed-length 32-bit integer. - */ - sfixed32(): number; - /** - * Read a `fixed64` field, an unsigned, fixed-length 64 bit integer. - */ - fixed64(): bigint | string; - /** - * Read a `fixed64` field, a signed, fixed-length 64-bit integer. - */ - sfixed64(): bigint | string; - /** - * Read a `float` field, 32-bit floating point number. - */ - float(): number; - /** - * Read a `double` field, a 64-bit floating point number. - */ - double(): number; - /** - * Read a `bytes` field, length-delimited arbitrary data. - */ - bytes(): Uint8Array; - /** - * Read a `string` field, length-delimited data converted to UTF-8 text. - */ - string(): string; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js b/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js deleted file mode 100644 index 4862dfa..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +++ /dev/null @@ -1,510 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { varint32read, varint32write, varint64read, varint64write, } from "./varint.js"; -import { protoInt64 } from "../proto-int64.js"; -import { getTextEncoding } from "./text-encoding.js"; -/** - * Protobuf binary format wire types. - * - * A wire type provides just enough information to find the length of the - * following value. - * - * See https://developers.google.com/protocol-buffers/docs/encoding#structure - */ -export var WireType; -(function (WireType) { - /** - * Used for int32, int64, uint32, uint64, sint32, sint64, bool, enum - */ - WireType[WireType["Varint"] = 0] = "Varint"; - /** - * Used for fixed64, sfixed64, double. - * Always 8 bytes with little-endian byte order. - */ - WireType[WireType["Bit64"] = 1] = "Bit64"; - /** - * Used for string, bytes, embedded messages, packed repeated fields - * - * Only repeated numeric types (types which use the varint, 32-bit, - * or 64-bit wire types) can be packed. In proto3, such fields are - * packed by default. - */ - WireType[WireType["LengthDelimited"] = 2] = "LengthDelimited"; - /** - * Start of a tag-delimited aggregate, such as a proto2 group, or a message - * in editions with message_encoding = DELIMITED. - */ - WireType[WireType["StartGroup"] = 3] = "StartGroup"; - /** - * End of a tag-delimited aggregate. - */ - WireType[WireType["EndGroup"] = 4] = "EndGroup"; - /** - * Used for fixed32, sfixed32, float. - * Always 4 bytes with little-endian byte order. - */ - WireType[WireType["Bit32"] = 5] = "Bit32"; -})(WireType || (WireType = {})); -/** - * Maximum value for a 32-bit floating point value (Protobuf FLOAT). - */ -export const FLOAT32_MAX = 3.4028234663852886e38; -/** - * Minimum value for a 32-bit floating point value (Protobuf FLOAT). - */ -export const FLOAT32_MIN = -3.4028234663852886e38; -/** - * Maximum value for an unsigned 32-bit integer (Protobuf UINT32, FIXED32). - */ -export const UINT32_MAX = 0xffffffff; -/** - * Maximum value for a signed 32-bit integer (Protobuf INT32, SFIXED32, SINT32). - */ -export const INT32_MAX = 0x7fffffff; -/** - * Minimum value for a signed 32-bit integer (Protobuf INT32, SFIXED32, SINT32). - */ -export const INT32_MIN = -0x80000000; -export class BinaryWriter { - constructor(encodeUtf8 = getTextEncoding().encodeUtf8) { - this.encodeUtf8 = encodeUtf8; - /** - * Previous fork states. - */ - this.stack = []; - this.chunks = []; - this.buf = []; - } - /** - * Return all bytes written and reset this writer. - */ - finish() { - if (this.buf.length) { - this.chunks.push(new Uint8Array(this.buf)); // flush the buffer - this.buf = []; - } - let len = 0; - for (let i = 0; i < this.chunks.length; i++) - len += this.chunks[i].length; - let bytes = new Uint8Array(len); - let offset = 0; - for (let i = 0; i < this.chunks.length; i++) { - bytes.set(this.chunks[i], offset); - offset += this.chunks[i].length; - } - this.chunks = []; - return bytes; - } - /** - * Start a new fork for length-delimited data like a message - * or a packed repeated field. - * - * Must be joined later with `join()`. - */ - fork() { - this.stack.push({ chunks: this.chunks, buf: this.buf }); - this.chunks = []; - this.buf = []; - return this; - } - /** - * Join the last fork. Write its length and bytes, then - * return to the previous state. - */ - join() { - // get chunk of fork - let chunk = this.finish(); - // restore previous state - let prev = this.stack.pop(); - if (!prev) - throw new Error("invalid state, fork stack empty"); - this.chunks = prev.chunks; - this.buf = prev.buf; - // write length of chunk as varint - this.uint32(chunk.byteLength); - return this.raw(chunk); - } - /** - * Writes a tag (field number and wire type). - * - * Equivalent to `uint32( (fieldNo << 3 | type) >>> 0 )`. - * - * Generated code should compute the tag ahead of time and call `uint32()`. - */ - tag(fieldNo, type) { - return this.uint32(((fieldNo << 3) | type) >>> 0); - } - /** - * Write a chunk of raw bytes. - */ - raw(chunk) { - if (this.buf.length) { - this.chunks.push(new Uint8Array(this.buf)); - this.buf = []; - } - this.chunks.push(chunk); - return this; - } - /** - * Write a `uint32` value, an unsigned 32 bit varint. - */ - uint32(value) { - assertUInt32(value); - // write value as varint 32, inlined for speed - while (value > 0x7f) { - this.buf.push((value & 0x7f) | 0x80); - value = value >>> 7; - } - this.buf.push(value); - return this; - } - /** - * Write a `int32` value, a signed 32 bit varint. - */ - int32(value) { - assertInt32(value); - varint32write(value, this.buf); - return this; - } - /** - * Write a `bool` value, a variant. - */ - bool(value) { - this.buf.push(value ? 1 : 0); - return this; - } - /** - * Write a `bytes` value, length-delimited arbitrary data. - */ - bytes(value) { - this.uint32(value.byteLength); // write length of chunk as varint - return this.raw(value); - } - /** - * Write a `string` value, length-delimited data converted to UTF-8 text. - */ - string(value) { - let chunk = this.encodeUtf8(value); - this.uint32(chunk.byteLength); // write length of chunk as varint - return this.raw(chunk); - } - /** - * Write a `float` value, 32-bit floating point number. - */ - float(value) { - assertFloat32(value); - let chunk = new Uint8Array(4); - new DataView(chunk.buffer).setFloat32(0, value, true); - return this.raw(chunk); - } - /** - * Write a `double` value, a 64-bit floating point number. - */ - double(value) { - let chunk = new Uint8Array(8); - new DataView(chunk.buffer).setFloat64(0, value, true); - return this.raw(chunk); - } - /** - * Write a `fixed32` value, an unsigned, fixed-length 32-bit integer. - */ - fixed32(value) { - assertUInt32(value); - let chunk = new Uint8Array(4); - new DataView(chunk.buffer).setUint32(0, value, true); - return this.raw(chunk); - } - /** - * Write a `sfixed32` value, a signed, fixed-length 32-bit integer. - */ - sfixed32(value) { - assertInt32(value); - let chunk = new Uint8Array(4); - new DataView(chunk.buffer).setInt32(0, value, true); - return this.raw(chunk); - } - /** - * Write a `sint32` value, a signed, zigzag-encoded 32-bit varint. - */ - sint32(value) { - assertInt32(value); - // zigzag encode - value = ((value << 1) ^ (value >> 31)) >>> 0; - varint32write(value, this.buf); - return this; - } - /** - * Write a `fixed64` value, a signed, fixed-length 64-bit integer. - */ - sfixed64(value) { - let chunk = new Uint8Array(8), view = new DataView(chunk.buffer), tc = protoInt64.enc(value); - view.setInt32(0, tc.lo, true); - view.setInt32(4, tc.hi, true); - return this.raw(chunk); - } - /** - * Write a `fixed64` value, an unsigned, fixed-length 64 bit integer. - */ - fixed64(value) { - let chunk = new Uint8Array(8), view = new DataView(chunk.buffer), tc = protoInt64.uEnc(value); - view.setInt32(0, tc.lo, true); - view.setInt32(4, tc.hi, true); - return this.raw(chunk); - } - /** - * Write a `int64` value, a signed 64-bit varint. - */ - int64(value) { - let tc = protoInt64.enc(value); - varint64write(tc.lo, tc.hi, this.buf); - return this; - } - /** - * Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint. - */ - sint64(value) { - const tc = protoInt64.enc(value), - // zigzag encode - sign = tc.hi >> 31, lo = (tc.lo << 1) ^ sign, hi = ((tc.hi << 1) | (tc.lo >>> 31)) ^ sign; - varint64write(lo, hi, this.buf); - return this; - } - /** - * Write a `uint64` value, an unsigned 64-bit varint. - */ - uint64(value) { - const tc = protoInt64.uEnc(value); - varint64write(tc.lo, tc.hi, this.buf); - return this; - } -} -export class BinaryReader { - constructor(buf, decodeUtf8 = getTextEncoding().decodeUtf8) { - this.decodeUtf8 = decodeUtf8; - this.varint64 = varint64read; // dirty cast for `this` - /** - * Read a `uint32` field, an unsigned 32 bit varint. - */ - this.uint32 = varint32read; - this.buf = buf; - this.len = buf.length; - this.pos = 0; - this.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength); - } - /** - * Reads a tag - field number and wire type. - */ - tag() { - let tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7; - if (fieldNo <= 0 || wireType < 0 || wireType > 5) - throw new Error("illegal tag: field no " + fieldNo + " wire type " + wireType); - return [fieldNo, wireType]; - } - /** - * Skip one element and return the skipped data. - * - * When skipping StartGroup, provide the tags field number to check for - * matching field number in the EndGroup tag. - */ - skip(wireType, fieldNo) { - let start = this.pos; - switch (wireType) { - case WireType.Varint: - while (this.buf[this.pos++] & 0x80) { - // ignore - } - break; - // @ts-ignore TS7029: Fallthrough case in switch -- ignore instead of expect-error for compiler settings without noFallthroughCasesInSwitch: true - case WireType.Bit64: - this.pos += 4; - case WireType.Bit32: - this.pos += 4; - break; - case WireType.LengthDelimited: - let len = this.uint32(); - this.pos += len; - break; - case WireType.StartGroup: - for (;;) { - const [fn, wt] = this.tag(); - if (wt === WireType.EndGroup) { - if (fieldNo !== undefined && fn !== fieldNo) { - throw new Error("invalid end group tag"); - } - break; - } - this.skip(wt, fn); - } - break; - default: - throw new Error("cant skip wire type " + wireType); - } - this.assertBounds(); - return this.buf.subarray(start, this.pos); - } - /** - * Throws error if position in byte array is out of range. - */ - assertBounds() { - if (this.pos > this.len) - throw new RangeError("premature EOF"); - } - /** - * Read a `int32` field, a signed 32 bit varint. - */ - int32() { - return this.uint32() | 0; - } - /** - * Read a `sint32` field, a signed, zigzag-encoded 32-bit varint. - */ - sint32() { - let zze = this.uint32(); - // decode zigzag - return (zze >>> 1) ^ -(zze & 1); - } - /** - * Read a `int64` field, a signed 64-bit varint. - */ - int64() { - return protoInt64.dec(...this.varint64()); - } - /** - * Read a `uint64` field, an unsigned 64-bit varint. - */ - uint64() { - return protoInt64.uDec(...this.varint64()); - } - /** - * Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint. - */ - sint64() { - let [lo, hi] = this.varint64(); - // decode zig zag - let s = -(lo & 1); - lo = ((lo >>> 1) | ((hi & 1) << 31)) ^ s; - hi = (hi >>> 1) ^ s; - return protoInt64.dec(lo, hi); - } - /** - * Read a `bool` field, a variant. - */ - bool() { - let [lo, hi] = this.varint64(); - return lo !== 0 || hi !== 0; - } - /** - * Read a `fixed32` field, an unsigned, fixed-length 32-bit integer. - */ - fixed32() { - // biome-ignore lint/suspicious/noAssignInExpressions: no - return this.view.getUint32((this.pos += 4) - 4, true); - } - /** - * Read a `sfixed32` field, a signed, fixed-length 32-bit integer. - */ - sfixed32() { - // biome-ignore lint/suspicious/noAssignInExpressions: no - return this.view.getInt32((this.pos += 4) - 4, true); - } - /** - * Read a `fixed64` field, an unsigned, fixed-length 64 bit integer. - */ - fixed64() { - return protoInt64.uDec(this.sfixed32(), this.sfixed32()); - } - /** - * Read a `fixed64` field, a signed, fixed-length 64-bit integer. - */ - sfixed64() { - return protoInt64.dec(this.sfixed32(), this.sfixed32()); - } - /** - * Read a `float` field, 32-bit floating point number. - */ - float() { - // biome-ignore lint/suspicious/noAssignInExpressions: no - return this.view.getFloat32((this.pos += 4) - 4, true); - } - /** - * Read a `double` field, a 64-bit floating point number. - */ - double() { - // biome-ignore lint/suspicious/noAssignInExpressions: no - return this.view.getFloat64((this.pos += 8) - 8, true); - } - /** - * Read a `bytes` field, length-delimited arbitrary data. - */ - bytes() { - let len = this.uint32(), start = this.pos; - this.pos += len; - this.assertBounds(); - return this.buf.subarray(start, start + len); - } - /** - * Read a `string` field, length-delimited data converted to UTF-8 text. - */ - string() { - return this.decodeUtf8(this.bytes()); - } -} -/** - * Assert a valid signed protobuf 32-bit integer as a number or string. - */ -function assertInt32(arg) { - if (typeof arg == "string") { - arg = Number(arg); - } - else if (typeof arg != "number") { - throw new Error("invalid int32: " + typeof arg); - } - if (!Number.isInteger(arg) || - arg > INT32_MAX || - arg < INT32_MIN) - throw new Error("invalid int32: " + arg); -} -/** - * Assert a valid unsigned protobuf 32-bit integer as a number or string. - */ -function assertUInt32(arg) { - if (typeof arg == "string") { - arg = Number(arg); - } - else if (typeof arg != "number") { - throw new Error("invalid uint32: " + typeof arg); - } - if (!Number.isInteger(arg) || - arg > UINT32_MAX || - arg < 0) - throw new Error("invalid uint32: " + arg); -} -/** - * Assert a valid protobuf float value as a number or string. - */ -function assertFloat32(arg) { - if (typeof arg == "string") { - const o = arg; - arg = Number(arg); - if (Number.isNaN(arg) && o !== "NaN") { - throw new Error("invalid float32: " + o); - } - } - else if (typeof arg != "number") { - throw new Error("invalid float32: " + typeof arg); - } - if (Number.isFinite(arg) && - (arg > FLOAT32_MAX || arg < FLOAT32_MIN)) - throw new Error("invalid float32: " + arg); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/index.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wire/index.d.ts deleted file mode 100644 index 8630d1f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./binary-encoding.js"; -export * from "./base64-encoding.js"; -export * from "./text-encoding.js"; -export * from "./text-format.js"; -export * from "./size-delimited.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js b/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js deleted file mode 100644 index ed27ce7..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -export * from "./binary-encoding.js"; -export * from "./base64-encoding.js"; -export * from "./text-encoding.js"; -export * from "./text-format.js"; -export * from "./size-delimited.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.d.ts deleted file mode 100644 index 0294989..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import type { DescMessage } from "../descriptors.js"; -import type { BinaryWriteOptions } from "../to-binary.js"; -import type { MessageShape } from "../types.js"; -import type { BinaryReadOptions } from "../from-binary.js"; -/** - * Serialize a message, prefixing it with its size. - * - * A size-delimited message is a varint size in bytes, followed by exactly - * that many bytes of a message serialized with the binary format. - * - * This size-delimited format is compatible with other implementations. - * For details, see https://github.com/protocolbuffers/protobuf/issues/10229 - */ -export declare function sizeDelimitedEncode(messageDesc: Desc, message: MessageShape, options?: BinaryWriteOptions): Uint8Array; -/** - * Parse a stream of size-delimited messages. - * - * A size-delimited message is a varint size in bytes, followed by exactly - * that many bytes of a message serialized with the binary format. - * - * This size-delimited format is compatible with other implementations. - * For details, see https://github.com/protocolbuffers/protobuf/issues/10229 - */ -export declare function sizeDelimitedDecodeStream(messageDesc: Desc, iterable: AsyncIterable, options?: BinaryReadOptions): AsyncIterableIterator>; -/** - * Decodes the size from the given size-delimited message, which may be - * incomplete. - * - * Returns an object with the following properties: - * - size: The size of the delimited message in bytes - * - offset: The offset in the given byte array where the message starts - * - eof: true - * - * If the size-delimited data does not include all bytes of the varint size, - * the following object is returned: - * - size: null - * - offset: null - * - eof: false - * - * This function can be used to implement parsing of size-delimited messages - * from a stream. - */ -export declare function sizeDelimitedPeek(data: Uint8Array): { - readonly eof: false; - readonly size: number; - readonly offset: number; -} | { - readonly eof: true; - readonly size: null; - readonly offset: null; -}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js b/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js deleted file mode 100644 index 3bf89ca..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __asyncValues = (this && this.__asyncValues) || function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -}; -var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } -var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; - function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } - function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -}; -import { toBinary } from "../to-binary.js"; -import { BinaryReader, BinaryWriter } from "./binary-encoding.js"; -import { fromBinary } from "../from-binary.js"; -/** - * Serialize a message, prefixing it with its size. - * - * A size-delimited message is a varint size in bytes, followed by exactly - * that many bytes of a message serialized with the binary format. - * - * This size-delimited format is compatible with other implementations. - * For details, see https://github.com/protocolbuffers/protobuf/issues/10229 - */ -export function sizeDelimitedEncode(messageDesc, message, options) { - const writer = new BinaryWriter(); - writer.bytes(toBinary(messageDesc, message, options)); - return writer.finish(); -} -/** - * Parse a stream of size-delimited messages. - * - * A size-delimited message is a varint size in bytes, followed by exactly - * that many bytes of a message serialized with the binary format. - * - * This size-delimited format is compatible with other implementations. - * For details, see https://github.com/protocolbuffers/protobuf/issues/10229 - */ -export function sizeDelimitedDecodeStream(messageDesc, iterable, options) { - return __asyncGenerator(this, arguments, function* sizeDelimitedDecodeStream_1() { - var _a, e_1, _b, _c; - // append chunk to buffer, returning updated buffer - function append(buffer, chunk) { - const n = new Uint8Array(buffer.byteLength + chunk.byteLength); - n.set(buffer); - n.set(chunk, buffer.length); - return n; - } - let buffer = new Uint8Array(0); - try { - for (var _d = true, iterable_1 = __asyncValues(iterable), iterable_1_1; iterable_1_1 = yield __await(iterable_1.next()), _a = iterable_1_1.done, !_a; _d = true) { - _c = iterable_1_1.value; - _d = false; - const chunk = _c; - buffer = append(buffer, chunk); - for (;;) { - const size = sizeDelimitedPeek(buffer); - if (size.eof) { - // size is incomplete, buffer more data - break; - } - if (size.offset + size.size > buffer.byteLength) { - // message is incomplete, buffer more data - break; - } - yield yield __await(fromBinary(messageDesc, buffer.subarray(size.offset, size.offset + size.size), options)); - buffer = buffer.subarray(size.offset + size.size); - } - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (!_d && !_a && (_b = iterable_1.return)) yield __await(_b.call(iterable_1)); - } - finally { if (e_1) throw e_1.error; } - } - if (buffer.byteLength > 0) { - throw new Error("incomplete data"); - } - }); -} -/** - * Decodes the size from the given size-delimited message, which may be - * incomplete. - * - * Returns an object with the following properties: - * - size: The size of the delimited message in bytes - * - offset: The offset in the given byte array where the message starts - * - eof: true - * - * If the size-delimited data does not include all bytes of the varint size, - * the following object is returned: - * - size: null - * - offset: null - * - eof: false - * - * This function can be used to implement parsing of size-delimited messages - * from a stream. - */ -export function sizeDelimitedPeek(data) { - const sizeEof = { eof: true, size: null, offset: null }; - for (let i = 0; i < 10; i++) { - if (i > data.byteLength) { - return sizeEof; - } - if ((data[i] & 0x80) == 0) { - const reader = new BinaryReader(data); - let size; - try { - size = reader.uint32(); - } - catch (e) { - if (e instanceof RangeError) { - return sizeEof; - } - throw e; - } - return { - eof: false, - size, - offset: reader.pos, - }; - } - } - throw new Error("invalid varint"); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.d.ts deleted file mode 100644 index 17761ea..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -interface TextEncoding { - /** - * Verify that the given text is valid UTF-8. - */ - checkUtf8: (text: string) => boolean; - /** - * Encode UTF-8 text to binary. - */ - encodeUtf8: (text: string) => Uint8Array; - /** - * Decode UTF-8 text from binary. - */ - decodeUtf8: (bytes: Uint8Array) => string; -} -/** - * Protobuf-ES requires the Text Encoding API to convert UTF-8 from and to - * binary. This WHATWG API is widely available, but it is not part of the - * ECMAScript standard. On runtimes where it is not available, use this - * function to provide your own implementation. - * - * Note that the Text Encoding API does not provide a way to validate UTF-8. - * Our implementation falls back to use encodeURIComponent(). - */ -export declare function configureTextEncoding(textEncoding: TextEncoding): void; -export declare function getTextEncoding(): TextEncoding; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js b/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js deleted file mode 100644 index 8cd9b24..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -const symbol = Symbol.for("@bufbuild/protobuf/text-encoding"); -/** - * Protobuf-ES requires the Text Encoding API to convert UTF-8 from and to - * binary. This WHATWG API is widely available, but it is not part of the - * ECMAScript standard. On runtimes where it is not available, use this - * function to provide your own implementation. - * - * Note that the Text Encoding API does not provide a way to validate UTF-8. - * Our implementation falls back to use encodeURIComponent(). - */ -export function configureTextEncoding(textEncoding) { - globalThis[symbol] = textEncoding; -} -export function getTextEncoding() { - if (globalThis[symbol] == undefined) { - const te = new globalThis.TextEncoder(); - const td = new globalThis.TextDecoder(); - globalThis[symbol] = { - encodeUtf8(text) { - return te.encode(text); - }, - decodeUtf8(bytes) { - return td.decode(bytes); - }, - checkUtf8(text) { - try { - encodeURIComponent(text); - return true; - } - catch (_) { - return false; - } - }, - }; - } - return globalThis[symbol]; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.d.ts deleted file mode 100644 index 06bdbdd..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { type DescEnum, ScalarType } from "../descriptors.js"; -/** - * Parse an enum value from the Protobuf text format. - * - * @private - */ -export declare function parseTextFormatEnumValue(descEnum: DescEnum, value: string): number; -/** - * Parse a scalar value from the Protobuf text format. - * - * @private - */ -export declare function parseTextFormatScalarValue(type: ScalarType, value: string): number | boolean | string | bigint | Uint8Array; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js b/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js deleted file mode 100644 index 7d0dc1b..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { ScalarType } from "../descriptors.js"; -import { protoInt64 } from "../proto-int64.js"; -/** - * Parse an enum value from the Protobuf text format. - * - * @private - */ -export function parseTextFormatEnumValue(descEnum, value) { - const enumValue = descEnum.values.find((v) => v.name === value); - if (!enumValue) { - throw new Error(`cannot parse ${descEnum} default value: ${value}`); - } - return enumValue.number; -} -/** - * Parse a scalar value from the Protobuf text format. - * - * @private - */ -export function parseTextFormatScalarValue(type, value) { - switch (type) { - case ScalarType.STRING: - return value; - case ScalarType.BYTES: { - const u = unescapeBytesDefaultValue(value); - if (u === false) { - throw new Error(`cannot parse ${ScalarType[type]} default value: ${value}`); - } - return u; - } - case ScalarType.INT64: - case ScalarType.SFIXED64: - case ScalarType.SINT64: - return protoInt64.parse(value); - case ScalarType.UINT64: - case ScalarType.FIXED64: - return protoInt64.uParse(value); - case ScalarType.DOUBLE: - case ScalarType.FLOAT: - switch (value) { - case "inf": - return Number.POSITIVE_INFINITY; - case "-inf": - return Number.NEGATIVE_INFINITY; - case "nan": - return Number.NaN; - default: - return parseFloat(value); - } - case ScalarType.BOOL: - return value === "true"; - case ScalarType.INT32: - case ScalarType.UINT32: - case ScalarType.SINT32: - case ScalarType.FIXED32: - case ScalarType.SFIXED32: - return parseInt(value, 10); - } -} -/** - * Parses a text-encoded default value (proto2) of a BYTES field. - */ -function unescapeBytesDefaultValue(str) { - const b = []; - const input = { - tail: str, - c: "", - next() { - if (this.tail.length == 0) { - return false; - } - this.c = this.tail[0]; - this.tail = this.tail.substring(1); - return true; - }, - take(n) { - if (this.tail.length >= n) { - const r = this.tail.substring(0, n); - this.tail = this.tail.substring(n); - return r; - } - return false; - }, - }; - while (input.next()) { - switch (input.c) { - case "\\": - if (input.next()) { - switch (input.c) { - case "\\": - b.push(input.c.charCodeAt(0)); - break; - case "b": - b.push(0x08); - break; - case "f": - b.push(0x0c); - break; - case "n": - b.push(0x0a); - break; - case "r": - b.push(0x0d); - break; - case "t": - b.push(0x09); - break; - case "v": - b.push(0x0b); - break; - case "0": - case "1": - case "2": - case "3": - case "4": - case "5": - case "6": - case "7": { - const s = input.c; - const t = input.take(2); - if (t === false) { - return false; - } - const n = parseInt(s + t, 8); - if (Number.isNaN(n)) { - return false; - } - b.push(n); - break; - } - case "x": { - const s = input.c; - const t = input.take(2); - if (t === false) { - return false; - } - const n = parseInt(s + t, 16); - if (Number.isNaN(n)) { - return false; - } - b.push(n); - break; - } - case "u": { - const s = input.c; - const t = input.take(4); - if (t === false) { - return false; - } - const n = parseInt(s + t, 16); - if (Number.isNaN(n)) { - return false; - } - const chunk = new Uint8Array(4); - const view = new DataView(chunk.buffer); - view.setInt32(0, n, true); - b.push(chunk[0], chunk[1], chunk[2], chunk[3]); - break; - } - case "U": { - const s = input.c; - const t = input.take(8); - if (t === false) { - return false; - } - const tc = protoInt64.uEnc(s + t); - const chunk = new Uint8Array(8); - const view = new DataView(chunk.buffer); - view.setInt32(0, tc.lo, true); - view.setInt32(4, tc.hi, true); - b.push(chunk[0], chunk[1], chunk[2], chunk[3], chunk[4], chunk[5], chunk[6], chunk[7]); - break; - } - } - } - break; - default: - b.push(input.c.charCodeAt(0)); - } - } - return new Uint8Array(b); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.d.ts deleted file mode 100644 index b45ef94..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Read a 64 bit varint as two JS numbers. - * - * Returns tuple: - * [0]: low bits - * [1]: high bits - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175 - */ -export declare function varint64read(this: T): [number, number]; -/** - * Write a 64 bit varint, given as two JS numbers, to the given bytes array. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344 - */ -export declare function varint64write(lo: number, hi: number, bytes: number[]): void; -/** - * Parse decimal string of 64 bit integer value as two JS numbers. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export declare function int64FromString(dec: string): { - lo: number; - hi: number; -}; -/** - * Losslessly converts a 64-bit signed integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export declare function int64ToString(lo: number, hi: number): string; -/** - * Losslessly converts a 64-bit unsigned integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export declare function uInt64ToString(lo: number, hi: number): string; -/** - * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)` - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144 - */ -export declare function varint32write(value: number, bytes: number[]): void; -/** - * Read an unsigned 32 bit varint. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220 - */ -export declare function varint32read(this: T): number; -type ReaderLike = { - buf: Uint8Array; - pos: number; - len: number; - assertBounds(): void; -}; -export {}; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js b/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js deleted file mode 100644 index a333bc8..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +++ /dev/null @@ -1,313 +0,0 @@ -// Copyright 2008 Google Inc. 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 Google Inc. 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 -// OWNER 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. -// -// Code generated by the Protocol Buffer compiler is owned by the owner -// of the input file used when generating it. This code is not -// standalone and requires a support library to be linked with it. This -// support library is itself covered by the above license. -/** - * Read a 64 bit varint as two JS numbers. - * - * Returns tuple: - * [0]: low bits - * [1]: high bits - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175 - */ -export function varint64read() { - let lowBits = 0; - let highBits = 0; - for (let shift = 0; shift < 28; shift += 7) { - let b = this.buf[this.pos++]; - lowBits |= (b & 0x7f) << shift; - if ((b & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - } - let middleByte = this.buf[this.pos++]; - // last four bits of the first 32 bit number - lowBits |= (middleByte & 0x0f) << 28; - // 3 upper bits are part of the next 32 bit number - highBits = (middleByte & 0x70) >> 4; - if ((middleByte & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - for (let shift = 3; shift <= 31; shift += 7) { - let b = this.buf[this.pos++]; - highBits |= (b & 0x7f) << shift; - if ((b & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - } - throw new Error("invalid varint"); -} -/** - * Write a 64 bit varint, given as two JS numbers, to the given bytes array. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344 - */ -export function varint64write(lo, hi, bytes) { - for (let i = 0; i < 28; i = i + 7) { - const shift = lo >>> i; - const hasNext = !(shift >>> 7 == 0 && hi == 0); - const byte = (hasNext ? shift | 0x80 : shift) & 0xff; - bytes.push(byte); - if (!hasNext) { - return; - } - } - const splitBits = ((lo >>> 28) & 0x0f) | ((hi & 0x07) << 4); - const hasMoreBits = !(hi >> 3 == 0); - bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xff); - if (!hasMoreBits) { - return; - } - for (let i = 3; i < 31; i = i + 7) { - const shift = hi >>> i; - const hasNext = !(shift >>> 7 == 0); - const byte = (hasNext ? shift | 0x80 : shift) & 0xff; - bytes.push(byte); - if (!hasNext) { - return; - } - } - bytes.push((hi >>> 31) & 0x01); -} -// constants for binary math -const TWO_PWR_32_DBL = 0x100000000; -/** - * Parse decimal string of 64 bit integer value as two JS numbers. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export function int64FromString(dec) { - // Check for minus sign. - const minus = dec[0] === "-"; - if (minus) { - dec = dec.slice(1); - } - // Work 6 decimal digits at a time, acting like we're converting base 1e6 - // digits to binary. This is safe to do with floating point math because - // Number.isSafeInteger(ALL_32_BITS * 1e6) == true. - const base = 1e6; - let lowBits = 0; - let highBits = 0; - function add1e6digit(begin, end) { - // Note: Number('') is 0. - const digit1e6 = Number(dec.slice(begin, end)); - highBits *= base; - lowBits = lowBits * base + digit1e6; - // Carry bits from lowBits to - if (lowBits >= TWO_PWR_32_DBL) { - highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0); - lowBits = lowBits % TWO_PWR_32_DBL; - } - } - add1e6digit(-24, -18); - add1e6digit(-18, -12); - add1e6digit(-12, -6); - add1e6digit(-6); - return minus ? negate(lowBits, highBits) : newBits(lowBits, highBits); -} -/** - * Losslessly converts a 64-bit signed integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export function int64ToString(lo, hi) { - let bits = newBits(lo, hi); - // If we're treating the input as a signed value and the high bit is set, do - // a manual two's complement conversion before the decimal conversion. - const negative = bits.hi & 0x80000000; - if (negative) { - bits = negate(bits.lo, bits.hi); - } - const result = uInt64ToString(bits.lo, bits.hi); - return negative ? "-" + result : result; -} -/** - * Losslessly converts a 64-bit unsigned integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export function uInt64ToString(lo, hi) { - ({ lo, hi } = toUnsigned(lo, hi)); - // Skip the expensive conversion if the number is small enough to use the - // built-in conversions. - // Number.MAX_SAFE_INTEGER = 0x001FFFFF FFFFFFFF, thus any number with - // highBits <= 0x1FFFFF can be safely expressed with a double and retain - // integer precision. - // Proven by: Number.isSafeInteger(0x1FFFFF * 2**32 + 0xFFFFFFFF) == true. - if (hi <= 0x1fffff) { - return String(TWO_PWR_32_DBL * hi + lo); - } - // What this code is doing is essentially converting the input number from - // base-2 to base-1e7, which allows us to represent the 64-bit range with - // only 3 (very large) digits. Those digits are then trivial to convert to - // a base-10 string. - // The magic numbers used here are - - // 2^24 = 16777216 = (1,6777216) in base-1e7. - // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7. - // Split 32:32 representation into 16:24:24 representation so our - // intermediate digits don't overflow. - const low = lo & 0xffffff; - const mid = ((lo >>> 24) | (hi << 8)) & 0xffffff; - const high = (hi >> 16) & 0xffff; - // Assemble our three base-1e7 digits, ignoring carries. The maximum - // value in a digit at this step is representable as a 48-bit integer, which - // can be stored in a 64-bit floating point number. - let digitA = low + mid * 6777216 + high * 6710656; - let digitB = mid + high * 8147497; - let digitC = high * 2; - // Apply carries from A to B and from B to C. - const base = 10000000; - if (digitA >= base) { - digitB += Math.floor(digitA / base); - digitA %= base; - } - if (digitB >= base) { - digitC += Math.floor(digitB / base); - digitB %= base; - } - // If digitC is 0, then we should have returned in the trivial code path - // at the top for non-safe integers. Given this, we can assume both digitB - // and digitA need leading zeros. - return (digitC.toString() + - decimalFrom1e7WithLeadingZeros(digitB) + - decimalFrom1e7WithLeadingZeros(digitA)); -} -function toUnsigned(lo, hi) { - return { lo: lo >>> 0, hi: hi >>> 0 }; -} -function newBits(lo, hi) { - return { lo: lo | 0, hi: hi | 0 }; -} -/** - * Returns two's compliment negation of input. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Signed_32-bit_integers - */ -function negate(lowBits, highBits) { - highBits = ~highBits; - if (lowBits) { - lowBits = ~lowBits + 1; - } - else { - // If lowBits is 0, then bitwise-not is 0xFFFFFFFF, - // adding 1 to that, results in 0x100000000, which leaves - // the low bits 0x0 and simply adds one to the high bits. - highBits += 1; - } - return newBits(lowBits, highBits); -} -/** - * Returns decimal representation of digit1e7 with leading zeros. - */ -const decimalFrom1e7WithLeadingZeros = (digit1e7) => { - const partial = String(digit1e7); - return "0000000".slice(partial.length) + partial; -}; -/** - * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)` - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144 - */ -export function varint32write(value, bytes) { - if (value >= 0) { - // write value as varint 32 - while (value > 0x7f) { - bytes.push((value & 0x7f) | 0x80); - value = value >>> 7; - } - bytes.push(value); - } - else { - for (let i = 0; i < 9; i++) { - bytes.push((value & 127) | 128); - value = value >> 7; - } - bytes.push(1); - } -} -/** - * Read an unsigned 32 bit varint. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220 - */ -export function varint32read() { - let b = this.buf[this.pos++]; - let result = b & 0x7f; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 7; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 14; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 21; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - // Extract only last 4 bits - b = this.buf[this.pos++]; - result |= (b & 0x0f) << 28; - for (let readBytes = 5; (b & 0x80) !== 0 && readBytes < 10; readBytes++) - b = this.buf[this.pos++]; - if ((b & 0x80) != 0) - throw new Error("invalid varint"); - this.assertBounds(); - // Result can have 32 bits, convert it to unsigned - return result >>> 0; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.d.ts deleted file mode 100644 index 5d41781..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import type { Message, MessageShape } from "../types.js"; -import type { Any } from "./gen/google/protobuf/any_pb.js"; -import type { DescMessage } from "../descriptors.js"; -import type { Registry } from "../registry.js"; -/** - * Creates a `google.protobuf.Any` from a message. - */ -export declare function anyPack(schema: Desc, message: MessageShape): Any; -/** - * Packs the message into the given any. - */ -export declare function anyPack(schema: Desc, message: MessageShape, into: Any): void; -/** - * Returns true if the Any contains the type given by schema. - */ -export declare function anyIs(any: Any, schema: DescMessage): boolean; -/** - * Returns true if the Any contains a message with the given typeName. - */ -export declare function anyIs(any: Any, typeName: string): boolean; -/** - * Unpacks the message the Any represents. - * - * Returns undefined if the Any is empty, or if packed type is not included - * in the given registry. - */ -export declare function anyUnpack(any: Any, registry: Registry): Message | undefined; -/** - * Unpacks the message the Any represents. - * - * Returns undefined if the Any is empty, or if it does not contain the type - * given by schema. - */ -export declare function anyUnpack(any: Any, schema: Desc): MessageShape | undefined; -/** - * Same as anyUnpack but unpacks into the target message. - */ -export declare function anyUnpackTo(any: Any, schema: Desc, message: MessageShape): MessageShape | undefined; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js deleted file mode 100644 index c6b9b0f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { AnySchema } from "./gen/google/protobuf/any_pb.js"; -import { create } from "../create.js"; -import { toBinary } from "../to-binary.js"; -import { fromBinary, mergeFromBinary } from "../from-binary.js"; -export function anyPack(schema, message, into) { - let ret = false; - if (!into) { - into = create(AnySchema); - ret = true; - } - into.value = toBinary(schema, message); - into.typeUrl = typeNameToUrl(message.$typeName); - return ret ? into : undefined; -} -export function anyIs(any, descOrTypeName) { - if (any.typeUrl === "") { - return false; - } - const want = typeof descOrTypeName == "string" - ? descOrTypeName - : descOrTypeName.typeName; - const got = typeUrlToName(any.typeUrl); - return want === got; -} -export function anyUnpack(any, registryOrMessageDesc) { - if (any.typeUrl === "") { - return undefined; - } - const desc = registryOrMessageDesc.kind == "message" - ? registryOrMessageDesc - : registryOrMessageDesc.getMessage(typeUrlToName(any.typeUrl)); - if (!desc || !anyIs(any, desc)) { - return undefined; - } - return fromBinary(desc, any.value); -} -/** - * Same as anyUnpack but unpacks into the target message. - */ -export function anyUnpackTo(any, schema, message) { - if (!anyIs(any, schema)) { - return undefined; - } - return mergeFromBinary(schema, message, any.value); -} -function typeNameToUrl(name) { - return `type.googleapis.com/${name}`; -} -function typeUrlToName(url) { - const slash = url.lastIndexOf("/"); - const name = slash >= 0 ? url.substring(slash + 1) : url; - if (!name.length) { - throw new Error(`invalid type url: ${url}`); - } - return name; -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.d.ts deleted file mode 100644 index a61678f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.d.ts +++ /dev/null @@ -1,238 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/any.proto. - */ -export declare const file_google_protobuf_any: GenFile; -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * // or ... - * if (any.isSameTypeAs(Foo.getDefaultInstance())) { - * foo = any.unpack(Foo.getDefaultInstance()); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := anypb.New(foo) - * if err != nil { - * ... - * } - * ... - * foo := &pb.Foo{} - * if err := any.UnmarshalTo(foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - * - * - * @generated from message google.protobuf.Any - */ -export type Any = Message<"google.protobuf.Any"> & { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. As of May 2023, there are no widely used type server - * implementations and no plans to implement one. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - * - * - * @generated from field: string type_url = 1; - */ - typeUrl: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * - * @generated from field: bytes value = 2; - */ - value: Uint8Array; -}; -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * // or ... - * if (any.isSameTypeAs(Foo.getDefaultInstance())) { - * foo = any.unpack(Foo.getDefaultInstance()); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := anypb.New(foo) - * if err != nil { - * ... - * } - * ... - * foo := &pb.Foo{} - * if err := any.UnmarshalTo(foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - * - * - * @generated from message google.protobuf.Any - */ -export type AnyJson = { - "@type"?: string; -}; -/** - * Describes the message google.protobuf.Any. - * Use `create(AnySchema)` to create a new message. - */ -export declare const AnySchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js deleted file mode 100644 index e24f975..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../codegenv2/file.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -/** - * Describes the file google/protobuf/any.proto. - */ -export const file_google_protobuf_any = /*@__PURE__*/ fileDesc("Chlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvEg9nb29nbGUucHJvdG9idWYiJgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQnYKE2NvbS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAFaLGdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2FueXBiogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"); -/** - * Describes the message google.protobuf.Any. - * Use `create(AnySchema)` to create a new message. - */ -export const AnySchema = /*@__PURE__*/ messageDesc(file_google_protobuf_any, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts deleted file mode 100644 index 6438076..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts +++ /dev/null @@ -1,537 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { SourceContext, SourceContextJson } from "./source_context_pb.js"; -import type { Option, OptionJson, Syntax, SyntaxJson } from "./type_pb.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/api.proto. - */ -export declare const file_google_protobuf_api: GenFile; -/** - * Api is a light-weight descriptor for an API Interface. - * - * Interfaces are also described as "protocol buffer services" in some contexts, - * such as by the "service" keyword in a .proto file, but they are different - * from API Services, which represent a concrete implementation of an interface - * as opposed to simply a description of methods and bindings. They are also - * sometimes simply referred to as "APIs" in other contexts, such as the name of - * this message itself. See https://cloud.google.com/apis/design/glossary for - * detailed terminology. - * - * New usages of this message as an alternative to ServiceDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Api - */ -export type Api = Message<"google.protobuf.Api"> & { - /** - * The fully qualified name of this interface, including package name - * followed by the interface's simple name. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * The methods of this interface, in unspecified order. - * - * @generated from field: repeated google.protobuf.Method methods = 2; - */ - methods: Method[]; - /** - * Any metadata attached to the interface. - * - * @generated from field: repeated google.protobuf.Option options = 3; - */ - options: Option[]; - /** - * A version string for this interface. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version is - * omitted, it defaults to zero. If the entire version field is empty, the - * major version is derived from the package name, as outlined below. If the - * field is not empty, the version in the package name will be verified to be - * consistent with what is provided here. - * - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * - * The major version is also reflected in the package name of the - * interface, which must end in `v`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, non-GA interfaces. - * - * - * @generated from field: string version = 4; - */ - version: string; - /** - * Source context for the protocol buffer service represented by this - * message. - * - * @generated from field: google.protobuf.SourceContext source_context = 5; - */ - sourceContext?: SourceContext; - /** - * Included interfaces. See [Mixin][]. - * - * @generated from field: repeated google.protobuf.Mixin mixins = 6; - */ - mixins: Mixin[]; - /** - * The source syntax of the service. - * - * @generated from field: google.protobuf.Syntax syntax = 7; - */ - syntax: Syntax; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * @generated from field: string edition = 8; - */ - edition: string; -}; -/** - * Api is a light-weight descriptor for an API Interface. - * - * Interfaces are also described as "protocol buffer services" in some contexts, - * such as by the "service" keyword in a .proto file, but they are different - * from API Services, which represent a concrete implementation of an interface - * as opposed to simply a description of methods and bindings. They are also - * sometimes simply referred to as "APIs" in other contexts, such as the name of - * this message itself. See https://cloud.google.com/apis/design/glossary for - * detailed terminology. - * - * New usages of this message as an alternative to ServiceDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Api - */ -export type ApiJson = { - /** - * The fully qualified name of this interface, including package name - * followed by the interface's simple name. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * The methods of this interface, in unspecified order. - * - * @generated from field: repeated google.protobuf.Method methods = 2; - */ - methods?: MethodJson[]; - /** - * Any metadata attached to the interface. - * - * @generated from field: repeated google.protobuf.Option options = 3; - */ - options?: OptionJson[]; - /** - * A version string for this interface. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version is - * omitted, it defaults to zero. If the entire version field is empty, the - * major version is derived from the package name, as outlined below. If the - * field is not empty, the version in the package name will be verified to be - * consistent with what is provided here. - * - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * - * The major version is also reflected in the package name of the - * interface, which must end in `v`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, non-GA interfaces. - * - * - * @generated from field: string version = 4; - */ - version?: string; - /** - * Source context for the protocol buffer service represented by this - * message. - * - * @generated from field: google.protobuf.SourceContext source_context = 5; - */ - sourceContext?: SourceContextJson; - /** - * Included interfaces. See [Mixin][]. - * - * @generated from field: repeated google.protobuf.Mixin mixins = 6; - */ - mixins?: MixinJson[]; - /** - * The source syntax of the service. - * - * @generated from field: google.protobuf.Syntax syntax = 7; - */ - syntax?: SyntaxJson; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * @generated from field: string edition = 8; - */ - edition?: string; -}; -/** - * Describes the message google.protobuf.Api. - * Use `create(ApiSchema)` to create a new message. - */ -export declare const ApiSchema: GenMessage; -/** - * Method represents a method of an API interface. - * - * New usages of this message as an alternative to MethodDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Method - */ -export type Method = Message<"google.protobuf.Method"> & { - /** - * The simple name of this method. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * A URL of the input message type. - * - * @generated from field: string request_type_url = 2; - */ - requestTypeUrl: string; - /** - * If true, the request is streamed. - * - * @generated from field: bool request_streaming = 3; - */ - requestStreaming: boolean; - /** - * The URL of the output message type. - * - * @generated from field: string response_type_url = 4; - */ - responseTypeUrl: string; - /** - * If true, the response is streamed. - * - * @generated from field: bool response_streaming = 5; - */ - responseStreaming: boolean; - /** - * Any metadata attached to the method. - * - * @generated from field: repeated google.protobuf.Option options = 6; - */ - options: Option[]; - /** - * The source syntax of this method. - * - * This field should be ignored, instead the syntax should be inherited from - * Api. This is similar to Field and EnumValue. - * - * @generated from field: google.protobuf.Syntax syntax = 7 [deprecated = true]; - * @deprecated - */ - syntax: Syntax; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * This field should be ignored, instead the edition should be inherited from - * Api. This is similar to Field and EnumValue. - * - * @generated from field: string edition = 8 [deprecated = true]; - * @deprecated - */ - edition: string; -}; -/** - * Method represents a method of an API interface. - * - * New usages of this message as an alternative to MethodDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Method - */ -export type MethodJson = { - /** - * The simple name of this method. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * A URL of the input message type. - * - * @generated from field: string request_type_url = 2; - */ - requestTypeUrl?: string; - /** - * If true, the request is streamed. - * - * @generated from field: bool request_streaming = 3; - */ - requestStreaming?: boolean; - /** - * The URL of the output message type. - * - * @generated from field: string response_type_url = 4; - */ - responseTypeUrl?: string; - /** - * If true, the response is streamed. - * - * @generated from field: bool response_streaming = 5; - */ - responseStreaming?: boolean; - /** - * Any metadata attached to the method. - * - * @generated from field: repeated google.protobuf.Option options = 6; - */ - options?: OptionJson[]; - /** - * The source syntax of this method. - * - * This field should be ignored, instead the syntax should be inherited from - * Api. This is similar to Field and EnumValue. - * - * @generated from field: google.protobuf.Syntax syntax = 7 [deprecated = true]; - * @deprecated - */ - syntax?: SyntaxJson; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * This field should be ignored, instead the edition should be inherited from - * Api. This is similar to Field and EnumValue. - * - * @generated from field: string edition = 8 [deprecated = true]; - * @deprecated - */ - edition?: string; -}; -/** - * Describes the message google.protobuf.Method. - * Use `create(MethodSchema)` to create a new message. - */ -export declare const MethodSchema: GenMessage; -/** - * Declares an API Interface to be included in this interface. The including - * interface must redeclare all the methods from the included interface, but - * documentation and options are inherited as follows: - * - * - If after comment and whitespace stripping, the documentation - * string of the redeclared method is empty, it will be inherited - * from the original method. - * - * - Each annotation belonging to the service config (http, - * visibility) which is not set in the redeclared method will be - * inherited. - * - * - If an http annotation is inherited, the path pattern will be - * modified as follows. Any version prefix will be replaced by the - * version of the including interface plus the [root][] path if - * specified. - * - * Example of a simple mixin: - * - * package google.acl.v1; - * service AccessControl { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v1/{resource=**}:getAcl"; - * } - * } - * - * package google.storage.v2; - * service Storage { - * rpc GetAcl(GetAclRequest) returns (Acl); - * - * // Get a data record. - * rpc GetData(GetDataRequest) returns (Data) { - * option (google.api.http).get = "/v2/{resource=**}"; - * } - * } - * - * Example of a mixin configuration: - * - * apis: - * - name: google.storage.v2.Storage - * mixins: - * - name: google.acl.v1.AccessControl - * - * The mixin construct implies that all methods in `AccessControl` are - * also declared with same name and request/response types in - * `Storage`. A documentation generator or annotation processor will - * see the effective `Storage.GetAcl` method after inheriting - * documentation and annotations as follows: - * - * service Storage { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v2/{resource=**}:getAcl"; - * } - * ... - * } - * - * Note how the version in the path pattern changed from `v1` to `v2`. - * - * If the `root` field in the mixin is specified, it should be a - * relative path under which inherited HTTP paths are placed. Example: - * - * apis: - * - name: google.storage.v2.Storage - * mixins: - * - name: google.acl.v1.AccessControl - * root: acls - * - * This implies the following inherited HTTP annotation: - * - * service Storage { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; - * } - * ... - * } - * - * @generated from message google.protobuf.Mixin - */ -export type Mixin = Message<"google.protobuf.Mixin"> & { - /** - * The fully qualified name of the interface which is included. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * If non-empty specifies a path under which inherited HTTP paths - * are rooted. - * - * @generated from field: string root = 2; - */ - root: string; -}; -/** - * Declares an API Interface to be included in this interface. The including - * interface must redeclare all the methods from the included interface, but - * documentation and options are inherited as follows: - * - * - If after comment and whitespace stripping, the documentation - * string of the redeclared method is empty, it will be inherited - * from the original method. - * - * - Each annotation belonging to the service config (http, - * visibility) which is not set in the redeclared method will be - * inherited. - * - * - If an http annotation is inherited, the path pattern will be - * modified as follows. Any version prefix will be replaced by the - * version of the including interface plus the [root][] path if - * specified. - * - * Example of a simple mixin: - * - * package google.acl.v1; - * service AccessControl { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v1/{resource=**}:getAcl"; - * } - * } - * - * package google.storage.v2; - * service Storage { - * rpc GetAcl(GetAclRequest) returns (Acl); - * - * // Get a data record. - * rpc GetData(GetDataRequest) returns (Data) { - * option (google.api.http).get = "/v2/{resource=**}"; - * } - * } - * - * Example of a mixin configuration: - * - * apis: - * - name: google.storage.v2.Storage - * mixins: - * - name: google.acl.v1.AccessControl - * - * The mixin construct implies that all methods in `AccessControl` are - * also declared with same name and request/response types in - * `Storage`. A documentation generator or annotation processor will - * see the effective `Storage.GetAcl` method after inheriting - * documentation and annotations as follows: - * - * service Storage { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v2/{resource=**}:getAcl"; - * } - * ... - * } - * - * Note how the version in the path pattern changed from `v1` to `v2`. - * - * If the `root` field in the mixin is specified, it should be a - * relative path under which inherited HTTP paths are placed. Example: - * - * apis: - * - name: google.storage.v2.Storage - * mixins: - * - name: google.acl.v1.AccessControl - * root: acls - * - * This implies the following inherited HTTP annotation: - * - * service Storage { - * // Get the underlying ACL object. - * rpc GetAcl(GetAclRequest) returns (Acl) { - * option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; - * } - * ... - * } - * - * @generated from message google.protobuf.Mixin - */ -export type MixinJson = { - /** - * The fully qualified name of the interface which is included. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * If non-empty specifies a path under which inherited HTTP paths - * are rooted. - * - * @generated from field: string root = 2; - */ - root?: string; -}; -/** - * Describes the message google.protobuf.Mixin. - * Use `create(MixinSchema)` to create a new message. - */ -export declare const MixinSchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js deleted file mode 100644 index ee47015..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../codegenv2/file.js"; -import { file_google_protobuf_source_context } from "./source_context_pb.js"; -import { file_google_protobuf_type } from "./type_pb.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -/** - * Describes the file google/protobuf/api.proto. - */ -export const file_google_protobuf_api = /*@__PURE__*/ fileDesc("Chlnb29nbGUvcHJvdG9idWYvYXBpLnByb3RvEg9nb29nbGUucHJvdG9idWYikgIKA0FwaRIMCgRuYW1lGAEgASgJEigKB21ldGhvZHMYAiADKAsyFy5nb29nbGUucHJvdG9idWYuTWV0aG9kEigKB29wdGlvbnMYAyADKAsyFy5nb29nbGUucHJvdG9idWYuT3B0aW9uEg8KB3ZlcnNpb24YBCABKAkSNgoOc291cmNlX2NvbnRleHQYBSABKAsyHi5nb29nbGUucHJvdG9idWYuU291cmNlQ29udGV4dBImCgZtaXhpbnMYBiADKAsyFi5nb29nbGUucHJvdG9idWYuTWl4aW4SJwoGc3ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3RvYnVmLlN5bnRheBIPCgdlZGl0aW9uGAggASgJIu4BCgZNZXRob2QSDAoEbmFtZRgBIAEoCRIYChByZXF1ZXN0X3R5cGVfdXJsGAIgASgJEhkKEXJlcXVlc3Rfc3RyZWFtaW5nGAMgASgIEhkKEXJlc3BvbnNlX3R5cGVfdXJsGAQgASgJEhoKEnJlc3BvbnNlX3N0cmVhbWluZxgFIAEoCBIoCgdvcHRpb25zGAYgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhIrCgZzeW50YXgYByABKA4yFy5nb29nbGUucHJvdG9idWYuU3ludGF4QgIYARITCgdlZGl0aW9uGAggASgJQgIYASIjCgVNaXhpbhIMCgRuYW1lGAEgASgJEgwKBHJvb3QYAiABKAlCdgoTY29tLmdvb2dsZS5wcm90b2J1ZkIIQXBpUHJvdG9QAVosZ29vZ2xlLmdvbGFuZy5vcmcvcHJvdG9idWYvdHlwZXMva25vd24vYXBpcGKiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw", [file_google_protobuf_source_context, file_google_protobuf_type]); -/** - * Describes the message google.protobuf.Api. - * Use `create(ApiSchema)` to create a new message. - */ -export const ApiSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_api, 0); -/** - * Describes the message google.protobuf.Method. - * Use `create(MethodSchema)` to create a new message. - */ -export const MethodSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_api, 1); -/** - * Describes the message google.protobuf.Mixin. - * Use `create(MixinSchema)` to create a new message. - */ -export const MixinSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_api, 2); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts deleted file mode 100644 index 2c3eaf6..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +++ /dev/null @@ -1,490 +0,0 @@ -import type { GenEnum, GenFile, GenMessage } from "../../../../../codegenv2/types.js"; -import type { FileDescriptorProto, FileDescriptorProtoJson, GeneratedCodeInfo, GeneratedCodeInfoJson } from "../descriptor_pb.js"; -import type { Message } from "../../../../../types.js"; -/** - * Describes the file google/protobuf/compiler/plugin.proto. - */ -export declare const file_google_protobuf_compiler_plugin: GenFile; -/** - * The version number of protocol compiler. - * - * @generated from message google.protobuf.compiler.Version - */ -export type Version = Message<"google.protobuf.compiler.Version"> & { - /** - * @generated from field: optional int32 major = 1; - */ - major: number; - /** - * @generated from field: optional int32 minor = 2; - */ - minor: number; - /** - * @generated from field: optional int32 patch = 3; - */ - patch: number; - /** - * A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should - * be empty for mainline stable releases. - * - * @generated from field: optional string suffix = 4; - */ - suffix: string; -}; -/** - * The version number of protocol compiler. - * - * @generated from message google.protobuf.compiler.Version - */ -export type VersionJson = { - /** - * @generated from field: optional int32 major = 1; - */ - major?: number; - /** - * @generated from field: optional int32 minor = 2; - */ - minor?: number; - /** - * @generated from field: optional int32 patch = 3; - */ - patch?: number; - /** - * A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should - * be empty for mainline stable releases. - * - * @generated from field: optional string suffix = 4; - */ - suffix?: string; -}; -/** - * Describes the message google.protobuf.compiler.Version. - * Use `create(VersionSchema)` to create a new message. - */ -export declare const VersionSchema: GenMessage; -/** - * An encoded CodeGeneratorRequest is written to the plugin's stdin. - * - * @generated from message google.protobuf.compiler.CodeGeneratorRequest - */ -export type CodeGeneratorRequest = Message<"google.protobuf.compiler.CodeGeneratorRequest"> & { - /** - * The .proto files that were explicitly listed on the command-line. The - * code generator should generate code only for these files. Each file's - * descriptor will be included in proto_file, below. - * - * @generated from field: repeated string file_to_generate = 1; - */ - fileToGenerate: string[]; - /** - * The generator parameter passed on the command-line. - * - * @generated from field: optional string parameter = 2; - */ - parameter: string; - /** - * FileDescriptorProtos for all files in files_to_generate and everything - * they import. The files will appear in topological order, so each file - * appears before any file that imports it. - * - * Note: the files listed in files_to_generate will include runtime-retention - * options only, but all other files will include source-retention options. - * The source_file_descriptors field below is available in case you need - * source-retention options for files_to_generate. - * - * protoc guarantees that all proto_files will be written after - * the fields above, even though this is not technically guaranteed by the - * protobuf wire format. This theoretically could allow a plugin to stream - * in the FileDescriptorProtos and handle them one by one rather than read - * the entire set into memory at once. However, as of this writing, this - * is not similarly optimized on protoc's end -- it will store all fields in - * memory at once before sending them to the plugin. - * - * Type names of fields and extensions in the FileDescriptorProto are always - * fully qualified. - * - * @generated from field: repeated google.protobuf.FileDescriptorProto proto_file = 15; - */ - protoFile: FileDescriptorProto[]; - /** - * File descriptors with all options, including source-retention options. - * These descriptors are only provided for the files listed in - * files_to_generate. - * - * @generated from field: repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17; - */ - sourceFileDescriptors: FileDescriptorProto[]; - /** - * The version number of protocol compiler. - * - * @generated from field: optional google.protobuf.compiler.Version compiler_version = 3; - */ - compilerVersion?: Version; -}; -/** - * An encoded CodeGeneratorRequest is written to the plugin's stdin. - * - * @generated from message google.protobuf.compiler.CodeGeneratorRequest - */ -export type CodeGeneratorRequestJson = { - /** - * The .proto files that were explicitly listed on the command-line. The - * code generator should generate code only for these files. Each file's - * descriptor will be included in proto_file, below. - * - * @generated from field: repeated string file_to_generate = 1; - */ - fileToGenerate?: string[]; - /** - * The generator parameter passed on the command-line. - * - * @generated from field: optional string parameter = 2; - */ - parameter?: string; - /** - * FileDescriptorProtos for all files in files_to_generate and everything - * they import. The files will appear in topological order, so each file - * appears before any file that imports it. - * - * Note: the files listed in files_to_generate will include runtime-retention - * options only, but all other files will include source-retention options. - * The source_file_descriptors field below is available in case you need - * source-retention options for files_to_generate. - * - * protoc guarantees that all proto_files will be written after - * the fields above, even though this is not technically guaranteed by the - * protobuf wire format. This theoretically could allow a plugin to stream - * in the FileDescriptorProtos and handle them one by one rather than read - * the entire set into memory at once. However, as of this writing, this - * is not similarly optimized on protoc's end -- it will store all fields in - * memory at once before sending them to the plugin. - * - * Type names of fields and extensions in the FileDescriptorProto are always - * fully qualified. - * - * @generated from field: repeated google.protobuf.FileDescriptorProto proto_file = 15; - */ - protoFile?: FileDescriptorProtoJson[]; - /** - * File descriptors with all options, including source-retention options. - * These descriptors are only provided for the files listed in - * files_to_generate. - * - * @generated from field: repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17; - */ - sourceFileDescriptors?: FileDescriptorProtoJson[]; - /** - * The version number of protocol compiler. - * - * @generated from field: optional google.protobuf.compiler.Version compiler_version = 3; - */ - compilerVersion?: VersionJson; -}; -/** - * Describes the message google.protobuf.compiler.CodeGeneratorRequest. - * Use `create(CodeGeneratorRequestSchema)` to create a new message. - */ -export declare const CodeGeneratorRequestSchema: GenMessage; -/** - * The plugin writes an encoded CodeGeneratorResponse to stdout. - * - * @generated from message google.protobuf.compiler.CodeGeneratorResponse - */ -export type CodeGeneratorResponse = Message<"google.protobuf.compiler.CodeGeneratorResponse"> & { - /** - * Error message. If non-empty, code generation failed. The plugin process - * should exit with status code zero even if it reports an error in this way. - * - * This should be used to indicate errors in .proto files which prevent the - * code generator from generating correct code. Errors which indicate a - * problem in protoc itself -- such as the input CodeGeneratorRequest being - * unparseable -- should be reported by writing a message to stderr and - * exiting with a non-zero status code. - * - * @generated from field: optional string error = 1; - */ - error: string; - /** - * A bitmask of supported features that the code generator supports. - * This is a bitwise "or" of values from the Feature enum. - * - * @generated from field: optional uint64 supported_features = 2; - */ - supportedFeatures: bigint; - /** - * The minimum edition this plugin supports. This will be treated as an - * Edition enum, but we want to allow unknown values. It should be specified - * according the edition enum value, *not* the edition number. Only takes - * effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. - * - * @generated from field: optional int32 minimum_edition = 3; - */ - minimumEdition: number; - /** - * The maximum edition this plugin supports. This will be treated as an - * Edition enum, but we want to allow unknown values. It should be specified - * according the edition enum value, *not* the edition number. Only takes - * effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. - * - * @generated from field: optional int32 maximum_edition = 4; - */ - maximumEdition: number; - /** - * @generated from field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15; - */ - file: CodeGeneratorResponse_File[]; -}; -/** - * The plugin writes an encoded CodeGeneratorResponse to stdout. - * - * @generated from message google.protobuf.compiler.CodeGeneratorResponse - */ -export type CodeGeneratorResponseJson = { - /** - * Error message. If non-empty, code generation failed. The plugin process - * should exit with status code zero even if it reports an error in this way. - * - * This should be used to indicate errors in .proto files which prevent the - * code generator from generating correct code. Errors which indicate a - * problem in protoc itself -- such as the input CodeGeneratorRequest being - * unparseable -- should be reported by writing a message to stderr and - * exiting with a non-zero status code. - * - * @generated from field: optional string error = 1; - */ - error?: string; - /** - * A bitmask of supported features that the code generator supports. - * This is a bitwise "or" of values from the Feature enum. - * - * @generated from field: optional uint64 supported_features = 2; - */ - supportedFeatures?: string; - /** - * The minimum edition this plugin supports. This will be treated as an - * Edition enum, but we want to allow unknown values. It should be specified - * according the edition enum value, *not* the edition number. Only takes - * effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. - * - * @generated from field: optional int32 minimum_edition = 3; - */ - minimumEdition?: number; - /** - * The maximum edition this plugin supports. This will be treated as an - * Edition enum, but we want to allow unknown values. It should be specified - * according the edition enum value, *not* the edition number. Only takes - * effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. - * - * @generated from field: optional int32 maximum_edition = 4; - */ - maximumEdition?: number; - /** - * @generated from field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15; - */ - file?: CodeGeneratorResponse_FileJson[]; -}; -/** - * Describes the message google.protobuf.compiler.CodeGeneratorResponse. - * Use `create(CodeGeneratorResponseSchema)` to create a new message. - */ -export declare const CodeGeneratorResponseSchema: GenMessage; -/** - * Represents a single generated file. - * - * @generated from message google.protobuf.compiler.CodeGeneratorResponse.File - */ -export type CodeGeneratorResponse_File = Message<"google.protobuf.compiler.CodeGeneratorResponse.File"> & { - /** - * The file name, relative to the output directory. The name must not - * contain "." or ".." components and must be relative, not be absolute (so, - * the file cannot lie outside the output directory). "/" must be used as - * the path separator, not "\". - * - * If the name is omitted, the content will be appended to the previous - * file. This allows the generator to break large files into small chunks, - * and allows the generated text to be streamed back to protoc so that large - * files need not reside completely in memory at one time. Note that as of - * this writing protoc does not optimize for this -- it will read the entire - * CodeGeneratorResponse before writing files to disk. - * - * @generated from field: optional string name = 1; - */ - name: string; - /** - * If non-empty, indicates that the named file should already exist, and the - * content here is to be inserted into that file at a defined insertion - * point. This feature allows a code generator to extend the output - * produced by another code generator. The original generator may provide - * insertion points by placing special annotations in the file that look - * like: - * @@protoc_insertion_point(NAME) - * The annotation can have arbitrary text before and after it on the line, - * which allows it to be placed in a comment. NAME should be replaced with - * an identifier naming the point -- this is what other generators will use - * as the insertion_point. Code inserted at this point will be placed - * immediately above the line containing the insertion point (thus multiple - * insertions to the same point will come out in the order they were added). - * The double-@ is intended to make it unlikely that the generated code - * could contain things that look like insertion points by accident. - * - * For example, the C++ code generator places the following line in the - * .pb.h files that it generates: - * // @@protoc_insertion_point(namespace_scope) - * This line appears within the scope of the file's package namespace, but - * outside of any particular class. Another plugin can then specify the - * insertion_point "namespace_scope" to generate additional classes or - * other declarations that should be placed in this scope. - * - * Note that if the line containing the insertion point begins with - * whitespace, the same whitespace will be added to every line of the - * inserted text. This is useful for languages like Python, where - * indentation matters. In these languages, the insertion point comment - * should be indented the same amount as any inserted code will need to be - * in order to work correctly in that context. - * - * The code generator that generates the initial file and the one which - * inserts into it must both run as part of a single invocation of protoc. - * Code generators are executed in the order in which they appear on the - * command line. - * - * If |insertion_point| is present, |name| must also be present. - * - * @generated from field: optional string insertion_point = 2; - */ - insertionPoint: string; - /** - * The file contents. - * - * @generated from field: optional string content = 15; - */ - content: string; - /** - * Information describing the file content being inserted. If an insertion - * point is used, this information will be appropriately offset and inserted - * into the code generation metadata for the generated files. - * - * @generated from field: optional google.protobuf.GeneratedCodeInfo generated_code_info = 16; - */ - generatedCodeInfo?: GeneratedCodeInfo; -}; -/** - * Represents a single generated file. - * - * @generated from message google.protobuf.compiler.CodeGeneratorResponse.File - */ -export type CodeGeneratorResponse_FileJson = { - /** - * The file name, relative to the output directory. The name must not - * contain "." or ".." components and must be relative, not be absolute (so, - * the file cannot lie outside the output directory). "/" must be used as - * the path separator, not "\". - * - * If the name is omitted, the content will be appended to the previous - * file. This allows the generator to break large files into small chunks, - * and allows the generated text to be streamed back to protoc so that large - * files need not reside completely in memory at one time. Note that as of - * this writing protoc does not optimize for this -- it will read the entire - * CodeGeneratorResponse before writing files to disk. - * - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * If non-empty, indicates that the named file should already exist, and the - * content here is to be inserted into that file at a defined insertion - * point. This feature allows a code generator to extend the output - * produced by another code generator. The original generator may provide - * insertion points by placing special annotations in the file that look - * like: - * @@protoc_insertion_point(NAME) - * The annotation can have arbitrary text before and after it on the line, - * which allows it to be placed in a comment. NAME should be replaced with - * an identifier naming the point -- this is what other generators will use - * as the insertion_point. Code inserted at this point will be placed - * immediately above the line containing the insertion point (thus multiple - * insertions to the same point will come out in the order they were added). - * The double-@ is intended to make it unlikely that the generated code - * could contain things that look like insertion points by accident. - * - * For example, the C++ code generator places the following line in the - * .pb.h files that it generates: - * // @@protoc_insertion_point(namespace_scope) - * This line appears within the scope of the file's package namespace, but - * outside of any particular class. Another plugin can then specify the - * insertion_point "namespace_scope" to generate additional classes or - * other declarations that should be placed in this scope. - * - * Note that if the line containing the insertion point begins with - * whitespace, the same whitespace will be added to every line of the - * inserted text. This is useful for languages like Python, where - * indentation matters. In these languages, the insertion point comment - * should be indented the same amount as any inserted code will need to be - * in order to work correctly in that context. - * - * The code generator that generates the initial file and the one which - * inserts into it must both run as part of a single invocation of protoc. - * Code generators are executed in the order in which they appear on the - * command line. - * - * If |insertion_point| is present, |name| must also be present. - * - * @generated from field: optional string insertion_point = 2; - */ - insertionPoint?: string; - /** - * The file contents. - * - * @generated from field: optional string content = 15; - */ - content?: string; - /** - * Information describing the file content being inserted. If an insertion - * point is used, this information will be appropriately offset and inserted - * into the code generation metadata for the generated files. - * - * @generated from field: optional google.protobuf.GeneratedCodeInfo generated_code_info = 16; - */ - generatedCodeInfo?: GeneratedCodeInfoJson; -}; -/** - * Describes the message google.protobuf.compiler.CodeGeneratorResponse.File. - * Use `create(CodeGeneratorResponse_FileSchema)` to create a new message. - */ -export declare const CodeGeneratorResponse_FileSchema: GenMessage; -/** - * Sync with code_generator.h. - * - * @generated from enum google.protobuf.compiler.CodeGeneratorResponse.Feature - */ -export declare enum CodeGeneratorResponse_Feature { - /** - * @generated from enum value: FEATURE_NONE = 0; - */ - NONE = 0, - /** - * @generated from enum value: FEATURE_PROTO3_OPTIONAL = 1; - */ - PROTO3_OPTIONAL = 1, - /** - * @generated from enum value: FEATURE_SUPPORTS_EDITIONS = 2; - */ - SUPPORTS_EDITIONS = 2 -} -/** - * Sync with code_generator.h. - * - * @generated from enum google.protobuf.compiler.CodeGeneratorResponse.Feature - */ -export type CodeGeneratorResponse_FeatureJson = "FEATURE_NONE" | "FEATURE_PROTO3_OPTIONAL" | "FEATURE_SUPPORTS_EDITIONS"; -/** - * Describes the enum google.protobuf.compiler.CodeGeneratorResponse.Feature. - */ -export declare const CodeGeneratorResponse_FeatureSchema: GenEnum; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js deleted file mode 100644 index 2ff5d79..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../../codegenv2/file.js"; -import { file_google_protobuf_descriptor } from "../descriptor_pb.js"; -import { messageDesc } from "../../../../../codegenv2/message.js"; -import { enumDesc } from "../../../../../codegenv2/enum.js"; -/** - * Describes the file google/protobuf/compiler/plugin.proto. - */ -export const file_google_protobuf_compiler_plugin = /*@__PURE__*/ fileDesc("CiVnb29nbGUvcHJvdG9idWYvY29tcGlsZXIvcGx1Z2luLnByb3RvEhhnb29nbGUucHJvdG9idWYuY29tcGlsZXIiRgoHVmVyc2lvbhINCgVtYWpvchgBIAEoBRINCgVtaW5vchgCIAEoBRINCgVwYXRjaBgDIAEoBRIOCgZzdWZmaXgYBCABKAkigQIKFENvZGVHZW5lcmF0b3JSZXF1ZXN0EhgKEGZpbGVfdG9fZ2VuZXJhdGUYASADKAkSEQoJcGFyYW1ldGVyGAIgASgJEjgKCnByb3RvX2ZpbGUYDyADKAsyJC5nb29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90bxJFChdzb3VyY2VfZmlsZV9kZXNjcmlwdG9ycxgRIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5GaWxlRGVzY3JpcHRvclByb3RvEjsKEGNvbXBpbGVyX3ZlcnNpb24YAyABKAsyIS5nb29nbGUucHJvdG9idWYuY29tcGlsZXIuVmVyc2lvbiKSAwoVQ29kZUdlbmVyYXRvclJlc3BvbnNlEg0KBWVycm9yGAEgASgJEhoKEnN1cHBvcnRlZF9mZWF0dXJlcxgCIAEoBBIXCg9taW5pbXVtX2VkaXRpb24YAyABKAUSFwoPbWF4aW11bV9lZGl0aW9uGAQgASgFEkIKBGZpbGUYDyADKAsyNC5nb29nbGUucHJvdG9idWYuY29tcGlsZXIuQ29kZUdlbmVyYXRvclJlc3BvbnNlLkZpbGUafwoERmlsZRIMCgRuYW1lGAEgASgJEhcKD2luc2VydGlvbl9wb2ludBgCIAEoCRIPCgdjb250ZW50GA8gASgJEj8KE2dlbmVyYXRlZF9jb2RlX2luZm8YECABKAsyIi5nb29nbGUucHJvdG9idWYuR2VuZXJhdGVkQ29kZUluZm8iVwoHRmVhdHVyZRIQCgxGRUFUVVJFX05PTkUQABIbChdGRUFUVVJFX1BST1RPM19PUFRJT05BTBABEh0KGUZFQVRVUkVfU1VQUE9SVFNfRURJVElPTlMQAkJyChxjb20uZ29vZ2xlLnByb3RvYnVmLmNvbXBpbGVyQgxQbHVnaW5Qcm90b3NaKWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL3BsdWdpbnBiqgIYR29vZ2xlLlByb3RvYnVmLkNvbXBpbGVy", [file_google_protobuf_descriptor]); -/** - * Describes the message google.protobuf.compiler.Version. - * Use `create(VersionSchema)` to create a new message. - */ -export const VersionSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_compiler_plugin, 0); -/** - * Describes the message google.protobuf.compiler.CodeGeneratorRequest. - * Use `create(CodeGeneratorRequestSchema)` to create a new message. - */ -export const CodeGeneratorRequestSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_compiler_plugin, 1); -/** - * Describes the message google.protobuf.compiler.CodeGeneratorResponse. - * Use `create(CodeGeneratorResponseSchema)` to create a new message. - */ -export const CodeGeneratorResponseSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_compiler_plugin, 2); -/** - * Describes the message google.protobuf.compiler.CodeGeneratorResponse.File. - * Use `create(CodeGeneratorResponse_FileSchema)` to create a new message. - */ -export const CodeGeneratorResponse_FileSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_compiler_plugin, 2, 0); -/** - * Sync with code_generator.h. - * - * @generated from enum google.protobuf.compiler.CodeGeneratorResponse.Feature - */ -export var CodeGeneratorResponse_Feature; -(function (CodeGeneratorResponse_Feature) { - /** - * @generated from enum value: FEATURE_NONE = 0; - */ - CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["NONE"] = 0] = "NONE"; - /** - * @generated from enum value: FEATURE_PROTO3_OPTIONAL = 1; - */ - CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["PROTO3_OPTIONAL"] = 1] = "PROTO3_OPTIONAL"; - /** - * @generated from enum value: FEATURE_SUPPORTS_EDITIONS = 2; - */ - CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["SUPPORTS_EDITIONS"] = 2] = "SUPPORTS_EDITIONS"; -})(CodeGeneratorResponse_Feature || (CodeGeneratorResponse_Feature = {})); -/** - * Describes the enum google.protobuf.compiler.CodeGeneratorResponse.Feature. - */ -export const CodeGeneratorResponse_FeatureSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_compiler_plugin, 2, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.d.ts deleted file mode 100644 index 7da3c6d..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -import type { GenEnum, GenExtension, GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { FeatureSet } from "./descriptor_pb.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/cpp_features.proto. - */ -export declare const file_google_protobuf_cpp_features: GenFile; -/** - * @generated from message pb.CppFeatures - */ -export type CppFeatures = Message<"pb.CppFeatures"> & { - /** - * Whether or not to treat an enum field as closed. This option is only - * applicable to enum fields, and will be removed in the future. It is - * consistent with the legacy behavior of using proto3 enum types for proto2 - * fields. - * - * @generated from field: optional bool legacy_closed_enum = 1; - */ - legacyClosedEnum: boolean; - /** - * @generated from field: optional pb.CppFeatures.StringType string_type = 2; - */ - stringType: CppFeatures_StringType; - /** - * @generated from field: optional bool enum_name_uses_string_view = 3; - */ - enumNameUsesStringView: boolean; -}; -/** - * @generated from message pb.CppFeatures - */ -export type CppFeaturesJson = { - /** - * Whether or not to treat an enum field as closed. This option is only - * applicable to enum fields, and will be removed in the future. It is - * consistent with the legacy behavior of using proto3 enum types for proto2 - * fields. - * - * @generated from field: optional bool legacy_closed_enum = 1; - */ - legacyClosedEnum?: boolean; - /** - * @generated from field: optional pb.CppFeatures.StringType string_type = 2; - */ - stringType?: CppFeatures_StringTypeJson; - /** - * @generated from field: optional bool enum_name_uses_string_view = 3; - */ - enumNameUsesStringView?: boolean; -}; -/** - * Describes the message pb.CppFeatures. - * Use `create(CppFeaturesSchema)` to create a new message. - */ -export declare const CppFeaturesSchema: GenMessage; -/** - * @generated from enum pb.CppFeatures.StringType - */ -export declare enum CppFeatures_StringType { - /** - * @generated from enum value: STRING_TYPE_UNKNOWN = 0; - */ - STRING_TYPE_UNKNOWN = 0, - /** - * @generated from enum value: VIEW = 1; - */ - VIEW = 1, - /** - * @generated from enum value: CORD = 2; - */ - CORD = 2, - /** - * @generated from enum value: STRING = 3; - */ - STRING = 3 -} -/** - * @generated from enum pb.CppFeatures.StringType - */ -export type CppFeatures_StringTypeJson = "STRING_TYPE_UNKNOWN" | "VIEW" | "CORD" | "STRING"; -/** - * Describes the enum pb.CppFeatures.StringType. - */ -export declare const CppFeatures_StringTypeSchema: GenEnum; -/** - * @generated from extension: optional pb.CppFeatures cpp = 1000; - */ -export declare const cpp: GenExtension; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js deleted file mode 100644 index bb67c6d..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../codegenv2/file.js"; -import { file_google_protobuf_descriptor } from "./descriptor_pb.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -import { enumDesc } from "../../../../codegenv2/enum.js"; -import { extDesc } from "../../../../codegenv2/extension.js"; -/** - * Describes the file google/protobuf/cpp_features.proto. - */ -export const file_google_protobuf_cpp_features = /*@__PURE__*/ fileDesc("CiJnb29nbGUvcHJvdG9idWYvY3BwX2ZlYXR1cmVzLnByb3RvEgJwYiL8AwoLQ3BwRmVhdHVyZXMS+wEKEmxlZ2FjeV9jbG9zZWRfZW51bRgBIAEoCELeAYgBAZgBBJgBAaIBCRIEdHJ1ZRiEB6IBChIFZmFsc2UY5weyAbgBCOgHEOgHGq8BVGhlIGxlZ2FjeSBjbG9zZWQgZW51bSBiZWhhdmlvciBpbiBDKysgaXMgZGVwcmVjYXRlZCBhbmQgaXMgc2NoZWR1bGVkIHRvIGJlIHJlbW92ZWQgaW4gZWRpdGlvbiAyMDI1LiAgU2VlIGh0dHA6Ly9wcm90b2J1Zi5kZXYvcHJvZ3JhbW1pbmctZ3VpZGVzL2VudW0vI2NwcCBmb3IgbW9yZSBpbmZvcm1hdGlvbhJaCgtzdHJpbmdfdHlwZRgCIAEoDjIaLnBiLkNwcEZlYXR1cmVzLlN0cmluZ1R5cGVCKYgBAZgBBJgBAaIBCxIGU1RSSU5HGIQHogEJEgRWSUVXGOkHsgEDCOgHEkwKGmVudW1fbmFtZV91c2VzX3N0cmluZ192aWV3GAMgASgIQiiIAQGYAQaYAQGiAQoSBWZhbHNlGIQHogEJEgR0cnVlGOkHsgEDCOkHIkUKClN0cmluZ1R5cGUSFwoTU1RSSU5HX1RZUEVfVU5LTk9XThAAEggKBFZJRVcQARIICgRDT1JEEAISCgoGU1RSSU5HEAM6PwoDY3BwEhsuZ29vZ2xlLnByb3RvYnVmLkZlYXR1cmVTZXQY6AcgASgLMg8ucGIuQ3BwRmVhdHVyZXNSA2NwcA", [file_google_protobuf_descriptor]); -/** - * Describes the message pb.CppFeatures. - * Use `create(CppFeaturesSchema)` to create a new message. - */ -export const CppFeaturesSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_cpp_features, 0); -/** - * @generated from enum pb.CppFeatures.StringType - */ -export var CppFeatures_StringType; -(function (CppFeatures_StringType) { - /** - * @generated from enum value: STRING_TYPE_UNKNOWN = 0; - */ - CppFeatures_StringType[CppFeatures_StringType["STRING_TYPE_UNKNOWN"] = 0] = "STRING_TYPE_UNKNOWN"; - /** - * @generated from enum value: VIEW = 1; - */ - CppFeatures_StringType[CppFeatures_StringType["VIEW"] = 1] = "VIEW"; - /** - * @generated from enum value: CORD = 2; - */ - CppFeatures_StringType[CppFeatures_StringType["CORD"] = 2] = "CORD"; - /** - * @generated from enum value: STRING = 3; - */ - CppFeatures_StringType[CppFeatures_StringType["STRING"] = 3] = "STRING"; -})(CppFeatures_StringType || (CppFeatures_StringType = {})); -/** - * Describes the enum pb.CppFeatures.StringType. - */ -export const CppFeatures_StringTypeSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_cpp_features, 0, 0); -/** - * @generated from extension: optional pb.CppFeatures cpp = 1000; - */ -export const cpp = /*@__PURE__*/ extDesc(file_google_protobuf_cpp_features, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts deleted file mode 100644 index d0ae9dd..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts +++ /dev/null @@ -1,4123 +0,0 @@ -import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/descriptor.proto. - */ -export declare const file_google_protobuf_descriptor: GenFile; -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - * - * @generated from message google.protobuf.FileDescriptorSet - */ -export type FileDescriptorSet = Message<"google.protobuf.FileDescriptorSet"> & { - /** - * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1; - */ - file: FileDescriptorProto[]; -}; -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - * - * @generated from message google.protobuf.FileDescriptorSet - */ -export type FileDescriptorSetJson = { - /** - * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1; - */ - file?: FileDescriptorProtoJson[]; -}; -/** - * Describes the message google.protobuf.FileDescriptorSet. - * Use `create(FileDescriptorSetSchema)` to create a new message. - */ -export declare const FileDescriptorSetSchema: GenMessage; -/** - * Describes a complete .proto file. - * - * @generated from message google.protobuf.FileDescriptorProto - */ -export type FileDescriptorProto = Message<"google.protobuf.FileDescriptorProto"> & { - /** - * file name, relative to root of source tree - * - * @generated from field: optional string name = 1; - */ - name: string; - /** - * e.g. "foo", "foo.bar", etc. - * - * @generated from field: optional string package = 2; - */ - package: string; - /** - * Names of files imported by this file. - * - * @generated from field: repeated string dependency = 3; - */ - dependency: string[]; - /** - * Indexes of the public imported files in the dependency list above. - * - * @generated from field: repeated int32 public_dependency = 10; - */ - publicDependency: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - * - * @generated from field: repeated int32 weak_dependency = 11; - */ - weakDependency: number[]; - /** - * Names of files imported by this file purely for the purpose of providing - * option extensions. These are excluded from the dependency list above. - * - * @generated from field: repeated string option_dependency = 15; - */ - optionDependency: string[]; - /** - * All top-level definitions in this file. - * - * @generated from field: repeated google.protobuf.DescriptorProto message_type = 4; - */ - messageType: DescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 5; - */ - enumType: EnumDescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.ServiceDescriptorProto service = 6; - */ - service: ServiceDescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7; - */ - extension: FieldDescriptorProto[]; - /** - * @generated from field: optional google.protobuf.FileOptions options = 8; - */ - options?: FileOptions; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - * - * @generated from field: optional google.protobuf.SourceCodeInfo source_code_info = 9; - */ - sourceCodeInfo?: SourceCodeInfo; - /** - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional string syntax = 12; - */ - syntax: string; - /** - * The edition of the proto file. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.Edition edition = 14; - */ - edition: Edition; -}; -/** - * Describes a complete .proto file. - * - * @generated from message google.protobuf.FileDescriptorProto - */ -export type FileDescriptorProtoJson = { - /** - * file name, relative to root of source tree - * - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * e.g. "foo", "foo.bar", etc. - * - * @generated from field: optional string package = 2; - */ - package?: string; - /** - * Names of files imported by this file. - * - * @generated from field: repeated string dependency = 3; - */ - dependency?: string[]; - /** - * Indexes of the public imported files in the dependency list above. - * - * @generated from field: repeated int32 public_dependency = 10; - */ - publicDependency?: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - * - * @generated from field: repeated int32 weak_dependency = 11; - */ - weakDependency?: number[]; - /** - * Names of files imported by this file purely for the purpose of providing - * option extensions. These are excluded from the dependency list above. - * - * @generated from field: repeated string option_dependency = 15; - */ - optionDependency?: string[]; - /** - * All top-level definitions in this file. - * - * @generated from field: repeated google.protobuf.DescriptorProto message_type = 4; - */ - messageType?: DescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 5; - */ - enumType?: EnumDescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.ServiceDescriptorProto service = 6; - */ - service?: ServiceDescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7; - */ - extension?: FieldDescriptorProtoJson[]; - /** - * @generated from field: optional google.protobuf.FileOptions options = 8; - */ - options?: FileOptionsJson; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - * - * @generated from field: optional google.protobuf.SourceCodeInfo source_code_info = 9; - */ - sourceCodeInfo?: SourceCodeInfoJson; - /** - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional string syntax = 12; - */ - syntax?: string; - /** - * The edition of the proto file. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.Edition edition = 14; - */ - edition?: EditionJson; -}; -/** - * Describes the message google.protobuf.FileDescriptorProto. - * Use `create(FileDescriptorProtoSchema)` to create a new message. - */ -export declare const FileDescriptorProtoSchema: GenMessage; -/** - * Describes a message type. - * - * @generated from message google.protobuf.DescriptorProto - */ -export type DescriptorProto = Message<"google.protobuf.DescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * @generated from field: repeated google.protobuf.FieldDescriptorProto field = 2; - */ - field: FieldDescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 6; - */ - extension: FieldDescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.DescriptorProto nested_type = 3; - */ - nestedType: DescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 4; - */ - enumType: EnumDescriptorProto[]; - /** - * @generated from field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - extensionRange: DescriptorProto_ExtensionRange[]; - /** - * @generated from field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - oneofDecl: OneofDescriptorProto[]; - /** - * @generated from field: optional google.protobuf.MessageOptions options = 7; - */ - options?: MessageOptions; - /** - * @generated from field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - reservedRange: DescriptorProto_ReservedRange[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - * - * @generated from field: repeated string reserved_name = 10; - */ - reservedName: string[]; - /** - * Support for `export` and `local` keywords on enums. - * - * @generated from field: optional google.protobuf.SymbolVisibility visibility = 11; - */ - visibility: SymbolVisibility; -}; -/** - * Describes a message type. - * - * @generated from message google.protobuf.DescriptorProto - */ -export type DescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * @generated from field: repeated google.protobuf.FieldDescriptorProto field = 2; - */ - field?: FieldDescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 6; - */ - extension?: FieldDescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.DescriptorProto nested_type = 3; - */ - nestedType?: DescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 4; - */ - enumType?: EnumDescriptorProtoJson[]; - /** - * @generated from field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - extensionRange?: DescriptorProto_ExtensionRangeJson[]; - /** - * @generated from field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - oneofDecl?: OneofDescriptorProtoJson[]; - /** - * @generated from field: optional google.protobuf.MessageOptions options = 7; - */ - options?: MessageOptionsJson; - /** - * @generated from field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - reservedRange?: DescriptorProto_ReservedRangeJson[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - * - * @generated from field: repeated string reserved_name = 10; - */ - reservedName?: string[]; - /** - * Support for `export` and `local` keywords on enums. - * - * @generated from field: optional google.protobuf.SymbolVisibility visibility = 11; - */ - visibility?: SymbolVisibilityJson; -}; -/** - * Describes the message google.protobuf.DescriptorProto. - * Use `create(DescriptorProtoSchema)` to create a new message. - */ -export declare const DescriptorProtoSchema: GenMessage; -/** - * @generated from message google.protobuf.DescriptorProto.ExtensionRange - */ -export type DescriptorProto_ExtensionRange = Message<"google.protobuf.DescriptorProto.ExtensionRange"> & { - /** - * Inclusive. - * - * @generated from field: optional int32 start = 1; - */ - start: number; - /** - * Exclusive. - * - * @generated from field: optional int32 end = 2; - */ - end: number; - /** - * @generated from field: optional google.protobuf.ExtensionRangeOptions options = 3; - */ - options?: ExtensionRangeOptions; -}; -/** - * @generated from message google.protobuf.DescriptorProto.ExtensionRange - */ -export type DescriptorProto_ExtensionRangeJson = { - /** - * Inclusive. - * - * @generated from field: optional int32 start = 1; - */ - start?: number; - /** - * Exclusive. - * - * @generated from field: optional int32 end = 2; - */ - end?: number; - /** - * @generated from field: optional google.protobuf.ExtensionRangeOptions options = 3; - */ - options?: ExtensionRangeOptionsJson; -}; -/** - * Describes the message google.protobuf.DescriptorProto.ExtensionRange. - * Use `create(DescriptorProto_ExtensionRangeSchema)` to create a new message. - */ -export declare const DescriptorProto_ExtensionRangeSchema: GenMessage; -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - * - * @generated from message google.protobuf.DescriptorProto.ReservedRange - */ -export type DescriptorProto_ReservedRange = Message<"google.protobuf.DescriptorProto.ReservedRange"> & { - /** - * Inclusive. - * - * @generated from field: optional int32 start = 1; - */ - start: number; - /** - * Exclusive. - * - * @generated from field: optional int32 end = 2; - */ - end: number; -}; -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - * - * @generated from message google.protobuf.DescriptorProto.ReservedRange - */ -export type DescriptorProto_ReservedRangeJson = { - /** - * Inclusive. - * - * @generated from field: optional int32 start = 1; - */ - start?: number; - /** - * Exclusive. - * - * @generated from field: optional int32 end = 2; - */ - end?: number; -}; -/** - * Describes the message google.protobuf.DescriptorProto.ReservedRange. - * Use `create(DescriptorProto_ReservedRangeSchema)` to create a new message. - */ -export declare const DescriptorProto_ReservedRangeSchema: GenMessage; -/** - * @generated from message google.protobuf.ExtensionRangeOptions - */ -export type ExtensionRangeOptions = Message<"google.protobuf.ExtensionRangeOptions"> & { - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; - /** - * For external users: DO NOT USE. We are in the process of open sourcing - * extension declaration and executing internal cleanups before it can be - * used externally. - * - * @generated from field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; - */ - declaration: ExtensionRangeOptions_Declaration[]; - /** - * Any features defined in the specific edition. - * - * @generated from field: optional google.protobuf.FeatureSet features = 50; - */ - features?: FeatureSet; - /** - * The verification state of the range. - * TODO: flip the default to DECLARATION once all empty ranges - * are marked as UNVERIFIED. - * - * @generated from field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED]; - */ - verification: ExtensionRangeOptions_VerificationState; -}; -/** - * @generated from message google.protobuf.ExtensionRangeOptions - */ -export type ExtensionRangeOptionsJson = { - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; - /** - * For external users: DO NOT USE. We are in the process of open sourcing - * extension declaration and executing internal cleanups before it can be - * used externally. - * - * @generated from field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; - */ - declaration?: ExtensionRangeOptions_DeclarationJson[]; - /** - * Any features defined in the specific edition. - * - * @generated from field: optional google.protobuf.FeatureSet features = 50; - */ - features?: FeatureSetJson; - /** - * The verification state of the range. - * TODO: flip the default to DECLARATION once all empty ranges - * are marked as UNVERIFIED. - * - * @generated from field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED]; - */ - verification?: ExtensionRangeOptions_VerificationStateJson; -}; -/** - * Describes the message google.protobuf.ExtensionRangeOptions. - * Use `create(ExtensionRangeOptionsSchema)` to create a new message. - */ -export declare const ExtensionRangeOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.ExtensionRangeOptions.Declaration - */ -export type ExtensionRangeOptions_Declaration = Message<"google.protobuf.ExtensionRangeOptions.Declaration"> & { - /** - * The extension number declared within the extension range. - * - * @generated from field: optional int32 number = 1; - */ - number: number; - /** - * The fully-qualified name of the extension field. There must be a leading - * dot in front of the full name. - * - * @generated from field: optional string full_name = 2; - */ - fullName: string; - /** - * The fully-qualified type name of the extension field. Unlike - * Metadata.type, Declaration.type must have a leading dot for messages - * and enums. - * - * @generated from field: optional string type = 3; - */ - type: string; - /** - * If true, indicates that the number is reserved in the extension range, - * and any extension field with the number will fail to compile. Set this - * when a declared extension field is deleted. - * - * @generated from field: optional bool reserved = 5; - */ - reserved: boolean; - /** - * If true, indicates that the extension must be defined as repeated. - * Otherwise the extension must be defined as optional. - * - * @generated from field: optional bool repeated = 6; - */ - repeated: boolean; -}; -/** - * @generated from message google.protobuf.ExtensionRangeOptions.Declaration - */ -export type ExtensionRangeOptions_DeclarationJson = { - /** - * The extension number declared within the extension range. - * - * @generated from field: optional int32 number = 1; - */ - number?: number; - /** - * The fully-qualified name of the extension field. There must be a leading - * dot in front of the full name. - * - * @generated from field: optional string full_name = 2; - */ - fullName?: string; - /** - * The fully-qualified type name of the extension field. Unlike - * Metadata.type, Declaration.type must have a leading dot for messages - * and enums. - * - * @generated from field: optional string type = 3; - */ - type?: string; - /** - * If true, indicates that the number is reserved in the extension range, - * and any extension field with the number will fail to compile. Set this - * when a declared extension field is deleted. - * - * @generated from field: optional bool reserved = 5; - */ - reserved?: boolean; - /** - * If true, indicates that the extension must be defined as repeated. - * Otherwise the extension must be defined as optional. - * - * @generated from field: optional bool repeated = 6; - */ - repeated?: boolean; -}; -/** - * Describes the message google.protobuf.ExtensionRangeOptions.Declaration. - * Use `create(ExtensionRangeOptions_DeclarationSchema)` to create a new message. - */ -export declare const ExtensionRangeOptions_DeclarationSchema: GenMessage; -/** - * The verification state of the extension range. - * - * @generated from enum google.protobuf.ExtensionRangeOptions.VerificationState - */ -export declare enum ExtensionRangeOptions_VerificationState { - /** - * All the extensions of the range must be declared. - * - * @generated from enum value: DECLARATION = 0; - */ - DECLARATION = 0, - /** - * @generated from enum value: UNVERIFIED = 1; - */ - UNVERIFIED = 1 -} -/** - * The verification state of the extension range. - * - * @generated from enum google.protobuf.ExtensionRangeOptions.VerificationState - */ -export type ExtensionRangeOptions_VerificationStateJson = "DECLARATION" | "UNVERIFIED"; -/** - * Describes the enum google.protobuf.ExtensionRangeOptions.VerificationState. - */ -export declare const ExtensionRangeOptions_VerificationStateSchema: GenEnum; -/** - * Describes a field within a message. - * - * @generated from message google.protobuf.FieldDescriptorProto - */ -export type FieldDescriptorProto = Message<"google.protobuf.FieldDescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * @generated from field: optional int32 number = 3; - */ - number: number; - /** - * @generated from field: optional google.protobuf.FieldDescriptorProto.Label label = 4; - */ - label: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - * - * @generated from field: optional google.protobuf.FieldDescriptorProto.Type type = 5; - */ - type: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - * - * @generated from field: optional string type_name = 6; - */ - typeName: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - * - * @generated from field: optional string extendee = 2; - */ - extendee: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * - * @generated from field: optional string default_value = 7; - */ - defaultValue: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - * - * @generated from field: optional int32 oneof_index = 9; - */ - oneofIndex: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - * - * @generated from field: optional string json_name = 10; - */ - jsonName: string; - /** - * @generated from field: optional google.protobuf.FieldOptions options = 8; - */ - options?: FieldOptions; - /** - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must belong to a oneof to signal - * to old proto3 clients that presence is tracked for this field. This oneof - * is known as a "synthetic" oneof, and this field must be its sole member - * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs - * exist in the descriptor only, and do not generate any API. Synthetic oneofs - * must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - * - * @generated from field: optional bool proto3_optional = 17; - */ - proto3Optional: boolean; -}; -/** - * Describes a field within a message. - * - * @generated from message google.protobuf.FieldDescriptorProto - */ -export type FieldDescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * @generated from field: optional int32 number = 3; - */ - number?: number; - /** - * @generated from field: optional google.protobuf.FieldDescriptorProto.Label label = 4; - */ - label?: FieldDescriptorProto_LabelJson; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - * - * @generated from field: optional google.protobuf.FieldDescriptorProto.Type type = 5; - */ - type?: FieldDescriptorProto_TypeJson; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - * - * @generated from field: optional string type_name = 6; - */ - typeName?: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - * - * @generated from field: optional string extendee = 2; - */ - extendee?: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * - * @generated from field: optional string default_value = 7; - */ - defaultValue?: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - * - * @generated from field: optional int32 oneof_index = 9; - */ - oneofIndex?: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - * - * @generated from field: optional string json_name = 10; - */ - jsonName?: string; - /** - * @generated from field: optional google.protobuf.FieldOptions options = 8; - */ - options?: FieldOptionsJson; - /** - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must belong to a oneof to signal - * to old proto3 clients that presence is tracked for this field. This oneof - * is known as a "synthetic" oneof, and this field must be its sole member - * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs - * exist in the descriptor only, and do not generate any API. Synthetic oneofs - * must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - * - * @generated from field: optional bool proto3_optional = 17; - */ - proto3Optional?: boolean; -}; -/** - * Describes the message google.protobuf.FieldDescriptorProto. - * Use `create(FieldDescriptorProtoSchema)` to create a new message. - */ -export declare const FieldDescriptorProtoSchema: GenMessage; -/** - * @generated from enum google.protobuf.FieldDescriptorProto.Type - */ -export declare enum FieldDescriptorProto_Type { - /** - * 0 is reserved for errors. - * Order is weird for historical reasons. - * - * @generated from enum value: TYPE_DOUBLE = 1; - */ - DOUBLE = 1, - /** - * @generated from enum value: TYPE_FLOAT = 2; - */ - FLOAT = 2, - /** - * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - * - * @generated from enum value: TYPE_INT64 = 3; - */ - INT64 = 3, - /** - * @generated from enum value: TYPE_UINT64 = 4; - */ - UINT64 = 4, - /** - * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - * - * @generated from enum value: TYPE_INT32 = 5; - */ - INT32 = 5, - /** - * @generated from enum value: TYPE_FIXED64 = 6; - */ - FIXED64 = 6, - /** - * @generated from enum value: TYPE_FIXED32 = 7; - */ - FIXED32 = 7, - /** - * @generated from enum value: TYPE_BOOL = 8; - */ - BOOL = 8, - /** - * @generated from enum value: TYPE_STRING = 9; - */ - STRING = 9, - /** - * Tag-delimited aggregate. - * Group type is deprecated and not supported after google.protobuf. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. In Editions, the group wire format - * can be enabled via the `message_encoding` feature. - * - * @generated from enum value: TYPE_GROUP = 10; - */ - GROUP = 10, - /** - * Length-delimited aggregate. - * - * @generated from enum value: TYPE_MESSAGE = 11; - */ - MESSAGE = 11, - /** - * New in version 2. - * - * @generated from enum value: TYPE_BYTES = 12; - */ - BYTES = 12, - /** - * @generated from enum value: TYPE_UINT32 = 13; - */ - UINT32 = 13, - /** - * @generated from enum value: TYPE_ENUM = 14; - */ - ENUM = 14, - /** - * @generated from enum value: TYPE_SFIXED32 = 15; - */ - SFIXED32 = 15, - /** - * @generated from enum value: TYPE_SFIXED64 = 16; - */ - SFIXED64 = 16, - /** - * Uses ZigZag encoding. - * - * @generated from enum value: TYPE_SINT32 = 17; - */ - SINT32 = 17, - /** - * Uses ZigZag encoding. - * - * @generated from enum value: TYPE_SINT64 = 18; - */ - SINT64 = 18 -} -/** - * @generated from enum google.protobuf.FieldDescriptorProto.Type - */ -export type FieldDescriptorProto_TypeJson = "TYPE_DOUBLE" | "TYPE_FLOAT" | "TYPE_INT64" | "TYPE_UINT64" | "TYPE_INT32" | "TYPE_FIXED64" | "TYPE_FIXED32" | "TYPE_BOOL" | "TYPE_STRING" | "TYPE_GROUP" | "TYPE_MESSAGE" | "TYPE_BYTES" | "TYPE_UINT32" | "TYPE_ENUM" | "TYPE_SFIXED32" | "TYPE_SFIXED64" | "TYPE_SINT32" | "TYPE_SINT64"; -/** - * Describes the enum google.protobuf.FieldDescriptorProto.Type. - */ -export declare const FieldDescriptorProto_TypeSchema: GenEnum; -/** - * @generated from enum google.protobuf.FieldDescriptorProto.Label - */ -export declare enum FieldDescriptorProto_Label { - /** - * 0 is reserved for errors - * - * @generated from enum value: LABEL_OPTIONAL = 1; - */ - OPTIONAL = 1, - /** - * @generated from enum value: LABEL_REPEATED = 3; - */ - REPEATED = 3, - /** - * The required label is only allowed in google.protobuf. In proto3 and Editions - * it's explicitly prohibited. In Editions, the `field_presence` feature - * can be used to get this behavior. - * - * @generated from enum value: LABEL_REQUIRED = 2; - */ - REQUIRED = 2 -} -/** - * @generated from enum google.protobuf.FieldDescriptorProto.Label - */ -export type FieldDescriptorProto_LabelJson = "LABEL_OPTIONAL" | "LABEL_REPEATED" | "LABEL_REQUIRED"; -/** - * Describes the enum google.protobuf.FieldDescriptorProto.Label. - */ -export declare const FieldDescriptorProto_LabelSchema: GenEnum; -/** - * Describes a oneof. - * - * @generated from message google.protobuf.OneofDescriptorProto - */ -export type OneofDescriptorProto = Message<"google.protobuf.OneofDescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * @generated from field: optional google.protobuf.OneofOptions options = 2; - */ - options?: OneofOptions; -}; -/** - * Describes a oneof. - * - * @generated from message google.protobuf.OneofDescriptorProto - */ -export type OneofDescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * @generated from field: optional google.protobuf.OneofOptions options = 2; - */ - options?: OneofOptionsJson; -}; -/** - * Describes the message google.protobuf.OneofDescriptorProto. - * Use `create(OneofDescriptorProtoSchema)` to create a new message. - */ -export declare const OneofDescriptorProtoSchema: GenMessage; -/** - * Describes an enum type. - * - * @generated from message google.protobuf.EnumDescriptorProto - */ -export type EnumDescriptorProto = Message<"google.protobuf.EnumDescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * @generated from field: repeated google.protobuf.EnumValueDescriptorProto value = 2; - */ - value: EnumValueDescriptorProto[]; - /** - * @generated from field: optional google.protobuf.EnumOptions options = 3; - */ - options?: EnumOptions; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - * - * @generated from field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; - */ - reservedRange: EnumDescriptorProto_EnumReservedRange[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - * - * @generated from field: repeated string reserved_name = 5; - */ - reservedName: string[]; - /** - * Support for `export` and `local` keywords on enums. - * - * @generated from field: optional google.protobuf.SymbolVisibility visibility = 6; - */ - visibility: SymbolVisibility; -}; -/** - * Describes an enum type. - * - * @generated from message google.protobuf.EnumDescriptorProto - */ -export type EnumDescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * @generated from field: repeated google.protobuf.EnumValueDescriptorProto value = 2; - */ - value?: EnumValueDescriptorProtoJson[]; - /** - * @generated from field: optional google.protobuf.EnumOptions options = 3; - */ - options?: EnumOptionsJson; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - * - * @generated from field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; - */ - reservedRange?: EnumDescriptorProto_EnumReservedRangeJson[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - * - * @generated from field: repeated string reserved_name = 5; - */ - reservedName?: string[]; - /** - * Support for `export` and `local` keywords on enums. - * - * @generated from field: optional google.protobuf.SymbolVisibility visibility = 6; - */ - visibility?: SymbolVisibilityJson; -}; -/** - * Describes the message google.protobuf.EnumDescriptorProto. - * Use `create(EnumDescriptorProtoSchema)` to create a new message. - */ -export declare const EnumDescriptorProtoSchema: GenMessage; -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - * - * @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange - */ -export type EnumDescriptorProto_EnumReservedRange = Message<"google.protobuf.EnumDescriptorProto.EnumReservedRange"> & { - /** - * Inclusive. - * - * @generated from field: optional int32 start = 1; - */ - start: number; - /** - * Inclusive. - * - * @generated from field: optional int32 end = 2; - */ - end: number; -}; -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - * - * @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange - */ -export type EnumDescriptorProto_EnumReservedRangeJson = { - /** - * Inclusive. - * - * @generated from field: optional int32 start = 1; - */ - start?: number; - /** - * Inclusive. - * - * @generated from field: optional int32 end = 2; - */ - end?: number; -}; -/** - * Describes the message google.protobuf.EnumDescriptorProto.EnumReservedRange. - * Use `create(EnumDescriptorProto_EnumReservedRangeSchema)` to create a new message. - */ -export declare const EnumDescriptorProto_EnumReservedRangeSchema: GenMessage; -/** - * Describes a value within an enum. - * - * @generated from message google.protobuf.EnumValueDescriptorProto - */ -export type EnumValueDescriptorProto = Message<"google.protobuf.EnumValueDescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * @generated from field: optional int32 number = 2; - */ - number: number; - /** - * @generated from field: optional google.protobuf.EnumValueOptions options = 3; - */ - options?: EnumValueOptions; -}; -/** - * Describes a value within an enum. - * - * @generated from message google.protobuf.EnumValueDescriptorProto - */ -export type EnumValueDescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * @generated from field: optional int32 number = 2; - */ - number?: number; - /** - * @generated from field: optional google.protobuf.EnumValueOptions options = 3; - */ - options?: EnumValueOptionsJson; -}; -/** - * Describes the message google.protobuf.EnumValueDescriptorProto. - * Use `create(EnumValueDescriptorProtoSchema)` to create a new message. - */ -export declare const EnumValueDescriptorProtoSchema: GenMessage; -/** - * Describes a service. - * - * @generated from message google.protobuf.ServiceDescriptorProto - */ -export type ServiceDescriptorProto = Message<"google.protobuf.ServiceDescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2; - */ - method: MethodDescriptorProto[]; - /** - * @generated from field: optional google.protobuf.ServiceOptions options = 3; - */ - options?: ServiceOptions; -}; -/** - * Describes a service. - * - * @generated from message google.protobuf.ServiceDescriptorProto - */ -export type ServiceDescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2; - */ - method?: MethodDescriptorProtoJson[]; - /** - * @generated from field: optional google.protobuf.ServiceOptions options = 3; - */ - options?: ServiceOptionsJson; -}; -/** - * Describes the message google.protobuf.ServiceDescriptorProto. - * Use `create(ServiceDescriptorProtoSchema)` to create a new message. - */ -export declare const ServiceDescriptorProtoSchema: GenMessage; -/** - * Describes a method of a service. - * - * @generated from message google.protobuf.MethodDescriptorProto - */ -export type MethodDescriptorProto = Message<"google.protobuf.MethodDescriptorProto"> & { - /** - * @generated from field: optional string name = 1; - */ - name: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - * - * @generated from field: optional string input_type = 2; - */ - inputType: string; - /** - * @generated from field: optional string output_type = 3; - */ - outputType: string; - /** - * @generated from field: optional google.protobuf.MethodOptions options = 4; - */ - options?: MethodOptions; - /** - * Identifies if client streams multiple client messages - * - * @generated from field: optional bool client_streaming = 5 [default = false]; - */ - clientStreaming: boolean; - /** - * Identifies if server streams multiple server messages - * - * @generated from field: optional bool server_streaming = 6 [default = false]; - */ - serverStreaming: boolean; -}; -/** - * Describes a method of a service. - * - * @generated from message google.protobuf.MethodDescriptorProto - */ -export type MethodDescriptorProtoJson = { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - * - * @generated from field: optional string input_type = 2; - */ - inputType?: string; - /** - * @generated from field: optional string output_type = 3; - */ - outputType?: string; - /** - * @generated from field: optional google.protobuf.MethodOptions options = 4; - */ - options?: MethodOptionsJson; - /** - * Identifies if client streams multiple client messages - * - * @generated from field: optional bool client_streaming = 5 [default = false]; - */ - clientStreaming?: boolean; - /** - * Identifies if server streams multiple server messages - * - * @generated from field: optional bool server_streaming = 6 [default = false]; - */ - serverStreaming?: boolean; -}; -/** - * Describes the message google.protobuf.MethodDescriptorProto. - * Use `create(MethodDescriptorProtoSchema)` to create a new message. - */ -export declare const MethodDescriptorProtoSchema: GenMessage; -/** - * @generated from message google.protobuf.FileOptions - */ -export type FileOptions = Message<"google.protobuf.FileOptions"> & { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - * - * @generated from field: optional string java_package = 1; - */ - javaPackage: string; - /** - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * - * @generated from field: optional string java_outer_classname = 8; - */ - javaOuterClassname: string; - /** - * If enabled, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the wrapper class - * named by java_outer_classname. However, the wrapper class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - * - * @generated from field: optional bool java_multiple_files = 10 [default = false]; - */ - javaMultipleFiles: boolean; - /** - * This option does nothing. - * - * @generated from field: optional bool java_generate_equals_and_hash = 20 [deprecated = true]; - * @deprecated - */ - javaGenerateEqualsAndHash: boolean; - /** - * A proto2 file can set this to true to opt in to UTF-8 checking for Java, - * which will throw an exception if invalid UTF-8 is parsed from the wire or - * assigned to a string field. - * - * TODO: clarify exactly what kinds of field types this option - * applies to, and update these docs accordingly. - * - * Proto3 files already perform these checks. Setting the option explicitly to - * false has no effect: it cannot be used to opt proto3 files out of UTF-8 - * checks. - * - * @generated from field: optional bool java_string_check_utf8 = 27 [default = false]; - */ - javaStringCheckUtf8: boolean; - /** - * @generated from field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; - */ - optimizeFor: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - * - * @generated from field: optional string go_package = 11; - */ - goPackage: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - * - * @generated from field: optional bool cc_generic_services = 16 [default = false]; - */ - ccGenericServices: boolean; - /** - * @generated from field: optional bool java_generic_services = 17 [default = false]; - */ - javaGenericServices: boolean; - /** - * @generated from field: optional bool py_generic_services = 18 [default = false]; - */ - pyGenericServices: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - * - * @generated from field: optional bool deprecated = 23 [default = false]; - */ - deprecated: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - * - * @generated from field: optional bool cc_enable_arenas = 31 [default = true]; - */ - ccEnableArenas: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - * - * @generated from field: optional string objc_class_prefix = 36; - */ - objcClassPrefix: string; - /** - * Namespace for generated classes; defaults to the package. - * - * @generated from field: optional string csharp_namespace = 37; - */ - csharpNamespace: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - * - * @generated from field: optional string swift_prefix = 39; - */ - swiftPrefix: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - * - * @generated from field: optional string php_class_prefix = 40; - */ - phpClassPrefix: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - * - * @generated from field: optional string php_namespace = 41; - */ - phpNamespace: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - * - * @generated from field: optional string php_metadata_namespace = 44; - */ - phpMetadataNamespace: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - * - * @generated from field: optional string ruby_package = 45; - */ - rubyPackage: string; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 50; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.FileOptions - */ -export type FileOptionsJson = { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - * - * @generated from field: optional string java_package = 1; - */ - javaPackage?: string; - /** - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * - * @generated from field: optional string java_outer_classname = 8; - */ - javaOuterClassname?: string; - /** - * If enabled, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the wrapper class - * named by java_outer_classname. However, the wrapper class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - * - * @generated from field: optional bool java_multiple_files = 10 [default = false]; - */ - javaMultipleFiles?: boolean; - /** - * This option does nothing. - * - * @generated from field: optional bool java_generate_equals_and_hash = 20 [deprecated = true]; - * @deprecated - */ - javaGenerateEqualsAndHash?: boolean; - /** - * A proto2 file can set this to true to opt in to UTF-8 checking for Java, - * which will throw an exception if invalid UTF-8 is parsed from the wire or - * assigned to a string field. - * - * TODO: clarify exactly what kinds of field types this option - * applies to, and update these docs accordingly. - * - * Proto3 files already perform these checks. Setting the option explicitly to - * false has no effect: it cannot be used to opt proto3 files out of UTF-8 - * checks. - * - * @generated from field: optional bool java_string_check_utf8 = 27 [default = false]; - */ - javaStringCheckUtf8?: boolean; - /** - * @generated from field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; - */ - optimizeFor?: FileOptions_OptimizeModeJson; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - * - * @generated from field: optional string go_package = 11; - */ - goPackage?: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - * - * @generated from field: optional bool cc_generic_services = 16 [default = false]; - */ - ccGenericServices?: boolean; - /** - * @generated from field: optional bool java_generic_services = 17 [default = false]; - */ - javaGenericServices?: boolean; - /** - * @generated from field: optional bool py_generic_services = 18 [default = false]; - */ - pyGenericServices?: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - * - * @generated from field: optional bool deprecated = 23 [default = false]; - */ - deprecated?: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - * - * @generated from field: optional bool cc_enable_arenas = 31 [default = true]; - */ - ccEnableArenas?: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - * - * @generated from field: optional string objc_class_prefix = 36; - */ - objcClassPrefix?: string; - /** - * Namespace for generated classes; defaults to the package. - * - * @generated from field: optional string csharp_namespace = 37; - */ - csharpNamespace?: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - * - * @generated from field: optional string swift_prefix = 39; - */ - swiftPrefix?: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - * - * @generated from field: optional string php_class_prefix = 40; - */ - phpClassPrefix?: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - * - * @generated from field: optional string php_namespace = 41; - */ - phpNamespace?: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - * - * @generated from field: optional string php_metadata_namespace = 44; - */ - phpMetadataNamespace?: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - * - * @generated from field: optional string ruby_package = 45; - */ - rubyPackage?: string; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 50; - */ - features?: FeatureSetJson; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.FileOptions. - * Use `create(FileOptionsSchema)` to create a new message. - */ -export declare const FileOptionsSchema: GenMessage; -/** - * Generated classes can be optimized for speed or code size. - * - * @generated from enum google.protobuf.FileOptions.OptimizeMode - */ -export declare enum FileOptions_OptimizeMode { - /** - * Generate complete code for parsing, serialization, - * - * @generated from enum value: SPEED = 1; - */ - SPEED = 1, - /** - * etc. - * - * Use ReflectionOps to implement these methods. - * - * @generated from enum value: CODE_SIZE = 2; - */ - CODE_SIZE = 2, - /** - * Generate code using MessageLite and the lite runtime. - * - * @generated from enum value: LITE_RUNTIME = 3; - */ - LITE_RUNTIME = 3 -} -/** - * Generated classes can be optimized for speed or code size. - * - * @generated from enum google.protobuf.FileOptions.OptimizeMode - */ -export type FileOptions_OptimizeModeJson = "SPEED" | "CODE_SIZE" | "LITE_RUNTIME"; -/** - * Describes the enum google.protobuf.FileOptions.OptimizeMode. - */ -export declare const FileOptions_OptimizeModeSchema: GenEnum; -/** - * @generated from message google.protobuf.MessageOptions - */ -export type MessageOptions = Message<"google.protobuf.MessageOptions"> & { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - * - * @generated from field: optional bool message_set_wire_format = 1 [default = false]; - */ - messageSetWireFormat: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - * - * @generated from field: optional bool no_standard_descriptor_accessor = 2 [default = false]; - */ - noStandardDescriptorAccessor: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - * - * @generated from field: optional bool deprecated = 3 [default = false]; - */ - deprecated: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - * - * @generated from field: optional bool map_entry = 7; - */ - mapEntry: boolean; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * - * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; - * @deprecated - */ - deprecatedLegacyJsonFieldConflicts: boolean; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 12; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.MessageOptions - */ -export type MessageOptionsJson = { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - * - * @generated from field: optional bool message_set_wire_format = 1 [default = false]; - */ - messageSetWireFormat?: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - * - * @generated from field: optional bool no_standard_descriptor_accessor = 2 [default = false]; - */ - noStandardDescriptorAccessor?: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - * - * @generated from field: optional bool deprecated = 3 [default = false]; - */ - deprecated?: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - * - * @generated from field: optional bool map_entry = 7; - */ - mapEntry?: boolean; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * - * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; - * @deprecated - */ - deprecatedLegacyJsonFieldConflicts?: boolean; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 12; - */ - features?: FeatureSetJson; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.MessageOptions. - * Use `create(MessageOptionsSchema)` to create a new message. - */ -export declare const MessageOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.FieldOptions - */ -export type FieldOptions = Message<"google.protobuf.FieldOptions"> & { - /** - * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead. - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is only implemented to support use of - * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of - * type "bytes" in the open source release. - * TODO: make ctype actually deprecated. - * - * @generated from field: optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; - */ - ctype: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. This option is prohibited in - * Editions, but the `repeated_field_encoding` feature can be used to control - * the behavior. - * - * @generated from field: optional bool packed = 2; - */ - packed: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - * - * @generated from field: optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; - */ - jstype: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * Note that lazy message fields are still eagerly verified to check - * ill-formed wireformat or missing required fields. Calling IsInitialized() - * on the outer message would fail if the inner message has missing required - * fields. Failed verification would result in parsing failure (except when - * uninitialized messages are acceptable). - * - * @generated from field: optional bool lazy = 5 [default = false]; - */ - lazy: boolean; - /** - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - * - * @generated from field: optional bool unverified_lazy = 15 [default = false]; - */ - unverifiedLazy: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - * - * @generated from field: optional bool deprecated = 3 [default = false]; - */ - deprecated: boolean; - /** - * DEPRECATED. DO NOT USE! - * For Google-internal migration only. Do not use. - * - * @generated from field: optional bool weak = 10 [default = false, deprecated = true]; - * @deprecated - */ - weak: boolean; - /** - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * - * @generated from field: optional bool debug_redact = 16 [default = false]; - */ - debugRedact: boolean; - /** - * @generated from field: optional google.protobuf.FieldOptions.OptionRetention retention = 17; - */ - retention: FieldOptions_OptionRetention; - /** - * @generated from field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; - */ - targets: FieldOptions_OptionTargetType[]; - /** - * @generated from field: repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; - */ - editionDefaults: FieldOptions_EditionDefault[]; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 21; - */ - features?: FeatureSet; - /** - * @generated from field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22; - */ - featureSupport?: FieldOptions_FeatureSupport; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.FieldOptions - */ -export type FieldOptionsJson = { - /** - * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead. - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is only implemented to support use of - * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of - * type "bytes" in the open source release. - * TODO: make ctype actually deprecated. - * - * @generated from field: optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; - */ - ctype?: FieldOptions_CTypeJson; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. This option is prohibited in - * Editions, but the `repeated_field_encoding` feature can be used to control - * the behavior. - * - * @generated from field: optional bool packed = 2; - */ - packed?: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - * - * @generated from field: optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; - */ - jstype?: FieldOptions_JSTypeJson; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * Note that lazy message fields are still eagerly verified to check - * ill-formed wireformat or missing required fields. Calling IsInitialized() - * on the outer message would fail if the inner message has missing required - * fields. Failed verification would result in parsing failure (except when - * uninitialized messages are acceptable). - * - * @generated from field: optional bool lazy = 5 [default = false]; - */ - lazy?: boolean; - /** - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - * - * @generated from field: optional bool unverified_lazy = 15 [default = false]; - */ - unverifiedLazy?: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - * - * @generated from field: optional bool deprecated = 3 [default = false]; - */ - deprecated?: boolean; - /** - * DEPRECATED. DO NOT USE! - * For Google-internal migration only. Do not use. - * - * @generated from field: optional bool weak = 10 [default = false, deprecated = true]; - * @deprecated - */ - weak?: boolean; - /** - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * - * @generated from field: optional bool debug_redact = 16 [default = false]; - */ - debugRedact?: boolean; - /** - * @generated from field: optional google.protobuf.FieldOptions.OptionRetention retention = 17; - */ - retention?: FieldOptions_OptionRetentionJson; - /** - * @generated from field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; - */ - targets?: FieldOptions_OptionTargetTypeJson[]; - /** - * @generated from field: repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; - */ - editionDefaults?: FieldOptions_EditionDefaultJson[]; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 21; - */ - features?: FeatureSetJson; - /** - * @generated from field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22; - */ - featureSupport?: FieldOptions_FeatureSupportJson; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.FieldOptions. - * Use `create(FieldOptionsSchema)` to create a new message. - */ -export declare const FieldOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.FieldOptions.EditionDefault - */ -export type FieldOptions_EditionDefault = Message<"google.protobuf.FieldOptions.EditionDefault"> & { - /** - * @generated from field: optional google.protobuf.Edition edition = 3; - */ - edition: Edition; - /** - * Textproto value. - * - * @generated from field: optional string value = 2; - */ - value: string; -}; -/** - * @generated from message google.protobuf.FieldOptions.EditionDefault - */ -export type FieldOptions_EditionDefaultJson = { - /** - * @generated from field: optional google.protobuf.Edition edition = 3; - */ - edition?: EditionJson; - /** - * Textproto value. - * - * @generated from field: optional string value = 2; - */ - value?: string; -}; -/** - * Describes the message google.protobuf.FieldOptions.EditionDefault. - * Use `create(FieldOptions_EditionDefaultSchema)` to create a new message. - */ -export declare const FieldOptions_EditionDefaultSchema: GenMessage; -/** - * Information about the support window of a feature. - * - * @generated from message google.protobuf.FieldOptions.FeatureSupport - */ -export type FieldOptions_FeatureSupport = Message<"google.protobuf.FieldOptions.FeatureSupport"> & { - /** - * The edition that this feature was first available in. In editions - * earlier than this one, the default assigned to EDITION_LEGACY will be - * used, and proto files will not be able to override it. - * - * @generated from field: optional google.protobuf.Edition edition_introduced = 1; - */ - editionIntroduced: Edition; - /** - * The edition this feature becomes deprecated in. Using this after this - * edition may trigger warnings. - * - * @generated from field: optional google.protobuf.Edition edition_deprecated = 2; - */ - editionDeprecated: Edition; - /** - * The deprecation warning text if this feature is used after the edition it - * was marked deprecated in. - * - * @generated from field: optional string deprecation_warning = 3; - */ - deprecationWarning: string; - /** - * The edition this feature is no longer available in. In editions after - * this one, the last default assigned will be used, and proto files will - * not be able to override it. - * - * @generated from field: optional google.protobuf.Edition edition_removed = 4; - */ - editionRemoved: Edition; -}; -/** - * Information about the support window of a feature. - * - * @generated from message google.protobuf.FieldOptions.FeatureSupport - */ -export type FieldOptions_FeatureSupportJson = { - /** - * The edition that this feature was first available in. In editions - * earlier than this one, the default assigned to EDITION_LEGACY will be - * used, and proto files will not be able to override it. - * - * @generated from field: optional google.protobuf.Edition edition_introduced = 1; - */ - editionIntroduced?: EditionJson; - /** - * The edition this feature becomes deprecated in. Using this after this - * edition may trigger warnings. - * - * @generated from field: optional google.protobuf.Edition edition_deprecated = 2; - */ - editionDeprecated?: EditionJson; - /** - * The deprecation warning text if this feature is used after the edition it - * was marked deprecated in. - * - * @generated from field: optional string deprecation_warning = 3; - */ - deprecationWarning?: string; - /** - * The edition this feature is no longer available in. In editions after - * this one, the last default assigned will be used, and proto files will - * not be able to override it. - * - * @generated from field: optional google.protobuf.Edition edition_removed = 4; - */ - editionRemoved?: EditionJson; -}; -/** - * Describes the message google.protobuf.FieldOptions.FeatureSupport. - * Use `create(FieldOptions_FeatureSupportSchema)` to create a new message. - */ -export declare const FieldOptions_FeatureSupportSchema: GenMessage; -/** - * @generated from enum google.protobuf.FieldOptions.CType - */ -export declare enum FieldOptions_CType { - /** - * Default mode. - * - * @generated from enum value: STRING = 0; - */ - STRING = 0, - /** - * The option [ctype=CORD] may be applied to a non-repeated field of type - * "bytes". It indicates that in C++, the data should be stored in a Cord - * instead of a string. For very large strings, this may reduce memory - * fragmentation. It may also allow better performance when parsing from a - * Cord, or when parsing with aliasing enabled, as the parsed Cord may then - * alias the original buffer. - * - * @generated from enum value: CORD = 1; - */ - CORD = 1, - /** - * @generated from enum value: STRING_PIECE = 2; - */ - STRING_PIECE = 2 -} -/** - * @generated from enum google.protobuf.FieldOptions.CType - */ -export type FieldOptions_CTypeJson = "STRING" | "CORD" | "STRING_PIECE"; -/** - * Describes the enum google.protobuf.FieldOptions.CType. - */ -export declare const FieldOptions_CTypeSchema: GenEnum; -/** - * @generated from enum google.protobuf.FieldOptions.JSType - */ -export declare enum FieldOptions_JSType { - /** - * Use the default type. - * - * @generated from enum value: JS_NORMAL = 0; - */ - JS_NORMAL = 0, - /** - * Use JavaScript strings. - * - * @generated from enum value: JS_STRING = 1; - */ - JS_STRING = 1, - /** - * Use JavaScript numbers. - * - * @generated from enum value: JS_NUMBER = 2; - */ - JS_NUMBER = 2 -} -/** - * @generated from enum google.protobuf.FieldOptions.JSType - */ -export type FieldOptions_JSTypeJson = "JS_NORMAL" | "JS_STRING" | "JS_NUMBER"; -/** - * Describes the enum google.protobuf.FieldOptions.JSType. - */ -export declare const FieldOptions_JSTypeSchema: GenEnum; -/** - * If set to RETENTION_SOURCE, the option will be omitted from the binary. - * - * @generated from enum google.protobuf.FieldOptions.OptionRetention - */ -export declare enum FieldOptions_OptionRetention { - /** - * @generated from enum value: RETENTION_UNKNOWN = 0; - */ - RETENTION_UNKNOWN = 0, - /** - * @generated from enum value: RETENTION_RUNTIME = 1; - */ - RETENTION_RUNTIME = 1, - /** - * @generated from enum value: RETENTION_SOURCE = 2; - */ - RETENTION_SOURCE = 2 -} -/** - * If set to RETENTION_SOURCE, the option will be omitted from the binary. - * - * @generated from enum google.protobuf.FieldOptions.OptionRetention - */ -export type FieldOptions_OptionRetentionJson = "RETENTION_UNKNOWN" | "RETENTION_RUNTIME" | "RETENTION_SOURCE"; -/** - * Describes the enum google.protobuf.FieldOptions.OptionRetention. - */ -export declare const FieldOptions_OptionRetentionSchema: GenEnum; -/** - * This indicates the types of entities that the field may apply to when used - * as an option. If it is unset, then the field may be freely used as an - * option on any kind of entity. - * - * @generated from enum google.protobuf.FieldOptions.OptionTargetType - */ -export declare enum FieldOptions_OptionTargetType { - /** - * @generated from enum value: TARGET_TYPE_UNKNOWN = 0; - */ - TARGET_TYPE_UNKNOWN = 0, - /** - * @generated from enum value: TARGET_TYPE_FILE = 1; - */ - TARGET_TYPE_FILE = 1, - /** - * @generated from enum value: TARGET_TYPE_EXTENSION_RANGE = 2; - */ - TARGET_TYPE_EXTENSION_RANGE = 2, - /** - * @generated from enum value: TARGET_TYPE_MESSAGE = 3; - */ - TARGET_TYPE_MESSAGE = 3, - /** - * @generated from enum value: TARGET_TYPE_FIELD = 4; - */ - TARGET_TYPE_FIELD = 4, - /** - * @generated from enum value: TARGET_TYPE_ONEOF = 5; - */ - TARGET_TYPE_ONEOF = 5, - /** - * @generated from enum value: TARGET_TYPE_ENUM = 6; - */ - TARGET_TYPE_ENUM = 6, - /** - * @generated from enum value: TARGET_TYPE_ENUM_ENTRY = 7; - */ - TARGET_TYPE_ENUM_ENTRY = 7, - /** - * @generated from enum value: TARGET_TYPE_SERVICE = 8; - */ - TARGET_TYPE_SERVICE = 8, - /** - * @generated from enum value: TARGET_TYPE_METHOD = 9; - */ - TARGET_TYPE_METHOD = 9 -} -/** - * This indicates the types of entities that the field may apply to when used - * as an option. If it is unset, then the field may be freely used as an - * option on any kind of entity. - * - * @generated from enum google.protobuf.FieldOptions.OptionTargetType - */ -export type FieldOptions_OptionTargetTypeJson = "TARGET_TYPE_UNKNOWN" | "TARGET_TYPE_FILE" | "TARGET_TYPE_EXTENSION_RANGE" | "TARGET_TYPE_MESSAGE" | "TARGET_TYPE_FIELD" | "TARGET_TYPE_ONEOF" | "TARGET_TYPE_ENUM" | "TARGET_TYPE_ENUM_ENTRY" | "TARGET_TYPE_SERVICE" | "TARGET_TYPE_METHOD"; -/** - * Describes the enum google.protobuf.FieldOptions.OptionTargetType. - */ -export declare const FieldOptions_OptionTargetTypeSchema: GenEnum; -/** - * @generated from message google.protobuf.OneofOptions - */ -export type OneofOptions = Message<"google.protobuf.OneofOptions"> & { - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 1; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.OneofOptions - */ -export type OneofOptionsJson = { - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 1; - */ - features?: FeatureSetJson; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.OneofOptions. - * Use `create(OneofOptionsSchema)` to create a new message. - */ -export declare const OneofOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.EnumOptions - */ -export type EnumOptions = Message<"google.protobuf.EnumOptions"> & { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - * - * @generated from field: optional bool allow_alias = 2; - */ - allowAlias: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - * - * @generated from field: optional bool deprecated = 3 [default = false]; - */ - deprecated: boolean; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO Remove this legacy behavior once downstream teams have - * had time to migrate. - * - * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; - * @deprecated - */ - deprecatedLegacyJsonFieldConflicts: boolean; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 7; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.EnumOptions - */ -export type EnumOptionsJson = { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - * - * @generated from field: optional bool allow_alias = 2; - */ - allowAlias?: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - * - * @generated from field: optional bool deprecated = 3 [default = false]; - */ - deprecated?: boolean; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO Remove this legacy behavior once downstream teams have - * had time to migrate. - * - * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; - * @deprecated - */ - deprecatedLegacyJsonFieldConflicts?: boolean; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 7; - */ - features?: FeatureSetJson; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.EnumOptions. - * Use `create(EnumOptionsSchema)` to create a new message. - */ -export declare const EnumOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.EnumValueOptions - */ -export type EnumValueOptions = Message<"google.protobuf.EnumValueOptions"> & { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - * - * @generated from field: optional bool deprecated = 1 [default = false]; - */ - deprecated: boolean; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 2; - */ - features?: FeatureSet; - /** - * Indicate that fields annotated with this enum value should not be printed - * out when using debug formats, e.g. when the field contains sensitive - * credentials. - * - * @generated from field: optional bool debug_redact = 3 [default = false]; - */ - debugRedact: boolean; - /** - * Information about the support window of a feature value. - * - * @generated from field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4; - */ - featureSupport?: FieldOptions_FeatureSupport; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.EnumValueOptions - */ -export type EnumValueOptionsJson = { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - * - * @generated from field: optional bool deprecated = 1 [default = false]; - */ - deprecated?: boolean; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 2; - */ - features?: FeatureSetJson; - /** - * Indicate that fields annotated with this enum value should not be printed - * out when using debug formats, e.g. when the field contains sensitive - * credentials. - * - * @generated from field: optional bool debug_redact = 3 [default = false]; - */ - debugRedact?: boolean; - /** - * Information about the support window of a feature value. - * - * @generated from field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4; - */ - featureSupport?: FieldOptions_FeatureSupportJson; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.EnumValueOptions. - * Use `create(EnumValueOptionsSchema)` to create a new message. - */ -export declare const EnumValueOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.ServiceOptions - */ -export type ServiceOptions = Message<"google.protobuf.ServiceOptions"> & { - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 34; - */ - features?: FeatureSet; - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - * - * @generated from field: optional bool deprecated = 33 [default = false]; - */ - deprecated: boolean; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.ServiceOptions - */ -export type ServiceOptionsJson = { - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 34; - */ - features?: FeatureSetJson; - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - * - * @generated from field: optional bool deprecated = 33 [default = false]; - */ - deprecated?: boolean; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.ServiceOptions. - * Use `create(ServiceOptionsSchema)` to create a new message. - */ -export declare const ServiceOptionsSchema: GenMessage; -/** - * @generated from message google.protobuf.MethodOptions - */ -export type MethodOptions = Message<"google.protobuf.MethodOptions"> & { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - * - * @generated from field: optional bool deprecated = 33 [default = false]; - */ - deprecated: boolean; - /** - * @generated from field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; - */ - idempotencyLevel: MethodOptions_IdempotencyLevel; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 35; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption: UninterpretedOption[]; -}; -/** - * @generated from message google.protobuf.MethodOptions - */ -export type MethodOptionsJson = { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - * - * @generated from field: optional bool deprecated = 33 [default = false]; - */ - deprecated?: boolean; - /** - * @generated from field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; - */ - idempotencyLevel?: MethodOptions_IdempotencyLevelJson; - /** - * Any features defined in the specific edition. - * WARNING: This field should only be used by protobuf plugins or special - * cases like the proto compiler. Other uses are discouraged and - * developers should rely on the protoreflect APIs for their client language. - * - * @generated from field: optional google.protobuf.FeatureSet features = 35; - */ - features?: FeatureSetJson; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpretedOption?: UninterpretedOptionJson[]; -}; -/** - * Describes the message google.protobuf.MethodOptions. - * Use `create(MethodOptionsSchema)` to create a new message. - */ -export declare const MethodOptionsSchema: GenMessage; -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - * - * @generated from enum google.protobuf.MethodOptions.IdempotencyLevel - */ -export declare enum MethodOptions_IdempotencyLevel { - /** - * @generated from enum value: IDEMPOTENCY_UNKNOWN = 0; - */ - IDEMPOTENCY_UNKNOWN = 0, - /** - * implies idempotent - * - * @generated from enum value: NO_SIDE_EFFECTS = 1; - */ - NO_SIDE_EFFECTS = 1, - /** - * idempotent, but may have side effects - * - * @generated from enum value: IDEMPOTENT = 2; - */ - IDEMPOTENT = 2 -} -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - * - * @generated from enum google.protobuf.MethodOptions.IdempotencyLevel - */ -export type MethodOptions_IdempotencyLevelJson = "IDEMPOTENCY_UNKNOWN" | "NO_SIDE_EFFECTS" | "IDEMPOTENT"; -/** - * Describes the enum google.protobuf.MethodOptions.IdempotencyLevel. - */ -export declare const MethodOptions_IdempotencyLevelSchema: GenEnum; -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - * - * @generated from message google.protobuf.UninterpretedOption - */ -export type UninterpretedOption = Message<"google.protobuf.UninterpretedOption"> & { - /** - * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2; - */ - name: UninterpretedOption_NamePart[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - * - * @generated from field: optional string identifier_value = 3; - */ - identifierValue: string; - /** - * @generated from field: optional uint64 positive_int_value = 4; - */ - positiveIntValue: bigint; - /** - * @generated from field: optional int64 negative_int_value = 5; - */ - negativeIntValue: bigint; - /** - * @generated from field: optional double double_value = 6; - */ - doubleValue: number; - /** - * @generated from field: optional bytes string_value = 7; - */ - stringValue: Uint8Array; - /** - * @generated from field: optional string aggregate_value = 8; - */ - aggregateValue: string; -}; -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - * - * @generated from message google.protobuf.UninterpretedOption - */ -export type UninterpretedOptionJson = { - /** - * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2; - */ - name?: UninterpretedOption_NamePartJson[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - * - * @generated from field: optional string identifier_value = 3; - */ - identifierValue?: string; - /** - * @generated from field: optional uint64 positive_int_value = 4; - */ - positiveIntValue?: string; - /** - * @generated from field: optional int64 negative_int_value = 5; - */ - negativeIntValue?: string; - /** - * @generated from field: optional double double_value = 6; - */ - doubleValue?: number | "NaN" | "Infinity" | "-Infinity"; - /** - * @generated from field: optional bytes string_value = 7; - */ - stringValue?: string; - /** - * @generated from field: optional string aggregate_value = 8; - */ - aggregateValue?: string; -}; -/** - * Describes the message google.protobuf.UninterpretedOption. - * Use `create(UninterpretedOptionSchema)` to create a new message. - */ -export declare const UninterpretedOptionSchema: GenMessage; -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents - * "foo.(bar.baz).moo". - * - * @generated from message google.protobuf.UninterpretedOption.NamePart - */ -export type UninterpretedOption_NamePart = Message<"google.protobuf.UninterpretedOption.NamePart"> & { - /** - * @generated from field: required string name_part = 1; - */ - namePart: string; - /** - * @generated from field: required bool is_extension = 2; - */ - isExtension: boolean; -}; -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents - * "foo.(bar.baz).moo". - * - * @generated from message google.protobuf.UninterpretedOption.NamePart - */ -export type UninterpretedOption_NamePartJson = { - /** - * @generated from field: required string name_part = 1; - */ - namePart?: string; - /** - * @generated from field: required bool is_extension = 2; - */ - isExtension?: boolean; -}; -/** - * Describes the message google.protobuf.UninterpretedOption.NamePart. - * Use `create(UninterpretedOption_NamePartSchema)` to create a new message. - */ -export declare const UninterpretedOption_NamePartSchema: GenMessage; -/** - * TODO Enums in C++ gencode (and potentially other languages) are - * not well scoped. This means that each of the feature enums below can clash - * with each other. The short names we've chosen maximize call-site - * readability, but leave us very open to this scenario. A future feature will - * be designed and implemented to handle this, hopefully before we ever hit a - * conflict here. - * - * @generated from message google.protobuf.FeatureSet - */ -export type FeatureSet = Message<"google.protobuf.FeatureSet"> & { - /** - * @generated from field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; - */ - fieldPresence: FeatureSet_FieldPresence; - /** - * @generated from field: optional google.protobuf.FeatureSet.EnumType enum_type = 2; - */ - enumType: FeatureSet_EnumType; - /** - * @generated from field: optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; - */ - repeatedFieldEncoding: FeatureSet_RepeatedFieldEncoding; - /** - * @generated from field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; - */ - utf8Validation: FeatureSet_Utf8Validation; - /** - * @generated from field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; - */ - messageEncoding: FeatureSet_MessageEncoding; - /** - * @generated from field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6; - */ - jsonFormat: FeatureSet_JsonFormat; - /** - * @generated from field: optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7; - */ - enforceNamingStyle: FeatureSet_EnforceNamingStyle; - /** - * @generated from field: optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8; - */ - defaultSymbolVisibility: FeatureSet_VisibilityFeature_DefaultSymbolVisibility; -}; -/** - * TODO Enums in C++ gencode (and potentially other languages) are - * not well scoped. This means that each of the feature enums below can clash - * with each other. The short names we've chosen maximize call-site - * readability, but leave us very open to this scenario. A future feature will - * be designed and implemented to handle this, hopefully before we ever hit a - * conflict here. - * - * @generated from message google.protobuf.FeatureSet - */ -export type FeatureSetJson = { - /** - * @generated from field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; - */ - fieldPresence?: FeatureSet_FieldPresenceJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.EnumType enum_type = 2; - */ - enumType?: FeatureSet_EnumTypeJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; - */ - repeatedFieldEncoding?: FeatureSet_RepeatedFieldEncodingJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; - */ - utf8Validation?: FeatureSet_Utf8ValidationJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; - */ - messageEncoding?: FeatureSet_MessageEncodingJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6; - */ - jsonFormat?: FeatureSet_JsonFormatJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7; - */ - enforceNamingStyle?: FeatureSet_EnforceNamingStyleJson; - /** - * @generated from field: optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8; - */ - defaultSymbolVisibility?: FeatureSet_VisibilityFeature_DefaultSymbolVisibilityJson; -}; -/** - * Describes the message google.protobuf.FeatureSet. - * Use `create(FeatureSetSchema)` to create a new message. - */ -export declare const FeatureSetSchema: GenMessage; -/** - * @generated from message google.protobuf.FeatureSet.VisibilityFeature - */ -export type FeatureSet_VisibilityFeature = Message<"google.protobuf.FeatureSet.VisibilityFeature"> & {}; -/** - * @generated from message google.protobuf.FeatureSet.VisibilityFeature - */ -export type FeatureSet_VisibilityFeatureJson = {}; -/** - * Describes the message google.protobuf.FeatureSet.VisibilityFeature. - * Use `create(FeatureSet_VisibilityFeatureSchema)` to create a new message. - */ -export declare const FeatureSet_VisibilityFeatureSchema: GenMessage; -/** - * @generated from enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility - */ -export declare enum FeatureSet_VisibilityFeature_DefaultSymbolVisibility { - /** - * @generated from enum value: DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0; - */ - DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0, - /** - * Default pre-EDITION_2024, all UNSET visibility are export. - * - * @generated from enum value: EXPORT_ALL = 1; - */ - EXPORT_ALL = 1, - /** - * All top-level symbols default to export, nested default to local. - * - * @generated from enum value: EXPORT_TOP_LEVEL = 2; - */ - EXPORT_TOP_LEVEL = 2, - /** - * All symbols default to local. - * - * @generated from enum value: LOCAL_ALL = 3; - */ - LOCAL_ALL = 3, - /** - * All symbols local by default. Nested types cannot be exported. - * With special case caveat for message { enum {} reserved 1 to max; } - * This is the recommended setting for new protos. - * - * @generated from enum value: STRICT = 4; - */ - STRICT = 4 -} -/** - * @generated from enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility - */ -export type FeatureSet_VisibilityFeature_DefaultSymbolVisibilityJson = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" | "EXPORT_ALL" | "EXPORT_TOP_LEVEL" | "LOCAL_ALL" | "STRICT"; -/** - * Describes the enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility. - */ -export declare const FeatureSet_VisibilityFeature_DefaultSymbolVisibilitySchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.FieldPresence - */ -export declare enum FeatureSet_FieldPresence { - /** - * @generated from enum value: FIELD_PRESENCE_UNKNOWN = 0; - */ - FIELD_PRESENCE_UNKNOWN = 0, - /** - * @generated from enum value: EXPLICIT = 1; - */ - EXPLICIT = 1, - /** - * @generated from enum value: IMPLICIT = 2; - */ - IMPLICIT = 2, - /** - * @generated from enum value: LEGACY_REQUIRED = 3; - */ - LEGACY_REQUIRED = 3 -} -/** - * @generated from enum google.protobuf.FeatureSet.FieldPresence - */ -export type FeatureSet_FieldPresenceJson = "FIELD_PRESENCE_UNKNOWN" | "EXPLICIT" | "IMPLICIT" | "LEGACY_REQUIRED"; -/** - * Describes the enum google.protobuf.FeatureSet.FieldPresence. - */ -export declare const FeatureSet_FieldPresenceSchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.EnumType - */ -export declare enum FeatureSet_EnumType { - /** - * @generated from enum value: ENUM_TYPE_UNKNOWN = 0; - */ - ENUM_TYPE_UNKNOWN = 0, - /** - * @generated from enum value: OPEN = 1; - */ - OPEN = 1, - /** - * @generated from enum value: CLOSED = 2; - */ - CLOSED = 2 -} -/** - * @generated from enum google.protobuf.FeatureSet.EnumType - */ -export type FeatureSet_EnumTypeJson = "ENUM_TYPE_UNKNOWN" | "OPEN" | "CLOSED"; -/** - * Describes the enum google.protobuf.FeatureSet.EnumType. - */ -export declare const FeatureSet_EnumTypeSchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.RepeatedFieldEncoding - */ -export declare enum FeatureSet_RepeatedFieldEncoding { - /** - * @generated from enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0; - */ - REPEATED_FIELD_ENCODING_UNKNOWN = 0, - /** - * @generated from enum value: PACKED = 1; - */ - PACKED = 1, - /** - * @generated from enum value: EXPANDED = 2; - */ - EXPANDED = 2 -} -/** - * @generated from enum google.protobuf.FeatureSet.RepeatedFieldEncoding - */ -export type FeatureSet_RepeatedFieldEncodingJson = "REPEATED_FIELD_ENCODING_UNKNOWN" | "PACKED" | "EXPANDED"; -/** - * Describes the enum google.protobuf.FeatureSet.RepeatedFieldEncoding. - */ -export declare const FeatureSet_RepeatedFieldEncodingSchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.Utf8Validation - */ -export declare enum FeatureSet_Utf8Validation { - /** - * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0; - */ - UTF8_VALIDATION_UNKNOWN = 0, - /** - * @generated from enum value: VERIFY = 2; - */ - VERIFY = 2, - /** - * @generated from enum value: NONE = 3; - */ - NONE = 3 -} -/** - * @generated from enum google.protobuf.FeatureSet.Utf8Validation - */ -export type FeatureSet_Utf8ValidationJson = "UTF8_VALIDATION_UNKNOWN" | "VERIFY" | "NONE"; -/** - * Describes the enum google.protobuf.FeatureSet.Utf8Validation. - */ -export declare const FeatureSet_Utf8ValidationSchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.MessageEncoding - */ -export declare enum FeatureSet_MessageEncoding { - /** - * @generated from enum value: MESSAGE_ENCODING_UNKNOWN = 0; - */ - MESSAGE_ENCODING_UNKNOWN = 0, - /** - * @generated from enum value: LENGTH_PREFIXED = 1; - */ - LENGTH_PREFIXED = 1, - /** - * @generated from enum value: DELIMITED = 2; - */ - DELIMITED = 2 -} -/** - * @generated from enum google.protobuf.FeatureSet.MessageEncoding - */ -export type FeatureSet_MessageEncodingJson = "MESSAGE_ENCODING_UNKNOWN" | "LENGTH_PREFIXED" | "DELIMITED"; -/** - * Describes the enum google.protobuf.FeatureSet.MessageEncoding. - */ -export declare const FeatureSet_MessageEncodingSchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.JsonFormat - */ -export declare enum FeatureSet_JsonFormat { - /** - * @generated from enum value: JSON_FORMAT_UNKNOWN = 0; - */ - JSON_FORMAT_UNKNOWN = 0, - /** - * @generated from enum value: ALLOW = 1; - */ - ALLOW = 1, - /** - * @generated from enum value: LEGACY_BEST_EFFORT = 2; - */ - LEGACY_BEST_EFFORT = 2 -} -/** - * @generated from enum google.protobuf.FeatureSet.JsonFormat - */ -export type FeatureSet_JsonFormatJson = "JSON_FORMAT_UNKNOWN" | "ALLOW" | "LEGACY_BEST_EFFORT"; -/** - * Describes the enum google.protobuf.FeatureSet.JsonFormat. - */ -export declare const FeatureSet_JsonFormatSchema: GenEnum; -/** - * @generated from enum google.protobuf.FeatureSet.EnforceNamingStyle - */ -export declare enum FeatureSet_EnforceNamingStyle { - /** - * @generated from enum value: ENFORCE_NAMING_STYLE_UNKNOWN = 0; - */ - ENFORCE_NAMING_STYLE_UNKNOWN = 0, - /** - * @generated from enum value: STYLE2024 = 1; - */ - STYLE2024 = 1, - /** - * @generated from enum value: STYLE_LEGACY = 2; - */ - STYLE_LEGACY = 2 -} -/** - * @generated from enum google.protobuf.FeatureSet.EnforceNamingStyle - */ -export type FeatureSet_EnforceNamingStyleJson = "ENFORCE_NAMING_STYLE_UNKNOWN" | "STYLE2024" | "STYLE_LEGACY"; -/** - * Describes the enum google.protobuf.FeatureSet.EnforceNamingStyle. - */ -export declare const FeatureSet_EnforceNamingStyleSchema: GenEnum; -/** - * A compiled specification for the defaults of a set of features. These - * messages are generated from FeatureSet extensions and can be used to seed - * feature resolution. The resolution with this object becomes a simple search - * for the closest matching edition, followed by proto merges. - * - * @generated from message google.protobuf.FeatureSetDefaults - */ -export type FeatureSetDefaults = Message<"google.protobuf.FeatureSetDefaults"> & { - /** - * @generated from field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; - */ - defaults: FeatureSetDefaults_FeatureSetEditionDefault[]; - /** - * The minimum supported edition (inclusive) when this was constructed. - * Editions before this will not have defaults. - * - * @generated from field: optional google.protobuf.Edition minimum_edition = 4; - */ - minimumEdition: Edition; - /** - * The maximum known edition (inclusive) when this was constructed. Editions - * after this will not have reliable defaults. - * - * @generated from field: optional google.protobuf.Edition maximum_edition = 5; - */ - maximumEdition: Edition; -}; -/** - * A compiled specification for the defaults of a set of features. These - * messages are generated from FeatureSet extensions and can be used to seed - * feature resolution. The resolution with this object becomes a simple search - * for the closest matching edition, followed by proto merges. - * - * @generated from message google.protobuf.FeatureSetDefaults - */ -export type FeatureSetDefaultsJson = { - /** - * @generated from field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; - */ - defaults?: FeatureSetDefaults_FeatureSetEditionDefaultJson[]; - /** - * The minimum supported edition (inclusive) when this was constructed. - * Editions before this will not have defaults. - * - * @generated from field: optional google.protobuf.Edition minimum_edition = 4; - */ - minimumEdition?: EditionJson; - /** - * The maximum known edition (inclusive) when this was constructed. Editions - * after this will not have reliable defaults. - * - * @generated from field: optional google.protobuf.Edition maximum_edition = 5; - */ - maximumEdition?: EditionJson; -}; -/** - * Describes the message google.protobuf.FeatureSetDefaults. - * Use `create(FeatureSetDefaultsSchema)` to create a new message. - */ -export declare const FeatureSetDefaultsSchema: GenMessage; -/** - * A map from every known edition with a unique set of defaults to its - * defaults. Not all editions may be contained here. For a given edition, - * the defaults at the closest matching edition ordered at or before it should - * be used. This field must be in strict ascending order by edition. - * - * @generated from message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - */ -export type FeatureSetDefaults_FeatureSetEditionDefault = Message<"google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"> & { - /** - * @generated from field: optional google.protobuf.Edition edition = 3; - */ - edition: Edition; - /** - * Defaults of features that can be overridden in this edition. - * - * @generated from field: optional google.protobuf.FeatureSet overridable_features = 4; - */ - overridableFeatures?: FeatureSet; - /** - * Defaults of features that can't be overridden in this edition. - * - * @generated from field: optional google.protobuf.FeatureSet fixed_features = 5; - */ - fixedFeatures?: FeatureSet; -}; -/** - * A map from every known edition with a unique set of defaults to its - * defaults. Not all editions may be contained here. For a given edition, - * the defaults at the closest matching edition ordered at or before it should - * be used. This field must be in strict ascending order by edition. - * - * @generated from message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - */ -export type FeatureSetDefaults_FeatureSetEditionDefaultJson = { - /** - * @generated from field: optional google.protobuf.Edition edition = 3; - */ - edition?: EditionJson; - /** - * Defaults of features that can be overridden in this edition. - * - * @generated from field: optional google.protobuf.FeatureSet overridable_features = 4; - */ - overridableFeatures?: FeatureSetJson; - /** - * Defaults of features that can't be overridden in this edition. - * - * @generated from field: optional google.protobuf.FeatureSet fixed_features = 5; - */ - fixedFeatures?: FeatureSetJson; -}; -/** - * Describes the message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault. - * Use `create(FeatureSetDefaults_FeatureSetEditionDefaultSchema)` to create a new message. - */ -export declare const FeatureSetDefaults_FeatureSetEditionDefaultSchema: GenMessage; -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - * - * @generated from message google.protobuf.SourceCodeInfo - */ -export type SourceCodeInfo = Message<"google.protobuf.SourceCodeInfo"> & { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - * - * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1; - */ - location: SourceCodeInfo_Location[]; -}; -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - * - * @generated from message google.protobuf.SourceCodeInfo - */ -export type SourceCodeInfoJson = { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - * - * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1; - */ - location?: SourceCodeInfo_LocationJson[]; -}; -/** - * Describes the message google.protobuf.SourceCodeInfo. - * Use `create(SourceCodeInfoSchema)` to create a new message. - */ -export declare const SourceCodeInfoSchema: GenMessage; -/** - * @generated from message google.protobuf.SourceCodeInfo.Location - */ -export type SourceCodeInfo_Location = Message<"google.protobuf.SourceCodeInfo.Location"> & { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition appears. - * For example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - * - * @generated from field: repeated int32 path = 1 [packed = true]; - */ - path: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - * - * @generated from field: repeated int32 span = 2 [packed = true]; - */ - span: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - * - * @generated from field: optional string leading_comments = 3; - */ - leadingComments: string; - /** - * @generated from field: optional string trailing_comments = 4; - */ - trailingComments: string; - /** - * @generated from field: repeated string leading_detached_comments = 6; - */ - leadingDetachedComments: string[]; -}; -/** - * @generated from message google.protobuf.SourceCodeInfo.Location - */ -export type SourceCodeInfo_LocationJson = { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition appears. - * For example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - * - * @generated from field: repeated int32 path = 1 [packed = true]; - */ - path?: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - * - * @generated from field: repeated int32 span = 2 [packed = true]; - */ - span?: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - * - * @generated from field: optional string leading_comments = 3; - */ - leadingComments?: string; - /** - * @generated from field: optional string trailing_comments = 4; - */ - trailingComments?: string; - /** - * @generated from field: repeated string leading_detached_comments = 6; - */ - leadingDetachedComments?: string[]; -}; -/** - * Describes the message google.protobuf.SourceCodeInfo.Location. - * Use `create(SourceCodeInfo_LocationSchema)` to create a new message. - */ -export declare const SourceCodeInfo_LocationSchema: GenMessage; -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - * - * @generated from message google.protobuf.GeneratedCodeInfo - */ -export type GeneratedCodeInfo = Message<"google.protobuf.GeneratedCodeInfo"> & { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - * - * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; - */ - annotation: GeneratedCodeInfo_Annotation[]; -}; -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - * - * @generated from message google.protobuf.GeneratedCodeInfo - */ -export type GeneratedCodeInfoJson = { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - * - * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; - */ - annotation?: GeneratedCodeInfo_AnnotationJson[]; -}; -/** - * Describes the message google.protobuf.GeneratedCodeInfo. - * Use `create(GeneratedCodeInfoSchema)` to create a new message. - */ -export declare const GeneratedCodeInfoSchema: GenMessage; -/** - * @generated from message google.protobuf.GeneratedCodeInfo.Annotation - */ -export type GeneratedCodeInfo_Annotation = Message<"google.protobuf.GeneratedCodeInfo.Annotation"> & { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - * - * @generated from field: repeated int32 path = 1 [packed = true]; - */ - path: number[]; - /** - * Identifies the filesystem path to the original source .proto. - * - * @generated from field: optional string source_file = 2; - */ - sourceFile: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - * - * @generated from field: optional int32 begin = 3; - */ - begin: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - * - * @generated from field: optional int32 end = 4; - */ - end: number; - /** - * @generated from field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; - */ - semantic: GeneratedCodeInfo_Annotation_Semantic; -}; -/** - * @generated from message google.protobuf.GeneratedCodeInfo.Annotation - */ -export type GeneratedCodeInfo_AnnotationJson = { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - * - * @generated from field: repeated int32 path = 1 [packed = true]; - */ - path?: number[]; - /** - * Identifies the filesystem path to the original source .proto. - * - * @generated from field: optional string source_file = 2; - */ - sourceFile?: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - * - * @generated from field: optional int32 begin = 3; - */ - begin?: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - * - * @generated from field: optional int32 end = 4; - */ - end?: number; - /** - * @generated from field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; - */ - semantic?: GeneratedCodeInfo_Annotation_SemanticJson; -}; -/** - * Describes the message google.protobuf.GeneratedCodeInfo.Annotation. - * Use `create(GeneratedCodeInfo_AnnotationSchema)` to create a new message. - */ -export declare const GeneratedCodeInfo_AnnotationSchema: GenMessage; -/** - * Represents the identified object's effect on the element in the original - * .proto file. - * - * @generated from enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic - */ -export declare enum GeneratedCodeInfo_Annotation_Semantic { - /** - * There is no effect or the effect is indescribable. - * - * @generated from enum value: NONE = 0; - */ - NONE = 0, - /** - * The element is set or otherwise mutated. - * - * @generated from enum value: SET = 1; - */ - SET = 1, - /** - * An alias to the element is returned. - * - * @generated from enum value: ALIAS = 2; - */ - ALIAS = 2 -} -/** - * Represents the identified object's effect on the element in the original - * .proto file. - * - * @generated from enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic - */ -export type GeneratedCodeInfo_Annotation_SemanticJson = "NONE" | "SET" | "ALIAS"; -/** - * Describes the enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic. - */ -export declare const GeneratedCodeInfo_Annotation_SemanticSchema: GenEnum; -/** - * The full set of known editions. - * - * @generated from enum google.protobuf.Edition - */ -export declare enum Edition { - /** - * A placeholder for an unknown edition value. - * - * @generated from enum value: EDITION_UNKNOWN = 0; - */ - EDITION_UNKNOWN = 0, - /** - * A placeholder edition for specifying default behaviors *before* a feature - * was first introduced. This is effectively an "infinite past". - * - * @generated from enum value: EDITION_LEGACY = 900; - */ - EDITION_LEGACY = 900, - /** - * Legacy syntax "editions". These pre-date editions, but behave much like - * distinct editions. These can't be used to specify the edition of proto - * files, but feature definitions must supply proto2/proto3 defaults for - * backwards compatibility. - * - * @generated from enum value: EDITION_PROTO2 = 998; - */ - EDITION_PROTO2 = 998, - /** - * @generated from enum value: EDITION_PROTO3 = 999; - */ - EDITION_PROTO3 = 999, - /** - * Editions that have been released. The specific values are arbitrary and - * should not be depended on, but they will always be time-ordered for easy - * comparison. - * - * @generated from enum value: EDITION_2023 = 1000; - */ - EDITION_2023 = 1000, - /** - * @generated from enum value: EDITION_2024 = 1001; - */ - EDITION_2024 = 1001, - /** - * Placeholder editions for testing feature resolution. These should not be - * used or relied on outside of tests. - * - * @generated from enum value: EDITION_1_TEST_ONLY = 1; - */ - EDITION_1_TEST_ONLY = 1, - /** - * @generated from enum value: EDITION_2_TEST_ONLY = 2; - */ - EDITION_2_TEST_ONLY = 2, - /** - * @generated from enum value: EDITION_99997_TEST_ONLY = 99997; - */ - EDITION_99997_TEST_ONLY = 99997, - /** - * @generated from enum value: EDITION_99998_TEST_ONLY = 99998; - */ - EDITION_99998_TEST_ONLY = 99998, - /** - * @generated from enum value: EDITION_99999_TEST_ONLY = 99999; - */ - EDITION_99999_TEST_ONLY = 99999, - /** - * Placeholder for specifying unbounded edition support. This should only - * ever be used by plugins that can expect to never require any changes to - * support a new edition. - * - * @generated from enum value: EDITION_MAX = 2147483647; - */ - EDITION_MAX = 2147483647 -} -/** - * The full set of known editions. - * - * @generated from enum google.protobuf.Edition - */ -export type EditionJson = "EDITION_UNKNOWN" | "EDITION_LEGACY" | "EDITION_PROTO2" | "EDITION_PROTO3" | "EDITION_2023" | "EDITION_2024" | "EDITION_1_TEST_ONLY" | "EDITION_2_TEST_ONLY" | "EDITION_99997_TEST_ONLY" | "EDITION_99998_TEST_ONLY" | "EDITION_99999_TEST_ONLY" | "EDITION_MAX"; -/** - * Describes the enum google.protobuf.Edition. - */ -export declare const EditionSchema: GenEnum; -/** - * Describes the 'visibility' of a symbol with respect to the proto import - * system. Symbols can only be imported when the visibility rules do not prevent - * it (ex: local symbols cannot be imported). Visibility modifiers can only set - * on `message` and `enum` as they are the only types available to be referenced - * from other files. - * - * @generated from enum google.protobuf.SymbolVisibility - */ -export declare enum SymbolVisibility { - /** - * @generated from enum value: VISIBILITY_UNSET = 0; - */ - VISIBILITY_UNSET = 0, - /** - * @generated from enum value: VISIBILITY_LOCAL = 1; - */ - VISIBILITY_LOCAL = 1, - /** - * @generated from enum value: VISIBILITY_EXPORT = 2; - */ - VISIBILITY_EXPORT = 2 -} -/** - * Describes the 'visibility' of a symbol with respect to the proto import - * system. Symbols can only be imported when the visibility rules do not prevent - * it (ex: local symbols cannot be imported). Visibility modifiers can only set - * on `message` and `enum` as they are the only types available to be referenced - * from other files. - * - * @generated from enum google.protobuf.SymbolVisibility - */ -export type SymbolVisibilityJson = "VISIBILITY_UNSET" | "VISIBILITY_LOCAL" | "VISIBILITY_EXPORT"; -/** - * Describes the enum google.protobuf.SymbolVisibility. - */ -export declare const SymbolVisibilitySchema: GenEnum; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js deleted file mode 100644 index f5b1b47..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +++ /dev/null @@ -1,882 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { boot } from "../../../../codegenv2/boot.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -import { enumDesc } from "../../../../codegenv2/enum.js"; -/** - * Describes the file google/protobuf/descriptor.proto. - */ -export const file_google_protobuf_descriptor = /*@__PURE__*/ boot({ "name": "google/protobuf/descriptor.proto", "package": "google.protobuf", "messageType": [{ "name": "FileDescriptorSet", "field": [{ "name": "file", "number": 1, "type": 11, "label": 3, "typeName": ".google.protobuf.FileDescriptorProto" }], "extensionRange": [{ "start": 536000000, "end": 536000001 }] }, { "name": "FileDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "package", "number": 2, "type": 9, "label": 1 }, { "name": "dependency", "number": 3, "type": 9, "label": 3 }, { "name": "public_dependency", "number": 10, "type": 5, "label": 3 }, { "name": "weak_dependency", "number": 11, "type": 5, "label": 3 }, { "name": "option_dependency", "number": 15, "type": 9, "label": 3 }, { "name": "message_type", "number": 4, "type": 11, "label": 3, "typeName": ".google.protobuf.DescriptorProto" }, { "name": "enum_type", "number": 5, "type": 11, "label": 3, "typeName": ".google.protobuf.EnumDescriptorProto" }, { "name": "service", "number": 6, "type": 11, "label": 3, "typeName": ".google.protobuf.ServiceDescriptorProto" }, { "name": "extension", "number": 7, "type": 11, "label": 3, "typeName": ".google.protobuf.FieldDescriptorProto" }, { "name": "options", "number": 8, "type": 11, "label": 1, "typeName": ".google.protobuf.FileOptions" }, { "name": "source_code_info", "number": 9, "type": 11, "label": 1, "typeName": ".google.protobuf.SourceCodeInfo" }, { "name": "syntax", "number": 12, "type": 9, "label": 1 }, { "name": "edition", "number": 14, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }] }, { "name": "DescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "field", "number": 2, "type": 11, "label": 3, "typeName": ".google.protobuf.FieldDescriptorProto" }, { "name": "extension", "number": 6, "type": 11, "label": 3, "typeName": ".google.protobuf.FieldDescriptorProto" }, { "name": "nested_type", "number": 3, "type": 11, "label": 3, "typeName": ".google.protobuf.DescriptorProto" }, { "name": "enum_type", "number": 4, "type": 11, "label": 3, "typeName": ".google.protobuf.EnumDescriptorProto" }, { "name": "extension_range", "number": 5, "type": 11, "label": 3, "typeName": ".google.protobuf.DescriptorProto.ExtensionRange" }, { "name": "oneof_decl", "number": 8, "type": 11, "label": 3, "typeName": ".google.protobuf.OneofDescriptorProto" }, { "name": "options", "number": 7, "type": 11, "label": 1, "typeName": ".google.protobuf.MessageOptions" }, { "name": "reserved_range", "number": 9, "type": 11, "label": 3, "typeName": ".google.protobuf.DescriptorProto.ReservedRange" }, { "name": "reserved_name", "number": 10, "type": 9, "label": 3 }, { "name": "visibility", "number": 11, "type": 14, "label": 1, "typeName": ".google.protobuf.SymbolVisibility" }], "nestedType": [{ "name": "ExtensionRange", "field": [{ "name": "start", "number": 1, "type": 5, "label": 1 }, { "name": "end", "number": 2, "type": 5, "label": 1 }, { "name": "options", "number": 3, "type": 11, "label": 1, "typeName": ".google.protobuf.ExtensionRangeOptions" }] }, { "name": "ReservedRange", "field": [{ "name": "start", "number": 1, "type": 5, "label": 1 }, { "name": "end", "number": 2, "type": 5, "label": 1 }] }] }, { "name": "ExtensionRangeOptions", "field": [{ "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }, { "name": "declaration", "number": 2, "type": 11, "label": 3, "typeName": ".google.protobuf.ExtensionRangeOptions.Declaration", "options": { "retention": 2 } }, { "name": "features", "number": 50, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "verification", "number": 3, "type": 14, "label": 1, "typeName": ".google.protobuf.ExtensionRangeOptions.VerificationState", "defaultValue": "UNVERIFIED", "options": { "retention": 2 } }], "nestedType": [{ "name": "Declaration", "field": [{ "name": "number", "number": 1, "type": 5, "label": 1 }, { "name": "full_name", "number": 2, "type": 9, "label": 1 }, { "name": "type", "number": 3, "type": 9, "label": 1 }, { "name": "reserved", "number": 5, "type": 8, "label": 1 }, { "name": "repeated", "number": 6, "type": 8, "label": 1 }] }], "enumType": [{ "name": "VerificationState", "value": [{ "name": "DECLARATION", "number": 0 }, { "name": "UNVERIFIED", "number": 1 }] }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "FieldDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "number", "number": 3, "type": 5, "label": 1 }, { "name": "label", "number": 4, "type": 14, "label": 1, "typeName": ".google.protobuf.FieldDescriptorProto.Label" }, { "name": "type", "number": 5, "type": 14, "label": 1, "typeName": ".google.protobuf.FieldDescriptorProto.Type" }, { "name": "type_name", "number": 6, "type": 9, "label": 1 }, { "name": "extendee", "number": 2, "type": 9, "label": 1 }, { "name": "default_value", "number": 7, "type": 9, "label": 1 }, { "name": "oneof_index", "number": 9, "type": 5, "label": 1 }, { "name": "json_name", "number": 10, "type": 9, "label": 1 }, { "name": "options", "number": 8, "type": 11, "label": 1, "typeName": ".google.protobuf.FieldOptions" }, { "name": "proto3_optional", "number": 17, "type": 8, "label": 1 }], "enumType": [{ "name": "Type", "value": [{ "name": "TYPE_DOUBLE", "number": 1 }, { "name": "TYPE_FLOAT", "number": 2 }, { "name": "TYPE_INT64", "number": 3 }, { "name": "TYPE_UINT64", "number": 4 }, { "name": "TYPE_INT32", "number": 5 }, { "name": "TYPE_FIXED64", "number": 6 }, { "name": "TYPE_FIXED32", "number": 7 }, { "name": "TYPE_BOOL", "number": 8 }, { "name": "TYPE_STRING", "number": 9 }, { "name": "TYPE_GROUP", "number": 10 }, { "name": "TYPE_MESSAGE", "number": 11 }, { "name": "TYPE_BYTES", "number": 12 }, { "name": "TYPE_UINT32", "number": 13 }, { "name": "TYPE_ENUM", "number": 14 }, { "name": "TYPE_SFIXED32", "number": 15 }, { "name": "TYPE_SFIXED64", "number": 16 }, { "name": "TYPE_SINT32", "number": 17 }, { "name": "TYPE_SINT64", "number": 18 }] }, { "name": "Label", "value": [{ "name": "LABEL_OPTIONAL", "number": 1 }, { "name": "LABEL_REPEATED", "number": 3 }, { "name": "LABEL_REQUIRED", "number": 2 }] }] }, { "name": "OneofDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "options", "number": 2, "type": 11, "label": 1, "typeName": ".google.protobuf.OneofOptions" }] }, { "name": "EnumDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "value", "number": 2, "type": 11, "label": 3, "typeName": ".google.protobuf.EnumValueDescriptorProto" }, { "name": "options", "number": 3, "type": 11, "label": 1, "typeName": ".google.protobuf.EnumOptions" }, { "name": "reserved_range", "number": 4, "type": 11, "label": 3, "typeName": ".google.protobuf.EnumDescriptorProto.EnumReservedRange" }, { "name": "reserved_name", "number": 5, "type": 9, "label": 3 }, { "name": "visibility", "number": 6, "type": 14, "label": 1, "typeName": ".google.protobuf.SymbolVisibility" }], "nestedType": [{ "name": "EnumReservedRange", "field": [{ "name": "start", "number": 1, "type": 5, "label": 1 }, { "name": "end", "number": 2, "type": 5, "label": 1 }] }] }, { "name": "EnumValueDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "number", "number": 2, "type": 5, "label": 1 }, { "name": "options", "number": 3, "type": 11, "label": 1, "typeName": ".google.protobuf.EnumValueOptions" }] }, { "name": "ServiceDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "method", "number": 2, "type": 11, "label": 3, "typeName": ".google.protobuf.MethodDescriptorProto" }, { "name": "options", "number": 3, "type": 11, "label": 1, "typeName": ".google.protobuf.ServiceOptions" }] }, { "name": "MethodDescriptorProto", "field": [{ "name": "name", "number": 1, "type": 9, "label": 1 }, { "name": "input_type", "number": 2, "type": 9, "label": 1 }, { "name": "output_type", "number": 3, "type": 9, "label": 1 }, { "name": "options", "number": 4, "type": 11, "label": 1, "typeName": ".google.protobuf.MethodOptions" }, { "name": "client_streaming", "number": 5, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "server_streaming", "number": 6, "type": 8, "label": 1, "defaultValue": "false" }] }, { "name": "FileOptions", "field": [{ "name": "java_package", "number": 1, "type": 9, "label": 1 }, { "name": "java_outer_classname", "number": 8, "type": 9, "label": 1 }, { "name": "java_multiple_files", "number": 10, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "java_generate_equals_and_hash", "number": 20, "type": 8, "label": 1, "options": { "deprecated": true } }, { "name": "java_string_check_utf8", "number": 27, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "optimize_for", "number": 9, "type": 14, "label": 1, "typeName": ".google.protobuf.FileOptions.OptimizeMode", "defaultValue": "SPEED" }, { "name": "go_package", "number": 11, "type": 9, "label": 1 }, { "name": "cc_generic_services", "number": 16, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "java_generic_services", "number": 17, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "py_generic_services", "number": 18, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "deprecated", "number": 23, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "cc_enable_arenas", "number": 31, "type": 8, "label": 1, "defaultValue": "true" }, { "name": "objc_class_prefix", "number": 36, "type": 9, "label": 1 }, { "name": "csharp_namespace", "number": 37, "type": 9, "label": 1 }, { "name": "swift_prefix", "number": 39, "type": 9, "label": 1 }, { "name": "php_class_prefix", "number": 40, "type": 9, "label": 1 }, { "name": "php_namespace", "number": 41, "type": 9, "label": 1 }, { "name": "php_metadata_namespace", "number": 44, "type": 9, "label": 1 }, { "name": "ruby_package", "number": 45, "type": 9, "label": 1 }, { "name": "features", "number": 50, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "enumType": [{ "name": "OptimizeMode", "value": [{ "name": "SPEED", "number": 1 }, { "name": "CODE_SIZE", "number": 2 }, { "name": "LITE_RUNTIME", "number": 3 }] }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "MessageOptions", "field": [{ "name": "message_set_wire_format", "number": 1, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "no_standard_descriptor_accessor", "number": 2, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "deprecated", "number": 3, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "map_entry", "number": 7, "type": 8, "label": 1 }, { "name": "deprecated_legacy_json_field_conflicts", "number": 11, "type": 8, "label": 1, "options": { "deprecated": true } }, { "name": "features", "number": 12, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "FieldOptions", "field": [{ "name": "ctype", "number": 1, "type": 14, "label": 1, "typeName": ".google.protobuf.FieldOptions.CType", "defaultValue": "STRING" }, { "name": "packed", "number": 2, "type": 8, "label": 1 }, { "name": "jstype", "number": 6, "type": 14, "label": 1, "typeName": ".google.protobuf.FieldOptions.JSType", "defaultValue": "JS_NORMAL" }, { "name": "lazy", "number": 5, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "unverified_lazy", "number": 15, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "deprecated", "number": 3, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "weak", "number": 10, "type": 8, "label": 1, "defaultValue": "false", "options": { "deprecated": true } }, { "name": "debug_redact", "number": 16, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "retention", "number": 17, "type": 14, "label": 1, "typeName": ".google.protobuf.FieldOptions.OptionRetention" }, { "name": "targets", "number": 19, "type": 14, "label": 3, "typeName": ".google.protobuf.FieldOptions.OptionTargetType" }, { "name": "edition_defaults", "number": 20, "type": 11, "label": 3, "typeName": ".google.protobuf.FieldOptions.EditionDefault" }, { "name": "features", "number": 21, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "feature_support", "number": 22, "type": 11, "label": 1, "typeName": ".google.protobuf.FieldOptions.FeatureSupport" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "nestedType": [{ "name": "EditionDefault", "field": [{ "name": "edition", "number": 3, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }, { "name": "value", "number": 2, "type": 9, "label": 1 }] }, { "name": "FeatureSupport", "field": [{ "name": "edition_introduced", "number": 1, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }, { "name": "edition_deprecated", "number": 2, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }, { "name": "deprecation_warning", "number": 3, "type": 9, "label": 1 }, { "name": "edition_removed", "number": 4, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }] }], "enumType": [{ "name": "CType", "value": [{ "name": "STRING", "number": 0 }, { "name": "CORD", "number": 1 }, { "name": "STRING_PIECE", "number": 2 }] }, { "name": "JSType", "value": [{ "name": "JS_NORMAL", "number": 0 }, { "name": "JS_STRING", "number": 1 }, { "name": "JS_NUMBER", "number": 2 }] }, { "name": "OptionRetention", "value": [{ "name": "RETENTION_UNKNOWN", "number": 0 }, { "name": "RETENTION_RUNTIME", "number": 1 }, { "name": "RETENTION_SOURCE", "number": 2 }] }, { "name": "OptionTargetType", "value": [{ "name": "TARGET_TYPE_UNKNOWN", "number": 0 }, { "name": "TARGET_TYPE_FILE", "number": 1 }, { "name": "TARGET_TYPE_EXTENSION_RANGE", "number": 2 }, { "name": "TARGET_TYPE_MESSAGE", "number": 3 }, { "name": "TARGET_TYPE_FIELD", "number": 4 }, { "name": "TARGET_TYPE_ONEOF", "number": 5 }, { "name": "TARGET_TYPE_ENUM", "number": 6 }, { "name": "TARGET_TYPE_ENUM_ENTRY", "number": 7 }, { "name": "TARGET_TYPE_SERVICE", "number": 8 }, { "name": "TARGET_TYPE_METHOD", "number": 9 }] }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "OneofOptions", "field": [{ "name": "features", "number": 1, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "EnumOptions", "field": [{ "name": "allow_alias", "number": 2, "type": 8, "label": 1 }, { "name": "deprecated", "number": 3, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "deprecated_legacy_json_field_conflicts", "number": 6, "type": 8, "label": 1, "options": { "deprecated": true } }, { "name": "features", "number": 7, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "EnumValueOptions", "field": [{ "name": "deprecated", "number": 1, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "features", "number": 2, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "debug_redact", "number": 3, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "feature_support", "number": 4, "type": 11, "label": 1, "typeName": ".google.protobuf.FieldOptions.FeatureSupport" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "ServiceOptions", "field": [{ "name": "features", "number": 34, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "deprecated", "number": 33, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "MethodOptions", "field": [{ "name": "deprecated", "number": 33, "type": 8, "label": 1, "defaultValue": "false" }, { "name": "idempotency_level", "number": 34, "type": 14, "label": 1, "typeName": ".google.protobuf.MethodOptions.IdempotencyLevel", "defaultValue": "IDEMPOTENCY_UNKNOWN" }, { "name": "features", "number": 35, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "uninterpreted_option", "number": 999, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption" }], "enumType": [{ "name": "IdempotencyLevel", "value": [{ "name": "IDEMPOTENCY_UNKNOWN", "number": 0 }, { "name": "NO_SIDE_EFFECTS", "number": 1 }, { "name": "IDEMPOTENT", "number": 2 }] }], "extensionRange": [{ "start": 1000, "end": 536870912 }] }, { "name": "UninterpretedOption", "field": [{ "name": "name", "number": 2, "type": 11, "label": 3, "typeName": ".google.protobuf.UninterpretedOption.NamePart" }, { "name": "identifier_value", "number": 3, "type": 9, "label": 1 }, { "name": "positive_int_value", "number": 4, "type": 4, "label": 1 }, { "name": "negative_int_value", "number": 5, "type": 3, "label": 1 }, { "name": "double_value", "number": 6, "type": 1, "label": 1 }, { "name": "string_value", "number": 7, "type": 12, "label": 1 }, { "name": "aggregate_value", "number": 8, "type": 9, "label": 1 }], "nestedType": [{ "name": "NamePart", "field": [{ "name": "name_part", "number": 1, "type": 9, "label": 2 }, { "name": "is_extension", "number": 2, "type": 8, "label": 2 }] }] }, { "name": "FeatureSet", "field": [{ "name": "field_presence", "number": 1, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.FieldPresence", "options": { "retention": 1, "targets": [4, 1], "editionDefaults": [{ "value": "EXPLICIT", "edition": 900 }, { "value": "IMPLICIT", "edition": 999 }, { "value": "EXPLICIT", "edition": 1000 }] } }, { "name": "enum_type", "number": 2, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.EnumType", "options": { "retention": 1, "targets": [6, 1], "editionDefaults": [{ "value": "CLOSED", "edition": 900 }, { "value": "OPEN", "edition": 999 }] } }, { "name": "repeated_field_encoding", "number": 3, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.RepeatedFieldEncoding", "options": { "retention": 1, "targets": [4, 1], "editionDefaults": [{ "value": "EXPANDED", "edition": 900 }, { "value": "PACKED", "edition": 999 }] } }, { "name": "utf8_validation", "number": 4, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.Utf8Validation", "options": { "retention": 1, "targets": [4, 1], "editionDefaults": [{ "value": "NONE", "edition": 900 }, { "value": "VERIFY", "edition": 999 }] } }, { "name": "message_encoding", "number": 5, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.MessageEncoding", "options": { "retention": 1, "targets": [4, 1], "editionDefaults": [{ "value": "LENGTH_PREFIXED", "edition": 900 }] } }, { "name": "json_format", "number": 6, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.JsonFormat", "options": { "retention": 1, "targets": [3, 6, 1], "editionDefaults": [{ "value": "LEGACY_BEST_EFFORT", "edition": 900 }, { "value": "ALLOW", "edition": 999 }] } }, { "name": "enforce_naming_style", "number": 7, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.EnforceNamingStyle", "options": { "retention": 2, "targets": [1, 2, 3, 4, 5, 6, 7, 8, 9], "editionDefaults": [{ "value": "STYLE_LEGACY", "edition": 900 }, { "value": "STYLE2024", "edition": 1001 }] } }, { "name": "default_symbol_visibility", "number": 8, "type": 14, "label": 1, "typeName": ".google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility", "options": { "retention": 2, "targets": [1], "editionDefaults": [{ "value": "EXPORT_ALL", "edition": 900 }, { "value": "EXPORT_TOP_LEVEL", "edition": 1001 }] } }], "nestedType": [{ "name": "VisibilityFeature", "enumType": [{ "name": "DefaultSymbolVisibility", "value": [{ "name": "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN", "number": 0 }, { "name": "EXPORT_ALL", "number": 1 }, { "name": "EXPORT_TOP_LEVEL", "number": 2 }, { "name": "LOCAL_ALL", "number": 3 }, { "name": "STRICT", "number": 4 }] }] }], "enumType": [{ "name": "FieldPresence", "value": [{ "name": "FIELD_PRESENCE_UNKNOWN", "number": 0 }, { "name": "EXPLICIT", "number": 1 }, { "name": "IMPLICIT", "number": 2 }, { "name": "LEGACY_REQUIRED", "number": 3 }] }, { "name": "EnumType", "value": [{ "name": "ENUM_TYPE_UNKNOWN", "number": 0 }, { "name": "OPEN", "number": 1 }, { "name": "CLOSED", "number": 2 }] }, { "name": "RepeatedFieldEncoding", "value": [{ "name": "REPEATED_FIELD_ENCODING_UNKNOWN", "number": 0 }, { "name": "PACKED", "number": 1 }, { "name": "EXPANDED", "number": 2 }] }, { "name": "Utf8Validation", "value": [{ "name": "UTF8_VALIDATION_UNKNOWN", "number": 0 }, { "name": "VERIFY", "number": 2 }, { "name": "NONE", "number": 3 }] }, { "name": "MessageEncoding", "value": [{ "name": "MESSAGE_ENCODING_UNKNOWN", "number": 0 }, { "name": "LENGTH_PREFIXED", "number": 1 }, { "name": "DELIMITED", "number": 2 }] }, { "name": "JsonFormat", "value": [{ "name": "JSON_FORMAT_UNKNOWN", "number": 0 }, { "name": "ALLOW", "number": 1 }, { "name": "LEGACY_BEST_EFFORT", "number": 2 }] }, { "name": "EnforceNamingStyle", "value": [{ "name": "ENFORCE_NAMING_STYLE_UNKNOWN", "number": 0 }, { "name": "STYLE2024", "number": 1 }, { "name": "STYLE_LEGACY", "number": 2 }] }], "extensionRange": [{ "start": 1000, "end": 9995 }, { "start": 9995, "end": 10000 }, { "start": 10000, "end": 10001 }] }, { "name": "FeatureSetDefaults", "field": [{ "name": "defaults", "number": 1, "type": 11, "label": 3, "typeName": ".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault" }, { "name": "minimum_edition", "number": 4, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }, { "name": "maximum_edition", "number": 5, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }], "nestedType": [{ "name": "FeatureSetEditionDefault", "field": [{ "name": "edition", "number": 3, "type": 14, "label": 1, "typeName": ".google.protobuf.Edition" }, { "name": "overridable_features", "number": 4, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }, { "name": "fixed_features", "number": 5, "type": 11, "label": 1, "typeName": ".google.protobuf.FeatureSet" }] }] }, { "name": "SourceCodeInfo", "field": [{ "name": "location", "number": 1, "type": 11, "label": 3, "typeName": ".google.protobuf.SourceCodeInfo.Location" }], "nestedType": [{ "name": "Location", "field": [{ "name": "path", "number": 1, "type": 5, "label": 3, "options": { "packed": true } }, { "name": "span", "number": 2, "type": 5, "label": 3, "options": { "packed": true } }, { "name": "leading_comments", "number": 3, "type": 9, "label": 1 }, { "name": "trailing_comments", "number": 4, "type": 9, "label": 1 }, { "name": "leading_detached_comments", "number": 6, "type": 9, "label": 3 }] }], "extensionRange": [{ "start": 536000000, "end": 536000001 }] }, { "name": "GeneratedCodeInfo", "field": [{ "name": "annotation", "number": 1, "type": 11, "label": 3, "typeName": ".google.protobuf.GeneratedCodeInfo.Annotation" }], "nestedType": [{ "name": "Annotation", "field": [{ "name": "path", "number": 1, "type": 5, "label": 3, "options": { "packed": true } }, { "name": "source_file", "number": 2, "type": 9, "label": 1 }, { "name": "begin", "number": 3, "type": 5, "label": 1 }, { "name": "end", "number": 4, "type": 5, "label": 1 }, { "name": "semantic", "number": 5, "type": 14, "label": 1, "typeName": ".google.protobuf.GeneratedCodeInfo.Annotation.Semantic" }], "enumType": [{ "name": "Semantic", "value": [{ "name": "NONE", "number": 0 }, { "name": "SET", "number": 1 }, { "name": "ALIAS", "number": 2 }] }] }] }], "enumType": [{ "name": "Edition", "value": [{ "name": "EDITION_UNKNOWN", "number": 0 }, { "name": "EDITION_LEGACY", "number": 900 }, { "name": "EDITION_PROTO2", "number": 998 }, { "name": "EDITION_PROTO3", "number": 999 }, { "name": "EDITION_2023", "number": 1000 }, { "name": "EDITION_2024", "number": 1001 }, { "name": "EDITION_1_TEST_ONLY", "number": 1 }, { "name": "EDITION_2_TEST_ONLY", "number": 2 }, { "name": "EDITION_99997_TEST_ONLY", "number": 99997 }, { "name": "EDITION_99998_TEST_ONLY", "number": 99998 }, { "name": "EDITION_99999_TEST_ONLY", "number": 99999 }, { "name": "EDITION_MAX", "number": 2147483647 }] }, { "name": "SymbolVisibility", "value": [{ "name": "VISIBILITY_UNSET", "number": 0 }, { "name": "VISIBILITY_LOCAL", "number": 1 }, { "name": "VISIBILITY_EXPORT", "number": 2 }] }] }); -/** - * Describes the message google.protobuf.FileDescriptorSet. - * Use `create(FileDescriptorSetSchema)` to create a new message. - */ -export const FileDescriptorSetSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 0); -/** - * Describes the message google.protobuf.FileDescriptorProto. - * Use `create(FileDescriptorProtoSchema)` to create a new message. - */ -export const FileDescriptorProtoSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 1); -/** - * Describes the message google.protobuf.DescriptorProto. - * Use `create(DescriptorProtoSchema)` to create a new message. - */ -export const DescriptorProtoSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 2); -/** - * Describes the message google.protobuf.DescriptorProto.ExtensionRange. - * Use `create(DescriptorProto_ExtensionRangeSchema)` to create a new message. - */ -export const DescriptorProto_ExtensionRangeSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 2, 0); -/** - * Describes the message google.protobuf.DescriptorProto.ReservedRange. - * Use `create(DescriptorProto_ReservedRangeSchema)` to create a new message. - */ -export const DescriptorProto_ReservedRangeSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 2, 1); -/** - * Describes the message google.protobuf.ExtensionRangeOptions. - * Use `create(ExtensionRangeOptionsSchema)` to create a new message. - */ -export const ExtensionRangeOptionsSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 3); -/** - * Describes the message google.protobuf.ExtensionRangeOptions.Declaration. - * Use `create(ExtensionRangeOptions_DeclarationSchema)` to create a new message. - */ -export const ExtensionRangeOptions_DeclarationSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 3, 0); -/** - * The verification state of the extension range. - * - * @generated from enum google.protobuf.ExtensionRangeOptions.VerificationState - */ -export var ExtensionRangeOptions_VerificationState; -(function (ExtensionRangeOptions_VerificationState) { - /** - * All the extensions of the range must be declared. - * - * @generated from enum value: DECLARATION = 0; - */ - ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["DECLARATION"] = 0] = "DECLARATION"; - /** - * @generated from enum value: UNVERIFIED = 1; - */ - ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNVERIFIED"] = 1] = "UNVERIFIED"; -})(ExtensionRangeOptions_VerificationState || (ExtensionRangeOptions_VerificationState = {})); -/** - * Describes the enum google.protobuf.ExtensionRangeOptions.VerificationState. - */ -export const ExtensionRangeOptions_VerificationStateSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 3, 0); -/** - * Describes the message google.protobuf.FieldDescriptorProto. - * Use `create(FieldDescriptorProtoSchema)` to create a new message. - */ -export const FieldDescriptorProtoSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 4); -/** - * @generated from enum google.protobuf.FieldDescriptorProto.Type - */ -export var FieldDescriptorProto_Type; -(function (FieldDescriptorProto_Type) { - /** - * 0 is reserved for errors. - * Order is weird for historical reasons. - * - * @generated from enum value: TYPE_DOUBLE = 1; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["DOUBLE"] = 1] = "DOUBLE"; - /** - * @generated from enum value: TYPE_FLOAT = 2; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["FLOAT"] = 2] = "FLOAT"; - /** - * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - * - * @generated from enum value: TYPE_INT64 = 3; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["INT64"] = 3] = "INT64"; - /** - * @generated from enum value: TYPE_UINT64 = 4; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["UINT64"] = 4] = "UINT64"; - /** - * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - * - * @generated from enum value: TYPE_INT32 = 5; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["INT32"] = 5] = "INT32"; - /** - * @generated from enum value: TYPE_FIXED64 = 6; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["FIXED64"] = 6] = "FIXED64"; - /** - * @generated from enum value: TYPE_FIXED32 = 7; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["FIXED32"] = 7] = "FIXED32"; - /** - * @generated from enum value: TYPE_BOOL = 8; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["BOOL"] = 8] = "BOOL"; - /** - * @generated from enum value: TYPE_STRING = 9; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["STRING"] = 9] = "STRING"; - /** - * Tag-delimited aggregate. - * Group type is deprecated and not supported after google.protobuf. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. In Editions, the group wire format - * can be enabled via the `message_encoding` feature. - * - * @generated from enum value: TYPE_GROUP = 10; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["GROUP"] = 10] = "GROUP"; - /** - * Length-delimited aggregate. - * - * @generated from enum value: TYPE_MESSAGE = 11; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["MESSAGE"] = 11] = "MESSAGE"; - /** - * New in version 2. - * - * @generated from enum value: TYPE_BYTES = 12; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["BYTES"] = 12] = "BYTES"; - /** - * @generated from enum value: TYPE_UINT32 = 13; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["UINT32"] = 13] = "UINT32"; - /** - * @generated from enum value: TYPE_ENUM = 14; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["ENUM"] = 14] = "ENUM"; - /** - * @generated from enum value: TYPE_SFIXED32 = 15; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["SFIXED32"] = 15] = "SFIXED32"; - /** - * @generated from enum value: TYPE_SFIXED64 = 16; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["SFIXED64"] = 16] = "SFIXED64"; - /** - * Uses ZigZag encoding. - * - * @generated from enum value: TYPE_SINT32 = 17; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["SINT32"] = 17] = "SINT32"; - /** - * Uses ZigZag encoding. - * - * @generated from enum value: TYPE_SINT64 = 18; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["SINT64"] = 18] = "SINT64"; -})(FieldDescriptorProto_Type || (FieldDescriptorProto_Type = {})); -/** - * Describes the enum google.protobuf.FieldDescriptorProto.Type. - */ -export const FieldDescriptorProto_TypeSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 4, 0); -/** - * @generated from enum google.protobuf.FieldDescriptorProto.Label - */ -export var FieldDescriptorProto_Label; -(function (FieldDescriptorProto_Label) { - /** - * 0 is reserved for errors - * - * @generated from enum value: LABEL_OPTIONAL = 1; - */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["OPTIONAL"] = 1] = "OPTIONAL"; - /** - * @generated from enum value: LABEL_REPEATED = 3; - */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["REPEATED"] = 3] = "REPEATED"; - /** - * The required label is only allowed in google.protobuf. In proto3 and Editions - * it's explicitly prohibited. In Editions, the `field_presence` feature - * can be used to get this behavior. - * - * @generated from enum value: LABEL_REQUIRED = 2; - */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["REQUIRED"] = 2] = "REQUIRED"; -})(FieldDescriptorProto_Label || (FieldDescriptorProto_Label = {})); -/** - * Describes the enum google.protobuf.FieldDescriptorProto.Label. - */ -export const FieldDescriptorProto_LabelSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 4, 1); -/** - * Describes the message google.protobuf.OneofDescriptorProto. - * Use `create(OneofDescriptorProtoSchema)` to create a new message. - */ -export const OneofDescriptorProtoSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 5); -/** - * Describes the message google.protobuf.EnumDescriptorProto. - * Use `create(EnumDescriptorProtoSchema)` to create a new message. - */ -export const EnumDescriptorProtoSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 6); -/** - * Describes the message google.protobuf.EnumDescriptorProto.EnumReservedRange. - * Use `create(EnumDescriptorProto_EnumReservedRangeSchema)` to create a new message. - */ -export const EnumDescriptorProto_EnumReservedRangeSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 6, 0); -/** - * Describes the message google.protobuf.EnumValueDescriptorProto. - * Use `create(EnumValueDescriptorProtoSchema)` to create a new message. - */ -export const EnumValueDescriptorProtoSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 7); -/** - * Describes the message google.protobuf.ServiceDescriptorProto. - * Use `create(ServiceDescriptorProtoSchema)` to create a new message. - */ -export const ServiceDescriptorProtoSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 8); -/** - * Describes the message google.protobuf.MethodDescriptorProto. - * Use `create(MethodDescriptorProtoSchema)` to create a new message. - */ -export const MethodDescriptorProtoSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 9); -/** - * Describes the message google.protobuf.FileOptions. - * Use `create(FileOptionsSchema)` to create a new message. - */ -export const FileOptionsSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 10); -/** - * Generated classes can be optimized for speed or code size. - * - * @generated from enum google.protobuf.FileOptions.OptimizeMode - */ -export var FileOptions_OptimizeMode; -(function (FileOptions_OptimizeMode) { - /** - * Generate complete code for parsing, serialization, - * - * @generated from enum value: SPEED = 1; - */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED"; - /** - * etc. - * - * Use ReflectionOps to implement these methods. - * - * @generated from enum value: CODE_SIZE = 2; - */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE"; - /** - * Generate code using MessageLite and the lite runtime. - * - * @generated from enum value: LITE_RUNTIME = 3; - */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME"; -})(FileOptions_OptimizeMode || (FileOptions_OptimizeMode = {})); -/** - * Describes the enum google.protobuf.FileOptions.OptimizeMode. - */ -export const FileOptions_OptimizeModeSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 10, 0); -/** - * Describes the message google.protobuf.MessageOptions. - * Use `create(MessageOptionsSchema)` to create a new message. - */ -export const MessageOptionsSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 11); -/** - * Describes the message google.protobuf.FieldOptions. - * Use `create(FieldOptionsSchema)` to create a new message. - */ -export const FieldOptionsSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 12); -/** - * Describes the message google.protobuf.FieldOptions.EditionDefault. - * Use `create(FieldOptions_EditionDefaultSchema)` to create a new message. - */ -export const FieldOptions_EditionDefaultSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 12, 0); -/** - * Describes the message google.protobuf.FieldOptions.FeatureSupport. - * Use `create(FieldOptions_FeatureSupportSchema)` to create a new message. - */ -export const FieldOptions_FeatureSupportSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 12, 1); -/** - * @generated from enum google.protobuf.FieldOptions.CType - */ -export var FieldOptions_CType; -(function (FieldOptions_CType) { - /** - * Default mode. - * - * @generated from enum value: STRING = 0; - */ - FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING"; - /** - * The option [ctype=CORD] may be applied to a non-repeated field of type - * "bytes". It indicates that in C++, the data should be stored in a Cord - * instead of a string. For very large strings, this may reduce memory - * fragmentation. It may also allow better performance when parsing from a - * Cord, or when parsing with aliasing enabled, as the parsed Cord may then - * alias the original buffer. - * - * @generated from enum value: CORD = 1; - */ - FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD"; - /** - * @generated from enum value: STRING_PIECE = 2; - */ - FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE"; -})(FieldOptions_CType || (FieldOptions_CType = {})); -/** - * Describes the enum google.protobuf.FieldOptions.CType. - */ -export const FieldOptions_CTypeSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 12, 0); -/** - * @generated from enum google.protobuf.FieldOptions.JSType - */ -export var FieldOptions_JSType; -(function (FieldOptions_JSType) { - /** - * Use the default type. - * - * @generated from enum value: JS_NORMAL = 0; - */ - FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL"; - /** - * Use JavaScript strings. - * - * @generated from enum value: JS_STRING = 1; - */ - FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING"; - /** - * Use JavaScript numbers. - * - * @generated from enum value: JS_NUMBER = 2; - */ - FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER"; -})(FieldOptions_JSType || (FieldOptions_JSType = {})); -/** - * Describes the enum google.protobuf.FieldOptions.JSType. - */ -export const FieldOptions_JSTypeSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 12, 1); -/** - * If set to RETENTION_SOURCE, the option will be omitted from the binary. - * - * @generated from enum google.protobuf.FieldOptions.OptionRetention - */ -export var FieldOptions_OptionRetention; -(function (FieldOptions_OptionRetention) { - /** - * @generated from enum value: RETENTION_UNKNOWN = 0; - */ - FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_UNKNOWN"] = 0] = "RETENTION_UNKNOWN"; - /** - * @generated from enum value: RETENTION_RUNTIME = 1; - */ - FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_RUNTIME"] = 1] = "RETENTION_RUNTIME"; - /** - * @generated from enum value: RETENTION_SOURCE = 2; - */ - FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_SOURCE"] = 2] = "RETENTION_SOURCE"; -})(FieldOptions_OptionRetention || (FieldOptions_OptionRetention = {})); -/** - * Describes the enum google.protobuf.FieldOptions.OptionRetention. - */ -export const FieldOptions_OptionRetentionSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 12, 2); -/** - * This indicates the types of entities that the field may apply to when used - * as an option. If it is unset, then the field may be freely used as an - * option on any kind of entity. - * - * @generated from enum google.protobuf.FieldOptions.OptionTargetType - */ -export var FieldOptions_OptionTargetType; -(function (FieldOptions_OptionTargetType) { - /** - * @generated from enum value: TARGET_TYPE_UNKNOWN = 0; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_UNKNOWN"] = 0] = "TARGET_TYPE_UNKNOWN"; - /** - * @generated from enum value: TARGET_TYPE_FILE = 1; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FILE"] = 1] = "TARGET_TYPE_FILE"; - /** - * @generated from enum value: TARGET_TYPE_EXTENSION_RANGE = 2; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_EXTENSION_RANGE"] = 2] = "TARGET_TYPE_EXTENSION_RANGE"; - /** - * @generated from enum value: TARGET_TYPE_MESSAGE = 3; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_MESSAGE"] = 3] = "TARGET_TYPE_MESSAGE"; - /** - * @generated from enum value: TARGET_TYPE_FIELD = 4; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FIELD"] = 4] = "TARGET_TYPE_FIELD"; - /** - * @generated from enum value: TARGET_TYPE_ONEOF = 5; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ONEOF"] = 5] = "TARGET_TYPE_ONEOF"; - /** - * @generated from enum value: TARGET_TYPE_ENUM = 6; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM"] = 6] = "TARGET_TYPE_ENUM"; - /** - * @generated from enum value: TARGET_TYPE_ENUM_ENTRY = 7; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM_ENTRY"] = 7] = "TARGET_TYPE_ENUM_ENTRY"; - /** - * @generated from enum value: TARGET_TYPE_SERVICE = 8; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_SERVICE"] = 8] = "TARGET_TYPE_SERVICE"; - /** - * @generated from enum value: TARGET_TYPE_METHOD = 9; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_METHOD"] = 9] = "TARGET_TYPE_METHOD"; -})(FieldOptions_OptionTargetType || (FieldOptions_OptionTargetType = {})); -/** - * Describes the enum google.protobuf.FieldOptions.OptionTargetType. - */ -export const FieldOptions_OptionTargetTypeSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 12, 3); -/** - * Describes the message google.protobuf.OneofOptions. - * Use `create(OneofOptionsSchema)` to create a new message. - */ -export const OneofOptionsSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 13); -/** - * Describes the message google.protobuf.EnumOptions. - * Use `create(EnumOptionsSchema)` to create a new message. - */ -export const EnumOptionsSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 14); -/** - * Describes the message google.protobuf.EnumValueOptions. - * Use `create(EnumValueOptionsSchema)` to create a new message. - */ -export const EnumValueOptionsSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 15); -/** - * Describes the message google.protobuf.ServiceOptions. - * Use `create(ServiceOptionsSchema)` to create a new message. - */ -export const ServiceOptionsSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 16); -/** - * Describes the message google.protobuf.MethodOptions. - * Use `create(MethodOptionsSchema)` to create a new message. - */ -export const MethodOptionsSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 17); -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - * - * @generated from enum google.protobuf.MethodOptions.IdempotencyLevel - */ -export var MethodOptions_IdempotencyLevel; -(function (MethodOptions_IdempotencyLevel) { - /** - * @generated from enum value: IDEMPOTENCY_UNKNOWN = 0; - */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN"; - /** - * implies idempotent - * - * @generated from enum value: NO_SIDE_EFFECTS = 1; - */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS"; - /** - * idempotent, but may have side effects - * - * @generated from enum value: IDEMPOTENT = 2; - */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT"; -})(MethodOptions_IdempotencyLevel || (MethodOptions_IdempotencyLevel = {})); -/** - * Describes the enum google.protobuf.MethodOptions.IdempotencyLevel. - */ -export const MethodOptions_IdempotencyLevelSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 17, 0); -/** - * Describes the message google.protobuf.UninterpretedOption. - * Use `create(UninterpretedOptionSchema)` to create a new message. - */ -export const UninterpretedOptionSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 18); -/** - * Describes the message google.protobuf.UninterpretedOption.NamePart. - * Use `create(UninterpretedOption_NamePartSchema)` to create a new message. - */ -export const UninterpretedOption_NamePartSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 18, 0); -/** - * Describes the message google.protobuf.FeatureSet. - * Use `create(FeatureSetSchema)` to create a new message. - */ -export const FeatureSetSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 19); -/** - * Describes the message google.protobuf.FeatureSet.VisibilityFeature. - * Use `create(FeatureSet_VisibilityFeatureSchema)` to create a new message. - */ -export const FeatureSet_VisibilityFeatureSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 19, 0); -/** - * @generated from enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility - */ -export var FeatureSet_VisibilityFeature_DefaultSymbolVisibility; -(function (FeatureSet_VisibilityFeature_DefaultSymbolVisibility) { - /** - * @generated from enum value: DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0; - */ - FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"; - /** - * Default pre-EDITION_2024, all UNSET visibility are export. - * - * @generated from enum value: EXPORT_ALL = 1; - */ - FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["EXPORT_ALL"] = 1] = "EXPORT_ALL"; - /** - * All top-level symbols default to export, nested default to local. - * - * @generated from enum value: EXPORT_TOP_LEVEL = 2; - */ - FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["EXPORT_TOP_LEVEL"] = 2] = "EXPORT_TOP_LEVEL"; - /** - * All symbols default to local. - * - * @generated from enum value: LOCAL_ALL = 3; - */ - FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["LOCAL_ALL"] = 3] = "LOCAL_ALL"; - /** - * All symbols local by default. Nested types cannot be exported. - * With special case caveat for message { enum {} reserved 1 to max; } - * This is the recommended setting for new protos. - * - * @generated from enum value: STRICT = 4; - */ - FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["STRICT"] = 4] = "STRICT"; -})(FeatureSet_VisibilityFeature_DefaultSymbolVisibility || (FeatureSet_VisibilityFeature_DefaultSymbolVisibility = {})); -/** - * Describes the enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility. - */ -export const FeatureSet_VisibilityFeature_DefaultSymbolVisibilitySchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 19, 0, 0); -/** - * @generated from enum google.protobuf.FeatureSet.FieldPresence - */ -export var FeatureSet_FieldPresence; -(function (FeatureSet_FieldPresence) { - /** - * @generated from enum value: FIELD_PRESENCE_UNKNOWN = 0; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["FIELD_PRESENCE_UNKNOWN"] = 0] = "FIELD_PRESENCE_UNKNOWN"; - /** - * @generated from enum value: EXPLICIT = 1; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["EXPLICIT"] = 1] = "EXPLICIT"; - /** - * @generated from enum value: IMPLICIT = 2; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["IMPLICIT"] = 2] = "IMPLICIT"; - /** - * @generated from enum value: LEGACY_REQUIRED = 3; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["LEGACY_REQUIRED"] = 3] = "LEGACY_REQUIRED"; -})(FeatureSet_FieldPresence || (FeatureSet_FieldPresence = {})); -/** - * Describes the enum google.protobuf.FeatureSet.FieldPresence. - */ -export const FeatureSet_FieldPresenceSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 19, 0); -/** - * @generated from enum google.protobuf.FeatureSet.EnumType - */ -export var FeatureSet_EnumType; -(function (FeatureSet_EnumType) { - /** - * @generated from enum value: ENUM_TYPE_UNKNOWN = 0; - */ - FeatureSet_EnumType[FeatureSet_EnumType["ENUM_TYPE_UNKNOWN"] = 0] = "ENUM_TYPE_UNKNOWN"; - /** - * @generated from enum value: OPEN = 1; - */ - FeatureSet_EnumType[FeatureSet_EnumType["OPEN"] = 1] = "OPEN"; - /** - * @generated from enum value: CLOSED = 2; - */ - FeatureSet_EnumType[FeatureSet_EnumType["CLOSED"] = 2] = "CLOSED"; -})(FeatureSet_EnumType || (FeatureSet_EnumType = {})); -/** - * Describes the enum google.protobuf.FeatureSet.EnumType. - */ -export const FeatureSet_EnumTypeSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 19, 1); -/** - * @generated from enum google.protobuf.FeatureSet.RepeatedFieldEncoding - */ -export var FeatureSet_RepeatedFieldEncoding; -(function (FeatureSet_RepeatedFieldEncoding) { - /** - * @generated from enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0; - */ - FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["REPEATED_FIELD_ENCODING_UNKNOWN"] = 0] = "REPEATED_FIELD_ENCODING_UNKNOWN"; - /** - * @generated from enum value: PACKED = 1; - */ - FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["PACKED"] = 1] = "PACKED"; - /** - * @generated from enum value: EXPANDED = 2; - */ - FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["EXPANDED"] = 2] = "EXPANDED"; -})(FeatureSet_RepeatedFieldEncoding || (FeatureSet_RepeatedFieldEncoding = {})); -/** - * Describes the enum google.protobuf.FeatureSet.RepeatedFieldEncoding. - */ -export const FeatureSet_RepeatedFieldEncodingSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 19, 2); -/** - * @generated from enum google.protobuf.FeatureSet.Utf8Validation - */ -export var FeatureSet_Utf8Validation; -(function (FeatureSet_Utf8Validation) { - /** - * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0; - */ - FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN"; - /** - * @generated from enum value: VERIFY = 2; - */ - FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["VERIFY"] = 2] = "VERIFY"; - /** - * @generated from enum value: NONE = 3; - */ - FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 3] = "NONE"; -})(FeatureSet_Utf8Validation || (FeatureSet_Utf8Validation = {})); -/** - * Describes the enum google.protobuf.FeatureSet.Utf8Validation. - */ -export const FeatureSet_Utf8ValidationSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 19, 3); -/** - * @generated from enum google.protobuf.FeatureSet.MessageEncoding - */ -export var FeatureSet_MessageEncoding; -(function (FeatureSet_MessageEncoding) { - /** - * @generated from enum value: MESSAGE_ENCODING_UNKNOWN = 0; - */ - FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["MESSAGE_ENCODING_UNKNOWN"] = 0] = "MESSAGE_ENCODING_UNKNOWN"; - /** - * @generated from enum value: LENGTH_PREFIXED = 1; - */ - FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["LENGTH_PREFIXED"] = 1] = "LENGTH_PREFIXED"; - /** - * @generated from enum value: DELIMITED = 2; - */ - FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["DELIMITED"] = 2] = "DELIMITED"; -})(FeatureSet_MessageEncoding || (FeatureSet_MessageEncoding = {})); -/** - * Describes the enum google.protobuf.FeatureSet.MessageEncoding. - */ -export const FeatureSet_MessageEncodingSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 19, 4); -/** - * @generated from enum google.protobuf.FeatureSet.JsonFormat - */ -export var FeatureSet_JsonFormat; -(function (FeatureSet_JsonFormat) { - /** - * @generated from enum value: JSON_FORMAT_UNKNOWN = 0; - */ - FeatureSet_JsonFormat[FeatureSet_JsonFormat["JSON_FORMAT_UNKNOWN"] = 0] = "JSON_FORMAT_UNKNOWN"; - /** - * @generated from enum value: ALLOW = 1; - */ - FeatureSet_JsonFormat[FeatureSet_JsonFormat["ALLOW"] = 1] = "ALLOW"; - /** - * @generated from enum value: LEGACY_BEST_EFFORT = 2; - */ - FeatureSet_JsonFormat[FeatureSet_JsonFormat["LEGACY_BEST_EFFORT"] = 2] = "LEGACY_BEST_EFFORT"; -})(FeatureSet_JsonFormat || (FeatureSet_JsonFormat = {})); -/** - * Describes the enum google.protobuf.FeatureSet.JsonFormat. - */ -export const FeatureSet_JsonFormatSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 19, 5); -/** - * @generated from enum google.protobuf.FeatureSet.EnforceNamingStyle - */ -export var FeatureSet_EnforceNamingStyle; -(function (FeatureSet_EnforceNamingStyle) { - /** - * @generated from enum value: ENFORCE_NAMING_STYLE_UNKNOWN = 0; - */ - FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["ENFORCE_NAMING_STYLE_UNKNOWN"] = 0] = "ENFORCE_NAMING_STYLE_UNKNOWN"; - /** - * @generated from enum value: STYLE2024 = 1; - */ - FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["STYLE2024"] = 1] = "STYLE2024"; - /** - * @generated from enum value: STYLE_LEGACY = 2; - */ - FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["STYLE_LEGACY"] = 2] = "STYLE_LEGACY"; -})(FeatureSet_EnforceNamingStyle || (FeatureSet_EnforceNamingStyle = {})); -/** - * Describes the enum google.protobuf.FeatureSet.EnforceNamingStyle. - */ -export const FeatureSet_EnforceNamingStyleSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 19, 6); -/** - * Describes the message google.protobuf.FeatureSetDefaults. - * Use `create(FeatureSetDefaultsSchema)` to create a new message. - */ -export const FeatureSetDefaultsSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 20); -/** - * Describes the message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault. - * Use `create(FeatureSetDefaults_FeatureSetEditionDefaultSchema)` to create a new message. - */ -export const FeatureSetDefaults_FeatureSetEditionDefaultSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 20, 0); -/** - * Describes the message google.protobuf.SourceCodeInfo. - * Use `create(SourceCodeInfoSchema)` to create a new message. - */ -export const SourceCodeInfoSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 21); -/** - * Describes the message google.protobuf.SourceCodeInfo.Location. - * Use `create(SourceCodeInfo_LocationSchema)` to create a new message. - */ -export const SourceCodeInfo_LocationSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 21, 0); -/** - * Describes the message google.protobuf.GeneratedCodeInfo. - * Use `create(GeneratedCodeInfoSchema)` to create a new message. - */ -export const GeneratedCodeInfoSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 22); -/** - * Describes the message google.protobuf.GeneratedCodeInfo.Annotation. - * Use `create(GeneratedCodeInfo_AnnotationSchema)` to create a new message. - */ -export const GeneratedCodeInfo_AnnotationSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_descriptor, 22, 0); -/** - * Represents the identified object's effect on the element in the original - * .proto file. - * - * @generated from enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic - */ -export var GeneratedCodeInfo_Annotation_Semantic; -(function (GeneratedCodeInfo_Annotation_Semantic) { - /** - * There is no effect or the effect is indescribable. - * - * @generated from enum value: NONE = 0; - */ - GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["NONE"] = 0] = "NONE"; - /** - * The element is set or otherwise mutated. - * - * @generated from enum value: SET = 1; - */ - GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["SET"] = 1] = "SET"; - /** - * An alias to the element is returned. - * - * @generated from enum value: ALIAS = 2; - */ - GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["ALIAS"] = 2] = "ALIAS"; -})(GeneratedCodeInfo_Annotation_Semantic || (GeneratedCodeInfo_Annotation_Semantic = {})); -/** - * Describes the enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic. - */ -export const GeneratedCodeInfo_Annotation_SemanticSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 22, 0, 0); -/** - * The full set of known editions. - * - * @generated from enum google.protobuf.Edition - */ -export var Edition; -(function (Edition) { - /** - * A placeholder for an unknown edition value. - * - * @generated from enum value: EDITION_UNKNOWN = 0; - */ - Edition[Edition["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN"; - /** - * A placeholder edition for specifying default behaviors *before* a feature - * was first introduced. This is effectively an "infinite past". - * - * @generated from enum value: EDITION_LEGACY = 900; - */ - Edition[Edition["EDITION_LEGACY"] = 900] = "EDITION_LEGACY"; - /** - * Legacy syntax "editions". These pre-date editions, but behave much like - * distinct editions. These can't be used to specify the edition of proto - * files, but feature definitions must supply proto2/proto3 defaults for - * backwards compatibility. - * - * @generated from enum value: EDITION_PROTO2 = 998; - */ - Edition[Edition["EDITION_PROTO2"] = 998] = "EDITION_PROTO2"; - /** - * @generated from enum value: EDITION_PROTO3 = 999; - */ - Edition[Edition["EDITION_PROTO3"] = 999] = "EDITION_PROTO3"; - /** - * Editions that have been released. The specific values are arbitrary and - * should not be depended on, but they will always be time-ordered for easy - * comparison. - * - * @generated from enum value: EDITION_2023 = 1000; - */ - Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023"; - /** - * @generated from enum value: EDITION_2024 = 1001; - */ - Edition[Edition["EDITION_2024"] = 1001] = "EDITION_2024"; - /** - * Placeholder editions for testing feature resolution. These should not be - * used or relied on outside of tests. - * - * @generated from enum value: EDITION_1_TEST_ONLY = 1; - */ - Edition[Edition["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY"; - /** - * @generated from enum value: EDITION_2_TEST_ONLY = 2; - */ - Edition[Edition["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY"; - /** - * @generated from enum value: EDITION_99997_TEST_ONLY = 99997; - */ - Edition[Edition["EDITION_99997_TEST_ONLY"] = 99997] = "EDITION_99997_TEST_ONLY"; - /** - * @generated from enum value: EDITION_99998_TEST_ONLY = 99998; - */ - Edition[Edition["EDITION_99998_TEST_ONLY"] = 99998] = "EDITION_99998_TEST_ONLY"; - /** - * @generated from enum value: EDITION_99999_TEST_ONLY = 99999; - */ - Edition[Edition["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY"; - /** - * Placeholder for specifying unbounded edition support. This should only - * ever be used by plugins that can expect to never require any changes to - * support a new edition. - * - * @generated from enum value: EDITION_MAX = 2147483647; - */ - Edition[Edition["EDITION_MAX"] = 2147483647] = "EDITION_MAX"; -})(Edition || (Edition = {})); -/** - * Describes the enum google.protobuf.Edition. - */ -export const EditionSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 0); -/** - * Describes the 'visibility' of a symbol with respect to the proto import - * system. Symbols can only be imported when the visibility rules do not prevent - * it (ex: local symbols cannot be imported). Visibility modifiers can only set - * on `message` and `enum` as they are the only types available to be referenced - * from other files. - * - * @generated from enum google.protobuf.SymbolVisibility - */ -export var SymbolVisibility; -(function (SymbolVisibility) { - /** - * @generated from enum value: VISIBILITY_UNSET = 0; - */ - SymbolVisibility[SymbolVisibility["VISIBILITY_UNSET"] = 0] = "VISIBILITY_UNSET"; - /** - * @generated from enum value: VISIBILITY_LOCAL = 1; - */ - SymbolVisibility[SymbolVisibility["VISIBILITY_LOCAL"] = 1] = "VISIBILITY_LOCAL"; - /** - * @generated from enum value: VISIBILITY_EXPORT = 2; - */ - SymbolVisibility[SymbolVisibility["VISIBILITY_EXPORT"] = 2] = "VISIBILITY_EXPORT"; -})(SymbolVisibility || (SymbolVisibility = {})); -/** - * Describes the enum google.protobuf.SymbolVisibility. - */ -export const SymbolVisibilitySchema = /*@__PURE__*/ enumDesc(file_google_protobuf_descriptor, 1); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.d.ts deleted file mode 100644 index a779ebf..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/duration.proto. - */ -export declare const file_google_protobuf_duration: GenFile; -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (duration.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - * - * - * @generated from message google.protobuf.Duration - */ -export type Duration = Message<"google.protobuf.Duration"> & { - /** - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - * - * @generated from field: int64 seconds = 1; - */ - seconds: bigint; - /** - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - * - * @generated from field: int32 nanos = 2; - */ - nanos: number; -}; -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (duration.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - * - * - * @generated from message google.protobuf.Duration - */ -export type DurationJson = string; -/** - * Describes the message google.protobuf.Duration. - * Use `create(DurationSchema)` to create a new message. - */ -export declare const DurationSchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js deleted file mode 100644 index cb15d06..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../codegenv2/file.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -/** - * Describes the file google/protobuf/duration.proto. - */ -export const file_google_protobuf_duration = /*@__PURE__*/ fileDesc("Ch5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIqCghEdXJhdGlvbhIPCgdzZWNvbmRzGAEgASgDEg0KBW5hbm9zGAIgASgFQoMBChNjb20uZ29vZ2xlLnByb3RvYnVmQg1EdXJhdGlvblByb3RvUAFaMWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2R1cmF0aW9ucGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw"); -/** - * Describes the message google.protobuf.Duration. - * Use `create(DurationSchema)` to create a new message. - */ -export const DurationSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_duration, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts deleted file mode 100644 index d53d568..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/empty.proto. - */ -export declare const file_google_protobuf_empty: GenFile; -/** - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * - * - * @generated from message google.protobuf.Empty - */ -export type Empty = Message<"google.protobuf.Empty"> & {}; -/** - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * - * - * @generated from message google.protobuf.Empty - */ -export type EmptyJson = Record; -/** - * Describes the message google.protobuf.Empty. - * Use `create(EmptySchema)` to create a new message. - */ -export declare const EmptySchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js deleted file mode 100644 index d6a2ff2..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../codegenv2/file.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -/** - * Describes the file google/protobuf/empty.proto. - */ -export const file_google_protobuf_empty = /*@__PURE__*/ fileDesc("Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIHCgVFbXB0eUJ9ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3RvUAFaLmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2VtcHR5cGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw"); -/** - * Describes the message google.protobuf.Empty. - * Use `create(EmptySchema)` to create a new message. - */ -export const EmptySchema = /*@__PURE__*/ messageDesc(file_google_protobuf_empty, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts deleted file mode 100644 index 31781f3..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts +++ /dev/null @@ -1,428 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/field_mask.proto. - */ -export declare const file_google_protobuf_field_mask: GenFile; -/** - * `FieldMask` represents a set of symbolic field paths, for example: - * - * paths: "f.a" - * paths: "f.b.d" - * - * Here `f` represents a field in some root message, `a` and `b` - * fields in the message found in `f`, and `d` a field found in the - * message in `f.b`. - * - * Field masks are used to specify a subset of fields that should be - * returned by a get operation or modified by an update operation. - * Field masks also have a custom JSON encoding (see below). - * - * # Field Masks in Projections - * - * When used in the context of a projection, a response message or - * sub-message is filtered by the API to only contain those fields as - * specified in the mask. For example, if the mask in the previous - * example is applied to a response message as follows: - * - * f { - * a : 22 - * b { - * d : 1 - * x : 2 - * } - * y : 13 - * } - * z: 8 - * - * The result will not contain specific values for fields x,y and z - * (their value will be set to the default, and omitted in proto text - * output): - * - * - * f { - * a : 22 - * b { - * d : 1 - * } - * } - * - * A repeated field is not allowed except at the last position of a - * paths string. - * - * If a FieldMask object is not present in a get operation, the - * operation applies to all fields (as if a FieldMask of all fields - * had been specified). - * - * Note that a field mask does not necessarily apply to the - * top-level response message. In case of a REST get operation, the - * field mask applies directly to the response, but in case of a REST - * list operation, the mask instead applies to each individual message - * in the returned resource list. In case of a REST custom method, - * other definitions may be used. Where the mask applies will be - * clearly documented together with its declaration in the API. In - * any case, the effect on the returned resource/resources is required - * behavior for APIs. - * - * # Field Masks in Update Operations - * - * A field mask in update operations specifies which fields of the - * targeted resource are going to be updated. The API is required - * to only change the values of the fields as specified in the mask - * and leave the others untouched. If a resource is passed in to - * describe the updated values, the API ignores the values of all - * fields not covered by the mask. - * - * If a repeated field is specified for an update operation, new values will - * be appended to the existing repeated field in the target resource. Note that - * a repeated field is only allowed in the last position of a `paths` string. - * - * If a sub-message is specified in the last position of the field mask for an - * update operation, then new value will be merged into the existing sub-message - * in the target resource. - * - * For example, given the target message: - * - * f { - * b { - * d: 1 - * x: 2 - * } - * c: [1] - * } - * - * And an update message: - * - * f { - * b { - * d: 10 - * } - * c: [2] - * } - * - * then if the field mask is: - * - * paths: ["f.b", "f.c"] - * - * then the result will be: - * - * f { - * b { - * d: 10 - * x: 2 - * } - * c: [1, 2] - * } - * - * An implementation may provide options to override this default behavior for - * repeated and message fields. - * - * In order to reset a field's value to the default, the field must - * be in the mask and set to the default value in the provided resource. - * Hence, in order to reset all fields of a resource, provide a default - * instance of the resource and set all fields in the mask, or do - * not provide a mask as described below. - * - * If a field mask is not present on update, the operation applies to - * all fields (as if a field mask of all fields has been specified). - * Note that in the presence of schema evolution, this may mean that - * fields the client does not know and has therefore not filled into - * the request will be reset to their default. If this is unwanted - * behavior, a specific service may require a client to always specify - * a field mask, producing an error if not. - * - * As with get operations, the location of the resource which - * describes the updated values in the request message depends on the - * operation kind. In any case, the effect of the field mask is - * required to be honored by the API. - * - * ## Considerations for HTTP REST - * - * The HTTP kind of an update operation which uses a field mask must - * be set to PATCH instead of PUT in order to satisfy HTTP semantics - * (PUT must only be used for full updates). - * - * # JSON Encoding of Field Masks - * - * In JSON, a field mask is encoded as a single string where paths are - * separated by a comma. Fields name in each path are converted - * to/from lower-camel naming conventions. - * - * As an example, consider the following message declarations: - * - * message Profile { - * User user = 1; - * Photo photo = 2; - * } - * message User { - * string display_name = 1; - * string address = 2; - * } - * - * In proto a field mask for `Profile` may look as such: - * - * mask { - * paths: "user.display_name" - * paths: "photo" - * } - * - * In JSON, the same mask is represented as below: - * - * { - * mask: "user.displayName,photo" - * } - * - * # Field Masks and Oneof Fields - * - * Field masks treat fields in oneofs just as regular fields. Consider the - * following message: - * - * message SampleMessage { - * oneof test_oneof { - * string name = 4; - * SubMessage sub_message = 9; - * } - * } - * - * The field mask can be: - * - * mask { - * paths: "name" - * } - * - * Or: - * - * mask { - * paths: "sub_message" - * } - * - * Note that oneof type names ("test_oneof" in this case) cannot be used in - * paths. - * - * ## Field Mask Verification - * - * The implementation of any API method which has a FieldMask type field in the - * request should verify the included field paths, and return an - * `INVALID_ARGUMENT` error if any path is unmappable. - * - * @generated from message google.protobuf.FieldMask - */ -export type FieldMask = Message<"google.protobuf.FieldMask"> & { - /** - * The set of field mask paths. - * - * @generated from field: repeated string paths = 1; - */ - paths: string[]; -}; -/** - * `FieldMask` represents a set of symbolic field paths, for example: - * - * paths: "f.a" - * paths: "f.b.d" - * - * Here `f` represents a field in some root message, `a` and `b` - * fields in the message found in `f`, and `d` a field found in the - * message in `f.b`. - * - * Field masks are used to specify a subset of fields that should be - * returned by a get operation or modified by an update operation. - * Field masks also have a custom JSON encoding (see below). - * - * # Field Masks in Projections - * - * When used in the context of a projection, a response message or - * sub-message is filtered by the API to only contain those fields as - * specified in the mask. For example, if the mask in the previous - * example is applied to a response message as follows: - * - * f { - * a : 22 - * b { - * d : 1 - * x : 2 - * } - * y : 13 - * } - * z: 8 - * - * The result will not contain specific values for fields x,y and z - * (their value will be set to the default, and omitted in proto text - * output): - * - * - * f { - * a : 22 - * b { - * d : 1 - * } - * } - * - * A repeated field is not allowed except at the last position of a - * paths string. - * - * If a FieldMask object is not present in a get operation, the - * operation applies to all fields (as if a FieldMask of all fields - * had been specified). - * - * Note that a field mask does not necessarily apply to the - * top-level response message. In case of a REST get operation, the - * field mask applies directly to the response, but in case of a REST - * list operation, the mask instead applies to each individual message - * in the returned resource list. In case of a REST custom method, - * other definitions may be used. Where the mask applies will be - * clearly documented together with its declaration in the API. In - * any case, the effect on the returned resource/resources is required - * behavior for APIs. - * - * # Field Masks in Update Operations - * - * A field mask in update operations specifies which fields of the - * targeted resource are going to be updated. The API is required - * to only change the values of the fields as specified in the mask - * and leave the others untouched. If a resource is passed in to - * describe the updated values, the API ignores the values of all - * fields not covered by the mask. - * - * If a repeated field is specified for an update operation, new values will - * be appended to the existing repeated field in the target resource. Note that - * a repeated field is only allowed in the last position of a `paths` string. - * - * If a sub-message is specified in the last position of the field mask for an - * update operation, then new value will be merged into the existing sub-message - * in the target resource. - * - * For example, given the target message: - * - * f { - * b { - * d: 1 - * x: 2 - * } - * c: [1] - * } - * - * And an update message: - * - * f { - * b { - * d: 10 - * } - * c: [2] - * } - * - * then if the field mask is: - * - * paths: ["f.b", "f.c"] - * - * then the result will be: - * - * f { - * b { - * d: 10 - * x: 2 - * } - * c: [1, 2] - * } - * - * An implementation may provide options to override this default behavior for - * repeated and message fields. - * - * In order to reset a field's value to the default, the field must - * be in the mask and set to the default value in the provided resource. - * Hence, in order to reset all fields of a resource, provide a default - * instance of the resource and set all fields in the mask, or do - * not provide a mask as described below. - * - * If a field mask is not present on update, the operation applies to - * all fields (as if a field mask of all fields has been specified). - * Note that in the presence of schema evolution, this may mean that - * fields the client does not know and has therefore not filled into - * the request will be reset to their default. If this is unwanted - * behavior, a specific service may require a client to always specify - * a field mask, producing an error if not. - * - * As with get operations, the location of the resource which - * describes the updated values in the request message depends on the - * operation kind. In any case, the effect of the field mask is - * required to be honored by the API. - * - * ## Considerations for HTTP REST - * - * The HTTP kind of an update operation which uses a field mask must - * be set to PATCH instead of PUT in order to satisfy HTTP semantics - * (PUT must only be used for full updates). - * - * # JSON Encoding of Field Masks - * - * In JSON, a field mask is encoded as a single string where paths are - * separated by a comma. Fields name in each path are converted - * to/from lower-camel naming conventions. - * - * As an example, consider the following message declarations: - * - * message Profile { - * User user = 1; - * Photo photo = 2; - * } - * message User { - * string display_name = 1; - * string address = 2; - * } - * - * In proto a field mask for `Profile` may look as such: - * - * mask { - * paths: "user.display_name" - * paths: "photo" - * } - * - * In JSON, the same mask is represented as below: - * - * { - * mask: "user.displayName,photo" - * } - * - * # Field Masks and Oneof Fields - * - * Field masks treat fields in oneofs just as regular fields. Consider the - * following message: - * - * message SampleMessage { - * oneof test_oneof { - * string name = 4; - * SubMessage sub_message = 9; - * } - * } - * - * The field mask can be: - * - * mask { - * paths: "name" - * } - * - * Or: - * - * mask { - * paths: "sub_message" - * } - * - * Note that oneof type names ("test_oneof" in this case) cannot be used in - * paths. - * - * ## Field Mask Verification - * - * The implementation of any API method which has a FieldMask type field in the - * request should verify the included field paths, and return an - * `INVALID_ARGUMENT` error if any path is unmappable. - * - * @generated from message google.protobuf.FieldMask - */ -export type FieldMaskJson = string; -/** - * Describes the message google.protobuf.FieldMask. - * Use `create(FieldMaskSchema)` to create a new message. - */ -export declare const FieldMaskSchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js deleted file mode 100644 index 591cca0..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../codegenv2/file.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -/** - * Describes the file google/protobuf/field_mask.proto. - */ -export const file_google_protobuf_field_mask = /*@__PURE__*/ fileDesc("CiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxIPZ29vZ2xlLnByb3RvYnVmIhoKCUZpZWxkTWFzaxINCgVwYXRocxgBIAMoCUKFAQoTY29tLmdvb2dsZS5wcm90b2J1ZkIORmllbGRNYXNrUHJvdG9QAVoyZ29vZ2xlLmdvbGFuZy5vcmcvcHJvdG9idWYvdHlwZXMva25vd24vZmllbGRtYXNrcGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw"); -/** - * Describes the message google.protobuf.FieldMask. - * Use `create(FieldMaskSchema)` to create a new message. - */ -export const FieldMaskSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_field_mask, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.d.ts deleted file mode 100644 index 8925b9a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.d.ts +++ /dev/null @@ -1,124 +0,0 @@ -import type { GenEnum, GenExtension, GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { FeatureSet } from "./descriptor_pb.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/go_features.proto. - */ -export declare const file_google_protobuf_go_features: GenFile; -/** - * @generated from message pb.GoFeatures - */ -export type GoFeatures = Message<"pb.GoFeatures"> & { - /** - * Whether or not to generate the deprecated UnmarshalJSON method for enums. - * Can only be true for proto using the Open Struct api. - * - * @generated from field: optional bool legacy_unmarshal_json_enum = 1; - */ - legacyUnmarshalJsonEnum: boolean; - /** - * One of OPEN, HYBRID or OPAQUE. - * - * @generated from field: optional pb.GoFeatures.APILevel api_level = 2; - */ - apiLevel: GoFeatures_APILevel; - /** - * @generated from field: optional pb.GoFeatures.StripEnumPrefix strip_enum_prefix = 3; - */ - stripEnumPrefix: GoFeatures_StripEnumPrefix; -}; -/** - * @generated from message pb.GoFeatures - */ -export type GoFeaturesJson = { - /** - * Whether or not to generate the deprecated UnmarshalJSON method for enums. - * Can only be true for proto using the Open Struct api. - * - * @generated from field: optional bool legacy_unmarshal_json_enum = 1; - */ - legacyUnmarshalJsonEnum?: boolean; - /** - * One of OPEN, HYBRID or OPAQUE. - * - * @generated from field: optional pb.GoFeatures.APILevel api_level = 2; - */ - apiLevel?: GoFeatures_APILevelJson; - /** - * @generated from field: optional pb.GoFeatures.StripEnumPrefix strip_enum_prefix = 3; - */ - stripEnumPrefix?: GoFeatures_StripEnumPrefixJson; -}; -/** - * Describes the message pb.GoFeatures. - * Use `create(GoFeaturesSchema)` to create a new message. - */ -export declare const GoFeaturesSchema: GenMessage; -/** - * @generated from enum pb.GoFeatures.APILevel - */ -export declare enum GoFeatures_APILevel { - /** - * API_LEVEL_UNSPECIFIED results in selecting the OPEN API, - * but needs to be a separate value to distinguish between - * an explicitly set api level or a missing api level. - * - * @generated from enum value: API_LEVEL_UNSPECIFIED = 0; - */ - API_LEVEL_UNSPECIFIED = 0, - /** - * @generated from enum value: API_OPEN = 1; - */ - API_OPEN = 1, - /** - * @generated from enum value: API_HYBRID = 2; - */ - API_HYBRID = 2, - /** - * @generated from enum value: API_OPAQUE = 3; - */ - API_OPAQUE = 3 -} -/** - * @generated from enum pb.GoFeatures.APILevel - */ -export type GoFeatures_APILevelJson = "API_LEVEL_UNSPECIFIED" | "API_OPEN" | "API_HYBRID" | "API_OPAQUE"; -/** - * Describes the enum pb.GoFeatures.APILevel. - */ -export declare const GoFeatures_APILevelSchema: GenEnum; -/** - * @generated from enum pb.GoFeatures.StripEnumPrefix - */ -export declare enum GoFeatures_StripEnumPrefix { - /** - * @generated from enum value: STRIP_ENUM_PREFIX_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - /** - * @generated from enum value: STRIP_ENUM_PREFIX_KEEP = 1; - */ - KEEP = 1, - /** - * @generated from enum value: STRIP_ENUM_PREFIX_GENERATE_BOTH = 2; - */ - GENERATE_BOTH = 2, - /** - * @generated from enum value: STRIP_ENUM_PREFIX_STRIP = 3; - */ - STRIP = 3 -} -/** - * @generated from enum pb.GoFeatures.StripEnumPrefix - */ -export type GoFeatures_StripEnumPrefixJson = "STRIP_ENUM_PREFIX_UNSPECIFIED" | "STRIP_ENUM_PREFIX_KEEP" | "STRIP_ENUM_PREFIX_GENERATE_BOTH" | "STRIP_ENUM_PREFIX_STRIP"; -/** - * Describes the enum pb.GoFeatures.StripEnumPrefix. - */ -export declare const GoFeatures_StripEnumPrefixSchema: GenEnum; -/** - * @generated from extension: optional pb.GoFeatures go = 1002; - */ -export declare const go: GenExtension; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js deleted file mode 100644 index 5faea50..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../codegenv2/file.js"; -import { file_google_protobuf_descriptor } from "./descriptor_pb.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -import { enumDesc } from "../../../../codegenv2/enum.js"; -import { extDesc } from "../../../../codegenv2/extension.js"; -/** - * Describes the file google/protobuf/go_features.proto. - */ -export const file_google_protobuf_go_features = /*@__PURE__*/ fileDesc("CiFnb29nbGUvcHJvdG9idWYvZ29fZmVhdHVyZXMucHJvdG8SAnBiIvcECgpHb0ZlYXR1cmVzEqUBChpsZWdhY3lfdW5tYXJzaGFsX2pzb25fZW51bRgBIAEoCEKAAYgBAZgBBpgBAaIBCRIEdHJ1ZRiEB6IBChIFZmFsc2UY5weyAVsI6AcQ6AcaU1RoZSBsZWdhY3kgVW5tYXJzaGFsSlNPTiBBUEkgaXMgZGVwcmVjYXRlZCBhbmQgd2lsbCBiZSByZW1vdmVkIGluIGEgZnV0dXJlIGVkaXRpb24uEmoKCWFwaV9sZXZlbBgCIAEoDjIXLnBiLkdvRmVhdHVyZXMuQVBJTGV2ZWxCPogBAZgBA5gBAaIBGhIVQVBJX0xFVkVMX1VOU1BFQ0lGSUVEGIQHogEPEgpBUElfT1BBUVVFGOkHsgEDCOgHEmsKEXN0cmlwX2VudW1fcHJlZml4GAMgASgOMh4ucGIuR29GZWF0dXJlcy5TdHJpcEVudW1QcmVmaXhCMIgBAZgBBpgBB5gBAaIBGxIWU1RSSVBfRU5VTV9QUkVGSVhfS0VFUBiEB7IBAwjpByJTCghBUElMZXZlbBIZChVBUElfTEVWRUxfVU5TUEVDSUZJRUQQABIMCghBUElfT1BFThABEg4KCkFQSV9IWUJSSUQQAhIOCgpBUElfT1BBUVVFEAMikgEKD1N0cmlwRW51bVByZWZpeBIhCh1TVFJJUF9FTlVNX1BSRUZJWF9VTlNQRUNJRklFRBAAEhoKFlNUUklQX0VOVU1fUFJFRklYX0tFRVAQARIjCh9TVFJJUF9FTlVNX1BSRUZJWF9HRU5FUkFURV9CT1RIEAISGwoXU1RSSVBfRU5VTV9QUkVGSVhfU1RSSVAQAzo8CgJnbxIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0GOoHIAEoCzIOLnBiLkdvRmVhdHVyZXNSAmdvQi9aLWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2dvZmVhdHVyZXNwYg", [file_google_protobuf_descriptor]); -/** - * Describes the message pb.GoFeatures. - * Use `create(GoFeaturesSchema)` to create a new message. - */ -export const GoFeaturesSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_go_features, 0); -/** - * @generated from enum pb.GoFeatures.APILevel - */ -export var GoFeatures_APILevel; -(function (GoFeatures_APILevel) { - /** - * API_LEVEL_UNSPECIFIED results in selecting the OPEN API, - * but needs to be a separate value to distinguish between - * an explicitly set api level or a missing api level. - * - * @generated from enum value: API_LEVEL_UNSPECIFIED = 0; - */ - GoFeatures_APILevel[GoFeatures_APILevel["API_LEVEL_UNSPECIFIED"] = 0] = "API_LEVEL_UNSPECIFIED"; - /** - * @generated from enum value: API_OPEN = 1; - */ - GoFeatures_APILevel[GoFeatures_APILevel["API_OPEN"] = 1] = "API_OPEN"; - /** - * @generated from enum value: API_HYBRID = 2; - */ - GoFeatures_APILevel[GoFeatures_APILevel["API_HYBRID"] = 2] = "API_HYBRID"; - /** - * @generated from enum value: API_OPAQUE = 3; - */ - GoFeatures_APILevel[GoFeatures_APILevel["API_OPAQUE"] = 3] = "API_OPAQUE"; -})(GoFeatures_APILevel || (GoFeatures_APILevel = {})); -/** - * Describes the enum pb.GoFeatures.APILevel. - */ -export const GoFeatures_APILevelSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_go_features, 0, 0); -/** - * @generated from enum pb.GoFeatures.StripEnumPrefix - */ -export var GoFeatures_StripEnumPrefix; -(function (GoFeatures_StripEnumPrefix) { - /** - * @generated from enum value: STRIP_ENUM_PREFIX_UNSPECIFIED = 0; - */ - GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["UNSPECIFIED"] = 0] = "UNSPECIFIED"; - /** - * @generated from enum value: STRIP_ENUM_PREFIX_KEEP = 1; - */ - GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["KEEP"] = 1] = "KEEP"; - /** - * @generated from enum value: STRIP_ENUM_PREFIX_GENERATE_BOTH = 2; - */ - GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["GENERATE_BOTH"] = 2] = "GENERATE_BOTH"; - /** - * @generated from enum value: STRIP_ENUM_PREFIX_STRIP = 3; - */ - GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["STRIP"] = 3] = "STRIP"; -})(GoFeatures_StripEnumPrefix || (GoFeatures_StripEnumPrefix = {})); -/** - * Describes the enum pb.GoFeatures.StripEnumPrefix. - */ -export const GoFeatures_StripEnumPrefixSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_go_features, 0, 1); -/** - * @generated from extension: optional pb.GoFeatures go = 1002; - */ -export const go = /*@__PURE__*/ extDesc(file_google_protobuf_go_features, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.d.ts deleted file mode 100644 index 47f1503..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.d.ts +++ /dev/null @@ -1,194 +0,0 @@ -import type { GenEnum, GenExtension, GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { FeatureSet } from "./descriptor_pb.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/java_features.proto. - */ -export declare const file_google_protobuf_java_features: GenFile; -/** - * @generated from message pb.JavaFeatures - */ -export type JavaFeatures = Message<"pb.JavaFeatures"> & { - /** - * Whether or not to treat an enum field as closed. This option is only - * applicable to enum fields, and will be removed in the future. It is - * consistent with the legacy behavior of using proto3 enum types for proto2 - * fields. - * - * @generated from field: optional bool legacy_closed_enum = 1; - */ - legacyClosedEnum: boolean; - /** - * @generated from field: optional pb.JavaFeatures.Utf8Validation utf8_validation = 2; - */ - utf8Validation: JavaFeatures_Utf8Validation; - /** - * Allows creation of large Java enums, extending beyond the standard - * constant limits imposed by the Java language. - * - * @generated from field: optional bool large_enum = 3; - */ - largeEnum: boolean; - /** - * Whether to use the old default outer class name scheme, or the new feature - * which adds a "Proto" suffix to the outer class name. - * - * Users will not be able to set this option, because we removed it in the - * same edition that it was introduced. But we use it to determine which - * naming scheme to use for outer class name defaults. - * - * @generated from field: optional bool use_old_outer_classname_default = 4; - */ - useOldOuterClassnameDefault: boolean; - /** - * Whether to nest the generated class in the generated file class. This is - * only applicable to *top-level* messages, enums, and services. - * - * @generated from field: optional pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5; - */ - nestInFileClass: JavaFeatures_NestInFileClassFeature_NestInFileClass; -}; -/** - * @generated from message pb.JavaFeatures - */ -export type JavaFeaturesJson = { - /** - * Whether or not to treat an enum field as closed. This option is only - * applicable to enum fields, and will be removed in the future. It is - * consistent with the legacy behavior of using proto3 enum types for proto2 - * fields. - * - * @generated from field: optional bool legacy_closed_enum = 1; - */ - legacyClosedEnum?: boolean; - /** - * @generated from field: optional pb.JavaFeatures.Utf8Validation utf8_validation = 2; - */ - utf8Validation?: JavaFeatures_Utf8ValidationJson; - /** - * Allows creation of large Java enums, extending beyond the standard - * constant limits imposed by the Java language. - * - * @generated from field: optional bool large_enum = 3; - */ - largeEnum?: boolean; - /** - * Whether to use the old default outer class name scheme, or the new feature - * which adds a "Proto" suffix to the outer class name. - * - * Users will not be able to set this option, because we removed it in the - * same edition that it was introduced. But we use it to determine which - * naming scheme to use for outer class name defaults. - * - * @generated from field: optional bool use_old_outer_classname_default = 4; - */ - useOldOuterClassnameDefault?: boolean; - /** - * Whether to nest the generated class in the generated file class. This is - * only applicable to *top-level* messages, enums, and services. - * - * @generated from field: optional pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5; - */ - nestInFileClass?: JavaFeatures_NestInFileClassFeature_NestInFileClassJson; -}; -/** - * Describes the message pb.JavaFeatures. - * Use `create(JavaFeaturesSchema)` to create a new message. - */ -export declare const JavaFeaturesSchema: GenMessage; -/** - * @generated from message pb.JavaFeatures.NestInFileClassFeature - */ -export type JavaFeatures_NestInFileClassFeature = Message<"pb.JavaFeatures.NestInFileClassFeature"> & {}; -/** - * @generated from message pb.JavaFeatures.NestInFileClassFeature - */ -export type JavaFeatures_NestInFileClassFeatureJson = {}; -/** - * Describes the message pb.JavaFeatures.NestInFileClassFeature. - * Use `create(JavaFeatures_NestInFileClassFeatureSchema)` to create a new message. - */ -export declare const JavaFeatures_NestInFileClassFeatureSchema: GenMessage; -/** - * @generated from enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass - */ -export declare enum JavaFeatures_NestInFileClassFeature_NestInFileClass { - /** - * Invalid default, which should never be used. - * - * @generated from enum value: NEST_IN_FILE_CLASS_UNKNOWN = 0; - */ - NEST_IN_FILE_CLASS_UNKNOWN = 0, - /** - * Do not nest the generated class in the file class. - * - * @generated from enum value: NO = 1; - */ - NO = 1, - /** - * Nest the generated class in the file class. - * - * @generated from enum value: YES = 2; - */ - YES = 2, - /** - * Fall back to the `java_multiple_files` option. Users won't be able to - * set this option. - * - * @generated from enum value: LEGACY = 3; - */ - LEGACY = 3 -} -/** - * @generated from enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass - */ -export type JavaFeatures_NestInFileClassFeature_NestInFileClassJson = "NEST_IN_FILE_CLASS_UNKNOWN" | "NO" | "YES" | "LEGACY"; -/** - * Describes the enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass. - */ -export declare const JavaFeatures_NestInFileClassFeature_NestInFileClassSchema: GenEnum; -/** - * The UTF8 validation strategy to use. - * - * @generated from enum pb.JavaFeatures.Utf8Validation - */ -export declare enum JavaFeatures_Utf8Validation { - /** - * Invalid default, which should never be used. - * - * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0; - */ - UTF8_VALIDATION_UNKNOWN = 0, - /** - * Respect the UTF8 validation behavior specified by the global - * utf8_validation feature. - * - * @generated from enum value: DEFAULT = 1; - */ - DEFAULT = 1, - /** - * Verifies UTF8 validity overriding the global utf8_validation - * feature. This represents the legacy java_string_check_utf8 option. - * - * @generated from enum value: VERIFY = 2; - */ - VERIFY = 2 -} -/** - * The UTF8 validation strategy to use. - * - * @generated from enum pb.JavaFeatures.Utf8Validation - */ -export type JavaFeatures_Utf8ValidationJson = "UTF8_VALIDATION_UNKNOWN" | "DEFAULT" | "VERIFY"; -/** - * Describes the enum pb.JavaFeatures.Utf8Validation. - */ -export declare const JavaFeatures_Utf8ValidationSchema: GenEnum; -/** - * @generated from extension: optional pb.JavaFeatures java = 1001; - */ -export declare const java: GenExtension; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js deleted file mode 100644 index 6b13853..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../codegenv2/file.js"; -import { file_google_protobuf_descriptor } from "./descriptor_pb.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -import { enumDesc } from "../../../../codegenv2/enum.js"; -import { extDesc } from "../../../../codegenv2/extension.js"; -/** - * Describes the file google/protobuf/java_features.proto. - */ -export const file_google_protobuf_java_features = /*@__PURE__*/ fileDesc("CiNnb29nbGUvcHJvdG9idWYvamF2YV9mZWF0dXJlcy5wcm90bxICcGIigwgKDEphdmFGZWF0dXJlcxL+AQoSbGVnYWN5X2Nsb3NlZF9lbnVtGAEgASgIQuEBiAEBmAEEmAEBogEJEgR0cnVlGIQHogEKEgVmYWxzZRjnB7IBuwEI6AcQ6AcasgFUaGUgbGVnYWN5IGNsb3NlZCBlbnVtIGJlaGF2aW9yIGluIEphdmEgaXMgZGVwcmVjYXRlZCBhbmQgaXMgc2NoZWR1bGVkIHRvIGJlIHJlbW92ZWQgaW4gZWRpdGlvbiAyMDI1LiAgU2VlIGh0dHA6Ly9wcm90b2J1Zi5kZXYvcHJvZ3JhbW1pbmctZ3VpZGVzL2VudW0vI2phdmEgZm9yIG1vcmUgaW5mb3JtYXRpb24uEp8CCg91dGY4X3ZhbGlkYXRpb24YAiABKA4yHy5wYi5KYXZhRmVhdHVyZXMuVXRmOFZhbGlkYXRpb25C5AGIAQGYAQSYAQGiAQwSB0RFRkFVTFQYhAeyAcgBCOgHEOkHGr8BVGhlIEphdmEtc3BlY2lmaWMgdXRmOCB2YWxpZGF0aW9uIGZlYXR1cmUgaXMgZGVwcmVjYXRlZCBhbmQgaXMgc2NoZWR1bGVkIHRvIGJlIHJlbW92ZWQgaW4gZWRpdGlvbiAyMDI1LiAgVXRmOCB2YWxpZGF0aW9uIGJlaGF2aW9yIHNob3VsZCB1c2UgdGhlIGdsb2JhbCBjcm9zcy1sYW5ndWFnZSB1dGY4X3ZhbGlkYXRpb24gZmVhdHVyZS4SMAoKbGFyZ2VfZW51bRgDIAEoCEIciAEBmAEGmAEBogEKEgVmYWxzZRiEB7IBAwjpBxJRCh91c2Vfb2xkX291dGVyX2NsYXNzbmFtZV9kZWZhdWx0GAQgASgIQiiIAQGYAQGiAQkSBHRydWUYhAeiAQoSBWZhbHNlGOkHsgEGCOkHIOkHEn8KEm5lc3RfaW5fZmlsZV9jbGFzcxgFIAEoDjI3LnBiLkphdmFGZWF0dXJlcy5OZXN0SW5GaWxlQ2xhc3NGZWF0dXJlLk5lc3RJbkZpbGVDbGFzc0IqiAEBmAEDmAEGmAEIogELEgZMRUdBQ1kYhAeiAQcSAk5PGOkHsgEDCOkHGnwKFk5lc3RJbkZpbGVDbGFzc0ZlYXR1cmUiWAoPTmVzdEluRmlsZUNsYXNzEh4KGk5FU1RfSU5fRklMRV9DTEFTU19VTktOT1dOEAASBgoCTk8QARIHCgNZRVMQAhIUCgZMRUdBQ1kQAxoIIgYI6Qcg6QdKCAgBEICAgIACIkYKDlV0ZjhWYWxpZGF0aW9uEhsKF1VURjhfVkFMSURBVElPTl9VTktOT1dOEAASCwoHREVGQVVMVBABEgoKBlZFUklGWRACSgQIBhAHOkIKBGphdmESGy5nb29nbGUucHJvdG9idWYuRmVhdHVyZVNldBjpByABKAsyEC5wYi5KYXZhRmVhdHVyZXNSBGphdmFCKAoTY29tLmdvb2dsZS5wcm90b2J1ZkIRSmF2YUZlYXR1cmVzUHJvdG8", [file_google_protobuf_descriptor]); -/** - * Describes the message pb.JavaFeatures. - * Use `create(JavaFeaturesSchema)` to create a new message. - */ -export const JavaFeaturesSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_java_features, 0); -/** - * Describes the message pb.JavaFeatures.NestInFileClassFeature. - * Use `create(JavaFeatures_NestInFileClassFeatureSchema)` to create a new message. - */ -export const JavaFeatures_NestInFileClassFeatureSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_java_features, 0, 0); -/** - * @generated from enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass - */ -export var JavaFeatures_NestInFileClassFeature_NestInFileClass; -(function (JavaFeatures_NestInFileClassFeature_NestInFileClass) { - /** - * Invalid default, which should never be used. - * - * @generated from enum value: NEST_IN_FILE_CLASS_UNKNOWN = 0; - */ - JavaFeatures_NestInFileClassFeature_NestInFileClass[JavaFeatures_NestInFileClassFeature_NestInFileClass["NEST_IN_FILE_CLASS_UNKNOWN"] = 0] = "NEST_IN_FILE_CLASS_UNKNOWN"; - /** - * Do not nest the generated class in the file class. - * - * @generated from enum value: NO = 1; - */ - JavaFeatures_NestInFileClassFeature_NestInFileClass[JavaFeatures_NestInFileClassFeature_NestInFileClass["NO"] = 1] = "NO"; - /** - * Nest the generated class in the file class. - * - * @generated from enum value: YES = 2; - */ - JavaFeatures_NestInFileClassFeature_NestInFileClass[JavaFeatures_NestInFileClassFeature_NestInFileClass["YES"] = 2] = "YES"; - /** - * Fall back to the `java_multiple_files` option. Users won't be able to - * set this option. - * - * @generated from enum value: LEGACY = 3; - */ - JavaFeatures_NestInFileClassFeature_NestInFileClass[JavaFeatures_NestInFileClassFeature_NestInFileClass["LEGACY"] = 3] = "LEGACY"; -})(JavaFeatures_NestInFileClassFeature_NestInFileClass || (JavaFeatures_NestInFileClassFeature_NestInFileClass = {})); -/** - * Describes the enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass. - */ -export const JavaFeatures_NestInFileClassFeature_NestInFileClassSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_java_features, 0, 0, 0); -/** - * The UTF8 validation strategy to use. - * - * @generated from enum pb.JavaFeatures.Utf8Validation - */ -export var JavaFeatures_Utf8Validation; -(function (JavaFeatures_Utf8Validation) { - /** - * Invalid default, which should never be used. - * - * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0; - */ - JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN"; - /** - * Respect the UTF8 validation behavior specified by the global - * utf8_validation feature. - * - * @generated from enum value: DEFAULT = 1; - */ - JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["DEFAULT"] = 1] = "DEFAULT"; - /** - * Verifies UTF8 validity overriding the global utf8_validation - * feature. This represents the legacy java_string_check_utf8 option. - * - * @generated from enum value: VERIFY = 2; - */ - JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["VERIFY"] = 2] = "VERIFY"; -})(JavaFeatures_Utf8Validation || (JavaFeatures_Utf8Validation = {})); -/** - * Describes the enum pb.JavaFeatures.Utf8Validation. - */ -export const JavaFeatures_Utf8ValidationSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_java_features, 0, 0); -/** - * @generated from extension: optional pb.JavaFeatures java = 1001; - */ -export const java = /*@__PURE__*/ extDesc(file_google_protobuf_java_features, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts deleted file mode 100644 index d77cea4..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/source_context.proto. - */ -export declare const file_google_protobuf_source_context: GenFile; -/** - * `SourceContext` represents information about the source of a - * protobuf element, like the file in which it is defined. - * - * @generated from message google.protobuf.SourceContext - */ -export type SourceContext = Message<"google.protobuf.SourceContext"> & { - /** - * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source_context.proto"`. - * - * @generated from field: string file_name = 1; - */ - fileName: string; -}; -/** - * `SourceContext` represents information about the source of a - * protobuf element, like the file in which it is defined. - * - * @generated from message google.protobuf.SourceContext - */ -export type SourceContextJson = { - /** - * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source_context.proto"`. - * - * @generated from field: string file_name = 1; - */ - fileName?: string; -}; -/** - * Describes the message google.protobuf.SourceContext. - * Use `create(SourceContextSchema)` to create a new message. - */ -export declare const SourceContextSchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js deleted file mode 100644 index 9eef785..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../codegenv2/file.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -/** - * Describes the file google/protobuf/source_context.proto. - */ -export const file_google_protobuf_source_context = /*@__PURE__*/ fileDesc("CiRnb29nbGUvcHJvdG9idWYvc291cmNlX2NvbnRleHQucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEoCUKKAQoTY29tLmdvb2dsZS5wcm90b2J1ZkISU291cmNlQ29udGV4dFByb3RvUAFaNmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3NvdXJjZWNvbnRleHRwYqICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJvdG8z"); -/** - * Describes the message google.protobuf.SourceContext. - * Use `create(SourceContextSchema)` to create a new message. - */ -export const SourceContextSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_source_context, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.d.ts deleted file mode 100644 index 1bb79e7..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.d.ts +++ /dev/null @@ -1,195 +0,0 @@ -import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -import type { JsonObject, JsonValue } from "../../../../json-value.js"; -/** - * Describes the file google/protobuf/struct.proto. - */ -export declare const file_google_protobuf_struct: GenFile; -/** - * `Struct` represents a structured data value, consisting of fields - * which map to dynamically typed values. In some languages, `Struct` - * might be supported by a native representation. For example, in - * scripting languages like JS a struct is represented as an - * object. The details of that representation are described together - * with the proto support for the language. - * - * The JSON representation for `Struct` is JSON object. - * - * @generated from message google.protobuf.Struct - */ -export type Struct = Message<"google.protobuf.Struct"> & { - /** - * Unordered map of dynamically typed values. - * - * @generated from field: map fields = 1; - */ - fields: { - [key: string]: Value; - }; -}; -/** - * `Struct` represents a structured data value, consisting of fields - * which map to dynamically typed values. In some languages, `Struct` - * might be supported by a native representation. For example, in - * scripting languages like JS a struct is represented as an - * object. The details of that representation are described together - * with the proto support for the language. - * - * The JSON representation for `Struct` is JSON object. - * - * @generated from message google.protobuf.Struct - */ -export type StructJson = JsonObject; -/** - * Describes the message google.protobuf.Struct. - * Use `create(StructSchema)` to create a new message. - */ -export declare const StructSchema: GenMessage; -/** - * `Value` represents a dynamically typed value which can be either - * null, a number, a string, a boolean, a recursive struct value, or a - * list of values. A producer of value is expected to set one of these - * variants. Absence of any variant indicates an error. - * - * The JSON representation for `Value` is JSON value. - * - * @generated from message google.protobuf.Value - */ -export type Value = Message<"google.protobuf.Value"> & { - /** - * The kind of value. - * - * @generated from oneof google.protobuf.Value.kind - */ - kind: { - /** - * Represents a null value. - * - * @generated from field: google.protobuf.NullValue null_value = 1; - */ - value: NullValue; - case: "nullValue"; - } | { - /** - * Represents a double value. - * - * @generated from field: double number_value = 2; - */ - value: number; - case: "numberValue"; - } | { - /** - * Represents a string value. - * - * @generated from field: string string_value = 3; - */ - value: string; - case: "stringValue"; - } | { - /** - * Represents a boolean value. - * - * @generated from field: bool bool_value = 4; - */ - value: boolean; - case: "boolValue"; - } | { - /** - * Represents a structured value. - * - * @generated from field: google.protobuf.Struct struct_value = 5; - */ - value: Struct; - case: "structValue"; - } | { - /** - * Represents a repeated `Value`. - * - * @generated from field: google.protobuf.ListValue list_value = 6; - */ - value: ListValue; - case: "listValue"; - } | { - case: undefined; - value?: undefined; - }; -}; -/** - * `Value` represents a dynamically typed value which can be either - * null, a number, a string, a boolean, a recursive struct value, or a - * list of values. A producer of value is expected to set one of these - * variants. Absence of any variant indicates an error. - * - * The JSON representation for `Value` is JSON value. - * - * @generated from message google.protobuf.Value - */ -export type ValueJson = JsonValue; -/** - * Describes the message google.protobuf.Value. - * Use `create(ValueSchema)` to create a new message. - */ -export declare const ValueSchema: GenMessage; -/** - * `ListValue` is a wrapper around a repeated field of values. - * - * The JSON representation for `ListValue` is JSON array. - * - * @generated from message google.protobuf.ListValue - */ -export type ListValue = Message<"google.protobuf.ListValue"> & { - /** - * Repeated field of dynamically typed values. - * - * @generated from field: repeated google.protobuf.Value values = 1; - */ - values: Value[]; -}; -/** - * `ListValue` is a wrapper around a repeated field of values. - * - * The JSON representation for `ListValue` is JSON array. - * - * @generated from message google.protobuf.ListValue - */ -export type ListValueJson = JsonValue[]; -/** - * Describes the message google.protobuf.ListValue. - * Use `create(ListValueSchema)` to create a new message. - */ -export declare const ListValueSchema: GenMessage; -/** - * `NullValue` is a singleton enumeration to represent the null value for the - * `Value` type union. - * - * The JSON representation for `NullValue` is JSON `null`. - * - * @generated from enum google.protobuf.NullValue - */ -export declare enum NullValue { - /** - * Null value. - * - * @generated from enum value: NULL_VALUE = 0; - */ - NULL_VALUE = 0 -} -/** - * `NullValue` is a singleton enumeration to represent the null value for the - * `Value` type union. - * - * The JSON representation for `NullValue` is JSON `null`. - * - * @generated from enum google.protobuf.NullValue - */ -export type NullValueJson = null; -/** - * Describes the enum google.protobuf.NullValue. - */ -export declare const NullValueSchema: GenEnum; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js deleted file mode 100644 index 4efdfee..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../codegenv2/file.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -import { enumDesc } from "../../../../codegenv2/enum.js"; -/** - * Describes the file google/protobuf/struct.proto. - */ -export const file_google_protobuf_struct = /*@__PURE__*/ fileDesc("Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9idWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9idWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToCOAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoMc3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8KDHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RWYWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAAQn8KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAFaL2dvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3N0cnVjdHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"); -/** - * Describes the message google.protobuf.Struct. - * Use `create(StructSchema)` to create a new message. - */ -export const StructSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_struct, 0); -/** - * Describes the message google.protobuf.Value. - * Use `create(ValueSchema)` to create a new message. - */ -export const ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_struct, 1); -/** - * Describes the message google.protobuf.ListValue. - * Use `create(ListValueSchema)` to create a new message. - */ -export const ListValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_struct, 2); -/** - * `NullValue` is a singleton enumeration to represent the null value for the - * `Value` type union. - * - * The JSON representation for `NullValue` is JSON `null`. - * - * @generated from enum google.protobuf.NullValue - */ -export var NullValue; -(function (NullValue) { - /** - * Null value. - * - * @generated from enum value: NULL_VALUE = 0; - */ - NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE"; -})(NullValue || (NullValue = {})); -/** - * Describes the enum google.protobuf.NullValue. - */ -export const NullValueSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_struct, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts deleted file mode 100644 index 84f5202..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts +++ /dev/null @@ -1,221 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/timestamp.proto. - */ -export declare const file_google_protobuf_timestamp: GenFile; -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * Example 5: Compute Timestamp from Java `Instant.now()`. - * - * Instant now = Instant.now(); - * - * Timestamp timestamp = - * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - * .setNanos(now.getNano()).build(); - * - * Example 6: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - * ) to obtain a formatter capable of generating timestamps in this format. - * - * - * @generated from message google.protobuf.Timestamp - */ -export type Timestamp = Message<"google.protobuf.Timestamp"> & { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - * - * @generated from field: int64 seconds = 1; - */ - seconds: bigint; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - * - * @generated from field: int32 nanos = 2; - */ - nanos: number; -}; -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * Example 5: Compute Timestamp from Java `Instant.now()`. - * - * Instant now = Instant.now(); - * - * Timestamp timestamp = - * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - * .setNanos(now.getNano()).build(); - * - * Example 6: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - * ) to obtain a formatter capable of generating timestamps in this format. - * - * - * @generated from message google.protobuf.Timestamp - */ -export type TimestampJson = string; -/** - * Describes the message google.protobuf.Timestamp. - * Use `create(TimestampSchema)` to create a new message. - */ -export declare const TimestampSchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js deleted file mode 100644 index 4a9f4ee..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../codegenv2/file.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -/** - * Describes the file google/protobuf/timestamp.proto. - */ -export const file_google_protobuf_timestamp = /*@__PURE__*/ fileDesc("Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJvdG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MYAiABKAVChQEKE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb3RvUAFaMmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3RpbWVzdGFtcHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"); -/** - * Describes the message google.protobuf.Timestamp. - * Use `create(TimestampSchema)` to create a new message. - */ -export const TimestampSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_timestamp, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts deleted file mode 100644 index 2499d6f..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts +++ /dev/null @@ -1,722 +0,0 @@ -import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Any, AnyJson } from "./any_pb.js"; -import type { SourceContext, SourceContextJson } from "./source_context_pb.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/type.proto. - */ -export declare const file_google_protobuf_type: GenFile; -/** - * A protocol buffer message type. - * - * New usages of this message as an alternative to DescriptorProto are strongly - * discouraged. This message does not reliability preserve all information - * necessary to model the schema and preserve semantics. Instead make use of - * FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Type - */ -export type Type = Message<"google.protobuf.Type"> & { - /** - * The fully qualified message name. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * The list of fields. - * - * @generated from field: repeated google.protobuf.Field fields = 2; - */ - fields: Field[]; - /** - * The list of types appearing in `oneof` definitions in this type. - * - * @generated from field: repeated string oneofs = 3; - */ - oneofs: string[]; - /** - * The protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 4; - */ - options: Option[]; - /** - * The source context. - * - * @generated from field: google.protobuf.SourceContext source_context = 5; - */ - sourceContext?: SourceContext; - /** - * The source syntax. - * - * @generated from field: google.protobuf.Syntax syntax = 6; - */ - syntax: Syntax; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * @generated from field: string edition = 7; - */ - edition: string; -}; -/** - * A protocol buffer message type. - * - * New usages of this message as an alternative to DescriptorProto are strongly - * discouraged. This message does not reliability preserve all information - * necessary to model the schema and preserve semantics. Instead make use of - * FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Type - */ -export type TypeJson = { - /** - * The fully qualified message name. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * The list of fields. - * - * @generated from field: repeated google.protobuf.Field fields = 2; - */ - fields?: FieldJson[]; - /** - * The list of types appearing in `oneof` definitions in this type. - * - * @generated from field: repeated string oneofs = 3; - */ - oneofs?: string[]; - /** - * The protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 4; - */ - options?: OptionJson[]; - /** - * The source context. - * - * @generated from field: google.protobuf.SourceContext source_context = 5; - */ - sourceContext?: SourceContextJson; - /** - * The source syntax. - * - * @generated from field: google.protobuf.Syntax syntax = 6; - */ - syntax?: SyntaxJson; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * @generated from field: string edition = 7; - */ - edition?: string; -}; -/** - * Describes the message google.protobuf.Type. - * Use `create(TypeSchema)` to create a new message. - */ -export declare const TypeSchema: GenMessage; -/** - * A single field of a message type. - * - * New usages of this message as an alternative to FieldDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Field - */ -export type Field = Message<"google.protobuf.Field"> & { - /** - * The field type. - * - * @generated from field: google.protobuf.Field.Kind kind = 1; - */ - kind: Field_Kind; - /** - * The field cardinality. - * - * @generated from field: google.protobuf.Field.Cardinality cardinality = 2; - */ - cardinality: Field_Cardinality; - /** - * The field number. - * - * @generated from field: int32 number = 3; - */ - number: number; - /** - * The field name. - * - * @generated from field: string name = 4; - */ - name: string; - /** - * The field type URL, without the scheme, for message or enumeration - * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - * - * @generated from field: string type_url = 6; - */ - typeUrl: string; - /** - * The index of the field type in `Type.oneofs`, for message or enumeration - * types. The first type has index 1; zero means the type is not in the list. - * - * @generated from field: int32 oneof_index = 7; - */ - oneofIndex: number; - /** - * Whether to use alternative packed wire representation. - * - * @generated from field: bool packed = 8; - */ - packed: boolean; - /** - * The protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 9; - */ - options: Option[]; - /** - * The field JSON name. - * - * @generated from field: string json_name = 10; - */ - jsonName: string; - /** - * The string value of the default value of this field. Proto2 syntax only. - * - * @generated from field: string default_value = 11; - */ - defaultValue: string; -}; -/** - * A single field of a message type. - * - * New usages of this message as an alternative to FieldDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Field - */ -export type FieldJson = { - /** - * The field type. - * - * @generated from field: google.protobuf.Field.Kind kind = 1; - */ - kind?: Field_KindJson; - /** - * The field cardinality. - * - * @generated from field: google.protobuf.Field.Cardinality cardinality = 2; - */ - cardinality?: Field_CardinalityJson; - /** - * The field number. - * - * @generated from field: int32 number = 3; - */ - number?: number; - /** - * The field name. - * - * @generated from field: string name = 4; - */ - name?: string; - /** - * The field type URL, without the scheme, for message or enumeration - * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - * - * @generated from field: string type_url = 6; - */ - typeUrl?: string; - /** - * The index of the field type in `Type.oneofs`, for message or enumeration - * types. The first type has index 1; zero means the type is not in the list. - * - * @generated from field: int32 oneof_index = 7; - */ - oneofIndex?: number; - /** - * Whether to use alternative packed wire representation. - * - * @generated from field: bool packed = 8; - */ - packed?: boolean; - /** - * The protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 9; - */ - options?: OptionJson[]; - /** - * The field JSON name. - * - * @generated from field: string json_name = 10; - */ - jsonName?: string; - /** - * The string value of the default value of this field. Proto2 syntax only. - * - * @generated from field: string default_value = 11; - */ - defaultValue?: string; -}; -/** - * Describes the message google.protobuf.Field. - * Use `create(FieldSchema)` to create a new message. - */ -export declare const FieldSchema: GenMessage; -/** - * Basic field types. - * - * @generated from enum google.protobuf.Field.Kind - */ -export declare enum Field_Kind { - /** - * Field type unknown. - * - * @generated from enum value: TYPE_UNKNOWN = 0; - */ - TYPE_UNKNOWN = 0, - /** - * Field type double. - * - * @generated from enum value: TYPE_DOUBLE = 1; - */ - TYPE_DOUBLE = 1, - /** - * Field type float. - * - * @generated from enum value: TYPE_FLOAT = 2; - */ - TYPE_FLOAT = 2, - /** - * Field type int64. - * - * @generated from enum value: TYPE_INT64 = 3; - */ - TYPE_INT64 = 3, - /** - * Field type uint64. - * - * @generated from enum value: TYPE_UINT64 = 4; - */ - TYPE_UINT64 = 4, - /** - * Field type int32. - * - * @generated from enum value: TYPE_INT32 = 5; - */ - TYPE_INT32 = 5, - /** - * Field type fixed64. - * - * @generated from enum value: TYPE_FIXED64 = 6; - */ - TYPE_FIXED64 = 6, - /** - * Field type fixed32. - * - * @generated from enum value: TYPE_FIXED32 = 7; - */ - TYPE_FIXED32 = 7, - /** - * Field type bool. - * - * @generated from enum value: TYPE_BOOL = 8; - */ - TYPE_BOOL = 8, - /** - * Field type string. - * - * @generated from enum value: TYPE_STRING = 9; - */ - TYPE_STRING = 9, - /** - * Field type group. Proto2 syntax only, and deprecated. - * - * @generated from enum value: TYPE_GROUP = 10; - */ - TYPE_GROUP = 10, - /** - * Field type message. - * - * @generated from enum value: TYPE_MESSAGE = 11; - */ - TYPE_MESSAGE = 11, - /** - * Field type bytes. - * - * @generated from enum value: TYPE_BYTES = 12; - */ - TYPE_BYTES = 12, - /** - * Field type uint32. - * - * @generated from enum value: TYPE_UINT32 = 13; - */ - TYPE_UINT32 = 13, - /** - * Field type enum. - * - * @generated from enum value: TYPE_ENUM = 14; - */ - TYPE_ENUM = 14, - /** - * Field type sfixed32. - * - * @generated from enum value: TYPE_SFIXED32 = 15; - */ - TYPE_SFIXED32 = 15, - /** - * Field type sfixed64. - * - * @generated from enum value: TYPE_SFIXED64 = 16; - */ - TYPE_SFIXED64 = 16, - /** - * Field type sint32. - * - * @generated from enum value: TYPE_SINT32 = 17; - */ - TYPE_SINT32 = 17, - /** - * Field type sint64. - * - * @generated from enum value: TYPE_SINT64 = 18; - */ - TYPE_SINT64 = 18 -} -/** - * Basic field types. - * - * @generated from enum google.protobuf.Field.Kind - */ -export type Field_KindJson = "TYPE_UNKNOWN" | "TYPE_DOUBLE" | "TYPE_FLOAT" | "TYPE_INT64" | "TYPE_UINT64" | "TYPE_INT32" | "TYPE_FIXED64" | "TYPE_FIXED32" | "TYPE_BOOL" | "TYPE_STRING" | "TYPE_GROUP" | "TYPE_MESSAGE" | "TYPE_BYTES" | "TYPE_UINT32" | "TYPE_ENUM" | "TYPE_SFIXED32" | "TYPE_SFIXED64" | "TYPE_SINT32" | "TYPE_SINT64"; -/** - * Describes the enum google.protobuf.Field.Kind. - */ -export declare const Field_KindSchema: GenEnum; -/** - * Whether a field is optional, required, or repeated. - * - * @generated from enum google.protobuf.Field.Cardinality - */ -export declare enum Field_Cardinality { - /** - * For fields with unknown cardinality. - * - * @generated from enum value: CARDINALITY_UNKNOWN = 0; - */ - UNKNOWN = 0, - /** - * For optional fields. - * - * @generated from enum value: CARDINALITY_OPTIONAL = 1; - */ - OPTIONAL = 1, - /** - * For required fields. Proto2 syntax only. - * - * @generated from enum value: CARDINALITY_REQUIRED = 2; - */ - REQUIRED = 2, - /** - * For repeated fields. - * - * @generated from enum value: CARDINALITY_REPEATED = 3; - */ - REPEATED = 3 -} -/** - * Whether a field is optional, required, or repeated. - * - * @generated from enum google.protobuf.Field.Cardinality - */ -export type Field_CardinalityJson = "CARDINALITY_UNKNOWN" | "CARDINALITY_OPTIONAL" | "CARDINALITY_REQUIRED" | "CARDINALITY_REPEATED"; -/** - * Describes the enum google.protobuf.Field.Cardinality. - */ -export declare const Field_CardinalitySchema: GenEnum; -/** - * Enum type definition. - * - * New usages of this message as an alternative to EnumDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Enum - */ -export type Enum = Message<"google.protobuf.Enum"> & { - /** - * Enum type name. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * Enum value definitions. - * - * @generated from field: repeated google.protobuf.EnumValue enumvalue = 2; - */ - enumvalue: EnumValue[]; - /** - * Protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 3; - */ - options: Option[]; - /** - * The source context. - * - * @generated from field: google.protobuf.SourceContext source_context = 4; - */ - sourceContext?: SourceContext; - /** - * The source syntax. - * - * @generated from field: google.protobuf.Syntax syntax = 5; - */ - syntax: Syntax; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * @generated from field: string edition = 6; - */ - edition: string; -}; -/** - * Enum type definition. - * - * New usages of this message as an alternative to EnumDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.Enum - */ -export type EnumJson = { - /** - * Enum type name. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * Enum value definitions. - * - * @generated from field: repeated google.protobuf.EnumValue enumvalue = 2; - */ - enumvalue?: EnumValueJson[]; - /** - * Protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 3; - */ - options?: OptionJson[]; - /** - * The source context. - * - * @generated from field: google.protobuf.SourceContext source_context = 4; - */ - sourceContext?: SourceContextJson; - /** - * The source syntax. - * - * @generated from field: google.protobuf.Syntax syntax = 5; - */ - syntax?: SyntaxJson; - /** - * The source edition string, only valid when syntax is SYNTAX_EDITIONS. - * - * @generated from field: string edition = 6; - */ - edition?: string; -}; -/** - * Describes the message google.protobuf.Enum. - * Use `create(EnumSchema)` to create a new message. - */ -export declare const EnumSchema: GenMessage; -/** - * Enum value definition. - * - * New usages of this message as an alternative to EnumValueDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.EnumValue - */ -export type EnumValue = Message<"google.protobuf.EnumValue"> & { - /** - * Enum value name. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * Enum value number. - * - * @generated from field: int32 number = 2; - */ - number: number; - /** - * Protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 3; - */ - options: Option[]; -}; -/** - * Enum value definition. - * - * New usages of this message as an alternative to EnumValueDescriptorProto are - * strongly discouraged. This message does not reliability preserve all - * information necessary to model the schema and preserve semantics. Instead - * make use of FileDescriptorSet which preserves the necessary information. - * - * @generated from message google.protobuf.EnumValue - */ -export type EnumValueJson = { - /** - * Enum value name. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * Enum value number. - * - * @generated from field: int32 number = 2; - */ - number?: number; - /** - * Protocol buffer options. - * - * @generated from field: repeated google.protobuf.Option options = 3; - */ - options?: OptionJson[]; -}; -/** - * Describes the message google.protobuf.EnumValue. - * Use `create(EnumValueSchema)` to create a new message. - */ -export declare const EnumValueSchema: GenMessage; -/** - * A protocol buffer option, which can be attached to a message, field, - * enumeration, etc. - * - * New usages of this message as an alternative to FileOptions, MessageOptions, - * FieldOptions, EnumOptions, EnumValueOptions, ServiceOptions, or MethodOptions - * are strongly discouraged. - * - * @generated from message google.protobuf.Option - */ -export type Option = Message<"google.protobuf.Option"> & { - /** - * The option's name. For protobuf built-in options (options defined in - * descriptor.proto), this is the short name. For example, `"map_entry"`. - * For custom options, it should be the fully-qualified name. For example, - * `"google.api.http"`. - * - * @generated from field: string name = 1; - */ - name: string; - /** - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * - * @generated from field: google.protobuf.Any value = 2; - */ - value?: Any; -}; -/** - * A protocol buffer option, which can be attached to a message, field, - * enumeration, etc. - * - * New usages of this message as an alternative to FileOptions, MessageOptions, - * FieldOptions, EnumOptions, EnumValueOptions, ServiceOptions, or MethodOptions - * are strongly discouraged. - * - * @generated from message google.protobuf.Option - */ -export type OptionJson = { - /** - * The option's name. For protobuf built-in options (options defined in - * descriptor.proto), this is the short name. For example, `"map_entry"`. - * For custom options, it should be the fully-qualified name. For example, - * `"google.api.http"`. - * - * @generated from field: string name = 1; - */ - name?: string; - /** - * The option's value packed in an Any message. If the value is a primitive, - * the corresponding wrapper type defined in google/protobuf/wrappers.proto - * should be used. If the value is an enum, it should be stored as an int32 - * value using the google.protobuf.Int32Value type. - * - * @generated from field: google.protobuf.Any value = 2; - */ - value?: AnyJson; -}; -/** - * Describes the message google.protobuf.Option. - * Use `create(OptionSchema)` to create a new message. - */ -export declare const OptionSchema: GenMessage; -/** - * The syntax in which a protocol buffer element is defined. - * - * @generated from enum google.protobuf.Syntax - */ -export declare enum Syntax { - /** - * Syntax `proto2`. - * - * @generated from enum value: SYNTAX_PROTO2 = 0; - */ - PROTO2 = 0, - /** - * Syntax `proto3`. - * - * @generated from enum value: SYNTAX_PROTO3 = 1; - */ - PROTO3 = 1, - /** - * Syntax `editions`. - * - * @generated from enum value: SYNTAX_EDITIONS = 2; - */ - EDITIONS = 2 -} -/** - * The syntax in which a protocol buffer element is defined. - * - * @generated from enum google.protobuf.Syntax - */ -export type SyntaxJson = "SYNTAX_PROTO2" | "SYNTAX_PROTO3" | "SYNTAX_EDITIONS"; -/** - * Describes the enum google.protobuf.Syntax. - */ -export declare const SyntaxSchema: GenEnum; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js deleted file mode 100644 index 360d9c3..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +++ /dev/null @@ -1,239 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../codegenv2/file.js"; -import { file_google_protobuf_any } from "./any_pb.js"; -import { file_google_protobuf_source_context } from "./source_context_pb.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -import { enumDesc } from "../../../../codegenv2/enum.js"; -/** - * Describes the file google/protobuf/type.proto. - */ -export const file_google_protobuf_type = /*@__PURE__*/ fileDesc("Chpnb29nbGUvcHJvdG9idWYvdHlwZS5wcm90bxIPZ29vZ2xlLnByb3RvYnVmIugBCgRUeXBlEgwKBG5hbWUYASABKAkSJgoGZmllbGRzGAIgAygLMhYuZ29vZ2xlLnByb3RvYnVmLkZpZWxkEg4KBm9uZW9mcxgDIAMoCRIoCgdvcHRpb25zGAQgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhI2Cg5zb3VyY2VfY29udGV4dBgFIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb250ZXh0EicKBnN5bnRheBgGIAEoDjIXLmdvb2dsZS5wcm90b2J1Zi5TeW50YXgSDwoHZWRpdGlvbhgHIAEoCSLVBQoFRmllbGQSKQoEa2luZBgBIAEoDjIbLmdvb2dsZS5wcm90b2J1Zi5GaWVsZC5LaW5kEjcKC2NhcmRpbmFsaXR5GAIgASgOMiIuZ29vZ2xlLnByb3RvYnVmLkZpZWxkLkNhcmRpbmFsaXR5Eg4KBm51bWJlchgDIAEoBRIMCgRuYW1lGAQgASgJEhAKCHR5cGVfdXJsGAYgASgJEhMKC29uZW9mX2luZGV4GAcgASgFEg4KBnBhY2tlZBgIIAEoCBIoCgdvcHRpb25zGAkgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhIRCglqc29uX25hbWUYCiABKAkSFQoNZGVmYXVsdF92YWx1ZRgLIAEoCSLIAgoES2luZBIQCgxUWVBFX1VOS05PV04QABIPCgtUWVBFX0RPVUJMRRABEg4KClRZUEVfRkxPQVQQAhIOCgpUWVBFX0lOVDY0EAMSDwoLVFlQRV9VSU5UNjQQBBIOCgpUWVBFX0lOVDMyEAUSEAoMVFlQRV9GSVhFRDY0EAYSEAoMVFlQRV9GSVhFRDMyEAcSDQoJVFlQRV9CT09MEAgSDwoLVFlQRV9TVFJJTkcQCRIOCgpUWVBFX0dST1VQEAoSEAoMVFlQRV9NRVNTQUdFEAsSDgoKVFlQRV9CWVRFUxAMEg8KC1RZUEVfVUlOVDMyEA0SDQoJVFlQRV9FTlVNEA4SEQoNVFlQRV9TRklYRUQzMhAPEhEKDVRZUEVfU0ZJWEVENjQQEBIPCgtUWVBFX1NJTlQzMhAREg8KC1RZUEVfU0lOVDY0EBIidAoLQ2FyZGluYWxpdHkSFwoTQ0FSRElOQUxJVFlfVU5LTk9XThAAEhgKFENBUkRJTkFMSVRZX09QVElPTkFMEAESGAoUQ0FSRElOQUxJVFlfUkVRVUlSRUQQAhIYChRDQVJESU5BTElUWV9SRVBFQVRFRBADIt8BCgRFbnVtEgwKBG5hbWUYASABKAkSLQoJZW51bXZhbHVlGAIgAygLMhouZ29vZ2xlLnByb3RvYnVmLkVudW1WYWx1ZRIoCgdvcHRpb25zGAMgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhI2Cg5zb3VyY2VfY29udGV4dBgEIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb250ZXh0EicKBnN5bnRheBgFIAEoDjIXLmdvb2dsZS5wcm90b2J1Zi5TeW50YXgSDwoHZWRpdGlvbhgGIAEoCSJTCglFbnVtVmFsdWUSDAoEbmFtZRgBIAEoCRIOCgZudW1iZXIYAiABKAUSKAoHb3B0aW9ucxgDIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5PcHRpb24iOwoGT3B0aW9uEgwKBG5hbWUYASABKAkSIwoFdmFsdWUYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55KkMKBlN5bnRheBIRCg1TWU5UQVhfUFJPVE8yEAASEQoNU1lOVEFYX1BST1RPMxABEhMKD1NZTlRBWF9FRElUSU9OUxACQnsKE2NvbS5nb29nbGUucHJvdG9idWZCCVR5cGVQcm90b1ABWi1nb29nbGUuZ29sYW5nLm9yZy9wcm90b2J1Zi90eXBlcy9rbm93bi90eXBlcGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw", [file_google_protobuf_any, file_google_protobuf_source_context]); -/** - * Describes the message google.protobuf.Type. - * Use `create(TypeSchema)` to create a new message. - */ -export const TypeSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_type, 0); -/** - * Describes the message google.protobuf.Field. - * Use `create(FieldSchema)` to create a new message. - */ -export const FieldSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_type, 1); -/** - * Basic field types. - * - * @generated from enum google.protobuf.Field.Kind - */ -export var Field_Kind; -(function (Field_Kind) { - /** - * Field type unknown. - * - * @generated from enum value: TYPE_UNKNOWN = 0; - */ - Field_Kind[Field_Kind["TYPE_UNKNOWN"] = 0] = "TYPE_UNKNOWN"; - /** - * Field type double. - * - * @generated from enum value: TYPE_DOUBLE = 1; - */ - Field_Kind[Field_Kind["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE"; - /** - * Field type float. - * - * @generated from enum value: TYPE_FLOAT = 2; - */ - Field_Kind[Field_Kind["TYPE_FLOAT"] = 2] = "TYPE_FLOAT"; - /** - * Field type int64. - * - * @generated from enum value: TYPE_INT64 = 3; - */ - Field_Kind[Field_Kind["TYPE_INT64"] = 3] = "TYPE_INT64"; - /** - * Field type uint64. - * - * @generated from enum value: TYPE_UINT64 = 4; - */ - Field_Kind[Field_Kind["TYPE_UINT64"] = 4] = "TYPE_UINT64"; - /** - * Field type int32. - * - * @generated from enum value: TYPE_INT32 = 5; - */ - Field_Kind[Field_Kind["TYPE_INT32"] = 5] = "TYPE_INT32"; - /** - * Field type fixed64. - * - * @generated from enum value: TYPE_FIXED64 = 6; - */ - Field_Kind[Field_Kind["TYPE_FIXED64"] = 6] = "TYPE_FIXED64"; - /** - * Field type fixed32. - * - * @generated from enum value: TYPE_FIXED32 = 7; - */ - Field_Kind[Field_Kind["TYPE_FIXED32"] = 7] = "TYPE_FIXED32"; - /** - * Field type bool. - * - * @generated from enum value: TYPE_BOOL = 8; - */ - Field_Kind[Field_Kind["TYPE_BOOL"] = 8] = "TYPE_BOOL"; - /** - * Field type string. - * - * @generated from enum value: TYPE_STRING = 9; - */ - Field_Kind[Field_Kind["TYPE_STRING"] = 9] = "TYPE_STRING"; - /** - * Field type group. Proto2 syntax only, and deprecated. - * - * @generated from enum value: TYPE_GROUP = 10; - */ - Field_Kind[Field_Kind["TYPE_GROUP"] = 10] = "TYPE_GROUP"; - /** - * Field type message. - * - * @generated from enum value: TYPE_MESSAGE = 11; - */ - Field_Kind[Field_Kind["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE"; - /** - * Field type bytes. - * - * @generated from enum value: TYPE_BYTES = 12; - */ - Field_Kind[Field_Kind["TYPE_BYTES"] = 12] = "TYPE_BYTES"; - /** - * Field type uint32. - * - * @generated from enum value: TYPE_UINT32 = 13; - */ - Field_Kind[Field_Kind["TYPE_UINT32"] = 13] = "TYPE_UINT32"; - /** - * Field type enum. - * - * @generated from enum value: TYPE_ENUM = 14; - */ - Field_Kind[Field_Kind["TYPE_ENUM"] = 14] = "TYPE_ENUM"; - /** - * Field type sfixed32. - * - * @generated from enum value: TYPE_SFIXED32 = 15; - */ - Field_Kind[Field_Kind["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32"; - /** - * Field type sfixed64. - * - * @generated from enum value: TYPE_SFIXED64 = 16; - */ - Field_Kind[Field_Kind["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64"; - /** - * Field type sint32. - * - * @generated from enum value: TYPE_SINT32 = 17; - */ - Field_Kind[Field_Kind["TYPE_SINT32"] = 17] = "TYPE_SINT32"; - /** - * Field type sint64. - * - * @generated from enum value: TYPE_SINT64 = 18; - */ - Field_Kind[Field_Kind["TYPE_SINT64"] = 18] = "TYPE_SINT64"; -})(Field_Kind || (Field_Kind = {})); -/** - * Describes the enum google.protobuf.Field.Kind. - */ -export const Field_KindSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_type, 1, 0); -/** - * Whether a field is optional, required, or repeated. - * - * @generated from enum google.protobuf.Field.Cardinality - */ -export var Field_Cardinality; -(function (Field_Cardinality) { - /** - * For fields with unknown cardinality. - * - * @generated from enum value: CARDINALITY_UNKNOWN = 0; - */ - Field_Cardinality[Field_Cardinality["UNKNOWN"] = 0] = "UNKNOWN"; - /** - * For optional fields. - * - * @generated from enum value: CARDINALITY_OPTIONAL = 1; - */ - Field_Cardinality[Field_Cardinality["OPTIONAL"] = 1] = "OPTIONAL"; - /** - * For required fields. Proto2 syntax only. - * - * @generated from enum value: CARDINALITY_REQUIRED = 2; - */ - Field_Cardinality[Field_Cardinality["REQUIRED"] = 2] = "REQUIRED"; - /** - * For repeated fields. - * - * @generated from enum value: CARDINALITY_REPEATED = 3; - */ - Field_Cardinality[Field_Cardinality["REPEATED"] = 3] = "REPEATED"; -})(Field_Cardinality || (Field_Cardinality = {})); -/** - * Describes the enum google.protobuf.Field.Cardinality. - */ -export const Field_CardinalitySchema = /*@__PURE__*/ enumDesc(file_google_protobuf_type, 1, 1); -/** - * Describes the message google.protobuf.Enum. - * Use `create(EnumSchema)` to create a new message. - */ -export const EnumSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_type, 2); -/** - * Describes the message google.protobuf.EnumValue. - * Use `create(EnumValueSchema)` to create a new message. - */ -export const EnumValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_type, 3); -/** - * Describes the message google.protobuf.Option. - * Use `create(OptionSchema)` to create a new message. - */ -export const OptionSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_type, 4); -/** - * The syntax in which a protocol buffer element is defined. - * - * @generated from enum google.protobuf.Syntax - */ -export var Syntax; -(function (Syntax) { - /** - * Syntax `proto2`. - * - * @generated from enum value: SYNTAX_PROTO2 = 0; - */ - Syntax[Syntax["PROTO2"] = 0] = "PROTO2"; - /** - * Syntax `proto3`. - * - * @generated from enum value: SYNTAX_PROTO3 = 1; - */ - Syntax[Syntax["PROTO3"] = 1] = "PROTO3"; - /** - * Syntax `editions`. - * - * @generated from enum value: SYNTAX_EDITIONS = 2; - */ - Syntax[Syntax["EDITIONS"] = 2] = "EDITIONS"; -})(Syntax || (Syntax = {})); -/** - * Describes the enum google.protobuf.Syntax. - */ -export const SyntaxSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_type, 0); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts deleted file mode 100644 index c63820a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +++ /dev/null @@ -1,330 +0,0 @@ -import type { GenFile, GenMessage } from "../../../../codegenv2/types.js"; -import type { Message } from "../../../../types.js"; -/** - * Describes the file google/protobuf/wrappers.proto. - */ -export declare const file_google_protobuf_wrappers: GenFile; -/** - * Wrapper message for `double`. - * - * The JSON representation for `DoubleValue` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.DoubleValue - */ -export type DoubleValue = Message<"google.protobuf.DoubleValue"> & { - /** - * The double value. - * - * @generated from field: double value = 1; - */ - value: number; -}; -/** - * Wrapper message for `double`. - * - * The JSON representation for `DoubleValue` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.DoubleValue - */ -export type DoubleValueJson = number | "NaN" | "Infinity" | "-Infinity"; -/** - * Describes the message google.protobuf.DoubleValue. - * Use `create(DoubleValueSchema)` to create a new message. - */ -export declare const DoubleValueSchema: GenMessage; -/** - * Wrapper message for `float`. - * - * The JSON representation for `FloatValue` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.FloatValue - */ -export type FloatValue = Message<"google.protobuf.FloatValue"> & { - /** - * The float value. - * - * @generated from field: float value = 1; - */ - value: number; -}; -/** - * Wrapper message for `float`. - * - * The JSON representation for `FloatValue` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.FloatValue - */ -export type FloatValueJson = number | "NaN" | "Infinity" | "-Infinity"; -/** - * Describes the message google.protobuf.FloatValue. - * Use `create(FloatValueSchema)` to create a new message. - */ -export declare const FloatValueSchema: GenMessage; -/** - * Wrapper message for `int64`. - * - * The JSON representation for `Int64Value` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.Int64Value - */ -export type Int64Value = Message<"google.protobuf.Int64Value"> & { - /** - * The int64 value. - * - * @generated from field: int64 value = 1; - */ - value: bigint; -}; -/** - * Wrapper message for `int64`. - * - * The JSON representation for `Int64Value` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.Int64Value - */ -export type Int64ValueJson = string; -/** - * Describes the message google.protobuf.Int64Value. - * Use `create(Int64ValueSchema)` to create a new message. - */ -export declare const Int64ValueSchema: GenMessage; -/** - * Wrapper message for `uint64`. - * - * The JSON representation for `UInt64Value` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.UInt64Value - */ -export type UInt64Value = Message<"google.protobuf.UInt64Value"> & { - /** - * The uint64 value. - * - * @generated from field: uint64 value = 1; - */ - value: bigint; -}; -/** - * Wrapper message for `uint64`. - * - * The JSON representation for `UInt64Value` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.UInt64Value - */ -export type UInt64ValueJson = string; -/** - * Describes the message google.protobuf.UInt64Value. - * Use `create(UInt64ValueSchema)` to create a new message. - */ -export declare const UInt64ValueSchema: GenMessage; -/** - * Wrapper message for `int32`. - * - * The JSON representation for `Int32Value` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.Int32Value - */ -export type Int32Value = Message<"google.protobuf.Int32Value"> & { - /** - * The int32 value. - * - * @generated from field: int32 value = 1; - */ - value: number; -}; -/** - * Wrapper message for `int32`. - * - * The JSON representation for `Int32Value` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.Int32Value - */ -export type Int32ValueJson = number; -/** - * Describes the message google.protobuf.Int32Value. - * Use `create(Int32ValueSchema)` to create a new message. - */ -export declare const Int32ValueSchema: GenMessage; -/** - * Wrapper message for `uint32`. - * - * The JSON representation for `UInt32Value` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.UInt32Value - */ -export type UInt32Value = Message<"google.protobuf.UInt32Value"> & { - /** - * The uint32 value. - * - * @generated from field: uint32 value = 1; - */ - value: number; -}; -/** - * Wrapper message for `uint32`. - * - * The JSON representation for `UInt32Value` is JSON number. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.UInt32Value - */ -export type UInt32ValueJson = number; -/** - * Describes the message google.protobuf.UInt32Value. - * Use `create(UInt32ValueSchema)` to create a new message. - */ -export declare const UInt32ValueSchema: GenMessage; -/** - * Wrapper message for `bool`. - * - * The JSON representation for `BoolValue` is JSON `true` and `false`. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.BoolValue - */ -export type BoolValue = Message<"google.protobuf.BoolValue"> & { - /** - * The bool value. - * - * @generated from field: bool value = 1; - */ - value: boolean; -}; -/** - * Wrapper message for `bool`. - * - * The JSON representation for `BoolValue` is JSON `true` and `false`. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.BoolValue - */ -export type BoolValueJson = boolean; -/** - * Describes the message google.protobuf.BoolValue. - * Use `create(BoolValueSchema)` to create a new message. - */ -export declare const BoolValueSchema: GenMessage; -/** - * Wrapper message for `string`. - * - * The JSON representation for `StringValue` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.StringValue - */ -export type StringValue = Message<"google.protobuf.StringValue"> & { - /** - * The string value. - * - * @generated from field: string value = 1; - */ - value: string; -}; -/** - * Wrapper message for `string`. - * - * The JSON representation for `StringValue` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.StringValue - */ -export type StringValueJson = string; -/** - * Describes the message google.protobuf.StringValue. - * Use `create(StringValueSchema)` to create a new message. - */ -export declare const StringValueSchema: GenMessage; -/** - * Wrapper message for `bytes`. - * - * The JSON representation for `BytesValue` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.BytesValue - */ -export type BytesValue = Message<"google.protobuf.BytesValue"> & { - /** - * The bytes value. - * - * @generated from field: bytes value = 1; - */ - value: Uint8Array; -}; -/** - * Wrapper message for `bytes`. - * - * The JSON representation for `BytesValue` is JSON string. - * - * Not recommended for use in new APIs, but still useful for legacy APIs and - * has no plan to be removed. - * - * @generated from message google.protobuf.BytesValue - */ -export type BytesValueJson = string; -/** - * Describes the message google.protobuf.BytesValue. - * Use `create(BytesValueSchema)` to create a new message. - */ -export declare const BytesValueSchema: GenMessage; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js deleted file mode 100644 index 1d51b0a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { fileDesc } from "../../../../codegenv2/file.js"; -import { messageDesc } from "../../../../codegenv2/message.js"; -/** - * Describes the file google/protobuf/wrappers.proto. - */ -export const file_google_protobuf_wrappers = /*@__PURE__*/ fileDesc("Ch5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIcCgtEb3VibGVWYWx1ZRINCgV2YWx1ZRgBIAEoASIbCgpGbG9hdFZhbHVlEg0KBXZhbHVlGAEgASgCIhsKCkludDY0VmFsdWUSDQoFdmFsdWUYASABKAMiHAoLVUludDY0VmFsdWUSDQoFdmFsdWUYASABKAQiGwoKSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEoBSIcCgtVSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEoDSIaCglCb29sVmFsdWUSDQoFdmFsdWUYASABKAgiHAoLU3RyaW5nVmFsdWUSDQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEKDAQoTY29tLmdvb2dsZS5wcm90b2J1ZkINV3JhcHBlcnNQcm90b1ABWjFnb29nbGUuZ29sYW5nLm9yZy9wcm90b2J1Zi90eXBlcy9rbm93bi93cmFwcGVyc3Bi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"); -/** - * Describes the message google.protobuf.DoubleValue. - * Use `create(DoubleValueSchema)` to create a new message. - */ -export const DoubleValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 0); -/** - * Describes the message google.protobuf.FloatValue. - * Use `create(FloatValueSchema)` to create a new message. - */ -export const FloatValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 1); -/** - * Describes the message google.protobuf.Int64Value. - * Use `create(Int64ValueSchema)` to create a new message. - */ -export const Int64ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 2); -/** - * Describes the message google.protobuf.UInt64Value. - * Use `create(UInt64ValueSchema)` to create a new message. - */ -export const UInt64ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 3); -/** - * Describes the message google.protobuf.Int32Value. - * Use `create(Int32ValueSchema)` to create a new message. - */ -export const Int32ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 4); -/** - * Describes the message google.protobuf.UInt32Value. - * Use `create(UInt32ValueSchema)` to create a new message. - */ -export const UInt32ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 5); -/** - * Describes the message google.protobuf.BoolValue. - * Use `create(BoolValueSchema)` to create a new message. - */ -export const BoolValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 6); -/** - * Describes the message google.protobuf.StringValue. - * Use `create(StringValueSchema)` to create a new message. - */ -export const StringValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 7); -/** - * Describes the message google.protobuf.BytesValue. - * Use `create(BytesValueSchema)` to create a new message. - */ -export const BytesValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 8); diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.d.ts deleted file mode 100644 index 23beb45..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export * from "./timestamp.js"; -export * from "./any.js"; -export * from "./wrappers.js"; -export * from "./gen/google/protobuf/any_pb.js"; -export * from "./gen/google/protobuf/api_pb.js"; -export * from "./gen/google/protobuf/cpp_features_pb.js"; -export * from "./gen/google/protobuf/descriptor_pb.js"; -export * from "./gen/google/protobuf/duration_pb.js"; -export * from "./gen/google/protobuf/empty_pb.js"; -export * from "./gen/google/protobuf/field_mask_pb.js"; -export * from "./gen/google/protobuf/go_features_pb.js"; -export * from "./gen/google/protobuf/java_features_pb.js"; -export * from "./gen/google/protobuf/source_context_pb.js"; -export * from "./gen/google/protobuf/struct_pb.js"; -export * from "./gen/google/protobuf/timestamp_pb.js"; -export * from "./gen/google/protobuf/type_pb.js"; -export * from "./gen/google/protobuf/wrappers_pb.js"; -export * from "./gen/google/protobuf/compiler/plugin_pb.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js deleted file mode 100644 index 7560c70..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -export * from "./timestamp.js"; -export * from "./any.js"; -export * from "./wrappers.js"; -export * from "./gen/google/protobuf/any_pb.js"; -export * from "./gen/google/protobuf/api_pb.js"; -export * from "./gen/google/protobuf/cpp_features_pb.js"; -export * from "./gen/google/protobuf/descriptor_pb.js"; -export * from "./gen/google/protobuf/duration_pb.js"; -export * from "./gen/google/protobuf/empty_pb.js"; -export * from "./gen/google/protobuf/field_mask_pb.js"; -export * from "./gen/google/protobuf/go_features_pb.js"; -export * from "./gen/google/protobuf/java_features_pb.js"; -export * from "./gen/google/protobuf/source_context_pb.js"; -export * from "./gen/google/protobuf/struct_pb.js"; -export * from "./gen/google/protobuf/timestamp_pb.js"; -export * from "./gen/google/protobuf/type_pb.js"; -export * from "./gen/google/protobuf/wrappers_pb.js"; -export * from "./gen/google/protobuf/compiler/plugin_pb.js"; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.d.ts deleted file mode 100644 index 6ae7c19..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { Timestamp } from "./gen/google/protobuf/timestamp_pb.js"; -/** - * Create a google.protobuf.Timestamp for the current time. - */ -export declare function timestampNow(): Timestamp; -/** - * Create a google.protobuf.Timestamp message from an ECMAScript Date. - */ -export declare function timestampFromDate(date: Date): Timestamp; -/** - * Convert a google.protobuf.Timestamp message to an ECMAScript Date. - */ -export declare function timestampDate(timestamp: Timestamp): Date; -/** - * Create a google.protobuf.Timestamp message from a Unix timestamp in milliseconds. - */ -export declare function timestampFromMs(timestampMs: number): Timestamp; -/** - * Convert a google.protobuf.Timestamp to a Unix timestamp in milliseconds. - */ -export declare function timestampMs(timestamp: Timestamp): number; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js deleted file mode 100644 index 54224d2..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -import { TimestampSchema } from "./gen/google/protobuf/timestamp_pb.js"; -import { create } from "../create.js"; -import { protoInt64 } from "../proto-int64.js"; -/** - * Create a google.protobuf.Timestamp for the current time. - */ -export function timestampNow() { - return timestampFromDate(new Date()); -} -/** - * Create a google.protobuf.Timestamp message from an ECMAScript Date. - */ -export function timestampFromDate(date) { - return timestampFromMs(date.getTime()); -} -/** - * Convert a google.protobuf.Timestamp message to an ECMAScript Date. - */ -export function timestampDate(timestamp) { - return new Date(timestampMs(timestamp)); -} -/** - * Create a google.protobuf.Timestamp message from a Unix timestamp in milliseconds. - */ -export function timestampFromMs(timestampMs) { - const seconds = Math.floor(timestampMs / 1000); - return create(TimestampSchema, { - seconds: protoInt64.parse(seconds), - nanos: (timestampMs - seconds * 1000) * 1000000, - }); -} -/** - * Convert a google.protobuf.Timestamp to a Unix timestamp in milliseconds. - */ -export function timestampMs(timestamp) { - return (Number(timestamp.seconds) * 1000 + Math.round(timestamp.nanos / 1000000)); -} diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.d.ts b/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.d.ts deleted file mode 100644 index f836b8e..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Message } from "../types.js"; -import type { BoolValue, BytesValue, DoubleValue, FloatValue, Int32Value, Int64Value, StringValue, UInt32Value, UInt64Value } from "./gen/google/protobuf/wrappers_pb.js"; -import type { DescField, DescMessage } from "../descriptors.js"; -export declare function isWrapper(arg: Message): arg is DoubleValue | FloatValue | Int64Value | UInt64Value | Int32Value | UInt32Value | BoolValue | StringValue | BytesValue; -export type WktWrapperDesc = DescMessage & { - fields: [ - DescField & { - fieldKind: "scalar"; - number: 1; - name: "value"; - oneof: undefined; - } - ]; -}; -export declare function isWrapperDesc(messageDesc: DescMessage): messageDesc is WktWrapperDesc; diff --git a/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js b/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js deleted file mode 100644 index a27f03a..0000000 --- a/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2021-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -export function isWrapper(arg) { - return isWrapperTypeName(arg.$typeName); -} -export function isWrapperDesc(messageDesc) { - const f = messageDesc.fields[0]; - return (isWrapperTypeName(messageDesc.typeName) && - f !== undefined && - f.fieldKind == "scalar" && - f.name == "value" && - f.number == 1); -} -function isWrapperTypeName(name) { - return (name.startsWith("google.protobuf.") && - [ - "DoubleValue", - "FloatValue", - "Int64Value", - "UInt64Value", - "Int32Value", - "UInt32Value", - "BoolValue", - "StringValue", - "BytesValue", - ].includes(name.substring(16))); -} diff --git a/node_modules/@bufbuild/protobuf/package.json b/node_modules/@bufbuild/protobuf/package.json deleted file mode 100644 index 98cca87..0000000 --- a/node_modules/@bufbuild/protobuf/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "name": "@bufbuild/protobuf", - "version": "2.8.0", - "license": "(Apache-2.0 AND BSD-3-Clause)", - "description": "A complete implementation of Protocol Buffers in TypeScript, suitable for web browsers and Node.js.", - "keywords": ["protobuf", "schema", "typescript", "ecmascript"], - "repository": { - "type": "git", - "url": "https://github.com/bufbuild/protobuf-es.git", - "directory": "packages/protobuf" - }, - "scripts": { - "prebuild": "rm -rf ./dist/*", - "build": "npm run build:cjs && npm run build:esm", - "build:cjs": "../../node_modules/typescript/bin/tsc --project tsconfig.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'", - "build:esm": "../../node_modules/typescript/bin/tsc --project tsconfig.json --outDir ./dist/esm", - "bootstrap": "npm run bootstrap:inject && npm run bootstrap:wkt", - "bootstrap:inject": "node scripts/bootstrap-inject.mjs src", - "bootstrap:wkt": "protoc --es_out=src/wkt/gen --es_opt=bootstrap_wkt=true,target=ts,import_extension=js,json_types=true --proto_path $(upstream-include wkt) $(upstream-files wkt)", - "postbootstrap:wkt": "license-header src/wkt/gen", - "format": "biome format --write", - "license-header": "license-header --ignore 'src/wire/varint.ts'", - "lint": "biome lint --error-on-warnings", - "attw": "attw --pack" - }, - "type": "module", - "sideEffects": false, - "main": "./dist/cjs/index.js", - "exports": { - ".": { - "import": "./dist/esm/index.js", - "require": "./dist/cjs/index.js" - }, - "./codegenv1": { - "import": "./dist/esm/codegenv1/index.js", - "require": "./dist/cjs/codegenv1/index.js" - }, - "./codegenv2": { - "import": "./dist/esm/codegenv2/index.js", - "require": "./dist/cjs/codegenv2/index.js" - }, - "./reflect": { - "import": "./dist/esm/reflect/index.js", - "require": "./dist/cjs/reflect/index.js" - }, - "./wkt": { - "import": "./dist/esm/wkt/index.js", - "require": "./dist/cjs/wkt/index.js" - }, - "./wire": { - "import": "./dist/esm/wire/index.js", - "require": "./dist/cjs/wire/index.js" - } - }, - "typesVersions": { - "*": { - "codegenv1": ["./dist/cjs/codegenv1/index.d.ts"], - "codegenv2": ["./dist/cjs/codegenv2/index.d.ts"], - "reflect": ["./dist/cjs/reflect/index.d.ts"], - "wkt": ["./dist/cjs/wkt/index.d.ts"], - "wire": ["./dist/cjs/wire/index.d.ts"] - } - }, - "devDependencies": { - "upstream-protobuf": "*" - }, - "files": ["dist/**"] -} diff --git a/node_modules/@esbuild/darwin-arm64/README.md b/node_modules/@esbuild/darwin-arm64/README.md deleted file mode 100644 index c2c0398..0000000 --- a/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/@esbuild/darwin-arm64/bin/esbuild b/node_modules/@esbuild/darwin-arm64/bin/esbuild deleted file mode 100755 index 4e3f57b..0000000 Binary files a/node_modules/@esbuild/darwin-arm64/bin/esbuild and /dev/null differ diff --git a/node_modules/@esbuild/darwin-arm64/package.json b/node_modules/@esbuild/darwin-arm64/package.json deleted file mode 100644 index 7349def..0000000 --- a/node_modules/@esbuild/darwin-arm64/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "@esbuild/darwin-arm64", - "version": "0.25.9", - "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/@parcel/watcher-darwin-arm64/LICENSE b/node_modules/@parcel/watcher-darwin-arm64/LICENSE deleted file mode 100644 index 7fb9bc9..0000000 --- a/node_modules/@parcel/watcher-darwin-arm64/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017-present Devon Govett - -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/@parcel/watcher-darwin-arm64/README.md b/node_modules/@parcel/watcher-darwin-arm64/README.md deleted file mode 100644 index d426ec6..0000000 --- a/node_modules/@parcel/watcher-darwin-arm64/README.md +++ /dev/null @@ -1 +0,0 @@ -This is the darwin-arm64 build of @parcel/watcher. See https://github.com/parcel-bundler/watcher for details. \ No newline at end of file diff --git a/node_modules/@parcel/watcher-darwin-arm64/package.json b/node_modules/@parcel/watcher-darwin-arm64/package.json deleted file mode 100644 index 6e73c9b..0000000 --- a/node_modules/@parcel/watcher-darwin-arm64/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "@parcel/watcher-darwin-arm64", - "version": "2.5.1", - "main": "watcher.node", - "repository": { - "type": "git", - "url": "https://github.com/parcel-bundler/watcher.git" - }, - "description": "A native C++ Node module for querying and subscribing to filesystem events. Used by Parcel 2.", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "files": [ - "watcher.node" - ], - "engines": { - "node": ">= 10.0.0" - }, - "os": [ - "darwin" - ], - "cpu": [ - "arm64" - ] -} diff --git a/node_modules/@parcel/watcher-darwin-arm64/watcher.node b/node_modules/@parcel/watcher-darwin-arm64/watcher.node deleted file mode 100644 index 299aebf..0000000 Binary files a/node_modules/@parcel/watcher-darwin-arm64/watcher.node and /dev/null differ diff --git a/node_modules/@parcel/watcher/LICENSE b/node_modules/@parcel/watcher/LICENSE deleted file mode 100644 index 7fb9bc9..0000000 --- a/node_modules/@parcel/watcher/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017-present Devon Govett - -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/@parcel/watcher/README.md b/node_modules/@parcel/watcher/README.md deleted file mode 100644 index d212b93..0000000 --- a/node_modules/@parcel/watcher/README.md +++ /dev/null @@ -1,135 +0,0 @@ -# @parcel/watcher - -A native C++ Node module for querying and subscribing to filesystem events. Used by [Parcel 2](https://github.com/parcel-bundler/parcel). - -## Features - -- **Watch** - subscribe to realtime recursive directory change notifications when files or directories are created, updated, or deleted. -- **Query** - performantly query for historical change events in a directory, even when your program is not running. -- **Native** - implemented in C++ for performance and low-level integration with the operating system. -- **Cross platform** - includes backends for macOS, Linux, Windows, FreeBSD, and Watchman. -- **Performant** - events are throttled in C++ so the JavaScript thread is not overwhelmed during large filesystem changes (e.g. `git checkout` or `npm install`). -- **Scalable** - tens of thousands of files can be watched or queried at once with good performance. - -## Example - -```javascript -const watcher = require('@parcel/watcher'); -const path = require('path'); - -// Subscribe to events -let subscription = await watcher.subscribe(process.cwd(), (err, events) => { - console.log(events); -}); - -// later on... -await subscription.unsubscribe(); - -// Get events since some saved snapshot in the past -let snapshotPath = path.join(process.cwd(), 'snapshot.txt'); -let events = await watcher.getEventsSince(process.cwd(), snapshotPath); - -// Save a snapshot for later -await watcher.writeSnapshot(process.cwd(), snapshotPath); -``` - -## Watching - -`@parcel/watcher` supports subscribing to realtime notifications of changes in a directory. It works recursively, so changes in sub-directories will also be emitted. - -Events are throttled and coalesced for performance during large changes like `git checkout` or `npm install`, and a single notification will be emitted with all of the events at the end. - -Only one notification will be emitted per file. For example, if a file was both created and updated since the last event, you'll get only a `create` event. If a file is both created and deleted, you will not be notifed of that file. Renames cause two events: a `delete` for the old name, and a `create` for the new name. - -```javascript -let subscription = await watcher.subscribe(process.cwd(), (err, events) => { - console.log(events); -}); -``` - -Events have two properties: - -- `type` - the event type: `create`, `update`, or `delete`. -- `path` - the absolute path to the file or directory. - -To unsubscribe from change notifications, call the `unsubscribe` method on the returned subscription object. - -```javascript -await subscription.unsubscribe(); -``` - -`@parcel/watcher` has the following watcher backends, listed in priority order: - -- [FSEvents](https://developer.apple.com/documentation/coreservices/file_system_events) on macOS -- [Watchman](https://facebook.github.io/watchman/) if installed -- [inotify](http://man7.org/linux/man-pages/man7/inotify.7.html) on Linux -- [ReadDirectoryChangesW](https://msdn.microsoft.com/en-us/library/windows/desktop/aa365465%28v%3Dvs.85%29.aspx) on Windows -- [kqueue](https://man.freebsd.org/cgi/man.cgi?kqueue) on FreeBSD, or as an alternative to FSEvents on macOS - -You can specify the exact backend you wish to use by passing the `backend` option. If that backend is not available on the current platform, the default backend will be used instead. See below for the list of backend names that can be passed to the options. - -## Querying - -`@parcel/watcher` also supports querying for historical changes made in a directory, even when your program is not running. This makes it easy to invalidate a cache and re-build only the files that have changed, for example. It can be **significantly** faster than traversing the entire filesystem to determine what files changed, depending on the platform. - -In order to query for historical changes, you first need a previous snapshot to compare to. This can be saved to a file with the `writeSnapshot` function, e.g. just before your program exits. - -```javascript -await watcher.writeSnapshot(dirPath, snapshotPath); -``` - -When your program starts up, you can query for changes that have occurred since that snapshot using the `getEventsSince` function. - -```javascript -let events = await watcher.getEventsSince(dirPath, snapshotPath); -``` - -The events returned are exactly the same as the events that would be passed to the `subscribe` callback (see above). - -`@parcel/watcher` has the following watcher backends, listed in priority order: - -- [FSEvents](https://developer.apple.com/documentation/coreservices/file_system_events) on macOS -- [Watchman](https://facebook.github.io/watchman/) if installed -- [fts](http://man7.org/linux/man-pages/man3/fts.3.html) (brute force) on Linux and FreeBSD -- [FindFirstFile](https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-findfirstfilea) (brute force) on Windows - -The FSEvents (macOS) and Watchman backends are significantly more performant than the brute force backends used by default on Linux and Windows, for example returning results in miliseconds instead of seconds for large directory trees. This is because a background daemon monitoring filesystem changes on those platforms allows us to query cached data rather than traversing the filesystem manually (brute force). - -macOS has good performance with FSEvents by default. For the best performance on other platforms, install [Watchman](https://facebook.github.io/watchman/) and it will be used by `@parcel/watcher` automatically. - -You can specify the exact backend you wish to use by passing the `backend` option. If that backend is not available on the current platform, the default backend will be used instead. See below for the list of backend names that can be passed to the options. - -## Options - -All of the APIs in `@parcel/watcher` support the following options, which are passed as an object as the last function argument. - -- `ignore` - an array of paths or glob patterns to ignore. uses [`is-glob`](https://github.com/micromatch/is-glob) to distinguish paths from globs. glob patterns are parsed with [`micromatch`](https://github.com/micromatch/micromatch) (see [features](https://github.com/micromatch/micromatch#matching-features)). - - paths can be relative or absolute and can either be files or directories. No events will be emitted about these files or directories or their children. - - glob patterns match on relative paths from the root that is watched. No events will be emitted for matching paths. -- `backend` - the name of an explicitly chosen backend to use. Allowed options are `"fs-events"`, `"watchman"`, `"inotify"`, `"kqueue"`, `"windows"`, or `"brute-force"` (only for querying). If the specified backend is not available on the current platform, the default backend will be used instead. - -## WASM - -The `@parcel/watcher-wasm` package can be used in place of `@parcel/watcher` on unsupported platforms. It relies on the Node `fs` module, so in non-Node environments such as browsers, an `fs` polyfill will be needed. - -**Note**: the WASM implementation is significantly less efficient than the native implementations because it must crawl the file system to watch each directory individually. Use the native `@parcel/watcher` package wherever possible. - -```js -import {subscribe} from '@parcel/watcher-wasm'; - -// Use the module as documented above. -subscribe(/* ... */); -``` - -## Who is using this? - -- [Parcel 2](https://parceljs.org/) -- [VSCode](https://code.visualstudio.com/updates/v1_62#_file-watching-changes) -- [Tailwind CSS Intellisense](https://github.com/tailwindlabs/tailwindcss-intellisense) -- [Gatsby Cloud](https://twitter.com/chatsidhartha/status/1435647412828196867) -- [Nx](https://nx.dev) -- [Nuxt](https://nuxt.com) - -## License - -MIT diff --git a/node_modules/@parcel/watcher/binding.gyp b/node_modules/@parcel/watcher/binding.gyp deleted file mode 100644 index 9b8f6ff..0000000 --- a/node_modules/@parcel/watcher/binding.gyp +++ /dev/null @@ -1,93 +0,0 @@ -{ - "targets": [ - { - "target_name": "watcher", - "defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ], - "sources": [ "src/binding.cc", "src/Watcher.cc", "src/Backend.cc", "src/DirTree.cc", "src/Glob.cc", "src/Debounce.cc" ], - "include_dirs" : [" unknown; - export interface AsyncSubscription { - unsubscribe(): Promise; - } - export interface Event { - path: FilePath; - type: EventType; - } - export function getEventsSince( - dir: FilePath, - snapshot: FilePath, - opts?: Options - ): Promise; - export function subscribe( - dir: FilePath, - fn: SubscribeCallback, - opts?: Options - ): Promise; - export function unsubscribe( - dir: FilePath, - fn: SubscribeCallback, - opts?: Options - ): Promise; - export function writeSnapshot( - dir: FilePath, - snapshot: FilePath, - opts?: Options - ): Promise; -} - -export = ParcelWatcher; \ No newline at end of file diff --git a/node_modules/@parcel/watcher/index.js b/node_modules/@parcel/watcher/index.js deleted file mode 100644 index 8afb2b1..0000000 --- a/node_modules/@parcel/watcher/index.js +++ /dev/null @@ -1,41 +0,0 @@ -const {createWrapper} = require('./wrapper'); - -let name = `@parcel/watcher-${process.platform}-${process.arch}`; -if (process.platform === 'linux') { - const { MUSL, family } = require('detect-libc'); - if (family === MUSL) { - name += '-musl'; - } else { - name += '-glibc'; - } -} - -let binding; -try { - binding = require(name); -} catch (err) { - handleError(err); - try { - binding = require('./build/Release/watcher.node'); - } catch (err) { - handleError(err); - try { - binding = require('./build/Debug/watcher.node'); - } catch (err) { - handleError(err); - throw new Error(`No prebuild or local build of @parcel/watcher found. Tried ${name}. Please ensure it is installed (don't use --no-optional when installing with npm). Otherwise it is possible we don't support your platform yet. If this is the case, please report an issue to https://github.com/parcel-bundler/watcher.`); - } - } -} - -function handleError(err) { - if (err?.code !== 'MODULE_NOT_FOUND') { - throw err; - } -} - -const wrapper = createWrapper(binding); -exports.writeSnapshot = wrapper.writeSnapshot; -exports.getEventsSince = wrapper.getEventsSince; -exports.subscribe = wrapper.subscribe; -exports.unsubscribe = wrapper.unsubscribe; diff --git a/node_modules/@parcel/watcher/index.js.flow b/node_modules/@parcel/watcher/index.js.flow deleted file mode 100644 index d75da93..0000000 --- a/node_modules/@parcel/watcher/index.js.flow +++ /dev/null @@ -1,48 +0,0 @@ -// @flow -declare type FilePath = string; -declare type GlobPattern = string; - -export type BackendType = - | 'fs-events' - | 'watchman' - | 'inotify' - | 'windows' - | 'brute-force'; -export type EventType = 'create' | 'update' | 'delete'; -export interface Options { - ignore?: Array, - backend?: BackendType -} -export type SubscribeCallback = ( - err: ?Error, - events: Array -) => mixed; -export interface AsyncSubscription { - unsubscribe(): Promise -} -export interface Event { - path: FilePath, - type: EventType -} -declare module.exports: { - getEventsSince( - dir: FilePath, - snapshot: FilePath, - opts?: Options - ): Promise>, - subscribe( - dir: FilePath, - fn: SubscribeCallback, - opts?: Options - ): Promise, - unsubscribe( - dir: FilePath, - fn: SubscribeCallback, - opts?: Options - ): Promise, - writeSnapshot( - dir: FilePath, - snapshot: FilePath, - opts?: Options - ): Promise -} \ No newline at end of file diff --git a/node_modules/@parcel/watcher/package.json b/node_modules/@parcel/watcher/package.json deleted file mode 100644 index dc41500..0000000 --- a/node_modules/@parcel/watcher/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "name": "@parcel/watcher", - "version": "2.5.1", - "main": "index.js", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/parcel-bundler/watcher.git" - }, - "description": "A native C++ Node module for querying and subscribing to filesystem events. Used by Parcel 2.", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "files": [ - "index.js", - "index.js.flow", - "index.d.ts", - "wrapper.js", - "package.json", - "README.md", - "LICENSE", - "src", - "scripts/build-from-source.js", - "binding.gyp" - ], - "scripts": { - "prebuild": "prebuildify --napi --strip --tag-libc", - "format": "prettier --write \"./**/*.{js,json,md}\"", - "build": "node-gyp rebuild", - "install": "node scripts/build-from-source.js", - "test": "mocha" - }, - "engines": { - "node": ">= 10.0.0" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "lint-staged": { - "*.{js,json,md}": [ - "prettier --write", - "git add" - ] - }, - "dependencies": { - "detect-libc": "^1.0.3", - "is-glob": "^4.0.3", - "micromatch": "^4.0.5", - "node-addon-api": "^7.0.0" - }, - "devDependencies": { - "esbuild": "^0.19.8", - "fs-extra": "^10.0.0", - "husky": "^7.0.2", - "lint-staged": "^11.1.2", - "mocha": "^9.1.1", - "napi-wasm": "^1.1.0", - "prebuildify": "^6.0.1", - "prettier": "^2.3.2" - }, - "binary": { - "napi_versions": [ - 3 - ] - }, - "optionalDependencies": { - "@parcel/watcher-darwin-x64": "2.5.1", - "@parcel/watcher-darwin-arm64": "2.5.1", - "@parcel/watcher-win32-x64": "2.5.1", - "@parcel/watcher-win32-arm64": "2.5.1", - "@parcel/watcher-win32-ia32": "2.5.1", - "@parcel/watcher-linux-x64-glibc": "2.5.1", - "@parcel/watcher-linux-x64-musl": "2.5.1", - "@parcel/watcher-linux-arm64-glibc": "2.5.1", - "@parcel/watcher-linux-arm64-musl": "2.5.1", - "@parcel/watcher-linux-arm-glibc": "2.5.1", - "@parcel/watcher-linux-arm-musl": "2.5.1", - "@parcel/watcher-android-arm64": "2.5.1", - "@parcel/watcher-freebsd-x64": "2.5.1" - } -} diff --git a/node_modules/@parcel/watcher/scripts/build-from-source.js b/node_modules/@parcel/watcher/scripts/build-from-source.js deleted file mode 100644 index 4602008..0000000 --- a/node_modules/@parcel/watcher/scripts/build-from-source.js +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env node - -const {spawn} = require('child_process'); - -if (process.env.npm_config_build_from_source === 'true') { - build(); -} - -function build() { - spawn('node-gyp', ['rebuild'], { stdio: 'inherit', shell: true }).on('exit', function (code) { - process.exit(code); - }); -} diff --git a/node_modules/@parcel/watcher/src/Backend.cc b/node_modules/@parcel/watcher/src/Backend.cc deleted file mode 100644 index fcf5544..0000000 --- a/node_modules/@parcel/watcher/src/Backend.cc +++ /dev/null @@ -1,182 +0,0 @@ -#ifdef FS_EVENTS -#include "macos/FSEventsBackend.hh" -#endif -#ifdef WATCHMAN -#include "watchman/WatchmanBackend.hh" -#endif -#ifdef WINDOWS -#include "windows/WindowsBackend.hh" -#endif -#ifdef INOTIFY -#include "linux/InotifyBackend.hh" -#endif -#ifdef KQUEUE -#include "kqueue/KqueueBackend.hh" -#endif -#ifdef __wasm32__ -#include "wasm/WasmBackend.hh" -#endif -#include "shared/BruteForceBackend.hh" - -#include "Backend.hh" -#include - -static std::unordered_map> sharedBackends; - -std::shared_ptr getBackend(std::string backend) { - // Use FSEvents on macOS by default. - // Use watchman by default if available on other platforms. - // Fall back to brute force. - #ifdef FS_EVENTS - if (backend == "fs-events" || backend == "default") { - return std::make_shared(); - } - #endif - #ifdef WATCHMAN - if ((backend == "watchman" || backend == "default") && WatchmanBackend::checkAvailable()) { - return std::make_shared(); - } - #endif - #ifdef WINDOWS - if (backend == "windows" || backend == "default") { - return std::make_shared(); - } - #endif - #ifdef INOTIFY - if (backend == "inotify" || backend == "default") { - return std::make_shared(); - } - #endif - #ifdef KQUEUE - if (backend == "kqueue" || backend == "default") { - return std::make_shared(); - } - #endif - #ifdef __wasm32__ - if (backend == "wasm" || backend == "default") { - return std::make_shared(); - } - #endif - if (backend == "brute-force" || backend == "default") { - return std::make_shared(); - } - - return nullptr; -} - -std::shared_ptr Backend::getShared(std::string backend) { - auto found = sharedBackends.find(backend); - if (found != sharedBackends.end()) { - return found->second; - } - - auto result = getBackend(backend); - if (!result) { - return getShared("default"); - } - - result->run(); - sharedBackends.emplace(backend, result); - return result; -} - -void removeShared(Backend *backend) { - for (auto it = sharedBackends.begin(); it != sharedBackends.end(); it++) { - if (it->second.get() == backend) { - sharedBackends.erase(it); - break; - } - } - - // Free up memory. - if (sharedBackends.size() == 0) { - sharedBackends.rehash(0); - } -} - -void Backend::run() { - #ifndef __wasm32__ - mThread = std::thread([this] () { - try { - start(); - } catch (std::exception &err) { - handleError(err); - } - }); - - if (mThread.joinable()) { - mStartedSignal.wait(); - } - #else - try { - start(); - } catch (std::exception &err) { - handleError(err); - } - #endif -} - -void Backend::notifyStarted() { - mStartedSignal.notify(); -} - -void Backend::start() { - notifyStarted(); -} - -Backend::~Backend() { - #ifndef __wasm32__ - // Wait for thread to stop - if (mThread.joinable()) { - // If the backend is being destroyed from the thread itself, detach, otherwise join. - if (mThread.get_id() == std::this_thread::get_id()) { - mThread.detach(); - } else { - mThread.join(); - } - } - #endif -} - -void Backend::watch(WatcherRef watcher) { - std::unique_lock lock(mMutex); - auto res = mSubscriptions.find(watcher); - if (res == mSubscriptions.end()) { - try { - this->subscribe(watcher); - mSubscriptions.insert(watcher); - } catch (std::exception &err) { - unref(); - throw; - } - } -} - -void Backend::unwatch(WatcherRef watcher) { - std::unique_lock lock(mMutex); - size_t deleted = mSubscriptions.erase(watcher); - if (deleted > 0) { - this->unsubscribe(watcher); - unref(); - } -} - -void Backend::unref() { - if (mSubscriptions.size() == 0) { - removeShared(this); - } -} - -void Backend::handleWatcherError(WatcherError &err) { - unwatch(err.mWatcher); - err.mWatcher->notifyError(err); -} - -void Backend::handleError(std::exception &err) { - std::unique_lock lock(mMutex); - for (auto it = mSubscriptions.begin(); it != mSubscriptions.end(); it++) { - (*it)->notifyError(err); - } - - removeShared(this); -} diff --git a/node_modules/@parcel/watcher/src/Backend.hh b/node_modules/@parcel/watcher/src/Backend.hh deleted file mode 100644 index d673bd1..0000000 --- a/node_modules/@parcel/watcher/src/Backend.hh +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef BACKEND_H -#define BACKEND_H - -#include "Event.hh" -#include "Watcher.hh" -#include "Signal.hh" -#include - -class Backend { -public: - virtual ~Backend(); - void run(); - void notifyStarted(); - - virtual void start(); - virtual void writeSnapshot(WatcherRef watcher, std::string *snapshotPath) = 0; - virtual void getEventsSince(WatcherRef watcher, std::string *snapshotPath) = 0; - virtual void subscribe(WatcherRef watcher) = 0; - virtual void unsubscribe(WatcherRef watcher) = 0; - - static std::shared_ptr getShared(std::string backend); - - void watch(WatcherRef watcher); - void unwatch(WatcherRef watcher); - void unref(); - void handleWatcherError(WatcherError &err); - - std::mutex mMutex; - std::thread mThread; -private: - std::unordered_set mSubscriptions; - Signal mStartedSignal; - - void handleError(std::exception &err); -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/Debounce.cc b/node_modules/@parcel/watcher/src/Debounce.cc deleted file mode 100644 index be07e78..0000000 --- a/node_modules/@parcel/watcher/src/Debounce.cc +++ /dev/null @@ -1,113 +0,0 @@ -#include "Debounce.hh" - -#ifdef __wasm32__ -extern "C" void on_timeout(void *ctx) { - Debounce *debounce = (Debounce *)ctx; - debounce->notify(); -} -#endif - -std::shared_ptr Debounce::getShared() { - static std::weak_ptr sharedInstance; - std::shared_ptr shared = sharedInstance.lock(); - if (!shared) { - shared = std::make_shared(); - sharedInstance = shared; - } - - return shared; -} - -Debounce::Debounce() { - mRunning = true; - #ifndef __wasm32__ - mThread = std::thread([this] () { - loop(); - }); - #endif -} - -Debounce::~Debounce() { - mRunning = false; - #ifndef __wasm32__ - mWaitSignal.notify(); - mThread.join(); - #endif -} - -void Debounce::add(void *key, std::function cb) { - std::unique_lock lock(mMutex); - mCallbacks.emplace(key, cb); -} - -void Debounce::remove(void *key) { - std::unique_lock lock(mMutex); - mCallbacks.erase(key); -} - -void Debounce::trigger() { - std::unique_lock lock(mMutex); - #ifdef __wasm32__ - notifyIfReady(); - #else - mWaitSignal.notify(); - #endif -} - -#ifndef __wasm32__ -void Debounce::loop() { - while (mRunning) { - mWaitSignal.wait(); - if (!mRunning) { - break; - } - - notifyIfReady(); - } -} -#endif - -void Debounce::notifyIfReady() { - if (!mRunning) { - return; - } - - // If we haven't seen an event in more than the maximum wait time, notify callbacks immediately - // to ensure that we don't wait forever. Otherwise, wait for the minimum wait time and batch - // subsequent fast changes. This also means the first file change in a batch is notified immediately, - // separately from the rest of the batch. This seems like an acceptable tradeoff if the common case - // is that only a single file was updated at a time. - auto time = std::chrono::steady_clock::now(); - if ((time - mLastTime) > std::chrono::milliseconds(MAX_WAIT_TIME)) { - mLastTime = time; - notify(); - } else { - wait(); - } -} - -void Debounce::wait() { - #ifdef __wasm32__ - clear_timeout(mTimeout); - mTimeout = set_timeout(MIN_WAIT_TIME, this); - #else - auto status = mWaitSignal.waitFor(std::chrono::milliseconds(MIN_WAIT_TIME)); - if (mRunning && (status == std::cv_status::timeout)) { - notify(); - } - #endif -} - -void Debounce::notify() { - std::unique_lock lock(mMutex); - - mLastTime = std::chrono::steady_clock::now(); - for (auto it = mCallbacks.begin(); it != mCallbacks.end(); it++) { - auto cb = it->second; - cb(); - } - - #ifndef __wasm32__ - mWaitSignal.reset(); - #endif -} diff --git a/node_modules/@parcel/watcher/src/Debounce.hh b/node_modules/@parcel/watcher/src/Debounce.hh deleted file mode 100644 index a17fdef..0000000 --- a/node_modules/@parcel/watcher/src/Debounce.hh +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef DEBOUNCE_H -#define DEBOUNCE_H - -#include -#include -#include -#include "Signal.hh" - -#define MIN_WAIT_TIME 50 -#define MAX_WAIT_TIME 500 - -#ifdef __wasm32__ -extern "C" { - int set_timeout(int ms, void *ctx); - void clear_timeout(int timeout); - void on_timeout(void *ctx); -}; -#endif - -class Debounce { -public: - static std::shared_ptr getShared(); - - Debounce(); - ~Debounce(); - - void add(void *key, std::function cb); - void remove(void *key); - void trigger(); - void notify(); - -private: - bool mRunning; - std::mutex mMutex; - #ifdef __wasm32__ - int mTimeout; - #else - Signal mWaitSignal; - std::thread mThread; - #endif - std::unordered_map> mCallbacks; - std::chrono::time_point mLastTime; - - void loop(); - void notifyIfReady(); - void wait(); -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/DirTree.cc b/node_modules/@parcel/watcher/src/DirTree.cc deleted file mode 100644 index ac17c15..0000000 --- a/node_modules/@parcel/watcher/src/DirTree.cc +++ /dev/null @@ -1,152 +0,0 @@ -#include "DirTree.hh" -#include - -static std::mutex mDirCacheMutex; -static std::unordered_map> dirTreeCache; - -struct DirTreeDeleter { - void operator()(DirTree *tree) { - std::lock_guard lock(mDirCacheMutex); - dirTreeCache.erase(tree->root); - delete tree; - - // Free up memory. - if (dirTreeCache.size() == 0) { - dirTreeCache.rehash(0); - } - } -}; - -std::shared_ptr DirTree::getCached(std::string root) { - std::lock_guard lock(mDirCacheMutex); - - auto found = dirTreeCache.find(root); - std::shared_ptr tree; - - // Use cached tree, or create an empty one. - if (found != dirTreeCache.end()) { - tree = found->second.lock(); - } else { - tree = std::shared_ptr(new DirTree(root), DirTreeDeleter()); - dirTreeCache.emplace(root, tree); - } - - return tree; -} - -DirTree::DirTree(std::string root, FILE *f) : root(root), isComplete(true) { - size_t size; - if (fscanf(f, "%zu", &size)) { - for (size_t i = 0; i < size; i++) { - DirEntry entry(f); - entries.emplace(entry.path, entry); - } - } -} - -// Internal find method that has no lock -DirEntry *DirTree::_find(std::string path) { - auto found = entries.find(path); - if (found == entries.end()) { - return NULL; - } - - return &found->second; -} - -DirEntry *DirTree::add(std::string path, uint64_t mtime, bool isDir) { - std::lock_guard lock(mMutex); - - DirEntry entry(path, mtime, isDir); - auto it = entries.emplace(entry.path, entry); - return &it.first->second; -} - -DirEntry *DirTree::find(std::string path) { - std::lock_guard lock(mMutex); - return _find(path); -} - -DirEntry *DirTree::update(std::string path, uint64_t mtime) { - std::lock_guard lock(mMutex); - - DirEntry *found = _find(path); - if (found) { - found->mtime = mtime; - } - - return found; -} - -void DirTree::remove(std::string path) { - std::lock_guard lock(mMutex); - - DirEntry *found = _find(path); - - // Remove all sub-entries if this is a directory - if (found && found->isDir) { - std::string pathStart = path + DIR_SEP; - for (auto it = entries.begin(); it != entries.end();) { - if (it->first.rfind(pathStart, 0) == 0) { - it = entries.erase(it); - } else { - it++; - } - } - } - - entries.erase(path); -} - -void DirTree::write(FILE *f) { - std::lock_guard lock(mMutex); - - fprintf(f, "%zu\n", entries.size()); - for (auto it = entries.begin(); it != entries.end(); it++) { - it->second.write(f); - } -} - -void DirTree::getChanges(DirTree *snapshot, EventList &events) { - std::lock_guard lock(mMutex); - std::lock_guard snapshotLock(snapshot->mMutex); - - for (auto it = entries.begin(); it != entries.end(); it++) { - auto found = snapshot->entries.find(it->first); - if (found == snapshot->entries.end()) { - events.create(it->second.path); - } else if (found->second.mtime != it->second.mtime && !found->second.isDir && !it->second.isDir) { - events.update(it->second.path); - } - } - - for (auto it = snapshot->entries.begin(); it != snapshot->entries.end(); it++) { - size_t count = entries.count(it->first); - if (count == 0) { - events.remove(it->second.path); - } - } -} - -DirEntry::DirEntry(std::string p, uint64_t t, bool d) { - path = p; - mtime = t; - isDir = d; - state = NULL; -} - -DirEntry::DirEntry(FILE *f) { - size_t size; - if (fscanf(f, "%zu", &size)) { - path.resize(size); - if (fread(&path[0], sizeof(char), size, f)) { - int d = 0; - fscanf(f, "%" PRIu64 " %d\n", &mtime, &d); - isDir = d == 1; - } - } -} - -void DirEntry::write(FILE *f) const { - fprintf(f, "%zu%s%" PRIu64 " %d\n", path.size(), path.c_str(), mtime, isDir); -} diff --git a/node_modules/@parcel/watcher/src/DirTree.hh b/node_modules/@parcel/watcher/src/DirTree.hh deleted file mode 100644 index 328f469..0000000 --- a/node_modules/@parcel/watcher/src/DirTree.hh +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef DIR_TREE_H -#define DIR_TREE_H - -#include -#include -#include -#include "Event.hh" - -#ifdef _WIN32 -#define DIR_SEP "\\" -#else -#define DIR_SEP "/" -#endif - -struct DirEntry { - std::string path; - uint64_t mtime; - bool isDir; - mutable void *state; - - DirEntry(std::string p, uint64_t t, bool d); - DirEntry(FILE *f); - void write(FILE *f) const; - bool operator==(const DirEntry &other) const { - return path == other.path; - } -}; - -class DirTree { -public: - static std::shared_ptr getCached(std::string root); - DirTree(std::string root) : root(root), isComplete(false) {} - DirTree(std::string root, FILE *f); - DirEntry *add(std::string path, uint64_t mtime, bool isDir); - DirEntry *find(std::string path); - DirEntry *update(std::string path, uint64_t mtime); - void remove(std::string path); - void write(FILE *f); - void getChanges(DirTree *snapshot, EventList &events); - - std::mutex mMutex; - std::string root; - bool isComplete; - std::unordered_map entries; - -private: - DirEntry *_find(std::string path); -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/Event.hh b/node_modules/@parcel/watcher/src/Event.hh deleted file mode 100644 index 8d09712..0000000 --- a/node_modules/@parcel/watcher/src/Event.hh +++ /dev/null @@ -1,109 +0,0 @@ -#ifndef EVENT_H -#define EVENT_H - -#include -#include -#include "wasm/include.h" -#include -#include -#include -#include - -using namespace Napi; - -struct Event { - std::string path; - bool isCreated; - bool isDeleted; - Event(std::string path) : path(path), isCreated(false), isDeleted(false) {} - - Value toJS(const Env& env) { - EscapableHandleScope scope(env); - Object res = Object::New(env); - std::string type = isCreated ? "create" : isDeleted ? "delete" : "update"; - res.Set(String::New(env, "path"), String::New(env, path.c_str())); - res.Set(String::New(env, "type"), String::New(env, type.c_str())); - return scope.Escape(res); - } -}; - -class EventList { -public: - void create(std::string path) { - std::lock_guard l(mMutex); - Event *event = internalUpdate(path); - if (event->isDeleted) { - // Assume update event when rapidly removed and created - // https://github.com/parcel-bundler/watcher/issues/72 - event->isDeleted = false; - } else { - event->isCreated = true; - } - } - - Event *update(std::string path) { - std::lock_guard l(mMutex); - return internalUpdate(path); - } - - void remove(std::string path) { - std::lock_guard l(mMutex); - Event *event = internalUpdate(path); - event->isDeleted = true; - } - - size_t size() { - std::lock_guard l(mMutex); - return mEvents.size(); - } - - std::vector getEvents() { - std::lock_guard l(mMutex); - std::vector eventsCloneVector; - for(auto it = mEvents.begin(); it != mEvents.end(); ++it) { - if (!(it->second.isCreated && it->second.isDeleted)) { - eventsCloneVector.push_back(it->second); - } - } - return eventsCloneVector; - } - - void clear() { - std::lock_guard l(mMutex); - mEvents.clear(); - mError.reset(); - } - - void error(std::string err) { - std::lock_guard l(mMutex); - if (!mError.has_value()) { - mError.emplace(err); - } - } - - bool hasError() { - std::lock_guard l(mMutex); - return mError.has_value(); - } - - std::string getError() { - std::lock_guard l(mMutex); - return mError.value_or(""); - } - -private: - mutable std::mutex mMutex; - std::map mEvents; - std::optional mError; - Event *internalUpdate(std::string path) { - auto found = mEvents.find(path); - if (found == mEvents.end()) { - auto it = mEvents.emplace(path, Event(path)); - return &it.first->second; - } - - return &found->second; - } -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/Glob.cc b/node_modules/@parcel/watcher/src/Glob.cc deleted file mode 100644 index a4a1722..0000000 --- a/node_modules/@parcel/watcher/src/Glob.cc +++ /dev/null @@ -1,22 +0,0 @@ -#include "Glob.hh" - -#ifdef __wasm32__ -extern "C" bool wasm_regex_match(const char *s, const char *regex); -#endif - -Glob::Glob(std::string raw) { - mRaw = raw; - mHash = std::hash()(raw); - #ifndef __wasm32__ - mRegex = std::regex(raw); - #endif -} - -bool Glob::isIgnored(std::string relative_path) const { - // Use native JS regex engine for wasm to reduce binary size. - #ifdef __wasm32__ - return wasm_regex_match(relative_path.c_str(), mRaw.c_str()); - #else - return std::regex_match(relative_path, mRegex); - #endif -} diff --git a/node_modules/@parcel/watcher/src/Glob.hh b/node_modules/@parcel/watcher/src/Glob.hh deleted file mode 100644 index 6e049e6..0000000 --- a/node_modules/@parcel/watcher/src/Glob.hh +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef GLOB_H -#define GLOB_H - -#include -#include - -struct Glob { - std::size_t mHash; - std::string mRaw; - #ifndef __wasm32__ - std::regex mRegex; - #endif - - Glob(std::string raw); - - bool operator==(const Glob &other) const { - return mHash == other.mHash; - } - - bool isIgnored(std::string relative_path) const; -}; - -namespace std -{ - template <> - struct hash - { - size_t operator()(const Glob& g) const { - return g.mHash; - } - }; -} - -#endif diff --git a/node_modules/@parcel/watcher/src/PromiseRunner.hh b/node_modules/@parcel/watcher/src/PromiseRunner.hh deleted file mode 100644 index 4ca3bb6..0000000 --- a/node_modules/@parcel/watcher/src/PromiseRunner.hh +++ /dev/null @@ -1,101 +0,0 @@ -#ifndef PROMISE_RUNNER_H -#define PROMISE_RUNNER_H - -#include -#include "wasm/include.h" -#include - -using namespace Napi; - -class PromiseRunner { -public: - const Env env; - Promise::Deferred deferred; - - PromiseRunner(Env env) : env(env), deferred(Promise::Deferred::New(env)) { - napi_status status = napi_create_async_work(env, nullptr, env.Undefined(), - onExecute, onWorkComplete, this, &work); - if (status != napi_ok) { - work = nullptr; - const napi_extended_error_info *error_info = 0; - napi_get_last_error_info(env, &error_info); - if (error_info->error_message) { - Error::New(env, error_info->error_message).ThrowAsJavaScriptException(); - } else { - Error::New(env).ThrowAsJavaScriptException(); - } - } - } - - virtual ~PromiseRunner() {} - - Value queue() { - if (work) { - napi_status status = napi_queue_async_work(env, work); - if (status != napi_ok) { - onError(Error::New(env)); - } - } - - return deferred.Promise(); - } - -private: - napi_async_work work; - std::string error; - - static void onExecute(napi_env env, void *this_pointer) { - PromiseRunner* self = (PromiseRunner*) this_pointer; - try { - self->execute(); - } catch (std::exception &err) { - self->error = err.what(); - } - } - - static void onWorkComplete(napi_env env, napi_status status, void *this_pointer) { - PromiseRunner* self = (PromiseRunner*) this_pointer; - if (status != napi_cancelled) { - HandleScope scope(self->env); - if (status == napi_ok) { - status = napi_delete_async_work(self->env, self->work); - if (status == napi_ok) { - if (self->error.size() == 0) { - self->onOK(); - } else { - self->onError(Error::New(self->env, self->error)); - } - delete self; - return; - } - } - } - - // fallthrough for error handling - const napi_extended_error_info *error_info = 0; - napi_get_last_error_info(env, &error_info); - if (error_info->error_message){ - self->onError(Error::New(env, error_info->error_message)); - } else { - self->onError(Error::New(env)); - } - delete self; - } - - virtual void execute() {} - virtual Value getResult() { - return env.Null(); - } - - void onOK() { - HandleScope scope(env); - Value result = getResult(); - deferred.Resolve(result); - } - - void onError(const Error &e) { - deferred.Reject(e.Value()); - } -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/Signal.hh b/node_modules/@parcel/watcher/src/Signal.hh deleted file mode 100644 index e577319..0000000 --- a/node_modules/@parcel/watcher/src/Signal.hh +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef SIGNAL_H -#define SIGNAL_H - -#include -#include - -class Signal { -public: - Signal() : mFlag(false), mWaiting(false) {} - void wait() { - std::unique_lock lock(mMutex); - while (!mFlag) { - mWaiting = true; - mCond.wait(lock); - } - } - - std::cv_status waitFor(std::chrono::milliseconds ms) { - std::unique_lock lock(mMutex); - return mCond.wait_for(lock, ms); - } - - void notify() { - std::unique_lock lock(mMutex); - mFlag = true; - mCond.notify_all(); - } - - void reset() { - std::unique_lock lock(mMutex); - mFlag = false; - mWaiting = false; - } - - bool isWaiting() { - return mWaiting; - } - -private: - bool mFlag; - bool mWaiting; - std::mutex mMutex; - std::condition_variable mCond; -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/Watcher.cc b/node_modules/@parcel/watcher/src/Watcher.cc deleted file mode 100644 index e9d7676..0000000 --- a/node_modules/@parcel/watcher/src/Watcher.cc +++ /dev/null @@ -1,237 +0,0 @@ -#include "Watcher.hh" -#include - -using namespace Napi; - -struct WatcherHash { - std::size_t operator() (WatcherRef const &k) const { - return std::hash()(k->mDir); - } -}; - -struct WatcherCompare { - size_t operator() (WatcherRef const &a, WatcherRef const &b) const { - return *a == *b; - } -}; - -static std::unordered_set sharedWatchers; - -WatcherRef Watcher::getShared(std::string dir, std::unordered_set ignorePaths, std::unordered_set ignoreGlobs) { - WatcherRef watcher = std::make_shared(dir, ignorePaths, ignoreGlobs); - auto found = sharedWatchers.find(watcher); - if (found != sharedWatchers.end()) { - return *found; - } - - sharedWatchers.insert(watcher); - return watcher; -} - -void removeShared(Watcher *watcher) { - for (auto it = sharedWatchers.begin(); it != sharedWatchers.end(); it++) { - if (it->get() == watcher) { - sharedWatchers.erase(it); - break; - } - } - - // Free up memory. - if (sharedWatchers.size() == 0) { - sharedWatchers.rehash(0); - } -} - -Watcher::Watcher(std::string dir, std::unordered_set ignorePaths, std::unordered_set ignoreGlobs) - : mDir(dir), - mIgnorePaths(ignorePaths), - mIgnoreGlobs(ignoreGlobs) { - mDebounce = Debounce::getShared(); - mDebounce->add(this, [this] () { - triggerCallbacks(); - }); - } - -Watcher::~Watcher() { - mDebounce->remove(this); -} - -void Watcher::wait() { - std::unique_lock lk(mMutex); - mCond.wait(lk); -} - -void Watcher::notify() { - std::unique_lock lk(mMutex); - mCond.notify_all(); - - if (mCallbacks.size() > 0 && mEvents.size() > 0) { - // We must release our lock before calling into the debouncer - // to avoid a deadlock: the debouncer thread itself will require - // our lock from its thread when calling into `triggerCallbacks` - // while holding its own debouncer lock. - lk.unlock(); - mDebounce->trigger(); - } -} - -struct CallbackData { - std::string error; - std::vector events; - CallbackData(std::string error, std::vector events) : error(error), events(events) {} -}; - -Value callbackEventsToJS(const Env &env, std::vector &events) { - EscapableHandleScope scope(env); - Array arr = Array::New(env, events.size()); - size_t currentEventIndex = 0; - for (auto eventIterator = events.begin(); eventIterator != events.end(); eventIterator++) { - arr.Set(currentEventIndex++, eventIterator->toJS(env)); - } - return scope.Escape(arr); -} - -void callJSFunction(Napi::Env env, Function jsCallback, CallbackData *data) { - HandleScope scope(env); - auto err = data->error.size() > 0 ? Error::New(env, data->error).Value() : env.Null(); - auto events = callbackEventsToJS(env, data->events); - jsCallback.Call({err, events}); - delete data; - - // Throw errors from the callback as fatal exceptions - // If we don't handle these node segfaults... - if (env.IsExceptionPending()) { - Napi::Error err = env.GetAndClearPendingException(); - napi_fatal_exception(env, err.Value()); - } -} - -void Watcher::notifyError(std::exception &err) { - std::unique_lock lk(mMutex); - for (auto it = mCallbacks.begin(); it != mCallbacks.end(); it++) { - CallbackData *data = new CallbackData(err.what(), {}); - it->tsfn.BlockingCall(data, callJSFunction); - } - - clearCallbacks(); -} - -// This function is called from the debounce thread. -void Watcher::triggerCallbacks() { - std::unique_lock lk(mMutex); - if (mCallbacks.size() > 0 && (mEvents.size() > 0 || mEvents.hasError())) { - auto error = mEvents.getError(); - auto events = mEvents.getEvents(); - mEvents.clear(); - - for (auto it = mCallbacks.begin(); it != mCallbacks.end(); it++) { - it->tsfn.BlockingCall(new CallbackData(error, events), callJSFunction); - } - } -} - -// This should be called from the JavaScript thread. -bool Watcher::watch(Function callback) { - std::unique_lock lk(mMutex); - - auto it = findCallback(callback); - if (it != mCallbacks.end()) { - return false; - } - - auto tsfn = ThreadSafeFunction::New( - callback.Env(), - callback, - "Watcher callback", - 0, // Unlimited queue - 1 // Initial thread count - ); - - mCallbacks.push_back(Callback { - tsfn, - Napi::Persistent(callback), - std::this_thread::get_id() - }); - - return true; -} - -// This should be called from the JavaScript thread. -std::vector::iterator Watcher::findCallback(Function callback) { - for (auto it = mCallbacks.begin(); it != mCallbacks.end(); it++) { - // Only consider callbacks created by the same thread, or V8 will panic. - if (it->threadId == std::this_thread::get_id() && it->ref.Value() == callback) { - return it; - } - } - - return mCallbacks.end(); -} - -// This should be called from the JavaScript thread. -bool Watcher::unwatch(Function callback) { - std::unique_lock lk(mMutex); - - bool removed = false; - auto it = findCallback(callback); - if (it != mCallbacks.end()) { - it->tsfn.Release(); - it->ref.Unref(); - mCallbacks.erase(it); - removed = true; - } - - if (removed && mCallbacks.size() == 0) { - unref(); - return true; - } - - return false; -} - -void Watcher::unref() { - if (mCallbacks.size() == 0) { - removeShared(this); - } -} - -void Watcher::destroy() { - std::unique_lock lk(mMutex); - clearCallbacks(); -} - -// Private because it doesn't lock. -void Watcher::clearCallbacks() { - for (auto it = mCallbacks.begin(); it != mCallbacks.end(); it++) { - it->tsfn.Release(); - it->ref.Unref(); - } - - mCallbacks.clear(); - unref(); -} - -bool Watcher::isIgnored(std::string path) { - for (auto it = mIgnorePaths.begin(); it != mIgnorePaths.end(); it++) { - auto dir = *it + DIR_SEP; - if (*it == path || path.compare(0, dir.size(), dir) == 0) { - return true; - } - } - - auto basePath = mDir + DIR_SEP; - - if (path.rfind(basePath, 0) != 0) { - return false; - } - - auto relativePath = path.substr(basePath.size()); - - for (auto it = mIgnoreGlobs.begin(); it != mIgnoreGlobs.end(); it++) { - if (it->isIgnored(relativePath)) { - return true; - } - } - - return false; -} diff --git a/node_modules/@parcel/watcher/src/Watcher.hh b/node_modules/@parcel/watcher/src/Watcher.hh deleted file mode 100644 index f89e9f5..0000000 --- a/node_modules/@parcel/watcher/src/Watcher.hh +++ /dev/null @@ -1,73 +0,0 @@ -#ifndef WATCHER_H -#define WATCHER_H - -#include -#include -#include -#include -#include "Glob.hh" -#include "Event.hh" -#include "Debounce.hh" -#include "DirTree.hh" -#include "Signal.hh" - -using namespace Napi; - -struct Watcher; -using WatcherRef = std::shared_ptr; - -struct Callback { - Napi::ThreadSafeFunction tsfn; - Napi::FunctionReference ref; - std::thread::id threadId; -}; - -class WatcherState { -public: - virtual ~WatcherState() = default; -}; - -struct Watcher { - std::string mDir; - std::unordered_set mIgnorePaths; - std::unordered_set mIgnoreGlobs; - EventList mEvents; - std::shared_ptr state; - - Watcher(std::string dir, std::unordered_set ignorePaths, std::unordered_set ignoreGlobs); - ~Watcher(); - - bool operator==(const Watcher &other) const { - return mDir == other.mDir && mIgnorePaths == other.mIgnorePaths && mIgnoreGlobs == other.mIgnoreGlobs; - } - - void wait(); - void notify(); - void notifyError(std::exception &err); - bool watch(Function callback); - bool unwatch(Function callback); - void unref(); - bool isIgnored(std::string path); - void destroy(); - - static WatcherRef getShared(std::string dir, std::unordered_set ignorePaths, std::unordered_set ignoreGlobs); - -private: - std::mutex mMutex; - std::condition_variable mCond; - std::vector mCallbacks; - std::shared_ptr mDebounce; - - std::vector::iterator findCallback(Function callback); - void clearCallbacks(); - void triggerCallbacks(); -}; - -class WatcherError : public std::runtime_error { -public: - WatcherRef mWatcher; - WatcherError(std::string msg, WatcherRef watcher) : std::runtime_error(msg), mWatcher(watcher) {} - WatcherError(const char *msg, WatcherRef watcher) : std::runtime_error(msg), mWatcher(watcher) {} -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/binding.cc b/node_modules/@parcel/watcher/src/binding.cc deleted file mode 100644 index e1506bc..0000000 --- a/node_modules/@parcel/watcher/src/binding.cc +++ /dev/null @@ -1,268 +0,0 @@ -#include -#include -#include "wasm/include.h" -#include -#include "Glob.hh" -#include "Event.hh" -#include "Backend.hh" -#include "Watcher.hh" -#include "PromiseRunner.hh" - -using namespace Napi; - -std::unordered_set getIgnorePaths(Env env, Value opts) { - std::unordered_set result; - - if (opts.IsObject()) { - Value v = opts.As().Get(String::New(env, "ignorePaths")); - if (v.IsArray()) { - Array items = v.As(); - for (size_t i = 0; i < items.Length(); i++) { - Value item = items.Get(Number::New(env, i)); - if (item.IsString()) { - result.insert(std::string(item.As().Utf8Value().c_str())); - } - } - } - } - - return result; -} - -std::unordered_set getIgnoreGlobs(Env env, Value opts) { - std::unordered_set result; - - if (opts.IsObject()) { - Value v = opts.As().Get(String::New(env, "ignoreGlobs")); - if (v.IsArray()) { - Array items = v.As(); - for (size_t i = 0; i < items.Length(); i++) { - Value item = items.Get(Number::New(env, i)); - if (item.IsString()) { - auto key = item.As().Utf8Value(); - try { - result.emplace(key); - } catch (const std::regex_error& e) { - Error::New(env, e.what()).ThrowAsJavaScriptException(); - } - } - } - } - } - - return result; -} - -std::shared_ptr getBackend(Env env, Value opts) { - Value b = opts.As().Get(String::New(env, "backend")); - std::string backendName; - if (b.IsString()) { - backendName = std::string(b.As().Utf8Value().c_str()); - } - - return Backend::getShared(backendName); -} - -class WriteSnapshotRunner : public PromiseRunner { -public: - WriteSnapshotRunner(Env env, Value dir, Value snap, Value opts) - : PromiseRunner(env), - snapshotPath(std::string(snap.As().Utf8Value().c_str())) { - watcher = Watcher::getShared( - std::string(dir.As().Utf8Value().c_str()), - getIgnorePaths(env, opts), - getIgnoreGlobs(env, opts) - ); - - backend = getBackend(env, opts); - } - - ~WriteSnapshotRunner() { - watcher->unref(); - backend->unref(); - } -private: - std::shared_ptr backend; - WatcherRef watcher; - std::string snapshotPath; - - void execute() override { - backend->writeSnapshot(watcher, &snapshotPath); - } -}; - -class GetEventsSinceRunner : public PromiseRunner { -public: - GetEventsSinceRunner(Env env, Value dir, Value snap, Value opts) - : PromiseRunner(env), - snapshotPath(std::string(snap.As().Utf8Value().c_str())) { - watcher = std::make_shared( - std::string(dir.As().Utf8Value().c_str()), - getIgnorePaths(env, opts), - getIgnoreGlobs(env, opts) - ); - - backend = getBackend(env, opts); - } - - ~GetEventsSinceRunner() { - watcher->unref(); - backend->unref(); - } -private: - std::shared_ptr backend; - WatcherRef watcher; - std::string snapshotPath; - - void execute() override { - backend->getEventsSince(watcher, &snapshotPath); - if (watcher->mEvents.hasError()) { - throw std::runtime_error(watcher->mEvents.getError()); - } - } - - Value getResult() override { - std::vector events = watcher->mEvents.getEvents(); - Array eventsArray = Array::New(env, events.size()); - size_t i = 0; - for (auto it = events.begin(); it != events.end(); it++) { - eventsArray.Set(i++, it->toJS(env)); - } - return eventsArray; - } -}; - -template -Value queueSnapshotWork(const CallbackInfo& info) { - Env env = info.Env(); - if (info.Length() < 1 || !info[0].IsString()) { - TypeError::New(env, "Expected a string").ThrowAsJavaScriptException(); - return env.Null(); - } - - if (info.Length() < 2 || !info[1].IsString()) { - TypeError::New(env, "Expected a string").ThrowAsJavaScriptException(); - return env.Null(); - } - - if (info.Length() >= 3 && !info[2].IsObject()) { - TypeError::New(env, "Expected an object").ThrowAsJavaScriptException(); - return env.Null(); - } - - Runner *runner = new Runner(info.Env(), info[0], info[1], info[2]); - return runner->queue(); -} - -Value writeSnapshot(const CallbackInfo& info) { - return queueSnapshotWork(info); -} - -Value getEventsSince(const CallbackInfo& info) { - return queueSnapshotWork(info); -} - -class SubscribeRunner : public PromiseRunner { -public: - SubscribeRunner(Env env, Value dir, Value fn, Value opts) : PromiseRunner(env) { - watcher = Watcher::getShared( - std::string(dir.As().Utf8Value().c_str()), - getIgnorePaths(env, opts), - getIgnoreGlobs(env, opts) - ); - - backend = getBackend(env, opts); - watcher->watch(fn.As()); - } - -private: - WatcherRef watcher; - std::shared_ptr backend; - FunctionReference callback; - - void execute() override { - try { - backend->watch(watcher); - } catch (std::exception &err) { - watcher->destroy(); - throw; - } - } -}; - -class UnsubscribeRunner : public PromiseRunner { -public: - UnsubscribeRunner(Env env, Value dir, Value fn, Value opts) : PromiseRunner(env) { - watcher = Watcher::getShared( - std::string(dir.As().Utf8Value().c_str()), - getIgnorePaths(env, opts), - getIgnoreGlobs(env, opts) - ); - - backend = getBackend(env, opts); - shouldUnwatch = watcher->unwatch(fn.As()); - } - -private: - WatcherRef watcher; - std::shared_ptr backend; - bool shouldUnwatch; - - void execute() override { - if (shouldUnwatch) { - backend->unwatch(watcher); - } - } -}; - -template -Value queueSubscriptionWork(const CallbackInfo& info) { - Env env = info.Env(); - if (info.Length() < 1 || !info[0].IsString()) { - TypeError::New(env, "Expected a string").ThrowAsJavaScriptException(); - return env.Null(); - } - - if (info.Length() < 2 || !info[1].IsFunction()) { - TypeError::New(env, "Expected a function").ThrowAsJavaScriptException(); - return env.Null(); - } - - if (info.Length() >= 3 && !info[2].IsObject()) { - TypeError::New(env, "Expected an object").ThrowAsJavaScriptException(); - return env.Null(); - } - - Runner *runner = new Runner(info.Env(), info[0], info[1], info[2]); - return runner->queue(); -} - -Value subscribe(const CallbackInfo& info) { - return queueSubscriptionWork(info); -} - -Value unsubscribe(const CallbackInfo& info) { - return queueSubscriptionWork(info); -} - -Object Init(Env env, Object exports) { - exports.Set( - String::New(env, "writeSnapshot"), - Function::New(env, writeSnapshot) - ); - exports.Set( - String::New(env, "getEventsSince"), - Function::New(env, getEventsSince) - ); - exports.Set( - String::New(env, "subscribe"), - Function::New(env, subscribe) - ); - exports.Set( - String::New(env, "unsubscribe"), - Function::New(env, unsubscribe) - ); - return exports; -} - -NODE_API_MODULE(watcher, Init) diff --git a/node_modules/@parcel/watcher/src/kqueue/KqueueBackend.cc b/node_modules/@parcel/watcher/src/kqueue/KqueueBackend.cc deleted file mode 100644 index 2991c32..0000000 --- a/node_modules/@parcel/watcher/src/kqueue/KqueueBackend.cc +++ /dev/null @@ -1,306 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include "KqueueBackend.hh" - -#if __APPLE__ -#define st_mtim st_mtimespec -#endif - -#if !defined(O_EVTONLY) -#define O_EVTONLY O_RDONLY -#endif - -#define CONVERT_TIME(ts) ((uint64_t)ts.tv_sec * 1000000000 + ts.tv_nsec) - -void KqueueBackend::start() { - if ((mKqueue = kqueue()) < 0) { - throw std::runtime_error(std::string("Unable to open kqueue: ") + strerror(errno)); - } - - // Create a pipe that we will write to when we want to end the thread. - int err = pipe(mPipe); - if (err == -1) { - throw std::runtime_error(std::string("Unable to open pipe: ") + strerror(errno)); - } - - // Subscribe kqueue to this pipe. - struct kevent ev; - EV_SET( - &ev, - mPipe[0], - EVFILT_READ, - EV_ADD | EV_CLEAR, - 0, - 0, - 0 - ); - - if (kevent(mKqueue, &ev, 1, NULL, 0, 0)) { - close(mPipe[0]); - close(mPipe[1]); - throw std::runtime_error(std::string("Unable to watch pipe: ") + strerror(errno)); - } - - notifyStarted(); - - struct kevent events[128]; - - while (true) { - int event_count = kevent(mKqueue, NULL, 0, events, 128, 0); - if (event_count < 0 || events[0].flags == EV_ERROR) { - throw std::runtime_error(std::string("kevent error: ") + strerror(errno)); - } - - // Track all of the watchers that are touched so we can notify them at the end of the events. - std::unordered_set watchers; - - for (int i = 0; i < event_count; i++) { - int flags = events[i].fflags; - int fd = events[i].ident; - if (fd == mPipe[0]) { - // pipe was written to. break out of the loop. - goto done; - } - - auto it = mFdToEntry.find(fd); - if (it == mFdToEntry.end()) { - // If fd wasn't in our map, we may have already stopped watching it. Ignore the event. - continue; - } - - DirEntry *entry = it->second; - - if (flags & NOTE_WRITE && entry && entry->isDir) { - // If a write occurred on a directory, we have to diff the contents of that - // directory to determine what file was added/deleted. - compareDir(fd, entry->path, watchers); - } else { - std::vector subs = findSubscriptions(entry->path); - for (auto it = subs.begin(); it != subs.end(); it++) { - KqueueSubscription *sub = *it; - watchers.insert(sub->watcher); - if (flags & (NOTE_DELETE | NOTE_RENAME | NOTE_REVOKE)) { - sub->watcher->mEvents.remove(sub->path); - sub->tree->remove(sub->path); - mFdToEntry.erase((int)(size_t)entry->state); - mSubscriptions.erase(sub->path); - } else if (flags & (NOTE_WRITE | NOTE_ATTRIB | NOTE_EXTEND)) { - struct stat st; - lstat(sub->path.c_str(), &st); - if (entry->mtime != CONVERT_TIME(st.st_mtim)) { - entry->mtime = CONVERT_TIME(st.st_mtim); - sub->watcher->mEvents.update(sub->path); - } - } - } - } - } - - for (auto it = watchers.begin(); it != watchers.end(); it++) { - (*it)->notify(); - } - } - -done: - close(mPipe[0]); - close(mPipe[1]); - mEndedSignal.notify(); -} - -KqueueBackend::~KqueueBackend() { - write(mPipe[1], "X", 1); - mEndedSignal.wait(); -} - -void KqueueBackend::subscribe(WatcherRef watcher) { - // Build a full directory tree recursively, and watch each directory. - std::shared_ptr tree = getTree(watcher); - - for (auto it = tree->entries.begin(); it != tree->entries.end(); it++) { - bool success = watchDir(watcher, it->second.path, tree); - if (!success) { - throw WatcherError(std::string("error watching " + watcher->mDir + ": " + strerror(errno)), watcher); - } - } -} - -bool KqueueBackend::watchDir(WatcherRef watcher, std::string path, std::shared_ptr tree) { - if (watcher->isIgnored(path)) { - return false; - } - - DirEntry *entry = tree->find(path); - if (!entry) { - return false; - } - - KqueueSubscription sub = { - .watcher = watcher, - .path = path, - .tree = tree - }; - - if (!entry->state) { - int fd = open(path.c_str(), O_EVTONLY); - if (fd <= 0) { - return false; - } - - struct kevent event; - EV_SET( - &event, - fd, - EVFILT_VNODE, - EV_ADD | EV_CLEAR | EV_ENABLE, - NOTE_DELETE | NOTE_WRITE | NOTE_EXTEND | NOTE_ATTRIB | NOTE_RENAME | NOTE_REVOKE, - 0, - 0 - ); - - if (kevent(mKqueue, &event, 1, NULL, 0, 0)) { - close(fd); - return false; - } - - entry->state = (void *)(size_t)fd; - mFdToEntry.emplace(fd, entry); - } - - sub.fd = (int)(size_t)entry->state; - mSubscriptions.emplace(path, sub); - return true; -} - -std::vector KqueueBackend::findSubscriptions(std::string &path) { - // Find the subscriptions affected by this path. - // Copy pointers to them into a vector so that modifying mSubscriptions doesn't invalidate the iterator. - auto range = mSubscriptions.equal_range(path); - std::vector subs; - for (auto it = range.first; it != range.second; it++) { - subs.push_back(&it->second); - } - - return subs; -} - -bool KqueueBackend::compareDir(int fd, std::string &path, std::unordered_set &watchers) { - // macOS doesn't support fdclosedir, so we have to duplicate the file descriptor - // to ensure the closedir doesn't also stop watching. - #if __APPLE__ - fd = dup(fd); - #endif - - DIR *dir = fdopendir(fd); - if (dir == NULL) { - return false; - } - - // fdopendir doesn't rewind to the beginning. - rewinddir(dir); - - std::vector subs = findSubscriptions(path); - std::string dirStart = path + DIR_SEP; - - std::unordered_set> trees; - for (auto it = subs.begin(); it != subs.end(); it++) { - trees.emplace((*it)->tree); - } - - std::unordered_set entries; - struct dirent *entry; - while ((entry = readdir(dir))) { - if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) { - continue; - } - - std::string fullpath = dirStart + entry->d_name; - entries.emplace(fullpath); - - for (auto it = trees.begin(); it != trees.end(); it++) { - std::shared_ptr tree = *it; - if (!tree->find(fullpath)) { - struct stat st; - fstatat(fd, entry->d_name, &st, AT_SYMLINK_NOFOLLOW); - tree->add(fullpath, CONVERT_TIME(st.st_mtim), S_ISDIR(st.st_mode)); - - // Notify all watchers with the same tree. - for (auto i = subs.begin(); i != subs.end(); i++) { - KqueueSubscription *sub = *i; - if (sub->tree == tree) { - if (sub->watcher->isIgnored(fullpath)) { - continue; - } - - sub->watcher->mEvents.create(fullpath); - watchers.emplace(sub->watcher); - - bool success = watchDir(sub->watcher, fullpath, sub->tree); - if (!success) { - sub->tree->remove(fullpath); - return false; - } - } - } - } - } - } - - for (auto it = trees.begin(); it != trees.end(); it++) { - std::shared_ptr tree = *it; - for (auto entry = tree->entries.begin(); entry != tree->entries.end();) { - - if ( - entry->first.rfind(dirStart, 0) == 0 && - entry->first.find(DIR_SEP, dirStart.length()) == std::string::npos && - entries.count(entry->first) == 0 - ) { - // Notify all watchers with the same tree. - for (auto i = subs.begin(); i != subs.end(); i++) { - if ((*i)->tree == tree) { - KqueueSubscription *sub = *i; - if (!sub->watcher->isIgnored(entry->first)) { - sub->watcher->mEvents.remove(entry->first); - watchers.emplace(sub->watcher); - } - } - } - - mFdToEntry.erase((int)(size_t)entry->second.state); - mSubscriptions.erase(entry->first); - entry = tree->entries.erase(entry); - } else { - entry++; - } - } - } - - #if __APPLE__ - closedir(dir); - #else - fdclosedir(dir); - #endif - - return true; -} - -void KqueueBackend::unsubscribe(WatcherRef watcher) { - // Find any subscriptions pointing to this watcher, and remove them. - for (auto it = mSubscriptions.begin(); it != mSubscriptions.end();) { - if (it->second.watcher.get() == watcher.get()) { - if (mSubscriptions.count(it->first) == 1) { - // Closing the file descriptor automatically unwatches it in the kqueue. - close(it->second.fd); - mFdToEntry.erase(it->second.fd); - } - - it = mSubscriptions.erase(it); - } else { - it++; - } - } -} diff --git a/node_modules/@parcel/watcher/src/kqueue/KqueueBackend.hh b/node_modules/@parcel/watcher/src/kqueue/KqueueBackend.hh deleted file mode 100644 index 3c6a9cd..0000000 --- a/node_modules/@parcel/watcher/src/kqueue/KqueueBackend.hh +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef KQUEUE_H -#define KQUEUE_H - -#include -#include -#include "../shared/BruteForceBackend.hh" -#include "../DirTree.hh" -#include "../Signal.hh" - -struct KqueueSubscription { - WatcherRef watcher; - std::string path; - std::shared_ptr tree; - int fd; -}; - -class KqueueBackend : public BruteForceBackend { -public: - void start() override; - ~KqueueBackend(); - void subscribe(WatcherRef watcher) override; - void unsubscribe(WatcherRef watcher) override; -private: - int mKqueue; - int mPipe[2]; - std::unordered_multimap mSubscriptions; - std::unordered_map mFdToEntry; - Signal mEndedSignal; - - bool watchDir(WatcherRef watcher, std::string path, std::shared_ptr tree); - bool compareDir(int fd, std::string &dir, std::unordered_set &watchers); - std::vector findSubscriptions(std::string &path); -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/linux/InotifyBackend.cc b/node_modules/@parcel/watcher/src/linux/InotifyBackend.cc deleted file mode 100644 index ec92691..0000000 --- a/node_modules/@parcel/watcher/src/linux/InotifyBackend.cc +++ /dev/null @@ -1,232 +0,0 @@ -#include -#include -#include -#include -#include -#include "InotifyBackend.hh" - -#define INOTIFY_MASK \ - IN_ATTRIB | IN_CREATE | IN_DELETE | \ - IN_DELETE_SELF | IN_MODIFY | IN_MOVE_SELF | IN_MOVED_FROM | \ - IN_MOVED_TO | IN_DONT_FOLLOW | IN_ONLYDIR | IN_EXCL_UNLINK -#define BUFFER_SIZE 8192 -#define CONVERT_TIME(ts) ((uint64_t)ts.tv_sec * 1000000000 + ts.tv_nsec) - -void InotifyBackend::start() { - // Create a pipe that we will write to when we want to end the thread. - int err = pipe2(mPipe, O_CLOEXEC | O_NONBLOCK); - if (err == -1) { - throw std::runtime_error(std::string("Unable to open pipe: ") + strerror(errno)); - } - - // Init inotify file descriptor. - mInotify = inotify_init1(IN_NONBLOCK | IN_CLOEXEC); - if (mInotify == -1) { - throw std::runtime_error(std::string("Unable to initialize inotify: ") + strerror(errno)); - } - - pollfd pollfds[2]; - pollfds[0].fd = mPipe[0]; - pollfds[0].events = POLLIN; - pollfds[0].revents = 0; - pollfds[1].fd = mInotify; - pollfds[1].events = POLLIN; - pollfds[1].revents = 0; - - notifyStarted(); - - // Loop until we get an event from the pipe. - while (true) { - int result = poll(pollfds, 2, 500); - if (result < 0) { - throw std::runtime_error(std::string("Unable to poll: ") + strerror(errno)); - } - - if (pollfds[0].revents) { - break; - } - - if (pollfds[1].revents) { - handleEvents(); - } - } - - close(mPipe[0]); - close(mPipe[1]); - close(mInotify); - - mEndedSignal.notify(); -} - -InotifyBackend::~InotifyBackend() { - write(mPipe[1], "X", 1); - mEndedSignal.wait(); -} - -// This function is called by Backend::watch which takes a lock on mMutex -void InotifyBackend::subscribe(WatcherRef watcher) { - // Build a full directory tree recursively, and watch each directory. - std::shared_ptr tree = getTree(watcher); - - for (auto it = tree->entries.begin(); it != tree->entries.end(); it++) { - if (it->second.isDir) { - bool success = watchDir(watcher, it->second.path, tree); - if (!success) { - throw WatcherError(std::string("inotify_add_watch on '") + it->second.path + std::string("' failed: ") + strerror(errno), watcher); - } - } - } -} - -bool InotifyBackend::watchDir(WatcherRef watcher, std::string path, std::shared_ptr tree) { - int wd = inotify_add_watch(mInotify, path.c_str(), INOTIFY_MASK); - if (wd == -1) { - return false; - } - - std::shared_ptr sub = std::make_shared(); - sub->tree = tree; - sub->path = path; - sub->watcher = watcher; - mSubscriptions.emplace(wd, sub); - - return true; -} - -void InotifyBackend::handleEvents() { - char buf[BUFFER_SIZE] __attribute__ ((aligned(__alignof__(struct inotify_event))));; - struct inotify_event *event; - - // Track all of the watchers that are touched so we can notify them at the end of the events. - std::unordered_set watchers; - - while (true) { - int n = read(mInotify, &buf, BUFFER_SIZE); - if (n < 0) { - if (errno == EAGAIN || errno == EWOULDBLOCK) { - break; - } - - throw std::runtime_error(std::string("Error reading from inotify: ") + strerror(errno)); - } - - if (n == 0) { - break; - } - - for (char *ptr = buf; ptr < buf + n; ptr += sizeof(*event) + event->len) { - event = (struct inotify_event *)ptr; - - if ((event->mask & IN_Q_OVERFLOW) == IN_Q_OVERFLOW) { - // overflow - continue; - } - - handleEvent(event, watchers); - } - } - - for (auto it = watchers.begin(); it != watchers.end(); it++) { - (*it)->notify(); - } -} - -void InotifyBackend::handleEvent(struct inotify_event *event, std::unordered_set &watchers) { - std::unique_lock lock(mMutex); - - // Find the subscriptions for this watch descriptor - auto range = mSubscriptions.equal_range(event->wd); - std::unordered_set> set; - for (auto it = range.first; it != range.second; it++) { - set.insert(it->second); - } - - for (auto it = set.begin(); it != set.end(); it++) { - if (handleSubscription(event, *it)) { - watchers.insert((*it)->watcher); - } - } -} - -bool InotifyBackend::handleSubscription(struct inotify_event *event, std::shared_ptr sub) { - // Build full path and check if its in our ignore list. - std::shared_ptr watcher = sub->watcher; - std::string path = std::string(sub->path); - bool isDir = event->mask & IN_ISDIR; - - if (event->len > 0) { - path += "/" + std::string(event->name); - } - - if (watcher->isIgnored(path)) { - return false; - } - - // If this is a create, check if it's a directory and start watching if it is. - // In any case, keep the directory tree up to date. - if (event->mask & (IN_CREATE | IN_MOVED_TO)) { - watcher->mEvents.create(path); - - struct stat st; - // Use lstat to avoid resolving symbolic links that we cannot watch anyway - // https://github.com/parcel-bundler/watcher/issues/76 - lstat(path.c_str(), &st); - DirEntry *entry = sub->tree->add(path, CONVERT_TIME(st.st_mtim), S_ISDIR(st.st_mode)); - - if (entry->isDir) { - bool success = watchDir(watcher, path, sub->tree); - if (!success) { - sub->tree->remove(path); - return false; - } - } - } else if (event->mask & (IN_MODIFY | IN_ATTRIB)) { - watcher->mEvents.update(path); - - struct stat st; - stat(path.c_str(), &st); - sub->tree->update(path, CONVERT_TIME(st.st_mtim)); - } else if (event->mask & (IN_DELETE | IN_DELETE_SELF | IN_MOVED_FROM | IN_MOVE_SELF)) { - bool isSelfEvent = (event->mask & (IN_DELETE_SELF | IN_MOVE_SELF)); - // Ignore delete/move self events unless this is the recursive watch root - if (isSelfEvent && path != watcher->mDir) { - return false; - } - - // If the entry being deleted/moved is a directory, remove it from the list of subscriptions - // XXX: self events don't have the IN_ISDIR mask - if (isSelfEvent || isDir) { - for (auto it = mSubscriptions.begin(); it != mSubscriptions.end();) { - if (it->second->path == path) { - it = mSubscriptions.erase(it); - } else { - ++it; - } - } - } - - watcher->mEvents.remove(path); - sub->tree->remove(path); - } - - return true; -} - -// This function is called by Backend::unwatch which takes a lock on mMutex -void InotifyBackend::unsubscribe(WatcherRef watcher) { - // Find any subscriptions pointing to this watcher, and remove them. - for (auto it = mSubscriptions.begin(); it != mSubscriptions.end();) { - if (it->second->watcher.get() == watcher.get()) { - if (mSubscriptions.count(it->first) == 1) { - int err = inotify_rm_watch(mInotify, it->first); - if (err == -1) { - throw WatcherError(std::string("Unable to remove watcher: ") + strerror(errno), watcher); - } - } - - it = mSubscriptions.erase(it); - } else { - it++; - } - } -} diff --git a/node_modules/@parcel/watcher/src/linux/InotifyBackend.hh b/node_modules/@parcel/watcher/src/linux/InotifyBackend.hh deleted file mode 100644 index f34cd1f..0000000 --- a/node_modules/@parcel/watcher/src/linux/InotifyBackend.hh +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef INOTIFY_H -#define INOTIFY_H - -#include -#include -#include "../shared/BruteForceBackend.hh" -#include "../DirTree.hh" -#include "../Signal.hh" - -struct InotifySubscription { - std::shared_ptr tree; - std::string path; - WatcherRef watcher; -}; - -class InotifyBackend : public BruteForceBackend { -public: - void start() override; - ~InotifyBackend(); - void subscribe(WatcherRef watcher) override; - void unsubscribe(WatcherRef watcher) override; -private: - int mPipe[2]; - int mInotify; - std::unordered_multimap> mSubscriptions; - Signal mEndedSignal; - - bool watchDir(WatcherRef watcher, std::string path, std::shared_ptr tree); - void handleEvents(); - void handleEvent(struct inotify_event *event, std::unordered_set &watchers); - bool handleSubscription(struct inotify_event *event, std::shared_ptr sub); -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/macos/FSEventsBackend.cc b/node_modules/@parcel/watcher/src/macos/FSEventsBackend.cc deleted file mode 100644 index cfda962..0000000 --- a/node_modules/@parcel/watcher/src/macos/FSEventsBackend.cc +++ /dev/null @@ -1,338 +0,0 @@ -#include -#include -#include -#include -#include -#include "../Event.hh" -#include "../Backend.hh" -#include "./FSEventsBackend.hh" -#include "../Watcher.hh" - -#define CONVERT_TIME(ts) ((uint64_t)ts.tv_sec * 1000000000 + ts.tv_nsec) -#define IGNORED_FLAGS (kFSEventStreamEventFlagItemIsHardlink | kFSEventStreamEventFlagItemIsLastHardlink | kFSEventStreamEventFlagItemIsSymlink | kFSEventStreamEventFlagItemIsDir | kFSEventStreamEventFlagItemIsFile) - -void stopStream(FSEventStreamRef stream, CFRunLoopRef runLoop) { - FSEventStreamStop(stream); - FSEventStreamUnscheduleFromRunLoop(stream, runLoop, kCFRunLoopDefaultMode); - FSEventStreamInvalidate(stream); - FSEventStreamRelease(stream); -} - -// macOS has a case insensitive file system by default. In order to detect -// file renames that only affect case, we need to get the canonical path -// and compare it with the input path to determine if a file was created or deleted. -bool pathExists(char *path) { - int fd = open(path, O_RDONLY | O_SYMLINK); - if (fd == -1) { - return false; - } - - char buf[PATH_MAX]; - if (fcntl(fd, F_GETPATH, buf) == -1) { - close(fd); - return false; - } - - bool res = strncmp(path, buf, PATH_MAX) == 0; - close(fd); - return res; -} - -class State: public WatcherState { -public: - FSEventStreamRef stream; - std::shared_ptr tree; - uint64_t since; -}; - -void FSEventsCallback( - ConstFSEventStreamRef streamRef, - void *clientCallBackInfo, - size_t numEvents, - void *eventPaths, - const FSEventStreamEventFlags eventFlags[], - const FSEventStreamEventId eventIds[] -) { - char **paths = (char **)eventPaths; - std::shared_ptr& watcher = *static_cast *>(clientCallBackInfo); - - EventList& list = watcher->mEvents; - if (watcher->state == nullptr) { - return; - } - - auto stateGuard = watcher->state; - auto* state = static_cast(stateGuard.get()); - uint64_t since = state->since; - bool deletedRoot = false; - - for (size_t i = 0; i < numEvents; ++i) { - bool isCreated = (eventFlags[i] & kFSEventStreamEventFlagItemCreated) == kFSEventStreamEventFlagItemCreated; - bool isRemoved = (eventFlags[i] & kFSEventStreamEventFlagItemRemoved) == kFSEventStreamEventFlagItemRemoved; - bool isModified = (eventFlags[i] & kFSEventStreamEventFlagItemModified) == kFSEventStreamEventFlagItemModified || - (eventFlags[i] & kFSEventStreamEventFlagItemInodeMetaMod) == kFSEventStreamEventFlagItemInodeMetaMod || - (eventFlags[i] & kFSEventStreamEventFlagItemFinderInfoMod) == kFSEventStreamEventFlagItemFinderInfoMod || - (eventFlags[i] & kFSEventStreamEventFlagItemChangeOwner) == kFSEventStreamEventFlagItemChangeOwner || - (eventFlags[i] & kFSEventStreamEventFlagItemXattrMod) == kFSEventStreamEventFlagItemXattrMod; - bool isRenamed = (eventFlags[i] & kFSEventStreamEventFlagItemRenamed) == kFSEventStreamEventFlagItemRenamed; - bool isDone = (eventFlags[i] & kFSEventStreamEventFlagHistoryDone) == kFSEventStreamEventFlagHistoryDone; - bool isDir = (eventFlags[i] & kFSEventStreamEventFlagItemIsDir) == kFSEventStreamEventFlagItemIsDir; - - - if (eventFlags[i] & kFSEventStreamEventFlagMustScanSubDirs) { - if (eventFlags[i] & kFSEventStreamEventFlagUserDropped) { - list.error("Events were dropped by the FSEvents client. File system must be re-scanned."); - } else if (eventFlags[i] & kFSEventStreamEventFlagKernelDropped) { - list.error("Events were dropped by the kernel. File system must be re-scanned."); - } else { - list.error("Too many events. File system must be re-scanned."); - } - } - - if (isDone) { - watcher->notify(); - break; - } - - auto ignoredFlags = IGNORED_FLAGS; - if (__builtin_available(macOS 10.13, *)) { - ignoredFlags |= kFSEventStreamEventFlagItemCloned; - } - - // If we don't care about any of the flags that are set, ignore this event. - if ((eventFlags[i] & ~ignoredFlags) == 0) { - continue; - } - - // FSEvents exclusion paths only apply to files, not directories. - if (watcher->isIgnored(paths[i])) { - continue; - } - - // Handle unambiguous events first - if (isCreated && !(isRemoved || isModified || isRenamed)) { - state->tree->add(paths[i], 0, isDir); - list.create(paths[i]); - } else if (isRemoved && !(isCreated || isModified || isRenamed)) { - state->tree->remove(paths[i]); - list.remove(paths[i]); - if (paths[i] == watcher->mDir) { - deletedRoot = true; - } - } else if (isModified && !(isCreated || isRemoved || isRenamed)) { - struct stat file; - if (stat(paths[i], &file)) { - continue; - } - - // Ignore if mtime is the same as the last event. - // This prevents duplicate events from being emitted. - // If tv_nsec is zero, the file system probably only has second-level - // granularity so allow the even through in that case. - uint64_t mtime = CONVERT_TIME(file.st_mtimespec); - DirEntry *entry = state->tree->find(paths[i]); - if (entry && mtime == entry->mtime && file.st_mtimespec.tv_nsec != 0) { - continue; - } - - if (entry) { - // Update mtime. - entry->mtime = mtime; - } else { - // Add to tree if this path has not been discovered yet. - state->tree->add(paths[i], mtime, S_ISDIR(file.st_mode)); - } - - list.update(paths[i]); - } else { - // If multiple flags were set, then we need to call `stat` to determine if the file really exists. - // This helps disambiguate creates, updates, and deletes. - struct stat file; - if (stat(paths[i], &file) || !pathExists(paths[i])) { - // File does not exist, so we have to assume it was removed. This is not exact since the - // flags set by fsevents get coalesced together (e.g. created & deleted), so there is no way to - // know whether the create and delete both happened since our snapshot (in which case - // we'd rather ignore this event completely). This will result in some extra delete events - // being emitted for files we don't know about, but that is the best we can do. - state->tree->remove(paths[i]); - list.remove(paths[i]); - if (paths[i] == watcher->mDir) { - deletedRoot = true; - } - continue; - } - - // If the file was modified, and existed before, then this is an update, otherwise a create. - uint64_t ctime = CONVERT_TIME(file.st_birthtimespec); - uint64_t mtime = CONVERT_TIME(file.st_mtimespec); - DirEntry *entry = !since ? state->tree->find(paths[i]) : NULL; - if (entry && entry->mtime == mtime && file.st_mtimespec.tv_nsec != 0) { - continue; - } - - // Some mounted file systems report a creation time of 0/unix epoch which we special case. - if (isModified && (entry || (ctime <= since && ctime != 0))) { - state->tree->update(paths[i], mtime); - list.update(paths[i]); - } else { - state->tree->add(paths[i], mtime, S_ISDIR(file.st_mode)); - list.create(paths[i]); - } - } - } - - if (!since) { - watcher->notify(); - } - - // Stop watching if the root directory was deleted. - if (deletedRoot) { - stopStream((FSEventStreamRef)streamRef, CFRunLoopGetCurrent()); - watcher->state = nullptr; - } -} - -void checkWatcher(WatcherRef watcher) { - struct stat file; - if (stat(watcher->mDir.c_str(), &file)) { - throw WatcherError(strerror(errno), watcher); - } - - if (!S_ISDIR(file.st_mode)) { - throw WatcherError(strerror(ENOTDIR), watcher); - } -} - -void FSEventsBackend::startStream(WatcherRef watcher, FSEventStreamEventId id) { - checkWatcher(watcher); - - CFAbsoluteTime latency = 0.001; - CFStringRef fileWatchPath = CFStringCreateWithCString( - NULL, - watcher->mDir.c_str(), - kCFStringEncodingUTF8 - ); - - CFArrayRef pathsToWatch = CFArrayCreate( - NULL, - (const void **)&fileWatchPath, - 1, - NULL - ); - - // Make a watcher reference we can pass into the callback. This ensures bumped ref-count. - std::shared_ptr* callbackWatcher = new std::shared_ptr (watcher); - FSEventStreamContext callbackInfo {0, static_cast (callbackWatcher), nullptr, nullptr, nullptr}; - FSEventStreamRef stream = FSEventStreamCreate( - NULL, - &FSEventsCallback, - &callbackInfo, - pathsToWatch, - id, - latency, - kFSEventStreamCreateFlagFileEvents - ); - - CFMutableArrayRef exclusions = CFArrayCreateMutable(NULL, watcher->mIgnorePaths.size(), NULL); - for (auto it = watcher->mIgnorePaths.begin(); it != watcher->mIgnorePaths.end(); it++) { - CFStringRef path = CFStringCreateWithCString( - NULL, - it->c_str(), - kCFStringEncodingUTF8 - ); - - CFArrayAppendValue(exclusions, (const void *)path); - } - - FSEventStreamSetExclusionPaths(stream, exclusions); - - FSEventStreamScheduleWithRunLoop(stream, mRunLoop, kCFRunLoopDefaultMode); - bool started = FSEventStreamStart(stream); - - CFRelease(pathsToWatch); - CFRelease(fileWatchPath); - - if (!started) { - FSEventStreamRelease(stream); - throw WatcherError("Error starting FSEvents stream", watcher); - } - - auto stateGuard = watcher->state; - State* s = static_cast(stateGuard.get()); - s->tree = std::make_shared(watcher->mDir); - s->stream = stream; -} - -void FSEventsBackend::start() { - mRunLoop = CFRunLoopGetCurrent(); - CFRetain(mRunLoop); - - // Unlock once run loop has started. - CFRunLoopPerformBlock(mRunLoop, kCFRunLoopDefaultMode, ^ { - notifyStarted(); - }); - - CFRunLoopWakeUp(mRunLoop); - CFRunLoopRun(); -} - -FSEventsBackend::~FSEventsBackend() { - std::unique_lock lock(mMutex); - CFRunLoopStop(mRunLoop); - CFRelease(mRunLoop); -} - -void FSEventsBackend::writeSnapshot(WatcherRef watcher, std::string *snapshotPath) { - std::unique_lock lock(mMutex); - checkWatcher(watcher); - - FSEventStreamEventId id = FSEventsGetCurrentEventId(); - std::ofstream ofs(*snapshotPath); - ofs << id; - ofs << "\n"; - - struct timespec now; - clock_gettime(CLOCK_REALTIME, &now); - ofs << CONVERT_TIME(now); -} - -void FSEventsBackend::getEventsSince(WatcherRef watcher, std::string *snapshotPath) { - std::unique_lock lock(mMutex); - std::ifstream ifs(*snapshotPath); - if (ifs.fail()) { - return; - } - - FSEventStreamEventId id; - uint64_t since; - ifs >> id; - ifs >> since; - - auto s = std::make_shared(); - s->since = since; - watcher->state = s; - - startStream(watcher, id); - watcher->wait(); - stopStream(s->stream, mRunLoop); - - watcher->state = nullptr; -} - -// This function is called by Backend::watch which takes a lock on mMutex -void FSEventsBackend::subscribe(WatcherRef watcher) { - auto s = std::make_shared(); - s->since = 0; - watcher->state = s; - startStream(watcher, kFSEventStreamEventIdSinceNow); -} - -// This function is called by Backend::unwatch which takes a lock on mMutex -void FSEventsBackend::unsubscribe(WatcherRef watcher) { - auto stateGuard = watcher->state; - State* s = static_cast(stateGuard.get()); - if (s != nullptr) { - stopStream(s->stream, mRunLoop); - watcher->state = nullptr; - } -} diff --git a/node_modules/@parcel/watcher/src/macos/FSEventsBackend.hh b/node_modules/@parcel/watcher/src/macos/FSEventsBackend.hh deleted file mode 100644 index 57ded66..0000000 --- a/node_modules/@parcel/watcher/src/macos/FSEventsBackend.hh +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef FS_EVENTS_H -#define FS_EVENTS_H - -#include -#include "../Backend.hh" - -class FSEventsBackend : public Backend { -public: - void start() override; - ~FSEventsBackend(); - void writeSnapshot(WatcherRef watcher, std::string *snapshotPath) override; - void getEventsSince(WatcherRef watcher, std::string *snapshotPath) override; - void subscribe(WatcherRef watcher) override; - void unsubscribe(WatcherRef watcher) override; -private: - void startStream(WatcherRef watcher, FSEventStreamEventId id); - CFRunLoopRef mRunLoop; -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/shared/BruteForceBackend.cc b/node_modules/@parcel/watcher/src/shared/BruteForceBackend.cc deleted file mode 100644 index 0e9b84f..0000000 --- a/node_modules/@parcel/watcher/src/shared/BruteForceBackend.cc +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "../DirTree.hh" -#include "../Event.hh" -#include "./BruteForceBackend.hh" - -std::shared_ptr BruteForceBackend::getTree(WatcherRef watcher, bool shouldRead) { - auto tree = DirTree::getCached(watcher->mDir); - - // If the tree is not complete, read it if needed. - if (!tree->isComplete && shouldRead) { - readTree(watcher, tree); - tree->isComplete = true; - } - - return tree; -} - -void BruteForceBackend::writeSnapshot(WatcherRef watcher, std::string *snapshotPath) { - std::unique_lock lock(mMutex); - auto tree = getTree(watcher); - FILE *f = fopen(snapshotPath->c_str(), "w"); - if (!f) { - throw std::runtime_error(std::string("Unable to open snapshot file: ") + strerror(errno)); - } - - tree->write(f); - fclose(f); -} - -void BruteForceBackend::getEventsSince(WatcherRef watcher, std::string *snapshotPath) { - std::unique_lock lock(mMutex); - FILE *f = fopen(snapshotPath->c_str(), "r"); - if (!f) { - throw std::runtime_error(std::string("Unable to open snapshot file: ") + strerror(errno)); - } - - DirTree snapshot{watcher->mDir, f}; - auto now = getTree(watcher); - now->getChanges(&snapshot, watcher->mEvents); - fclose(f); -} diff --git a/node_modules/@parcel/watcher/src/shared/BruteForceBackend.hh b/node_modules/@parcel/watcher/src/shared/BruteForceBackend.hh deleted file mode 100644 index de7a73d..0000000 --- a/node_modules/@parcel/watcher/src/shared/BruteForceBackend.hh +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef BRUTE_FORCE_H -#define BRUTE_FORCE_H - -#include "../Backend.hh" -#include "../DirTree.hh" -#include "../Watcher.hh" - -class BruteForceBackend : public Backend { -public: - void writeSnapshot(WatcherRef watcher, std::string *snapshotPath) override; - void getEventsSince(WatcherRef watcher, std::string *snapshotPath) override; - void subscribe(WatcherRef watcher) override { - throw "Brute force backend doesn't support subscriptions."; - } - - void unsubscribe(WatcherRef watcher) override { - throw "Brute force backend doesn't support subscriptions."; - } - - std::shared_ptr getTree(WatcherRef watcher, bool shouldRead = true); -private: - void readTree(WatcherRef watcher, std::shared_ptr tree); -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/unix/fts.cc b/node_modules/@parcel/watcher/src/unix/fts.cc deleted file mode 100644 index d50c3e4..0000000 --- a/node_modules/@parcel/watcher/src/unix/fts.cc +++ /dev/null @@ -1,50 +0,0 @@ -#include - -// weird error on linux -#ifdef __THROW -#undef __THROW -#endif -#define __THROW - -#include -#include -#include "../DirTree.hh" -#include "../shared/BruteForceBackend.hh" - -#define CONVERT_TIME(ts) ((uint64_t)ts.tv_sec * 1000000000 + ts.tv_nsec) -#if __APPLE__ -#define st_mtim st_mtimespec -#endif - -void BruteForceBackend::readTree(WatcherRef watcher, std::shared_ptr tree) { - char *paths[2] {(char *)watcher->mDir.c_str(), NULL}; - FTS *fts = fts_open(paths, FTS_NOCHDIR | FTS_PHYSICAL, NULL); - if (!fts) { - throw WatcherError(strerror(errno), watcher); - } - - FTSENT *node; - bool isRoot = true; - - while ((node = fts_read(fts)) != NULL) { - if (node->fts_errno) { - fts_close(fts); - throw WatcherError(strerror(node->fts_errno), watcher); - } - - if (isRoot && !(node->fts_info & FTS_D)) { - fts_close(fts); - throw WatcherError(strerror(ENOTDIR), watcher); - } - - if (watcher->isIgnored(std::string(node->fts_path))) { - fts_set(fts, node, FTS_SKIP); - continue; - } - - tree->add(node->fts_path, CONVERT_TIME(node->fts_statp->st_mtim), (node->fts_info & FTS_D) == FTS_D); - isRoot = false; - } - - fts_close(fts); -} diff --git a/node_modules/@parcel/watcher/src/unix/legacy.cc b/node_modules/@parcel/watcher/src/unix/legacy.cc deleted file mode 100644 index 60490c6..0000000 --- a/node_modules/@parcel/watcher/src/unix/legacy.cc +++ /dev/null @@ -1,77 +0,0 @@ -#include - -// weird error on linux -#ifdef __THROW -#undef __THROW -#endif -#define __THROW - -#ifdef _LIBC -# include -#else -# include -#endif -#include -#include -#include - -#include "../DirTree.hh" -#include "../shared/BruteForceBackend.hh" - -#define CONVERT_TIME(ts) ((uint64_t)ts.tv_sec * 1000000000 + ts.tv_nsec) -#if __APPLE__ -#define st_mtim st_mtimespec -#endif -#define ISDOT(a) (a[0] == '.' && (!a[1] || (a[1] == '.' && !a[2]))) - -void iterateDir(WatcherRef watcher, const std::shared_ptr tree, const char *relative, int parent_fd, const std::string &dirname) { - int open_flags = (O_RDONLY | O_CLOEXEC | O_DIRECTORY | O_NOCTTY | O_NONBLOCK | O_NOFOLLOW); - int new_fd = openat(parent_fd, relative, open_flags); - if (new_fd == -1) { - if (errno == EACCES) { - return; // ignore insufficient permissions - } - - throw WatcherError(strerror(errno), watcher); - } - - struct stat rootAttributes; - fstatat(new_fd, ".", &rootAttributes, AT_SYMLINK_NOFOLLOW); - tree->add(dirname, CONVERT_TIME(rootAttributes.st_mtim), true); - - if (DIR *dir = fdopendir(new_fd)) { - while (struct dirent *ent = (errno = 0, readdir(dir))) { - if (ISDOT(ent->d_name)) continue; - - std::string fullPath = dirname + "/" + ent->d_name; - - if (!watcher->isIgnored(fullPath)) { - struct stat attrib; - fstatat(new_fd, ent->d_name, &attrib, AT_SYMLINK_NOFOLLOW); - bool isDir = ent->d_type == DT_DIR; - - if (isDir) { - iterateDir(watcher, tree, ent->d_name, new_fd, fullPath); - } else { - tree->add(fullPath, CONVERT_TIME(attrib.st_mtim), isDir); - } - } - } - - closedir(dir); - } else { - close(new_fd); - } - - if (errno) { - throw WatcherError(strerror(errno), watcher); - } -} - -void BruteForceBackend::readTree(WatcherRef watcher, std::shared_ptr tree) { - int fd = open(watcher->mDir.c_str(), O_RDONLY); - if (fd) { - iterateDir(watcher, tree, ".", fd, watcher->mDir); - close(fd); - } -} diff --git a/node_modules/@parcel/watcher/src/wasm/WasmBackend.cc b/node_modules/@parcel/watcher/src/wasm/WasmBackend.cc deleted file mode 100644 index 9514109..0000000 --- a/node_modules/@parcel/watcher/src/wasm/WasmBackend.cc +++ /dev/null @@ -1,132 +0,0 @@ -#include -#include "WasmBackend.hh" - -#define CONVERT_TIME(ts) ((uint64_t)ts.tv_sec * 1000000000 + ts.tv_nsec) - -void WasmBackend::start() { - notifyStarted(); -} - -void WasmBackend::subscribe(WatcherRef watcher) { - // Build a full directory tree recursively, and watch each directory. - std::shared_ptr tree = getTree(watcher); - - for (auto it = tree->entries.begin(); it != tree->entries.end(); it++) { - if (it->second.isDir) { - watchDir(watcher, it->second.path, tree); - } - } -} - -void WasmBackend::watchDir(WatcherRef watcher, std::string path, std::shared_ptr tree) { - int wd = wasm_backend_add_watch(path.c_str(), (void *)this); - std::shared_ptr sub = std::make_shared(); - sub->tree = tree; - sub->path = path; - sub->watcher = watcher; - mSubscriptions.emplace(wd, sub); -} - -extern "C" void wasm_backend_event_handler(void *backend, int wd, int type, char *filename) { - WasmBackend *b = (WasmBackend *)(backend); - b->handleEvent(wd, type, filename); -} - -void WasmBackend::handleEvent(int wd, int type, char *filename) { - // Find the subscriptions for this watch descriptor - auto range = mSubscriptions.equal_range(wd); - std::unordered_set> set; - for (auto it = range.first; it != range.second; it++) { - set.insert(it->second); - } - - for (auto it = set.begin(); it != set.end(); it++) { - if (handleSubscription(type, filename, *it)) { - (*it)->watcher->notify(); - } - } -} - -bool WasmBackend::handleSubscription(int type, char *filename, std::shared_ptr sub) { - // Build full path and check if its in our ignore list. - WatcherRef watcher = sub->watcher; - std::string path = std::string(sub->path); - - if (filename[0] != '\0') { - path += "/" + std::string(filename); - } - - if (watcher->isIgnored(path)) { - return false; - } - - if (type == 1) { - struct stat st; - stat(path.c_str(), &st); - sub->tree->update(path, CONVERT_TIME(st.st_mtim)); - watcher->mEvents.update(path); - } else if (type == 2) { - // Determine if this is a create or delete depending on if the file exists or not. - struct stat st; - if (lstat(path.c_str(), &st)) { - // If the entry being deleted/moved is a directory, remove it from the list of subscriptions - DirEntry *entry = sub->tree->find(path); - if (!entry) { - return false; - } - - if (entry->isDir) { - std::string pathStart = path + DIR_SEP; - for (auto it = mSubscriptions.begin(); it != mSubscriptions.end();) { - if (it->second->path == path || it->second->path.rfind(pathStart, 0) == 0) { - wasm_backend_remove_watch(it->first); - it = mSubscriptions.erase(it); - } else { - ++it; - } - } - - // Remove all sub-entries - for (auto it = sub->tree->entries.begin(); it != sub->tree->entries.end();) { - if (it->first.rfind(pathStart, 0) == 0) { - watcher->mEvents.remove(it->first); - it = sub->tree->entries.erase(it); - } else { - it++; - } - } - } - - watcher->mEvents.remove(path); - sub->tree->remove(path); - } else if (sub->tree->find(path)) { - sub->tree->update(path, CONVERT_TIME(st.st_mtim)); - watcher->mEvents.update(path); - } else { - watcher->mEvents.create(path); - - // If this is a create, check if it's a directory and start watching if it is. - DirEntry *entry = sub->tree->add(path, CONVERT_TIME(st.st_mtim), S_ISDIR(st.st_mode)); - if (entry->isDir) { - watchDir(watcher, path, sub->tree); - } - } - } - - return true; -} - -void WasmBackend::unsubscribe(WatcherRef watcher) { - // Find any subscriptions pointing to this watcher, and remove them. - for (auto it = mSubscriptions.begin(); it != mSubscriptions.end();) { - if (it->second->watcher.get() == watcher.get()) { - if (mSubscriptions.count(it->first) == 1) { - wasm_backend_remove_watch(it->first); - } - - it = mSubscriptions.erase(it); - } else { - it++; - } - } -} diff --git a/node_modules/@parcel/watcher/src/wasm/WasmBackend.hh b/node_modules/@parcel/watcher/src/wasm/WasmBackend.hh deleted file mode 100644 index 9facac8..0000000 --- a/node_modules/@parcel/watcher/src/wasm/WasmBackend.hh +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef WASM_H -#define WASM_H - -#include -#include "../shared/BruteForceBackend.hh" -#include "../DirTree.hh" - -extern "C" { - int wasm_backend_add_watch(const char *filename, void *backend); - void wasm_backend_remove_watch(int wd); - void wasm_backend_event_handler(void *backend, int wd, int type, char *filename); -}; - -struct WasmSubscription { - std::shared_ptr tree; - std::string path; - WatcherRef watcher; -}; - -class WasmBackend : public BruteForceBackend { -public: - void start() override; - void subscribe(WatcherRef watcher) override; - void unsubscribe(WatcherRef watcher) override; - void handleEvent(int wd, int type, char *filename); -private: - int mWasm; - std::unordered_multimap> mSubscriptions; - - void watchDir(WatcherRef watcher, std::string path, std::shared_ptr tree); - bool handleSubscription(int type, char *filename, std::shared_ptr sub); -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/wasm/include.h b/node_modules/@parcel/watcher/src/wasm/include.h deleted file mode 100644 index 60e4d65..0000000 --- a/node_modules/@parcel/watcher/src/wasm/include.h +++ /dev/null @@ -1,74 +0,0 @@ -/* -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. -*/ - -// Node does not include the headers for these functions when compiling for WASM, so add them here. -#ifdef __wasm32__ -extern "C" { -NAPI_EXTERN napi_status NAPI_CDECL -napi_create_threadsafe_function(napi_env env, - napi_value func, - napi_value async_resource, - napi_value async_resource_name, - size_t max_queue_size, - size_t initial_thread_count, - void* thread_finalize_data, - napi_finalize thread_finalize_cb, - void* context, - napi_threadsafe_function_call_js call_js_cb, - napi_threadsafe_function* result); - -NAPI_EXTERN napi_status NAPI_CDECL napi_get_threadsafe_function_context( - napi_threadsafe_function func, void** result); - -NAPI_EXTERN napi_status NAPI_CDECL -napi_call_threadsafe_function(napi_threadsafe_function func, - void* data, - napi_threadsafe_function_call_mode is_blocking); - -NAPI_EXTERN napi_status NAPI_CDECL -napi_acquire_threadsafe_function(napi_threadsafe_function func); - -NAPI_EXTERN napi_status NAPI_CDECL napi_release_threadsafe_function( - napi_threadsafe_function func, napi_threadsafe_function_release_mode mode); - -NAPI_EXTERN napi_status NAPI_CDECL -napi_unref_threadsafe_function(napi_env env, napi_threadsafe_function func); - -NAPI_EXTERN napi_status NAPI_CDECL -napi_ref_threadsafe_function(napi_env env, napi_threadsafe_function func); - -NAPI_EXTERN napi_status NAPI_CDECL -napi_create_async_work(napi_env env, - napi_value async_resource, - napi_value async_resource_name, - napi_async_execute_callback execute, - napi_async_complete_callback complete, - void* data, - napi_async_work* result); -NAPI_EXTERN napi_status NAPI_CDECL napi_delete_async_work(napi_env env, - napi_async_work work); -NAPI_EXTERN napi_status NAPI_CDECL napi_queue_async_work(napi_env env, - napi_async_work work); -NAPI_EXTERN napi_status NAPI_CDECL napi_cancel_async_work(napi_env env, - napi_async_work work); -} -#endif diff --git a/node_modules/@parcel/watcher/src/watchman/BSER.cc b/node_modules/@parcel/watcher/src/watchman/BSER.cc deleted file mode 100644 index 1fbcd45..0000000 --- a/node_modules/@parcel/watcher/src/watchman/BSER.cc +++ /dev/null @@ -1,302 +0,0 @@ -#include -#include "./BSER.hh" - -BSERType decodeType(std::istream &iss) { - int8_t type; - iss.read(reinterpret_cast(&type), sizeof(type)); - return (BSERType) type; -} - -void expectType(std::istream &iss, BSERType expected) { - BSERType got = decodeType(iss); - if (got != expected) { - throw std::runtime_error("Unexpected BSER type"); - } -} - -void encodeType(std::ostream &oss, BSERType type) { - int8_t t = (int8_t)type; - oss.write(reinterpret_cast(&t), sizeof(t)); -} - -template -class Value : public BSERValue { -public: - T value; - Value(T val) { - value = val; - } - - Value() {} -}; - -class BSERInteger : public Value { -public: - BSERInteger(int64_t value) : Value(value) {} - BSERInteger(std::istream &iss) { - int8_t int8; - int16_t int16; - int32_t int32; - int64_t int64; - - BSERType type = decodeType(iss); - - switch (type) { - case BSER_INT8: - iss.read(reinterpret_cast(&int8), sizeof(int8)); - value = int8; - break; - case BSER_INT16: - iss.read(reinterpret_cast(&int16), sizeof(int16)); - value = int16; - break; - case BSER_INT32: - iss.read(reinterpret_cast(&int32), sizeof(int32)); - value = int32; - break; - case BSER_INT64: - iss.read(reinterpret_cast(&int64), sizeof(int64)); - value = int64; - break; - default: - throw std::runtime_error("Invalid BSER int type"); - } - } - - int64_t intValue() override { - return value; - } - - void encode(std::ostream &oss) override { - if (value <= INT8_MAX) { - encodeType(oss, BSER_INT8); - int8_t v = (int8_t)value; - oss.write(reinterpret_cast(&v), sizeof(v)); - } else if (value <= INT16_MAX) { - encodeType(oss, BSER_INT16); - int16_t v = (int16_t)value; - oss.write(reinterpret_cast(&v), sizeof(v)); - } else if (value <= INT32_MAX) { - encodeType(oss, BSER_INT32); - int32_t v = (int32_t)value; - oss.write(reinterpret_cast(&v), sizeof(v)); - } else { - encodeType(oss, BSER_INT64); - oss.write(reinterpret_cast(&value), sizeof(value)); - } - } -}; - -class BSERArray : public Value { -public: - BSERArray() : Value() {} - BSERArray(BSER::Array value) : Value(value) {} - BSERArray(std::istream &iss) { - expectType(iss, BSER_ARRAY); - int64_t len = BSERInteger(iss).intValue(); - for (int64_t i = 0; i < len; i++) { - value.push_back(BSER(iss)); - } - } - - BSER::Array arrayValue() override { - return value; - } - - void encode(std::ostream &oss) override { - encodeType(oss, BSER_ARRAY); - BSERInteger(value.size()).encode(oss); - for (auto it = value.begin(); it != value.end(); it++) { - it->encode(oss); - } - } -}; - -class BSERString : public Value { -public: - BSERString(std::string value) : Value(value) {} - BSERString(std::istream &iss) { - expectType(iss, BSER_STRING); - int64_t len = BSERInteger(iss).intValue(); - value.resize(len); - iss.read(&value[0], len); - } - - std::string stringValue() override { - return value; - } - - void encode(std::ostream &oss) override { - encodeType(oss, BSER_STRING); - BSERInteger(value.size()).encode(oss); - oss << value; - } -}; - -class BSERObject : public Value { -public: - BSERObject() : Value() {} - BSERObject(BSER::Object value) : Value(value) {} - BSERObject(std::istream &iss) { - expectType(iss, BSER_OBJECT); - int64_t len = BSERInteger(iss).intValue(); - for (int64_t i = 0; i < len; i++) { - auto key = BSERString(iss).stringValue(); - auto val = BSER(iss); - value.emplace(key, val); - } - } - - BSER::Object objectValue() override { - return value; - } - - void encode(std::ostream &oss) override { - encodeType(oss, BSER_OBJECT); - BSERInteger(value.size()).encode(oss); - for (auto it = value.begin(); it != value.end(); it++) { - BSERString(it->first).encode(oss); - it->second.encode(oss); - } - } -}; - -class BSERDouble : public Value { -public: - BSERDouble(double value) : Value(value) {} - BSERDouble(std::istream &iss) { - expectType(iss, BSER_REAL); - iss.read(reinterpret_cast(&value), sizeof(value)); - } - - double doubleValue() override { - return value; - } - - void encode(std::ostream &oss) override { - encodeType(oss, BSER_REAL); - oss.write(reinterpret_cast(&value), sizeof(value)); - } -}; - -class BSERBoolean : public Value { -public: - BSERBoolean(bool value) : Value(value) {} - bool boolValue() override { return value; } - void encode(std::ostream &oss) override { - int8_t t = value == true ? BSER_BOOL_TRUE : BSER_BOOL_FALSE; - oss.write(reinterpret_cast(&t), sizeof(t)); - } -}; - -class BSERNull : public Value { -public: - BSERNull() : Value(false) {} - void encode(std::ostream &oss) override { - encodeType(oss, BSER_NULL); - } -}; - -std::shared_ptr decodeTemplate(std::istream &iss) { - expectType(iss, BSER_TEMPLATE); - auto keys = BSERArray(iss).arrayValue(); - auto len = BSERInteger(iss).intValue(); - std::shared_ptr arr = std::make_shared(); - for (int64_t i = 0; i < len; i++) { - BSER::Object obj; - for (auto it = keys.begin(); it != keys.end(); it++) { - if (iss.peek() == 0x0c) { - iss.ignore(1); - continue; - } - - auto val = BSER(iss); - obj.emplace(it->stringValue(), val); - } - arr->value.push_back(obj); - } - return arr; -} - -BSER::BSER(std::istream &iss) { - BSERType type = decodeType(iss); - iss.unget(); - - switch (type) { - case BSER_ARRAY: - m_ptr = std::make_shared(iss); - break; - case BSER_OBJECT: - m_ptr = std::make_shared(iss); - break; - case BSER_STRING: - m_ptr = std::make_shared(iss); - break; - case BSER_INT8: - case BSER_INT16: - case BSER_INT32: - case BSER_INT64: - m_ptr = std::make_shared(iss); - break; - case BSER_REAL: - m_ptr = std::make_shared(iss); - break; - case BSER_BOOL_TRUE: - iss.ignore(1); - m_ptr = std::make_shared(true); - break; - case BSER_BOOL_FALSE: - iss.ignore(1); - m_ptr = std::make_shared(false); - break; - case BSER_NULL: - iss.ignore(1); - m_ptr = std::make_shared(); - break; - case BSER_TEMPLATE: - m_ptr = decodeTemplate(iss); - break; - default: - throw std::runtime_error("unknown BSER type"); - } -} - -BSER::BSER() : m_ptr(std::make_shared()) {} -BSER::BSER(BSER::Array value) : m_ptr(std::make_shared(value)) {} -BSER::BSER(BSER::Object value) : m_ptr(std::make_shared(value)) {} -BSER::BSER(const char *value) : m_ptr(std::make_shared(value)) {} -BSER::BSER(std::string value) : m_ptr(std::make_shared(value)) {} -BSER::BSER(int64_t value) : m_ptr(std::make_shared(value)) {} -BSER::BSER(double value) : m_ptr(std::make_shared(value)) {} -BSER::BSER(bool value) : m_ptr(std::make_shared(value)) {} - -BSER::Array BSER::arrayValue() { return m_ptr->arrayValue(); } -BSER::Object BSER::objectValue() { return m_ptr->objectValue(); } -std::string BSER::stringValue() { return m_ptr->stringValue(); } -int64_t BSER::intValue() { return m_ptr->intValue(); } -double BSER::doubleValue() { return m_ptr->doubleValue(); } -bool BSER::boolValue() { return m_ptr->boolValue(); } -void BSER::encode(std::ostream &oss) { - m_ptr->encode(oss); -} - -int64_t BSER::decodeLength(std::istream &iss) { - char pdu[2]; - if (!iss.read(pdu, 2) || pdu[0] != 0 || pdu[1] != 1) { - throw std::runtime_error("Invalid BSER"); - } - - return BSERInteger(iss).intValue(); -} - -std::string BSER::encode() { - std::ostringstream oss(std::ios_base::binary); - encode(oss); - - std::ostringstream res(std::ios_base::binary); - res.write("\x00\x01", 2); - - BSERInteger(oss.str().size()).encode(res); - res << oss.str(); - return res.str(); -} diff --git a/node_modules/@parcel/watcher/src/watchman/BSER.hh b/node_modules/@parcel/watcher/src/watchman/BSER.hh deleted file mode 100644 index 6bd2025..0000000 --- a/node_modules/@parcel/watcher/src/watchman/BSER.hh +++ /dev/null @@ -1,69 +0,0 @@ -#ifndef BSER_H -#define BSER_H - -#include -#include -#include -#include -#include - -enum BSERType { - BSER_ARRAY = 0x00, - BSER_OBJECT = 0x01, - BSER_STRING = 0x02, - BSER_INT8 = 0x03, - BSER_INT16 = 0x04, - BSER_INT32 = 0x05, - BSER_INT64 = 0x06, - BSER_REAL = 0x07, - BSER_BOOL_TRUE = 0x08, - BSER_BOOL_FALSE = 0x09, - BSER_NULL = 0x0a, - BSER_TEMPLATE = 0x0b -}; - -class BSERValue; - -class BSER { -public: - typedef std::vector Array; - typedef std::unordered_map Object; - - BSER(); - BSER(BSER::Array value); - BSER(BSER::Object value); - BSER(std::string value); - BSER(const char *value); - BSER(int64_t value); - BSER(double value); - BSER(bool value); - BSER(std::istream &iss); - - BSER::Array arrayValue(); - BSER::Object objectValue(); - std::string stringValue(); - int64_t intValue(); - double doubleValue(); - bool boolValue(); - void encode(std::ostream &oss); - - static int64_t decodeLength(std::istream &iss); - std::string encode(); -private: - std::shared_ptr m_ptr; -}; - -class BSERValue { -protected: - friend class BSER; - virtual BSER::Array arrayValue() { return BSER::Array(); } - virtual BSER::Object objectValue() { return BSER::Object(); } - virtual std::string stringValue() { return std::string(); } - virtual int64_t intValue() { return 0; } - virtual double doubleValue() { return 0; } - virtual bool boolValue() { return false; } - virtual void encode(std::ostream &oss) {} - virtual ~BSERValue() {} -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/watchman/IPC.hh b/node_modules/@parcel/watcher/src/watchman/IPC.hh deleted file mode 100644 index 6e852c8..0000000 --- a/node_modules/@parcel/watcher/src/watchman/IPC.hh +++ /dev/null @@ -1,175 +0,0 @@ -#ifndef IPC_H -#define IPC_H - -#include -#include - -#ifdef _WIN32 -#include -#include -#else -#include -#include -#include -#endif - -class IPC { -public: - IPC(std::string path) { - mStopped = false; - #ifdef _WIN32 - while (true) { - mPipe = CreateFile( - path.data(), // pipe name - GENERIC_READ | GENERIC_WRITE, // read and write access - 0, // no sharing - NULL, // default security attributes - OPEN_EXISTING, // opens existing pipe - FILE_FLAG_OVERLAPPED, // attributes - NULL // no template file - ); - - if (mPipe != INVALID_HANDLE_VALUE) { - break; - } - - if (GetLastError() != ERROR_PIPE_BUSY) { - throw std::runtime_error("Could not open pipe"); - } - - // Wait for pipe to become available if it is busy - if (!WaitNamedPipe(path.data(), 30000)) { - throw std::runtime_error("Error waiting for pipe"); - } - } - - mReader = CreateEvent(NULL, true, false, NULL); - mWriter = CreateEvent(NULL, true, false, NULL); - #else - struct sockaddr_un addr; - memset(&addr, 0, sizeof(addr)); - addr.sun_family = AF_UNIX; - strncpy(addr.sun_path, path.c_str(), sizeof(addr.sun_path) - 1); - - mSock = socket(AF_UNIX, SOCK_STREAM, 0); - if (connect(mSock, (struct sockaddr *) &addr, sizeof(struct sockaddr_un))) { - throw std::runtime_error("Error connecting to socket"); - } - #endif - } - - ~IPC() { - mStopped = true; - #ifdef _WIN32 - CancelIo(mPipe); - CloseHandle(mPipe); - CloseHandle(mReader); - CloseHandle(mWriter); - #else - shutdown(mSock, SHUT_RDWR); - #endif - } - - void write(std::string buf) { - #ifdef _WIN32 - OVERLAPPED overlapped; - overlapped.hEvent = mWriter; - bool success = WriteFile( - mPipe, // pipe handle - buf.data(), // message - buf.size(), // message length - NULL, // bytes written - &overlapped // overlapped - ); - - if (mStopped) { - return; - } - - if (!success) { - if (GetLastError() != ERROR_IO_PENDING) { - throw std::runtime_error("Write error"); - } - } - - DWORD written; - success = GetOverlappedResult(mPipe, &overlapped, &written, true); - if (!success) { - throw std::runtime_error("GetOverlappedResult failed"); - } - - if (written != buf.size()) { - throw std::runtime_error("Wrong number of bytes written"); - } - #else - int r = 0; - for (unsigned int i = 0; i != buf.size(); i += r) { - r = ::write(mSock, &buf[i], buf.size() - i); - if (r == -1) { - if (errno == EAGAIN) { - r = 0; - } else if (mStopped) { - return; - } else { - throw std::runtime_error("Write error"); - } - } - } - #endif - } - - int read(char *buf, size_t len) { - #ifdef _WIN32 - OVERLAPPED overlapped; - overlapped.hEvent = mReader; - bool success = ReadFile( - mPipe, // pipe handle - buf, // buffer to receive reply - len, // size of buffer - NULL, // number of bytes read - &overlapped // overlapped - ); - - if (!success && !mStopped) { - if (GetLastError() != ERROR_IO_PENDING) { - throw std::runtime_error("Read error"); - } - } - - DWORD read = 0; - success = GetOverlappedResult(mPipe, &overlapped, &read, true); - if (!success && !mStopped) { - throw std::runtime_error("GetOverlappedResult failed"); - } - - return read; - #else - int r = ::read(mSock, buf, len); - if (r == 0 && !mStopped) { - throw std::runtime_error("Socket ended unexpectedly"); - } - - if (r < 0) { - if (mStopped) { - return 0; - } - - throw std::runtime_error(strerror(errno)); - } - - return r; - #endif - } - -private: - bool mStopped; - #ifdef _WIN32 - HANDLE mPipe; - HANDLE mReader; - HANDLE mWriter; - #else - int mSock; - #endif -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/watchman/WatchmanBackend.cc b/node_modules/@parcel/watcher/src/watchman/WatchmanBackend.cc deleted file mode 100644 index 82a23f5..0000000 --- a/node_modules/@parcel/watcher/src/watchman/WatchmanBackend.cc +++ /dev/null @@ -1,338 +0,0 @@ -#include -#include -#include -#include -#include "../DirTree.hh" -#include "../Event.hh" -#include "./BSER.hh" -#include "./WatchmanBackend.hh" - -#ifdef _WIN32 -#include "../windows/win_utils.hh" -#define S_ISDIR(mode) ((mode & _S_IFDIR) == _S_IFDIR) -#define popen _popen -#define pclose _pclose -#else -#include -#define normalizePath(dir) dir -#endif - -template -BSER readBSER(T &&do_read) { - std::stringstream oss; - char buffer[256]; - int r; - int64_t len = -1; - do { - // Start by reading a minimal amount of data in order to decode the length. - // After that, attempt to read the remaining length, up to the buffer size. - r = do_read(buffer, len == -1 ? 20 : (len < 256 ? len : 256)); - oss << std::string(buffer, r); - - if (len == -1) { - uint64_t l = BSER::decodeLength(oss); - len = l + oss.tellg(); - } - - len -= r; - } while (len > 0); - - return BSER(oss); -} - -std::string getSockPath() { - auto var = getenv("WATCHMAN_SOCK"); - if (var && *var) { - return std::string(var); - } - - FILE *fp = popen("watchman --output-encoding=bser get-sockname", "r"); - if (fp == NULL || errno == ECHILD) { - throw std::runtime_error("Failed to execute watchman"); - } - - BSER b = readBSER([fp] (char *buf, size_t len) { - return fread(buf, sizeof(char), len, fp); - }); - - pclose(fp); - - auto objValue = b.objectValue(); - auto foundSockname = objValue.find("sockname"); - if (foundSockname == objValue.end()) { - throw std::runtime_error("sockname not found"); - } - return foundSockname->second.stringValue(); -} - -std::unique_ptr watchmanConnect() { - std::string path = getSockPath(); - return std::unique_ptr(new IPC(path)); -} - -BSER watchmanRead(IPC *ipc) { - return readBSER([ipc] (char *buf, size_t len) { - return ipc->read(buf, len); - }); -} - -BSER::Object WatchmanBackend::watchmanRequest(BSER b) { - std::string cmd = b.encode(); - mIPC->write(cmd); - mRequestSignal.notify(); - - mResponseSignal.wait(); - mResponseSignal.reset(); - - if (!mError.empty()) { - std::runtime_error err = std::runtime_error(mError); - mError = std::string(); - throw err; - } - - return mResponse; -} - -void WatchmanBackend::watchmanWatch(std::string dir) { - std::vector cmd; - cmd.push_back("watch"); - cmd.push_back(normalizePath(dir)); - watchmanRequest(cmd); -} - -bool WatchmanBackend::checkAvailable() { - try { - watchmanConnect(); - return true; - } catch (std::exception &err) { - return false; - } -} - -void handleFiles(WatcherRef watcher, BSER::Object obj) { - auto found = obj.find("files"); - if (found == obj.end()) { - throw WatcherError("Error reading changes from watchman", watcher); - } - - auto files = found->second.arrayValue(); - for (auto it = files.begin(); it != files.end(); it++) { - auto file = it->objectValue(); - auto name = file.find("name")->second.stringValue(); - #ifdef _WIN32 - std::replace(name.begin(), name.end(), '/', '\\'); - #endif - auto mode = file.find("mode")->second.intValue(); - auto isNew = file.find("new")->second.boolValue(); - auto exists = file.find("exists")->second.boolValue(); - auto path = watcher->mDir + DIR_SEP + name; - if (watcher->isIgnored(path)) { - continue; - } - - if (isNew && exists) { - watcher->mEvents.create(path); - } else if (exists && !S_ISDIR(mode)) { - watcher->mEvents.update(path); - } else if (!isNew && !exists) { - watcher->mEvents.remove(path); - } - } -} - -void WatchmanBackend::handleSubscription(BSER::Object obj) { - std::unique_lock lock(mMutex); - auto subscription = obj.find("subscription")->second.stringValue(); - auto it = mSubscriptions.find(subscription); - if (it == mSubscriptions.end()) { - return; - } - - auto watcher = it->second; - try { - handleFiles(watcher, obj); - watcher->notify(); - } catch (WatcherError &err) { - handleWatcherError(err); - } -} - -void WatchmanBackend::start() { - mIPC = watchmanConnect(); - notifyStarted(); - - while (true) { - // If there are no subscriptions we are reading, wait for a request. - if (mSubscriptions.size() == 0) { - mRequestSignal.wait(); - mRequestSignal.reset(); - } - - // Break out of loop if we are stopped. - if (mStopped) { - break; - } - - // Attempt to read from the socket. - // If there is an error and we are stopped, break. - BSER b; - try { - b = watchmanRead(&*mIPC); - } catch (std::exception &err) { - if (mStopped) { - break; - } else if (mResponseSignal.isWaiting()) { - mError = err.what(); - mResponseSignal.notify(); - } else { - // Throwing causes the backend to be destroyed, but we never reach the code below to notify the signal - mEndedSignal.notify(); - throw; - } - } - - auto obj = b.objectValue(); - auto error = obj.find("error"); - if (error != obj.end()) { - mError = error->second.stringValue(); - mResponseSignal.notify(); - continue; - } - - // If this message is for a subscription, handle it, otherwise notify the request. - auto subscription = obj.find("subscription"); - if (subscription != obj.end()) { - handleSubscription(obj); - } else { - mResponse = obj; - mResponseSignal.notify(); - } - } - - mEndedSignal.notify(); -} - -WatchmanBackend::~WatchmanBackend() { - // Mark the watcher as stopped, close the socket, and trigger the lock. - // This will cause the read loop to be broken and the thread to exit. - mStopped = true; - mIPC.reset(); - mRequestSignal.notify(); - - // If not ended yet, wait. - mEndedSignal.wait(); -} - -std::string WatchmanBackend::clock(WatcherRef watcher) { - BSER::Array cmd; - cmd.push_back("clock"); - cmd.push_back(normalizePath(watcher->mDir)); - - BSER::Object obj = watchmanRequest(cmd); - auto found = obj.find("clock"); - if (found == obj.end()) { - throw WatcherError("Error reading clock from watchman", watcher); - } - - return found->second.stringValue(); -} - -void WatchmanBackend::writeSnapshot(WatcherRef watcher, std::string *snapshotPath) { - std::unique_lock lock(mMutex); - watchmanWatch(watcher->mDir); - - std::ofstream ofs(*snapshotPath); - ofs << clock(watcher); -} - -void WatchmanBackend::getEventsSince(WatcherRef watcher, std::string *snapshotPath) { - std::unique_lock lock(mMutex); - std::ifstream ifs(*snapshotPath); - if (ifs.fail()) { - return; - } - - watchmanWatch(watcher->mDir); - - std::string clock; - ifs >> clock; - - BSER::Array cmd; - cmd.push_back("since"); - cmd.push_back(normalizePath(watcher->mDir)); - cmd.push_back(clock); - - BSER::Object obj = watchmanRequest(cmd); - handleFiles(watcher, obj); -} - -std::string getId(WatcherRef watcher) { - std::ostringstream id; - id << "parcel-"; - id << static_cast(watcher.get()); - return id.str(); -} - -// This function is called by Backend::watch which takes a lock on mMutex -void WatchmanBackend::subscribe(WatcherRef watcher) { - watchmanWatch(watcher->mDir); - - std::string id = getId(watcher); - BSER::Array cmd; - cmd.push_back("subscribe"); - cmd.push_back(normalizePath(watcher->mDir)); - cmd.push_back(id); - - BSER::Array fields; - fields.push_back("name"); - fields.push_back("mode"); - fields.push_back("exists"); - fields.push_back("new"); - - BSER::Object opts; - opts.emplace("fields", fields); - opts.emplace("since", clock(watcher)); - - if (watcher->mIgnorePaths.size() > 0) { - BSER::Array ignore; - BSER::Array anyOf; - anyOf.push_back("anyof"); - - for (auto it = watcher->mIgnorePaths.begin(); it != watcher->mIgnorePaths.end(); it++) { - std::string pathStart = watcher->mDir + DIR_SEP; - if (it->rfind(pathStart, 0) == 0) { - auto relative = it->substr(pathStart.size()); - BSER::Array dirname; - dirname.push_back("dirname"); - dirname.push_back(relative); - anyOf.push_back(dirname); - } - } - - ignore.push_back("not"); - ignore.push_back(anyOf); - - opts.emplace("expression", ignore); - } - - cmd.push_back(opts); - watchmanRequest(cmd); - - mSubscriptions.emplace(id, watcher); - mRequestSignal.notify(); -} - -// This function is called by Backend::unwatch which takes a lock on mMutex -void WatchmanBackend::unsubscribe(WatcherRef watcher) { - std::string id = getId(watcher); - auto erased = mSubscriptions.erase(id); - - if (erased) { - BSER::Array cmd; - cmd.push_back("unsubscribe"); - cmd.push_back(normalizePath(watcher->mDir)); - cmd.push_back(id); - - watchmanRequest(cmd); - } -} diff --git a/node_modules/@parcel/watcher/src/watchman/WatchmanBackend.hh b/node_modules/@parcel/watcher/src/watchman/WatchmanBackend.hh deleted file mode 100644 index 699cded..0000000 --- a/node_modules/@parcel/watcher/src/watchman/WatchmanBackend.hh +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef WATCHMAN_H -#define WATCHMAN_H - -#include "../Backend.hh" -#include "./BSER.hh" -#include "../Signal.hh" -#include "./IPC.hh" - -class WatchmanBackend : public Backend { -public: - static bool checkAvailable(); - void start() override; - WatchmanBackend() : mStopped(false) {}; - ~WatchmanBackend(); - void writeSnapshot(WatcherRef watcher, std::string *snapshotPath) override; - void getEventsSince(WatcherRef watcher, std::string *snapshotPath) override; - void subscribe(WatcherRef watcher) override; - void unsubscribe(WatcherRef watcher) override; -private: - std::unique_ptr mIPC; - Signal mRequestSignal; - Signal mResponseSignal; - BSER::Object mResponse; - std::string mError; - std::unordered_map mSubscriptions; - bool mStopped; - Signal mEndedSignal; - - std::string clock(WatcherRef watcher); - void watchmanWatch(std::string dir); - BSER::Object watchmanRequest(BSER cmd); - void handleSubscription(BSER::Object obj); -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/windows/WindowsBackend.cc b/node_modules/@parcel/watcher/src/windows/WindowsBackend.cc deleted file mode 100644 index eabce1e..0000000 --- a/node_modules/@parcel/watcher/src/windows/WindowsBackend.cc +++ /dev/null @@ -1,282 +0,0 @@ -#include -#include -#include "../DirTree.hh" -#include "../shared/BruteForceBackend.hh" -#include "./WindowsBackend.hh" -#include "./win_utils.hh" - -#define DEFAULT_BUF_SIZE 1024 * 1024 -#define NETWORK_BUF_SIZE 64 * 1024 -#define CONVERT_TIME(ft) ULARGE_INTEGER{ft.dwLowDateTime, ft.dwHighDateTime}.QuadPart - -void BruteForceBackend::readTree(WatcherRef watcher, std::shared_ptr tree) { - std::stack directories; - - directories.push(watcher->mDir); - - while (!directories.empty()) { - HANDLE hFind = INVALID_HANDLE_VALUE; - - std::string path = directories.top(); - std::string spec = path + "\\*"; - directories.pop(); - - WIN32_FIND_DATA ffd; - hFind = FindFirstFile(spec.c_str(), &ffd); - - if (hFind == INVALID_HANDLE_VALUE) { - if (path == watcher->mDir) { - FindClose(hFind); - throw WatcherError("Error opening directory", watcher); - } - - tree->remove(path); - continue; - } - - do { - if (strcmp(ffd.cFileName, ".") != 0 && strcmp(ffd.cFileName, "..") != 0) { - std::string fullPath = path + "\\" + ffd.cFileName; - if (watcher->isIgnored(fullPath)) { - continue; - } - - tree->add(fullPath, CONVERT_TIME(ffd.ftLastWriteTime), ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY); - if (ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { - directories.push(fullPath); - } - } - } while (FindNextFile(hFind, &ffd) != 0); - - FindClose(hFind); - } -} - -void WindowsBackend::start() { - mRunning = true; - notifyStarted(); - - while (mRunning) { - SleepEx(INFINITE, true); - } -} - -WindowsBackend::~WindowsBackend() { - // Mark as stopped, and queue a noop function in the thread to break the loop - mRunning = false; - QueueUserAPC([](__in ULONG_PTR) {}, mThread.native_handle(), (ULONG_PTR)this); -} - -class Subscription: public WatcherState { -public: - Subscription(WindowsBackend *backend, WatcherRef watcher, std::shared_ptr tree) { - mRunning = true; - mBackend = backend; - mWatcher = watcher; - mTree = tree; - ZeroMemory(&mOverlapped, sizeof(OVERLAPPED)); - mOverlapped.hEvent = this; - mReadBuffer.resize(DEFAULT_BUF_SIZE); - mWriteBuffer.resize(DEFAULT_BUF_SIZE); - - mDirectoryHandle = CreateFileW( - utf8ToUtf16(watcher->mDir).data(), - FILE_LIST_DIRECTORY, - FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, - NULL, - OPEN_EXISTING, - FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OVERLAPPED, - NULL - ); - - if (mDirectoryHandle == INVALID_HANDLE_VALUE) { - throw WatcherError("Invalid handle", mWatcher); - } - - // Ensure that the path is a directory - BY_HANDLE_FILE_INFORMATION info; - bool success = GetFileInformationByHandle( - mDirectoryHandle, - &info - ); - - if (!success) { - throw WatcherError("Could not get file information", mWatcher); - } - - if (!(info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { - throw WatcherError("Not a directory", mWatcher); - } - } - - virtual ~Subscription() { - stop(); - } - - void run() { - try { - poll(); - } catch (WatcherError &err) { - mBackend->handleWatcherError(err); - } - } - - void stop() { - if (mRunning) { - mRunning = false; - CancelIo(mDirectoryHandle); - CloseHandle(mDirectoryHandle); - } - } - - void poll() { - if (!mRunning) { - return; - } - - // Asynchronously wait for changes. - int success = ReadDirectoryChangesW( - mDirectoryHandle, - mWriteBuffer.data(), - static_cast(mWriteBuffer.size()), - TRUE, // recursive - FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_DIR_NAME | FILE_NOTIFY_CHANGE_ATTRIBUTES - | FILE_NOTIFY_CHANGE_SIZE | FILE_NOTIFY_CHANGE_LAST_WRITE, - NULL, - &mOverlapped, - [](DWORD errorCode, DWORD numBytes, LPOVERLAPPED overlapped) { - auto subscription = reinterpret_cast(overlapped->hEvent); - try { - subscription->processEvents(errorCode); - } catch (WatcherError &err) { - subscription->mBackend->handleWatcherError(err); - } - } - ); - - if (!success) { - throw WatcherError("Failed to read changes", mWatcher); - } - } - - void processEvents(DWORD errorCode) { - if (!mRunning) { - return; - } - - switch (errorCode) { - case ERROR_OPERATION_ABORTED: - return; - case ERROR_INVALID_PARAMETER: - // resize buffers to network size (64kb), and try again - mReadBuffer.resize(NETWORK_BUF_SIZE); - mWriteBuffer.resize(NETWORK_BUF_SIZE); - poll(); - return; - case ERROR_NOTIFY_ENUM_DIR: - throw WatcherError("Buffer overflow. Some events may have been lost.", mWatcher); - case ERROR_ACCESS_DENIED: { - // This can happen if the watched directory is deleted. Check if that is the case, - // and if so emit a delete event. Otherwise, fall through to default error case. - DWORD attrs = GetFileAttributesW(utf8ToUtf16(mWatcher->mDir).data()); - bool isDir = attrs != INVALID_FILE_ATTRIBUTES && (attrs & FILE_ATTRIBUTE_DIRECTORY); - if (!isDir) { - mWatcher->mEvents.remove(mWatcher->mDir); - mTree->remove(mWatcher->mDir); - mWatcher->notify(); - stop(); - return; - } - } - default: - if (errorCode != ERROR_SUCCESS) { - throw WatcherError("Unknown error", mWatcher); - } - } - - // Swap read and write buffers, and poll again - std::swap(mWriteBuffer, mReadBuffer); - poll(); - - // Read change events - BYTE *base = mReadBuffer.data(); - while (true) { - PFILE_NOTIFY_INFORMATION info = (PFILE_NOTIFY_INFORMATION)base; - processEvent(info); - - if (info->NextEntryOffset == 0) { - break; - } - - base += info->NextEntryOffset; - } - - mWatcher->notify(); - } - - void processEvent(PFILE_NOTIFY_INFORMATION info) { - std::string path = mWatcher->mDir + "\\" + utf16ToUtf8(info->FileName, info->FileNameLength / sizeof(WCHAR)); - if (mWatcher->isIgnored(path)) { - return; - } - - switch (info->Action) { - case FILE_ACTION_ADDED: - case FILE_ACTION_RENAMED_NEW_NAME: { - WIN32_FILE_ATTRIBUTE_DATA data; - if (GetFileAttributesExW(utf8ToUtf16(path).data(), GetFileExInfoStandard, &data)) { - mWatcher->mEvents.create(path); - mTree->add(path, CONVERT_TIME(data.ftLastWriteTime), data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY); - } - break; - } - case FILE_ACTION_MODIFIED: { - WIN32_FILE_ATTRIBUTE_DATA data; - if (GetFileAttributesExW(utf8ToUtf16(path).data(), GetFileExInfoStandard, &data)) { - mTree->update(path, CONVERT_TIME(data.ftLastWriteTime)); - if (!(data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { - mWatcher->mEvents.update(path); - } - } - break; - } - case FILE_ACTION_REMOVED: - case FILE_ACTION_RENAMED_OLD_NAME: - mWatcher->mEvents.remove(path); - mTree->remove(path); - break; - } - } - -private: - WindowsBackend *mBackend; - std::shared_ptr mWatcher; - std::shared_ptr mTree; - bool mRunning; - HANDLE mDirectoryHandle; - std::vector mReadBuffer; - std::vector mWriteBuffer; - OVERLAPPED mOverlapped; -}; - -// This function is called by Backend::watch which takes a lock on mMutex -void WindowsBackend::subscribe(WatcherRef watcher) { - // Create a subscription for this watcher - auto sub = std::make_shared(this, watcher, getTree(watcher, false)); - watcher->state = sub; - - // Queue polling for this subscription in the correct thread. - bool success = QueueUserAPC([](__in ULONG_PTR ptr) { - Subscription *sub = (Subscription *)ptr; - sub->run(); - }, mThread.native_handle(), (ULONG_PTR)sub.get()); - - if (!success) { - throw std::runtime_error("Unable to queue APC"); - } -} - -// This function is called by Backend::unwatch which takes a lock on mMutex -void WindowsBackend::unsubscribe(WatcherRef watcher) { - watcher->state = nullptr; -} diff --git a/node_modules/@parcel/watcher/src/windows/WindowsBackend.hh b/node_modules/@parcel/watcher/src/windows/WindowsBackend.hh deleted file mode 100644 index d679782..0000000 --- a/node_modules/@parcel/watcher/src/windows/WindowsBackend.hh +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef WINDOWS_H -#define WINDOWS_H - -#include -#include -#include "../shared/BruteForceBackend.hh" - -class WindowsBackend : public BruteForceBackend { -public: - void start() override; - ~WindowsBackend(); - void subscribe(WatcherRef watcher) override; - void unsubscribe(WatcherRef watcher) override; -private: - bool mRunning; -}; - -#endif diff --git a/node_modules/@parcel/watcher/src/windows/win_utils.cc b/node_modules/@parcel/watcher/src/windows/win_utils.cc deleted file mode 100644 index 986690f..0000000 --- a/node_modules/@parcel/watcher/src/windows/win_utils.cc +++ /dev/null @@ -1,44 +0,0 @@ -#include "./win_utils.hh" - -std::wstring utf8ToUtf16(std::string input) { - unsigned int len = MultiByteToWideChar(CP_UTF8, 0, input.c_str(), -1, NULL, 0); - WCHAR *output = new WCHAR[len]; - MultiByteToWideChar(CP_UTF8, 0, input.c_str(), -1, output, len); - std::wstring res(output); - delete output; - return res; -} - -std::string utf16ToUtf8(const WCHAR *input, size_t length) { - unsigned int len = WideCharToMultiByte(CP_UTF8, 0, input, length, NULL, 0, NULL, NULL); - char *output = new char[len + 1]; - WideCharToMultiByte(CP_UTF8, 0, input, length, output, len, NULL, NULL); - output[len] = '\0'; - std::string res(output); - delete output; - return res; -} - -std::string normalizePath(std::string path) { - // Prevent truncation to MAX_PATH characters by adding the \\?\ prefix - std::wstring p = utf8ToUtf16("\\\\?\\" + path); - - // Get the required length for the output - unsigned int len = GetLongPathNameW(p.data(), NULL, 0); - if (!len) { - return path; - } - - // Allocate output array and get long path - WCHAR *output = new WCHAR[len]; - len = GetLongPathNameW(p.data(), output, len); - if (!len) { - delete output; - return path; - } - - // Convert back to utf8 - std::string res = utf16ToUtf8(output + 4, len - 4); - delete output; - return res; -} diff --git a/node_modules/@parcel/watcher/src/windows/win_utils.hh b/node_modules/@parcel/watcher/src/windows/win_utils.hh deleted file mode 100644 index 2313493..0000000 --- a/node_modules/@parcel/watcher/src/windows/win_utils.hh +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef WIN_UTILS_H -#define WIN_UTILS_H - -#include -#include - -std::wstring utf8ToUtf16(std::string input); -std::string utf16ToUtf8(const WCHAR *input, size_t length); -std::string normalizePath(std::string path); - -#endif diff --git a/node_modules/@parcel/watcher/wrapper.js b/node_modules/@parcel/watcher/wrapper.js deleted file mode 100644 index 496d56b..0000000 --- a/node_modules/@parcel/watcher/wrapper.js +++ /dev/null @@ -1,77 +0,0 @@ -const path = require('path'); -const micromatch = require('micromatch'); -const isGlob = require('is-glob'); - -function normalizeOptions(dir, opts = {}) { - const { ignore, ...rest } = opts; - - if (Array.isArray(ignore)) { - opts = { ...rest }; - - for (const value of ignore) { - if (isGlob(value)) { - if (!opts.ignoreGlobs) { - opts.ignoreGlobs = []; - } - - const regex = micromatch.makeRe(value, { - // We set `dot: true` to workaround an issue with the - // regular expression on Linux where the resulting - // negative lookahead `(?!(\\/|^)` was never matching - // in some cases. See also https://bit.ly/3UZlQDm - dot: true, - // C++ does not support lookbehind regex patterns, they - // were only added later to JavaScript engines - // (https://bit.ly/3V7S6UL) - lookbehinds: false - }); - opts.ignoreGlobs.push(regex.source); - } else { - if (!opts.ignorePaths) { - opts.ignorePaths = []; - } - - opts.ignorePaths.push(path.resolve(dir, value)); - } - } - } - - return opts; -} - -exports.createWrapper = (binding) => { - return { - writeSnapshot(dir, snapshot, opts) { - return binding.writeSnapshot( - path.resolve(dir), - path.resolve(snapshot), - normalizeOptions(dir, opts), - ); - }, - getEventsSince(dir, snapshot, opts) { - return binding.getEventsSince( - path.resolve(dir), - path.resolve(snapshot), - normalizeOptions(dir, opts), - ); - }, - async subscribe(dir, fn, opts) { - dir = path.resolve(dir); - opts = normalizeOptions(dir, opts); - await binding.subscribe(dir, fn, opts); - - return { - unsubscribe() { - return binding.unsubscribe(dir, fn, opts); - }, - }; - }, - unsubscribe(dir, fn, opts) { - return binding.unsubscribe( - path.resolve(dir), - fn, - normalizeOptions(dir, opts), - ); - } - }; -}; diff --git a/node_modules/@rollup/rollup-darwin-arm64/README.md b/node_modules/@rollup/rollup-darwin-arm64/README.md deleted file mode 100644 index c29619c..0000000 --- a/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/@rollup/rollup-darwin-arm64/package.json b/node_modules/@rollup/rollup-darwin-arm64/package.json deleted file mode 100644 index d2c98c3..0000000 --- a/node_modules/@rollup/rollup-darwin-arm64/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "@rollup/rollup-darwin-arm64", - "version": "4.50.2", - "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": "rollup/rollup", - "main": "./rollup.darwin-arm64.node" -} \ No newline at end of file diff --git a/node_modules/@rollup/rollup-darwin-arm64/rollup.darwin-arm64.node b/node_modules/@rollup/rollup-darwin-arm64/rollup.darwin-arm64.node deleted file mode 100644 index 4b5d3ad..0000000 Binary files a/node_modules/@rollup/rollup-darwin-arm64/rollup.darwin-arm64.node and /dev/null differ diff --git a/node_modules/@types/estree/LICENSE b/node_modules/@types/estree/LICENSE deleted file mode 100644 index 9e841e7..0000000 --- a/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/@types/estree/README.md b/node_modules/@types/estree/README.md deleted file mode 100644 index 2af760b..0000000 --- a/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/@types/estree/flow.d.ts b/node_modules/@types/estree/flow.d.ts deleted file mode 100644 index 9d001a9..0000000 --- a/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/@types/estree/index.d.ts b/node_modules/@types/estree/index.d.ts deleted file mode 100644 index 2bc66fb..0000000 --- a/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/@types/estree/package.json b/node_modules/@types/estree/package.json deleted file mode 100644 index 68c0782..0000000 --- a/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/ansi-regex/index.d.ts b/node_modules/ansi-regex/index.d.ts deleted file mode 100644 index 2dbf6af..0000000 --- a/node_modules/ansi-regex/index.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -declare namespace ansiRegex { - interface Options { - /** - Match only the first ANSI escape. - - @default false - */ - onlyFirst: boolean; - } -} - -/** -Regular expression for matching ANSI escape codes. - -@example -``` -import ansiRegex = require('ansi-regex'); - -ansiRegex().test('\u001B[4mcake\u001B[0m'); -//=> true - -ansiRegex().test('cake'); -//=> false - -'\u001B[4mcake\u001B[0m'.match(ansiRegex()); -//=> ['\u001B[4m', '\u001B[0m'] - -'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true})); -//=> ['\u001B[4m'] - -'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex()); -//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007'] -``` -*/ -declare function ansiRegex(options?: ansiRegex.Options): RegExp; - -export = ansiRegex; diff --git a/node_modules/ansi-regex/index.js b/node_modules/ansi-regex/index.js deleted file mode 100644 index 616ff83..0000000 --- a/node_modules/ansi-regex/index.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = ({onlyFirst = false} = {}) => { - const pattern = [ - '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', - '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))' - ].join('|'); - - return new RegExp(pattern, onlyFirst ? undefined : 'g'); -}; diff --git a/node_modules/ansi-regex/license b/node_modules/ansi-regex/license deleted file mode 100644 index e7af2f7..0000000 --- a/node_modules/ansi-regex/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -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/ansi-regex/package.json b/node_modules/ansi-regex/package.json deleted file mode 100644 index 017f531..0000000 --- a/node_modules/ansi-regex/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "name": "ansi-regex", - "version": "5.0.1", - "description": "Regular expression for matching ANSI escape codes", - "license": "MIT", - "repository": "chalk/ansi-regex", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "view-supported": "node fixtures/view-codes.js" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "text", - "regex", - "regexp", - "re", - "match", - "test", - "find", - "pattern" - ], - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.9.0", - "xo": "^0.25.3" - } -} diff --git a/node_modules/ansi-regex/readme.md b/node_modules/ansi-regex/readme.md deleted file mode 100644 index 4d848bc..0000000 --- a/node_modules/ansi-regex/readme.md +++ /dev/null @@ -1,78 +0,0 @@ -# ansi-regex - -> Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) - - -## Install - -``` -$ npm install ansi-regex -``` - - -## Usage - -```js -const ansiRegex = require('ansi-regex'); - -ansiRegex().test('\u001B[4mcake\u001B[0m'); -//=> true - -ansiRegex().test('cake'); -//=> false - -'\u001B[4mcake\u001B[0m'.match(ansiRegex()); -//=> ['\u001B[4m', '\u001B[0m'] - -'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true})); -//=> ['\u001B[4m'] - -'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex()); -//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007'] -``` - - -## API - -### ansiRegex(options?) - -Returns a regex for matching ANSI escape codes. - -#### options - -Type: `object` - -##### onlyFirst - -Type: `boolean`
-Default: `false` *(Matches any ANSI escape codes in a string)* - -Match only the first ANSI escape. - - -## FAQ - -### Why do you test for codes not in the ECMA 48 standard? - -Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them. - -On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out. - - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/node_modules/ansi-styles/index.d.ts b/node_modules/ansi-styles/index.d.ts deleted file mode 100644 index 44a907e..0000000 --- a/node_modules/ansi-styles/index.d.ts +++ /dev/null @@ -1,345 +0,0 @@ -declare type CSSColor = - | 'aliceblue' - | 'antiquewhite' - | 'aqua' - | 'aquamarine' - | 'azure' - | 'beige' - | 'bisque' - | 'black' - | 'blanchedalmond' - | 'blue' - | 'blueviolet' - | 'brown' - | 'burlywood' - | 'cadetblue' - | 'chartreuse' - | 'chocolate' - | 'coral' - | 'cornflowerblue' - | 'cornsilk' - | 'crimson' - | 'cyan' - | 'darkblue' - | 'darkcyan' - | 'darkgoldenrod' - | 'darkgray' - | 'darkgreen' - | 'darkgrey' - | 'darkkhaki' - | 'darkmagenta' - | 'darkolivegreen' - | 'darkorange' - | 'darkorchid' - | 'darkred' - | 'darksalmon' - | 'darkseagreen' - | 'darkslateblue' - | 'darkslategray' - | 'darkslategrey' - | 'darkturquoise' - | 'darkviolet' - | 'deeppink' - | 'deepskyblue' - | 'dimgray' - | 'dimgrey' - | 'dodgerblue' - | 'firebrick' - | 'floralwhite' - | 'forestgreen' - | 'fuchsia' - | 'gainsboro' - | 'ghostwhite' - | 'gold' - | 'goldenrod' - | 'gray' - | 'green' - | 'greenyellow' - | 'grey' - | 'honeydew' - | 'hotpink' - | 'indianred' - | 'indigo' - | 'ivory' - | 'khaki' - | 'lavender' - | 'lavenderblush' - | 'lawngreen' - | 'lemonchiffon' - | 'lightblue' - | 'lightcoral' - | 'lightcyan' - | 'lightgoldenrodyellow' - | 'lightgray' - | 'lightgreen' - | 'lightgrey' - | 'lightpink' - | 'lightsalmon' - | 'lightseagreen' - | 'lightskyblue' - | 'lightslategray' - | 'lightslategrey' - | 'lightsteelblue' - | 'lightyellow' - | 'lime' - | 'limegreen' - | 'linen' - | 'magenta' - | 'maroon' - | 'mediumaquamarine' - | 'mediumblue' - | 'mediumorchid' - | 'mediumpurple' - | 'mediumseagreen' - | 'mediumslateblue' - | 'mediumspringgreen' - | 'mediumturquoise' - | 'mediumvioletred' - | 'midnightblue' - | 'mintcream' - | 'mistyrose' - | 'moccasin' - | 'navajowhite' - | 'navy' - | 'oldlace' - | 'olive' - | 'olivedrab' - | 'orange' - | 'orangered' - | 'orchid' - | 'palegoldenrod' - | 'palegreen' - | 'paleturquoise' - | 'palevioletred' - | 'papayawhip' - | 'peachpuff' - | 'peru' - | 'pink' - | 'plum' - | 'powderblue' - | 'purple' - | 'rebeccapurple' - | 'red' - | 'rosybrown' - | 'royalblue' - | 'saddlebrown' - | 'salmon' - | 'sandybrown' - | 'seagreen' - | 'seashell' - | 'sienna' - | 'silver' - | 'skyblue' - | 'slateblue' - | 'slategray' - | 'slategrey' - | 'snow' - | 'springgreen' - | 'steelblue' - | 'tan' - | 'teal' - | 'thistle' - | 'tomato' - | 'turquoise' - | 'violet' - | 'wheat' - | 'white' - | 'whitesmoke' - | 'yellow' - | 'yellowgreen'; - -declare namespace ansiStyles { - interface ColorConvert { - /** - The RGB color space. - - @param red - (`0`-`255`) - @param green - (`0`-`255`) - @param blue - (`0`-`255`) - */ - rgb(red: number, green: number, blue: number): string; - - /** - The RGB HEX color space. - - @param hex - A hexadecimal string containing RGB data. - */ - hex(hex: string): string; - - /** - @param keyword - A CSS color name. - */ - keyword(keyword: CSSColor): string; - - /** - The HSL color space. - - @param hue - (`0`-`360`) - @param saturation - (`0`-`100`) - @param lightness - (`0`-`100`) - */ - hsl(hue: number, saturation: number, lightness: number): string; - - /** - The HSV color space. - - @param hue - (`0`-`360`) - @param saturation - (`0`-`100`) - @param value - (`0`-`100`) - */ - hsv(hue: number, saturation: number, value: number): string; - - /** - The HSV color space. - - @param hue - (`0`-`360`) - @param whiteness - (`0`-`100`) - @param blackness - (`0`-`100`) - */ - hwb(hue: number, whiteness: number, blackness: number): string; - - /** - Use a [4-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4-bit) to set text color. - */ - ansi(ansi: number): string; - - /** - Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color. - */ - ansi256(ansi: number): string; - } - - interface CSPair { - /** - The ANSI terminal control sequence for starting this style. - */ - readonly open: string; - - /** - The ANSI terminal control sequence for ending this style. - */ - readonly close: string; - } - - interface ColorBase { - readonly ansi: ColorConvert; - readonly ansi256: ColorConvert; - readonly ansi16m: ColorConvert; - - /** - The ANSI terminal control sequence for ending this color. - */ - readonly close: string; - } - - interface Modifier { - /** - Resets the current color chain. - */ - readonly reset: CSPair; - - /** - Make text bold. - */ - readonly bold: CSPair; - - /** - Emitting only a small amount of light. - */ - readonly dim: CSPair; - - /** - Make text italic. (Not widely supported) - */ - readonly italic: CSPair; - - /** - Make text underline. (Not widely supported) - */ - readonly underline: CSPair; - - /** - Inverse background and foreground colors. - */ - readonly inverse: CSPair; - - /** - Prints the text, but makes it invisible. - */ - readonly hidden: CSPair; - - /** - Puts a horizontal line through the center of the text. (Not widely supported) - */ - readonly strikethrough: CSPair; - } - - interface ForegroundColor { - readonly black: CSPair; - readonly red: CSPair; - readonly green: CSPair; - readonly yellow: CSPair; - readonly blue: CSPair; - readonly cyan: CSPair; - readonly magenta: CSPair; - readonly white: CSPair; - - /** - Alias for `blackBright`. - */ - readonly gray: CSPair; - - /** - Alias for `blackBright`. - */ - readonly grey: CSPair; - - readonly blackBright: CSPair; - readonly redBright: CSPair; - readonly greenBright: CSPair; - readonly yellowBright: CSPair; - readonly blueBright: CSPair; - readonly cyanBright: CSPair; - readonly magentaBright: CSPair; - readonly whiteBright: CSPair; - } - - interface BackgroundColor { - readonly bgBlack: CSPair; - readonly bgRed: CSPair; - readonly bgGreen: CSPair; - readonly bgYellow: CSPair; - readonly bgBlue: CSPair; - readonly bgCyan: CSPair; - readonly bgMagenta: CSPair; - readonly bgWhite: CSPair; - - /** - Alias for `bgBlackBright`. - */ - readonly bgGray: CSPair; - - /** - Alias for `bgBlackBright`. - */ - readonly bgGrey: CSPair; - - readonly bgBlackBright: CSPair; - readonly bgRedBright: CSPair; - readonly bgGreenBright: CSPair; - readonly bgYellowBright: CSPair; - readonly bgBlueBright: CSPair; - readonly bgCyanBright: CSPair; - readonly bgMagentaBright: CSPair; - readonly bgWhiteBright: CSPair; - } -} - -declare const ansiStyles: { - readonly modifier: ansiStyles.Modifier; - readonly color: ansiStyles.ForegroundColor & ansiStyles.ColorBase; - readonly bgColor: ansiStyles.BackgroundColor & ansiStyles.ColorBase; - readonly codes: ReadonlyMap; -} & ansiStyles.BackgroundColor & ansiStyles.ForegroundColor & ansiStyles.Modifier; - -export = ansiStyles; diff --git a/node_modules/ansi-styles/index.js b/node_modules/ansi-styles/index.js deleted file mode 100644 index 5d82581..0000000 --- a/node_modules/ansi-styles/index.js +++ /dev/null @@ -1,163 +0,0 @@ -'use strict'; - -const wrapAnsi16 = (fn, offset) => (...args) => { - const code = fn(...args); - return `\u001B[${code + offset}m`; -}; - -const wrapAnsi256 = (fn, offset) => (...args) => { - const code = fn(...args); - return `\u001B[${38 + offset};5;${code}m`; -}; - -const wrapAnsi16m = (fn, offset) => (...args) => { - const rgb = fn(...args); - return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`; -}; - -const ansi2ansi = n => n; -const rgb2rgb = (r, g, b) => [r, g, b]; - -const setLazyProperty = (object, property, get) => { - Object.defineProperty(object, property, { - get: () => { - const value = get(); - - Object.defineProperty(object, property, { - value, - enumerable: true, - configurable: true - }); - - return value; - }, - enumerable: true, - configurable: true - }); -}; - -/** @type {typeof import('color-convert')} */ -let colorConvert; -const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => { - if (colorConvert === undefined) { - colorConvert = require('color-convert'); - } - - const offset = isBackground ? 10 : 0; - const styles = {}; - - for (const [sourceSpace, suite] of Object.entries(colorConvert)) { - const name = sourceSpace === 'ansi16' ? 'ansi' : sourceSpace; - if (sourceSpace === targetSpace) { - styles[name] = wrap(identity, offset); - } else if (typeof suite === 'object') { - styles[name] = wrap(suite[targetSpace], offset); - } - } - - return styles; -}; - -function assembleStyles() { - const codes = new Map(); - const styles = { - modifier: { - reset: [0, 0], - // 21 isn't widely supported and 22 does the same thing - bold: [1, 22], - dim: [2, 22], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - hidden: [8, 28], - strikethrough: [9, 29] - }, - color: { - black: [30, 39], - red: [31, 39], - green: [32, 39], - yellow: [33, 39], - blue: [34, 39], - magenta: [35, 39], - cyan: [36, 39], - white: [37, 39], - - // Bright color - blackBright: [90, 39], - redBright: [91, 39], - greenBright: [92, 39], - yellowBright: [93, 39], - blueBright: [94, 39], - magentaBright: [95, 39], - cyanBright: [96, 39], - whiteBright: [97, 39] - }, - bgColor: { - bgBlack: [40, 49], - bgRed: [41, 49], - bgGreen: [42, 49], - bgYellow: [43, 49], - bgBlue: [44, 49], - bgMagenta: [45, 49], - bgCyan: [46, 49], - bgWhite: [47, 49], - - // Bright color - bgBlackBright: [100, 49], - bgRedBright: [101, 49], - bgGreenBright: [102, 49], - bgYellowBright: [103, 49], - bgBlueBright: [104, 49], - bgMagentaBright: [105, 49], - bgCyanBright: [106, 49], - bgWhiteBright: [107, 49] - } - }; - - // Alias bright black as gray (and grey) - styles.color.gray = styles.color.blackBright; - styles.bgColor.bgGray = styles.bgColor.bgBlackBright; - styles.color.grey = styles.color.blackBright; - styles.bgColor.bgGrey = styles.bgColor.bgBlackBright; - - for (const [groupName, group] of Object.entries(styles)) { - for (const [styleName, style] of Object.entries(group)) { - styles[styleName] = { - open: `\u001B[${style[0]}m`, - close: `\u001B[${style[1]}m` - }; - - group[styleName] = styles[styleName]; - - codes.set(style[0], style[1]); - } - - Object.defineProperty(styles, groupName, { - value: group, - enumerable: false - }); - } - - Object.defineProperty(styles, 'codes', { - value: codes, - enumerable: false - }); - - styles.color.close = '\u001B[39m'; - styles.bgColor.close = '\u001B[49m'; - - setLazyProperty(styles.color, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, false)); - setLazyProperty(styles.color, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, false)); - setLazyProperty(styles.color, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, false)); - setLazyProperty(styles.bgColor, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, true)); - setLazyProperty(styles.bgColor, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, true)); - setLazyProperty(styles.bgColor, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, true)); - - return styles; -} - -// Make the export immutable -Object.defineProperty(module, 'exports', { - enumerable: true, - get: assembleStyles -}); diff --git a/node_modules/ansi-styles/license b/node_modules/ansi-styles/license deleted file mode 100644 index e7af2f7..0000000 --- a/node_modules/ansi-styles/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -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/ansi-styles/package.json b/node_modules/ansi-styles/package.json deleted file mode 100644 index 7539328..0000000 --- a/node_modules/ansi-styles/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "ansi-styles", - "version": "4.3.0", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "color-convert": "^2.0.1" - }, - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } -} diff --git a/node_modules/ansi-styles/readme.md b/node_modules/ansi-styles/readme.md deleted file mode 100644 index 24883de..0000000 --- a/node_modules/ansi-styles/readme.md +++ /dev/null @@ -1,152 +0,0 @@ -# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) - -> [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal - -You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings. - - - -## Install - -``` -$ npm install ansi-styles -``` - -## Usage - -```js -const style = require('ansi-styles'); - -console.log(`${style.green.open}Hello world!${style.green.close}`); - - -// Color conversion between 16/256/truecolor -// NOTE: If conversion goes to 16 colors or 256 colors, the original color -// may be degraded to fit that color palette. This means terminals -// that do not support 16 million colors will best-match the -// original color. -console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close); -console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close); -console.log(style.color.ansi16m.hex('#abcdef') + 'Hello world!' + style.color.close); -``` - -## API - -Each style has an `open` and `close` property. - -## Styles - -### Modifiers - -- `reset` -- `bold` -- `dim` -- `italic` *(Not widely supported)* -- `underline` -- `inverse` -- `hidden` -- `strikethrough` *(Not widely supported)* - -### Colors - -- `black` -- `red` -- `green` -- `yellow` -- `blue` -- `magenta` -- `cyan` -- `white` -- `blackBright` (alias: `gray`, `grey`) -- `redBright` -- `greenBright` -- `yellowBright` -- `blueBright` -- `magentaBright` -- `cyanBright` -- `whiteBright` - -### Background colors - -- `bgBlack` -- `bgRed` -- `bgGreen` -- `bgYellow` -- `bgBlue` -- `bgMagenta` -- `bgCyan` -- `bgWhite` -- `bgBlackBright` (alias: `bgGray`, `bgGrey`) -- `bgRedBright` -- `bgGreenBright` -- `bgYellowBright` -- `bgBlueBright` -- `bgMagentaBright` -- `bgCyanBright` -- `bgWhiteBright` - -## Advanced usage - -By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module. - -- `style.modifier` -- `style.color` -- `style.bgColor` - -###### Example - -```js -console.log(style.color.green.open); -``` - -Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `style.codes`, which returns a `Map` with the open codes as keys and close codes as values. - -###### Example - -```js -console.log(style.codes.get(36)); -//=> 39 -``` - -## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728) - -`ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors. - -The following color spaces from `color-convert` are supported: - -- `rgb` -- `hex` -- `keyword` -- `hsl` -- `hsv` -- `hwb` -- `ansi` -- `ansi256` - -To use these, call the associated conversion function with the intended output, for example: - -```js -style.color.ansi.rgb(100, 200, 15); // RGB to 16 color ansi foreground code -style.bgColor.ansi.rgb(100, 200, 15); // RGB to 16 color ansi background code - -style.color.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code -style.bgColor.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code - -style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground code -style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code -``` - -## Related - -- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - -## For enterprise - -Available as part of the Tidelift Subscription. - -The maintainers of `ansi-styles` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-ansi-styles?utm_source=npm-ansi-styles&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/node_modules/anymatch/LICENSE b/node_modules/anymatch/LICENSE deleted file mode 100755 index 491766c..0000000 --- a/node_modules/anymatch/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com) - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/anymatch/README.md b/node_modules/anymatch/README.md deleted file mode 100755 index 1dd67f5..0000000 --- a/node_modules/anymatch/README.md +++ /dev/null @@ -1,87 +0,0 @@ -anymatch [![Build Status](https://travis-ci.org/micromatch/anymatch.svg?branch=master)](https://travis-ci.org/micromatch/anymatch) [![Coverage Status](https://img.shields.io/coveralls/micromatch/anymatch.svg?branch=master)](https://coveralls.io/r/micromatch/anymatch?branch=master) -====== -Javascript module to match a string against a regular expression, glob, string, -or function that takes the string as an argument and returns a truthy or falsy -value. The matcher can also be an array of any or all of these. Useful for -allowing a very flexible user-defined config to define things like file paths. - -__Note: This module has Bash-parity, please be aware that Windows-style backslashes are not supported as separators. See https://github.com/micromatch/micromatch#backslashes for more information.__ - - -Usage ------ -```sh -npm install anymatch -``` - -#### anymatch(matchers, testString, [returnIndex], [options]) -* __matchers__: (_Array|String|RegExp|Function_) -String to be directly matched, string with glob patterns, regular expression -test, function that takes the testString as an argument and returns a truthy -value if it should be matched, or an array of any number and mix of these types. -* __testString__: (_String|Array_) The string to test against the matchers. If -passed as an array, the first element of the array will be used as the -`testString` for non-function matchers, while the entire array will be applied -as the arguments for function matchers. -* __options__: (_Object_ [optional]_) Any of the [picomatch](https://github.com/micromatch/picomatch#options) options. - * __returnIndex__: (_Boolean [optional]_) If true, return the array index of -the first matcher that that testString matched, or -1 if no match, instead of a -boolean result. - -```js -const anymatch = require('anymatch'); - -const matchers = [ 'path/to/file.js', 'path/anyjs/**/*.js', /foo.js$/, string => string.includes('bar') && string.length > 10 ] ; - -anymatch(matchers, 'path/to/file.js'); // true -anymatch(matchers, 'path/anyjs/baz.js'); // true -anymatch(matchers, 'path/to/foo.js'); // true -anymatch(matchers, 'path/to/bar.js'); // true -anymatch(matchers, 'bar.js'); // false - -// returnIndex = true -anymatch(matchers, 'foo.js', {returnIndex: true}); // 2 -anymatch(matchers, 'path/anyjs/foo.js', {returnIndex: true}); // 1 - -// any picomatc - -// using globs to match directories and their children -anymatch('node_modules', 'node_modules'); // true -anymatch('node_modules', 'node_modules/somelib/index.js'); // false -anymatch('node_modules/**', 'node_modules/somelib/index.js'); // true -anymatch('node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // false -anymatch('**/node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // true - -const matcher = anymatch(matchers); -['foo.js', 'bar.js'].filter(matcher); // [ 'foo.js' ] -anymatch master* ❯ - -``` - -#### anymatch(matchers) -You can also pass in only your matcher(s) to get a curried function that has -already been bound to the provided matching criteria. This can be used as an -`Array#filter` callback. - -```js -var matcher = anymatch(matchers); - -matcher('path/to/file.js'); // true -matcher('path/anyjs/baz.js', true); // 1 - -['foo.js', 'bar.js'].filter(matcher); // ['foo.js'] -``` - -Changelog ----------- -[See release notes page on GitHub](https://github.com/micromatch/anymatch/releases) - -- **v3.0:** Removed `startIndex` and `endIndex` arguments. Node 8.x-only. -- **v2.0:** [micromatch](https://github.com/jonschlinkert/micromatch) moves away from minimatch-parity and inline with Bash. This includes handling backslashes differently (see https://github.com/micromatch/micromatch#backslashes for more information). -- **v1.2:** anymatch uses [micromatch](https://github.com/jonschlinkert/micromatch) -for glob pattern matching. Issues with glob pattern matching should be -reported directly to the [micromatch issue tracker](https://github.com/jonschlinkert/micromatch/issues). - -License -------- -[ISC](https://raw.github.com/micromatch/anymatch/master/LICENSE) diff --git a/node_modules/anymatch/index.d.ts b/node_modules/anymatch/index.d.ts deleted file mode 100755 index 3ef7eaa..0000000 --- a/node_modules/anymatch/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -type AnymatchFn = (testString: string) => boolean; -type AnymatchPattern = string|RegExp|AnymatchFn; -type AnymatchMatcher = AnymatchPattern|AnymatchPattern[] -type AnymatchTester = { - (testString: string|any[], returnIndex: true): number; - (testString: string|any[]): boolean; -} - -type PicomatchOptions = {dot: boolean}; - -declare const anymatch: { - (matchers: AnymatchMatcher): AnymatchTester; - (matchers: AnymatchMatcher, testString: null, returnIndex: true | PicomatchOptions): AnymatchTester; - (matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number; - (matchers: AnymatchMatcher, testString: string|any[]): boolean; -} - -export {AnymatchMatcher as Matcher} -export {AnymatchTester as Tester} -export default anymatch diff --git a/node_modules/anymatch/index.js b/node_modules/anymatch/index.js deleted file mode 100755 index 8eb73e9..0000000 --- a/node_modules/anymatch/index.js +++ /dev/null @@ -1,104 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { value: true }); - -const picomatch = require('picomatch'); -const normalizePath = require('normalize-path'); - -/** - * @typedef {(testString: string) => boolean} AnymatchFn - * @typedef {string|RegExp|AnymatchFn} AnymatchPattern - * @typedef {AnymatchPattern|AnymatchPattern[]} AnymatchMatcher - */ -const BANG = '!'; -const DEFAULT_OPTIONS = {returnIndex: false}; -const arrify = (item) => Array.isArray(item) ? item : [item]; - -/** - * @param {AnymatchPattern} matcher - * @param {object} options - * @returns {AnymatchFn} - */ -const createPattern = (matcher, options) => { - if (typeof matcher === 'function') { - return matcher; - } - if (typeof matcher === 'string') { - const glob = picomatch(matcher, options); - return (string) => matcher === string || glob(string); - } - if (matcher instanceof RegExp) { - return (string) => matcher.test(string); - } - return (string) => false; -}; - -/** - * @param {Array} patterns - * @param {Array} negPatterns - * @param {String|Array} args - * @param {Boolean} returnIndex - * @returns {boolean|number} - */ -const matchPatterns = (patterns, negPatterns, args, returnIndex) => { - const isList = Array.isArray(args); - const _path = isList ? args[0] : args; - if (!isList && typeof _path !== 'string') { - throw new TypeError('anymatch: second argument must be a string: got ' + - Object.prototype.toString.call(_path)) - } - const path = normalizePath(_path, false); - - for (let index = 0; index < negPatterns.length; index++) { - const nglob = negPatterns[index]; - if (nglob(path)) { - return returnIndex ? -1 : false; - } - } - - const applied = isList && [path].concat(args.slice(1)); - for (let index = 0; index < patterns.length; index++) { - const pattern = patterns[index]; - if (isList ? pattern(...applied) : pattern(path)) { - return returnIndex ? index : true; - } - } - - return returnIndex ? -1 : false; -}; - -/** - * @param {AnymatchMatcher} matchers - * @param {Array|string} testString - * @param {object} options - * @returns {boolean|number|Function} - */ -const anymatch = (matchers, testString, options = DEFAULT_OPTIONS) => { - if (matchers == null) { - throw new TypeError('anymatch: specify first argument'); - } - const opts = typeof options === 'boolean' ? {returnIndex: options} : options; - const returnIndex = opts.returnIndex || false; - - // Early cache for matchers. - const mtchers = arrify(matchers); - const negatedGlobs = mtchers - .filter(item => typeof item === 'string' && item.charAt(0) === BANG) - .map(item => item.slice(1)) - .map(item => picomatch(item, opts)); - const patterns = mtchers - .filter(item => typeof item !== 'string' || (typeof item === 'string' && item.charAt(0) !== BANG)) - .map(matcher => createPattern(matcher, opts)); - - if (testString == null) { - return (testString, ri = false) => { - const returnIndex = typeof ri === 'boolean' ? ri : false; - return matchPatterns(patterns, negatedGlobs, testString, returnIndex); - } - } - - return matchPatterns(patterns, negatedGlobs, testString, returnIndex); -}; - -anymatch.default = anymatch; -module.exports = anymatch; diff --git a/node_modules/anymatch/package.json b/node_modules/anymatch/package.json deleted file mode 100755 index 2cb2307..0000000 --- a/node_modules/anymatch/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "anymatch", - "version": "3.1.3", - "description": "Matches strings against configurable strings, globs, regular expressions, and/or functions", - "files": [ - "index.js", - "index.d.ts" - ], - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "author": { - "name": "Elan Shanker", - "url": "https://github.com/es128" - }, - "license": "ISC", - "homepage": "https://github.com/micromatch/anymatch", - "repository": { - "type": "git", - "url": "https://github.com/micromatch/anymatch" - }, - "keywords": [ - "match", - "any", - "string", - "file", - "fs", - "list", - "glob", - "regex", - "regexp", - "regular", - "expression", - "function" - ], - "scripts": { - "test": "nyc mocha", - "mocha": "mocha" - }, - "devDependencies": { - "mocha": "^6.1.3", - "nyc": "^14.0.0" - }, - "engines": { - "node": ">= 8" - } -} diff --git a/node_modules/balanced-match/.github/FUNDING.yml b/node_modules/balanced-match/.github/FUNDING.yml deleted file mode 100755 index cea8b16..0000000 --- a/node_modules/balanced-match/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -tidelift: "npm/balanced-match" -patreon: juliangruber diff --git a/node_modules/balanced-match/LICENSE.md b/node_modules/balanced-match/LICENSE.md deleted file mode 100755 index 2cdc8e4..0000000 --- a/node_modules/balanced-match/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> - -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/balanced-match/README.md b/node_modules/balanced-match/README.md deleted file mode 100755 index d2a48b6..0000000 --- a/node_modules/balanced-match/README.md +++ /dev/null @@ -1,97 +0,0 @@ -# balanced-match - -Match balanced string pairs, like `{` and `}` or `` and ``. Supports regular expressions as well! - -[![build status](https://secure.travis-ci.org/juliangruber/balanced-match.svg)](http://travis-ci.org/juliangruber/balanced-match) -[![downloads](https://img.shields.io/npm/dm/balanced-match.svg)](https://www.npmjs.org/package/balanced-match) - -[![testling badge](https://ci.testling.com/juliangruber/balanced-match.png)](https://ci.testling.com/juliangruber/balanced-match) - -## Example - -Get the first matching pair of braces: - -```js -var balanced = require('balanced-match'); - -console.log(balanced('{', '}', 'pre{in{nested}}post')); -console.log(balanced('{', '}', 'pre{first}between{second}post')); -console.log(balanced(/\s+\{\s+/, /\s+\}\s+/, 'pre { in{nest} } post')); -``` - -The matches are: - -```bash -$ node example.js -{ start: 3, end: 14, pre: 'pre', body: 'in{nested}', post: 'post' } -{ start: 3, - end: 9, - pre: 'pre', - body: 'first', - post: 'between{second}post' } -{ start: 3, end: 17, pre: 'pre', body: 'in{nest}', post: 'post' } -``` - -## API - -### var m = balanced(a, b, str) - -For the first non-nested matching pair of `a` and `b` in `str`, return an -object with those keys: - -* **start** the index of the first match of `a` -* **end** the index of the matching `b` -* **pre** the preamble, `a` and `b` not included -* **body** the match, `a` and `b` not included -* **post** the postscript, `a` and `b` not included - -If there's no match, `undefined` will be returned. - -If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `['{', 'a', '']` and `{a}}` will match `['', 'a', '}']`. - -### var r = balanced.range(a, b, str) - -For the first non-nested matching pair of `a` and `b` in `str`, return an -array with indexes: `[ , ]`. - -If there's no match, `undefined` will be returned. - -If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `[ 1, 3 ]` and `{a}}` will match `[0, 2]`. - -## Installation - -With [npm](https://npmjs.org) do: - -```bash -npm install balanced-match -``` - -## Security contact information - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. - -## License - -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> - -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/balanced-match/index.js b/node_modules/balanced-match/index.js deleted file mode 100755 index c67a646..0000000 --- a/node_modules/balanced-match/index.js +++ /dev/null @@ -1,62 +0,0 @@ -'use strict'; -module.exports = balanced; -function balanced(a, b, str) { - if (a instanceof RegExp) a = maybeMatch(a, str); - if (b instanceof RegExp) b = maybeMatch(b, str); - - var r = range(a, b, str); - - return r && { - start: r[0], - end: r[1], - pre: str.slice(0, r[0]), - body: str.slice(r[0] + a.length, r[1]), - post: str.slice(r[1] + b.length) - }; -} - -function maybeMatch(reg, str) { - var m = str.match(reg); - return m ? m[0] : null; -} - -balanced.range = range; -function range(a, b, str) { - var begs, beg, left, right, result; - var ai = str.indexOf(a); - var bi = str.indexOf(b, ai + 1); - var i = ai; - - if (ai >= 0 && bi > 0) { - if(a===b) { - return [ai, bi]; - } - begs = []; - left = str.length; - - while (i >= 0 && !result) { - if (i == ai) { - begs.push(i); - ai = str.indexOf(a, i + 1); - } else if (begs.length == 1) { - result = [ begs.pop(), bi ]; - } else { - beg = begs.pop(); - if (beg < left) { - left = beg; - right = bi; - } - - bi = str.indexOf(b, i + 1); - } - - i = ai < bi && ai >= 0 ? ai : bi; - } - - if (begs.length) { - result = [ left, right ]; - } - } - - return result; -} diff --git a/node_modules/balanced-match/package.json b/node_modules/balanced-match/package.json deleted file mode 100755 index ce6073e..0000000 --- a/node_modules/balanced-match/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "balanced-match", - "description": "Match balanced character pairs, like \"{\" and \"}\"", - "version": "1.0.2", - "repository": { - "type": "git", - "url": "git://github.com/juliangruber/balanced-match.git" - }, - "homepage": "https://github.com/juliangruber/balanced-match", - "main": "index.js", - "scripts": { - "test": "tape test/test.js", - "bench": "matcha test/bench.js" - }, - "devDependencies": { - "matcha": "^0.7.0", - "tape": "^4.6.0" - }, - "keywords": [ - "match", - "regexp", - "test", - "balanced", - "parse" - ], - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "license": "MIT", - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/8..latest", - "firefox/20..latest", - "firefox/nightly", - "chrome/25..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - } -} diff --git a/node_modules/binary-extensions/binary-extensions.json b/node_modules/binary-extensions/binary-extensions.json deleted file mode 100755 index ac08048..0000000 --- a/node_modules/binary-extensions/binary-extensions.json +++ /dev/null @@ -1,263 +0,0 @@ -[ - "3dm", - "3ds", - "3g2", - "3gp", - "7z", - "a", - "aac", - "adp", - "afdesign", - "afphoto", - "afpub", - "ai", - "aif", - "aiff", - "alz", - "ape", - "apk", - "appimage", - "ar", - "arj", - "asf", - "au", - "avi", - "bak", - "baml", - "bh", - "bin", - "bk", - "bmp", - "btif", - "bz2", - "bzip2", - "cab", - "caf", - "cgm", - "class", - "cmx", - "cpio", - "cr2", - "cur", - "dat", - "dcm", - "deb", - "dex", - "djvu", - "dll", - "dmg", - "dng", - "doc", - "docm", - "docx", - "dot", - "dotm", - "dra", - "DS_Store", - "dsk", - "dts", - "dtshd", - "dvb", - "dwg", - "dxf", - "ecelp4800", - "ecelp7470", - "ecelp9600", - "egg", - "eol", - "eot", - "epub", - "exe", - "f4v", - "fbs", - "fh", - "fla", - "flac", - "flatpak", - "fli", - "flv", - "fpx", - "fst", - "fvt", - "g3", - "gh", - "gif", - "graffle", - "gz", - "gzip", - "h261", - "h263", - "h264", - "icns", - "ico", - "ief", - "img", - "ipa", - "iso", - "jar", - "jpeg", - "jpg", - "jpgv", - "jpm", - "jxr", - "key", - "ktx", - "lha", - "lib", - "lvp", - "lz", - "lzh", - "lzma", - "lzo", - "m3u", - "m4a", - "m4v", - "mar", - "mdi", - "mht", - "mid", - "midi", - "mj2", - "mka", - "mkv", - "mmr", - "mng", - "mobi", - "mov", - "movie", - "mp3", - "mp4", - "mp4a", - "mpeg", - "mpg", - "mpga", - "mxu", - "nef", - "npx", - "numbers", - "nupkg", - "o", - "odp", - "ods", - "odt", - "oga", - "ogg", - "ogv", - "otf", - "ott", - "pages", - "pbm", - "pcx", - "pdb", - "pdf", - "pea", - "pgm", - "pic", - "png", - "pnm", - "pot", - "potm", - "potx", - "ppa", - "ppam", - "ppm", - "pps", - "ppsm", - "ppsx", - "ppt", - "pptm", - "pptx", - "psd", - "pya", - "pyc", - "pyo", - "pyv", - "qt", - "rar", - "ras", - "raw", - "resources", - "rgb", - "rip", - "rlc", - "rmf", - "rmvb", - "rpm", - "rtf", - "rz", - "s3m", - "s7z", - "scpt", - "sgi", - "shar", - "snap", - "sil", - "sketch", - "slk", - "smv", - "snk", - "so", - "stl", - "suo", - "sub", - "swf", - "tar", - "tbz", - "tbz2", - "tga", - "tgz", - "thmx", - "tif", - "tiff", - "tlz", - "ttc", - "ttf", - "txz", - "udf", - "uvh", - "uvi", - "uvm", - "uvp", - "uvs", - "uvu", - "viv", - "vob", - "war", - "wav", - "wax", - "wbmp", - "wdp", - "weba", - "webm", - "webp", - "whl", - "wim", - "wm", - "wma", - "wmv", - "wmx", - "woff", - "woff2", - "wrm", - "wvx", - "xbm", - "xif", - "xla", - "xlam", - "xls", - "xlsb", - "xlsm", - "xlsx", - "xlt", - "xltm", - "xltx", - "xm", - "xmind", - "xpi", - "xpm", - "xwd", - "xz", - "z", - "zip", - "zipx" -] diff --git a/node_modules/binary-extensions/binary-extensions.json.d.ts b/node_modules/binary-extensions/binary-extensions.json.d.ts deleted file mode 100755 index 94a248c..0000000 --- a/node_modules/binary-extensions/binary-extensions.json.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const binaryExtensionsJson: readonly string[]; - -export = binaryExtensionsJson; diff --git a/node_modules/binary-extensions/index.d.ts b/node_modules/binary-extensions/index.d.ts deleted file mode 100755 index f469ac5..0000000 --- a/node_modules/binary-extensions/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** -List of binary file extensions. - -@example -``` -import binaryExtensions = require('binary-extensions'); - -console.log(binaryExtensions); -//=> ['3ds', '3g2', …] -``` -*/ -declare const binaryExtensions: readonly string[]; - -export = binaryExtensions; diff --git a/node_modules/binary-extensions/index.js b/node_modules/binary-extensions/index.js deleted file mode 100755 index d46e468..0000000 --- a/node_modules/binary-extensions/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./binary-extensions.json'); diff --git a/node_modules/binary-extensions/license b/node_modules/binary-extensions/license deleted file mode 100755 index 5493a1a..0000000 --- a/node_modules/binary-extensions/license +++ /dev/null @@ -1,10 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) -Copyright (c) Paul Miller (https://paulmillr.com) - -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/binary-extensions/package.json b/node_modules/binary-extensions/package.json deleted file mode 100755 index 4710c33..0000000 --- a/node_modules/binary-extensions/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "binary-extensions", - "version": "2.3.0", - "description": "List of binary file extensions", - "license": "MIT", - "repository": "sindresorhus/binary-extensions", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "sideEffects": false, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "binary-extensions.json", - "binary-extensions.json.d.ts" - ], - "keywords": [ - "binary", - "extensions", - "extension", - "file", - "json", - "list", - "array" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/node_modules/binary-extensions/readme.md b/node_modules/binary-extensions/readme.md deleted file mode 100755 index 88519b3..0000000 --- a/node_modules/binary-extensions/readme.md +++ /dev/null @@ -1,25 +0,0 @@ -# binary-extensions - -> List of binary file extensions - -The list is just a [JSON file](binary-extensions.json) and can be used anywhere. - -## Install - -```sh -npm install binary-extensions -``` - -## Usage - -```js -const binaryExtensions = require('binary-extensions'); - -console.log(binaryExtensions); -//=> ['3ds', '3g2', …] -``` - -## Related - -- [is-binary-path](https://github.com/sindresorhus/is-binary-path) - Check if a filepath is a binary file -- [text-extensions](https://github.com/sindresorhus/text-extensions) - List of text file extensions diff --git a/node_modules/brace-expansion/LICENSE b/node_modules/brace-expansion/LICENSE deleted file mode 100755 index de32266..0000000 --- a/node_modules/brace-expansion/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2013 Julian Gruber - -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/brace-expansion/README.md b/node_modules/brace-expansion/README.md deleted file mode 100755 index 6b4e0e1..0000000 --- a/node_modules/brace-expansion/README.md +++ /dev/null @@ -1,129 +0,0 @@ -# brace-expansion - -[Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html), -as known from sh/bash, in JavaScript. - -[![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion) -[![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion) -[![Greenkeeper badge](https://badges.greenkeeper.io/juliangruber/brace-expansion.svg)](https://greenkeeper.io/) - -[![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion) - -## Example - -```js -var expand = require('brace-expansion'); - -expand('file-{a,b,c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('-v{,,}') -// => ['-v', '-v', '-v'] - -expand('file{0..2}.jpg') -// => ['file0.jpg', 'file1.jpg', 'file2.jpg'] - -expand('file-{a..c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('file{2..0}.jpg') -// => ['file2.jpg', 'file1.jpg', 'file0.jpg'] - -expand('file{0..4..2}.jpg') -// => ['file0.jpg', 'file2.jpg', 'file4.jpg'] - -expand('file-{a..e..2}.jpg') -// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg'] - -expand('file{00..10..5}.jpg') -// => ['file00.jpg', 'file05.jpg', 'file10.jpg'] - -expand('{{A..C},{a..c}}') -// => ['A', 'B', 'C', 'a', 'b', 'c'] - -expand('ppp{,config,oe{,conf}}') -// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf'] -``` - -## API - -```js -var expand = require('brace-expansion'); -``` - -### var expanded = expand(str) - -Return an array of all possible and valid expansions of `str`. If none are -found, `[str]` is returned. - -Valid expansions are: - -```js -/^(.*,)+(.+)?$/ -// {a,b,...} -``` - -A comma separated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -A numeric sequence from `x` to `y` inclusive, with optional increment. -If `x` or `y` start with a leading `0`, all the numbers will be padded -to have equal length. Negative numbers and backwards iteration work too. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -An alphabetic sequence from `x` to `y` inclusive, with optional increment. -`x` and `y` must be exactly one character, and if given, `incr` must be a -number. - -For compatibility reasons, the string `${` is not eligible for brace expansion. - -## Installation - -With [npm](https://npmjs.org) do: - -```bash -npm install brace-expansion -``` - -## Contributors - -- [Julian Gruber](https://github.com/juliangruber) -- [Isaac Z. Schlueter](https://github.com/isaacs) - -## Sponsors - -This module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)! - -Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)! - -## License - -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> - -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/brace-expansion/index.js b/node_modules/brace-expansion/index.js deleted file mode 100755 index bd19fe6..0000000 --- a/node_modules/brace-expansion/index.js +++ /dev/null @@ -1,201 +0,0 @@ -var concatMap = require('concat-map'); -var balanced = require('balanced-match'); - -module.exports = expandTop; - -var escSlash = '\0SLASH'+Math.random()+'\0'; -var escOpen = '\0OPEN'+Math.random()+'\0'; -var escClose = '\0CLOSE'+Math.random()+'\0'; -var escComma = '\0COMMA'+Math.random()+'\0'; -var escPeriod = '\0PERIOD'+Math.random()+'\0'; - -function numeric(str) { - return parseInt(str, 10) == str - ? parseInt(str, 10) - : str.charCodeAt(0); -} - -function escapeBraces(str) { - return str.split('\\\\').join(escSlash) - .split('\\{').join(escOpen) - .split('\\}').join(escClose) - .split('\\,').join(escComma) - .split('\\.').join(escPeriod); -} - -function unescapeBraces(str) { - return str.split(escSlash).join('\\') - .split(escOpen).join('{') - .split(escClose).join('}') - .split(escComma).join(',') - .split(escPeriod).join('.'); -} - - -// Basically just str.split(","), but handling cases -// where we have nested braced sections, which should be -// treated as individual members, like {a,{b,c},d} -function parseCommaParts(str) { - if (!str) - return ['']; - - var parts = []; - var m = balanced('{', '}', str); - - if (!m) - return str.split(','); - - var pre = m.pre; - var body = m.body; - var post = m.post; - var p = pre.split(','); - - p[p.length-1] += '{' + body + '}'; - var postParts = parseCommaParts(post); - if (post.length) { - p[p.length-1] += postParts.shift(); - p.push.apply(p, postParts); - } - - parts.push.apply(parts, p); - - return parts; -} - -function expandTop(str) { - if (!str) - return []; - - // I don't know why Bash 4.3 does this, but it does. - // Anything starting with {} will have the first two bytes preserved - // but *only* at the top level, so {},a}b will not expand to anything, - // but a{},b}c will be expanded to [a}c,abc]. - // One could argue that this is a bug in Bash, but since the goal of - // this module is to match Bash's rules, we escape a leading {} - if (str.substr(0, 2) === '{}') { - str = '\\{\\}' + str.substr(2); - } - - return expand(escapeBraces(str), true).map(unescapeBraces); -} - -function identity(e) { - return e; -} - -function embrace(str) { - return '{' + str + '}'; -} -function isPadded(el) { - return /^-?0\d/.test(el); -} - -function lte(i, y) { - return i <= y; -} -function gte(i, y) { - return i >= y; -} - -function expand(str, isTop) { - var expansions = []; - - var m = balanced('{', '}', str); - if (!m || /\$$/.test(m.pre)) return [str]; - - var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); - var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); - var isSequence = isNumericSequence || isAlphaSequence; - var isOptions = m.body.indexOf(',') >= 0; - if (!isSequence && !isOptions) { - // {a},b} - if (m.post.match(/,(?!,).*\}/)) { - str = m.pre + '{' + m.body + escClose + m.post; - return expand(str); - } - return [str]; - } - - var n; - if (isSequence) { - n = m.body.split(/\.\./); - } else { - n = parseCommaParts(m.body); - if (n.length === 1) { - // x{{a,b}}y ==> x{a}y x{b}y - n = expand(n[0], false).map(embrace); - if (n.length === 1) { - var post = m.post.length - ? expand(m.post, false) - : ['']; - return post.map(function(p) { - return m.pre + n[0] + p; - }); - } - } - } - - // at this point, n is the parts, and we know it's not a comma set - // with a single entry. - - // no need to expand pre, since it is guaranteed to be free of brace-sets - var pre = m.pre; - var post = m.post.length - ? expand(m.post, false) - : ['']; - - var N; - - if (isSequence) { - var x = numeric(n[0]); - var y = numeric(n[1]); - var width = Math.max(n[0].length, n[1].length) - var incr = n.length == 3 - ? Math.abs(numeric(n[2])) - : 1; - var test = lte; - var reverse = y < x; - if (reverse) { - incr *= -1; - test = gte; - } - var pad = n.some(isPadded); - - N = []; - - for (var i = x; test(i, y); i += incr) { - var c; - if (isAlphaSequence) { - c = String.fromCharCode(i); - if (c === '\\') - c = ''; - } else { - c = String(i); - if (pad) { - var need = width - c.length; - if (need > 0) { - var z = new Array(need + 1).join('0'); - if (i < 0) - c = '-' + z + c.slice(1); - else - c = z + c; - } - } - } - N.push(c); - } - } else { - N = concatMap(n, function(el) { return expand(el, false) }); - } - - for (var j = 0; j < N.length; j++) { - for (var k = 0; k < post.length; k++) { - var expansion = pre + N[j] + post[k]; - if (!isTop || isSequence || expansion) - expansions.push(expansion); - } - } - - return expansions; -} - diff --git a/node_modules/brace-expansion/package.json b/node_modules/brace-expansion/package.json deleted file mode 100755 index 3447888..0000000 --- a/node_modules/brace-expansion/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "brace-expansion", - "description": "Brace expansion as known from sh/bash", - "version": "1.1.12", - "repository": { - "type": "git", - "url": "git://github.com/juliangruber/brace-expansion.git" - }, - "homepage": "https://github.com/juliangruber/brace-expansion", - "main": "index.js", - "scripts": { - "test": "tape test/*.js", - "gentest": "bash test/generate.sh", - "bench": "matcha test/perf/bench.js" - }, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - }, - "devDependencies": { - "matcha": "^0.7.0", - "tape": "^4.6.0" - }, - "keywords": [], - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "license": "MIT", - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/8..latest", - "firefox/20..latest", - "firefox/nightly", - "chrome/25..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - }, - "publishConfig": { - "tag": "1.x" - } -} diff --git a/node_modules/braces/LICENSE b/node_modules/braces/LICENSE deleted file mode 100755 index 9af4a67..0000000 --- a/node_modules/braces/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-present, Jon Schlinkert. - -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/braces/README.md b/node_modules/braces/README.md deleted file mode 100755 index f59dd60..0000000 --- a/node_modules/braces/README.md +++ /dev/null @@ -1,586 +0,0 @@ -# braces [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/braces.svg?style=flat)](https://www.npmjs.com/package/braces) [![NPM monthly downloads](https://img.shields.io/npm/dm/braces.svg?style=flat)](https://npmjs.org/package/braces) [![NPM total downloads](https://img.shields.io/npm/dt/braces.svg?style=flat)](https://npmjs.org/package/braces) [![Linux Build Status](https://img.shields.io/travis/micromatch/braces.svg?style=flat&label=Travis)](https://travis-ci.org/micromatch/braces) - -> Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed. - -Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save braces -``` - -## v3.0.0 Released!! - -See the [changelog](CHANGELOG.md) for details. - -## Why use braces? - -Brace patterns make globs more powerful by adding the ability to match specific ranges and sequences of characters. - -- **Accurate** - complete support for the [Bash 4.3 Brace Expansion](www.gnu.org/software/bash/) specification (passes all of the Bash braces tests) -- **[fast and performant](#benchmarks)** - Starts fast, runs fast and [scales well](#performance) as patterns increase in complexity. -- **Organized code base** - The parser and compiler are easy to maintain and update when edge cases crop up. -- **Well-tested** - Thousands of test assertions, and passes all of the Bash, minimatch, and [brace-expansion](https://github.com/juliangruber/brace-expansion) unit tests (as of the date this was written). -- **Safer** - You shouldn't have to worry about users defining aggressive or malicious brace patterns that can break your application. Braces takes measures to prevent malicious regex that can be used for DDoS attacks (see [catastrophic backtracking](https://www.regular-expressions.info/catastrophic.html)). -- [Supports lists](#lists) - (aka "sets") `a/{b,c}/d` => `['a/b/d', 'a/c/d']` -- [Supports sequences](#sequences) - (aka "ranges") `{01..03}` => `['01', '02', '03']` -- [Supports steps](#steps) - (aka "increments") `{2..10..2}` => `['2', '4', '6', '8', '10']` -- [Supports escaping](#escaping) - To prevent evaluation of special characters. - -## Usage - -The main export is a function that takes one or more brace `patterns` and `options`. - -```js -const braces = require('braces'); -// braces(patterns[, options]); - -console.log(braces(['{01..05}', '{a..e}'])); -//=> ['(0[1-5])', '([a-e])'] - -console.log(braces(['{01..05}', '{a..e}'], { expand: true })); -//=> ['01', '02', '03', '04', '05', 'a', 'b', 'c', 'd', 'e'] -``` - -### Brace Expansion vs. Compilation - -By default, brace patterns are compiled into strings that are optimized for creating regular expressions and matching. - -**Compiled** - -```js -console.log(braces('a/{x,y,z}/b')); -//=> ['a/(x|y|z)/b'] -console.log(braces(['a/{01..20}/b', 'a/{1..5}/b'])); -//=> [ 'a/(0[1-9]|1[0-9]|20)/b', 'a/([1-5])/b' ] -``` - -**Expanded** - -Enable brace expansion by setting the `expand` option to true, or by using [braces.expand()](#expand) (returns an array similar to what you'd expect from Bash, or `echo {1..5}`, or [minimatch](https://github.com/isaacs/minimatch)): - -```js -console.log(braces('a/{x,y,z}/b', { expand: true })); -//=> ['a/x/b', 'a/y/b', 'a/z/b'] - -console.log(braces.expand('{01..10}')); -//=> ['01','02','03','04','05','06','07','08','09','10'] -``` - -### Lists - -Expand lists (like Bash "sets"): - -```js -console.log(braces('a/{foo,bar,baz}/*.js')); -//=> ['a/(foo|bar|baz)/*.js'] - -console.log(braces.expand('a/{foo,bar,baz}/*.js')); -//=> ['a/foo/*.js', 'a/bar/*.js', 'a/baz/*.js'] -``` - -### Sequences - -Expand ranges of characters (like Bash "sequences"): - -```js -console.log(braces.expand('{1..3}')); // ['1', '2', '3'] -console.log(braces.expand('a/{1..3}/b')); // ['a/1/b', 'a/2/b', 'a/3/b'] -console.log(braces('{a..c}', { expand: true })); // ['a', 'b', 'c'] -console.log(braces('foo/{a..c}', { expand: true })); // ['foo/a', 'foo/b', 'foo/c'] - -// supports zero-padded ranges -console.log(braces('a/{01..03}/b')); //=> ['a/(0[1-3])/b'] -console.log(braces('a/{001..300}/b')); //=> ['a/(0{2}[1-9]|0[1-9][0-9]|[12][0-9]{2}|300)/b'] -``` - -See [fill-range](https://github.com/jonschlinkert/fill-range) for all available range-expansion options. - -### Steppped ranges - -Steps, or increments, may be used with ranges: - -```js -console.log(braces.expand('{2..10..2}')); -//=> ['2', '4', '6', '8', '10'] - -console.log(braces('{2..10..2}')); -//=> ['(2|4|6|8|10)'] -``` - -When the [.optimize](#optimize) method is used, or [options.optimize](#optionsoptimize) is set to true, sequences are passed to [to-regex-range](https://github.com/jonschlinkert/to-regex-range) for expansion. - -### Nesting - -Brace patterns may be nested. The results of each expanded string are not sorted, and left to right order is preserved. - -**"Expanded" braces** - -```js -console.log(braces.expand('a{b,c,/{x,y}}/e')); -//=> ['ab/e', 'ac/e', 'a/x/e', 'a/y/e'] - -console.log(braces.expand('a/{x,{1..5},y}/c')); -//=> ['a/x/c', 'a/1/c', 'a/2/c', 'a/3/c', 'a/4/c', 'a/5/c', 'a/y/c'] -``` - -**"Optimized" braces** - -```js -console.log(braces('a{b,c,/{x,y}}/e')); -//=> ['a(b|c|/(x|y))/e'] - -console.log(braces('a/{x,{1..5},y}/c')); -//=> ['a/(x|([1-5])|y)/c'] -``` - -### Escaping - -**Escaping braces** - -A brace pattern will not be expanded or evaluted if _either the opening or closing brace is escaped_: - -```js -console.log(braces.expand('a\\{d,c,b}e')); -//=> ['a{d,c,b}e'] - -console.log(braces.expand('a{d,c,b\\}e')); -//=> ['a{d,c,b}e'] -``` - -**Escaping commas** - -Commas inside braces may also be escaped: - -```js -console.log(braces.expand('a{b\\,c}d')); -//=> ['a{b,c}d'] - -console.log(braces.expand('a{d\\,c,b}e')); -//=> ['ad,ce', 'abe'] -``` - -**Single items** - -Following bash conventions, a brace pattern is also not expanded when it contains a single character: - -```js -console.log(braces.expand('a{b}c')); -//=> ['a{b}c'] -``` - -## Options - -### options.maxLength - -**Type**: `Number` - -**Default**: `10,000` - -**Description**: Limit the length of the input string. Useful when the input string is generated or your application allows users to pass a string, et cetera. - -```js -console.log(braces('a/{b,c}/d', { maxLength: 3 })); //=> throws an error -``` - -### options.expand - -**Type**: `Boolean` - -**Default**: `undefined` - -**Description**: Generate an "expanded" brace pattern (alternatively you can use the `braces.expand()` method, which does the same thing). - -```js -console.log(braces('a/{b,c}/d', { expand: true })); -//=> [ 'a/b/d', 'a/c/d' ] -``` - -### options.nodupes - -**Type**: `Boolean` - -**Default**: `undefined` - -**Description**: Remove duplicates from the returned array. - -### options.rangeLimit - -**Type**: `Number` - -**Default**: `1000` - -**Description**: To prevent malicious patterns from being passed by users, an error is thrown when `braces.expand()` is used or `options.expand` is true and the generated range will exceed the `rangeLimit`. - -You can customize `options.rangeLimit` or set it to `Inifinity` to disable this altogether. - -**Examples** - -```js -// pattern exceeds the "rangeLimit", so it's optimized automatically -console.log(braces.expand('{1..1000}')); -//=> ['([1-9]|[1-9][0-9]{1,2}|1000)'] - -// pattern does not exceed "rangeLimit", so it's NOT optimized -console.log(braces.expand('{1..100}')); -//=> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', '100'] -``` - -### options.transform - -**Type**: `Function` - -**Default**: `undefined` - -**Description**: Customize range expansion. - -**Example: Transforming non-numeric values** - -```js -const alpha = braces.expand('x/{a..e}/y', { - transform(value, index) { - // When non-numeric values are passed, "value" is a character code. - return 'foo/' + String.fromCharCode(value) + '-' + index; - }, -}); -console.log(alpha); -//=> [ 'x/foo/a-0/y', 'x/foo/b-1/y', 'x/foo/c-2/y', 'x/foo/d-3/y', 'x/foo/e-4/y' ] -``` - -**Example: Transforming numeric values** - -```js -const numeric = braces.expand('{1..5}', { - transform(value) { - // when numeric values are passed, "value" is a number - return 'foo/' + value * 2; - }, -}); -console.log(numeric); -//=> [ 'foo/2', 'foo/4', 'foo/6', 'foo/8', 'foo/10' ] -``` - -### options.quantifiers - -**Type**: `Boolean` - -**Default**: `undefined` - -**Description**: In regular expressions, quanitifiers can be used to specify how many times a token can be repeated. For example, `a{1,3}` will match the letter `a` one to three times. - -Unfortunately, regex quantifiers happen to share the same syntax as [Bash lists](#lists) - -The `quantifiers` option tells braces to detect when [regex quantifiers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#quantifiers) are defined in the given pattern, and not to try to expand them as lists. - -**Examples** - -```js -const braces = require('braces'); -console.log(braces('a/b{1,3}/{x,y,z}')); -//=> [ 'a/b(1|3)/(x|y|z)' ] -console.log(braces('a/b{1,3}/{x,y,z}', { quantifiers: true })); -//=> [ 'a/b{1,3}/(x|y|z)' ] -console.log(braces('a/b{1,3}/{x,y,z}', { quantifiers: true, expand: true })); -//=> [ 'a/b{1,3}/x', 'a/b{1,3}/y', 'a/b{1,3}/z' ] -``` - -### options.keepEscaping - -**Type**: `Boolean` - -**Default**: `undefined` - -**Description**: Do not strip backslashes that were used for escaping from the result. - -## What is "brace expansion"? - -Brace expansion is a type of parameter expansion that was made popular by unix shells for generating lists of strings, as well as regex-like matching when used alongside wildcards (globs). - -In addition to "expansion", braces are also used for matching. In other words: - -- [brace expansion](#brace-expansion) is for generating new lists -- [brace matching](#brace-matching) is for filtering existing lists - -
-More about brace expansion (click to expand) - -There are two main types of brace expansion: - -1. **lists**: which are defined using comma-separated values inside curly braces: `{a,b,c}` -2. **sequences**: which are defined using a starting value and an ending value, separated by two dots: `a{1..3}b`. Optionally, a third argument may be passed to define a "step" or increment to use: `a{1..100..10}b`. These are also sometimes referred to as "ranges". - -Here are some example brace patterns to illustrate how they work: - -**Sets** - -``` -{a,b,c} => a b c -{a,b,c}{1,2} => a1 a2 b1 b2 c1 c2 -``` - -**Sequences** - -``` -{1..9} => 1 2 3 4 5 6 7 8 9 -{4..-4} => 4 3 2 1 0 -1 -2 -3 -4 -{1..20..3} => 1 4 7 10 13 16 19 -{a..j} => a b c d e f g h i j -{j..a} => j i h g f e d c b a -{a..z..3} => a d g j m p s v y -``` - -**Combination** - -Sets and sequences can be mixed together or used along with any other strings. - -``` -{a,b,c}{1..3} => a1 a2 a3 b1 b2 b3 c1 c2 c3 -foo/{a,b,c}/bar => foo/a/bar foo/b/bar foo/c/bar -``` - -The fact that braces can be "expanded" from relatively simple patterns makes them ideal for quickly generating test fixtures, file paths, and similar use cases. - -## Brace matching - -In addition to _expansion_, brace patterns are also useful for performing regular-expression-like matching. - -For example, the pattern `foo/{1..3}/bar` would match any of following strings: - -``` -foo/1/bar -foo/2/bar -foo/3/bar -``` - -But not: - -``` -baz/1/qux -baz/2/qux -baz/3/qux -``` - -Braces can also be combined with [glob patterns](https://github.com/jonschlinkert/micromatch) to perform more advanced wildcard matching. For example, the pattern `*/{1..3}/*` would match any of following strings: - -``` -foo/1/bar -foo/2/bar -foo/3/bar -baz/1/qux -baz/2/qux -baz/3/qux -``` - -## Brace matching pitfalls - -Although brace patterns offer a user-friendly way of matching ranges or sets of strings, there are also some major disadvantages and potential risks you should be aware of. - -### tldr - -**"brace bombs"** - -- brace expansion can eat up a huge amount of processing resources -- as brace patterns increase _linearly in size_, the system resources required to expand the pattern increase exponentially -- users can accidentally (or intentially) exhaust your system's resources resulting in the equivalent of a DoS attack (bonus: no programming knowledge is required!) - -For a more detailed explanation with examples, see the [geometric complexity](#geometric-complexity) section. - -### The solution - -Jump to the [performance section](#performance) to see how Braces solves this problem in comparison to other libraries. - -### Geometric complexity - -At minimum, brace patterns with sets limited to two elements have quadradic or `O(n^2)` complexity. But the complexity of the algorithm increases exponentially as the number of sets, _and elements per set_, increases, which is `O(n^c)`. - -For example, the following sets demonstrate quadratic (`O(n^2)`) complexity: - -``` -{1,2}{3,4} => (2X2) => 13 14 23 24 -{1,2}{3,4}{5,6} => (2X2X2) => 135 136 145 146 235 236 245 246 -``` - -But add an element to a set, and we get a n-fold Cartesian product with `O(n^c)` complexity: - -``` -{1,2,3}{4,5,6}{7,8,9} => (3X3X3) => 147 148 149 157 158 159 167 168 169 247 248 - 249 257 258 259 267 268 269 347 348 349 357 - 358 359 367 368 369 -``` - -Now, imagine how this complexity grows given that each element is a n-tuple: - -``` -{1..100}{1..100} => (100X100) => 10,000 elements (38.4 kB) -{1..100}{1..100}{1..100} => (100X100X100) => 1,000,000 elements (5.76 MB) -``` - -Although these examples are clearly contrived, they demonstrate how brace patterns can quickly grow out of control. - -**More information** - -Interested in learning more about brace expansion? - -- [linuxjournal/bash-brace-expansion](http://www.linuxjournal.com/content/bash-brace-expansion) -- [rosettacode/Brace_expansion](https://rosettacode.org/wiki/Brace_expansion) -- [cartesian product](https://en.wikipedia.org/wiki/Cartesian_product) - -
- -## Performance - -Braces is not only screaming fast, it's also more accurate the other brace expansion libraries. - -### Better algorithms - -Fortunately there is a solution to the ["brace bomb" problem](#brace-matching-pitfalls): _don't expand brace patterns into an array when they're used for matching_. - -Instead, convert the pattern into an optimized regular expression. This is easier said than done, and braces is the only library that does this currently. - -**The proof is in the numbers** - -Minimatch gets exponentially slower as patterns increase in complexity, braces does not. The following results were generated using `braces()` and `minimatch.braceExpand()`, respectively. - -| **Pattern** | **braces** | **[minimatch][]** | -| --------------------------- | ------------------- | ---------------------------- | -| `{1..9007199254740991}`[^1] | `298 B` (5ms 459μs) | N/A (freezes) | -| `{1..1000000000000000}` | `41 B` (1ms 15μs) | N/A (freezes) | -| `{1..100000000000000}` | `40 B` (890μs) | N/A (freezes) | -| `{1..10000000000000}` | `39 B` (2ms 49μs) | N/A (freezes) | -| `{1..1000000000000}` | `38 B` (608μs) | N/A (freezes) | -| `{1..100000000000}` | `37 B` (397μs) | N/A (freezes) | -| `{1..10000000000}` | `35 B` (983μs) | N/A (freezes) | -| `{1..1000000000}` | `34 B` (798μs) | N/A (freezes) | -| `{1..100000000}` | `33 B` (733μs) | N/A (freezes) | -| `{1..10000000}` | `32 B` (5ms 632μs) | `78.89 MB` (16s 388ms 569μs) | -| `{1..1000000}` | `31 B` (1ms 381μs) | `6.89 MB` (1s 496ms 887μs) | -| `{1..100000}` | `30 B` (950μs) | `588.89 kB` (146ms 921μs) | -| `{1..10000}` | `29 B` (1ms 114μs) | `48.89 kB` (14ms 187μs) | -| `{1..1000}` | `28 B` (760μs) | `3.89 kB` (1ms 453μs) | -| `{1..100}` | `22 B` (345μs) | `291 B` (196μs) | -| `{1..10}` | `10 B` (533μs) | `20 B` (37μs) | -| `{1..3}` | `7 B` (190μs) | `5 B` (27μs) | - -### Faster algorithms - -When you need expansion, braces is still much faster. - -_(the following results were generated using `braces.expand()` and `minimatch.braceExpand()`, respectively)_ - -| **Pattern** | **braces** | **[minimatch][]** | -| --------------- | --------------------------- | ---------------------------- | -| `{1..10000000}` | `78.89 MB` (2s 698ms 642μs) | `78.89 MB` (18s 601ms 974μs) | -| `{1..1000000}` | `6.89 MB` (458ms 576μs) | `6.89 MB` (1s 491ms 621μs) | -| `{1..100000}` | `588.89 kB` (20ms 728μs) | `588.89 kB` (156ms 919μs) | -| `{1..10000}` | `48.89 kB` (2ms 202μs) | `48.89 kB` (13ms 641μs) | -| `{1..1000}` | `3.89 kB` (1ms 796μs) | `3.89 kB` (1ms 958μs) | -| `{1..100}` | `291 B` (424μs) | `291 B` (211μs) | -| `{1..10}` | `20 B` (487μs) | `20 B` (72μs) | -| `{1..3}` | `5 B` (166μs) | `5 B` (27μs) | - -If you'd like to run these comparisons yourself, see [test/support/generate.js](test/support/generate.js). - -## Benchmarks - -### Running benchmarks - -Install dev dependencies: - -```bash -npm i -d && npm benchmark -``` - -### Latest results - -Braces is more accurate, without sacrificing performance. - -```bash -● expand - range (expanded) - braces x 53,167 ops/sec ±0.12% (102 runs sampled) - minimatch x 11,378 ops/sec ±0.10% (102 runs sampled) -● expand - range (optimized for regex) - braces x 373,442 ops/sec ±0.04% (100 runs sampled) - minimatch x 3,262 ops/sec ±0.18% (100 runs sampled) -● expand - nested ranges (expanded) - braces x 33,921 ops/sec ±0.09% (99 runs sampled) - minimatch x 10,855 ops/sec ±0.28% (100 runs sampled) -● expand - nested ranges (optimized for regex) - braces x 287,479 ops/sec ±0.52% (98 runs sampled) - minimatch x 3,219 ops/sec ±0.28% (101 runs sampled) -● expand - set (expanded) - braces x 238,243 ops/sec ±0.19% (97 runs sampled) - minimatch x 538,268 ops/sec ±0.31% (96 runs sampled) -● expand - set (optimized for regex) - braces x 321,844 ops/sec ±0.10% (97 runs sampled) - minimatch x 140,600 ops/sec ±0.15% (100 runs sampled) -● expand - nested sets (expanded) - braces x 165,371 ops/sec ±0.42% (96 runs sampled) - minimatch x 337,720 ops/sec ±0.28% (100 runs sampled) -● expand - nested sets (optimized for regex) - braces x 242,948 ops/sec ±0.12% (99 runs sampled) - minimatch x 87,403 ops/sec ±0.79% (96 runs sampled) -``` - -## About - -
-Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -
- -
-Running Tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -
- -
-Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -
- -### Contributors - -| **Commits** | **Contributor** | -| ----------- | ------------------------------------------------------------- | -| 197 | [jonschlinkert](https://github.com/jonschlinkert) | -| 4 | [doowb](https://github.com/doowb) | -| 1 | [es128](https://github.com/es128) | -| 1 | [eush77](https://github.com/eush77) | -| 1 | [hemanth](https://github.com/hemanth) | -| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | - -### Author - -**Jon Schlinkert** - -- [GitHub Profile](https://github.com/jonschlinkert) -- [Twitter Profile](https://twitter.com/jonschlinkert) -- [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) - -### License - -Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - ---- - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 08, 2019._ diff --git a/node_modules/braces/index.js b/node_modules/braces/index.js deleted file mode 100755 index d222c13..0000000 --- a/node_modules/braces/index.js +++ /dev/null @@ -1,170 +0,0 @@ -'use strict'; - -const stringify = require('./lib/stringify'); -const compile = require('./lib/compile'); -const expand = require('./lib/expand'); -const parse = require('./lib/parse'); - -/** - * Expand the given pattern or create a regex-compatible string. - * - * ```js - * const braces = require('braces'); - * console.log(braces('{a,b,c}', { compile: true })); //=> ['(a|b|c)'] - * console.log(braces('{a,b,c}')); //=> ['a', 'b', 'c'] - * ``` - * @param {String} `str` - * @param {Object} `options` - * @return {String} - * @api public - */ - -const braces = (input, options = {}) => { - let output = []; - - if (Array.isArray(input)) { - for (const pattern of input) { - const result = braces.create(pattern, options); - if (Array.isArray(result)) { - output.push(...result); - } else { - output.push(result); - } - } - } else { - output = [].concat(braces.create(input, options)); - } - - if (options && options.expand === true && options.nodupes === true) { - output = [...new Set(output)]; - } - return output; -}; - -/** - * Parse the given `str` with the given `options`. - * - * ```js - * // braces.parse(pattern, [, options]); - * const ast = braces.parse('a/{b,c}/d'); - * console.log(ast); - * ``` - * @param {String} pattern Brace pattern to parse - * @param {Object} options - * @return {Object} Returns an AST - * @api public - */ - -braces.parse = (input, options = {}) => parse(input, options); - -/** - * Creates a braces string from an AST, or an AST node. - * - * ```js - * const braces = require('braces'); - * let ast = braces.parse('foo/{a,b}/bar'); - * console.log(stringify(ast.nodes[2])); //=> '{a,b}' - * ``` - * @param {String} `input` Brace pattern or AST. - * @param {Object} `options` - * @return {Array} Returns an array of expanded values. - * @api public - */ - -braces.stringify = (input, options = {}) => { - if (typeof input === 'string') { - return stringify(braces.parse(input, options), options); - } - return stringify(input, options); -}; - -/** - * Compiles a brace pattern into a regex-compatible, optimized string. - * This method is called by the main [braces](#braces) function by default. - * - * ```js - * const braces = require('braces'); - * console.log(braces.compile('a/{b,c}/d')); - * //=> ['a/(b|c)/d'] - * ``` - * @param {String} `input` Brace pattern or AST. - * @param {Object} `options` - * @return {Array} Returns an array of expanded values. - * @api public - */ - -braces.compile = (input, options = {}) => { - if (typeof input === 'string') { - input = braces.parse(input, options); - } - return compile(input, options); -}; - -/** - * Expands a brace pattern into an array. This method is called by the - * main [braces](#braces) function when `options.expand` is true. Before - * using this method it's recommended that you read the [performance notes](#performance)) - * and advantages of using [.compile](#compile) instead. - * - * ```js - * const braces = require('braces'); - * console.log(braces.expand('a/{b,c}/d')); - * //=> ['a/b/d', 'a/c/d']; - * ``` - * @param {String} `pattern` Brace pattern - * @param {Object} `options` - * @return {Array} Returns an array of expanded values. - * @api public - */ - -braces.expand = (input, options = {}) => { - if (typeof input === 'string') { - input = braces.parse(input, options); - } - - let result = expand(input, options); - - // filter out empty strings if specified - if (options.noempty === true) { - result = result.filter(Boolean); - } - - // filter out duplicates if specified - if (options.nodupes === true) { - result = [...new Set(result)]; - } - - return result; -}; - -/** - * Processes a brace pattern and returns either an expanded array - * (if `options.expand` is true), a highly optimized regex-compatible string. - * This method is called by the main [braces](#braces) function. - * - * ```js - * const braces = require('braces'); - * console.log(braces.create('user-{200..300}/project-{a,b,c}-{1..10}')) - * //=> 'user-(20[0-9]|2[1-9][0-9]|300)/project-(a|b|c)-([1-9]|10)' - * ``` - * @param {String} `pattern` Brace pattern - * @param {Object} `options` - * @return {Array} Returns an array of expanded values. - * @api public - */ - -braces.create = (input, options = {}) => { - if (input === '' || input.length < 3) { - return [input]; - } - - return options.expand !== true - ? braces.compile(input, options) - : braces.expand(input, options); -}; - -/** - * Expose "braces" - */ - -module.exports = braces; diff --git a/node_modules/braces/lib/compile.js b/node_modules/braces/lib/compile.js deleted file mode 100755 index dce69be..0000000 --- a/node_modules/braces/lib/compile.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict'; - -const fill = require('fill-range'); -const utils = require('./utils'); - -const compile = (ast, options = {}) => { - const walk = (node, parent = {}) => { - const invalidBlock = utils.isInvalidBrace(parent); - const invalidNode = node.invalid === true && options.escapeInvalid === true; - const invalid = invalidBlock === true || invalidNode === true; - const prefix = options.escapeInvalid === true ? '\\' : ''; - let output = ''; - - if (node.isOpen === true) { - return prefix + node.value; - } - - if (node.isClose === true) { - console.log('node.isClose', prefix, node.value); - return prefix + node.value; - } - - if (node.type === 'open') { - return invalid ? prefix + node.value : '('; - } - - if (node.type === 'close') { - return invalid ? prefix + node.value : ')'; - } - - if (node.type === 'comma') { - return node.prev.type === 'comma' ? '' : invalid ? node.value : '|'; - } - - if (node.value) { - return node.value; - } - - if (node.nodes && node.ranges > 0) { - const args = utils.reduce(node.nodes); - const range = fill(...args, { ...options, wrap: false, toRegex: true, strictZeros: true }); - - if (range.length !== 0) { - return args.length > 1 && range.length > 1 ? `(${range})` : range; - } - } - - if (node.nodes) { - for (const child of node.nodes) { - output += walk(child, node); - } - } - - return output; - }; - - return walk(ast); -}; - -module.exports = compile; diff --git a/node_modules/braces/lib/constants.js b/node_modules/braces/lib/constants.js deleted file mode 100755 index 2bb3b88..0000000 --- a/node_modules/braces/lib/constants.js +++ /dev/null @@ -1,57 +0,0 @@ -'use strict'; - -module.exports = { - MAX_LENGTH: 10000, - - // Digits - CHAR_0: '0', /* 0 */ - CHAR_9: '9', /* 9 */ - - // Alphabet chars. - CHAR_UPPERCASE_A: 'A', /* A */ - CHAR_LOWERCASE_A: 'a', /* a */ - CHAR_UPPERCASE_Z: 'Z', /* Z */ - CHAR_LOWERCASE_Z: 'z', /* z */ - - CHAR_LEFT_PARENTHESES: '(', /* ( */ - CHAR_RIGHT_PARENTHESES: ')', /* ) */ - - CHAR_ASTERISK: '*', /* * */ - - // Non-alphabetic chars. - CHAR_AMPERSAND: '&', /* & */ - CHAR_AT: '@', /* @ */ - CHAR_BACKSLASH: '\\', /* \ */ - CHAR_BACKTICK: '`', /* ` */ - CHAR_CARRIAGE_RETURN: '\r', /* \r */ - CHAR_CIRCUMFLEX_ACCENT: '^', /* ^ */ - CHAR_COLON: ':', /* : */ - CHAR_COMMA: ',', /* , */ - CHAR_DOLLAR: '$', /* . */ - CHAR_DOT: '.', /* . */ - CHAR_DOUBLE_QUOTE: '"', /* " */ - CHAR_EQUAL: '=', /* = */ - CHAR_EXCLAMATION_MARK: '!', /* ! */ - CHAR_FORM_FEED: '\f', /* \f */ - CHAR_FORWARD_SLASH: '/', /* / */ - CHAR_HASH: '#', /* # */ - CHAR_HYPHEN_MINUS: '-', /* - */ - CHAR_LEFT_ANGLE_BRACKET: '<', /* < */ - CHAR_LEFT_CURLY_BRACE: '{', /* { */ - CHAR_LEFT_SQUARE_BRACKET: '[', /* [ */ - CHAR_LINE_FEED: '\n', /* \n */ - CHAR_NO_BREAK_SPACE: '\u00A0', /* \u00A0 */ - CHAR_PERCENT: '%', /* % */ - CHAR_PLUS: '+', /* + */ - CHAR_QUESTION_MARK: '?', /* ? */ - CHAR_RIGHT_ANGLE_BRACKET: '>', /* > */ - CHAR_RIGHT_CURLY_BRACE: '}', /* } */ - CHAR_RIGHT_SQUARE_BRACKET: ']', /* ] */ - CHAR_SEMICOLON: ';', /* ; */ - CHAR_SINGLE_QUOTE: '\'', /* ' */ - CHAR_SPACE: ' ', /* */ - CHAR_TAB: '\t', /* \t */ - CHAR_UNDERSCORE: '_', /* _ */ - CHAR_VERTICAL_LINE: '|', /* | */ - CHAR_ZERO_WIDTH_NOBREAK_SPACE: '\uFEFF' /* \uFEFF */ -}; diff --git a/node_modules/braces/lib/expand.js b/node_modules/braces/lib/expand.js deleted file mode 100755 index 35b2c41..0000000 --- a/node_modules/braces/lib/expand.js +++ /dev/null @@ -1,113 +0,0 @@ -'use strict'; - -const fill = require('fill-range'); -const stringify = require('./stringify'); -const utils = require('./utils'); - -const append = (queue = '', stash = '', enclose = false) => { - const result = []; - - queue = [].concat(queue); - stash = [].concat(stash); - - if (!stash.length) return queue; - if (!queue.length) { - return enclose ? utils.flatten(stash).map(ele => `{${ele}}`) : stash; - } - - for (const item of queue) { - if (Array.isArray(item)) { - for (const value of item) { - result.push(append(value, stash, enclose)); - } - } else { - for (let ele of stash) { - if (enclose === true && typeof ele === 'string') ele = `{${ele}}`; - result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele); - } - } - } - return utils.flatten(result); -}; - -const expand = (ast, options = {}) => { - const rangeLimit = options.rangeLimit === undefined ? 1000 : options.rangeLimit; - - const walk = (node, parent = {}) => { - node.queue = []; - - let p = parent; - let q = parent.queue; - - while (p.type !== 'brace' && p.type !== 'root' && p.parent) { - p = p.parent; - q = p.queue; - } - - if (node.invalid || node.dollar) { - q.push(append(q.pop(), stringify(node, options))); - return; - } - - if (node.type === 'brace' && node.invalid !== true && node.nodes.length === 2) { - q.push(append(q.pop(), ['{}'])); - return; - } - - if (node.nodes && node.ranges > 0) { - const args = utils.reduce(node.nodes); - - if (utils.exceedsLimit(...args, options.step, rangeLimit)) { - throw new RangeError('expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.'); - } - - let range = fill(...args, options); - if (range.length === 0) { - range = stringify(node, options); - } - - q.push(append(q.pop(), range)); - node.nodes = []; - return; - } - - const enclose = utils.encloseBrace(node); - let queue = node.queue; - let block = node; - - while (block.type !== 'brace' && block.type !== 'root' && block.parent) { - block = block.parent; - queue = block.queue; - } - - for (let i = 0; i < node.nodes.length; i++) { - const child = node.nodes[i]; - - if (child.type === 'comma' && node.type === 'brace') { - if (i === 1) queue.push(''); - queue.push(''); - continue; - } - - if (child.type === 'close') { - q.push(append(q.pop(), queue, enclose)); - continue; - } - - if (child.value && child.type !== 'open') { - queue.push(append(queue.pop(), child.value)); - continue; - } - - if (child.nodes) { - walk(child, node); - } - } - - return queue; - }; - - return utils.flatten(walk(ast)); -}; - -module.exports = expand; diff --git a/node_modules/braces/lib/parse.js b/node_modules/braces/lib/parse.js deleted file mode 100755 index 3a6988e..0000000 --- a/node_modules/braces/lib/parse.js +++ /dev/null @@ -1,331 +0,0 @@ -'use strict'; - -const stringify = require('./stringify'); - -/** - * Constants - */ - -const { - MAX_LENGTH, - CHAR_BACKSLASH, /* \ */ - CHAR_BACKTICK, /* ` */ - CHAR_COMMA, /* , */ - CHAR_DOT, /* . */ - CHAR_LEFT_PARENTHESES, /* ( */ - CHAR_RIGHT_PARENTHESES, /* ) */ - CHAR_LEFT_CURLY_BRACE, /* { */ - CHAR_RIGHT_CURLY_BRACE, /* } */ - CHAR_LEFT_SQUARE_BRACKET, /* [ */ - CHAR_RIGHT_SQUARE_BRACKET, /* ] */ - CHAR_DOUBLE_QUOTE, /* " */ - CHAR_SINGLE_QUOTE, /* ' */ - CHAR_NO_BREAK_SPACE, - CHAR_ZERO_WIDTH_NOBREAK_SPACE -} = require('./constants'); - -/** - * parse - */ - -const parse = (input, options = {}) => { - if (typeof input !== 'string') { - throw new TypeError('Expected a string'); - } - - const opts = options || {}; - const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - if (input.length > max) { - throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`); - } - - const ast = { type: 'root', input, nodes: [] }; - const stack = [ast]; - let block = ast; - let prev = ast; - let brackets = 0; - const length = input.length; - let index = 0; - let depth = 0; - let value; - - /** - * Helpers - */ - - const advance = () => input[index++]; - const push = node => { - if (node.type === 'text' && prev.type === 'dot') { - prev.type = 'text'; - } - - if (prev && prev.type === 'text' && node.type === 'text') { - prev.value += node.value; - return; - } - - block.nodes.push(node); - node.parent = block; - node.prev = prev; - prev = node; - return node; - }; - - push({ type: 'bos' }); - - while (index < length) { - block = stack[stack.length - 1]; - value = advance(); - - /** - * Invalid chars - */ - - if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) { - continue; - } - - /** - * Escaped chars - */ - - if (value === CHAR_BACKSLASH) { - push({ type: 'text', value: (options.keepEscaping ? value : '') + advance() }); - continue; - } - - /** - * Right square bracket (literal): ']' - */ - - if (value === CHAR_RIGHT_SQUARE_BRACKET) { - push({ type: 'text', value: '\\' + value }); - continue; - } - - /** - * Left square bracket: '[' - */ - - if (value === CHAR_LEFT_SQUARE_BRACKET) { - brackets++; - - let next; - - while (index < length && (next = advance())) { - value += next; - - if (next === CHAR_LEFT_SQUARE_BRACKET) { - brackets++; - continue; - } - - if (next === CHAR_BACKSLASH) { - value += advance(); - continue; - } - - if (next === CHAR_RIGHT_SQUARE_BRACKET) { - brackets--; - - if (brackets === 0) { - break; - } - } - } - - push({ type: 'text', value }); - continue; - } - - /** - * Parentheses - */ - - if (value === CHAR_LEFT_PARENTHESES) { - block = push({ type: 'paren', nodes: [] }); - stack.push(block); - push({ type: 'text', value }); - continue; - } - - if (value === CHAR_RIGHT_PARENTHESES) { - if (block.type !== 'paren') { - push({ type: 'text', value }); - continue; - } - block = stack.pop(); - push({ type: 'text', value }); - block = stack[stack.length - 1]; - continue; - } - - /** - * Quotes: '|"|` - */ - - if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) { - const open = value; - let next; - - if (options.keepQuotes !== true) { - value = ''; - } - - while (index < length && (next = advance())) { - if (next === CHAR_BACKSLASH) { - value += next + advance(); - continue; - } - - if (next === open) { - if (options.keepQuotes === true) value += next; - break; - } - - value += next; - } - - push({ type: 'text', value }); - continue; - } - - /** - * Left curly brace: '{' - */ - - if (value === CHAR_LEFT_CURLY_BRACE) { - depth++; - - const dollar = prev.value && prev.value.slice(-1) === '$' || block.dollar === true; - const brace = { - type: 'brace', - open: true, - close: false, - dollar, - depth, - commas: 0, - ranges: 0, - nodes: [] - }; - - block = push(brace); - stack.push(block); - push({ type: 'open', value }); - continue; - } - - /** - * Right curly brace: '}' - */ - - if (value === CHAR_RIGHT_CURLY_BRACE) { - if (block.type !== 'brace') { - push({ type: 'text', value }); - continue; - } - - const type = 'close'; - block = stack.pop(); - block.close = true; - - push({ type, value }); - depth--; - - block = stack[stack.length - 1]; - continue; - } - - /** - * Comma: ',' - */ - - if (value === CHAR_COMMA && depth > 0) { - if (block.ranges > 0) { - block.ranges = 0; - const open = block.nodes.shift(); - block.nodes = [open, { type: 'text', value: stringify(block) }]; - } - - push({ type: 'comma', value }); - block.commas++; - continue; - } - - /** - * Dot: '.' - */ - - if (value === CHAR_DOT && depth > 0 && block.commas === 0) { - const siblings = block.nodes; - - if (depth === 0 || siblings.length === 0) { - push({ type: 'text', value }); - continue; - } - - if (prev.type === 'dot') { - block.range = []; - prev.value += value; - prev.type = 'range'; - - if (block.nodes.length !== 3 && block.nodes.length !== 5) { - block.invalid = true; - block.ranges = 0; - prev.type = 'text'; - continue; - } - - block.ranges++; - block.args = []; - continue; - } - - if (prev.type === 'range') { - siblings.pop(); - - const before = siblings[siblings.length - 1]; - before.value += prev.value + value; - prev = before; - block.ranges--; - continue; - } - - push({ type: 'dot', value }); - continue; - } - - /** - * Text - */ - - push({ type: 'text', value }); - } - - // Mark imbalanced braces and brackets as invalid - do { - block = stack.pop(); - - if (block.type !== 'root') { - block.nodes.forEach(node => { - if (!node.nodes) { - if (node.type === 'open') node.isOpen = true; - if (node.type === 'close') node.isClose = true; - if (!node.nodes) node.type = 'text'; - node.invalid = true; - } - }); - - // get the location of the block on parent.nodes (block's siblings) - const parent = stack[stack.length - 1]; - const index = parent.nodes.indexOf(block); - // replace the (invalid) block with it's nodes - parent.nodes.splice(index, 1, ...block.nodes); - } - } while (stack.length > 0); - - push({ type: 'eos' }); - return ast; -}; - -module.exports = parse; diff --git a/node_modules/braces/lib/stringify.js b/node_modules/braces/lib/stringify.js deleted file mode 100755 index 8bcf872..0000000 --- a/node_modules/braces/lib/stringify.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; - -const utils = require('./utils'); - -module.exports = (ast, options = {}) => { - const stringify = (node, parent = {}) => { - const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); - const invalidNode = node.invalid === true && options.escapeInvalid === true; - let output = ''; - - if (node.value) { - if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) { - return '\\' + node.value; - } - return node.value; - } - - if (node.value) { - return node.value; - } - - if (node.nodes) { - for (const child of node.nodes) { - output += stringify(child); - } - } - return output; - }; - - return stringify(ast); -}; - diff --git a/node_modules/braces/lib/utils.js b/node_modules/braces/lib/utils.js deleted file mode 100755 index d19311f..0000000 --- a/node_modules/braces/lib/utils.js +++ /dev/null @@ -1,122 +0,0 @@ -'use strict'; - -exports.isInteger = num => { - if (typeof num === 'number') { - return Number.isInteger(num); - } - if (typeof num === 'string' && num.trim() !== '') { - return Number.isInteger(Number(num)); - } - return false; -}; - -/** - * Find a node of the given type - */ - -exports.find = (node, type) => node.nodes.find(node => node.type === type); - -/** - * Find a node of the given type - */ - -exports.exceedsLimit = (min, max, step = 1, limit) => { - if (limit === false) return false; - if (!exports.isInteger(min) || !exports.isInteger(max)) return false; - return ((Number(max) - Number(min)) / Number(step)) >= limit; -}; - -/** - * Escape the given node with '\\' before node.value - */ - -exports.escapeNode = (block, n = 0, type) => { - const node = block.nodes[n]; - if (!node) return; - - if ((type && node.type === type) || node.type === 'open' || node.type === 'close') { - if (node.escaped !== true) { - node.value = '\\' + node.value; - node.escaped = true; - } - } -}; - -/** - * Returns true if the given brace node should be enclosed in literal braces - */ - -exports.encloseBrace = node => { - if (node.type !== 'brace') return false; - if ((node.commas >> 0 + node.ranges >> 0) === 0) { - node.invalid = true; - return true; - } - return false; -}; - -/** - * Returns true if a brace node is invalid. - */ - -exports.isInvalidBrace = block => { - if (block.type !== 'brace') return false; - if (block.invalid === true || block.dollar) return true; - if ((block.commas >> 0 + block.ranges >> 0) === 0) { - block.invalid = true; - return true; - } - if (block.open !== true || block.close !== true) { - block.invalid = true; - return true; - } - return false; -}; - -/** - * Returns true if a node is an open or close node - */ - -exports.isOpenOrClose = node => { - if (node.type === 'open' || node.type === 'close') { - return true; - } - return node.open === true || node.close === true; -}; - -/** - * Reduce an array of text nodes. - */ - -exports.reduce = nodes => nodes.reduce((acc, node) => { - if (node.type === 'text') acc.push(node.value); - if (node.type === 'range') node.type = 'text'; - return acc; -}, []); - -/** - * Flatten an array - */ - -exports.flatten = (...args) => { - const result = []; - - const flat = arr => { - for (let i = 0; i < arr.length; i++) { - const ele = arr[i]; - - if (Array.isArray(ele)) { - flat(ele); - continue; - } - - if (ele !== undefined) { - result.push(ele); - } - } - return result; - }; - - flat(args); - return result; -}; diff --git a/node_modules/braces/package.json b/node_modules/braces/package.json deleted file mode 100755 index c3c056e..0000000 --- a/node_modules/braces/package.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "braces", - "description": "Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.", - "version": "3.0.3", - "homepage": "https://github.com/micromatch/braces", - "author": "Jon Schlinkert (https://github.com/jonschlinkert)", - "contributors": [ - "Brian Woodward (https://twitter.com/doowb)", - "Elan Shanker (https://github.com/es128)", - "Eugene Sharygin (https://github.com/eush77)", - "hemanth.hm (http://h3manth.com)", - "Jon Schlinkert (http://twitter.com/jonschlinkert)" - ], - "repository": "micromatch/braces", - "bugs": { - "url": "https://github.com/micromatch/braces/issues" - }, - "license": "MIT", - "files": [ - "index.js", - "lib" - ], - "main": "index.js", - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "mocha", - "benchmark": "node benchmark" - }, - "dependencies": { - "fill-range": "^7.1.1" - }, - "devDependencies": { - "ansi-colors": "^3.2.4", - "bash-path": "^2.0.1", - "gulp-format-md": "^2.0.0", - "mocha": "^6.1.1" - }, - "keywords": [ - "alpha", - "alphabetical", - "bash", - "brace", - "braces", - "expand", - "expansion", - "filepath", - "fill", - "fs", - "glob", - "globbing", - "letter", - "match", - "matches", - "matching", - "number", - "numerical", - "path", - "range", - "ranges", - "sh" - ], - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "lint": { - "reflinks": true - }, - "plugins": [ - "gulp-format-md" - ] - } -} diff --git a/node_modules/buffer-builder/LICENSE.txt b/node_modules/buffer-builder/LICENSE.txt deleted file mode 100644 index 0b4033a..0000000 --- a/node_modules/buffer-builder/LICENSE.txt +++ /dev/null @@ -1,7 +0,0 @@ -Copyright (C) 2012 Peter Reid - -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/buffer-builder/ReadMe.md b/node_modules/buffer-builder/ReadMe.md deleted file mode 100644 index b6bf112..0000000 --- a/node_modules/buffer-builder/ReadMe.md +++ /dev/null @@ -1,97 +0,0 @@ -# buffer-builder.js - -BufferBuilder accumulates pieces of data into a buffer, appending each onto the end. The data can be Buffers, strings, a repetition of a byte, or any of the types such as UInt32LE or FloatBE that can be written into Buffers. - -If you are thinking about using this, you should probably have considered streaming your data instead of putting it into a buffer. - -## Usage - -``` js -var BufferBuilder = require('buffer-builder'); -var helloWorld = new BufferBuilder(); - -// Append a string, utf8 encoded by default. -helloWorld.appendString('hello'); - -// Append any type that Buffer has read and write functions for. -helloWorld.appendUInt16LE(0x7720); - -// Append a buffer -helloWorld.appendBuffer(new Buffer([111, 114, 108, 100])); - -// Appended a repetition of a byte -helloWorld.appendFill(33, 3); - -// Convert to an ordinary buffer -var buffer = helloWorld.get(); - -buffer.toString(); // hello world!!! -``` - -## API - -### new BufferBuilder([initialCapacity]) -Allocate an empty BufferBuilder. If you know approximately what size the Buffer will end up being and are trying to squeeze out more performance, you can set the initial size of the backing buffer. - -### appendBuffer(source) -Append a buffer. Use [slice](http://nodejs.org/docs/latest/api/buffers.html#buffer.slice) if you want to append just part of one. - -### appendString(string, [encoding]) -Append a string, encoded by utf8 by default. No trailing 0 is appended. - -### appendStringZero(string, [encoding]) -Append a null-terminated string, encoded by utf8 by default. - -### appendUInt8(value) -Append 8-bit unsigned integer. - -### appendUInt16LE(value) -Append 16-bit unsigned integer, little endian. 1 is encoded as 01 00. - -### appendUInt16BE(value) -Append 16-bit unsigned integer, big endian. 1 is encoded as 00 01. - -### appendUInt32LE(value) -Append 32-bit unsigned integer, little endian. 1 is encoded as 01 00 00 00. - -### appendUInt32BE(value) -Append 32-bit unsigned integer, big endian. 1 is encoded as 00 00 00 01. - -### appendInt8(value) -Append 8-bit signed integer. - -### appendInt16LE(value) -Append 16-bit signed integer, little endian. 1 is encoded as 01 00. - -### appendInt16BE(value) -Append 16-bit signed integer, big endian. 1 is encoded as 00 01. - -### appendInt32LE(value) -Append 32-bit signed integer, little endian. 1 is encoded as 01 00 00 00. - -### appendInt32BE(value) -Append 32-bit signed integer, big endian. 1 is encoded as 00 00 00 01. - -### appendFloatLE(value) -Little-endian float. Occupies 4 bytes. - -### appendFloatBE(value) -Big-endian float. Occupies 4 bytes. - -### appendDoubleLE(value) -Little-endian double. Occupies 8 bytes. - -### appendDoubleBE(value) -Big-endian double. Occupies 8 bytes. - -### appendFill(value, count) -Append _count_ repetitions of _value_ (a byte). - -### get() -Convert to a buffer. This is a deep copy; modifications to the returned buffer will not affect the BufferBuilder. - -### copy(targetBuffer, [targetStart], [sourceStart], [sourceEnd]) -Copy bytes from the BufferBuilder into _targetBuffer_. _targetStart_ and _sourceStart_ default to 0. _sourceEnd_ defaults to the BufferBuilder's length. - -### length -Number of bytes appended so far. diff --git a/node_modules/buffer-builder/buffer-builder.js b/node_modules/buffer-builder/buffer-builder.js deleted file mode 100644 index 4b53962..0000000 --- a/node_modules/buffer-builder/buffer-builder.js +++ /dev/null @@ -1,175 +0,0 @@ -module.exports = BufferBuilder; - -function BufferBuilder(initialCapacity) { - var buffer = Buffer.isBuffer(initialCapacity) ? initialCapacity : new Buffer(initialCapacity || 512); - this.buffers = [buffer]; - - this.writeIndex = 0; - this.length = 0; -} - -/* Append a (subsequence of a) Buffer */ -BufferBuilder.prototype.appendBuffer = function(source) { - if (source.length === 0) return this; - - var tail = this.buffers[this.buffers.length-1]; - - var spaceInCurrent = tail.length - this.writeIndex; - if (source.length <= spaceInCurrent) { - // We can fit the whole thing in the current buffer - source.copy(tail, this.writeIndex); - this.writeIndex += source.length; - } else { - // Copy as much as we can into the current buffer - if (spaceInCurrent) { // Buffer.copy does not handle the degenerate case well - source.copy(tail, this.writeIndex);//, start, start + spaceInCurrent); - } - // Fit the rest into a new buffer. Make sure it is at least as big as - // what we're being asked to add, and also follow our double-previous-buffer pattern. - var newBuf = new Buffer(Math.max(tail.length*2, source.length)); - - this.buffers.push(newBuf); - this.writeIndex = source.copy(newBuf, 0, spaceInCurrent); - } - - this.length += source.length; - - return this; -}; - -function makeAppender(encoder, size) { - return function(x) { - var buf = this.buffers[this.buffers.length-1]; - if (this.writeIndex + size <= buf.length) { - encoder.call(buf, x, this.writeIndex, true); - this.writeIndex += size; - this.length += size; - } else { - var scratchBuffer = new Buffer(size); - encoder.call(scratchBuffer, x, 0, true); - this.appendBuffer(scratchBuffer); - } - - return this; - }; -} - -BufferBuilder.prototype.appendUInt8 = makeAppender(Buffer.prototype.writeUInt8, 1); -BufferBuilder.prototype.appendUInt16LE = makeAppender(Buffer.prototype.writeUInt16LE, 2); -BufferBuilder.prototype.appendUInt16BE = makeAppender(Buffer.prototype.writeUInt16BE, 2); -BufferBuilder.prototype.appendUInt32LE = makeAppender(Buffer.prototype.writeUInt32LE, 4); -BufferBuilder.prototype.appendUInt32BE = makeAppender(Buffer.prototype.writeUInt32BE, 4); -BufferBuilder.prototype.appendInt8 = makeAppender(Buffer.prototype.writeInt8, 1); -BufferBuilder.prototype.appendInt16LE = makeAppender(Buffer.prototype.writeInt16LE, 2); -BufferBuilder.prototype.appendInt16BE = makeAppender(Buffer.prototype.writeInt16BE, 2); -BufferBuilder.prototype.appendInt32LE = makeAppender(Buffer.prototype.writeInt32LE, 4); -BufferBuilder.prototype.appendInt32BE = makeAppender(Buffer.prototype.writeInt32BE, 4); -BufferBuilder.prototype.appendFloatLE = makeAppender(Buffer.prototype.writeFloatLE, 4); -BufferBuilder.prototype.appendFloatBE = makeAppender(Buffer.prototype.writeFloatBE, 4); -BufferBuilder.prototype.appendDoubleLE = makeAppender(Buffer.prototype.writeDoubleLE, 8); -BufferBuilder.prototype.appendDoubleBE = makeAppender(Buffer.prototype.writeDoubleBE, 8); - -BufferBuilder.prototype.appendString = function(str, encoding) { - return this.appendBuffer(new Buffer(str, encoding)); -}; - -BufferBuilder.prototype.appendStringZero = function(str, encoding) { - return this.appendString(str + '\0', encoding); -} - -BufferBuilder.prototype.appendFill = function(value, count) { - if (!count) return; - - var tail = this.buffers[this.buffers.length-1]; - - var spaceInCurrent = tail.length - this.writeIndex; - if (count <= spaceInCurrent) { - // We can fit the whole thing in the current buffer - tail.fill(value, this.writeIndex, this.writeIndex + count); - this.writeIndex += count; - } else { - // Copy as much as we can into the current buffer - if (spaceInCurrent) { // does not handle the degenerate case well - tail.fill(value, this.writeIndex); - } - // Fit the rest into a new buffer. Make sure it is at least as big as - // what we're being asked to add, and also follow our double-previous-buffer pattern. - var newBuf = new Buffer(Math.max(tail.length*2, count)); - var couldNotFit = count - spaceInCurrent; - newBuf.fill(value, 0, couldNotFit); - this.buffers.push(newBuf); - this.writeIndex = couldNotFit; - } - - this.length += count; - - return this; -}; - -/* Convert to a plain Buffer */ -BufferBuilder.prototype.get = function() { - var concatted = new Buffer(this.length); - this.copy(concatted); - return concatted; -}; - -/* Copy into targetBuffer */ -BufferBuilder.prototype.copy = function(targetBuffer, targetStart, sourceStart, sourceEnd) { - targetStart || (targetStart = 0); - sourceStart || (sourceStart = 0); - sourceEnd !== undefined || (sourceEnd = this.length); - - // Validation. Besides making us fail nicely, this makes it so we can skip checks below. - if (targetStart < 0 || (targetStart>0 && targetStart >= targetBuffer.length)) { - throw new Error('targetStart is out of bounds'); - } - if (sourceEnd < sourceStart) { - throw new Error('sourceEnd < sourceStart'); - } - if (sourceStart < 0 || (sourceStart>0 && sourceStart >= this.length)) { - throw new Error('sourceStart is out of bounds'); - } - if (sourceEnd > this.length) { - throw new Error('sourceEnd out of bounds'); - } - - sourceEnd = Math.min(sourceEnd, sourceStart + (targetBuffer.length-targetStart)); - var targetWriteIdx = targetStart; - var readBuffer = 0; - - // Skip through our buffers until we get to where the copying should start. - var copyLength = sourceEnd - sourceStart; - var skipped = 0; - while (skipped < sourceStart) { - var buffer = this.buffers[readBuffer]; - if (buffer.length + skipped < targetStart) { - skipped += buffer.length; - } else { - // Do the first copy. This one is different from the others in that it - // does not start from the beginning of one of our internal buffers. - var copyStart = sourceStart - skipped; - var inThisBuffer = Math.min(copyLength, buffer.length - copyStart); - - buffer.copy(targetBuffer, targetWriteIdx, copyStart, copyStart + inThisBuffer); - targetWriteIdx += inThisBuffer; - copyLength -= inThisBuffer; - readBuffer++; - break; - } - readBuffer++; - } - - // Copy the rest. Note that we can't run off of our end because we validated the range up above - while (copyLength > 0) { - var buffer = this.buffers[readBuffer]; - var toCopy = Math.min(buffer.length, copyLength); - - buffer.copy(targetBuffer, targetWriteIdx, 0, toCopy); - copyLength -= toCopy; - targetWriteIdx += toCopy; - readBuffer++; - } - - // Return how many bytes were copied - return sourceEnd - sourceStart; -}; diff --git a/node_modules/buffer-builder/package.json b/node_modules/buffer-builder/package.json deleted file mode 100644 index 2147787..0000000 --- a/node_modules/buffer-builder/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name" : "buffer-builder", - "version" : "0.2.0", - "description" : "Build a buffer without knowing its size beforehand", - "main" : "buffer-builder", - "repository" : { - "type" : "git", - "url" : "http://github.com/PeterReid/node-buffer-builder.git" - }, - "keywords" : [ - "buffer-builder", "buffer" - ], - "author" : { - "name" : "Peter Reid", - "email" : "peter.d.reid@gmail.com" - }, - "license" : "MIT/X11", - "engine" : { - "node" : ">=0.6.0" - } -} diff --git a/node_modules/buffer-builder/test/buffer-builder-test.js b/node_modules/buffer-builder/test/buffer-builder-test.js deleted file mode 100644 index 5cff295..0000000 --- a/node_modules/buffer-builder/test/buffer-builder-test.js +++ /dev/null @@ -1,294 +0,0 @@ -var assert = require('assert'); -var BufferBuilder = require('../buffer-builder'); - -/* Build 1 2 3 3 4 5 4 5 6 7 ... and make sure it comes out right */ -(function() { - var builder = new BufferBuilder(7); - var top = 100; - for (var base = 1; base < top; base++) { - var xs = []; - for (var offset = 0; offset < base; offset++) { - xs.push(base + offset); - } - builder.appendBuffer(new Buffer(xs)); - } - - var result = builder.get(); - var idx = 0; - for (var base = 1; base < top; base++) { - for (var offset = 0; offset < base; offset++) { - assert.equal(result[idx++], base+offset); - } - } -})(); - -/* Build 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 ... and make sure it comes out right. */ -(function() { - var builder = new BufferBuilder(3); - var top = 20; - for (var i = 1; i < top; i++) { - builder.appendFill(i, i); - } - - var result = builder.get(); - var idx = 0; - for (var i = 1; i < top; i++) { - for (var j = 0; j < i; j++) { - assert.equal(result[idx], i); - idx++; - } - } -})(); - -/* Numeric types come out like they went in */ -(function() { - var builder = new BufferBuilder(); - var n = 500; - - var buildFns = BufferBuilder.prototype; - var readFns = Buffer.prototype; - var entries = []; - - function Entry(buildFn, readFn, length, value) { - this.buildFn = buildFn; - this.readFn = readFn; - this.length = length; - this.value = value; - } - - for (var i = -n; i <= n; i++) { - entries.push(new Entry(buildFns.appendInt32LE, readFns.readInt32LE, 4, i)); - entries.push(new Entry(buildFns.appendInt32BE, readFns.readInt32BE, 4, i)); - entries.push(new Entry(buildFns.appendUInt32LE, readFns.readUInt32LE, 4, Math.abs(i))); - entries.push(new Entry(buildFns.appendUInt32BE, readFns.readUInt32BE, 4, Math.abs(i))); - entries.push(new Entry(buildFns.appendInt16LE, readFns.readInt16LE, 2, i)); - entries.push(new Entry(buildFns.appendInt16BE, readFns.readInt16BE, 2, i)); - entries.push(new Entry(buildFns.appendUInt16LE, readFns.readUInt16LE, 2, Math.abs(i))); - entries.push(new Entry(buildFns.appendUInt16BE, readFns.readUInt16BE, 2, Math.abs(i))); - entries.push(new Entry(buildFns.appendInt8, readFns.readInt8, 1, Math.round(i/50))); - entries.push(new Entry(buildFns.appendUInt8, readFns.readUInt8, 1, Math.abs(Math.round(i/50)))); - entries.push(new Entry(buildFns.appendFloatLE, readFns.readFloatLE, 4, i)); - entries.push(new Entry(buildFns.appendFloatBE, readFns.readFloatBE, 4, i)); - entries.push(new Entry(buildFns.appendDoubleLE, readFns.readDoubleLE, 8, i)); - entries.push(new Entry(buildFns.appendDoubleBE, readFns.readDoubleBE, 8, i)); - } - - for (var i = 0; i < entries.length; i++) { - var entry = entries[i]; - entry.buildFn.call(builder, entry.value); - } - - var result = builder.get(); - var idx = 0; - for (var i = 0; i < entries.length; i++) { - var entry = entries[i]; - var read = entry.readFn.call(result, idx); - assert.equal(read, entry.value); - idx += entry.length; - } -})(); - -/* Newly-created buffer should be empty */ -(function() { - assert.equal(new BufferBuilder().get().length, 0) -})(); - -/* It should concatenating strings. */ -(function() { - var words = ['This', 'is', 'a', 'test']; - var builder = new BufferBuilder(); - for (var i = 0; i < words.length; i++) { - builder.appendString(words[i]); - } - - assert.equal(builder.get().toString(), words.join('')); -})(); - -/* Test appendStringZero */ -(function() { - var words = ['alpha', 'bravo', 'charlie', 'delta']; - var builder = new BufferBuilder(); - for (var i = 0; i < words.length; i++) { - builder.appendStringZero(words[i]); - } - - function appendZero(str) { return str + '\0'; } - assert.equal(builder.get().toString() , words.map(appendZero).join('')); -})(); - -/* copy() sanity checks */ -(function() { - var check = function(low, high, targetStart, sourceStart, sourceEnd) { - var source = new BufferBuilder(); - source.appendFill(1, 10); - var dest = new Buffer(20); - dest.fill(0); - - - source.copy(dest, targetStart, sourceStart, sourceEnd); - for (var i = 0; i < 20; i++) { - assert.equal(dest[i], low<=i && i= targetStart && i < targetStart + sourceEnd - sourceStart) { - expected = i - targetStart + sourceStart + 1; - } else { - expected = 0; - } - assert.equal(expected, target[i]); - } - } -})(); - -/* Overlap small chunks over one large copy, making sure that does not change anything. */ -(function() { - var n = 1000; - var builder = new BufferBuilder(10); - var x = .4; - for (var i = 0; i < n; i++) { - builder.appendDoubleLE(x); - x = x * (1-x) * 4; - } - - var buffersMatchOneOff = function(b1, b2) { - // Why one off? Because then sourceStart != targetStart, so I can't have mixed those up in copy(). - assert.equal(b1.length+1, b2.length); - for (var i = 0; i < b1.length; i++) { - assert.equal(b1[i], b2[i+1], 'byte ' + i + ' mismatch'); - } - } - - var original = builder.get(); - var copyTarget = new Buffer(original.length+1); - original.copy(copyTarget, 1); - - buffersMatchOneOff(original, copyTarget); - var copyLength = 105; - var copyStart = 4; - var copyOffset = 143; - for (var i = copyStart; i+copyLength < builder.length; i += copyOffset) { - builder.copy(copyTarget, i+1, i, i + copyLength); - //console.log(copyTarget); - buffersMatchOneOff(original, copyTarget); - } - -})(); - - -/* Try a copy that starts right on a buffer boundary */ -(function() { - var builder = new BufferBuilder(3); - for (var i = 0; i < 10; i++) { - builder.appendUInt8(i); - } - - var dest = new Buffer(7); - builder.copy(dest, 0, 3); - for (var i = 0; i < 7; i++) { - assert.equal(dest[i], i+3); - } -})(); - -/* BufferBuilder.copy() should behave just like Buffer.copy(), including the exceptions thrown */ -(function() { - var builder = new BufferBuilder(5); - for (var i = 0; i < 100; i++) { - builder.appendUInt8(i); - } - var buffer = builder.get(); - - var dest = new Buffer(50); - - var behavesSame = function(f) { - var bufferException, bufferResult, builderException, builderResult; - try { - bufferResult = f(buffer); - } catch (e) { - bufferException = e; - } - try { - builderResult = f(buffer); - } catch (e) { - builderException = e; - } - - assert.equal(bufferResult, builderResult); - assert.equal(''+bufferException, ''+builderException); - }; - - // copies that get cut off because target is small - behavesSame(function(b) { return b.copy(new Buffer(50), 20) }); - behavesSame(function(b) { return b.copy(new Buffer(50)) }); - behavesSame(function(b) { return b.copy(new Buffer(50)) }); - - // targetStart too low - behavesSame(function(b) { return b.copy(new Buffer(50, -1)) }); - // targetStart too high - behavesSame(function(b) { return b.copy(new Buffer(50, 50)) }); - behavesSame(function(b) { return b.copy(new Buffer(50, 51)) }); - - // sourceStart too low - behavesSame(function(b) { return b.copy(new Buffer(50, 0, -4)) }); - // sourceStart too high - behavesSame(function(b) { return b.copy(new Buffer(50, 0, 130)) }); - - // copy cut off by end of source - behavesSame(function(b) { return b.copy(new Buffer(50, 0, 99)) }); - - // degenerate copy - behavesSame(function(b) { return b.copy(new Buffer(50, 0, 99, 99)) }); - - // sourceEnd after sourceStart - behavesSame(function(b) { return b.copy(new Buffer(50, 0, 99, 90)) }); - - // sourceEnd too high - behavesSame(function(b) { return b.copy(new Buffer(50, 0, 99, 150)) }); - - // sourceStart and sourceEnd too high - behavesSame(function(b) { return b.copy(new Buffer(50, 0, 120, 150)) }); - -})(); - -/* Make sure functions are chainable */ -(function() { - var x = new BufferBuilder(); - assert.equal(x, x.appendString('hello')); - assert.equal(x, x.appendUInt16LE(0x7720)); - assert.equal(x, x.appendBuffer(new Buffer([111, 114, 108, 100]))); - assert.equal(x, x.appendFill(33, 3)); -})(); - -/* Test the degenerate copy */ -(function() { - var x = new BufferBuilder(); - x.appendBuffer(new Buffer([2,4,6,8])); - var b = new Buffer(7); - b.fill(0); - x.copy(b, 0,0,0); - assert.equal(b[0], 0); -})(); diff --git a/node_modules/chalk/index.d.ts b/node_modules/chalk/index.d.ts deleted file mode 100644 index 9cd88f3..0000000 --- a/node_modules/chalk/index.d.ts +++ /dev/null @@ -1,415 +0,0 @@ -/** -Basic foreground colors. - -[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) -*/ -declare type ForegroundColor = - | 'black' - | 'red' - | 'green' - | 'yellow' - | 'blue' - | 'magenta' - | 'cyan' - | 'white' - | 'gray' - | 'grey' - | 'blackBright' - | 'redBright' - | 'greenBright' - | 'yellowBright' - | 'blueBright' - | 'magentaBright' - | 'cyanBright' - | 'whiteBright'; - -/** -Basic background colors. - -[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) -*/ -declare type BackgroundColor = - | 'bgBlack' - | 'bgRed' - | 'bgGreen' - | 'bgYellow' - | 'bgBlue' - | 'bgMagenta' - | 'bgCyan' - | 'bgWhite' - | 'bgGray' - | 'bgGrey' - | 'bgBlackBright' - | 'bgRedBright' - | 'bgGreenBright' - | 'bgYellowBright' - | 'bgBlueBright' - | 'bgMagentaBright' - | 'bgCyanBright' - | 'bgWhiteBright'; - -/** -Basic colors. - -[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) -*/ -declare type Color = ForegroundColor | BackgroundColor; - -declare type Modifiers = - | 'reset' - | 'bold' - | 'dim' - | 'italic' - | 'underline' - | 'inverse' - | 'hidden' - | 'strikethrough' - | 'visible'; - -declare namespace chalk { - /** - Levels: - - `0` - All colors disabled. - - `1` - Basic 16 colors support. - - `2` - ANSI 256 colors support. - - `3` - Truecolor 16 million colors support. - */ - type Level = 0 | 1 | 2 | 3; - - interface Options { - /** - Specify the color support for Chalk. - - By default, color support is automatically detected based on the environment. - - Levels: - - `0` - All colors disabled. - - `1` - Basic 16 colors support. - - `2` - ANSI 256 colors support. - - `3` - Truecolor 16 million colors support. - */ - level?: Level; - } - - /** - Return a new Chalk instance. - */ - type Instance = new (options?: Options) => Chalk; - - /** - Detect whether the terminal supports color. - */ - interface ColorSupport { - /** - The color level used by Chalk. - */ - level: Level; - - /** - Return whether Chalk supports basic 16 colors. - */ - hasBasic: boolean; - - /** - Return whether Chalk supports ANSI 256 colors. - */ - has256: boolean; - - /** - Return whether Chalk supports Truecolor 16 million colors. - */ - has16m: boolean; - } - - interface ChalkFunction { - /** - Use a template string. - - @remarks Template literals are unsupported for nested calls (see [issue #341](https://github.com/chalk/chalk/issues/341)) - - @example - ``` - import chalk = require('chalk'); - - log(chalk` - CPU: {red ${cpu.totalPercent}%} - RAM: {green ${ram.used / ram.total * 100}%} - DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} - `); - ``` - - @example - ``` - import chalk = require('chalk'); - - log(chalk.red.bgBlack`2 + 3 = {bold ${2 + 3}}`) - ``` - */ - (text: TemplateStringsArray, ...placeholders: unknown[]): string; - - (...text: unknown[]): string; - } - - interface Chalk extends ChalkFunction { - /** - Return a new Chalk instance. - */ - Instance: Instance; - - /** - The color support for Chalk. - - By default, color support is automatically detected based on the environment. - - Levels: - - `0` - All colors disabled. - - `1` - Basic 16 colors support. - - `2` - ANSI 256 colors support. - - `3` - Truecolor 16 million colors support. - */ - level: Level; - - /** - Use HEX value to set text color. - - @param color - Hexadecimal value representing the desired color. - - @example - ``` - import chalk = require('chalk'); - - chalk.hex('#DEADED'); - ``` - */ - hex(color: string): Chalk; - - /** - Use keyword color value to set text color. - - @param color - Keyword value representing the desired color. - - @example - ``` - import chalk = require('chalk'); - - chalk.keyword('orange'); - ``` - */ - keyword(color: string): Chalk; - - /** - Use RGB values to set text color. - */ - rgb(red: number, green: number, blue: number): Chalk; - - /** - Use HSL values to set text color. - */ - hsl(hue: number, saturation: number, lightness: number): Chalk; - - /** - Use HSV values to set text color. - */ - hsv(hue: number, saturation: number, value: number): Chalk; - - /** - Use HWB values to set text color. - */ - hwb(hue: number, whiteness: number, blackness: number): Chalk; - - /** - Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set text color. - - 30 <= code && code < 38 || 90 <= code && code < 98 - For example, 31 for red, 91 for redBright. - */ - ansi(code: number): Chalk; - - /** - Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color. - */ - ansi256(index: number): Chalk; - - /** - Use HEX value to set background color. - - @param color - Hexadecimal value representing the desired color. - - @example - ``` - import chalk = require('chalk'); - - chalk.bgHex('#DEADED'); - ``` - */ - bgHex(color: string): Chalk; - - /** - Use keyword color value to set background color. - - @param color - Keyword value representing the desired color. - - @example - ``` - import chalk = require('chalk'); - - chalk.bgKeyword('orange'); - ``` - */ - bgKeyword(color: string): Chalk; - - /** - Use RGB values to set background color. - */ - bgRgb(red: number, green: number, blue: number): Chalk; - - /** - Use HSL values to set background color. - */ - bgHsl(hue: number, saturation: number, lightness: number): Chalk; - - /** - Use HSV values to set background color. - */ - bgHsv(hue: number, saturation: number, value: number): Chalk; - - /** - Use HWB values to set background color. - */ - bgHwb(hue: number, whiteness: number, blackness: number): Chalk; - - /** - Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set background color. - - 30 <= code && code < 38 || 90 <= code && code < 98 - For example, 31 for red, 91 for redBright. - Use the foreground code, not the background code (for example, not 41, nor 101). - */ - bgAnsi(code: number): Chalk; - - /** - Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color. - */ - bgAnsi256(index: number): Chalk; - - /** - Modifier: Resets the current color chain. - */ - readonly reset: Chalk; - - /** - Modifier: Make text bold. - */ - readonly bold: Chalk; - - /** - Modifier: Emitting only a small amount of light. - */ - readonly dim: Chalk; - - /** - Modifier: Make text italic. (Not widely supported) - */ - readonly italic: Chalk; - - /** - Modifier: Make text underline. (Not widely supported) - */ - readonly underline: Chalk; - - /** - Modifier: Inverse background and foreground colors. - */ - readonly inverse: Chalk; - - /** - Modifier: Prints the text, but makes it invisible. - */ - readonly hidden: Chalk; - - /** - Modifier: Puts a horizontal line through the center of the text. (Not widely supported) - */ - readonly strikethrough: Chalk; - - /** - Modifier: Prints the text only when Chalk has a color support level > 0. - Can be useful for things that are purely cosmetic. - */ - readonly visible: Chalk; - - readonly black: Chalk; - readonly red: Chalk; - readonly green: Chalk; - readonly yellow: Chalk; - readonly blue: Chalk; - readonly magenta: Chalk; - readonly cyan: Chalk; - readonly white: Chalk; - - /* - Alias for `blackBright`. - */ - readonly gray: Chalk; - - /* - Alias for `blackBright`. - */ - readonly grey: Chalk; - - readonly blackBright: Chalk; - readonly redBright: Chalk; - readonly greenBright: Chalk; - readonly yellowBright: Chalk; - readonly blueBright: Chalk; - readonly magentaBright: Chalk; - readonly cyanBright: Chalk; - readonly whiteBright: Chalk; - - readonly bgBlack: Chalk; - readonly bgRed: Chalk; - readonly bgGreen: Chalk; - readonly bgYellow: Chalk; - readonly bgBlue: Chalk; - readonly bgMagenta: Chalk; - readonly bgCyan: Chalk; - readonly bgWhite: Chalk; - - /* - Alias for `bgBlackBright`. - */ - readonly bgGray: Chalk; - - /* - Alias for `bgBlackBright`. - */ - readonly bgGrey: Chalk; - - readonly bgBlackBright: Chalk; - readonly bgRedBright: Chalk; - readonly bgGreenBright: Chalk; - readonly bgYellowBright: Chalk; - readonly bgBlueBright: Chalk; - readonly bgMagentaBright: Chalk; - readonly bgCyanBright: Chalk; - readonly bgWhiteBright: Chalk; - } -} - -/** -Main Chalk object that allows to chain styles together. -Call the last one as a method with a string argument. -Order doesn't matter, and later styles take precedent in case of a conflict. -This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`. -*/ -declare const chalk: chalk.Chalk & chalk.ChalkFunction & { - supportsColor: chalk.ColorSupport | false; - Level: chalk.Level; - Color: Color; - ForegroundColor: ForegroundColor; - BackgroundColor: BackgroundColor; - Modifiers: Modifiers; - stderr: chalk.Chalk & {supportsColor: chalk.ColorSupport | false}; -}; - -export = chalk; diff --git a/node_modules/chalk/license b/node_modules/chalk/license deleted file mode 100644 index e7af2f7..0000000 --- a/node_modules/chalk/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -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/chalk/node_modules/has-flag/index.d.ts b/node_modules/chalk/node_modules/has-flag/index.d.ts deleted file mode 100644 index a0a48c8..0000000 --- a/node_modules/chalk/node_modules/has-flag/index.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** -Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag. - -@param flag - CLI flag to look for. The `--` prefix is optional. -@param argv - CLI arguments. Default: `process.argv`. -@returns Whether the flag exists. - -@example -``` -// $ ts-node foo.ts -f --unicorn --foo=bar -- --rainbow - -// foo.ts -import hasFlag = require('has-flag'); - -hasFlag('unicorn'); -//=> true - -hasFlag('--unicorn'); -//=> true - -hasFlag('f'); -//=> true - -hasFlag('-f'); -//=> true - -hasFlag('foo=bar'); -//=> true - -hasFlag('foo'); -//=> false - -hasFlag('rainbow'); -//=> false -``` -*/ -declare function hasFlag(flag: string, argv?: string[]): boolean; - -export = hasFlag; diff --git a/node_modules/chalk/node_modules/has-flag/index.js b/node_modules/chalk/node_modules/has-flag/index.js deleted file mode 100644 index b6f80b1..0000000 --- a/node_modules/chalk/node_modules/has-flag/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = (flag, argv = process.argv) => { - const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); - const position = argv.indexOf(prefix + flag); - const terminatorPosition = argv.indexOf('--'); - return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); -}; diff --git a/node_modules/chalk/node_modules/has-flag/license b/node_modules/chalk/node_modules/has-flag/license deleted file mode 100644 index e7af2f7..0000000 --- a/node_modules/chalk/node_modules/has-flag/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -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/chalk/node_modules/has-flag/package.json b/node_modules/chalk/node_modules/has-flag/package.json deleted file mode 100644 index a9cba4b..0000000 --- a/node_modules/chalk/node_modules/has-flag/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "has-flag", - "version": "4.0.0", - "description": "Check if argv has a specific flag", - "license": "MIT", - "repository": "sindresorhus/has-flag", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "has", - "check", - "detect", - "contains", - "find", - "flag", - "cli", - "command-line", - "argv", - "process", - "arg", - "args", - "argument", - "arguments", - "getopt", - "minimist", - "optimist" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/node_modules/chalk/node_modules/has-flag/readme.md b/node_modules/chalk/node_modules/has-flag/readme.md deleted file mode 100644 index 3f72dff..0000000 --- a/node_modules/chalk/node_modules/has-flag/readme.md +++ /dev/null @@ -1,89 +0,0 @@ -# has-flag [![Build Status](https://travis-ci.org/sindresorhus/has-flag.svg?branch=master)](https://travis-ci.org/sindresorhus/has-flag) - -> Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag - -Correctly stops looking after an `--` argument terminator. - ---- - -
- ---- - - -## Install - -``` -$ npm install has-flag -``` - - -## Usage - -```js -// foo.js -const hasFlag = require('has-flag'); - -hasFlag('unicorn'); -//=> true - -hasFlag('--unicorn'); -//=> true - -hasFlag('f'); -//=> true - -hasFlag('-f'); -//=> true - -hasFlag('foo=bar'); -//=> true - -hasFlag('foo'); -//=> false - -hasFlag('rainbow'); -//=> false -``` - -``` -$ node foo.js -f --unicorn --foo=bar -- --rainbow -``` - - -## API - -### hasFlag(flag, [argv]) - -Returns a boolean for whether the flag exists. - -#### flag - -Type: `string` - -CLI flag to look for. The `--` prefix is optional. - -#### argv - -Type: `string[]`
-Default: `process.argv` - -CLI arguments. - - -## Security - -To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/chalk/node_modules/supports-color/browser.js b/node_modules/chalk/node_modules/supports-color/browser.js deleted file mode 100644 index 62afa3a..0000000 --- a/node_modules/chalk/node_modules/supports-color/browser.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; -module.exports = { - stdout: false, - stderr: false -}; diff --git a/node_modules/chalk/node_modules/supports-color/index.js b/node_modules/chalk/node_modules/supports-color/index.js deleted file mode 100644 index 6fada39..0000000 --- a/node_modules/chalk/node_modules/supports-color/index.js +++ /dev/null @@ -1,135 +0,0 @@ -'use strict'; -const os = require('os'); -const tty = require('tty'); -const hasFlag = require('has-flag'); - -const {env} = process; - -let forceColor; -if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false') || - hasFlag('color=never')) { - forceColor = 0; -} else if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - forceColor = 1; -} - -if ('FORCE_COLOR' in env) { - if (env.FORCE_COLOR === 'true') { - forceColor = 1; - } else if (env.FORCE_COLOR === 'false') { - forceColor = 0; - } else { - forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3); - } -} - -function translateLevel(level) { - if (level === 0) { - return false; - } - - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; -} - -function supportsColor(haveStream, streamIsTTY) { - if (forceColor === 0) { - return 0; - } - - if (hasFlag('color=16m') || - hasFlag('color=full') || - hasFlag('color=truecolor')) { - return 3; - } - - if (hasFlag('color=256')) { - return 2; - } - - if (haveStream && !streamIsTTY && forceColor === undefined) { - return 0; - } - - const min = forceColor || 0; - - if (env.TERM === 'dumb') { - return min; - } - - if (process.platform === 'win32') { - // Windows 10 build 10586 is the first Windows release that supports 256 colors. - // Windows 10 build 14931 is the first release that supports 16m/TrueColor. - const osRelease = os.release().split('.'); - if ( - Number(osRelease[0]) >= 10 && - Number(osRelease[2]) >= 10586 - ) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; - } - - return 1; - } - - if ('CI' in env) { - if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') { - return 1; - } - - return min; - } - - if ('TEAMCITY_VERSION' in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } - - if (env.COLORTERM === 'truecolor') { - return 3; - } - - if ('TERM_PROGRAM' in env) { - const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); - - switch (env.TERM_PROGRAM) { - case 'iTerm.app': - return version >= 3 ? 3 : 2; - case 'Apple_Terminal': - return 2; - // No default - } - } - - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } - - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } - - if ('COLORTERM' in env) { - return 1; - } - - return min; -} - -function getSupportLevel(stream) { - const level = supportsColor(stream, stream && stream.isTTY); - return translateLevel(level); -} - -module.exports = { - supportsColor: getSupportLevel, - stdout: translateLevel(supportsColor(true, tty.isatty(1))), - stderr: translateLevel(supportsColor(true, tty.isatty(2))) -}; diff --git a/node_modules/chalk/node_modules/supports-color/license b/node_modules/chalk/node_modules/supports-color/license deleted file mode 100644 index e7af2f7..0000000 --- a/node_modules/chalk/node_modules/supports-color/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -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/chalk/node_modules/supports-color/package.json b/node_modules/chalk/node_modules/supports-color/package.json deleted file mode 100644 index f7182ed..0000000 --- a/node_modules/chalk/node_modules/supports-color/package.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "supports-color", - "version": "7.2.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "xo": "^0.24.0" - }, - "browser": "browser.js" -} diff --git a/node_modules/chalk/node_modules/supports-color/readme.md b/node_modules/chalk/node_modules/supports-color/readme.md deleted file mode 100644 index 3654228..0000000 --- a/node_modules/chalk/node_modules/supports-color/readme.md +++ /dev/null @@ -1,76 +0,0 @@ -# supports-color [![Build Status](https://travis-ci.org/chalk/supports-color.svg?branch=master)](https://travis-ci.org/chalk/supports-color) - -> Detect whether a terminal supports color - - -## Install - -``` -$ npm install supports-color -``` - - -## Usage - -```js -const supportsColor = require('supports-color'); - -if (supportsColor.stdout) { - console.log('Terminal stdout supports color'); -} - -if (supportsColor.stdout.has256) { - console.log('Terminal stdout supports 256 colors'); -} - -if (supportsColor.stderr.has16m) { - console.log('Terminal stderr supports 16 million colors (truecolor)'); -} -``` - - -## API - -Returns an `Object` with a `stdout` and `stderr` property for testing either streams. Each property is an `Object`, or `false` if color is not supported. - -The `stdout`/`stderr` objects specifies a level of support for color through a `.level` property and a corresponding flag: - -- `.level = 1` and `.hasBasic = true`: Basic color support (16 colors) -- `.level = 2` and `.has256 = true`: 256 color support -- `.level = 3` and `.has16m = true`: Truecolor support (16 million colors) - - -## Info - -It obeys the `--color` and `--no-color` CLI flags. - -For situations where using `--color` is not possible, use the environment variable `FORCE_COLOR=1` (level 1), `FORCE_COLOR=2` (level 2), or `FORCE_COLOR=3` (level 3) to forcefully enable color, or `FORCE_COLOR=0` to forcefully disable. The use of `FORCE_COLOR` overrides all other color support checks. - -Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively. - - -## Related - -- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module -- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right - - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
- ---- diff --git a/node_modules/chalk/package.json b/node_modules/chalk/package.json deleted file mode 100644 index 47c23f2..0000000 --- a/node_modules/chalk/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "name": "chalk", - "version": "4.1.2", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "funding": "https://github.com/chalk/chalk?sponsor=1", - "main": "source", - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && nyc ava && tsd", - "bench": "matcha benchmark.js" - }, - "files": [ - "source", - "index.d.ts" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "coveralls": "^3.0.7", - "execa": "^4.0.0", - "import-fresh": "^3.1.0", - "matcha": "^0.7.0", - "nyc": "^15.0.0", - "resolve-from": "^5.0.0", - "tsd": "^0.7.4", - "xo": "^0.28.2" - }, - "xo": { - "rules": { - "unicorn/prefer-string-slice": "off", - "unicorn/prefer-includes": "off", - "@typescript-eslint/member-ordering": "off", - "no-redeclare": "off", - "unicorn/string-content": "off", - "unicorn/better-regex": "off" - } - } -} diff --git a/node_modules/chalk/readme.md b/node_modules/chalk/readme.md deleted file mode 100644 index a055d21..0000000 --- a/node_modules/chalk/readme.md +++ /dev/null @@ -1,341 +0,0 @@ -

-
-
- Chalk -
-
-
-

- -> Terminal string styling done right - -[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![npm dependents](https://badgen.net/npm/dependents/chalk)](https://www.npmjs.com/package/chalk?activeTab=dependents) [![Downloads](https://badgen.net/npm/dt/chalk)](https://www.npmjs.com/package/chalk) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) ![TypeScript-ready](https://img.shields.io/npm/types/chalk.svg) [![run on repl.it](https://repl.it/badge/github/chalk/chalk)](https://repl.it/github/chalk/chalk) - - - -
- ---- - - - ---- - -
- -## Highlights - -- Expressive API -- Highly performant -- Ability to nest styles -- [256/Truecolor color support](#256-and-truecolor-color-support) -- Auto-detects color support -- Doesn't extend `String.prototype` -- Clean and focused -- Actively maintained -- [Used by ~50,000 packages](https://www.npmjs.com/browse/depended/chalk) as of January 1, 2020 - -## Install - -```console -$ npm install chalk -``` - -## Usage - -```js -const chalk = require('chalk'); - -console.log(chalk.blue('Hello world!')); -``` - -Chalk comes with an easy to use composable API where you just chain and nest the styles you want. - -```js -const chalk = require('chalk'); -const log = console.log; - -// Combine styled and normal strings -log(chalk.blue('Hello') + ' World' + chalk.red('!')); - -// Compose multiple styles using the chainable API -log(chalk.blue.bgRed.bold('Hello world!')); - -// Pass in multiple arguments -log(chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz')); - -// Nest styles -log(chalk.red('Hello', chalk.underline.bgBlue('world') + '!')); - -// Nest styles of the same type even (color, underline, background) -log(chalk.green( - 'I am a green line ' + - chalk.blue.underline.bold('with a blue substring') + - ' that becomes green again!' -)); - -// ES2015 template literal -log(` -CPU: ${chalk.red('90%')} -RAM: ${chalk.green('40%')} -DISK: ${chalk.yellow('70%')} -`); - -// ES2015 tagged template literal -log(chalk` -CPU: {red ${cpu.totalPercent}%} -RAM: {green ${ram.used / ram.total * 100}%} -DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} -`); - -// Use RGB colors in terminal emulators that support it. -log(chalk.keyword('orange')('Yay for orange colored text!')); -log(chalk.rgb(123, 45, 67).underline('Underlined reddish color')); -log(chalk.hex('#DEADED').bold('Bold gray!')); -``` - -Easily define your own themes: - -```js -const chalk = require('chalk'); - -const error = chalk.bold.red; -const warning = chalk.keyword('orange'); - -console.log(error('Error!')); -console.log(warning('Warning!')); -``` - -Take advantage of console.log [string substitution](https://nodejs.org/docs/latest/api/console.html#console_console_log_data_args): - -```js -const name = 'Sindre'; -console.log(chalk.green('Hello %s'), name); -//=> 'Hello Sindre' -``` - -## API - -### chalk.`' - * ) - * document.type //=> 'document' - * document.nodes.length //=> 2 - * ``` - */ -declare class Document_ extends Container { - nodes: Root[] - parent: undefined - type: 'document' - - constructor(defaults?: Document.DocumentProps) - - assign(overrides: Document.DocumentProps | object): this - clone(overrides?: Partial): this - cloneAfter(overrides?: Partial): this - cloneBefore(overrides?: Partial): this - - /** - * Returns a `Result` instance representing the document’s CSS roots. - * - * ```js - * const root1 = postcss.parse(css1, { from: 'a.css' }) - * const root2 = postcss.parse(css2, { from: 'b.css' }) - * const document = postcss.document() - * document.append(root1) - * document.append(root2) - * const result = document.toResult({ to: 'all.css', map: true }) - * ``` - * - * @param opts Options. - * @return Result with current document’s CSS. - */ - toResult(options?: ProcessOptions): Result -} - -declare class Document extends Document_ {} - -export = Document diff --git a/node_modules/postcss/lib/document.js b/node_modules/postcss/lib/document.js deleted file mode 100644 index 4468991..0000000 --- a/node_modules/postcss/lib/document.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict' - -let Container = require('./container') - -let LazyResult, Processor - -class Document extends Container { - constructor(defaults) { - // type needs to be passed to super, otherwise child roots won't be normalized correctly - super({ type: 'document', ...defaults }) - - if (!this.nodes) { - this.nodes = [] - } - } - - toResult(opts = {}) { - let lazy = new LazyResult(new Processor(), this, opts) - - return lazy.stringify() - } -} - -Document.registerLazyResult = dependant => { - LazyResult = dependant -} - -Document.registerProcessor = dependant => { - Processor = dependant -} - -module.exports = Document -Document.default = Document diff --git a/node_modules/postcss/lib/fromJSON.d.ts b/node_modules/postcss/lib/fromJSON.d.ts deleted file mode 100644 index e1deedb..0000000 --- a/node_modules/postcss/lib/fromJSON.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { JSONHydrator } from './postcss.js' - -interface FromJSON extends JSONHydrator { - default: FromJSON -} - -declare const fromJSON: FromJSON - -export = fromJSON diff --git a/node_modules/postcss/lib/fromJSON.js b/node_modules/postcss/lib/fromJSON.js deleted file mode 100644 index c9ac1a8..0000000 --- a/node_modules/postcss/lib/fromJSON.js +++ /dev/null @@ -1,54 +0,0 @@ -'use strict' - -let AtRule = require('./at-rule') -let Comment = require('./comment') -let Declaration = require('./declaration') -let Input = require('./input') -let PreviousMap = require('./previous-map') -let Root = require('./root') -let Rule = require('./rule') - -function fromJSON(json, inputs) { - if (Array.isArray(json)) return json.map(n => fromJSON(n)) - - let { inputs: ownInputs, ...defaults } = json - if (ownInputs) { - inputs = [] - for (let input of ownInputs) { - let inputHydrated = { ...input, __proto__: Input.prototype } - if (inputHydrated.map) { - inputHydrated.map = { - ...inputHydrated.map, - __proto__: PreviousMap.prototype - } - } - inputs.push(inputHydrated) - } - } - if (defaults.nodes) { - defaults.nodes = json.nodes.map(n => fromJSON(n, inputs)) - } - if (defaults.source) { - let { inputId, ...source } = defaults.source - defaults.source = source - if (inputId != null) { - defaults.source.input = inputs[inputId] - } - } - if (defaults.type === 'root') { - return new Root(defaults) - } else if (defaults.type === 'decl') { - return new Declaration(defaults) - } else if (defaults.type === 'rule') { - return new Rule(defaults) - } else if (defaults.type === 'comment') { - return new Comment(defaults) - } else if (defaults.type === 'atrule') { - return new AtRule(defaults) - } else { - throw new Error('Unknown node type: ' + json.type) - } -} - -module.exports = fromJSON -fromJSON.default = fromJSON diff --git a/node_modules/postcss/lib/input.d.ts b/node_modules/postcss/lib/input.d.ts deleted file mode 100644 index 3207da3..0000000 --- a/node_modules/postcss/lib/input.d.ts +++ /dev/null @@ -1,227 +0,0 @@ -import { CssSyntaxError, ProcessOptions } from './postcss.js' -import PreviousMap from './previous-map.js' - -declare namespace Input { - export interface FilePosition { - /** - * Column of inclusive start position in source file. - */ - column: number - - /** - * Column of exclusive end position in source file. - */ - endColumn?: number - - /** - * Line of exclusive end position in source file. - */ - endLine?: number - - /** - * Offset of exclusive end position in source file. - */ - endOffset?: number - - /** - * Absolute path to the source file. - */ - file?: string - - /** - * Line of inclusive start position in source file. - */ - line: number - - /** - * Offset of inclusive start position in source file. - */ - offset: number - - /** - * Source code. - */ - source?: string - - /** - * URL for the source file. - */ - url: string - } - - // eslint-disable-next-line @typescript-eslint/no-use-before-define - export { Input_ as default } -} - -/** - * Represents the source CSS. - * - * ```js - * const root = postcss.parse(css, { from: file }) - * const input = root.source.input - * ``` - */ -declare class Input_ { - /** - * Input CSS source. - * - * ```js - * const input = postcss.parse('a{}', { from: file }).input - * input.css //=> "a{}" - * ``` - */ - css: string - - /** - * Input source with support for non-CSS documents. - * - * ```js - * const input = postcss.parse('a{}', { from: file, document: '' }).input - * input.document //=> "" - * input.css //=> "a{}" - * ``` - */ - document: string - - /** - * The absolute path to the CSS source file defined - * with the `from` option. - * - * ```js - * const root = postcss.parse(css, { from: 'a.css' }) - * root.source.input.file //=> '/home/ai/a.css' - * ``` - */ - file?: string - - /** - * The flag to indicate whether or not the source code has Unicode BOM. - */ - hasBOM: boolean - - /** - * The unique ID of the CSS source. It will be created if `from` option - * is not provided (because PostCSS does not know the file path). - * - * ```js - * const root = postcss.parse(css) - * root.source.input.file //=> undefined - * root.source.input.id //=> "" - * ``` - */ - id?: string - - /** - * The input source map passed from a compilation step before PostCSS - * (for example, from Sass compiler). - * - * ```js - * root.source.input.map.consumer().sources //=> ['a.sass'] - * ``` - */ - map: PreviousMap - - /** - * The CSS source identifier. Contains `Input#file` if the user - * set the `from` option, or `Input#id` if they did not. - * - * ```js - * const root = postcss.parse(css, { from: 'a.css' }) - * root.source.input.from //=> "/home/ai/a.css" - * - * const root = postcss.parse(css) - * root.source.input.from //=> "" - * ``` - */ - get from(): string - - /** - * @param css Input CSS source. - * @param opts Process options. - */ - constructor(css: string, opts?: ProcessOptions) - - /** - * Returns `CssSyntaxError` with information about the error and its position. - */ - error( - message: string, - start: - | { - column: number - line: number - } - | { - offset: number - }, - end: - | { - column: number - line: number - } - | { - offset: number - }, - opts?: { plugin?: CssSyntaxError['plugin'] } - ): CssSyntaxError - error( - message: string, - line: number, - column: number, - opts?: { plugin?: CssSyntaxError['plugin'] } - ): CssSyntaxError - error( - message: string, - offset: number, - opts?: { plugin?: CssSyntaxError['plugin'] } - ): CssSyntaxError - - /** - * Converts source line and column to offset. - * - * @param line Source line. - * @param column Source column. - * @return Source offset. - */ - fromLineAndColumn(line: number, column: number): number - - /** - * Converts source offset to line and column. - * - * @param offset Source offset. - */ - fromOffset(offset: number): { col: number; line: number } | null - - /** - * Reads the input source map and returns a symbol position - * in the input source (e.g., in a Sass file that was compiled - * to CSS before being passed to PostCSS). Optionally takes an - * end position, exclusive. - * - * ```js - * root.source.input.origin(1, 1) //=> { file: 'a.css', line: 3, column: 1 } - * root.source.input.origin(1, 1, 1, 4) - * //=> { file: 'a.css', line: 3, column: 1, endLine: 3, endColumn: 4 } - * ``` - * - * @param line Line for inclusive start position in input CSS. - * @param column Column for inclusive start position in input CSS. - * @param endLine Line for exclusive end position in input CSS. - * @param endColumn Column for exclusive end position in input CSS. - * - * @return Position in input source. - */ - origin( - line: number, - column: number, - endLine?: number, - endColumn?: number - ): false | Input.FilePosition - - /** Converts this to a JSON-friendly object representation. */ - toJSON(): object -} - -declare class Input extends Input_ {} - -export = Input diff --git a/node_modules/postcss/lib/input.js b/node_modules/postcss/lib/input.js deleted file mode 100644 index bb0ccf5..0000000 --- a/node_modules/postcss/lib/input.js +++ /dev/null @@ -1,265 +0,0 @@ -'use strict' - -let { nanoid } = require('nanoid/non-secure') -let { isAbsolute, resolve } = require('path') -let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js') -let { fileURLToPath, pathToFileURL } = require('url') - -let CssSyntaxError = require('./css-syntax-error') -let PreviousMap = require('./previous-map') -let terminalHighlight = require('./terminal-highlight') - -let lineToIndexCache = Symbol('lineToIndexCache') - -let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator) -let pathAvailable = Boolean(resolve && isAbsolute) - -function getLineToIndex(input) { - if (input[lineToIndexCache]) return input[lineToIndexCache] - let lines = input.css.split('\n') - let lineToIndex = new Array(lines.length) - let prevIndex = 0 - - for (let i = 0, l = lines.length; i < l; i++) { - lineToIndex[i] = prevIndex - prevIndex += lines[i].length + 1 - } - - input[lineToIndexCache] = lineToIndex - return lineToIndex -} - -class Input { - get from() { - return this.file || this.id - } - - constructor(css, opts = {}) { - if ( - css === null || - typeof css === 'undefined' || - (typeof css === 'object' && !css.toString) - ) { - throw new Error(`PostCSS received ${css} instead of CSS string`) - } - - this.css = css.toString() - - if (this.css[0] === '\uFEFF' || this.css[0] === '\uFFFE') { - this.hasBOM = true - this.css = this.css.slice(1) - } else { - this.hasBOM = false - } - - this.document = this.css - if (opts.document) this.document = opts.document.toString() - - if (opts.from) { - if ( - !pathAvailable || - /^\w+:\/\//.test(opts.from) || - isAbsolute(opts.from) - ) { - this.file = opts.from - } else { - this.file = resolve(opts.from) - } - } - - if (pathAvailable && sourceMapAvailable) { - let map = new PreviousMap(this.css, opts) - if (map.text) { - this.map = map - let file = map.consumer().file - if (!this.file && file) this.file = this.mapResolve(file) - } - } - - if (!this.file) { - this.id = '' - } - if (this.map) this.map.file = this.from - } - - error(message, line, column, opts = {}) { - let endColumn, endLine, endOffset, offset, result - - if (line && typeof line === 'object') { - let start = line - let end = column - if (typeof start.offset === 'number') { - offset = start.offset - let pos = this.fromOffset(offset) - line = pos.line - column = pos.col - } else { - line = start.line - column = start.column - offset = this.fromLineAndColumn(line, column) - } - if (typeof end.offset === 'number') { - endOffset = end.offset - let pos = this.fromOffset(endOffset) - endLine = pos.line - endColumn = pos.col - } else { - endLine = end.line - endColumn = end.column - endOffset = this.fromLineAndColumn(end.line, end.column) - } - } else if (!column) { - offset = line - let pos = this.fromOffset(offset) - line = pos.line - column = pos.col - } else { - offset = this.fromLineAndColumn(line, column) - } - - let origin = this.origin(line, column, endLine, endColumn) - if (origin) { - result = new CssSyntaxError( - message, - origin.endLine === undefined - ? origin.line - : { column: origin.column, line: origin.line }, - origin.endLine === undefined - ? origin.column - : { column: origin.endColumn, line: origin.endLine }, - origin.source, - origin.file, - opts.plugin - ) - } else { - result = new CssSyntaxError( - message, - endLine === undefined ? line : { column, line }, - endLine === undefined ? column : { column: endColumn, line: endLine }, - this.css, - this.file, - opts.plugin - ) - } - - result.input = { column, endColumn, endLine, endOffset, line, offset, source: this.css } - if (this.file) { - if (pathToFileURL) { - result.input.url = pathToFileURL(this.file).toString() - } - result.input.file = this.file - } - - return result - } - - fromLineAndColumn(line, column) { - let lineToIndex = getLineToIndex(this) - let index = lineToIndex[line - 1] - return index + column - 1 - } - - fromOffset(offset) { - let lineToIndex = getLineToIndex(this) - let lastLine = lineToIndex[lineToIndex.length - 1] - - let min = 0 - if (offset >= lastLine) { - min = lineToIndex.length - 1 - } else { - let max = lineToIndex.length - 2 - let mid - while (min < max) { - mid = min + ((max - min) >> 1) - if (offset < lineToIndex[mid]) { - max = mid - 1 - } else if (offset >= lineToIndex[mid + 1]) { - min = mid + 1 - } else { - min = mid - break - } - } - } - return { - col: offset - lineToIndex[min] + 1, - line: min + 1 - } - } - - mapResolve(file) { - if (/^\w+:\/\//.test(file)) { - return file - } - return resolve(this.map.consumer().sourceRoot || this.map.root || '.', file) - } - - origin(line, column, endLine, endColumn) { - if (!this.map) return false - let consumer = this.map.consumer() - - let from = consumer.originalPositionFor({ column, line }) - if (!from.source) return false - - let to - if (typeof endLine === 'number') { - to = consumer.originalPositionFor({ column: endColumn, line: endLine }) - } - - let fromUrl - - if (isAbsolute(from.source)) { - fromUrl = pathToFileURL(from.source) - } else { - fromUrl = new URL( - from.source, - this.map.consumer().sourceRoot || pathToFileURL(this.map.mapFile) - ) - } - - let result = { - column: from.column, - endColumn: to && to.column, - endLine: to && to.line, - line: from.line, - url: fromUrl.toString() - } - - if (fromUrl.protocol === 'file:') { - if (fileURLToPath) { - result.file = fileURLToPath(fromUrl) - } else { - /* c8 ignore next 2 */ - throw new Error(`file: protocol is not available in this PostCSS build`) - } - } - - let source = consumer.sourceContentFor(from.source) - if (source) result.source = source - - return result - } - - toJSON() { - let json = {} - for (let name of ['hasBOM', 'css', 'file', 'id']) { - if (this[name] != null) { - json[name] = this[name] - } - } - if (this.map) { - json.map = { ...this.map } - if (json.map.consumerCache) { - json.map.consumerCache = undefined - } - } - return json - } -} - -module.exports = Input -Input.default = Input - -if (terminalHighlight && terminalHighlight.registerInput) { - terminalHighlight.registerInput(Input) -} diff --git a/node_modules/postcss/lib/lazy-result.d.ts b/node_modules/postcss/lib/lazy-result.d.ts deleted file mode 100644 index 2eb7279..0000000 --- a/node_modules/postcss/lib/lazy-result.d.ts +++ /dev/null @@ -1,190 +0,0 @@ -import Document from './document.js' -import { SourceMap } from './postcss.js' -import Processor from './processor.js' -import Result, { Message, ResultOptions } from './result.js' -import Root from './root.js' -import Warning from './warning.js' - -declare namespace LazyResult { - // eslint-disable-next-line @typescript-eslint/no-use-before-define - export { LazyResult_ as default } -} - -/** - * A Promise proxy for the result of PostCSS transformations. - * - * A `LazyResult` instance is returned by `Processor#process`. - * - * ```js - * const lazy = postcss([autoprefixer]).process(css) - * ``` - */ -declare class LazyResult_ - implements PromiseLike> -{ - /** - * Processes input CSS through synchronous and asynchronous plugins - * and calls onRejected for each error thrown in any plugin. - * - * It implements standard Promise API. - * - * ```js - * postcss([autoprefixer]).process(css).then(result => { - * console.log(result.css) - * }).catch(error => { - * console.error(error) - * }) - * ``` - */ - catch: Promise>['catch'] - - /** - * Processes input CSS through synchronous and asynchronous plugins - * and calls onFinally on any error or when all plugins will finish work. - * - * It implements standard Promise API. - * - * ```js - * postcss([autoprefixer]).process(css).finally(() => { - * console.log('processing ended') - * }) - * ``` - */ - finally: Promise>['finally'] - - /** - * Processes input CSS through synchronous and asynchronous plugins - * and calls `onFulfilled` with a Result instance. If a plugin throws - * an error, the `onRejected` callback will be executed. - * - * It implements standard Promise API. - * - * ```js - * postcss([autoprefixer]).process(css, { from: cssPath }).then(result => { - * console.log(result.css) - * }) - * ``` - */ - then: Promise>['then'] - - /** - * An alias for the `css` property. Use it with syntaxes - * that generate non-CSS output. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. - * - * PostCSS runners should always use `LazyResult#then`. - */ - get content(): string - - /** - * Processes input CSS through synchronous plugins, converts `Root` - * to a CSS string and returns `Result#css`. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. - * - * PostCSS runners should always use `LazyResult#then`. - */ - get css(): string - - /** - * Processes input CSS through synchronous plugins - * and returns `Result#map`. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. - * - * PostCSS runners should always use `LazyResult#then`. - */ - get map(): SourceMap - - /** - * Processes input CSS through synchronous plugins - * and returns `Result#messages`. - * - * This property will only work with synchronous plugins. If the processor - * contains any asynchronous plugins it will throw an error. - * - * PostCSS runners should always use `LazyResult#then`. - */ - get messages(): Message[] - - /** - * Options from the `Processor#process` call. - */ - get opts(): ResultOptions - - /** - * Returns a `Processor` instance, which will be used - * for CSS transformations. - */ - get processor(): Processor - - /** - * Processes input CSS through synchronous plugins - * and returns `Result#root`. - * - * This property will only work with synchronous plugins. If the processor - * contains any asynchronous plugins it will throw an error. - * - * PostCSS runners should always use `LazyResult#then`. - */ - get root(): RootNode - - /** - * Returns the default string description of an object. - * Required to implement the Promise interface. - */ - get [Symbol.toStringTag](): string - - /** - * @param processor Processor used for this transformation. - * @param css CSS to parse and transform. - * @param opts Options from the `Processor#process` or `Root#toResult`. - */ - constructor(processor: Processor, css: string, opts: ResultOptions) - - /** - * Run plugin in async way and return `Result`. - * - * @return Result with output content. - */ - async(): Promise> - - /** - * Run plugin in sync way and return `Result`. - * - * @return Result with output content. - */ - sync(): Result - - /** - * Alias for the `LazyResult#css` property. - * - * ```js - * lazy + '' === lazy.css - * ``` - * - * @return Output CSS. - */ - toString(): string - - /** - * Processes input CSS through synchronous plugins - * and calls `Result#warnings`. - * - * @return Warnings from plugins. - */ - warnings(): Warning[] -} - -declare class LazyResult< - RootNode = Document | Root -> extends LazyResult_ {} - -export = LazyResult diff --git a/node_modules/postcss/lib/lazy-result.js b/node_modules/postcss/lib/lazy-result.js deleted file mode 100644 index 1ea52b8..0000000 --- a/node_modules/postcss/lib/lazy-result.js +++ /dev/null @@ -1,550 +0,0 @@ -'use strict' - -let Container = require('./container') -let Document = require('./document') -let MapGenerator = require('./map-generator') -let parse = require('./parse') -let Result = require('./result') -let Root = require('./root') -let stringify = require('./stringify') -let { isClean, my } = require('./symbols') -let warnOnce = require('./warn-once') - -const TYPE_TO_CLASS_NAME = { - atrule: 'AtRule', - comment: 'Comment', - decl: 'Declaration', - document: 'Document', - root: 'Root', - rule: 'Rule' -} - -const PLUGIN_PROPS = { - AtRule: true, - AtRuleExit: true, - Comment: true, - CommentExit: true, - Declaration: true, - DeclarationExit: true, - Document: true, - DocumentExit: true, - Once: true, - OnceExit: true, - postcssPlugin: true, - prepare: true, - Root: true, - RootExit: true, - Rule: true, - RuleExit: true -} - -const NOT_VISITORS = { - Once: true, - postcssPlugin: true, - prepare: true -} - -const CHILDREN = 0 - -function isPromise(obj) { - return typeof obj === 'object' && typeof obj.then === 'function' -} - -function getEvents(node) { - let key = false - let type = TYPE_TO_CLASS_NAME[node.type] - if (node.type === 'decl') { - key = node.prop.toLowerCase() - } else if (node.type === 'atrule') { - key = node.name.toLowerCase() - } - - if (key && node.append) { - return [ - type, - type + '-' + key, - CHILDREN, - type + 'Exit', - type + 'Exit-' + key - ] - } else if (key) { - return [type, type + '-' + key, type + 'Exit', type + 'Exit-' + key] - } else if (node.append) { - return [type, CHILDREN, type + 'Exit'] - } else { - return [type, type + 'Exit'] - } -} - -function toStack(node) { - let events - if (node.type === 'document') { - events = ['Document', CHILDREN, 'DocumentExit'] - } else if (node.type === 'root') { - events = ['Root', CHILDREN, 'RootExit'] - } else { - events = getEvents(node) - } - - return { - eventIndex: 0, - events, - iterator: 0, - node, - visitorIndex: 0, - visitors: [] - } -} - -function cleanMarks(node) { - node[isClean] = false - if (node.nodes) node.nodes.forEach(i => cleanMarks(i)) - return node -} - -let postcss = {} - -class LazyResult { - get content() { - return this.stringify().content - } - - get css() { - return this.stringify().css - } - - get map() { - return this.stringify().map - } - - get messages() { - return this.sync().messages - } - - get opts() { - return this.result.opts - } - - get processor() { - return this.result.processor - } - - get root() { - return this.sync().root - } - - get [Symbol.toStringTag]() { - return 'LazyResult' - } - - constructor(processor, css, opts) { - this.stringified = false - this.processed = false - - let root - if ( - typeof css === 'object' && - css !== null && - (css.type === 'root' || css.type === 'document') - ) { - root = cleanMarks(css) - } else if (css instanceof LazyResult || css instanceof Result) { - root = cleanMarks(css.root) - if (css.map) { - if (typeof opts.map === 'undefined') opts.map = {} - if (!opts.map.inline) opts.map.inline = false - opts.map.prev = css.map - } - } else { - let parser = parse - if (opts.syntax) parser = opts.syntax.parse - if (opts.parser) parser = opts.parser - if (parser.parse) parser = parser.parse - - try { - root = parser(css, opts) - } catch (error) { - this.processed = true - this.error = error - } - - if (root && !root[my]) { - /* c8 ignore next 2 */ - Container.rebuild(root) - } - } - - this.result = new Result(processor, root, opts) - this.helpers = { ...postcss, postcss, result: this.result } - this.plugins = this.processor.plugins.map(plugin => { - if (typeof plugin === 'object' && plugin.prepare) { - return { ...plugin, ...plugin.prepare(this.result) } - } else { - return plugin - } - }) - } - - async() { - if (this.error) return Promise.reject(this.error) - if (this.processed) return Promise.resolve(this.result) - if (!this.processing) { - this.processing = this.runAsync() - } - return this.processing - } - - catch(onRejected) { - return this.async().catch(onRejected) - } - - finally(onFinally) { - return this.async().then(onFinally, onFinally) - } - - getAsyncError() { - throw new Error('Use process(css).then(cb) to work with async plugins') - } - - handleError(error, node) { - let plugin = this.result.lastPlugin - try { - if (node) node.addToError(error) - this.error = error - if (error.name === 'CssSyntaxError' && !error.plugin) { - error.plugin = plugin.postcssPlugin - error.setMessage() - } else if (plugin.postcssVersion) { - if (process.env.NODE_ENV !== 'production') { - let pluginName = plugin.postcssPlugin - let pluginVer = plugin.postcssVersion - let runtimeVer = this.result.processor.version - let a = pluginVer.split('.') - let b = runtimeVer.split('.') - - if (a[0] !== b[0] || parseInt(a[1]) > parseInt(b[1])) { - // eslint-disable-next-line no-console - console.error( - 'Unknown error from PostCSS plugin. Your current PostCSS ' + - 'version is ' + - runtimeVer + - ', but ' + - pluginName + - ' uses ' + - pluginVer + - '. Perhaps this is the source of the error below.' - ) - } - } - } - } catch (err) { - /* c8 ignore next 3 */ - // eslint-disable-next-line no-console - if (console && console.error) console.error(err) - } - return error - } - - prepareVisitors() { - this.listeners = {} - let add = (plugin, type, cb) => { - if (!this.listeners[type]) this.listeners[type] = [] - this.listeners[type].push([plugin, cb]) - } - for (let plugin of this.plugins) { - if (typeof plugin === 'object') { - for (let event in plugin) { - if (!PLUGIN_PROPS[event] && /^[A-Z]/.test(event)) { - throw new Error( - `Unknown event ${event} in ${plugin.postcssPlugin}. ` + - `Try to update PostCSS (${this.processor.version} now).` - ) - } - if (!NOT_VISITORS[event]) { - if (typeof plugin[event] === 'object') { - for (let filter in plugin[event]) { - if (filter === '*') { - add(plugin, event, plugin[event][filter]) - } else { - add( - plugin, - event + '-' + filter.toLowerCase(), - plugin[event][filter] - ) - } - } - } else if (typeof plugin[event] === 'function') { - add(plugin, event, plugin[event]) - } - } - } - } - } - this.hasListener = Object.keys(this.listeners).length > 0 - } - - async runAsync() { - this.plugin = 0 - for (let i = 0; i < this.plugins.length; i++) { - let plugin = this.plugins[i] - let promise = this.runOnRoot(plugin) - if (isPromise(promise)) { - try { - await promise - } catch (error) { - throw this.handleError(error) - } - } - } - - this.prepareVisitors() - if (this.hasListener) { - let root = this.result.root - while (!root[isClean]) { - root[isClean] = true - let stack = [toStack(root)] - while (stack.length > 0) { - let promise = this.visitTick(stack) - if (isPromise(promise)) { - try { - await promise - } catch (e) { - let node = stack[stack.length - 1].node - throw this.handleError(e, node) - } - } - } - } - - if (this.listeners.OnceExit) { - for (let [plugin, visitor] of this.listeners.OnceExit) { - this.result.lastPlugin = plugin - try { - if (root.type === 'document') { - let roots = root.nodes.map(subRoot => - visitor(subRoot, this.helpers) - ) - - await Promise.all(roots) - } else { - await visitor(root, this.helpers) - } - } catch (e) { - throw this.handleError(e) - } - } - } - } - - this.processed = true - return this.stringify() - } - - runOnRoot(plugin) { - this.result.lastPlugin = plugin - try { - if (typeof plugin === 'object' && plugin.Once) { - if (this.result.root.type === 'document') { - let roots = this.result.root.nodes.map(root => - plugin.Once(root, this.helpers) - ) - - if (isPromise(roots[0])) { - return Promise.all(roots) - } - - return roots - } - - return plugin.Once(this.result.root, this.helpers) - } else if (typeof plugin === 'function') { - return plugin(this.result.root, this.result) - } - } catch (error) { - throw this.handleError(error) - } - } - - stringify() { - if (this.error) throw this.error - if (this.stringified) return this.result - this.stringified = true - - this.sync() - - let opts = this.result.opts - let str = stringify - if (opts.syntax) str = opts.syntax.stringify - if (opts.stringifier) str = opts.stringifier - if (str.stringify) str = str.stringify - - let map = new MapGenerator(str, this.result.root, this.result.opts) - let data = map.generate() - this.result.css = data[0] - this.result.map = data[1] - - return this.result - } - - sync() { - if (this.error) throw this.error - if (this.processed) return this.result - this.processed = true - - if (this.processing) { - throw this.getAsyncError() - } - - for (let plugin of this.plugins) { - let promise = this.runOnRoot(plugin) - if (isPromise(promise)) { - throw this.getAsyncError() - } - } - - this.prepareVisitors() - if (this.hasListener) { - let root = this.result.root - while (!root[isClean]) { - root[isClean] = true - this.walkSync(root) - } - if (this.listeners.OnceExit) { - if (root.type === 'document') { - for (let subRoot of root.nodes) { - this.visitSync(this.listeners.OnceExit, subRoot) - } - } else { - this.visitSync(this.listeners.OnceExit, root) - } - } - } - - return this.result - } - - then(onFulfilled, onRejected) { - if (process.env.NODE_ENV !== 'production') { - if (!('from' in this.opts)) { - warnOnce( - 'Without `from` option PostCSS could generate wrong source map ' + - 'and will not find Browserslist config. Set it to CSS file path ' + - 'or to `undefined` to prevent this warning.' - ) - } - } - return this.async().then(onFulfilled, onRejected) - } - - toString() { - return this.css - } - - visitSync(visitors, node) { - for (let [plugin, visitor] of visitors) { - this.result.lastPlugin = plugin - let promise - try { - promise = visitor(node, this.helpers) - } catch (e) { - throw this.handleError(e, node.proxyOf) - } - if (node.type !== 'root' && node.type !== 'document' && !node.parent) { - return true - } - if (isPromise(promise)) { - throw this.getAsyncError() - } - } - } - - visitTick(stack) { - let visit = stack[stack.length - 1] - let { node, visitors } = visit - - if (node.type !== 'root' && node.type !== 'document' && !node.parent) { - stack.pop() - return - } - - if (visitors.length > 0 && visit.visitorIndex < visitors.length) { - let [plugin, visitor] = visitors[visit.visitorIndex] - visit.visitorIndex += 1 - if (visit.visitorIndex === visitors.length) { - visit.visitors = [] - visit.visitorIndex = 0 - } - this.result.lastPlugin = plugin - try { - return visitor(node.toProxy(), this.helpers) - } catch (e) { - throw this.handleError(e, node) - } - } - - if (visit.iterator !== 0) { - let iterator = visit.iterator - let child - while ((child = node.nodes[node.indexes[iterator]])) { - node.indexes[iterator] += 1 - if (!child[isClean]) { - child[isClean] = true - stack.push(toStack(child)) - return - } - } - visit.iterator = 0 - delete node.indexes[iterator] - } - - let events = visit.events - while (visit.eventIndex < events.length) { - let event = events[visit.eventIndex] - visit.eventIndex += 1 - if (event === CHILDREN) { - if (node.nodes && node.nodes.length) { - node[isClean] = true - visit.iterator = node.getIterator() - } - return - } else if (this.listeners[event]) { - visit.visitors = this.listeners[event] - return - } - } - stack.pop() - } - - walkSync(node) { - node[isClean] = true - let events = getEvents(node) - for (let event of events) { - if (event === CHILDREN) { - if (node.nodes) { - node.each(child => { - if (!child[isClean]) this.walkSync(child) - }) - } - } else { - let visitors = this.listeners[event] - if (visitors) { - if (this.visitSync(visitors, node.toProxy())) return - } - } - } - } - - warnings() { - return this.sync().warnings() - } -} - -LazyResult.registerPostcss = dependant => { - postcss = dependant -} - -module.exports = LazyResult -LazyResult.default = LazyResult - -Root.registerLazyResult(LazyResult) -Document.registerLazyResult(LazyResult) diff --git a/node_modules/postcss/lib/list.d.ts b/node_modules/postcss/lib/list.d.ts deleted file mode 100644 index e262ad3..0000000 --- a/node_modules/postcss/lib/list.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -declare namespace list { - type List = { - /** - * Safely splits comma-separated values (such as those for `transition-*` - * and `background` properties). - * - * ```js - * Once (root, { list }) { - * list.comma('black, linear-gradient(white, black)') - * //=> ['black', 'linear-gradient(white, black)'] - * } - * ``` - * - * @param str Comma-separated values. - * @return Split values. - */ - comma(str: string): string[] - - default: List - - /** - * Safely splits space-separated values (such as those for `background`, - * `border-radius`, and other shorthand properties). - * - * ```js - * Once (root, { list }) { - * list.space('1px calc(10% + 1px)') //=> ['1px', 'calc(10% + 1px)'] - * } - * ``` - * - * @param str Space-separated values. - * @return Split values. - */ - space(str: string): string[] - - /** - * Safely splits values. - * - * ```js - * Once (root, { list }) { - * list.split('1px calc(10% + 1px)', [' ', '\n', '\t']) //=> ['1px', 'calc(10% + 1px)'] - * } - * ``` - * - * @param string separated values. - * @param separators array of separators. - * @param last boolean indicator. - * @return Split values. - */ - split( - string: string, - separators: readonly string[], - last: boolean - ): string[] - } -} - -declare const list: list.List - -export = list diff --git a/node_modules/postcss/lib/list.js b/node_modules/postcss/lib/list.js deleted file mode 100644 index 1b31f98..0000000 --- a/node_modules/postcss/lib/list.js +++ /dev/null @@ -1,58 +0,0 @@ -'use strict' - -let list = { - comma(string) { - return list.split(string, [','], true) - }, - - space(string) { - let spaces = [' ', '\n', '\t'] - return list.split(string, spaces) - }, - - split(string, separators, last) { - let array = [] - let current = '' - let split = false - - let func = 0 - let inQuote = false - let prevQuote = '' - let escape = false - - for (let letter of string) { - if (escape) { - escape = false - } else if (letter === '\\') { - escape = true - } else if (inQuote) { - if (letter === prevQuote) { - inQuote = false - } - } else if (letter === '"' || letter === "'") { - inQuote = true - prevQuote = letter - } else if (letter === '(') { - func += 1 - } else if (letter === ')') { - if (func > 0) func -= 1 - } else if (func === 0) { - if (separators.includes(letter)) split = true - } - - if (split) { - if (current !== '') array.push(current.trim()) - current = '' - split = false - } else { - current += letter - } - } - - if (last || current !== '') array.push(current.trim()) - return array - } -} - -module.exports = list -list.default = list diff --git a/node_modules/postcss/lib/map-generator.js b/node_modules/postcss/lib/map-generator.js deleted file mode 100644 index 89069d3..0000000 --- a/node_modules/postcss/lib/map-generator.js +++ /dev/null @@ -1,368 +0,0 @@ -'use strict' - -let { dirname, relative, resolve, sep } = require('path') -let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js') -let { pathToFileURL } = require('url') - -let Input = require('./input') - -let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator) -let pathAvailable = Boolean(dirname && resolve && relative && sep) - -class MapGenerator { - constructor(stringify, root, opts, cssString) { - this.stringify = stringify - this.mapOpts = opts.map || {} - this.root = root - this.opts = opts - this.css = cssString - this.originalCSS = cssString - this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute - - this.memoizedFileURLs = new Map() - this.memoizedPaths = new Map() - this.memoizedURLs = new Map() - } - - addAnnotation() { - let content - - if (this.isInline()) { - content = - 'data:application/json;base64,' + this.toBase64(this.map.toString()) - } else if (typeof this.mapOpts.annotation === 'string') { - content = this.mapOpts.annotation - } else if (typeof this.mapOpts.annotation === 'function') { - content = this.mapOpts.annotation(this.opts.to, this.root) - } else { - content = this.outputFile() + '.map' - } - let eol = '\n' - if (this.css.includes('\r\n')) eol = '\r\n' - - this.css += eol + '/*# sourceMappingURL=' + content + ' */' - } - - applyPrevMaps() { - for (let prev of this.previous()) { - let from = this.toUrl(this.path(prev.file)) - let root = prev.root || dirname(prev.file) - let map - - if (this.mapOpts.sourcesContent === false) { - map = new SourceMapConsumer(prev.text) - if (map.sourcesContent) { - map.sourcesContent = null - } - } else { - map = prev.consumer() - } - - this.map.applySourceMap(map, from, this.toUrl(this.path(root))) - } - } - - clearAnnotation() { - if (this.mapOpts.annotation === false) return - - if (this.root) { - let node - for (let i = this.root.nodes.length - 1; i >= 0; i--) { - node = this.root.nodes[i] - if (node.type !== 'comment') continue - if (node.text.startsWith('# sourceMappingURL=')) { - this.root.removeChild(i) - } - } - } else if (this.css) { - this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, '') - } - } - - generate() { - this.clearAnnotation() - if (pathAvailable && sourceMapAvailable && this.isMap()) { - return this.generateMap() - } else { - let result = '' - this.stringify(this.root, i => { - result += i - }) - return [result] - } - } - - generateMap() { - if (this.root) { - this.generateString() - } else if (this.previous().length === 1) { - let prev = this.previous()[0].consumer() - prev.file = this.outputFile() - this.map = SourceMapGenerator.fromSourceMap(prev, { - ignoreInvalidMapping: true - }) - } else { - this.map = new SourceMapGenerator({ - file: this.outputFile(), - ignoreInvalidMapping: true - }) - this.map.addMapping({ - generated: { column: 0, line: 1 }, - original: { column: 0, line: 1 }, - source: this.opts.from - ? this.toUrl(this.path(this.opts.from)) - : '' - }) - } - - if (this.isSourcesContent()) this.setSourcesContent() - if (this.root && this.previous().length > 0) this.applyPrevMaps() - if (this.isAnnotation()) this.addAnnotation() - - if (this.isInline()) { - return [this.css] - } else { - return [this.css, this.map] - } - } - - generateString() { - this.css = '' - this.map = new SourceMapGenerator({ - file: this.outputFile(), - ignoreInvalidMapping: true - }) - - let line = 1 - let column = 1 - - let noSource = '' - let mapping = { - generated: { column: 0, line: 0 }, - original: { column: 0, line: 0 }, - source: '' - } - - let last, lines - this.stringify(this.root, (str, node, type) => { - this.css += str - - if (node && type !== 'end') { - mapping.generated.line = line - mapping.generated.column = column - 1 - if (node.source && node.source.start) { - mapping.source = this.sourcePath(node) - mapping.original.line = node.source.start.line - mapping.original.column = node.source.start.column - 1 - this.map.addMapping(mapping) - } else { - mapping.source = noSource - mapping.original.line = 1 - mapping.original.column = 0 - this.map.addMapping(mapping) - } - } - - lines = str.match(/\n/g) - if (lines) { - line += lines.length - last = str.lastIndexOf('\n') - column = str.length - last - } else { - column += str.length - } - - if (node && type !== 'start') { - let p = node.parent || { raws: {} } - let childless = - node.type === 'decl' || (node.type === 'atrule' && !node.nodes) - if (!childless || node !== p.last || p.raws.semicolon) { - if (node.source && node.source.end) { - mapping.source = this.sourcePath(node) - mapping.original.line = node.source.end.line - mapping.original.column = node.source.end.column - 1 - mapping.generated.line = line - mapping.generated.column = column - 2 - this.map.addMapping(mapping) - } else { - mapping.source = noSource - mapping.original.line = 1 - mapping.original.column = 0 - mapping.generated.line = line - mapping.generated.column = column - 1 - this.map.addMapping(mapping) - } - } - } - }) - } - - isAnnotation() { - if (this.isInline()) { - return true - } - if (typeof this.mapOpts.annotation !== 'undefined') { - return this.mapOpts.annotation - } - if (this.previous().length) { - return this.previous().some(i => i.annotation) - } - return true - } - - isInline() { - if (typeof this.mapOpts.inline !== 'undefined') { - return this.mapOpts.inline - } - - let annotation = this.mapOpts.annotation - if (typeof annotation !== 'undefined' && annotation !== true) { - return false - } - - if (this.previous().length) { - return this.previous().some(i => i.inline) - } - return true - } - - isMap() { - if (typeof this.opts.map !== 'undefined') { - return !!this.opts.map - } - return this.previous().length > 0 - } - - isSourcesContent() { - if (typeof this.mapOpts.sourcesContent !== 'undefined') { - return this.mapOpts.sourcesContent - } - if (this.previous().length) { - return this.previous().some(i => i.withContent()) - } - return true - } - - outputFile() { - if (this.opts.to) { - return this.path(this.opts.to) - } else if (this.opts.from) { - return this.path(this.opts.from) - } else { - return 'to.css' - } - } - - path(file) { - if (this.mapOpts.absolute) return file - if (file.charCodeAt(0) === 60 /* `<` */) return file - if (/^\w+:\/\//.test(file)) return file - let cached = this.memoizedPaths.get(file) - if (cached) return cached - - let from = this.opts.to ? dirname(this.opts.to) : '.' - - if (typeof this.mapOpts.annotation === 'string') { - from = dirname(resolve(from, this.mapOpts.annotation)) - } - - let path = relative(from, file) - this.memoizedPaths.set(file, path) - - return path - } - - previous() { - if (!this.previousMaps) { - this.previousMaps = [] - if (this.root) { - this.root.walk(node => { - if (node.source && node.source.input.map) { - let map = node.source.input.map - if (!this.previousMaps.includes(map)) { - this.previousMaps.push(map) - } - } - }) - } else { - let input = new Input(this.originalCSS, this.opts) - if (input.map) this.previousMaps.push(input.map) - } - } - - return this.previousMaps - } - - setSourcesContent() { - let already = {} - if (this.root) { - this.root.walk(node => { - if (node.source) { - let from = node.source.input.from - if (from && !already[from]) { - already[from] = true - let fromUrl = this.usesFileUrls - ? this.toFileUrl(from) - : this.toUrl(this.path(from)) - this.map.setSourceContent(fromUrl, node.source.input.css) - } - } - }) - } else if (this.css) { - let from = this.opts.from - ? this.toUrl(this.path(this.opts.from)) - : '' - this.map.setSourceContent(from, this.css) - } - } - - sourcePath(node) { - if (this.mapOpts.from) { - return this.toUrl(this.mapOpts.from) - } else if (this.usesFileUrls) { - return this.toFileUrl(node.source.input.from) - } else { - return this.toUrl(this.path(node.source.input.from)) - } - } - - toBase64(str) { - if (Buffer) { - return Buffer.from(str).toString('base64') - } else { - return window.btoa(unescape(encodeURIComponent(str))) - } - } - - toFileUrl(path) { - let cached = this.memoizedFileURLs.get(path) - if (cached) return cached - - if (pathToFileURL) { - let fileURL = pathToFileURL(path).toString() - this.memoizedFileURLs.set(path, fileURL) - - return fileURL - } else { - throw new Error( - '`map.absolute` option is not available in this PostCSS build' - ) - } - } - - toUrl(path) { - let cached = this.memoizedURLs.get(path) - if (cached) return cached - - if (sep === '\\') { - path = path.replace(/\\/g, '/') - } - - let url = encodeURI(path).replace(/[#?]/g, encodeURIComponent) - this.memoizedURLs.set(path, url) - - return url - } -} - -module.exports = MapGenerator diff --git a/node_modules/postcss/lib/no-work-result.d.ts b/node_modules/postcss/lib/no-work-result.d.ts deleted file mode 100644 index 094f30a..0000000 --- a/node_modules/postcss/lib/no-work-result.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import LazyResult from './lazy-result.js' -import { SourceMap } from './postcss.js' -import Processor from './processor.js' -import Result, { Message, ResultOptions } from './result.js' -import Root from './root.js' -import Warning from './warning.js' - -declare namespace NoWorkResult { - // eslint-disable-next-line @typescript-eslint/no-use-before-define - export { NoWorkResult_ as default } -} - -/** - * A Promise proxy for the result of PostCSS transformations. - * This lazy result instance doesn't parse css unless `NoWorkResult#root` or `Result#root` - * are accessed. See the example below for details. - * A `NoWork` instance is returned by `Processor#process` ONLY when no plugins defined. - * - * ```js - * const noWorkResult = postcss().process(css) // No plugins are defined. - * // CSS is not parsed - * let root = noWorkResult.root // now css is parsed because we accessed the root - * ``` - */ -declare class NoWorkResult_ implements LazyResult { - catch: Promise>['catch'] - finally: Promise>['finally'] - then: Promise>['then'] - get content(): string - get css(): string - get map(): SourceMap - get messages(): Message[] - get opts(): ResultOptions - get processor(): Processor - get root(): Root - get [Symbol.toStringTag](): string - constructor(processor: Processor, css: string, opts: ResultOptions) - async(): Promise> - sync(): Result - toString(): string - warnings(): Warning[] -} - -declare class NoWorkResult extends NoWorkResult_ {} - -export = NoWorkResult diff --git a/node_modules/postcss/lib/no-work-result.js b/node_modules/postcss/lib/no-work-result.js deleted file mode 100644 index dd46182..0000000 --- a/node_modules/postcss/lib/no-work-result.js +++ /dev/null @@ -1,138 +0,0 @@ -'use strict' - -let MapGenerator = require('./map-generator') -let parse = require('./parse') -const Result = require('./result') -let stringify = require('./stringify') -let warnOnce = require('./warn-once') - -class NoWorkResult { - get content() { - return this.result.css - } - - get css() { - return this.result.css - } - - get map() { - return this.result.map - } - - get messages() { - return [] - } - - get opts() { - return this.result.opts - } - - get processor() { - return this.result.processor - } - - get root() { - if (this._root) { - return this._root - } - - let root - let parser = parse - - try { - root = parser(this._css, this._opts) - } catch (error) { - this.error = error - } - - if (this.error) { - throw this.error - } else { - this._root = root - return root - } - } - - get [Symbol.toStringTag]() { - return 'NoWorkResult' - } - - constructor(processor, css, opts) { - css = css.toString() - this.stringified = false - - this._processor = processor - this._css = css - this._opts = opts - this._map = undefined - let root - - let str = stringify - this.result = new Result(this._processor, root, this._opts) - this.result.css = css - - let self = this - Object.defineProperty(this.result, 'root', { - get() { - return self.root - } - }) - - let map = new MapGenerator(str, root, this._opts, css) - if (map.isMap()) { - let [generatedCSS, generatedMap] = map.generate() - if (generatedCSS) { - this.result.css = generatedCSS - } - if (generatedMap) { - this.result.map = generatedMap - } - } else { - map.clearAnnotation() - this.result.css = map.css - } - } - - async() { - if (this.error) return Promise.reject(this.error) - return Promise.resolve(this.result) - } - - catch(onRejected) { - return this.async().catch(onRejected) - } - - finally(onFinally) { - return this.async().then(onFinally, onFinally) - } - - sync() { - if (this.error) throw this.error - return this.result - } - - then(onFulfilled, onRejected) { - if (process.env.NODE_ENV !== 'production') { - if (!('from' in this._opts)) { - warnOnce( - 'Without `from` option PostCSS could generate wrong source map ' + - 'and will not find Browserslist config. Set it to CSS file path ' + - 'or to `undefined` to prevent this warning.' - ) - } - } - - return this.async().then(onFulfilled, onRejected) - } - - toString() { - return this._css - } - - warnings() { - return [] - } -} - -module.exports = NoWorkResult -NoWorkResult.default = NoWorkResult diff --git a/node_modules/postcss/lib/node.d.ts b/node_modules/postcss/lib/node.d.ts deleted file mode 100644 index a09fe4d..0000000 --- a/node_modules/postcss/lib/node.d.ts +++ /dev/null @@ -1,556 +0,0 @@ -import AtRule = require('./at-rule.js') -import { AtRuleProps } from './at-rule.js' -import Comment, { CommentProps } from './comment.js' -import Container, { NewChild } from './container.js' -import CssSyntaxError from './css-syntax-error.js' -import Declaration, { DeclarationProps } from './declaration.js' -import Document from './document.js' -import Input from './input.js' -import { Stringifier, Syntax } from './postcss.js' -import Result from './result.js' -import Root from './root.js' -import Rule, { RuleProps } from './rule.js' -import Warning, { WarningOptions } from './warning.js' - -declare namespace Node { - export type ChildNode = AtRule.default | Comment | Declaration | Rule - - export type AnyNode = - | AtRule.default - | Comment - | Declaration - | Document - | Root - | Rule - - export type ChildProps = - | AtRuleProps - | CommentProps - | DeclarationProps - | RuleProps - - export interface Position { - /** - * Source line in file. In contrast to `offset` it starts from 1. - */ - column: number - - /** - * Source column in file. - */ - line: number - - /** - * Source offset in file. It starts from 0. - */ - offset: number - } - - export interface Range { - /** - * End position, exclusive. - */ - end: Position - - /** - * Start position, inclusive. - */ - start: Position - } - - /** - * Source represents an interface for the {@link Node.source} property. - */ - export interface Source { - /** - * The inclusive ending position for the source - * code of a node. - * - * However, `end.offset` of a non `Root` node is the exclusive position. - * See https://github.com/postcss/postcss/pull/1879 for details. - * - * ```js - * const root = postcss.parse('a { color: black }') - * const a = root.first - * const color = a.first - * - * // The offset of `Root` node is the inclusive position - * css.source.end // { line: 1, column: 19, offset: 18 } - * - * // The offset of non `Root` node is the exclusive position - * a.source.end // { line: 1, column: 18, offset: 18 } - * color.source.end // { line: 1, column: 16, offset: 16 } - * ``` - */ - end?: Position - - /** - * The source file from where a node has originated. - */ - input: Input - - /** - * The inclusive starting position for the source - * code of a node. - */ - start?: Position - } - - /** - * Interface represents an interface for an object received - * as parameter by Node class constructor. - */ - export interface NodeProps { - source?: Source - } - - export interface NodeErrorOptions { - /** - * An ending index inside a node's string that should be highlighted as - * source of error. - */ - endIndex?: number - /** - * An index inside a node's string that should be highlighted as source - * of error. - */ - index?: number - /** - * Plugin name that created this error. PostCSS will set it automatically. - */ - plugin?: string - /** - * A word inside a node's string, that should be highlighted as source - * of error. - */ - word?: string - } - - // eslint-disable-next-line @typescript-eslint/no-shadow - class Node extends Node_ {} - export { Node as default } -} - -/** - * It represents an abstract class that handles common - * methods for other CSS abstract syntax tree nodes. - * - * Any node that represents CSS selector or value should - * not extend the `Node` class. - */ -declare abstract class Node_ { - /** - * It represents parent of the current node. - * - * ```js - * root.nodes[0].parent === root //=> true - * ``` - */ - parent: Container | Document | undefined - - /** - * It represents unnecessary whitespace and characters present - * in the css source code. - * - * Information to generate byte-to-byte equal node string as it was - * in the origin input. - * - * The properties of the raws object are decided by parser, - * the default parser uses the following properties: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `after`: the space symbols after the last child of the node - * to the end of the node. - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `semicolon`: contains true if the last child has - * an (optional) semicolon. - * * `afterName`: the space between the at-rule name and its parameters. - * * `left`: the space symbols between `/*` and the comment’s text. - * * `right`: the space symbols between the comment’s text - * and */. - * - `important`: the content of the important statement, - * if it is not just `!important`. - * - * PostCSS filters out the comments inside selectors, declaration values - * and at-rule parameters but it stores the origin content in raws. - * - * ```js - * const root = postcss.parse('a {\n color:black\n}') - * root.first.first.raws //=> { before: '\n ', between: ':' } - * ``` - */ - raws: any - - /** - * It represents information related to origin of a node and is required - * for generating source maps. - * - * The nodes that are created manually using the public APIs - * provided by PostCSS will have `source` undefined and - * will be absent in the source map. - * - * For this reason, the plugin developer should consider - * duplicating nodes as the duplicate node will have the - * same source as the original node by default or assign - * source to a node created manually. - * - * ```js - * decl.source.input.from //=> '/home/ai/source.css' - * decl.source.start //=> { line: 10, column: 2 } - * decl.source.end //=> { line: 10, column: 12 } - * ``` - * - * ```js - * // Incorrect method, source not specified! - * const prefixed = postcss.decl({ - * prop: '-moz-' + decl.prop, - * value: decl.value - * }) - * - * // Correct method, source is inherited when duplicating. - * const prefixed = decl.clone({ - * prop: '-moz-' + decl.prop - * }) - * ``` - * - * ```js - * if (atrule.name === 'add-link') { - * const rule = postcss.rule({ - * selector: 'a', - * source: atrule.source - * }) - * - * atrule.parent.insertBefore(atrule, rule) - * } - * ``` - */ - source?: Node.Source - - /** - * It represents type of a node in - * an abstract syntax tree. - * - * A type of node helps in identification of a node - * and perform operation based on it's type. - * - * ```js - * const declaration = new Declaration({ - * prop: 'color', - * value: 'black' - * }) - * - * declaration.type //=> 'decl' - * ``` - */ - type: string - - constructor(defaults?: object) - - /** - * Insert new node after current node to current node’s parent. - * - * Just alias for `node.parent.insertAfter(node, add)`. - * - * ```js - * decl.after('color: black') - * ``` - * - * @param newNode New node. - * @return This node for methods chain. - */ - after( - newNode: Node | Node.ChildProps | readonly Node[] | string | undefined - ): this - - /** - * It assigns properties to an existing node instance. - * - * ```js - * decl.assign({ prop: 'word-wrap', value: 'break-word' }) - * ``` - * - * @param overrides New properties to override the node. - * - * @return `this` for method chaining. - */ - assign(overrides: object): this - - /** - * Insert new node before current node to current node’s parent. - * - * Just alias for `node.parent.insertBefore(node, add)`. - * - * ```js - * decl.before('content: ""') - * ``` - * - * @param newNode New node. - * @return This node for methods chain. - */ - before( - newNode: Node | Node.ChildProps | readonly Node[] | string | undefined - ): this - - /** - * Clear the code style properties for the node and its children. - * - * ```js - * node.raws.before //=> ' ' - * node.cleanRaws() - * node.raws.before //=> undefined - * ``` - * - * @param keepBetween Keep the `raws.between` symbols. - */ - cleanRaws(keepBetween?: boolean): void - - /** - * It creates clone of an existing node, which includes all the properties - * and their values, that includes `raws` but not `type`. - * - * ```js - * decl.raws.before //=> "\n " - * const cloned = decl.clone({ prop: '-moz-' + decl.prop }) - * cloned.raws.before //=> "\n " - * cloned.toString() //=> -moz-transform: scale(0) - * ``` - * - * @param overrides New properties to override in the clone. - * - * @return Duplicate of the node instance. - */ - clone(overrides?: object): this - - /** - * Shortcut to clone the node and insert the resulting cloned node - * after the current node. - * - * @param overrides New properties to override in the clone. - * @return New node. - */ - cloneAfter(overrides?: object): this - - /** - * Shortcut to clone the node and insert the resulting cloned node - * before the current node. - * - * ```js - * decl.cloneBefore({ prop: '-moz-' + decl.prop }) - * ``` - * - * @param overrides Mew properties to override in the clone. - * - * @return New node - */ - cloneBefore(overrides?: object): this - - /** - * It creates an instance of the class `CssSyntaxError` and parameters passed - * to this method are assigned to the error instance. - * - * The error instance will have description for the - * error, original position of the node in the - * source, showing line and column number. - * - * If any previous map is present, it would be used - * to get original position of the source. - * - * The Previous Map here is referred to the source map - * generated by previous compilation, example: Less, - * Stylus and Sass. - * - * This method returns the error instance instead of - * throwing it. - * - * ```js - * if (!variables[name]) { - * throw decl.error(`Unknown variable ${name}`, { word: name }) - * // CssSyntaxError: postcss-vars:a.sass:4:3: Unknown variable $black - * // color: $black - * // a - * // ^ - * // background: white - * } - * ``` - * - * @param message Description for the error instance. - * @param options Options for the error instance. - * - * @return Error instance is returned. - */ - error(message: string, options?: Node.NodeErrorOptions): CssSyntaxError - - /** - * Returns the next child of the node’s parent. - * Returns `undefined` if the current node is the last child. - * - * ```js - * if (comment.text === 'delete next') { - * const next = comment.next() - * if (next) { - * next.remove() - * } - * } - * ``` - * - * @return Next node. - */ - next(): Node.ChildNode | undefined - - /** - * Get the position for a word or an index inside the node. - * - * @param opts Options. - * @return Position. - */ - positionBy(opts?: Pick): Node.Position - - /** - * Convert string index to line/column. - * - * @param index The symbol number in the node’s string. - * @return Symbol position in file. - */ - positionInside(index: number): Node.Position - - /** - * Returns the previous child of the node’s parent. - * Returns `undefined` if the current node is the first child. - * - * ```js - * const annotation = decl.prev() - * if (annotation.type === 'comment') { - * readAnnotation(annotation.text) - * } - * ``` - * - * @return Previous node. - */ - prev(): Node.ChildNode | undefined - - /** - * Get the range for a word or start and end index inside the node. - * The start index is inclusive; the end index is exclusive. - * - * @param opts Options. - * @return Range. - */ - rangeBy( - opts?: Pick - ): Node.Range - - /** - * Returns a `raws` value. If the node is missing - * the code style property (because the node was manually built or cloned), - * PostCSS will try to autodetect the code style property by looking - * at other nodes in the tree. - * - * ```js - * const root = postcss.parse('a { background: white }') - * root.nodes[0].append({ prop: 'color', value: 'black' }) - * root.nodes[0].nodes[1].raws.before //=> undefined - * root.nodes[0].nodes[1].raw('before') //=> ' ' - * ``` - * - * @param prop Name of code style property. - * @param defaultType Name of default value, it can be missed - * if the value is the same as prop. - * @return {string} Code style value. - */ - raw(prop: string, defaultType?: string): string - - /** - * It removes the node from its parent and deletes its parent property. - * - * ```js - * if (decl.prop.match(/^-webkit-/)) { - * decl.remove() - * } - * ``` - * - * @return `this` for method chaining. - */ - remove(): this - - /** - * Inserts node(s) before the current node and removes the current node. - * - * ```js - * AtRule: { - * mixin: atrule => { - * atrule.replaceWith(mixinRules[atrule.params]) - * } - * } - * ``` - * - * @param nodes Mode(s) to replace current one. - * @return Current node to methods chain. - */ - replaceWith(...nodes: NewChild[]): this - - /** - * Finds the Root instance of the node’s tree. - * - * ```js - * root.nodes[0].nodes[0].root() === root - * ``` - * - * @return Root parent. - */ - root(): Root - - /** - * Fix circular links on `JSON.stringify()`. - * - * @return Cleaned object. - */ - toJSON(): object - - /** - * It compiles the node to browser readable cascading style sheets string - * depending on it's type. - * - * ```js - * new Rule({ selector: 'a' }).toString() //=> "a {}" - * ``` - * - * @param stringifier A syntax to use in string generation. - * @return CSS string of this node. - */ - toString(stringifier?: Stringifier | Syntax): string - - /** - * It is a wrapper for {@link Result#warn}, providing convenient - * way of generating warnings. - * - * ```js - * Declaration: { - * bad: (decl, { result }) => { - * decl.warn(result, 'Deprecated property: bad') - * } - * } - * ``` - * - * @param result The `Result` instance that will receive the warning. - * @param message Description for the warning. - * @param options Options for the warning. - * - * @return `Warning` instance is returned - */ - warn(result: Result, message: string, options?: WarningOptions): Warning - - /** - * If this node isn't already dirty, marks it and its ancestors as such. This - * indicates to the LazyResult processor that the {@link Root} has been - * modified by the current plugin and may need to be processed again by other - * plugins. - */ - protected markDirty(): void -} - -declare class Node extends Node_ {} - -export = Node diff --git a/node_modules/postcss/lib/node.js b/node_modules/postcss/lib/node.js deleted file mode 100644 index b403b71..0000000 --- a/node_modules/postcss/lib/node.js +++ /dev/null @@ -1,449 +0,0 @@ -'use strict' - -let CssSyntaxError = require('./css-syntax-error') -let Stringifier = require('./stringifier') -let stringify = require('./stringify') -let { isClean, my } = require('./symbols') - -function cloneNode(obj, parent) { - let cloned = new obj.constructor() - - for (let i in obj) { - if (!Object.prototype.hasOwnProperty.call(obj, i)) { - /* c8 ignore next 2 */ - continue - } - if (i === 'proxyCache') continue - let value = obj[i] - let type = typeof value - - if (i === 'parent' && type === 'object') { - if (parent) cloned[i] = parent - } else if (i === 'source') { - cloned[i] = value - } else if (Array.isArray(value)) { - cloned[i] = value.map(j => cloneNode(j, cloned)) - } else { - if (type === 'object' && value !== null) value = cloneNode(value) - cloned[i] = value - } - } - - return cloned -} - -function sourceOffset(inputCSS, position) { - // Not all custom syntaxes support `offset` in `source.start` and `source.end` - if (position && typeof position.offset !== 'undefined') { - return position.offset - } - - let column = 1 - let line = 1 - let offset = 0 - - for (let i = 0; i < inputCSS.length; i++) { - if (line === position.line && column === position.column) { - offset = i - break - } - - if (inputCSS[i] === '\n') { - column = 1 - line += 1 - } else { - column += 1 - } - } - - return offset -} - -class Node { - get proxyOf() { - return this - } - - constructor(defaults = {}) { - this.raws = {} - this[isClean] = false - this[my] = true - - for (let name in defaults) { - if (name === 'nodes') { - this.nodes = [] - for (let node of defaults[name]) { - if (typeof node.clone === 'function') { - this.append(node.clone()) - } else { - this.append(node) - } - } - } else { - this[name] = defaults[name] - } - } - } - - addToError(error) { - error.postcssNode = this - if (error.stack && this.source && /\n\s{4}at /.test(error.stack)) { - let s = this.source - error.stack = error.stack.replace( - /\n\s{4}at /, - `$&${s.input.from}:${s.start.line}:${s.start.column}$&` - ) - } - return error - } - - after(add) { - this.parent.insertAfter(this, add) - return this - } - - assign(overrides = {}) { - for (let name in overrides) { - this[name] = overrides[name] - } - return this - } - - before(add) { - this.parent.insertBefore(this, add) - return this - } - - cleanRaws(keepBetween) { - delete this.raws.before - delete this.raws.after - if (!keepBetween) delete this.raws.between - } - - clone(overrides = {}) { - let cloned = cloneNode(this) - for (let name in overrides) { - cloned[name] = overrides[name] - } - return cloned - } - - cloneAfter(overrides = {}) { - let cloned = this.clone(overrides) - this.parent.insertAfter(this, cloned) - return cloned - } - - cloneBefore(overrides = {}) { - let cloned = this.clone(overrides) - this.parent.insertBefore(this, cloned) - return cloned - } - - error(message, opts = {}) { - if (this.source) { - let { end, start } = this.rangeBy(opts) - return this.source.input.error( - message, - { column: start.column, line: start.line }, - { column: end.column, line: end.line }, - opts - ) - } - return new CssSyntaxError(message) - } - - getProxyProcessor() { - return { - get(node, prop) { - if (prop === 'proxyOf') { - return node - } else if (prop === 'root') { - return () => node.root().toProxy() - } else { - return node[prop] - } - }, - - set(node, prop, value) { - if (node[prop] === value) return true - node[prop] = value - if ( - prop === 'prop' || - prop === 'value' || - prop === 'name' || - prop === 'params' || - prop === 'important' || - /* c8 ignore next */ - prop === 'text' - ) { - node.markDirty() - } - return true - } - } - } - - /* c8 ignore next 3 */ - markClean() { - this[isClean] = true - } - - markDirty() { - if (this[isClean]) { - this[isClean] = false - let next = this - while ((next = next.parent)) { - next[isClean] = false - } - } - } - - next() { - if (!this.parent) return undefined - let index = this.parent.index(this) - return this.parent.nodes[index + 1] - } - - positionBy(opts = {}) { - let pos = this.source.start - if (opts.index) { - pos = this.positionInside(opts.index) - } else if (opts.word) { - let inputString = - 'document' in this.source.input - ? this.source.input.document - : this.source.input.css - let stringRepresentation = inputString.slice( - sourceOffset(inputString, this.source.start), - sourceOffset(inputString, this.source.end) - ) - let index = stringRepresentation.indexOf(opts.word) - if (index !== -1) pos = this.positionInside(index) - } - return pos - } - - positionInside(index) { - let column = this.source.start.column - let line = this.source.start.line - let inputString = - 'document' in this.source.input - ? this.source.input.document - : this.source.input.css - let offset = sourceOffset(inputString, this.source.start) - let end = offset + index - - for (let i = offset; i < end; i++) { - if (inputString[i] === '\n') { - column = 1 - line += 1 - } else { - column += 1 - } - } - - return { column, line, offset: end } - } - - prev() { - if (!this.parent) return undefined - let index = this.parent.index(this) - return this.parent.nodes[index - 1] - } - - rangeBy(opts = {}) { - let inputString = - 'document' in this.source.input - ? this.source.input.document - : this.source.input.css - let start = { - column: this.source.start.column, - line: this.source.start.line, - offset: sourceOffset(inputString, this.source.start) - } - let end = this.source.end - ? { - column: this.source.end.column + 1, - line: this.source.end.line, - offset: - typeof this.source.end.offset === 'number' - ? // `source.end.offset` is exclusive, so we don't need to add 1 - this.source.end.offset - : // Since line/column in this.source.end is inclusive, - // the `sourceOffset(... , this.source.end)` returns an inclusive offset. - // So, we add 1 to convert it to exclusive. - sourceOffset(inputString, this.source.end) + 1 - } - : { - column: start.column + 1, - line: start.line, - offset: start.offset + 1 - } - - if (opts.word) { - let stringRepresentation = inputString.slice( - sourceOffset(inputString, this.source.start), - sourceOffset(inputString, this.source.end) - ) - let index = stringRepresentation.indexOf(opts.word) - if (index !== -1) { - start = this.positionInside(index) - end = this.positionInside(index + opts.word.length) - } - } else { - if (opts.start) { - start = { - column: opts.start.column, - line: opts.start.line, - offset: sourceOffset(inputString, opts.start) - } - } else if (opts.index) { - start = this.positionInside(opts.index) - } - - if (opts.end) { - end = { - column: opts.end.column, - line: opts.end.line, - offset: sourceOffset(inputString, opts.end) - } - } else if (typeof opts.endIndex === 'number') { - end = this.positionInside(opts.endIndex) - } else if (opts.index) { - end = this.positionInside(opts.index + 1) - } - } - - if ( - end.line < start.line || - (end.line === start.line && end.column <= start.column) - ) { - end = { - column: start.column + 1, - line: start.line, - offset: start.offset + 1 - } - } - - return { end, start } - } - - raw(prop, defaultType) { - let str = new Stringifier() - return str.raw(this, prop, defaultType) - } - - remove() { - if (this.parent) { - this.parent.removeChild(this) - } - this.parent = undefined - return this - } - - replaceWith(...nodes) { - if (this.parent) { - let bookmark = this - let foundSelf = false - for (let node of nodes) { - if (node === this) { - foundSelf = true - } else if (foundSelf) { - this.parent.insertAfter(bookmark, node) - bookmark = node - } else { - this.parent.insertBefore(bookmark, node) - } - } - - if (!foundSelf) { - this.remove() - } - } - - return this - } - - root() { - let result = this - while (result.parent && result.parent.type !== 'document') { - result = result.parent - } - return result - } - - toJSON(_, inputs) { - let fixed = {} - let emitInputs = inputs == null - inputs = inputs || new Map() - let inputsNextIndex = 0 - - for (let name in this) { - if (!Object.prototype.hasOwnProperty.call(this, name)) { - /* c8 ignore next 2 */ - continue - } - if (name === 'parent' || name === 'proxyCache') continue - let value = this[name] - - if (Array.isArray(value)) { - fixed[name] = value.map(i => { - if (typeof i === 'object' && i.toJSON) { - return i.toJSON(null, inputs) - } else { - return i - } - }) - } else if (typeof value === 'object' && value.toJSON) { - fixed[name] = value.toJSON(null, inputs) - } else if (name === 'source') { - if (value == null) continue - let inputId = inputs.get(value.input) - if (inputId == null) { - inputId = inputsNextIndex - inputs.set(value.input, inputsNextIndex) - inputsNextIndex++ - } - fixed[name] = { - end: value.end, - inputId, - start: value.start - } - } else { - fixed[name] = value - } - } - - if (emitInputs) { - fixed.inputs = [...inputs.keys()].map(input => input.toJSON()) - } - - return fixed - } - - toProxy() { - if (!this.proxyCache) { - this.proxyCache = new Proxy(this, this.getProxyProcessor()) - } - return this.proxyCache - } - - toString(stringifier = stringify) { - if (stringifier.stringify) stringifier = stringifier.stringify - let result = '' - stringifier(this, i => { - result += i - }) - return result - } - - warn(result, text, opts = {}) { - let data = { node: this } - for (let i in opts) data[i] = opts[i] - return result.warn(text, data) - } -} - -module.exports = Node -Node.default = Node diff --git a/node_modules/postcss/lib/parse.d.ts b/node_modules/postcss/lib/parse.d.ts deleted file mode 100644 index 4c943a4..0000000 --- a/node_modules/postcss/lib/parse.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Parser } from './postcss.js' - -interface Parse extends Parser { - default: Parse -} - -declare const parse: Parse - -export = parse diff --git a/node_modules/postcss/lib/parse.js b/node_modules/postcss/lib/parse.js deleted file mode 100644 index 00a1037..0000000 --- a/node_modules/postcss/lib/parse.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict' - -let Container = require('./container') -let Input = require('./input') -let Parser = require('./parser') - -function parse(css, opts) { - let input = new Input(css, opts) - let parser = new Parser(input) - try { - parser.parse() - } catch (e) { - if (process.env.NODE_ENV !== 'production') { - if (e.name === 'CssSyntaxError' && opts && opts.from) { - if (/\.scss$/i.test(opts.from)) { - e.message += - '\nYou tried to parse SCSS with ' + - 'the standard CSS parser; ' + - 'try again with the postcss-scss parser' - } else if (/\.sass/i.test(opts.from)) { - e.message += - '\nYou tried to parse Sass with ' + - 'the standard CSS parser; ' + - 'try again with the postcss-sass parser' - } else if (/\.less$/i.test(opts.from)) { - e.message += - '\nYou tried to parse Less with ' + - 'the standard CSS parser; ' + - 'try again with the postcss-less parser' - } - } - } - throw e - } - - return parser.root -} - -module.exports = parse -parse.default = parse - -Container.registerParse(parse) diff --git a/node_modules/postcss/lib/parser.js b/node_modules/postcss/lib/parser.js deleted file mode 100644 index 64fb5d8..0000000 --- a/node_modules/postcss/lib/parser.js +++ /dev/null @@ -1,611 +0,0 @@ -'use strict' - -let AtRule = require('./at-rule') -let Comment = require('./comment') -let Declaration = require('./declaration') -let Root = require('./root') -let Rule = require('./rule') -let tokenizer = require('./tokenize') - -const SAFE_COMMENT_NEIGHBOR = { - empty: true, - space: true -} - -function findLastWithPosition(tokens) { - for (let i = tokens.length - 1; i >= 0; i--) { - let token = tokens[i] - let pos = token[3] || token[2] - if (pos) return pos - } -} - -class Parser { - constructor(input) { - this.input = input - - this.root = new Root() - this.current = this.root - this.spaces = '' - this.semicolon = false - - this.createTokenizer() - this.root.source = { input, start: { column: 1, line: 1, offset: 0 } } - } - - atrule(token) { - let node = new AtRule() - node.name = token[1].slice(1) - if (node.name === '') { - this.unnamedAtrule(node, token) - } - this.init(node, token[2]) - - let type - let prev - let shift - let last = false - let open = false - let params = [] - let brackets = [] - - while (!this.tokenizer.endOfFile()) { - token = this.tokenizer.nextToken() - type = token[0] - - if (type === '(' || type === '[') { - brackets.push(type === '(' ? ')' : ']') - } else if (type === '{' && brackets.length > 0) { - brackets.push('}') - } else if (type === brackets[brackets.length - 1]) { - brackets.pop() - } - - if (brackets.length === 0) { - if (type === ';') { - node.source.end = this.getPosition(token[2]) - node.source.end.offset++ - this.semicolon = true - break - } else if (type === '{') { - open = true - break - } else if (type === '}') { - if (params.length > 0) { - shift = params.length - 1 - prev = params[shift] - while (prev && prev[0] === 'space') { - prev = params[--shift] - } - if (prev) { - node.source.end = this.getPosition(prev[3] || prev[2]) - node.source.end.offset++ - } - } - this.end(token) - break - } else { - params.push(token) - } - } else { - params.push(token) - } - - if (this.tokenizer.endOfFile()) { - last = true - break - } - } - - node.raws.between = this.spacesAndCommentsFromEnd(params) - if (params.length) { - node.raws.afterName = this.spacesAndCommentsFromStart(params) - this.raw(node, 'params', params) - if (last) { - token = params[params.length - 1] - node.source.end = this.getPosition(token[3] || token[2]) - node.source.end.offset++ - this.spaces = node.raws.between - node.raws.between = '' - } - } else { - node.raws.afterName = '' - node.params = '' - } - - if (open) { - node.nodes = [] - this.current = node - } - } - - checkMissedSemicolon(tokens) { - let colon = this.colon(tokens) - if (colon === false) return - - let founded = 0 - let token - for (let j = colon - 1; j >= 0; j--) { - token = tokens[j] - if (token[0] !== 'space') { - founded += 1 - if (founded === 2) break - } - } - // If the token is a word, e.g. `!important`, `red` or any other valid property's value. - // Then we need to return the colon after that word token. [3] is the "end" colon of that word. - // And because we need it after that one we do +1 to get the next one. - throw this.input.error( - 'Missed semicolon', - token[0] === 'word' ? token[3] + 1 : token[2] - ) - } - - colon(tokens) { - let brackets = 0 - let prev, token, type - for (let [i, element] of tokens.entries()) { - token = element - type = token[0] - - if (type === '(') { - brackets += 1 - } - if (type === ')') { - brackets -= 1 - } - if (brackets === 0 && type === ':') { - if (!prev) { - this.doubleColon(token) - } else if (prev[0] === 'word' && prev[1] === 'progid') { - continue - } else { - return i - } - } - - prev = token - } - return false - } - - comment(token) { - let node = new Comment() - this.init(node, token[2]) - node.source.end = this.getPosition(token[3] || token[2]) - node.source.end.offset++ - - let text = token[1].slice(2, -2) - if (/^\s*$/.test(text)) { - node.text = '' - node.raws.left = text - node.raws.right = '' - } else { - let match = text.match(/^(\s*)([^]*\S)(\s*)$/) - node.text = match[2] - node.raws.left = match[1] - node.raws.right = match[3] - } - } - - createTokenizer() { - this.tokenizer = tokenizer(this.input) - } - - decl(tokens, customProperty) { - let node = new Declaration() - this.init(node, tokens[0][2]) - - let last = tokens[tokens.length - 1] - if (last[0] === ';') { - this.semicolon = true - tokens.pop() - } - - node.source.end = this.getPosition( - last[3] || last[2] || findLastWithPosition(tokens) - ) - node.source.end.offset++ - - while (tokens[0][0] !== 'word') { - if (tokens.length === 1) this.unknownWord(tokens) - node.raws.before += tokens.shift()[1] - } - node.source.start = this.getPosition(tokens[0][2]) - - node.prop = '' - while (tokens.length) { - let type = tokens[0][0] - if (type === ':' || type === 'space' || type === 'comment') { - break - } - node.prop += tokens.shift()[1] - } - - node.raws.between = '' - - let token - while (tokens.length) { - token = tokens.shift() - - if (token[0] === ':') { - node.raws.between += token[1] - break - } else { - if (token[0] === 'word' && /\w/.test(token[1])) { - this.unknownWord([token]) - } - node.raws.between += token[1] - } - } - - if (node.prop[0] === '_' || node.prop[0] === '*') { - node.raws.before += node.prop[0] - node.prop = node.prop.slice(1) - } - - let firstSpaces = [] - let next - while (tokens.length) { - next = tokens[0][0] - if (next !== 'space' && next !== 'comment') break - firstSpaces.push(tokens.shift()) - } - - this.precheckMissedSemicolon(tokens) - - for (let i = tokens.length - 1; i >= 0; i--) { - token = tokens[i] - if (token[1].toLowerCase() === '!important') { - node.important = true - let string = this.stringFrom(tokens, i) - string = this.spacesFromEnd(tokens) + string - if (string !== ' !important') node.raws.important = string - break - } else if (token[1].toLowerCase() === 'important') { - let cache = tokens.slice(0) - let str = '' - for (let j = i; j > 0; j--) { - let type = cache[j][0] - if (str.trim().startsWith('!') && type !== 'space') { - break - } - str = cache.pop()[1] + str - } - if (str.trim().startsWith('!')) { - node.important = true - node.raws.important = str - tokens = cache - } - } - - if (token[0] !== 'space' && token[0] !== 'comment') { - break - } - } - - let hasWord = tokens.some(i => i[0] !== 'space' && i[0] !== 'comment') - - if (hasWord) { - node.raws.between += firstSpaces.map(i => i[1]).join('') - firstSpaces = [] - } - this.raw(node, 'value', firstSpaces.concat(tokens), customProperty) - - if (node.value.includes(':') && !customProperty) { - this.checkMissedSemicolon(tokens) - } - } - - doubleColon(token) { - throw this.input.error( - 'Double colon', - { offset: token[2] }, - { offset: token[2] + token[1].length } - ) - } - - emptyRule(token) { - let node = new Rule() - this.init(node, token[2]) - node.selector = '' - node.raws.between = '' - this.current = node - } - - end(token) { - if (this.current.nodes && this.current.nodes.length) { - this.current.raws.semicolon = this.semicolon - } - this.semicolon = false - - this.current.raws.after = (this.current.raws.after || '') + this.spaces - this.spaces = '' - - if (this.current.parent) { - this.current.source.end = this.getPosition(token[2]) - this.current.source.end.offset++ - this.current = this.current.parent - } else { - this.unexpectedClose(token) - } - } - - endFile() { - if (this.current.parent) this.unclosedBlock() - if (this.current.nodes && this.current.nodes.length) { - this.current.raws.semicolon = this.semicolon - } - this.current.raws.after = (this.current.raws.after || '') + this.spaces - this.root.source.end = this.getPosition(this.tokenizer.position()) - } - - freeSemicolon(token) { - this.spaces += token[1] - if (this.current.nodes) { - let prev = this.current.nodes[this.current.nodes.length - 1] - if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) { - prev.raws.ownSemicolon = this.spaces - this.spaces = '' - prev.source.end = this.getPosition(token[2]) - prev.source.end.offset += prev.raws.ownSemicolon.length - } - } - } - - // Helpers - - getPosition(offset) { - let pos = this.input.fromOffset(offset) - return { - column: pos.col, - line: pos.line, - offset - } - } - - init(node, offset) { - this.current.push(node) - node.source = { - input: this.input, - start: this.getPosition(offset) - } - node.raws.before = this.spaces - this.spaces = '' - if (node.type !== 'comment') this.semicolon = false - } - - other(start) { - let end = false - let type = null - let colon = false - let bracket = null - let brackets = [] - let customProperty = start[1].startsWith('--') - - let tokens = [] - let token = start - while (token) { - type = token[0] - tokens.push(token) - - if (type === '(' || type === '[') { - if (!bracket) bracket = token - brackets.push(type === '(' ? ')' : ']') - } else if (customProperty && colon && type === '{') { - if (!bracket) bracket = token - brackets.push('}') - } else if (brackets.length === 0) { - if (type === ';') { - if (colon) { - this.decl(tokens, customProperty) - return - } else { - break - } - } else if (type === '{') { - this.rule(tokens) - return - } else if (type === '}') { - this.tokenizer.back(tokens.pop()) - end = true - break - } else if (type === ':') { - colon = true - } - } else if (type === brackets[brackets.length - 1]) { - brackets.pop() - if (brackets.length === 0) bracket = null - } - - token = this.tokenizer.nextToken() - } - - if (this.tokenizer.endOfFile()) end = true - if (brackets.length > 0) this.unclosedBracket(bracket) - - if (end && colon) { - if (!customProperty) { - while (tokens.length) { - token = tokens[tokens.length - 1][0] - if (token !== 'space' && token !== 'comment') break - this.tokenizer.back(tokens.pop()) - } - } - this.decl(tokens, customProperty) - } else { - this.unknownWord(tokens) - } - } - - parse() { - let token - while (!this.tokenizer.endOfFile()) { - token = this.tokenizer.nextToken() - - switch (token[0]) { - case 'space': - this.spaces += token[1] - break - - case ';': - this.freeSemicolon(token) - break - - case '}': - this.end(token) - break - - case 'comment': - this.comment(token) - break - - case 'at-word': - this.atrule(token) - break - - case '{': - this.emptyRule(token) - break - - default: - this.other(token) - break - } - } - this.endFile() - } - - precheckMissedSemicolon(/* tokens */) { - // Hook for Safe Parser - } - - raw(node, prop, tokens, customProperty) { - let token, type - let length = tokens.length - let value = '' - let clean = true - let next, prev - - for (let i = 0; i < length; i += 1) { - token = tokens[i] - type = token[0] - if (type === 'space' && i === length - 1 && !customProperty) { - clean = false - } else if (type === 'comment') { - prev = tokens[i - 1] ? tokens[i - 1][0] : 'empty' - next = tokens[i + 1] ? tokens[i + 1][0] : 'empty' - if (!SAFE_COMMENT_NEIGHBOR[prev] && !SAFE_COMMENT_NEIGHBOR[next]) { - if (value.slice(-1) === ',') { - clean = false - } else { - value += token[1] - } - } else { - clean = false - } - } else { - value += token[1] - } - } - if (!clean) { - let raw = tokens.reduce((all, i) => all + i[1], '') - node.raws[prop] = { raw, value } - } - node[prop] = value - } - - rule(tokens) { - tokens.pop() - - let node = new Rule() - this.init(node, tokens[0][2]) - - node.raws.between = this.spacesAndCommentsFromEnd(tokens) - this.raw(node, 'selector', tokens) - this.current = node - } - - spacesAndCommentsFromEnd(tokens) { - let lastTokenType - let spaces = '' - while (tokens.length) { - lastTokenType = tokens[tokens.length - 1][0] - if (lastTokenType !== 'space' && lastTokenType !== 'comment') break - spaces = tokens.pop()[1] + spaces - } - return spaces - } - - // Errors - - spacesAndCommentsFromStart(tokens) { - let next - let spaces = '' - while (tokens.length) { - next = tokens[0][0] - if (next !== 'space' && next !== 'comment') break - spaces += tokens.shift()[1] - } - return spaces - } - - spacesFromEnd(tokens) { - let lastTokenType - let spaces = '' - while (tokens.length) { - lastTokenType = tokens[tokens.length - 1][0] - if (lastTokenType !== 'space') break - spaces = tokens.pop()[1] + spaces - } - return spaces - } - - stringFrom(tokens, from) { - let result = '' - for (let i = from; i < tokens.length; i++) { - result += tokens[i][1] - } - tokens.splice(from, tokens.length - from) - return result - } - - unclosedBlock() { - let pos = this.current.source.start - throw this.input.error('Unclosed block', pos.line, pos.column) - } - - unclosedBracket(bracket) { - throw this.input.error( - 'Unclosed bracket', - { offset: bracket[2] }, - { offset: bracket[2] + 1 } - ) - } - - unexpectedClose(token) { - throw this.input.error( - 'Unexpected }', - { offset: token[2] }, - { offset: token[2] + 1 } - ) - } - - unknownWord(tokens) { - throw this.input.error( - 'Unknown word ' + tokens[0][1], - { offset: tokens[0][2] }, - { offset: tokens[0][2] + tokens[0][1].length } - ) - } - - unnamedAtrule(node, token) { - throw this.input.error( - 'At-rule without name', - { offset: token[2] }, - { offset: token[2] + token[1].length } - ) - } -} - -module.exports = Parser diff --git a/node_modules/postcss/lib/postcss.d.mts b/node_modules/postcss/lib/postcss.d.mts deleted file mode 100644 index d343f3c..0000000 --- a/node_modules/postcss/lib/postcss.d.mts +++ /dev/null @@ -1,69 +0,0 @@ -export { - // Type-only exports - AcceptedPlugin, - - AnyNode, - atRule, - AtRule, - AtRuleProps, - Builder, - ChildNode, - ChildProps, - comment, - Comment, - CommentProps, - Container, - ContainerProps, - CssSyntaxError, - decl, - Declaration, - DeclarationProps, - // postcss function / namespace - default, - document, - Document, - DocumentProps, - FilePosition, - fromJSON, - Helpers, - Input, - - JSONHydrator, - // This is a class, but it’s not re-exported. That’s why it’s exported as type-only here. - type LazyResult, - list, - Message, - Node, - NodeErrorOptions, - NodeProps, - OldPlugin, - parse, - Parser, - // @ts-expect-error This value exists, but it’s untyped. - plugin, - Plugin, - PluginCreator, - Position, - Postcss, - ProcessOptions, - Processor, - Result, - root, - Root, - RootProps, - rule, - Rule, - RuleProps, - Source, - SourceMap, - SourceMapOptions, - Stringifier, - // Value exports from postcss.mjs - stringify, - Syntax, - TransformCallback, - Transformer, - Warning, - - WarningOptions -} from './postcss.js' diff --git a/node_modules/postcss/lib/postcss.d.ts b/node_modules/postcss/lib/postcss.d.ts deleted file mode 100644 index c5e3605..0000000 --- a/node_modules/postcss/lib/postcss.d.ts +++ /dev/null @@ -1,458 +0,0 @@ -import { RawSourceMap, SourceMapGenerator } from 'source-map-js' - -import AtRule, { AtRuleProps } from './at-rule.js' -import Comment, { CommentProps } from './comment.js' -import Container, { ContainerProps, NewChild } from './container.js' -import CssSyntaxError from './css-syntax-error.js' -import Declaration, { DeclarationProps } from './declaration.js' -import Document, { DocumentProps } from './document.js' -import Input, { FilePosition } from './input.js' -import LazyResult from './lazy-result.js' -import list from './list.js' -import Node, { - AnyNode, - ChildNode, - ChildProps, - NodeErrorOptions, - NodeProps, - Position, - Source -} from './node.js' -import Processor from './processor.js' -import Result, { Message } from './result.js' -import Root, { RootProps } from './root.js' -import Rule, { RuleProps } from './rule.js' -import Warning, { WarningOptions } from './warning.js' - -type DocumentProcessor = ( - document: Document, - helper: postcss.Helpers -) => Promise | void -type RootProcessor = ( - root: Root, - helper: postcss.Helpers -) => Promise | void -type DeclarationProcessor = ( - decl: Declaration, - helper: postcss.Helpers -) => Promise | void -type RuleProcessor = ( - rule: Rule, - helper: postcss.Helpers -) => Promise | void -type AtRuleProcessor = ( - atRule: AtRule, - helper: postcss.Helpers -) => Promise | void -type CommentProcessor = ( - comment: Comment, - helper: postcss.Helpers -) => Promise | void - -interface Processors { - /** - * Will be called on all`AtRule` nodes. - * - * Will be called again on node or children changes. - */ - AtRule?: { [name: string]: AtRuleProcessor } | AtRuleProcessor - - /** - * Will be called on all `AtRule` nodes, when all children will be processed. - * - * Will be called again on node or children changes. - */ - AtRuleExit?: { [name: string]: AtRuleProcessor } | AtRuleProcessor - - /** - * Will be called on all `Comment` nodes. - * - * Will be called again on node or children changes. - */ - Comment?: CommentProcessor - - /** - * Will be called on all `Comment` nodes after listeners - * for `Comment` event. - * - * Will be called again on node or children changes. - */ - CommentExit?: CommentProcessor - - /** - * Will be called on all `Declaration` nodes after listeners - * for `Declaration` event. - * - * Will be called again on node or children changes. - */ - Declaration?: { [prop: string]: DeclarationProcessor } | DeclarationProcessor - - /** - * Will be called on all `Declaration` nodes. - * - * Will be called again on node or children changes. - */ - DeclarationExit?: - | { [prop: string]: DeclarationProcessor } - | DeclarationProcessor - - /** - * Will be called on `Document` node. - * - * Will be called again on children changes. - */ - Document?: DocumentProcessor - - /** - * Will be called on `Document` node, when all children will be processed. - * - * Will be called again on children changes. - */ - DocumentExit?: DocumentProcessor - - /** - * Will be called on `Root` node once. - */ - Once?: RootProcessor - - /** - * Will be called on `Root` node once, when all children will be processed. - */ - OnceExit?: RootProcessor - - /** - * Will be called on `Root` node. - * - * Will be called again on children changes. - */ - Root?: RootProcessor - - /** - * Will be called on `Root` node, when all children will be processed. - * - * Will be called again on children changes. - */ - RootExit?: RootProcessor - - /** - * Will be called on all `Rule` nodes. - * - * Will be called again on node or children changes. - */ - Rule?: RuleProcessor - - /** - * Will be called on all `Rule` nodes, when all children will be processed. - * - * Will be called again on node or children changes. - */ - RuleExit?: RuleProcessor -} - -declare namespace postcss { - export { - AnyNode, - AtRule, - AtRuleProps, - ChildNode, - ChildProps, - Comment, - CommentProps, - Container, - ContainerProps, - CssSyntaxError, - Declaration, - DeclarationProps, - Document, - DocumentProps, - FilePosition, - Input, - LazyResult, - list, - Message, - NewChild, - Node, - NodeErrorOptions, - NodeProps, - Position, - Processor, - Result, - Root, - RootProps, - Rule, - RuleProps, - Source, - Warning, - WarningOptions - } - - export type SourceMap = { - toJSON(): RawSourceMap - } & SourceMapGenerator - - export type Helpers = { postcss: Postcss; result: Result } & Postcss - - export interface Plugin extends Processors { - postcssPlugin: string - prepare?: (result: Result) => Processors - } - - export interface PluginCreator { - (opts?: PluginOptions): Plugin | Processor - postcss: true - } - - export interface Transformer extends TransformCallback { - postcssPlugin: string - postcssVersion: string - } - - export interface TransformCallback { - (root: Root, result: Result): Promise | void - } - - export interface OldPlugin extends Transformer { - (opts?: T): Transformer - postcss: Transformer - } - - export type AcceptedPlugin = - | { - postcss: Processor | TransformCallback - } - | OldPlugin - | Plugin - | PluginCreator - | Processor - | TransformCallback - - export interface Parser { - ( - css: { toString(): string } | string, - opts?: Pick - ): RootNode - } - - export interface Builder { - (part: string, node?: AnyNode, type?: 'end' | 'start'): void - } - - export interface Stringifier { - (node: AnyNode, builder: Builder): void - } - - export interface JSONHydrator { - (data: object): Node - (data: object[]): Node[] - } - - export interface Syntax { - /** - * Function to generate AST by string. - */ - parse?: Parser - - /** - * Class to generate string by AST. - */ - stringify?: Stringifier - } - - export interface SourceMapOptions { - /** - * Use absolute path in generated source map. - */ - absolute?: boolean - - /** - * Indicates that PostCSS should add annotation comments to the CSS. - * By default, PostCSS will always add a comment with a path - * to the source map. PostCSS will not add annotations to CSS files - * that do not contain any comments. - * - * By default, PostCSS presumes that you want to save the source map as - * `opts.to + '.map'` and will use this path in the annotation comment. - * A different path can be set by providing a string value for annotation. - * - * If you have set `inline: true`, annotation cannot be disabled. - */ - annotation?: ((file: string, root: Root) => string) | boolean | string - - /** - * Override `from` in map’s sources. - */ - from?: string - - /** - * Indicates that the source map should be embedded in the output CSS - * as a Base64-encoded comment. By default, it is `true`. - * But if all previous maps are external, not inline, PostCSS will not embed - * the map even if you do not set this option. - * - * If you have an inline source map, the result.map property will be empty, - * as the source map will be contained within the text of `result.css`. - */ - inline?: boolean - - /** - * Source map content from a previous processing step (e.g., Sass). - * - * PostCSS will try to read the previous source map - * automatically (based on comments within the source CSS), but you can use - * this option to identify it manually. - * - * If desired, you can omit the previous map with prev: `false`. - */ - prev?: ((file: string) => string) | boolean | object | string - - /** - * Indicates that PostCSS should set the origin content (e.g., Sass source) - * of the source map. By default, it is true. But if all previous maps do not - * contain sources content, PostCSS will also leave it out even if you - * do not set this option. - */ - sourcesContent?: boolean - } - - export interface ProcessOptions { - /** - * Input file if it is not simple CSS file, but HTML with "||t==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},e}(),lo=function(){function e(t,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new cr(this,t,r.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var r=0;r\xa0]/u,vo=new RegExp(ni.source,"gu");var dr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function ii(e){var t;return dr.has(e.toLowerCase())&&((t=e[0])==null?void 0:t.toLowerCase())===e[0]}function ce(e){return!!e&&e.length>0}function Nr(e){return e.length===0?void 0:e[e.length-1]}function ai(e){return e.length===0?void 0:e[0]}var pt=Object.freeze({line:1,column:0}),oi=Object.freeze({source:"(synthetic)",start:pt,end:pt}),gr=Object.freeze({source:"(nonexistent)",start:pt,end:pt}),ht=Object.freeze({source:"(broken)",start:pt,end:pt}),br=class{constructor(t){this._whens=t}first(t){for(let r of this._whens){let s=r.match(t);if(ce(s))return s[0]}return null}},xe=class{get(t,r){let s=this._map.get(t);return s||(s=r(),this._map.set(t,s),s)}add(t,r){this._map.set(t,r)}match(t){let r=function(a){switch(a){case"Broken":case"InternalsSynthetic":case"NonExistent":return"IS_INVISIBLE";default:return a}}(t),s=[],n=this._map.get(r),i=this._map.get("MATCH_ANY");return n&&s.push(n),i&&s.push(i),s}constructor(){this._map=new Map}};function Ls(e){return e(new yr).validate()}var yr=class{validate(){return(t,r)=>this.matchFor(t.kind,r.kind)(t,r)}matchFor(t,r){let s=this._whens.match(t);return ce(s),new br(s).first(r)}when(t,r,s){return this._whens.get(t,()=>new xe).add(r,s),this}constructor(){this._whens=new xe}},kr=class e{static synthetic(t){let r=D.synthetic(t);return new e({loc:r,chars:t})}static load(t,r){return new e({loc:D.load(t,r[1]),chars:r[0]})}constructor(t){this.loc=t.loc,this.chars=t.chars}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}},D=class e{static get NON_EXISTENT(){return new et("NonExistent",gr).wrap()}static load(t,r){return typeof r=="number"?e.forCharPositions(t,r,r):typeof r=="string"?e.synthetic(r):Array.isArray(r)?e.forCharPositions(t,r[0],r[1]):r==="NonExistent"?e.NON_EXISTENT:r==="Broken"?e.broken(ht):void ms(r)}static forHbsLoc(t,r){let s=new mt(t,r.start),n=new mt(t,r.end);return new oe(t,{start:s,end:n},r).wrap()}static forCharPositions(t,r,s){let n=new Tt(t,r),i=new Tt(t,s);return new ae(t,{start:n,end:i}).wrap()}static synthetic(t){return new et("InternalsSynthetic",gr,t).wrap()}static broken(t=ht){return new et("Broken",t).wrap()}constructor(t){var r;this.data=t,this.isInvisible=(r=t.kind)!=="CharPosition"&&r!=="HbsPosition"}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let t=this.data.toHbsSpan();return t===null?ht:t.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(t){return J(t.data,this.data.getEnd())}withEnd(t){return J(this.data.getStart(),t.data)}asString(){return this.data.asString()}toSlice(t){let r=this.data.asString();return JSON.stringify(r),JSON.stringify(t),new kr({loc:this,chars:t||r})}get start(){return this.loc.start}set start(t){this.data.locDidUpdate({start:t})}get end(){return this.loc.end}set end(t){this.data.locDidUpdate({end:t})}get source(){return this.module}collapse(t){switch(t){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(t){return J(this.data.getStart(),t.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:t=0,skipEnd:r=0}){return J(this.getStart().move(t).data,this.getEnd().move(-r).data)}sliceStartChars({skipStart:t=0,chars:r}){return J(this.getStart().move(t).data,this.getStart().move(t+r).data)}sliceEndChars({skipEnd:t=0,chars:r}){return J(this.getEnd().move(t-r).data,this.getStart().move(-t).data)}},Ut,ae=class{constructor(t,r){Lt(this,Ut);this.source=t,this.charPositions=r,this.kind="CharPosition",Y(this,Ut,null)}wrap(){return new D(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let t=I(this,Ut);if(t===null){let r=this.charPositions.start.toHbsPos(),s=this.charPositions.end.toHbsPos();t=Y(this,Ut,r===null||s===null?ft:new oe(this.source,{start:r,end:s}))}return t===ft?null:t}serialize(){let{start:{charPos:t},end:{charPos:r}}=this.charPositions;return t===r?t:[t,r]}toCharPosSpan(){return this}};Ut=new WeakMap;var ut,vt,oe=class{constructor(t,r,s=null){Lt(this,ut);Lt(this,vt);this.source=t,this.hbsPositions=r,this.kind="HbsPosition",Y(this,ut,null),Y(this,vt,s)}serialize(){let t=this.toCharPosSpan();return t===null?"Broken":t.wrap().serialize()}wrap(){return new D(this)}updateProvided(t,r){I(this,vt)&&(I(this,vt)[r]=t),Y(this,ut,null),Y(this,vt,{start:t,end:t})}locDidUpdate({start:t,end:r}){t!==void 0&&(this.updateProvided(t,"start"),this.hbsPositions.start=new mt(this.source,t,null)),r!==void 0&&(this.updateProvided(r,"end"),this.hbsPositions.end=new mt(this.source,r,null))}asString(){let t=this.toCharPosSpan();return t===null?"":t.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let t=I(this,ut);if(t===null){let r=this.hbsPositions.start.toCharPos(),s=this.hbsPositions.end.toCharPos();if(!r||!s)return t=Y(this,ut,ft),null;t=Y(this,ut,new ae(this.source,{start:r,end:s}))}return t===ft?null:t}};ut=new WeakMap,vt=new WeakMap;var et=class{constructor(t,r,s=null){this.kind=t,this.loc=r,this.string=s}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new D(this)}asString(){return this.string||""}locDidUpdate({start:t,end:r}){t!==void 0&&(this.loc.start=t),r!==void 0&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new le(this.kind,this.loc.start)}getEnd(){return new le(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return ht}},J=Ls(e=>e.when("HbsPosition","HbsPosition",(t,r)=>new oe(t.source,{start:t,end:r}).wrap()).when("CharPosition","CharPosition",(t,r)=>new ae(t.source,{start:t,end:r}).wrap()).when("CharPosition","HbsPosition",(t,r)=>{let s=r.toCharPos();return s===null?new et("Broken",ht).wrap():J(t,s)}).when("HbsPosition","CharPosition",(t,r)=>{let s=t.toCharPos();return s===null?new et("Broken",ht).wrap():J(s,r)}).when("IS_INVISIBLE","MATCH_ANY",t=>new et(t.kind,ht).wrap()).when("MATCH_ANY","IS_INVISIBLE",(t,r)=>new et(r.kind,ht).wrap())),ft="BROKEN",Mt=class e{static forHbsPos(t,r){return new mt(t,r,null).wrap()}static broken(t=pt){return new le("Broken",t).wrap()}constructor(t){this.data=t}get offset(){let t=this.data.toCharPos();return t===null?null:t.offset}eql(t){return li(this.data,t.data)}until(t){return J(this.data,t.data)}move(t){let r=this.data.toCharPos();if(r===null)return e.broken();{let s=r.offset+t;return r.source.validate(s)?new Tt(r.source,s).wrap():e.broken()}}collapsed(){return J(this.data,this.data)}toJSON(){return this.data.toJSON()}},Tt=class{constructor(t,r){this.source=t,this.charPos=r,this.kind="CharPosition",this._locPos=null}toCharPos(){return this}toJSON(){let t=this.toHbsPos();return t===null?pt:t.toJSON()}wrap(){return new Mt(this)}get offset(){return this.charPos}toHbsPos(){let t=this._locPos;if(t===null){let r=this.source.hbsPosFor(this.charPos);this._locPos=t=r===null?ft:new mt(this.source,r,this.charPos)}return t===ft?null:t}},mt=class{constructor(t,r,s=null){this.source=t,this.hbsPos=r,this.kind="HbsPosition",this._charPos=s===null?null:new Tt(t,s)}toCharPos(){let t=this._charPos;if(t===null){let r=this.source.charPosFor(this.hbsPos);this._charPos=t=r===null?ft:new Tt(this.source,r)}return t===ft?null:t}toJSON(){return this.hbsPos}wrap(){return new Mt(this)}toHbsPos(){return this}},le=class{constructor(t,r){this.kind=t,this.pos=r}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new Mt(this)}get offset(){return null}},li=Ls(e=>e.when("HbsPosition","HbsPosition",({hbsPos:t},{hbsPos:r})=>t.column===r.column&&t.line===r.line).when("CharPosition","CharPosition",({charPos:t},{charPos:r})=>t===r).when("CharPosition","HbsPosition",({offset:t},r)=>{var s;return t===((s=r.toCharPos())==null?void 0:s.offset)}).when("HbsPosition","CharPosition",(t,{offset:r})=>{var s;return((s=t.toCharPos())==null?void 0:s.offset)===r}).when("MATCH_ANY","MATCH_ANY",()=>!1)),wt=class e{static from(t,r={}){var s;return new e(t,(s=r.meta)==null?void 0:s.moduleName)}constructor(t,r="an unknown module"){this.source=t,this.module=r}validate(t){return t>=0&&t<=this.source.length}slice(t,r){return this.source.slice(t,r)}offsetFor(t,r){return Mt.forHbsPos(this,{line:t,column:r})}spanFor({start:t,end:r}){return D.forHbsLoc(this,{start:{line:t.line,column:t.column},end:{line:r.line,column:r.column}})}hbsPosFor(t){let r=0,s=0;if(t>this.source.length)return null;for(;;){let n=this.source.indexOf(` -`,s);if(t<=n||n===-1)return{line:r+1,column:t-s};r+=1,s=n+1}}charPosFor(t){let{line:r,column:s}=t,n=this.source.length,i=0,a=0;for(;ao)return o;if(ri){let c=this.hbsPosFor(a+s);c.line,c.column}return a+s}if(o===-1)return 0;i+=1,a=o+1}return n}};function E(e,t){let{module:r,loc:s}=t,{line:n,column:i}=s.start,a=t.asString(),o=a?` - -| -| ${a.split(` -`).join(` -| `)} -| - -`:"",c=new Error(`${e}: ${o}(error occurred in '${r}' @ line ${n} : column ${i})`);return c.name="SyntaxError",c.location=t,c.code=a,c}var ci={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]},Cr=function(){function e(t,r,s,n){let i=Error.call(this,t);this.key=n,this.message=t,this.node=r,this.parent=s,i.stack&&(this.stack=i.stack)}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}();function ws(e,t,r){return new Cr("Cannot remove a node unless it is part of an array",e,t,r)}function ui(e,t,r){return new Cr("Cannot replace a node with multiple nodes unless it is part of an array",e,t,r)}function Ts(e,t){return new Cr("Replacing and removing in key handlers is not yet supported.",e,null,t)}var zt=class{constructor(t,r=null,s=null){this.node=t,this.parent=r,this.parentKey=s}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new Sr(this)}}},Sr=class{constructor(t){this.path=t}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function Ds(e){return typeof e=="function"?e:e.enter}function _s(e){return typeof e=="function"?void 0:e.exit}function Ae(e,t){let r,s,n,{node:i,parent:a,parentKey:o}=t,c=function(h,p){if(h.Program&&(p==="Template"&&!h.Template||p==="Block"&&!h.Block))return h.Program;let m=h[p];return m!==void 0?m:h.All}(e,i.type);if(c!==void 0&&(r=Ds(c),s=_s(c)),r!==void 0&&(n=r(i,t)),n!=null){if(JSON.stringify(i)!==JSON.stringify(n))return Array.isArray(n)?(Os(e,n,a,o),n):Ae(e,new zt(n,a,o))||n;n=void 0}if(n===void 0){let h=ci[i.type];for(let p=0;ptypeof t=="string"?f.var({name:t,loc:D.synthetic(t)}):t)}function Ps(e=[],t=[],r=!1,s){return f.blockItself({body:e,params:Is(t),chained:r,loc:T(s||null)})}function xs(e=[],t=[],r){return f.template({body:e,blockParams:t,loc:T(r||null)})}function T(...e){if(e.length===1){let t=e[0];return t&&typeof t=="object"?D.forHbsLoc(hr(),t):D.forHbsLoc(hr(),oi)}{let[t,r,s,n,i]=e,a=i?new wt("",i):hr();return D.forHbsLoc(a,{start:{line:t,column:r},end:{line:s||t,column:n||r}})}}var mi={mustache:function(e,t=[],r=ie([]),s=!1,n,i){return f.mustache({path:ct(e),params:t,hash:r,trusting:s,strip:i,loc:T(n||null)})},block:function(e,t,r,s,n=null,i,a,o,c){let h,p=null;return h=s.type==="Template"?f.blockItself({params:Is(s.blockParams),body:s.body,loc:s.loc}):s,(n==null?void 0:n.type)==="Template"?(n.blockParams.length,p=f.blockItself({params:[],body:n.body,loc:n.loc})):p=n,f.block({path:ct(e),params:t||[],hash:r||ie([]),defaultBlock:h,elseBlock:p,loc:T(i||null),openStrip:a,inverseStrip:o,closeStrip:c})},comment:function(e,t){return f.comment({value:e,loc:T(t||null)})},mustacheComment:function(e,t){return f.mustacheComment({value:e,loc:T(t||null)})},element:function(e,t={}){let r,s,{attrs:n,blockParams:i,modifiers:a,comments:o,children:c,openTag:h,closeTag:p,loc:m}=t;typeof e=="string"?e.endsWith("/")?(r=ct(e.slice(0,-1)),s=!0):r=ct(e):"type"in e?(e.type,e.type,r=e):"path"in e?(e.path.type,e.path.type,r=e.path,s=e.selfClosing):(r=ct(e.name),s=e.selfClosing);let S=i==null?void 0:i.map(v=>typeof v=="string"?Cs(v):v),y=null;return p?y=T(p):p===void 0&&(y=s||ii(r.original)?null:T(null)),f.element({path:r,selfClosing:s||!1,attributes:n||[],params:S||[],modifiers:a||[],comments:o||[],children:c||[],openTag:T(h||null),closeTag:y,loc:T(m||null)})},elementModifier:function(e,t,r,s){return f.elementModifier({path:ct(e),params:t||[],hash:r||ie([]),loc:T(s||null)})},attr:function(e,t,r){return f.attr({name:e,value:t,loc:T(r||null)})},text:function(e="",t){return f.text({chars:e,loc:T(t||null)})},sexpr:function(e,t=[],r=ie([]),s){return f.sexpr({path:ct(e),params:t,hash:r,loc:T(s||null)})},concat:function(e,t){if(!ce(e))throw new Error("b.concat requires at least one part");return f.concat({parts:e,loc:T(t||null)})},hash:ie,pair:function(e,t,r){return f.pair({key:e,value:t,loc:T(r||null)})},literal:Pe,program:function(e,t,r){return t&&t.length?Ps(e,t,!1,r):xs(e,[],r)},blockItself:Ps,template:xs,loc:T,pos:function(e,t){return f.pos({line:e,column:t})},path:ct,fullPath:function(e,t=[],r){return f.path({head:e,tail:t,loc:T(r||null)})},head:function(e,t){return f.head({original:e,loc:T(t||null)})},at:function(e,t){return f.atName({name:e,loc:T(t||null)})},var:Cs,this:function(e){return f.this({loc:T(e||null)})},string:pr("StringLiteral"),boolean:pr("BooleanLiteral"),number:pr("NumberLiteral"),undefined:()=>Pe("UndefinedLiteral",void 0),null:()=>Pe("NullLiteral",null)};function pr(e){return function(t,r){return Pe(e,t,r)}}var Ce={close:!1,open:!1},f=new class{pos({line:e,column:t}){return{line:e,column:t}}blockItself({body:e,params:t,chained:r=!1,loc:s}){return{type:"Block",body:e,params:t,get blockParams(){return this.params.map(n=>n.name)},set blockParams(n){this.params=n.map(i=>f.var({name:i,loc:D.synthetic(i)}))},chained:r,loc:s}}template({body:e,blockParams:t,loc:r}){return{type:"Template",body:e,blockParams:t,loc:r}}mustache({path:e,params:t,hash:r,trusting:s,loc:n,strip:i=Ce}){return function({path:a,params:o,hash:c,trusting:h,strip:p,loc:m}){let S={type:"MustacheStatement",path:a,params:o,hash:c,trusting:h,strip:p,loc:m};return Object.defineProperty(S,"escaped",{enumerable:!1,get(){return!this.trusting},set(y){this.trusting=!y}}),S}({path:e,params:t,hash:r,trusting:s,strip:i,loc:n})}block({path:e,params:t,hash:r,defaultBlock:s,elseBlock:n=null,loc:i,openStrip:a=Ce,inverseStrip:o=Ce,closeStrip:c=Ce}){return{type:"BlockStatement",path:e,params:t,hash:r,program:s,inverse:n,loc:i,openStrip:a,inverseStrip:o,closeStrip:c}}comment({value:e,loc:t}){return{type:"CommentStatement",value:e,loc:t}}mustacheComment({value:e,loc:t}){return{type:"MustacheCommentStatement",value:e,loc:t}}concat({parts:e,loc:t}){return{type:"ConcatStatement",parts:e,loc:t}}element({path:e,selfClosing:t,attributes:r,modifiers:s,params:n,comments:i,children:a,openTag:o,closeTag:c,loc:h}){let p=t;return{type:"ElementNode",path:e,attributes:r,modifiers:s,params:n,comments:i,children:a,openTag:o,closeTag:c,loc:h,get tag(){return this.path.original},set tag(m){this.path.original=m},get blockParams(){return this.params.map(m=>m.name)},set blockParams(m){this.params=m.map(S=>f.var({name:S,loc:D.synthetic(S)}))},get selfClosing(){return p},set selfClosing(m){p=m,this.closeTag=m?null:D.synthetic(``)}}}elementModifier({path:e,params:t,hash:r,loc:s}){return{type:"ElementModifierStatement",path:e,params:t,hash:r,loc:s}}attr({name:e,value:t,loc:r}){return{type:"AttrNode",name:e,value:t,loc:r}}text({chars:e,loc:t}){return{type:"TextNode",chars:e,loc:t}}sexpr({path:e,params:t,hash:r,loc:s}){return{type:"SubExpression",path:e,params:t,hash:r,loc:s}}path({head:e,tail:t,loc:r}){return function({head:s,tail:n,loc:i}){let a={type:"PathExpression",head:s,tail:n,get original(){return[this.head.original,...this.tail].join(".")},set original(o){let[c,...h]=o.split(".");this.head=mi.head(c,this.head.loc),this.tail=h},loc:i};return Object.defineProperty(a,"parts",{enumerable:!1,get(){let o=this.original.split(".");return o[0]==="this"?o.shift():o[0].startsWith("@")&&(o[0]=o[0].slice(1)),Object.freeze(o)},set(o){var h;let c=[...o];c[0]==="this"||(h=c[0])!=null&&h.startsWith("@")||(this.head.type==="ThisHead"?c.unshift("this"):this.head.type==="AtHead"&&(c[0]=`@${c[0]}`)),this.original=c.join(".")}}),Object.defineProperty(a,"this",{enumerable:!1,get(){return this.head.type==="ThisHead"}}),Object.defineProperty(a,"data",{enumerable:!1,get(){return this.head.type==="AtHead"}}),a}({head:e,tail:t,loc:r})}head({original:e,loc:t}){return e==="this"?this.this({loc:t}):e[0]==="@"?this.atName({name:e,loc:t}):this.var({name:e,loc:t})}this({loc:e}){return{type:"ThisHead",get original(){return"this"},loc:e}}atName({name:e,loc:t}){let r="",s={type:"AtHead",get name(){return r},set name(n){n[0],n.indexOf("."),r=n},get original(){return this.name},set original(n){this.name=n},loc:t};return s.name=e,s}var({name:e,loc:t}){let r="",s={type:"VarHead",get name(){return r},set name(n){n[0],n.indexOf("."),r=n},get original(){return this.name},set original(n){this.name=n},loc:t};return s.name=e,s}hash({pairs:e,loc:t}){return{type:"Hash",pairs:e,loc:t}}pair({key:e,value:t,loc:r}){return{type:"HashPair",key:e,value:t,loc:r}}literal({type:e,value:t,loc:r}){return function({type:s,value:n,loc:i}){let a={type:s,value:n,loc:i};return Object.defineProperty(a,"original",{enumerable:!1,get(){return this.value},set(o){this.value=o}}),a}({type:e,value:t,loc:r})}},Er=class{constructor(t,r=new lr(Es),s="precompile"){this.elementStack=[],this.currentAttribute=null,this.currentNode=null,this.source=t,this.lines=t.source.split(/\r\n?|\n/u),this.tokenizer=new cr(this,r,s)}offset(){let{line:t,column:r}=this.tokenizer;return this.source.offsetFor(t,r)}pos({line:t,column:r}){return this.source.offsetFor(t,r)}finish(t){return tr({},t,{loc:t.start.until(this.offset())})}get currentAttr(){return this.currentAttribute}get currentTag(){let t=this.currentNode;return t&&(t.type==="StartTag"||t.type),t}get currentStartTag(){let t=this.currentNode;return t&&t.type,t}get currentEndTag(){let t=this.currentNode;return t&&t.type,t}get currentComment(){let t=this.currentNode;return t&&t.type,t}get currentData(){let t=this.currentNode;return t&&t.type,t}acceptNode(t){return this[t.type](t)}currentElement(){return Nr(this.elementStack)}sourceForNode(t,r){let s,n,i,a=t.loc.start.line-1,o=a-1,c=t.loc.start.column,h=[];for(r?(n=r.loc.end.line-1,i=r.loc.end.column):(n=t.loc.end.line-1,i=t.loc.end.column);o=C?-1:y.indexOf(P,v),w===-1||w+P.length>C?(v=C,U=this.source.spanFor(gr)):(v=w,U=S.sliceStartChars({skipStart:v,chars:P.length}),v+=P.length),o.push(f.var({name:P,loc:U}))}}else a=As(this.source,t,i);let c=this.Program(a.program,o),h=a.inverse?this.Program(a.inverse,[]):null,p=f.block({path:r,params:s,hash:n,defaultBlock:c,elseBlock:h,loc:this.source.spanFor(t.loc),openStrip:t.openStrip,inverseStrip:t.inverseStrip,closeStrip:t.closeStrip});Ft(this.currentElement(),p)}MustacheStatement(t){var o;(o=this.pendingError)==null||o.mustache(this.source.spanFor(t.loc));let{tokenizer:r}=this;if(r.state==="comment")return void this.appendToCommentData(this.sourceForNode(t));let s,{escaped:n,loc:i,strip:a}=t;if("original"in t.path&&t.path.original==="...attributes")throw E("Illegal use of ...attributes",this.source.spanFor(t.loc));if(Bs(t.path))s=f.mustache({path:this.acceptNode(t.path),params:[],hash:f.hash({pairs:[],loc:this.source.spanFor(t.path.loc).collapse("end")}),trusting:!n,loc:this.source.spanFor(i),strip:a});else{let{path:c,params:h,hash:p}=fr(this,t);s=f.mustache({path:c,params:h,hash:p,trusting:!n,loc:this.source.spanFor(i),strip:a})}switch(r.state){case"tagOpen":case"tagName":throw E("Cannot use mustaches in an elements tagname",s.loc);case"beforeAttributeName":mr(this.currentStartTag,s);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),mr(this.currentStartTag,s),r.transitionTo("beforeAttributeName");break;case"afterAttributeValueQuoted":mr(this.currentStartTag,s),r.transitionTo("beforeAttributeName");break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(s),r.transitionTo("attributeValueUnquoted");break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(s);break;default:Ft(this.currentElement(),s)}return s}appendDynamicAttributeValuePart(t){this.finalizeTextPart();let r=this.currentAttr;r.isDynamic=!0,r.parts.push(t)}finalizeTextPart(){let t=this.currentAttr.currentPart;t!==null&&(this.currentAttr.parts.push(t),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(t){(function(r,s){let n=s.loc.start.line,i=s.loc.start.column,a=function(o,c){if(c==="")return{lines:o.split(` -`).length-1,columns:0};let[h]=o.split(c),p=h.split(/\n/u),m=p.length-1;return{lines:m,columns:p[m].length}}(s.original,s.value);n+=a.lines,a.lines?i=a.columns:i+=a.columns,r.line=n,r.column=i})(this.tokenizer,t),this.tokenizer.tokenizePart(t.value),this.tokenizer.flushData()}CommentStatement(t){let{tokenizer:r}=this;if(r.state==="comment")return this.appendToCommentData(this.sourceForNode(t)),null;let{value:s,loc:n}=t,i=f.mustacheComment({value:s,loc:this.source.spanFor(n)});switch(r.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(i);break;case"beforeData":case"data":Ft(this.currentElement(),i);break;default:throw E(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`,this.source.spanFor(t.loc))}return i}PartialStatement(t){throw E("Handlebars partials are not supported",this.source.spanFor(t.loc))}PartialBlockStatement(t){throw E("Handlebars partial blocks are not supported",this.source.spanFor(t.loc))}Decorator(t){throw E("Handlebars decorators are not supported",this.source.spanFor(t.loc))}DecoratorBlock(t){throw E("Handlebars decorator blocks are not supported",this.source.spanFor(t.loc))}SubExpression(t){let{path:r,params:s,hash:n}=fr(this,t);return f.sexpr({path:r,params:s,hash:n,loc:this.source.spanFor(t.loc)})}PathExpression(t){let{original:r}=t,s;if(r.indexOf("/")!==-1){if(r.slice(0,2)==="./")throw E('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(t.loc));if(r.slice(0,3)==="../")throw E('Changing context using "../" is not supported in Glimmer',this.source.spanFor(t.loc));if(r.indexOf(".")!==-1)throw E("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(t.loc));s=[t.parts.join("/")]}else{if(r===".")throw E("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(t.loc));s=t.parts}let n,i=!1;if(/^this(?:\..+)?$/u.test(r)&&(i=!0),i)n=f.this({loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+4}})});else if(t.data){let a=s.shift();if(a===void 0)throw E("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(t.loc));n=f.atName({name:`@${a}`,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length+1}})})}else{let a=s.shift();if(a===void 0)throw E("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(t.loc));n=f.var({name:a,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length}})})}return f.path({head:n,tail:s,loc:this.source.spanFor(t.loc)})}Hash(t){let r=t.pairs.map(s=>f.pair({key:s.key,value:this.acceptNode(s.value),loc:this.source.spanFor(s.loc)}));return f.hash({pairs:r,loc:this.source.spanFor(t.loc)})}StringLiteral(t){return f.literal({type:"StringLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}BooleanLiteral(t){return f.literal({type:"BooleanLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}NumberLiteral(t){return f.literal({type:"NumberLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}UndefinedLiteral(t){return f.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(t.loc)})}NullLiteral(t){return f.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(t.loc)})}constructor(...t){super(...t),this.pendingError=null}};function fr(e,t){let r;switch(t.path.type){case"PathExpression":r=e.PathExpression(t.path);break;case"SubExpression":r=e.SubExpression(t.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let i;throw i=t.path.type==="BooleanLiteral"?t.path.original.toString():t.path.type==="StringLiteral"?`"${t.path.original}"`:t.path.type==="NullLiteral"?"null":t.path.type==="NumberLiteral"?t.path.value.toString():"undefined",E(`${t.path.type} "${t.path.type==="StringLiteral"?t.path.original:i}" cannot be called as a sub-expression, replace (${i}) with ${i}`,e.source.spanFor(t.path.loc))}}let s=t.params.map(i=>e.acceptNode(i)),n=ce(s)?Nr(s).loc:r.loc;return{path:r,params:s,hash:t.hash?e.Hash(t.hash):f.hash({pairs:[],loc:e.source.spanFor(n).collapse("end")})}}function mr(e,t){let{path:r,params:s,hash:n,loc:i}=t;if(Bs(r)){let o=`{{${function(c){return c.type==="UndefinedLiteral"?"undefined":JSON.stringify(c.value)}(r)}}}`;throw E(`In <${e.name} ... ${o} ..., ${o} is not a valid modifier`,t.loc)}let a=f.elementModifier({path:r,params:s,hash:n,loc:i});e.modifiers.push(a)}function As(e,t,r){if(!t.program.loc){let n=G(!1,t.program.body,0),i=G(!1,t.program.body,-1);if(n&&i)t.program.loc={...n.loc,end:i.loc.end};else{let a=e.spanFor(t.loc);t.program.loc=r.withEnd(a.getEnd())}}let s=e.spanFor(t.program.loc).getEnd();return t.inverse&&!t.inverse.loc&&(t.inverse.loc=s.collapsed()),t}function Ht(e){return/[\t\n\f ]/u.test(e)}var wr=class extends vr{reset(){this.currentNode=null}beginComment(){this.currentNode={type:"CommentStatement",value:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}appendToCommentData(t){this.currentComment.value+=t}finishComment(){Ft(this.currentElement(),f.comment(this.finish(this.currentComment)))}beginData(){this.currentNode={type:"TextNode",chars:"",start:this.offset()}}appendToData(t){this.currentData.chars+=t}finishData(){Ft(this.currentElement(),f.text(this.finish(this.currentData)))}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",nameStart:null,nameEnd:null,attributes:[],modifiers:[],comments:[],params:[],selfClosing:!1,start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let t=this.finish(this.currentTag);if(t.type==="StartTag"){if(this.finishStartTag(),t.name===":")throw E("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.start.toJSON(),end:this.offset().toJSON()}));(dr.has(t.name)||t.selfClosing)&&this.finishEndTag(!0)}else t.type,t.type,this.finishEndTag(!1)}finishStartTag(){let{name:t,nameStart:r,nameEnd:s}=this.currentStartTag,n=r.until(s),[i,...a]=t.split("."),o=f.path({head:f.head({original:i,loc:n.sliceStartChars({chars:i.length})}),tail:a,loc:n}),{attributes:c,modifiers:h,comments:p,params:m,selfClosing:S,loc:y}=this.finish(this.currentStartTag),v=f.element({path:o,selfClosing:S,attributes:c,modifiers:h,comments:p,params:m,children:[],openTag:y,closeTag:S?null:D.broken(),loc:y});this.elementStack.push(v)}finishEndTag(t){let{start:r}=this.currentTag,s=this.finish(this.currentTag),n=this.elementStack.pop();this.validateEndTag(s,n,t);let i=this.currentElement();t?n.closeTag=null:n.selfClosing?n.closeTag:n.closeTag=r.until(this.offset()),n.loc=n.loc.withEnd(this.offset()),Ft(i,f.element(n))}markTagAsSelfClosing(){let t=this.currentTag;if(t.type!=="StartTag")throw E("Invalid end tag: closing tag must not be self-closing",this.source.spanFor({start:t.start.toJSON(),end:this.offset().toJSON()}));t.selfClosing=!0}appendToTagName(t){let r=this.currentTag;if(r.name+=t,r.type==="StartTag"){let s=this.offset();r.nameStart===null&&(r.nameEnd,r.nameStart=s.move(-1)),r.nameEnd=s}}beginAttribute(){let t=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:t,valueSpan:t.collapsed()}}appendToAttributeName(t){this.currentAttr.name+=t,this.currentAttr.name==="as"&&this.parsePossibleBlockParams()}beginAttributeValue(t){this.currentAttr.isQuoted=t,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(t){let r=this.currentAttr.parts,s=r[r.length-1],n=this.currentAttr.currentPart;if(n)n.chars+=t,n.loc=n.loc.withEnd(this.offset());else{let i=this.offset();i=t===` -`?s?s.loc.getEnd():this.currentAttr.valueSpan.getStart():i.move(-1),this.currentAttr.currentPart=f.text({chars:t,loc:i.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let t=this.currentTag,r=this.offset();if(t.type==="EndTag")throw E("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:t.start.toJSON(),end:r.toJSON()}));let{name:s,parts:n,start:i,isQuoted:a,isDynamic:o,valueSpan:c}=this.currentAttr;if(s.startsWith("|")&&n.length===0&&!a&&!o)throw E("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",i.until(i.move(s.length)));let h=this.assembleAttributeValue(n,a,o,i.until(r));h.loc=c.withEnd(r);let p=f.attr({name:s,value:h,loc:i.until(r)});this.currentStartTag.attributes.push(p)}parsePossibleBlockParams(){let t=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;this.tokenizer.state;let r=this.currentStartTag,s=this.currentAttr,n={state:"PossibleAs"},i={PossibleAs:o=>{if(n.state,Ht(o))n={state:"BeforeStartPipe"},this.tokenizer.transitionTo("afterAttributeName"),this.tokenizer.consume();else{if(o==="|")throw E('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',s.start.until(this.offset().move(1)));n={state:"Done"}}},BeforeStartPipe:o=>{n.state,Ht(o)?this.tokenizer.consume():o==="|"?(n={state:"BeforeBlockParamName"},this.tokenizer.transitionTo("beforeAttributeName"),this.tokenizer.consume()):n={state:"Done"}},BeforeBlockParamName:o=>{if(n.state,Ht(o))this.tokenizer.consume();else if(o==="")n={state:"Done"},this.pendingError={mustache(c){throw E("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw E('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}};else if(o==="|"){if(r.params.length===0)throw E("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",s.start.until(this.offset().move(1)));n={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw E('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',s.start.until(this.offset().move(1)));n={state:"BlockParamName",name:o,start:this.offset()},this.tokenizer.consume()}},BlockParamName:o=>{if(n.state,o==="")n={state:"Done"},this.pendingError={mustache(c){throw E("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw E('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}};else if(o==="|"||Ht(o)){let c=n.start.until(this.offset());if(n.name==="this"||t.test(n.name))throw E(`Invalid block parameters syntax: invalid identifier name \`${n.name}\``,c);r.params.push(f.var({name:n.name,loc:c})),n=o==="|"?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw E('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',s.start.until(this.offset().move(1)));n.name+=o,this.tokenizer.consume()}},AfterEndPipe:o=>{n.state,Ht(o)?this.tokenizer.consume():o===""?(n={state:"Done"},this.pendingError={mustache(c){throw E("Invalid block parameters syntax: modifiers cannot follow parameters list",c)},eof(c){throw E('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}}):o===">"||o==="/"?n={state:"Done"}:(n={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:o=>{if(n.state,o===""||o==="/"||o===">"||Ht(o))throw E(n.message,n.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{}},a;do a=this.tokenizer.peek(),i[n.state](a);while(n.state!=="Done"&&a!=="");n.state}reportSyntaxError(t){throw E(t,this.offset().collapsed())}assembleConcatenatedValue(t){let r=ai(t),s=Nr(t);return f.concat({parts:t,loc:this.source.spanFor(r.loc).extend(this.source.spanFor(s.loc))})}validateEndTag(t,r,s){if(dr.has(t.name)&&!s)throw E(`<${t.name}> elements do not need end tags. You should remove it`,t.loc);if(r.type!=="ElementNode")throw E(`Closing tag without an open tag`,t.loc);if(r.tag!==t.name)throw E(`Closing tag did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`,t.loc)}assembleAttributeValue(t,r,s,n){if(s){if(r)return this.assembleConcatenatedValue(t);{let[i,a]=t;if(a===void 0||a.type==="TextNode"&&a.chars==="/")return i;throw E("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",n)}}return ce(t)?t[0]:f.text({chars:"",loc:n})}constructor(...t){super(...t),this.tagOpenLine=0,this.tagOpenColumn=0}},di={},Tr=class extends lr{constructor(){super({})}parse(){}};function Rs(e,t={}){var c,h,p;let r,s,n,i=t.mode||"precompile";typeof e=="string"?(r=new wt(e,(c=t.meta)==null?void 0:c.moduleName),s=i==="codemod"?Te(e,t.parseOptions):or(e,t.parseOptions)):e instanceof wt?(r=e,s=i==="codemod"?Te(e.source,t.parseOptions):or(e.source,t.parseOptions)):(r=new wt("",(h=t.meta)==null?void 0:h.moduleName),s=e),i==="codemod"&&(n=new Tr);let a=D.forCharPositions(r,0,r.source.length);s.loc={source:"(program)",start:a.startPosition,end:a.endPosition};let o=new wr(r,n,i).parse(s,t.locals??[]);if((p=t.plugins)!=null&&p.ast)for(let m of t.plugins.ast)fi(o,m(tr({},t,{syntax:di},{plugins:void 0})).visitor);return o}var gi={resolution:()=>Ne.GetStrictKeyword,serialize:()=>"Strict",isAngleBracket:!1},wo={...gi,isAngleBracket:!0};function bi(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var qs=bi;function yi(e){let t=e.children??e.body;if(t)for(let r=0;r{let{start:t,end:r}=e.loc;t.offset=e.loc.getStart().offset,r.offset=e.loc.getEnd().offset},Si=()=>({name:"glimmerPrettierParsePlugin",visitor:{All(e){ki(e),yi(e)}}}),Ei={mode:"codemod",plugins:{ast:[Si]}};function vi(e){let t;try{t=Rs(e,Ei)}catch(r){let s=Ti(r);if(s){let n=wi(r);throw qs(n,{loc:s,cause:r})}throw r}return t}function wi(e){let{message:t}=e,r=t.split(` -`);return r.length>=4&&/^Parse error on line \d+:$/u.test(r[0])&&/^-*\^$/u.test(G(!1,r,-2))?G(!1,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(G(!1,r,-1))&&r[1]===""&&G(!1,r,-2)===""&&r.slice(2,-2).every(s=>s.startsWith("|"))?r[0].trim().slice(0,-1):t}function Ti(e){let{location:t,hash:r}=e;if(t){let{start:s,end:n}=t;return typeof n.line!="number"?{start:s}:t}if(r){let{loc:{last_line:s,last_column:n}}=r;return{start:{line:s,column:n+1}}}}var Ni={parse:vi,astFormat:"glimmer",locStart:St,locEnd:re};var Ci={glimmer:us};return Ws(Pi);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/glimmer.mjs b/node_modules/prettier/plugins/glimmer.mjs deleted file mode 100644 index e88ed8d..0000000 --- a/node_modules/prettier/plugins/glimmer.mjs +++ /dev/null @@ -1,29 +0,0 @@ -var zs=Object.defineProperty;var _r=e=>{throw TypeError(e)};var Ve=(e,t)=>{for(var r in t)zs(e,r,{get:t[r],enumerable:!0})};var Or=(e,t,r)=>t.has(e)||_r("Cannot "+r);var I=(e,t,r)=>(Or(e,t,"read from private field"),r?r.call(e):t.get(e)),Lt=(e,t,r)=>t.has(e)?_r("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Y=(e,t,r,s)=>(Or(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r);var xr={};Ve(xr,{languages:()=>hs,parsers:()=>Cr,printers:()=>vi});var Ys=(e,t,r,s)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,s):r.global?t.replace(r,s):t.split(r).join(s)},He=Ys;var Dt="string",Gt="array",Kt="cursor",_t="indent",Ot="align",Wt="trim",Bt="group",It="fill",bt="if-break",jt="indent-if-break",Qt="line-suffix",Jt="line-suffix-boundary",j="line",$t="label",Rt="break-parent",fe=new Set([Kt,_t,Ot,Wt,Bt,It,bt,jt,Qt,Jt,j,$t,Rt]);var Gs=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},G=Gs;function Ks(e){if(typeof e=="string")return Dt;if(Array.isArray(e))return Gt;if(!e)return;let{type:t}=e;if(fe.has(t))return t}var qt=Ks;var Ws=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function js(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(qt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=Ws([...fe].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${s}.`}var Fe=class extends Error{name="InvalidDocError";constructor(t){super(js(t)),this.doc=t}},Ue=Fe;function Js(e,t){if(typeof e=="string")return t(e);let r=new Map;return s(e);function s(i){if(r.has(i))return r.get(i);let a=n(i);return r.set(i,a),a}function n(i){switch(qt(i)){case Gt:return t(i.map(s));case It:return t({...i,parts:i.parts.map(s)});case bt:return t({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case Bt:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(s),o=a[0]):o=s(o),t({...i,contents:o,expandedStates:a})}case Ot:case _t:case jt:case $t:case Qt:return t({...i,contents:s(i.contents)});case Dt:case Kt:case Wt:case Jt:case j:case Rt:return t(i);default:throw new Ue(i)}}}function Br(e,t=Ir){return Js(e,r=>typeof r=="string"?yt(t,r.split(` -`)):r)}var Me=()=>{},kt=Me,ze=Me,Rr=Me;function B(e){return kt(e),{type:_t,contents:e}}function $s(e,t){return kt(t),{type:Ot,contents:t,n:e}}function R(e,t={}){return kt(e),ze(t.expandedStates,!0),{type:Bt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Xt(e){return $s(-1,e)}function Ye(e){return Rr(e),{type:It,parts:e}}function Ge(e,t="",r={}){return kt(e),t!==""&&kt(t),{type:bt,breakContents:e,flatContents:t,groupId:r.groupId}}var qr={type:Rt};var Xs={type:j,hard:!0},Zs={type:j,hard:!0,literal:!0},L={type:j},F={type:j,soft:!0},tt=[Xs,qr],Ir=[Zs,qr];function yt(e,t){kt(e),ze(t);let r=[];for(let s=0;si?s:r}var de=tn;function Ke(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var z,We=class{constructor(t){Lt(this,z);Y(this,z,new Set(t))}getLeadingWhitespaceCount(t){let r=I(this,z),s=0;for(let n=0;n=0&&r.has(t.charAt(n));n--)s++;return s}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return I(this,z).has(t.charAt(0))}hasTrailingWhitespace(t){return I(this,z).has(G(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let s=`[${Ke([...I(this,z)].join(""))}]+`,n=new RegExp(r?`(${s})`:s,"u");return t.split(n)}hasWhitespaceCharacter(t){let r=I(this,z);return Array.prototype.some.call(t,s=>r.has(s))}hasNonWhitespaceCharacter(t){let r=I(this,z);return Array.prototype.some.call(t,s=>!r.has(s))}isWhitespaceOnly(t){let r=I(this,z);return Array.prototype.every.call(t,s=>r.has(s))}};z=new WeakMap;var Hr=We;var en=[" ",` -`,"\f","\r"," "],rn=new Hr(en),K=rn;function sn(e){return Array.isArray(e)&&e.length>0}var Zt=sn;var je=class extends Error{name="UnexpectedNodeError";constructor(t,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(t[s])}.`),this.node=t}},Fr=je;function Ur(e,t,r){if(e.type==="TextNode"){let s=e.chars.trim();if(!s)return null;r.tag==="style"&&r.children.length===1&&r.children[0]===e?t.chars="":t.chars=K.split(s).join(" ")}e.type==="ElementNode"&&(delete t.startTag,delete t.openTag,delete t.parts,delete t.endTag,delete t.closeTag,delete t.nameNode,delete t.body,delete t.blockParamNodes,delete t.params,delete t.path),e.type==="Block"&&(delete t.blockParamNodes,delete t.params),e.type==="AttrNode"&&e.name.toLowerCase()==="class"&&delete t.value,e.type==="PathExpression"&&(t.head=e.head.original)}Ur.ignoredProperties=new Set(["loc","selfClosing"]);var Mr=Ur;function nn(e){let{node:t}=e;if(t.type!=="TextNode")return;let{parent:r}=e;if(!(r.type==="ElementNode"&&r.tag==="style"&&r.children.length===1&&r.children[0]===t))return;let s=r.attributes.find(n=>n.type==="AttrNode"&&n.name==="lang");if(!(s&&!(s.value.type==="TextNode"&&(s.value.chars===""||s.value.chars==="css"))))return async n=>{let i=await n(t.chars,{parser:"css"});return i?[tt,i,Xt(F)]:[]}}var zr=nn;var te=null;function ee(e){if(te!==null&&typeof te.property){let t=te;return te=ee.prototype=null,t}return te=ee.prototype=e??Object.create(null),new ee}var an=10;for(let e=0;e<=an;e++)ee();function Qe(e){return ee(e)}function on(e,t="type"){Qe(e);function r(s){let n=s[t],i=e[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var Yr=on;var Gr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]};var ln=Yr(Gr),Kr=ln;function St(e){return e.loc.start.offset}function re(e){return e.loc.end.offset}var Wr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function Qr(e){return e.toUpperCase()===e}function cn(e){return e.type==="ElementNode"&&typeof e.tag=="string"&&!e.tag.startsWith(":")&&(Qr(e.tag[0])||e.tag.includes("."))}function un(e){return Wr.has(e.toLowerCase())&&!Qr(e[0])}function Je(e){return e.selfClosing===!0||un(e.tag)||cn(e)&&e.children.every(t=>ge(t))}function ge(e){return e.type==="TextNode"&&!/\S/u.test(e.chars)}function jr(e){return(e==null?void 0:e.type)==="MustacheCommentStatement"&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}function Jr(e){return jr(e.node)||e.isInArray&&(e.key==="children"||e.key==="body"||e.key==="parts")&&jr(e.siblings[e.index-2])}var ns=2;function hn(e,t,r){var n,i,a,o,c,h,p,m,S;let{node:s}=e;switch(s.type){case"Block":case"Program":case"Template":return R(e.map(r,"body"));case"ElementNode":{let y=R(fn(e,r)),v=t.htmlWhitespaceSensitivity==="ignore"&&((n=e.next)==null?void 0:n.type)==="ElementNode"?F:"";if(Je(s))return[y,v];let C=[""];return s.children.length===0?[y,B(C),v]:t.htmlWhitespaceSensitivity==="ignore"?[y,B($r(e,t,r)),tt,B(C),v]:[y,B(R($r(e,t,r))),B(C),v]}case"BlockStatement":return kn(e)?[Sn(e,r),ts(e,t,r),es(e,t,r)]:[bn(e,r),R([ts(e,t,r),es(e,t,r),En(e,t,r)])];case"ElementModifierStatement":return R(["{{",ss(e,r),"}}"]);case"MustacheStatement":return R([be(s),ss(e,r),ye(s)]);case"SubExpression":return R(["(",Pn(e,r),F,")"]);case"AttrNode":{let{name:y,value:v}=s,C=v.type==="TextNode";if(C&&v.chars===""&&St(v)===re(v))return y;let w=C?de(v.chars,t.singleQuote):v.type==="ConcatStatement"?de(v.parts.map(q=>q.type==="TextNode"?q.chars:"").join(""),t.singleQuote):"",U=r("value");return[y,"=",w,y==="class"&&w?R(B(U)):U,w]}case"ConcatStatement":return e.map(r,"parts");case"Hash":return yt(L,e.map(r,"pairs"));case"HashPair":return[s.key,"=",r("value")];case"TextNode":{if(e.parent.tag==="pre"||e.parent.tag==="style")return s.chars;let y=He(!1,s.chars,"{{",String.raw`\{{`),v=wn(e);if(v){if(v==="class"){let X=y.trim().split(/\s+/u).join(" "),rt=!1,V=!1;return e.parent.type==="ConcatStatement"&&(((i=e.previous)==null?void 0:i.type)==="MustacheStatement"&&/^\s/u.test(y)&&(rt=!0),((a=e.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/u.test(y)&&X!==""&&(V=!0)),[rt?L:"",X,V?L:""]}return Br(y)}let C=K.isWhitespaceOnly(y),{isFirst:x,isLast:w}=e;if(t.htmlWhitespaceSensitivity!=="ignore"){let X=w&&e.parent.type==="Template",rt=x&&e.parent.type==="Template";if(C){if(rt||X)return"";let A=[L],nt=Vt(y);return nt&&(A=se(nt)),w&&(A=A.map(ue=>Xt(ue))),A}let V=K.getLeadingWhitespace(y),xt=[];if(V){xt=[L];let A=Vt(V);A&&(xt=se(A)),y=y.slice(V.length)}let H=K.getTrailingWhitespace(y),st=[];if(H){if(!X){st=[L];let A=Vt(H);A&&(st=se(A)),w&&(st=st.map(nt=>Xt(nt)))}y=y.slice(0,-H.length)}return[...xt,Ye(rs(y)),...st]}let U=Vt(y),q=Tn(y),$=Nn(y);if((x||w)&&C&&(e.parent.type==="Block"||e.parent.type==="ElementNode"||e.parent.type==="Template"))return"";C&&U?(q=Math.min(U,ns),$=0):((((o=e.next)==null?void 0:o.type)==="BlockStatement"||((c=e.next)==null?void 0:c.type)==="ElementNode")&&($=Math.max($,1)),(((h=e.previous)==null?void 0:h.type)==="BlockStatement"||((p=e.previous)==null?void 0:p.type)==="ElementNode")&&(q=Math.max(q,1)));let Nt="",Ct="";return $===0&&((m=e.next)==null?void 0:m.type)==="MustacheStatement"&&(Ct=" "),q===0&&((S=e.previous)==null?void 0:S.type)==="MustacheStatement"&&(Nt=" "),x&&(q=0,Nt=""),w&&($=0,Ct=""),K.hasLeadingWhitespace(y)&&(y=Nt+K.trimStart(y)),K.hasTrailingWhitespace(y)&&(y=K.trimEnd(y)+Ct),[...se(q),Ye(rs(y)),...se($)]}case"MustacheCommentStatement":{let y=St(s),v=re(s),C=t.originalText.charAt(y+2)==="~",x=t.originalText.charAt(v-3)==="~",w=s.value.includes("}}")?"--":"";return["{{",C?"~":"","!",w,s.value,w,x?"~":"","}}"]}case"PathExpression":return _n(s);case"BooleanLiteral":return String(s.value);case"CommentStatement":return[""];case"StringLiteral":return Cn(e,t);case"NumberLiteral":return String(s.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";case"AtHead":case"VarHead":case"ThisHead":default:throw new Fr(s,"Handlebars")}}function pn(e,t){return St(e)-St(t)}function fn(e,t){let{node:r}=e,s=["attributes","modifiers","comments"].filter(i=>Zt(r[i])),n=s.flatMap(i=>r[i]).sort(pn);for(let i of s)e.each(({node:a})=>{let o=n.indexOf(a);n.splice(o,1,[L,t()])},i);return Zt(r.blockParams)&&n.push(L,Xe(r)),["<",r.tag,B(n),mn(r)]}function $r(e,t,r){let{node:s}=e,n=s.children.every(i=>ge(i));return t.htmlWhitespaceSensitivity==="ignore"&&n?"":e.map(({isFirst:i})=>{let a=r();return i&&t.htmlWhitespaceSensitivity==="ignore"?[F,a]:a},"children")}function mn(e){return Je(e)?Ge([F,"/>"],[" />",F]):Ge([F,">"],">")}function be(e){var s;let t=e.trusting?"{{{":"{{",r=(s=e.strip)!=null&&s.open?"~":"";return[t,r]}function ye(e){var s;let t=e.trusting?"}}}":"}}";return[(s=e.strip)!=null&&s.close?"~":"",t]}function dn(e){let t=be(e),r=e.openStrip.open?"~":"";return[t,r,"#"]}function gn(e){let t=ye(e);return[e.openStrip.close?"~":"",t]}function Xr(e){let t=be(e),r=e.closeStrip.open?"~":"";return[t,r,"/"]}function Zr(e){let t=ye(e);return[e.closeStrip.close?"~":"",t]}function is(e){let t=be(e),r=e.inverseStrip.open?"~":"";return[t,r]}function as(e){let t=ye(e);return[e.inverseStrip.close?"~":"",t]}function bn(e,t){let{node:r}=e,s=[],n=ke(e,t);return n&&s.push(R(n)),Zt(r.program.blockParams)&&s.push(Xe(r.program)),R([dn(r),$e(e,t),s.length>0?B([L,yt(L,s)]):"",F,gn(r)])}function yn(e,t){return[t.htmlWhitespaceSensitivity==="ignore"?tt:"",is(e),"else",as(e)]}var os=(e,t)=>e.head.type==="VarHead"&&t.head.type==="VarHead"&&e.head.name===t.head.name;function kn(e){var s;let{grandparent:t,node:r}=e;return((s=t==null?void 0:t.inverse)==null?void 0:s.body.length)===1&&t.inverse.body[0]===r&&os(t.inverse.body[0].path,t.path)}function Sn(e,t){let{node:r,grandparent:s}=e;return R([is(s),["else"," ",s.inverse.body[0].path.head.name],B([L,R(ke(e,t)),...Zt(r.program.blockParams)?[L,Xe(r.program)]:[]]),F,as(s)])}function En(e,t,r){let{node:s}=e;return t.htmlWhitespaceSensitivity==="ignore"?[ls(s)?F:tt,Xr(s),r("path"),Zr(s)]:[Xr(s),r("path"),Zr(s)]}function ls(e){return e.type==="BlockStatement"&&e.program.body.every(t=>ge(t))}function vn(e){return cs(e)&&e.inverse.body.length===1&&e.inverse.body[0].type==="BlockStatement"&&os(e.inverse.body[0].path,e.path)}function cs(e){return e.type==="BlockStatement"&&e.inverse}function ts(e,t,r){let{node:s}=e;if(ls(s))return"";let n=r("program");return t.htmlWhitespaceSensitivity==="ignore"?B([tt,n]):B(n)}function es(e,t,r){let{node:s}=e,n=r("inverse"),i=t.htmlWhitespaceSensitivity==="ignore"?[tt,n]:n;return vn(s)?i:cs(s)?[yn(s,t),B(i)]:""}function rs(e){return yt(L,K.split(e))}function wn(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Vt(e){return e=typeof e=="string"?e:"",e.split(` -`).length-1}function Tn(e){e=typeof e=="string"?e:"";let t=(e.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return Vt(t)}function Nn(e){e=typeof e=="string"?e:"";let t=(e.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return Vt(t)}function se(e=0){return Array.from({length:Math.min(e,ns)}).fill(tt)}function Cn(e,t){let{node:{value:r}}=e,s=de(r,xn(e)?!t.singleQuote:t.singleQuote);return[s,He(!1,r,s,`\\${s}`),s]}function xn(e){let{ancestors:t}=e,r=t.findIndex(s=>s.type!=="SubExpression");return r!==-1&&t[r+1].type==="ConcatStatement"&&t[r+2].type==="AttrNode"}function Pn(e,t){let r=$e(e,t),s=ke(e,t);return s?B([r,L,R(s)]):r}function ss(e,t){let r=$e(e,t),s=ke(e,t);return s?[B([r,L,s]),F]:r}function $e(e,t){return t("path")}function ke(e,t){var n;let{node:r}=e,s=[];return r.params.length>0&&s.push(...e.map(t,"params")),((n=r.hash)==null?void 0:n.pairs.length)>0&&s.push(t("hash")),s.length===0?"":yt(L,s)}function Xe(e){return["as |",e.blockParams.join(" "),"|"]}var An=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),Ln=new Set(["true","false","null","undefined"]),Dn=(e,t)=>t===0&&e.startsWith("@")?!1:t!==0&&Ln.has(e)||/\s/u.test(e)||/^\d/u.test(e)||Array.prototype.some.call(e,r=>An.has(r));function _n(e){return e.tail.length===0&&e.original.includes("/")?e.original:[e.head.original,...e.tail].map((r,s)=>Dn(r,s)?`[${r}]`:r).join(".")}var On={print:hn,massageAstNode:Mr,hasPrettierIgnore:Jr,getVisitorKeys:Kr,embed:zr},us=On;var hs=[{name:"Handlebars",type:"markup",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}];var Cr={};Ve(Cr,{glimmer:()=>Ei});var Bn=Object.freeze([]);function fs(){return Bn}var Ya=fs(),Ga=fs();var Ze=Object.assign;var ps=console;function ms(e,t="unexpected unreachable branch"){throw ps.log("unreachable",e),ps.log(`${t} :: ${JSON.stringify(e)} (${e})`),new Error("code reached unreachable")}var In=function(){var e=function(it,d,k,g){for(k=k||{},g=it.length;g--;k[it[g]]=d);return k},t=[2,44],r=[1,20],s=[5,14,15,19,29,34,39,44,47,48,52,56,60],n=[1,35],i=[1,38],a=[1,30],o=[1,31],c=[1,32],h=[1,33],p=[1,34],m=[1,37],S=[14,15,19,29,34,39,44,47,48,52,56,60],y=[14,15,19,29,34,44,47,48,52,56,60],v=[15,18],C=[14,15,19,29,34,47,48,52,56,60],x=[33,64,71,79,80,81,82,83,84],w=[23,33,55,64,67,71,74,79,80,81,82,83,84],U=[1,51],q=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],$=[2,43],Nt=[55,64,71,79,80,81,82,83,84],Ct=[1,58],X=[1,59],rt=[1,66],V=[33,64,71,74,79,80,81,82,83,84],xt=[23,64,71,79,80,81,82,83,84],H=[1,76],st=[64,67,71,79,80,81,82,83,84],A=[33,74],nt=[23,33,55,67,71,74],ue=[1,106],Le=[1,118],Pr=[71,76],De={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(d,k,g,b,N,l,Pt){var u=l.length-1;switch(N){case 1:return l[u-1];case 2:this.$=b.prepareProgram(l[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=l[u];break;case 9:this.$={type:"CommentStatement",value:b.stripComment(l[u]),strip:b.stripFlags(l[u],l[u]),loc:b.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[u],value:l[u],loc:b.locInfo(this._$)};break;case 11:this.$=b.prepareRawBlock(l[u-2],l[u-1],l[u],this._$);break;case 12:this.$={path:l[u-3],params:l[u-2],hash:l[u-1]};break;case 13:this.$=b.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!1,this._$);break;case 14:this.$=b.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!0,this._$);break;case 15:this.$={open:l[u-5],path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:b.stripFlags(l[u-5],l[u])};break;case 16:case 17:this.$={path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:b.stripFlags(l[u-5],l[u])};break;case 18:this.$={strip:b.stripFlags(l[u-1],l[u-1]),program:l[u]};break;case 19:var at=b.prepareBlock(l[u-2],l[u-1],l[u],l[u],!1,this._$),Yt=b.prepareProgram([at],l[u-1].loc);Yt.chained=!0,this.$={strip:l[u-2].strip,program:Yt,chain:!0};break;case 21:this.$={path:l[u-1],strip:b.stripFlags(l[u-2],l[u])};break;case 22:case 23:this.$=b.prepareMustache(l[u-3],l[u-2],l[u-1],l[u-4],b.stripFlags(l[u-4],l[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[u-3],params:l[u-2],hash:l[u-1],indent:"",strip:b.stripFlags(l[u-4],l[u]),loc:b.locInfo(this._$)};break;case 25:this.$=b.preparePartialBlock(l[u-2],l[u-1],l[u],this._$);break;case 26:this.$={path:l[u-3],params:l[u-2],hash:l[u-1],strip:b.stripFlags(l[u-4],l[u])};break;case 29:this.$={type:"SubExpression",path:l[u-3],params:l[u-2],hash:l[u-1],loc:b.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[u],loc:b.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:b.id(l[u-2]),value:l[u],loc:b.locInfo(this._$)};break;case 32:this.$=b.id(l[u-1]);break;case 35:this.$={type:"StringLiteral",value:l[u],original:l[u],loc:b.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[u]),original:Number(l[u]),loc:b.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[u]==="true",original:l[u]==="true",loc:b.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:b.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:b.locInfo(this._$)};break;case 40:this.$=b.preparePath(!0,l[u],this._$);break;case 41:this.$=b.preparePath(!1,l[u],this._$);break;case 42:l[u-2].push({part:b.id(l[u]),original:l[u],separator:l[u-1]}),this.$=l[u-2];break;case 43:this.$=[{part:b.id(l[u]),original:l[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:l[u-1].push(l[u]);break;case 96:case 98:this.$=[l[u]];break}},table:[e([5,14,15,19,29,34,48,52,56,60],t,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},e([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},e(s,[2,45]),e(s,[2,3]),e(s,[2,4]),e(s,[2,5]),e(s,[2,6]),e(s,[2,7]),e(s,[2,8]),e(s,[2,9]),{20:26,49:25,63:27,64:n,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:26,49:39,63:27,64:n,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(S,t,{6:3,4:40}),e(y,t,{6:3,4:41}),e(v,[2,46],{17:42}),{20:26,49:43,63:27,64:n,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(C,t,{6:3,4:44}),e([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:46,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:47,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:26,49:48,63:27,64:n,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(x,[2,76],{50:49}),e(w,[2,27]),e(w,[2,28]),e(w,[2,33]),e(w,[2,34]),e(w,[2,35]),e(w,[2,36]),e(w,[2,37]),e(w,[2,38]),e(w,[2,39]),{20:26,49:50,63:27,64:n,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(w,[2,41],{86:U}),{71:i,85:52},e(q,$),e(Nt,[2,80],{53:53}),{25:54,38:56,39:Ct,43:57,44:X,45:55,47:[2,52]},{28:60,43:61,44:X,47:[2,54]},{13:63,15:r,18:[1,62]},e(x,[2,84],{57:64}),{26:65,47:rt},e(V,[2,56],{30:67}),e(V,[2,62],{35:68}),e(xt,[2,48],{21:69}),e(x,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:n,68:73,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(st,[2,92],{65:77}),{71:[1,78]},e(w,[2,40],{86:U}),{20:26,49:80,54:79,55:[2,82],63:27,64:n,68:81,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{26:82,47:rt},{47:[2,53]},e(S,t,{6:3,4:83}),{47:[2,20]},{20:84,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(C,t,{6:3,4:85}),{26:86,47:rt},{47:[2,55]},e(s,[2,11]),e(v,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:n,68:89,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(s,[2,25]),{20:90,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(A,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:n,71:H,79:a,80:o,81:c,82:h,83:p,84:m}),e(A,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:n,71:H,79:a,80:o,81:c,82:h,83:p,84:m}),{20:26,22:97,23:[2,50],49:98,63:27,64:n,68:99,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:n,68:102,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{33:[1,103]},e(x,[2,77]),{33:[2,79]},e([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),e(nt,[2,96]),e(q,$,{72:ue}),{20:26,49:108,63:27,64:n,66:107,67:[2,94],68:109,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(q,[2,42]),{55:[1,110]},e(Nt,[2,81]),{55:[2,83]},e(s,[2,13]),{38:56,39:Ct,43:57,44:X,45:112,46:111,47:[2,74]},e(V,[2,68],{40:113}),{47:[2,18]},e(s,[2,14]),{33:[1,114]},e(x,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:Le},e(V,[2,57]),e(A,[2,59]),{33:[2,66],37:119,73:120,74:Le},e(V,[2,63]),e(A,[2,65]),{23:[1,121]},e(xt,[2,49]),{23:[2,51]},{33:[1,122]},e(x,[2,89]),{33:[2,91]},e(s,[2,22]),e(nt,[2,97]),{72:ue},{20:26,49:123,63:27,64:n,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{67:[1,124]},e(st,[2,93]),{67:[2,95]},e(s,[2,23]),{47:[2,19]},{47:[2,75]},e(A,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:n,71:H,79:a,80:o,81:c,82:h,83:p,84:m}),e(s,[2,24]),e(s,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},e(v,[2,12]),e(C,[2,26]),e(nt,[2,31]),e(w,[2,29]),{33:[2,72],42:132,73:133,74:Le},e(V,[2,69]),e(A,[2,71]),e(S,[2,15]),{71:[1,135],76:[1,134]},e(Pr,[2,98]),e(y,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},e(Pr,[2,99]),e(S,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(d,k){if(k.recoverable)this.trace(d);else{var g=new Error(d);throw g.hash=k,g}},parse:function(d){var k=this,g=[0],b=[],N=[null],l=[],Pt=this.table,u="",at=0,Yt=0,Ar=0,Hs=2,Lr=1,Fs=l.slice.call(arguments,1),P=Object.create(this.lexer),dt={yy:{}};for(var Oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Oe)&&(dt.yy[Oe]=this.yy[Oe]);P.setInput(d,dt.yy),dt.yy.lexer=P,dt.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var Be=P.yylloc;l.push(Be);var Us=P.options&&P.options.ranges;typeof dt.yy.parseError=="function"?this.parseError=dt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wi(W){g.length=g.length-2*W,N.length=N.length-W,l.length=l.length-W}for(var Ms=function(){var W;return W=P.lex()||Lr,typeof W!="number"&&(W=k.symbols_[W]||W),W},O,Ie,gt,M,Ti,Re,At={},he,Z,Dr,pe;;){if(gt=g[g.length-1],this.defaultActions[gt]?M=this.defaultActions[gt]:((O===null||typeof O>"u")&&(O=Ms()),M=Pt[gt]&&Pt[gt][O]),typeof M>"u"||!M.length||!M[0]){var qe="";pe=[];for(he in Pt[gt])this.terminals_[he]&&he>Hs&&pe.push("'"+this.terminals_[he]+"'");P.showPosition?qe="Parse error on line "+(at+1)+`: -`+P.showPosition()+` -Expecting `+pe.join(", ")+", got '"+(this.terminals_[O]||O)+"'":qe="Parse error on line "+(at+1)+": Unexpected "+(O==Lr?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(qe,{text:P.match,token:this.terminals_[O]||O,line:P.yylineno,loc:Be,expected:pe})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+gt+", token: "+O);switch(M[0]){case 1:g.push(O),N.push(P.yytext),l.push(P.yylloc),g.push(M[1]),O=null,Ie?(O=Ie,Ie=null):(Yt=P.yyleng,u=P.yytext,at=P.yylineno,Be=P.yylloc,Ar>0&&Ar--);break;case 2:if(Z=this.productions_[M[1]][1],At.$=N[N.length-Z],At._$={first_line:l[l.length-(Z||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Z||1)].first_column,last_column:l[l.length-1].last_column},Us&&(At._$.range=[l[l.length-(Z||1)].range[0],l[l.length-1].range[1]]),Re=this.performAction.apply(At,[u,Yt,at,dt.yy,M[1],N,l].concat(Fs)),typeof Re<"u")return Re;Z&&(g=g.slice(0,-1*Z*2),N=N.slice(0,-1*Z),l=l.slice(0,-1*Z)),g.push(this.productions_[M[1]][0]),N.push(At.$),l.push(At._$),Dr=Pt[g[g.length-2]][g[g.length-1]],g.push(Dr);break;case 3:return!0}}return!0}},Vs=function(){var it={EOF:1,parseError:function(k,g){if(this.yy.parser)this.yy.parser.parseError(k,g);else throw new Error(k)},setInput:function(d,k){return this.yy=k||this.yy||{},this._input=d,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var k=d.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},unput:function(d){var k=d.length,g=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var N=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===b.length?this.yylloc.first_column:0)+b[b.length-g.length].length-g[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[N[0],N[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(d){this.unput(this.match.slice(d))},pastInput:function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var d=this.pastInput(),k=new Array(d.length+1).join("-");return d+this.upcomingInput()+` -`+k+"^"},test_match:function(d,k){var g,b,N;if(this.options.backtrack_lexer&&(N={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(N.yylloc.range=this.yylloc.range.slice(0))),b=d[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(d[0].length),this.matched+=d[0],g=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var l in N)this[l]=N[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var d,k,g,b;this._more||(this.yytext="",this.match="");for(var N=this._currentRules(),l=0;lk[0].length)){if(k=g,b=l,this.options.backtrack_lexer){if(d=this.test_match(g,N[l]),d!==!1)return d;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(d=this.test_match(k,N[b]),d!==!1?d:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var k=this.next();return k||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){var k=this.conditionStack.length-1;return k>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(k,g,b,N){function l(u,at){return g.yytext=g.yytext.substring(u,g.yyleng-at+u)}var Pt=N;switch(b){case 0:if(g.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):g.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),g.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(g.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;break;case 30:return this.popState(),33;break;case 31:return g.yytext=l(1,2).replace(/\\"/g,'"'),79;break;case 32:return g.yytext=l(1,2).replace(/\\'/g,"'"),79;break;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return g.yytext=g.yytext.replace(/\\([\\\]])/g,"$1"),71;break;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return it}();De.lexer=Vs;function _e(){this.yy={}}return _e.prototype=De,De.Parser=_e,new _e}(),Se=In;var tr=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function er(e,t){var r=t&&t.loc,s,n,i,a;r&&(s=r.start.line,n=r.end.line,i=r.start.column,a=r.end.column,e+=" - "+s+":"+i);for(var o=Error.prototype.constructor.call(this,e),c=0;cir,id:()=>Rn,prepareBlock:()=>Mn,prepareMustache:()=>Fn,preparePartialBlock:()=>Yn,preparePath:()=>Hn,prepareProgram:()=>zn,prepareRawBlock:()=>Un,stripComment:()=>Vn,stripFlags:()=>qn});function nr(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new ot(e.path.original+" doesn't match "+t,r)}}function ir(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function Rn(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function qn(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function Vn(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function Hn(e,t,r){r=this.locInfo(r);for(var s=e?"@":"",n=[],i=0,a=0,o=t.length;a0)throw new ot("Invalid path: "+s,{loc:r});c===".."&&i++}else n.push(c)}return{type:"PathExpression",data:e,depth:i,parts:n,original:s,loc:r}}function Fn(e,t,r,s,n,i){var a=s.charAt(3)||s.charAt(2),o=a!=="{"&&a!=="&",c=/\*/.test(s);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:o,strip:n,loc:this.locInfo(i)}}function Un(e,t,r,s){nr(e,r),s=this.locInfo(s);var n={type:"Program",body:t,strip:{},loc:s};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:n,openStrip:{},inverseStrip:{},closeStrip:{},loc:s}}function Mn(e,t,r,s,n,i){s&&s.path&&nr(e,s);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var o,c;if(r){if(a)throw new ot("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=s.strip),c=r.strip,o=r.program}return n&&(n=o,o=t,t=n),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:o,openStrip:e.strip,inverseStrip:c,closeStrip:s&&s.strip,loc:this.locInfo(i)}}function zn(e,t){if(!t&&e.length){var r=e[0].loc,s=e[e.length-1].loc;r&&s&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:s.end.line,column:s.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function Yn(e,t,r,s){return nr(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(s)}}var ks={};for(we in ne)Object.prototype.hasOwnProperty.call(ne,we)&&(ks[we]=ne[we]);var we;function Te(e,t){if(e.type==="Program")return e;Se.yy=ks,Se.yy.locInfo=function(s){return new ir(t&&t.srcName,s)};var r=Se.parse(e);return r}function ar(e,t){var r=Te(e,t),s=new ys(t);return s.accept(r)}var Es={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},Gn=/^#[xX]([A-Fa-f0-9]+)$/,Kn=/^#([0-9]+)$/,Wn=/^([A-Za-z0-9]+)$/,or=function(){function e(t){this.named=t}return e.prototype.parse=function(t){if(t){var r=t.match(Gn);if(r)return String.fromCharCode(parseInt(r[1],16));if(r=t.match(Kn),r)return String.fromCharCode(parseInt(r[1],10));if(r=t.match(Wn),r)return this.named[r[1]]}},e}(),jn=/[\t\n\f ]/,Qn=/[A-Za-z]/,Jn=/\r\n?/g;function _(e){return jn.test(e)}function Ss(e){return Qn.test(e)}function $n(e){return e.replace(Jn,` -`)}var lr=function(){function e(t,r,s){s===void 0&&(s="precompile"),this.delegate=t,this.entityParser=r,this.mode=s,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var n=this.peek();if(n==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&n===` -`){var i=this.tagNameBuffer.toLowerCase();(i==="pre"||i==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var n=this.peek(),i=this.tagNameBuffer;n==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):n==="&"&&i!=="script"&&i!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(n))},tagOpen:function(){var n=this.consume();n==="!"?this.transitionTo("markupDeclarationOpen"):n==="/"?this.transitionTo("endTagOpen"):(n==="@"||n===":"||Ss(n))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(n))},markupDeclarationOpen:function(){var n=this.consume();if(n==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var i=n.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();i==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var n=this.consume();_(n)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var n=this.consume();_(n)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(n.toLowerCase()))},doctypeName:function(){var n=this.consume();_(n)?this.transitionTo("afterDoctypeName"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(n.toLowerCase())},afterDoctypeName:function(){var n=this.consume();if(!_(n))if(n===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var i=n.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=i.toUpperCase()==="PUBLIC",o=i.toUpperCase()==="SYSTEM";(a||o)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):o&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var n=this.peek();_(n)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):n==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):n==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):n===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var n=this.consume();n==='"'?this.transitionTo("afterDoctypePublicIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(n)},doctypePublicIdentifierSingleQuoted:function(){var n=this.consume();n==="'"?this.transitionTo("afterDoctypePublicIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(n)},afterDoctypePublicIdentifier:function(){var n=this.consume();_(n)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):n==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):n==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var n=this.consume();_(n)||(n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):n==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):n==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var n=this.consume();n==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(n)},doctypeSystemIdentifierSingleQuoted:function(){var n=this.consume();n==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(n)},afterDoctypeSystemIdentifier:function(){var n=this.consume();_(n)||n===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var n=this.consume();n==="-"?this.transitionTo("commentStartDash"):n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(n),this.transitionTo("comment"))},commentStartDash:function(){var n=this.consume();n==="-"?this.transitionTo("commentEnd"):n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var n=this.consume();n==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(n)},commentEndDash:function(){var n=this.consume();n==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+n),this.transitionTo("comment"))},commentEnd:function(){var n=this.consume();n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+n),this.transitionTo("comment"))},tagName:function(){var n=this.consume();_(n)?this.transitionTo("beforeAttributeName"):n==="/"?this.transitionTo("selfClosingStartTag"):n===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(n)},endTagName:function(){var n=this.consume();_(n)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):n==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):n===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(n)},beforeAttributeName:function(){var n=this.peek();if(_(n)){this.consume();return}else n==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):n===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):n==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(n)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var n=this.peek();_(n)?(this.transitionTo("afterAttributeName"),this.consume()):n==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):n==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):n===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):n==='"'||n==="'"||n==="<"?(this.delegate.reportSyntaxError(n+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(n)):(this.consume(),this.delegate.appendToAttributeName(n))},afterAttributeName:function(){var n=this.peek();if(_(n)){this.consume();return}else n==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):n==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):n===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(n))},beforeAttributeValue:function(){var n=this.peek();_(n)?this.consume():n==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):n==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):n===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(n))},attributeValueDoubleQuoted:function(){var n=this.consume();n==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):n==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(n)},attributeValueSingleQuoted:function(){var n=this.consume();n==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):n==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(n)},attributeValueUnquoted:function(){var n=this.peek();_(n)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):n==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):n==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):n===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(n))},afterAttributeValueQuoted:function(){var n=this.peek();_(n)?(this.consume(),this.transitionTo("beforeAttributeName")):n==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):n===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var n=this.peek();n===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var n=this.consume();(n==="@"||n===":"||Ss(n))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(n))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(t){this.state=t},e.prototype.tokenize=function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},e.prototype.tokenizePart=function(t){for(this.input+=$n(t);this.index"||t==="style"&&this.input.substring(this.index,this.index+8)!==""||t==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},e}(),so=function(){function e(t,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new lr(this,t,r.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var r=0;r\xa0]/u,bo=new RegExp(ti.source,"gu");var mr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function ei(e){var t;return mr.has(e.toLowerCase())&&((t=e[0])==null?void 0:t.toLowerCase())===e[0]}function ce(e){return!!e&&e.length>0}function Tr(e){return e.length===0?void 0:e[e.length-1]}function ri(e){return e.length===0?void 0:e[0]}var pt=Object.freeze({line:1,column:0}),si=Object.freeze({source:"(synthetic)",start:pt,end:pt}),dr=Object.freeze({source:"(nonexistent)",start:pt,end:pt}),ht=Object.freeze({source:"(broken)",start:pt,end:pt}),gr=class{constructor(t){this._whens=t}first(t){for(let r of this._whens){let s=r.match(t);if(ce(s))return s[0]}return null}},Pe=class{get(t,r){let s=this._map.get(t);return s||(s=r(),this._map.set(t,s),s)}add(t,r){this._map.set(t,r)}match(t){let r=function(a){switch(a){case"Broken":case"InternalsSynthetic":case"NonExistent":return"IS_INVISIBLE";default:return a}}(t),s=[],n=this._map.get(r),i=this._map.get("MATCH_ANY");return n&&s.push(n),i&&s.push(i),s}constructor(){this._map=new Map}};function Ls(e){return e(new br).validate()}var br=class{validate(){return(t,r)=>this.matchFor(t.kind,r.kind)(t,r)}matchFor(t,r){let s=this._whens.match(t);return ce(s),new gr(s).first(r)}when(t,r,s){return this._whens.get(t,()=>new Pe).add(r,s),this}constructor(){this._whens=new Pe}},yr=class e{static synthetic(t){let r=D.synthetic(t);return new e({loc:r,chars:t})}static load(t,r){return new e({loc:D.load(t,r[1]),chars:r[0]})}constructor(t){this.loc=t.loc,this.chars=t.chars}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}},D=class e{static get NON_EXISTENT(){return new et("NonExistent",dr).wrap()}static load(t,r){return typeof r=="number"?e.forCharPositions(t,r,r):typeof r=="string"?e.synthetic(r):Array.isArray(r)?e.forCharPositions(t,r[0],r[1]):r==="NonExistent"?e.NON_EXISTENT:r==="Broken"?e.broken(ht):void ms(r)}static forHbsLoc(t,r){let s=new mt(t,r.start),n=new mt(t,r.end);return new oe(t,{start:s,end:n},r).wrap()}static forCharPositions(t,r,s){let n=new Tt(t,r),i=new Tt(t,s);return new ae(t,{start:n,end:i}).wrap()}static synthetic(t){return new et("InternalsSynthetic",dr,t).wrap()}static broken(t=ht){return new et("Broken",t).wrap()}constructor(t){var r;this.data=t,this.isInvisible=(r=t.kind)!=="CharPosition"&&r!=="HbsPosition"}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let t=this.data.toHbsSpan();return t===null?ht:t.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(t){return J(t.data,this.data.getEnd())}withEnd(t){return J(this.data.getStart(),t.data)}asString(){return this.data.asString()}toSlice(t){let r=this.data.asString();return JSON.stringify(r),JSON.stringify(t),new yr({loc:this,chars:t||r})}get start(){return this.loc.start}set start(t){this.data.locDidUpdate({start:t})}get end(){return this.loc.end}set end(t){this.data.locDidUpdate({end:t})}get source(){return this.module}collapse(t){switch(t){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(t){return J(this.data.getStart(),t.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:t=0,skipEnd:r=0}){return J(this.getStart().move(t).data,this.getEnd().move(-r).data)}sliceStartChars({skipStart:t=0,chars:r}){return J(this.getStart().move(t).data,this.getStart().move(t+r).data)}sliceEndChars({skipEnd:t=0,chars:r}){return J(this.getEnd().move(t-r).data,this.getStart().move(-t).data)}},Ut,ae=class{constructor(t,r){Lt(this,Ut);this.source=t,this.charPositions=r,this.kind="CharPosition",Y(this,Ut,null)}wrap(){return new D(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let t=I(this,Ut);if(t===null){let r=this.charPositions.start.toHbsPos(),s=this.charPositions.end.toHbsPos();t=Y(this,Ut,r===null||s===null?ft:new oe(this.source,{start:r,end:s}))}return t===ft?null:t}serialize(){let{start:{charPos:t},end:{charPos:r}}=this.charPositions;return t===r?t:[t,r]}toCharPosSpan(){return this}};Ut=new WeakMap;var ut,vt,oe=class{constructor(t,r,s=null){Lt(this,ut);Lt(this,vt);this.source=t,this.hbsPositions=r,this.kind="HbsPosition",Y(this,ut,null),Y(this,vt,s)}serialize(){let t=this.toCharPosSpan();return t===null?"Broken":t.wrap().serialize()}wrap(){return new D(this)}updateProvided(t,r){I(this,vt)&&(I(this,vt)[r]=t),Y(this,ut,null),Y(this,vt,{start:t,end:t})}locDidUpdate({start:t,end:r}){t!==void 0&&(this.updateProvided(t,"start"),this.hbsPositions.start=new mt(this.source,t,null)),r!==void 0&&(this.updateProvided(r,"end"),this.hbsPositions.end=new mt(this.source,r,null))}asString(){let t=this.toCharPosSpan();return t===null?"":t.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let t=I(this,ut);if(t===null){let r=this.hbsPositions.start.toCharPos(),s=this.hbsPositions.end.toCharPos();if(!r||!s)return t=Y(this,ut,ft),null;t=Y(this,ut,new ae(this.source,{start:r,end:s}))}return t===ft?null:t}};ut=new WeakMap,vt=new WeakMap;var et=class{constructor(t,r,s=null){this.kind=t,this.loc=r,this.string=s}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new D(this)}asString(){return this.string||""}locDidUpdate({start:t,end:r}){t!==void 0&&(this.loc.start=t),r!==void 0&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new le(this.kind,this.loc.start)}getEnd(){return new le(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return ht}},J=Ls(e=>e.when("HbsPosition","HbsPosition",(t,r)=>new oe(t.source,{start:t,end:r}).wrap()).when("CharPosition","CharPosition",(t,r)=>new ae(t.source,{start:t,end:r}).wrap()).when("CharPosition","HbsPosition",(t,r)=>{let s=r.toCharPos();return s===null?new et("Broken",ht).wrap():J(t,s)}).when("HbsPosition","CharPosition",(t,r)=>{let s=t.toCharPos();return s===null?new et("Broken",ht).wrap():J(s,r)}).when("IS_INVISIBLE","MATCH_ANY",t=>new et(t.kind,ht).wrap()).when("MATCH_ANY","IS_INVISIBLE",(t,r)=>new et(r.kind,ht).wrap())),ft="BROKEN",Mt=class e{static forHbsPos(t,r){return new mt(t,r,null).wrap()}static broken(t=pt){return new le("Broken",t).wrap()}constructor(t){this.data=t}get offset(){let t=this.data.toCharPos();return t===null?null:t.offset}eql(t){return ni(this.data,t.data)}until(t){return J(this.data,t.data)}move(t){let r=this.data.toCharPos();if(r===null)return e.broken();{let s=r.offset+t;return r.source.validate(s)?new Tt(r.source,s).wrap():e.broken()}}collapsed(){return J(this.data,this.data)}toJSON(){return this.data.toJSON()}},Tt=class{constructor(t,r){this.source=t,this.charPos=r,this.kind="CharPosition",this._locPos=null}toCharPos(){return this}toJSON(){let t=this.toHbsPos();return t===null?pt:t.toJSON()}wrap(){return new Mt(this)}get offset(){return this.charPos}toHbsPos(){let t=this._locPos;if(t===null){let r=this.source.hbsPosFor(this.charPos);this._locPos=t=r===null?ft:new mt(this.source,r,this.charPos)}return t===ft?null:t}},mt=class{constructor(t,r,s=null){this.source=t,this.hbsPos=r,this.kind="HbsPosition",this._charPos=s===null?null:new Tt(t,s)}toCharPos(){let t=this._charPos;if(t===null){let r=this.source.charPosFor(this.hbsPos);this._charPos=t=r===null?ft:new Tt(this.source,r)}return t===ft?null:t}toJSON(){return this.hbsPos}wrap(){return new Mt(this)}toHbsPos(){return this}},le=class{constructor(t,r){this.kind=t,this.pos=r}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new Mt(this)}get offset(){return null}},ni=Ls(e=>e.when("HbsPosition","HbsPosition",({hbsPos:t},{hbsPos:r})=>t.column===r.column&&t.line===r.line).when("CharPosition","CharPosition",({charPos:t},{charPos:r})=>t===r).when("CharPosition","HbsPosition",({offset:t},r)=>{var s;return t===((s=r.toCharPos())==null?void 0:s.offset)}).when("HbsPosition","CharPosition",(t,{offset:r})=>{var s;return((s=t.toCharPos())==null?void 0:s.offset)===r}).when("MATCH_ANY","MATCH_ANY",()=>!1)),wt=class e{static from(t,r={}){var s;return new e(t,(s=r.meta)==null?void 0:s.moduleName)}constructor(t,r="an unknown module"){this.source=t,this.module=r}validate(t){return t>=0&&t<=this.source.length}slice(t,r){return this.source.slice(t,r)}offsetFor(t,r){return Mt.forHbsPos(this,{line:t,column:r})}spanFor({start:t,end:r}){return D.forHbsLoc(this,{start:{line:t.line,column:t.column},end:{line:r.line,column:r.column}})}hbsPosFor(t){let r=0,s=0;if(t>this.source.length)return null;for(;;){let n=this.source.indexOf(` -`,s);if(t<=n||n===-1)return{line:r+1,column:t-s};r+=1,s=n+1}}charPosFor(t){let{line:r,column:s}=t,n=this.source.length,i=0,a=0;for(;ao)return o;if(Xn){let c=this.hbsPosFor(a+s);c.line,c.column}return a+s}if(o===-1)return 0;i+=1,a=o+1}return n}};function E(e,t){let{module:r,loc:s}=t,{line:n,column:i}=s.start,a=t.asString(),o=a?` - -| -| ${a.split(` -`).join(` -| `)} -| - -`:"",c=new Error(`${e}: ${o}(error occurred in '${r}' @ line ${n} : column ${i})`);return c.name="SyntaxError",c.location=t,c.code=a,c}var ii={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]},Nr=function(){function e(t,r,s,n){let i=Error.call(this,t);this.key=n,this.message=t,this.node=r,this.parent=s,i.stack&&(this.stack=i.stack)}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}();function ws(e,t,r){return new Nr("Cannot remove a node unless it is part of an array",e,t,r)}function ai(e,t,r){return new Nr("Cannot replace a node with multiple nodes unless it is part of an array",e,t,r)}function Ts(e,t){return new Nr("Replacing and removing in key handlers is not yet supported.",e,null,t)}var zt=class{constructor(t,r=null,s=null){this.node=t,this.parent=r,this.parentKey=s}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new kr(this)}}},kr=class{constructor(t){this.path=t}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function Ds(e){return typeof e=="function"?e:e.enter}function _s(e){return typeof e=="function"?void 0:e.exit}function Ae(e,t){let r,s,n,{node:i,parent:a,parentKey:o}=t,c=function(h,p){if(h.Program&&(p==="Template"&&!h.Template||p==="Block"&&!h.Block))return h.Program;let m=h[p];return m!==void 0?m:h.All}(e,i.type);if(c!==void 0&&(r=Ds(c),s=_s(c)),r!==void 0&&(n=r(i,t)),n!=null){if(JSON.stringify(i)!==JSON.stringify(n))return Array.isArray(n)?(Os(e,n,a,o),n):Ae(e,new zt(n,a,o))||n;n=void 0}if(n===void 0){let h=ii[i.type];for(let p=0;ptypeof t=="string"?f.var({name:t,loc:D.synthetic(t)}):t)}function xs(e=[],t=[],r=!1,s){return f.blockItself({body:e,params:Is(t),chained:r,loc:T(s||null)})}function Ps(e=[],t=[],r){return f.template({body:e,blockParams:t,loc:T(r||null)})}function T(...e){if(e.length===1){let t=e[0];return t&&typeof t=="object"?D.forHbsLoc(ur(),t):D.forHbsLoc(ur(),si)}{let[t,r,s,n,i]=e,a=i?new wt("",i):ur();return D.forHbsLoc(a,{start:{line:t,column:r},end:{line:s||t,column:n||r}})}}var ui={mustache:function(e,t=[],r=ie([]),s=!1,n,i){return f.mustache({path:ct(e),params:t,hash:r,trusting:s,strip:i,loc:T(n||null)})},block:function(e,t,r,s,n=null,i,a,o,c){let h,p=null;return h=s.type==="Template"?f.blockItself({params:Is(s.blockParams),body:s.body,loc:s.loc}):s,(n==null?void 0:n.type)==="Template"?(n.blockParams.length,p=f.blockItself({params:[],body:n.body,loc:n.loc})):p=n,f.block({path:ct(e),params:t||[],hash:r||ie([]),defaultBlock:h,elseBlock:p,loc:T(i||null),openStrip:a,inverseStrip:o,closeStrip:c})},comment:function(e,t){return f.comment({value:e,loc:T(t||null)})},mustacheComment:function(e,t){return f.mustacheComment({value:e,loc:T(t||null)})},element:function(e,t={}){let r,s,{attrs:n,blockParams:i,modifiers:a,comments:o,children:c,openTag:h,closeTag:p,loc:m}=t;typeof e=="string"?e.endsWith("/")?(r=ct(e.slice(0,-1)),s=!0):r=ct(e):"type"in e?(e.type,e.type,r=e):"path"in e?(e.path.type,e.path.type,r=e.path,s=e.selfClosing):(r=ct(e.name),s=e.selfClosing);let S=i==null?void 0:i.map(v=>typeof v=="string"?Cs(v):v),y=null;return p?y=T(p):p===void 0&&(y=s||ei(r.original)?null:T(null)),f.element({path:r,selfClosing:s||!1,attributes:n||[],params:S||[],modifiers:a||[],comments:o||[],children:c||[],openTag:T(h||null),closeTag:y,loc:T(m||null)})},elementModifier:function(e,t,r,s){return f.elementModifier({path:ct(e),params:t||[],hash:r||ie([]),loc:T(s||null)})},attr:function(e,t,r){return f.attr({name:e,value:t,loc:T(r||null)})},text:function(e="",t){return f.text({chars:e,loc:T(t||null)})},sexpr:function(e,t=[],r=ie([]),s){return f.sexpr({path:ct(e),params:t,hash:r,loc:T(s||null)})},concat:function(e,t){if(!ce(e))throw new Error("b.concat requires at least one part");return f.concat({parts:e,loc:T(t||null)})},hash:ie,pair:function(e,t,r){return f.pair({key:e,value:t,loc:T(r||null)})},literal:xe,program:function(e,t,r){return t&&t.length?xs(e,t,!1,r):Ps(e,[],r)},blockItself:xs,template:Ps,loc:T,pos:function(e,t){return f.pos({line:e,column:t})},path:ct,fullPath:function(e,t=[],r){return f.path({head:e,tail:t,loc:T(r||null)})},head:function(e,t){return f.head({original:e,loc:T(t||null)})},at:function(e,t){return f.atName({name:e,loc:T(t||null)})},var:Cs,this:function(e){return f.this({loc:T(e||null)})},string:hr("StringLiteral"),boolean:hr("BooleanLiteral"),number:hr("NumberLiteral"),undefined:()=>xe("UndefinedLiteral",void 0),null:()=>xe("NullLiteral",null)};function hr(e){return function(t,r){return xe(e,t,r)}}var Ce={close:!1,open:!1},f=new class{pos({line:e,column:t}){return{line:e,column:t}}blockItself({body:e,params:t,chained:r=!1,loc:s}){return{type:"Block",body:e,params:t,get blockParams(){return this.params.map(n=>n.name)},set blockParams(n){this.params=n.map(i=>f.var({name:i,loc:D.synthetic(i)}))},chained:r,loc:s}}template({body:e,blockParams:t,loc:r}){return{type:"Template",body:e,blockParams:t,loc:r}}mustache({path:e,params:t,hash:r,trusting:s,loc:n,strip:i=Ce}){return function({path:a,params:o,hash:c,trusting:h,strip:p,loc:m}){let S={type:"MustacheStatement",path:a,params:o,hash:c,trusting:h,strip:p,loc:m};return Object.defineProperty(S,"escaped",{enumerable:!1,get(){return!this.trusting},set(y){this.trusting=!y}}),S}({path:e,params:t,hash:r,trusting:s,strip:i,loc:n})}block({path:e,params:t,hash:r,defaultBlock:s,elseBlock:n=null,loc:i,openStrip:a=Ce,inverseStrip:o=Ce,closeStrip:c=Ce}){return{type:"BlockStatement",path:e,params:t,hash:r,program:s,inverse:n,loc:i,openStrip:a,inverseStrip:o,closeStrip:c}}comment({value:e,loc:t}){return{type:"CommentStatement",value:e,loc:t}}mustacheComment({value:e,loc:t}){return{type:"MustacheCommentStatement",value:e,loc:t}}concat({parts:e,loc:t}){return{type:"ConcatStatement",parts:e,loc:t}}element({path:e,selfClosing:t,attributes:r,modifiers:s,params:n,comments:i,children:a,openTag:o,closeTag:c,loc:h}){let p=t;return{type:"ElementNode",path:e,attributes:r,modifiers:s,params:n,comments:i,children:a,openTag:o,closeTag:c,loc:h,get tag(){return this.path.original},set tag(m){this.path.original=m},get blockParams(){return this.params.map(m=>m.name)},set blockParams(m){this.params=m.map(S=>f.var({name:S,loc:D.synthetic(S)}))},get selfClosing(){return p},set selfClosing(m){p=m,this.closeTag=m?null:D.synthetic(``)}}}elementModifier({path:e,params:t,hash:r,loc:s}){return{type:"ElementModifierStatement",path:e,params:t,hash:r,loc:s}}attr({name:e,value:t,loc:r}){return{type:"AttrNode",name:e,value:t,loc:r}}text({chars:e,loc:t}){return{type:"TextNode",chars:e,loc:t}}sexpr({path:e,params:t,hash:r,loc:s}){return{type:"SubExpression",path:e,params:t,hash:r,loc:s}}path({head:e,tail:t,loc:r}){return function({head:s,tail:n,loc:i}){let a={type:"PathExpression",head:s,tail:n,get original(){return[this.head.original,...this.tail].join(".")},set original(o){let[c,...h]=o.split(".");this.head=ui.head(c,this.head.loc),this.tail=h},loc:i};return Object.defineProperty(a,"parts",{enumerable:!1,get(){let o=this.original.split(".");return o[0]==="this"?o.shift():o[0].startsWith("@")&&(o[0]=o[0].slice(1)),Object.freeze(o)},set(o){var h;let c=[...o];c[0]==="this"||(h=c[0])!=null&&h.startsWith("@")||(this.head.type==="ThisHead"?c.unshift("this"):this.head.type==="AtHead"&&(c[0]=`@${c[0]}`)),this.original=c.join(".")}}),Object.defineProperty(a,"this",{enumerable:!1,get(){return this.head.type==="ThisHead"}}),Object.defineProperty(a,"data",{enumerable:!1,get(){return this.head.type==="AtHead"}}),a}({head:e,tail:t,loc:r})}head({original:e,loc:t}){return e==="this"?this.this({loc:t}):e[0]==="@"?this.atName({name:e,loc:t}):this.var({name:e,loc:t})}this({loc:e}){return{type:"ThisHead",get original(){return"this"},loc:e}}atName({name:e,loc:t}){let r="",s={type:"AtHead",get name(){return r},set name(n){n[0],n.indexOf("."),r=n},get original(){return this.name},set original(n){this.name=n},loc:t};return s.name=e,s}var({name:e,loc:t}){let r="",s={type:"VarHead",get name(){return r},set name(n){n[0],n.indexOf("."),r=n},get original(){return this.name},set original(n){this.name=n},loc:t};return s.name=e,s}hash({pairs:e,loc:t}){return{type:"Hash",pairs:e,loc:t}}pair({key:e,value:t,loc:r}){return{type:"HashPair",key:e,value:t,loc:r}}literal({type:e,value:t,loc:r}){return function({type:s,value:n,loc:i}){let a={type:s,value:n,loc:i};return Object.defineProperty(a,"original",{enumerable:!1,get(){return this.value},set(o){this.value=o}}),a}({type:e,value:t,loc:r})}},Sr=class{constructor(t,r=new or(Es),s="precompile"){this.elementStack=[],this.currentAttribute=null,this.currentNode=null,this.source=t,this.lines=t.source.split(/\r\n?|\n/u),this.tokenizer=new lr(this,r,s)}offset(){let{line:t,column:r}=this.tokenizer;return this.source.offsetFor(t,r)}pos({line:t,column:r}){return this.source.offsetFor(t,r)}finish(t){return Ze({},t,{loc:t.start.until(this.offset())})}get currentAttr(){return this.currentAttribute}get currentTag(){let t=this.currentNode;return t&&(t.type==="StartTag"||t.type),t}get currentStartTag(){let t=this.currentNode;return t&&t.type,t}get currentEndTag(){let t=this.currentNode;return t&&t.type,t}get currentComment(){let t=this.currentNode;return t&&t.type,t}get currentData(){let t=this.currentNode;return t&&t.type,t}acceptNode(t){return this[t.type](t)}currentElement(){return Tr(this.elementStack)}sourceForNode(t,r){let s,n,i,a=t.loc.start.line-1,o=a-1,c=t.loc.start.column,h=[];for(r?(n=r.loc.end.line-1,i=r.loc.end.column):(n=t.loc.end.line-1,i=t.loc.end.column);o=C?-1:y.indexOf(x,v),w===-1||w+x.length>C?(v=C,U=this.source.spanFor(dr)):(v=w,U=S.sliceStartChars({skipStart:v,chars:x.length}),v+=x.length),o.push(f.var({name:x,loc:U}))}}else a=As(this.source,t,i);let c=this.Program(a.program,o),h=a.inverse?this.Program(a.inverse,[]):null,p=f.block({path:r,params:s,hash:n,defaultBlock:c,elseBlock:h,loc:this.source.spanFor(t.loc),openStrip:t.openStrip,inverseStrip:t.inverseStrip,closeStrip:t.closeStrip});Ft(this.currentElement(),p)}MustacheStatement(t){var o;(o=this.pendingError)==null||o.mustache(this.source.spanFor(t.loc));let{tokenizer:r}=this;if(r.state==="comment")return void this.appendToCommentData(this.sourceForNode(t));let s,{escaped:n,loc:i,strip:a}=t;if("original"in t.path&&t.path.original==="...attributes")throw E("Illegal use of ...attributes",this.source.spanFor(t.loc));if(Bs(t.path))s=f.mustache({path:this.acceptNode(t.path),params:[],hash:f.hash({pairs:[],loc:this.source.spanFor(t.path.loc).collapse("end")}),trusting:!n,loc:this.source.spanFor(i),strip:a});else{let{path:c,params:h,hash:p}=pr(this,t);s=f.mustache({path:c,params:h,hash:p,trusting:!n,loc:this.source.spanFor(i),strip:a})}switch(r.state){case"tagOpen":case"tagName":throw E("Cannot use mustaches in an elements tagname",s.loc);case"beforeAttributeName":fr(this.currentStartTag,s);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),fr(this.currentStartTag,s),r.transitionTo("beforeAttributeName");break;case"afterAttributeValueQuoted":fr(this.currentStartTag,s),r.transitionTo("beforeAttributeName");break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(s),r.transitionTo("attributeValueUnquoted");break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(s);break;default:Ft(this.currentElement(),s)}return s}appendDynamicAttributeValuePart(t){this.finalizeTextPart();let r=this.currentAttr;r.isDynamic=!0,r.parts.push(t)}finalizeTextPart(){let t=this.currentAttr.currentPart;t!==null&&(this.currentAttr.parts.push(t),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(t){(function(r,s){let n=s.loc.start.line,i=s.loc.start.column,a=function(o,c){if(c==="")return{lines:o.split(` -`).length-1,columns:0};let[h]=o.split(c),p=h.split(/\n/u),m=p.length-1;return{lines:m,columns:p[m].length}}(s.original,s.value);n+=a.lines,a.lines?i=a.columns:i+=a.columns,r.line=n,r.column=i})(this.tokenizer,t),this.tokenizer.tokenizePart(t.value),this.tokenizer.flushData()}CommentStatement(t){let{tokenizer:r}=this;if(r.state==="comment")return this.appendToCommentData(this.sourceForNode(t)),null;let{value:s,loc:n}=t,i=f.mustacheComment({value:s,loc:this.source.spanFor(n)});switch(r.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(i);break;case"beforeData":case"data":Ft(this.currentElement(),i);break;default:throw E(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`,this.source.spanFor(t.loc))}return i}PartialStatement(t){throw E("Handlebars partials are not supported",this.source.spanFor(t.loc))}PartialBlockStatement(t){throw E("Handlebars partial blocks are not supported",this.source.spanFor(t.loc))}Decorator(t){throw E("Handlebars decorators are not supported",this.source.spanFor(t.loc))}DecoratorBlock(t){throw E("Handlebars decorator blocks are not supported",this.source.spanFor(t.loc))}SubExpression(t){let{path:r,params:s,hash:n}=pr(this,t);return f.sexpr({path:r,params:s,hash:n,loc:this.source.spanFor(t.loc)})}PathExpression(t){let{original:r}=t,s;if(r.indexOf("/")!==-1){if(r.slice(0,2)==="./")throw E('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(t.loc));if(r.slice(0,3)==="../")throw E('Changing context using "../" is not supported in Glimmer',this.source.spanFor(t.loc));if(r.indexOf(".")!==-1)throw E("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(t.loc));s=[t.parts.join("/")]}else{if(r===".")throw E("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(t.loc));s=t.parts}let n,i=!1;if(/^this(?:\..+)?$/u.test(r)&&(i=!0),i)n=f.this({loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+4}})});else if(t.data){let a=s.shift();if(a===void 0)throw E("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(t.loc));n=f.atName({name:`@${a}`,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length+1}})})}else{let a=s.shift();if(a===void 0)throw E("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(t.loc));n=f.var({name:a,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length}})})}return f.path({head:n,tail:s,loc:this.source.spanFor(t.loc)})}Hash(t){let r=t.pairs.map(s=>f.pair({key:s.key,value:this.acceptNode(s.value),loc:this.source.spanFor(s.loc)}));return f.hash({pairs:r,loc:this.source.spanFor(t.loc)})}StringLiteral(t){return f.literal({type:"StringLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}BooleanLiteral(t){return f.literal({type:"BooleanLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}NumberLiteral(t){return f.literal({type:"NumberLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}UndefinedLiteral(t){return f.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(t.loc)})}NullLiteral(t){return f.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(t.loc)})}constructor(...t){super(...t),this.pendingError=null}};function pr(e,t){let r;switch(t.path.type){case"PathExpression":r=e.PathExpression(t.path);break;case"SubExpression":r=e.SubExpression(t.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let i;throw i=t.path.type==="BooleanLiteral"?t.path.original.toString():t.path.type==="StringLiteral"?`"${t.path.original}"`:t.path.type==="NullLiteral"?"null":t.path.type==="NumberLiteral"?t.path.value.toString():"undefined",E(`${t.path.type} "${t.path.type==="StringLiteral"?t.path.original:i}" cannot be called as a sub-expression, replace (${i}) with ${i}`,e.source.spanFor(t.path.loc))}}let s=t.params.map(i=>e.acceptNode(i)),n=ce(s)?Tr(s).loc:r.loc;return{path:r,params:s,hash:t.hash?e.Hash(t.hash):f.hash({pairs:[],loc:e.source.spanFor(n).collapse("end")})}}function fr(e,t){let{path:r,params:s,hash:n,loc:i}=t;if(Bs(r)){let o=`{{${function(c){return c.type==="UndefinedLiteral"?"undefined":JSON.stringify(c.value)}(r)}}}`;throw E(`In <${e.name} ... ${o} ..., ${o} is not a valid modifier`,t.loc)}let a=f.elementModifier({path:r,params:s,hash:n,loc:i});e.modifiers.push(a)}function As(e,t,r){if(!t.program.loc){let n=G(!1,t.program.body,0),i=G(!1,t.program.body,-1);if(n&&i)t.program.loc={...n.loc,end:i.loc.end};else{let a=e.spanFor(t.loc);t.program.loc=r.withEnd(a.getEnd())}}let s=e.spanFor(t.program.loc).getEnd();return t.inverse&&!t.inverse.loc&&(t.inverse.loc=s.collapsed()),t}function Ht(e){return/[\t\n\f ]/u.test(e)}var vr=class extends Er{reset(){this.currentNode=null}beginComment(){this.currentNode={type:"CommentStatement",value:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}appendToCommentData(t){this.currentComment.value+=t}finishComment(){Ft(this.currentElement(),f.comment(this.finish(this.currentComment)))}beginData(){this.currentNode={type:"TextNode",chars:"",start:this.offset()}}appendToData(t){this.currentData.chars+=t}finishData(){Ft(this.currentElement(),f.text(this.finish(this.currentData)))}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",nameStart:null,nameEnd:null,attributes:[],modifiers:[],comments:[],params:[],selfClosing:!1,start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let t=this.finish(this.currentTag);if(t.type==="StartTag"){if(this.finishStartTag(),t.name===":")throw E("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.start.toJSON(),end:this.offset().toJSON()}));(mr.has(t.name)||t.selfClosing)&&this.finishEndTag(!0)}else t.type,t.type,this.finishEndTag(!1)}finishStartTag(){let{name:t,nameStart:r,nameEnd:s}=this.currentStartTag,n=r.until(s),[i,...a]=t.split("."),o=f.path({head:f.head({original:i,loc:n.sliceStartChars({chars:i.length})}),tail:a,loc:n}),{attributes:c,modifiers:h,comments:p,params:m,selfClosing:S,loc:y}=this.finish(this.currentStartTag),v=f.element({path:o,selfClosing:S,attributes:c,modifiers:h,comments:p,params:m,children:[],openTag:y,closeTag:S?null:D.broken(),loc:y});this.elementStack.push(v)}finishEndTag(t){let{start:r}=this.currentTag,s=this.finish(this.currentTag),n=this.elementStack.pop();this.validateEndTag(s,n,t);let i=this.currentElement();t?n.closeTag=null:n.selfClosing?n.closeTag:n.closeTag=r.until(this.offset()),n.loc=n.loc.withEnd(this.offset()),Ft(i,f.element(n))}markTagAsSelfClosing(){let t=this.currentTag;if(t.type!=="StartTag")throw E("Invalid end tag: closing tag must not be self-closing",this.source.spanFor({start:t.start.toJSON(),end:this.offset().toJSON()}));t.selfClosing=!0}appendToTagName(t){let r=this.currentTag;if(r.name+=t,r.type==="StartTag"){let s=this.offset();r.nameStart===null&&(r.nameEnd,r.nameStart=s.move(-1)),r.nameEnd=s}}beginAttribute(){let t=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:t,valueSpan:t.collapsed()}}appendToAttributeName(t){this.currentAttr.name+=t,this.currentAttr.name==="as"&&this.parsePossibleBlockParams()}beginAttributeValue(t){this.currentAttr.isQuoted=t,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(t){let r=this.currentAttr.parts,s=r[r.length-1],n=this.currentAttr.currentPart;if(n)n.chars+=t,n.loc=n.loc.withEnd(this.offset());else{let i=this.offset();i=t===` -`?s?s.loc.getEnd():this.currentAttr.valueSpan.getStart():i.move(-1),this.currentAttr.currentPart=f.text({chars:t,loc:i.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let t=this.currentTag,r=this.offset();if(t.type==="EndTag")throw E("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:t.start.toJSON(),end:r.toJSON()}));let{name:s,parts:n,start:i,isQuoted:a,isDynamic:o,valueSpan:c}=this.currentAttr;if(s.startsWith("|")&&n.length===0&&!a&&!o)throw E("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",i.until(i.move(s.length)));let h=this.assembleAttributeValue(n,a,o,i.until(r));h.loc=c.withEnd(r);let p=f.attr({name:s,value:h,loc:i.until(r)});this.currentStartTag.attributes.push(p)}parsePossibleBlockParams(){let t=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;this.tokenizer.state;let r=this.currentStartTag,s=this.currentAttr,n={state:"PossibleAs"},i={PossibleAs:o=>{if(n.state,Ht(o))n={state:"BeforeStartPipe"},this.tokenizer.transitionTo("afterAttributeName"),this.tokenizer.consume();else{if(o==="|")throw E('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',s.start.until(this.offset().move(1)));n={state:"Done"}}},BeforeStartPipe:o=>{n.state,Ht(o)?this.tokenizer.consume():o==="|"?(n={state:"BeforeBlockParamName"},this.tokenizer.transitionTo("beforeAttributeName"),this.tokenizer.consume()):n={state:"Done"}},BeforeBlockParamName:o=>{if(n.state,Ht(o))this.tokenizer.consume();else if(o==="")n={state:"Done"},this.pendingError={mustache(c){throw E("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw E('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}};else if(o==="|"){if(r.params.length===0)throw E("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",s.start.until(this.offset().move(1)));n={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw E('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',s.start.until(this.offset().move(1)));n={state:"BlockParamName",name:o,start:this.offset()},this.tokenizer.consume()}},BlockParamName:o=>{if(n.state,o==="")n={state:"Done"},this.pendingError={mustache(c){throw E("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw E('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}};else if(o==="|"||Ht(o)){let c=n.start.until(this.offset());if(n.name==="this"||t.test(n.name))throw E(`Invalid block parameters syntax: invalid identifier name \`${n.name}\``,c);r.params.push(f.var({name:n.name,loc:c})),n=o==="|"?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw E('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',s.start.until(this.offset().move(1)));n.name+=o,this.tokenizer.consume()}},AfterEndPipe:o=>{n.state,Ht(o)?this.tokenizer.consume():o===""?(n={state:"Done"},this.pendingError={mustache(c){throw E("Invalid block parameters syntax: modifiers cannot follow parameters list",c)},eof(c){throw E('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}}):o===">"||o==="/"?n={state:"Done"}:(n={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:o=>{if(n.state,o===""||o==="/"||o===">"||Ht(o))throw E(n.message,n.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{}},a;do a=this.tokenizer.peek(),i[n.state](a);while(n.state!=="Done"&&a!=="");n.state}reportSyntaxError(t){throw E(t,this.offset().collapsed())}assembleConcatenatedValue(t){let r=ri(t),s=Tr(t);return f.concat({parts:t,loc:this.source.spanFor(r.loc).extend(this.source.spanFor(s.loc))})}validateEndTag(t,r,s){if(mr.has(t.name)&&!s)throw E(`<${t.name}> elements do not need end tags. You should remove it`,t.loc);if(r.type!=="ElementNode")throw E(`Closing tag without an open tag`,t.loc);if(r.tag!==t.name)throw E(`Closing tag did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`,t.loc)}assembleAttributeValue(t,r,s,n){if(s){if(r)return this.assembleConcatenatedValue(t);{let[i,a]=t;if(a===void 0||a.type==="TextNode"&&a.chars==="/")return i;throw E("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",n)}}return ce(t)?t[0]:f.text({chars:"",loc:n})}constructor(...t){super(...t),this.tagOpenLine=0,this.tagOpenColumn=0}},hi={},wr=class extends or{constructor(){super({})}parse(){}};function Rs(e,t={}){var c,h,p;let r,s,n,i=t.mode||"precompile";typeof e=="string"?(r=new wt(e,(c=t.meta)==null?void 0:c.moduleName),s=i==="codemod"?Te(e,t.parseOptions):ar(e,t.parseOptions)):e instanceof wt?(r=e,s=i==="codemod"?Te(e.source,t.parseOptions):ar(e.source,t.parseOptions)):(r=new wt("",(h=t.meta)==null?void 0:h.moduleName),s=e),i==="codemod"&&(n=new wr);let a=D.forCharPositions(r,0,r.source.length);s.loc={source:"(program)",start:a.startPosition,end:a.endPosition};let o=new vr(r,n,i).parse(s,t.locals??[]);if((p=t.plugins)!=null&&p.ast)for(let m of t.plugins.ast)ci(o,m(Ze({},t,{syntax:hi},{plugins:void 0})).visitor);return o}var pi={resolution:()=>Ne.GetStrictKeyword,serialize:()=>"Strict",isAngleBracket:!1},yo={...pi,isAngleBracket:!0};function fi(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var qs=fi;function mi(e){let t=e.children??e.body;if(t)for(let r=0;r{let{start:t,end:r}=e.loc;t.offset=e.loc.getStart().offset,r.offset=e.loc.getEnd().offset},gi=()=>({name:"glimmerPrettierParsePlugin",visitor:{All(e){di(e),mi(e)}}}),bi={mode:"codemod",plugins:{ast:[gi]}};function yi(e){let t;try{t=Rs(e,bi)}catch(r){let s=Si(r);if(s){let n=ki(r);throw qs(n,{loc:s,cause:r})}throw r}return t}function ki(e){let{message:t}=e,r=t.split(` -`);return r.length>=4&&/^Parse error on line \d+:$/u.test(r[0])&&/^-*\^$/u.test(G(!1,r,-2))?G(!1,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(G(!1,r,-1))&&r[1]===""&&G(!1,r,-2)===""&&r.slice(2,-2).every(s=>s.startsWith("|"))?r[0].trim().slice(0,-1):t}function Si(e){let{location:t,hash:r}=e;if(t){let{start:s,end:n}=t;return typeof n.line!="number"?{start:s}:t}if(r){let{loc:{last_line:s,last_column:n}}=r;return{start:{line:s,column:n+1}}}}var Ei={parse:yi,astFormat:"glimmer",locStart:St,locEnd:re};var vi={glimmer:us};var Do=xr;export{Do as default,hs as languages,Cr as parsers,vi as printers}; diff --git a/node_modules/prettier/plugins/graphql.d.ts b/node_modules/prettier/plugins/graphql.d.ts deleted file mode 100644 index c4e28b1..0000000 --- a/node_modules/prettier/plugins/graphql.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Parser } from "../index.js"; - -export declare const parsers: { - graphql: Parser; -}; diff --git a/node_modules/prettier/plugins/graphql.js b/node_modules/prettier/plugins/graphql.js deleted file mode 100644 index a90243e..0000000 --- a/node_modules/prettier/plugins/graphql.js +++ /dev/null @@ -1,29 +0,0 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.graphql=e()}})(function(){"use strict";var ce=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var Tt=Object.getOwnPropertyNames;var _t=Object.prototype.hasOwnProperty;var xe=(e,t)=>{for(var n in t)ce(e,n,{get:t[n],enumerable:!0})},Nt=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Tt(t))!_t.call(e,r)&&r!==n&&ce(e,r,{get:()=>t[r],enumerable:!(i=Et(t,r))||i.enumerable});return e};var xt=e=>Nt(ce({},"__esModule",{value:!0}),e);var En={};xe(En,{languages:()=>Qe,options:()=>Ke,parsers:()=>Ne,printers:()=>mn});var yt=(e,t,n,i)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,i):n.global?t.replace(n,i):t.split(n).join(i)},G=yt;var j="indent";var $="group";var w="if-break";var S="line";var X="break-parent";var Re=()=>{},L=Re,pe=Re;function N(e){return L(e),{type:j,contents:e}}function y(e,t={}){return L(e),pe(t.expandedStates,!0),{type:$,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function I(e,t="",n={}){return L(e),t!==""&&L(t),{type:w,breakContents:e,flatContents:t,groupId:n.groupId}}var Dt={type:X};var gt={type:S,hard:!0};var k={type:S},p={type:S,soft:!0},f=[gt,Dt];function E(e,t){L(e),pe(t);let n=[];for(let i=0;i{let r=!!(i!=null&&i.backwards);if(n===!1)return!1;let{length:s}=t,a=n;for(;a>=0&&a0}var fe=Lt;var he=class extends Error{name="UnexpectedNodeError";constructor(t,n,i="type"){super(`Unexpected ${n} node ${i}: ${JSON.stringify(t[i])}.`),this.node=t}},Be=he;var F=null;function B(e){if(F!==null&&typeof F.property){let t=F;return F=B.prototype=null,t}return F=B.prototype=e??Object.create(null),new B}var bt=10;for(let e=0;e<=bt;e++)B();function de(e){return B(e)}function Pt(e,t="type"){de(e);function n(i){let r=i[t],s=e[r];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:i});return s}return n}var Ue=Pt;var Q=class{constructor(t,n,i){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},U=class{constructor(t,n,i,r,s,a){this.kind=t,this.start=n,this.end=i,this.line=r,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},W={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},xr=new Set(Object.keys(W));var C;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(C||(C={}));var wt=Ue(W,"kind"),Me=wt;function K(e){return e.loc.start}function z(e){return e.loc.end}var Ve="format",Ye=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*(?:\n|$)/u,Ge=/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u;function je(e){return Ge.test(e)}function $e(e){return Ye.test(e)}function Xe(e){return`# @${Ve} - -${e}`}function Ft(e,t,n){let{node:i}=e;if(!i.description)return"";let r=[n("description")];return i.kind==="InputValueDefinition"&&!i.description.block?r.push(k):r.push(f),r}var D=Ft;function Bt(e,t,n){let{node:i}=e;switch(i.kind){case"Document":return[...E(f,g(e,t,n,"definitions")),f];case"OperationDefinition":{let r=t.originalText[K(i)]!=="{",s=!!i.name;return[r?i.operation:"",r&&s?[" ",n("name")]:"",r&&!s&&fe(i.variableDefinitions)?" ":"",He(e,n),x(e,n,i),!r&&!s?"":" ",n("selectionSet")]}case"FragmentDefinition":return["fragment ",n("name"),He(e,n)," on ",n("typeCondition"),x(e,n,i)," ",n("selectionSet")];case"SelectionSet":return["{",N([f,E(f,g(e,t,n,"selections"))]),f,"}"];case"Field":return y([i.alias?[n("alias"),": "]:"",n("name"),i.arguments.length>0?y(["(",N([p,E([I("",", "),p],g(e,t,n,"arguments"))]),p,")"]):"",x(e,n,i),i.selectionSet?" ":"",n("selectionSet")]);case"Name":return i.value;case"StringValue":if(i.block){let r=G(!1,i.value,'"""',String.raw`\"""`).split(` -`);return r.length===1&&(r[0]=r[0].trim()),r.every(s=>s==="")&&(r.length=0),E(f,['"""',...r,'"""'])}return['"',G(!1,G(!1,i.value,/["\\]/gu,String.raw`\$&`),` -`,String.raw`\n`),'"'];case"IntValue":case"FloatValue":case"EnumValue":return i.value;case"BooleanValue":return i.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return y(["[",N([p,E([I("",", "),p],e.map(n,"values"))]),p,"]"]);case"ObjectValue":{let r=t.bracketSpacing&&i.fields.length>0?" ":"";return y(["{",r,N([p,E([I("",", "),p],e.map(n,"fields"))]),p,I("",r),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),i.arguments.length>0?y(["(",N([p,E([I("",", "),p],g(e,t,n,"arguments"))]),p,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",x(e,n,i)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:r}=i,s=[];return r.endsWith("TypeDefinition")?s.push(D(e,t,n)):s.push("extend "),r.startsWith("ObjectType")?s.push("type"):r.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!r.startsWith("InputObjectType")&&i.interfaces.length>0&&s.push(" implements ",...Vt(e,t,n)),s.push(x(e,n,i)),i.fields.length>0&&s.push([" {",N([f,E(f,g(e,t,n,"fields"))]),f,"}"]),s}case"FieldDefinition":return[D(e,t,n),n("name"),i.arguments.length>0?y(["(",N([p,E([I("",", "),p],g(e,t,n,"arguments"))]),p,")"]):"",": ",n("type"),x(e,n,i)];case"DirectiveDefinition":return[D(e,t,n),"directive ","@",n("name"),i.arguments.length>0?y(["(",N([p,E([I("",", "),p],g(e,t,n,"arguments"))]),p,")"]):"",i.repeatable?" repeatable":""," on ",...E(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[D(e,t,n),i.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),x(e,n,i),i.values.length>0?[" {",N([f,E(f,g(e,t,n,"values"))]),f,"}"]:""];case"EnumValueDefinition":return[D(e,t,n),n("name"),x(e,n,i)];case"InputValueDefinition":return[D(e,t,n),n("name"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",x(e,n,i)];case"SchemaExtension":return["extend schema",x(e,n,i),...i.operationTypes.length>0?[" {",N([f,E(f,g(e,t,n,"operationTypes"))]),f,"}"]:[]];case"SchemaDefinition":return[D(e,t,n),"schema",x(e,n,i)," {",i.operationTypes.length>0?N([f,E(f,g(e,t,n,"operationTypes"))]):"",f,"}"];case"OperationTypeDefinition":return[i.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),x(e,n,i)];case"InlineFragment":return["...",i.typeCondition?[" on ",n("typeCondition")]:"",x(e,n,i)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return y([D(e,t,n),y([i.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),x(e,n,i),i.types.length>0?[" =",I(""," "),N([I([k,"| "]),E([k,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[D(e,t,n),i.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),x(e,n,i)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Be(i,"Graphql","kind")}}function x(e,t,n){if(n.directives.length===0)return"";let i=E(k,e.map(t,"directives"));return n.kind==="FragmentDefinition"||n.kind==="OperationDefinition"?y([k,i]):[" ",y(N([p,i]))]}function g(e,t,n,i){return e.map(({isLast:r,node:s})=>{let a=n();return!r&&Fe(t.originalText,z(s))?[a,f]:a},i)}function Ut(e){return e.kind!=="Comment"}function Mt(e){let t=e.node;if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function Vt(e,t,n){let{node:i}=e,r=[],{interfaces:s}=i,a=e.map(n,"interfaces");for(let u=0;ui.value.trim()==="prettier-ignore")}var Gt={print:Bt,massageAstNode:Je,hasPrettierIgnore:Yt,insertPragma:Xe,printComment:Mt,canAttachComment:Ut,getVisitorKeys:Me},qe=Gt;var Qe=[{name:"GraphQL",type:"data",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}];var We={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var jt={bracketSpacing:We.bracketSpacing},Ke=jt;var Ne={};xe(Ne,{graphql:()=>dn});function ze(e){return typeof e=="object"&&e!==null}function Ze(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var $t=/\r\n|[\n\r]/g;function M(e,t){let n=0,i=1;for(let r of e.body.matchAll($t)){if(typeof r.index=="number"||Ze(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function tt(e){return me(e.source,M(e.source,e.start))}function me(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=t.line===1?n:0,l=t.column+u,T=`${e.name}:${a}:${l} -`,h=i.split(/\r\n|[\n\r]/g),A=h[r];if(A.length>120){let O=Math.floor(l/80),ae=l%80,_=[];for(let v=0;v["|",v]),["|","^".padStart(ae)],["|",_[O+1]]])}return T+et([[`${a-1} |`,h[r-1]],[`${a} |`,A],["|","^".padStart(l)],[`${a+1} |`,h[r+1]]])}function et(e){let t=e.filter(([i,r])=>r!==void 0),n=Math.max(...t.map(([i])=>i.length));return t.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(` -`)}function Xt(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Z=class e extends Error{constructor(t,...n){var i,r,s;let{nodes:a,source:u,positions:l,path:T,originalError:h,extensions:A}=Xt(n);super(t),this.name="GraphQLError",this.path=T??void 0,this.originalError=h??void 0,this.nodes=nt(Array.isArray(a)?a:a?[a]:void 0);let O=nt((i=this.nodes)===null||i===void 0?void 0:i.map(_=>_.loc).filter(_=>_!=null));this.source=u??(O==null||(r=O[0])===null||r===void 0?void 0:r.source),this.positions=l??(O==null?void 0:O.map(_=>_.start)),this.locations=l&&u?l.map(_=>M(u,_)):O==null?void 0:O.map(_=>M(_.source,_.start));let ae=ze(h==null?void 0:h.extensions)?h==null?void 0:h.extensions:void 0;this.extensions=(s=A??ae)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),h!=null&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` - -`+tt(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` - -`+me(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function nt(e){return e===void 0||e.length===0?void 0:e}function d(e,t,n){return new Z(`Syntax Error: ${n}`,{source:e,positions:[t]})}var ee;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(ee||(ee={}));var c;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(c||(c={}));function rt(e){return e===9||e===32}function b(e){return e>=48&&e<=57}function it(e){return e>=97&&e<=122||e>=65&&e<=90}function Ee(e){return it(e)||e===95}function st(e){return it(e)||b(e)||e===95}function ot(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let a=0;au===0?a:a.slice(n)).slice((t=i)!==null&&t!==void 0?t:0,r+1)}function Ht(e){let t=0;for(;t=0&&e<=55295||e>=57344&&e<=1114111}function ne(e,t){return ut(e.charCodeAt(t))&<(e.charCodeAt(t+1))}function ut(e){return e>=55296&&e<=56319}function lt(e){return e>=56320&&e<=57343}function R(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return o.EOF;if(n>=32&&n<=126){let i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,i,r){let s=e.line,a=1+n-e.lineStart;return new U(t,n,i,s,a,r)}function Jt(e,t){let n=e.source.body,i=n.length,r=t;for(;r=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Zt(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` -`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw d(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function en(e,t){let n=e.source.body,i=n.length,r=e.lineStart,s=t+3,a=s,u="",l=[];for(;s2?"["+an(e)+"]":"{ "+n.map(([r,s])=>r+": "+se(s,t)).join(", ")+" }"}function on(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),i=e.length-n,r=[];for(let s=0;s1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function an(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var cn=globalThis.process&&!0,pt=cn?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var i;let r=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(r===s){let a=ie(t);throw new Error(`Cannot use ${r} "${a}" from another module or realm. - -Ensure that there is only one instance of "graphql" in the node_modules -directory. If different versions of "graphql" are the dependencies of other -relied on modules, use "resolutions" to ensure only one version is installed. - -https://yarnpkg.com/en/docs/selective-version-resolutions - -Duplicate "graphql" modules cannot be used at the same time since different -versions may have different capabilities and behavior. The data from one -version used in the function from another could produce confusing and -spurious results.`)}}return!1};var Y=class{constructor(t,n="GraphQL request",i={line:1,column:1}){typeof t=="string"||re(!1,`Body must be a string. Received: ${ie(t)}.`),this.body=t,this.name=n,this.locationOffset=i,this.locationOffset.line>0||re(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||re(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function ft(e){return pt(e,Y)}function ht(e,t){let n=new _e(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}var _e=class{constructor(t,n={}){let i=ft(t)?t:new Y(t);this._lexer=new te(i),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(o.NAME);return this.node(t,{kind:c.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===o.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:C.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),i;return this.peek(o.NAME)&&(i=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(o.NAME);switch(t.value){case"query":return C.QUERY;case"mutation":return C.MUTATION;case"subscription":return C.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(t,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),i,r;return this.expectOptionalToken(o.COLON)?(i=n,r=this.parseName()):r=n,this.node(t,{kind:c.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,n,o.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,i=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(o.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(o.NAME)?this.node(t,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:c.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case o.BRACKET_L:return this.parseList(t);case o.BRACE_L:return this.parseObject(t);case o.INT:return this.advanceLexer(),this.node(n,{kind:c.INT,value:n.value});case o.FLOAT:return this.advanceLexer(),this.node(n,{kind:c.FLOAT,value:n.value});case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:c.BOOLEAN,value:!0});case"false":return this.node(n,{kind:c.BOOLEAN,value:!1});case"null":return this.node(n,{kind:c.NULL});default:return this.node(n,{kind:c.ENUM,value:n.value})}case o.DOLLAR:if(t)if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){let i=this._lexer.token.value;throw d(this._lexer.source,n.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:c.STRING,value:t.value,block:t.kind===o.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:c.LIST,values:this.any(o.BRACKET_L,n,o.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:c.OBJECT,fields:this.any(o.BRACE_L,n,o.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,i=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.OBJECT_FIELD,name:i,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(o.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(o.AT),this.node(n,{kind:c.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(o.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(o.BRACKET_R),n=this.node(t,{kind:c.LIST_TYPE,type:i})}else n=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(t,{kind:c.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:c.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(o.STRING)||this.peek(o.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),r=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(t,{kind:c.SCHEMA_DEFINITION,description:n,directives:i,operationTypes:r})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(o.COLON);let i=this.parseNamedType();return this.node(t,{kind:c.OPERATION_TYPE_DEFINITION,operation:n,type:i})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),r=this.parseConstDirectives();return this.node(t,{kind:c.SCALAR_TYPE_DEFINITION,description:n,name:i,directives:r})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.OBJECT_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(o.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(o.COLON);let s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:c.FIELD_DEFINITION,description:n,name:i,arguments:r,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(o.COLON);let r=this.parseTypeReference(),s;this.expectOptionalToken(o.EQUALS)&&(s=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:c.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.INTERFACE_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),r=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:c.UNION_TYPE_DEFINITION,description:n,name:i,directives:r,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),r=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:c.ENUM_TYPE_DEFINITION,description:n,name:i,directives:r,values:s})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(t,{kind:c.ENUM_VALUE_DEFINITION,description:n,name:i,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw d(this._lexer.source,this._lexer.token.start,`${oe(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),r=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:i,directives:r,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===o.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.SCHEMA_EXTENSION,directives:n,operationTypes:i})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(t,{kind:c.SCALAR_TYPE_EXTENSION,name:n,directives:i})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.OBJECT_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.INTERFACE_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.UNION_TYPE_EXTENSION,name:n,directives:i,types:r})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.ENUM_TYPE_EXTENSION,name:n,directives:i,values:r})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:i,fields:r})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);let i=this.parseName(),r=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:c.DIRECTIVE_DEFINITION,description:n,name:i,arguments:r,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(ee,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Q(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw d(this._lexer.source,n.start,`Expected ${dt(t)}, found ${oe(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===o.NAME&&n.value===t)this.advanceLexer();else throw d(this._lexer.source,n.start,`Expected "${t}", found ${oe(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===o.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return d(this._lexer.source,n.start,`Unexpected ${oe(n)}.`)}any(t,n,i){this.expectToken(t);let r=[];for(;!this.expectOptionalToken(i);)r.push(n.call(this));return r}optionalMany(t,n,i){if(this.expectOptionalToken(t)){let r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}return[]}many(t,n,i){this.expectToken(t);let r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}delimitedMany(t,n){this.expectOptionalToken(t);let i=[];do i.push(n.call(this));while(this.expectOptionalToken(t));return i}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==o.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw d(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function oe(e){let t=e.value;return dt(e.kind)+(t!=null?` "${t}"`:"")}function dt(e){return ct(e)?`"${e}"`:e}function un(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}var mt=un;function ln(e){let t=[],{startToken:n,endToken:i}=e.loc;for(let r=n;r!==i;r=r.next)r.kind==="Comment"&&t.push({...r,loc:{start:r.start,end:r.end}});return t}var pn={allowLegacyFragmentVariables:!0};function fn(e){if((e==null?void 0:e.name)==="GraphQLError"){let{message:t,locations:[n]}=e;return mt(t,{loc:{start:n},cause:e})}return e}function hn(e){let t;try{t=ht(e,pn)}catch(n){throw fn(n)}return t.comments=ln(t),t}var dn={parse:hn,astFormat:"graphql",hasPragma:je,hasIgnorePragma:$e,locStart:K,locEnd:z};var mn={graphql:qe};return xt(En);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/graphql.mjs b/node_modules/prettier/plugins/graphql.mjs deleted file mode 100644 index 7bf0942..0000000 --- a/node_modules/prettier/plugins/graphql.mjs +++ /dev/null @@ -1,29 +0,0 @@ -var Et=Object.defineProperty;var xe=(e,t)=>{for(var n in t)Et(e,n,{get:t[n],enumerable:!0})};var Ne={};xe(Ne,{languages:()=>Qe,options:()=>Ke,parsers:()=>_e,printers:()=>pn});var Tt=(e,t,n,i)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,i):n.global?t.replace(n,i):t.split(n).join(i)},G=Tt;var j="indent";var $="group";var w="if-break";var S="line";var X="break-parent";var Re=()=>{},L=Re,le=Re;function N(e){return L(e),{type:j,contents:e}}function y(e,t={}){return L(e),le(t.expandedStates,!0),{type:$,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function I(e,t="",n={}){return L(e),t!==""&&L(t),{type:w,breakContents:e,flatContents:t,groupId:n.groupId}}var yt={type:X};var Ot={type:S,hard:!0};var k={type:S},p={type:S,soft:!0},f=[Ot,yt];function E(e,t){L(e),le(t);let n=[];for(let i=0;i{let r=!!(i!=null&&i.backwards);if(n===!1)return!1;let{length:s}=t,a=n;for(;a>=0&&a0}var pe=St;var fe=class extends Error{name="UnexpectedNodeError";constructor(t,n,i="type"){super(`Unexpected ${n} node ${i}: ${JSON.stringify(t[i])}.`),this.node=t}},Be=fe;var F=null;function B(e){if(F!==null&&typeof F.property){let t=F;return F=B.prototype=null,t}return F=B.prototype=e??Object.create(null),new B}var Ct=10;for(let e=0;e<=Ct;e++)B();function he(e){return B(e)}function Rt(e,t="type"){he(e);function n(i){let r=i[t],s=e[r];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:i});return s}return n}var Ue=Rt;var Q=class{constructor(t,n,i){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},U=class{constructor(t,n,i,r,s,a){this.kind=t,this.start=n,this.end=i,this.line=r,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},W={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},mr=new Set(Object.keys(W));var C;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(C||(C={}));var vt=Ue(W,"kind"),Me=vt;function K(e){return e.loc.start}function z(e){return e.loc.end}var Ve="format",Ye=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*(?:\n|$)/u,Ge=/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u;function je(e){return Ge.test(e)}function $e(e){return Ye.test(e)}function Xe(e){return`# @${Ve} - -${e}`}function Lt(e,t,n){let{node:i}=e;if(!i.description)return"";let r=[n("description")];return i.kind==="InputValueDefinition"&&!i.description.block?r.push(k):r.push(f),r}var D=Lt;function bt(e,t,n){let{node:i}=e;switch(i.kind){case"Document":return[...E(f,g(e,t,n,"definitions")),f];case"OperationDefinition":{let r=t.originalText[K(i)]!=="{",s=!!i.name;return[r?i.operation:"",r&&s?[" ",n("name")]:"",r&&!s&&pe(i.variableDefinitions)?" ":"",He(e,n),x(e,n,i),!r&&!s?"":" ",n("selectionSet")]}case"FragmentDefinition":return["fragment ",n("name"),He(e,n)," on ",n("typeCondition"),x(e,n,i)," ",n("selectionSet")];case"SelectionSet":return["{",N([f,E(f,g(e,t,n,"selections"))]),f,"}"];case"Field":return y([i.alias?[n("alias"),": "]:"",n("name"),i.arguments.length>0?y(["(",N([p,E([I("",", "),p],g(e,t,n,"arguments"))]),p,")"]):"",x(e,n,i),i.selectionSet?" ":"",n("selectionSet")]);case"Name":return i.value;case"StringValue":if(i.block){let r=G(!1,i.value,'"""',String.raw`\"""`).split(` -`);return r.length===1&&(r[0]=r[0].trim()),r.every(s=>s==="")&&(r.length=0),E(f,['"""',...r,'"""'])}return['"',G(!1,G(!1,i.value,/["\\]/gu,String.raw`\$&`),` -`,String.raw`\n`),'"'];case"IntValue":case"FloatValue":case"EnumValue":return i.value;case"BooleanValue":return i.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return y(["[",N([p,E([I("",", "),p],e.map(n,"values"))]),p,"]"]);case"ObjectValue":{let r=t.bracketSpacing&&i.fields.length>0?" ":"";return y(["{",r,N([p,E([I("",", "),p],e.map(n,"fields"))]),p,I("",r),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),i.arguments.length>0?y(["(",N([p,E([I("",", "),p],g(e,t,n,"arguments"))]),p,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",x(e,n,i)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:r}=i,s=[];return r.endsWith("TypeDefinition")?s.push(D(e,t,n)):s.push("extend "),r.startsWith("ObjectType")?s.push("type"):r.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!r.startsWith("InputObjectType")&&i.interfaces.length>0&&s.push(" implements ",...Ft(e,t,n)),s.push(x(e,n,i)),i.fields.length>0&&s.push([" {",N([f,E(f,g(e,t,n,"fields"))]),f,"}"]),s}case"FieldDefinition":return[D(e,t,n),n("name"),i.arguments.length>0?y(["(",N([p,E([I("",", "),p],g(e,t,n,"arguments"))]),p,")"]):"",": ",n("type"),x(e,n,i)];case"DirectiveDefinition":return[D(e,t,n),"directive ","@",n("name"),i.arguments.length>0?y(["(",N([p,E([I("",", "),p],g(e,t,n,"arguments"))]),p,")"]):"",i.repeatable?" repeatable":""," on ",...E(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[D(e,t,n),i.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),x(e,n,i),i.values.length>0?[" {",N([f,E(f,g(e,t,n,"values"))]),f,"}"]:""];case"EnumValueDefinition":return[D(e,t,n),n("name"),x(e,n,i)];case"InputValueDefinition":return[D(e,t,n),n("name"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",x(e,n,i)];case"SchemaExtension":return["extend schema",x(e,n,i),...i.operationTypes.length>0?[" {",N([f,E(f,g(e,t,n,"operationTypes"))]),f,"}"]:[]];case"SchemaDefinition":return[D(e,t,n),"schema",x(e,n,i)," {",i.operationTypes.length>0?N([f,E(f,g(e,t,n,"operationTypes"))]):"",f,"}"];case"OperationTypeDefinition":return[i.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),x(e,n,i)];case"InlineFragment":return["...",i.typeCondition?[" on ",n("typeCondition")]:"",x(e,n,i)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return y([D(e,t,n),y([i.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),x(e,n,i),i.types.length>0?[" =",I(""," "),N([I([k,"| "]),E([k,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[D(e,t,n),i.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),x(e,n,i)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Be(i,"Graphql","kind")}}function x(e,t,n){if(n.directives.length===0)return"";let i=E(k,e.map(t,"directives"));return n.kind==="FragmentDefinition"||n.kind==="OperationDefinition"?y([k,i]):[" ",y(N([p,i]))]}function g(e,t,n,i){return e.map(({isLast:r,node:s})=>{let a=n();return!r&&Fe(t.originalText,z(s))?[a,f]:a},i)}function Pt(e){return e.kind!=="Comment"}function wt(e){let t=e.node;if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function Ft(e,t,n){let{node:i}=e,r=[],{interfaces:s}=i,a=e.map(n,"interfaces");for(let u=0;ui.value.trim()==="prettier-ignore")}var Ut={print:bt,massageAstNode:Je,hasPrettierIgnore:Bt,insertPragma:Xe,printComment:wt,canAttachComment:Pt,getVisitorKeys:Me},qe=Ut;var Qe=[{name:"GraphQL",type:"data",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}];var We={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Mt={bracketSpacing:We.bracketSpacing},Ke=Mt;var _e={};xe(_e,{graphql:()=>ln});function ze(e){return typeof e=="object"&&e!==null}function Ze(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var Vt=/\r\n|[\n\r]/g;function M(e,t){let n=0,i=1;for(let r of e.body.matchAll(Vt)){if(typeof r.index=="number"||Ze(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function tt(e){return de(e.source,M(e.source,e.start))}function de(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=t.line===1?n:0,l=t.column+u,T=`${e.name}:${a}:${l} -`,h=i.split(/\r\n|[\n\r]/g),A=h[r];if(A.length>120){let O=Math.floor(l/80),ae=l%80,_=[];for(let v=0;v["|",v]),["|","^".padStart(ae)],["|",_[O+1]]])}return T+et([[`${a-1} |`,h[r-1]],[`${a} |`,A],["|","^".padStart(l)],[`${a+1} |`,h[r+1]]])}function et(e){let t=e.filter(([i,r])=>r!==void 0),n=Math.max(...t.map(([i])=>i.length));return t.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(` -`)}function Yt(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Z=class e extends Error{constructor(t,...n){var i,r,s;let{nodes:a,source:u,positions:l,path:T,originalError:h,extensions:A}=Yt(n);super(t),this.name="GraphQLError",this.path=T??void 0,this.originalError=h??void 0,this.nodes=nt(Array.isArray(a)?a:a?[a]:void 0);let O=nt((i=this.nodes)===null||i===void 0?void 0:i.map(_=>_.loc).filter(_=>_!=null));this.source=u??(O==null||(r=O[0])===null||r===void 0?void 0:r.source),this.positions=l??(O==null?void 0:O.map(_=>_.start)),this.locations=l&&u?l.map(_=>M(u,_)):O==null?void 0:O.map(_=>M(_.source,_.start));let ae=ze(h==null?void 0:h.extensions)?h==null?void 0:h.extensions:void 0;this.extensions=(s=A??ae)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),h!=null&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` - -`+tt(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` - -`+de(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function nt(e){return e===void 0||e.length===0?void 0:e}function d(e,t,n){return new Z(`Syntax Error: ${n}`,{source:e,positions:[t]})}var ee;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(ee||(ee={}));var c;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(c||(c={}));function rt(e){return e===9||e===32}function b(e){return e>=48&&e<=57}function it(e){return e>=97&&e<=122||e>=65&&e<=90}function me(e){return it(e)||e===95}function st(e){return it(e)||b(e)||e===95}function ot(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let a=0;au===0?a:a.slice(n)).slice((t=i)!==null&&t!==void 0?t:0,r+1)}function Gt(e){let t=0;for(;t=0&&e<=55295||e>=57344&&e<=1114111}function ne(e,t){return ut(e.charCodeAt(t))&<(e.charCodeAt(t+1))}function ut(e){return e>=55296&&e<=56319}function lt(e){return e>=56320&&e<=57343}function R(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return o.EOF;if(n>=32&&n<=126){let i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,i,r){let s=e.line,a=1+n-e.lineStart;return new U(t,n,i,s,a,r)}function jt(e,t){let n=e.source.body,i=n.length,r=t;for(;r=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Qt(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` -`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw d(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Wt(e,t){let n=e.source.body,i=n.length,r=e.lineStart,s=t+3,a=s,u="",l=[];for(;s2?"["+nn(e)+"]":"{ "+n.map(([r,s])=>r+": "+se(s,t)).join(", ")+" }"}function tn(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),i=e.length-n,r=[];for(let s=0;s1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function nn(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var rn=globalThis.process&&!0,pt=rn?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var i;let r=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(r===s){let a=ie(t);throw new Error(`Cannot use ${r} "${a}" from another module or realm. - -Ensure that there is only one instance of "graphql" in the node_modules -directory. If different versions of "graphql" are the dependencies of other -relied on modules, use "resolutions" to ensure only one version is installed. - -https://yarnpkg.com/en/docs/selective-version-resolutions - -Duplicate "graphql" modules cannot be used at the same time since different -versions may have different capabilities and behavior. The data from one -version used in the function from another could produce confusing and -spurious results.`)}}return!1};var Y=class{constructor(t,n="GraphQL request",i={line:1,column:1}){typeof t=="string"||re(!1,`Body must be a string. Received: ${ie(t)}.`),this.body=t,this.name=n,this.locationOffset=i,this.locationOffset.line>0||re(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||re(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function ft(e){return pt(e,Y)}function ht(e,t){let n=new Te(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}var Te=class{constructor(t,n={}){let i=ft(t)?t:new Y(t);this._lexer=new te(i),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(o.NAME);return this.node(t,{kind:c.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===o.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:C.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),i;return this.peek(o.NAME)&&(i=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(o.NAME);switch(t.value){case"query":return C.QUERY;case"mutation":return C.MUTATION;case"subscription":return C.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(t,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),i,r;return this.expectOptionalToken(o.COLON)?(i=n,r=this.parseName()):r=n,this.node(t,{kind:c.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,n,o.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,i=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(o.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(o.NAME)?this.node(t,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:c.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case o.BRACKET_L:return this.parseList(t);case o.BRACE_L:return this.parseObject(t);case o.INT:return this.advanceLexer(),this.node(n,{kind:c.INT,value:n.value});case o.FLOAT:return this.advanceLexer(),this.node(n,{kind:c.FLOAT,value:n.value});case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:c.BOOLEAN,value:!0});case"false":return this.node(n,{kind:c.BOOLEAN,value:!1});case"null":return this.node(n,{kind:c.NULL});default:return this.node(n,{kind:c.ENUM,value:n.value})}case o.DOLLAR:if(t)if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){let i=this._lexer.token.value;throw d(this._lexer.source,n.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:c.STRING,value:t.value,block:t.kind===o.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:c.LIST,values:this.any(o.BRACKET_L,n,o.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:c.OBJECT,fields:this.any(o.BRACE_L,n,o.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,i=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.OBJECT_FIELD,name:i,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(o.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(o.AT),this.node(n,{kind:c.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(o.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(o.BRACKET_R),n=this.node(t,{kind:c.LIST_TYPE,type:i})}else n=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(t,{kind:c.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:c.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(o.STRING)||this.peek(o.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),r=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(t,{kind:c.SCHEMA_DEFINITION,description:n,directives:i,operationTypes:r})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(o.COLON);let i=this.parseNamedType();return this.node(t,{kind:c.OPERATION_TYPE_DEFINITION,operation:n,type:i})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),r=this.parseConstDirectives();return this.node(t,{kind:c.SCALAR_TYPE_DEFINITION,description:n,name:i,directives:r})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.OBJECT_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(o.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(o.COLON);let s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:c.FIELD_DEFINITION,description:n,name:i,arguments:r,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(o.COLON);let r=this.parseTypeReference(),s;this.expectOptionalToken(o.EQUALS)&&(s=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:c.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.INTERFACE_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),r=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:c.UNION_TYPE_DEFINITION,description:n,name:i,directives:r,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),r=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:c.ENUM_TYPE_DEFINITION,description:n,name:i,directives:r,values:s})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(t,{kind:c.ENUM_VALUE_DEFINITION,description:n,name:i,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw d(this._lexer.source,this._lexer.token.start,`${oe(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),r=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:i,directives:r,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===o.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.SCHEMA_EXTENSION,directives:n,operationTypes:i})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(t,{kind:c.SCALAR_TYPE_EXTENSION,name:n,directives:i})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.OBJECT_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.INTERFACE_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.UNION_TYPE_EXTENSION,name:n,directives:i,types:r})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.ENUM_TYPE_EXTENSION,name:n,directives:i,values:r})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:i,fields:r})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);let i=this.parseName(),r=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:c.DIRECTIVE_DEFINITION,description:n,name:i,arguments:r,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(ee,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Q(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw d(this._lexer.source,n.start,`Expected ${dt(t)}, found ${oe(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===o.NAME&&n.value===t)this.advanceLexer();else throw d(this._lexer.source,n.start,`Expected "${t}", found ${oe(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===o.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return d(this._lexer.source,n.start,`Unexpected ${oe(n)}.`)}any(t,n,i){this.expectToken(t);let r=[];for(;!this.expectOptionalToken(i);)r.push(n.call(this));return r}optionalMany(t,n,i){if(this.expectOptionalToken(t)){let r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}return[]}many(t,n,i){this.expectToken(t);let r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}delimitedMany(t,n){this.expectOptionalToken(t);let i=[];do i.push(n.call(this));while(this.expectOptionalToken(t));return i}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==o.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw d(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function oe(e){let t=e.value;return dt(e.kind)+(t!=null?` "${t}"`:"")}function dt(e){return ct(e)?`"${e}"`:e}function sn(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}var mt=sn;function on(e){let t=[],{startToken:n,endToken:i}=e.loc;for(let r=n;r!==i;r=r.next)r.kind==="Comment"&&t.push({...r,loc:{start:r.start,end:r.end}});return t}var an={allowLegacyFragmentVariables:!0};function cn(e){if((e==null?void 0:e.name)==="GraphQLError"){let{message:t,locations:[n]}=e;return mt(t,{loc:{start:n},cause:e})}return e}function un(e){let t;try{t=ht(e,an)}catch(n){throw cn(n)}return t.comments=on(t),t}var ln={parse:un,astFormat:"graphql",hasPragma:je,hasIgnorePragma:$e,locStart:K,locEnd:z};var pn={graphql:qe};var Ui=Ne;export{Ui as default,Qe as languages,Ke as options,_e as parsers,pn as printers}; diff --git a/node_modules/prettier/plugins/html.d.ts b/node_modules/prettier/plugins/html.d.ts deleted file mode 100644 index e0b06ee..0000000 --- a/node_modules/prettier/plugins/html.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Parser } from "../index.js"; - -export declare const parsers: { - angular: Parser; - html: Parser; - lwc: Parser; - mjml: Parser; - vue: Parser; -}; diff --git a/node_modules/prettier/plugins/html.js b/node_modules/prettier/plugins/html.js deleted file mode 100644 index c54840a..0000000 --- a/node_modules/prettier/plugins/html.js +++ /dev/null @@ -1,22 +0,0 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.html=e()}})(function(){"use strict";var At=Object.defineProperty;var Ei=Object.getOwnPropertyDescriptor;var Ai=Object.getOwnPropertyNames;var Di=Object.prototype.hasOwnProperty;var on=t=>{throw TypeError(t)};var vi=(t,e,r)=>e in t?At(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var un=(t,e)=>{for(var r in e)At(t,r,{get:e[r],enumerable:!0})},yi=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ai(e))!Di.call(t,s)&&s!==r&&At(t,s,{get:()=>e[s],enumerable:!(n=Ei(e,s))||n.enumerable});return t};var wi=t=>yi(At({},"__esModule",{value:!0}),t);var cr=(t,e,r)=>vi(t,typeof e!="symbol"?e+"":e,r),ln=(t,e,r)=>e.has(t)||on("Cannot "+r);var R=(t,e,r)=>(ln(t,e,"read from private field"),r?r.call(t):e.get(t)),Dt=(t,e,r)=>e.has(t)?on("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),cn=(t,e,r,n)=>(ln(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var mu={};un(mu,{languages:()=>qs,options:()=>Vs,parsers:()=>rn,printers:()=>hu});var bi=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},w=bi;var we="string",ze="array",Ye="cursor",be="indent",Te="align",je="trim",xe="group",ke="fill",ce="if-break",Be="indent-if-break",Ke="line-suffix",Xe="line-suffix-boundary",j="line",Qe="label",Le="break-parent",vt=new Set([Ye,be,Te,je,xe,ke,ce,Be,Ke,Xe,j,Qe,Le]);var Ti=(t,e,r)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},K=Ti;function xi(t){if(typeof t=="string")return we;if(Array.isArray(t))return ze;if(!t)return;let{type:e}=t;if(vt.has(e))return e}var Fe=xi;var ki=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Bi(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(Fe(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ki([...vt].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${n}.`}var pr=class extends Error{name="InvalidDocError";constructor(e){super(Bi(e)),this.doc=e}},hr=pr;function mr(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Fe(i)){case ze:return e(i.map(n));case ke:return e({...i,parts:i.parts.map(n)});case ce:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case xe:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case Te:case be:case Be:case Qe:case Ke:return e({...i,contents:n(i.contents)});case we:case Ye:case je:case Xe:case j:case Le:return e(i);default:throw new hr(i)}}}function B(t,e=pn){return mr(t,r=>typeof r=="string"?H(e,r.split(` -`)):r)}var fr=()=>{},re=fr,dr=fr,hn=fr;function k(t){return re(t),{type:be,contents:t}}function mn(t,e){return re(e),{type:Te,contents:e,n:t}}function E(t,e={}){return re(t),dr(e.expandedStates,!0),{type:xe,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function fn(t){return mn(Number.NEGATIVE_INFINITY,t)}function dn(t){return mn({type:"root"},t)}function yt(t){return hn(t),{type:ke,parts:t}}function pe(t,e="",r={}){return re(t),e!==""&&re(e),{type:ce,breakContents:t,flatContents:e,groupId:r.groupId}}function gn(t,e){return re(t),{type:Be,contents:t,groupId:e.groupId,negate:e.negate}}var ne={type:Le};var Fi={type:j,hard:!0},Pi={type:j,hard:!0,literal:!0},_={type:j},v={type:j,soft:!0},S=[Fi,ne],pn=[Pi,ne];function H(t,e){re(t),dr(e);let r=[];for(let n=0;ni?n:r}var Sn=Ni;function gr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var V,Cr=class{constructor(e){Dt(this,V);cn(this,V,new Set(e))}getLeadingWhitespaceCount(e){let r=R(this,V),n=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return R(this,V).has(e.charAt(0))}hasTrailingWhitespace(e){return R(this,V).has(K(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${gr([...R(this,V)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=R(this,V);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=R(this,V);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=R(this,V);return Array.prototype.every.call(e,n=>r.has(n))}};V=new WeakMap;var _n=Cr;var Ii=[" ",` -`,"\f","\r"," "],Ri=new _n(Ii),O=Ri;var Sr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},En=Sr;function $i(t){return(t==null?void 0:t.type)==="front-matter"}var Pe=$i;var Oi=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Mi=new Set(["if","else if","for","switch","case"]);function An(t,e){var r;if(t.type==="text"||t.type==="comment"||Pe(t)||t.type==="yaml"||t.type==="toml")return null;if(t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value,t.type==="angularControlFlowBlock"&&((r=t.parameters)!=null&&r.children))for(let n of e.parameters.children)Mi.has(t.name)?delete n.expression:n.expression=n.expression.trim();t.type==="angularIcuExpression"&&(e.switchValue=t.switchValue.trim()),t.type==="angularLetDeclarationInitializer"&&delete e.value}An.ignoredProperties=Oi;var Dn=An;async function qi(t,e){if(t.language==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return dn([t.startDelimiter,t.explicitLanguage,S,n,n?S:"",t.endDelimiter])}}var vn=qi;function he(t,e=!0){return[k([v,t]),e?v:""]}function X(t,e){let r=t.type==="NGRoot"?t.node.type==="NGMicrosyntax"&&t.node.body.length===1&&t.node.body[0].type==="NGMicrosyntaxExpression"?t.node.body[0].expression:t.node:t.type==="JsExpressionRoot"?t.node:t;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function T(t,e,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let s=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{s=n(a,o)});let i=await e(t,r,e);return s?E(i):he(i)}function Hi(t,e,r,n){let{node:s}=r,i=n.originalText.slice(s.sourceSpan.start.offset,s.sourceSpan.end.offset);return/^\s*$/u.test(i)?"":T(i,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},X)}var yn=Hi;var Vi=(t,e)=>{if(!(t&&e==null))return e.toReversed||!Array.isArray(e)?e.toReversed():[...e].reverse()},wn=Vi;function Ui(t){return Array.isArray(t)&&t.length>0}var me=Ui;var bn,Tn,xn,kn,Bn,Wi=((bn=globalThis.Deno)==null?void 0:bn.build.os)==="windows"||((xn=(Tn=globalThis.navigator)==null?void 0:Tn.platform)==null?void 0:xn.startsWith("Win"))||((Bn=(kn=globalThis.process)==null?void 0:kn.platform)==null?void 0:Bn.startsWith("win"))||!1;function Ln(t){if(t=t instanceof URL?t:new URL(t),t.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);return t}function Gi(t){return t=Ln(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function zi(t){t=Ln(t);let e=decodeURIComponent(t.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return t.hostname!==""&&(e=`\\\\${t.hostname}${e}`),e}function Fn(t){return Wi?zi(t):Gi(t)}var Pn=Fn;var Yi=t=>String(t).split(/[/\\]/u).pop();function Nn(t,e){if(!e)return;let r=Yi(e).toLowerCase();return t.find(({filenames:n})=>n==null?void 0:n.some(s=>s.toLowerCase()===r))??t.find(({extensions:n})=>n==null?void 0:n.some(s=>r.endsWith(s)))}function ji(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function In(t,e){if(e){if(String(e).startsWith("file:"))try{e=Pn(e)}catch{return}if(typeof e=="string")return t.find(({isSupported:r})=>r==null?void 0:r({filepath:e}))}}function Ki(t,e){let r=wn(!1,t.plugins).flatMap(s=>s.languages??[]),n=ji(r,e.language)??Nn(r,e.physicalFile)??Nn(r,e.file)??In(r,e.physicalFile)??In(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Ne=Ki;var Rn="inline",_r={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},$n="normal",Er={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Xi(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var fe=Xi;var Qi=t=>w(!1,t,/^[\t\f\r ]*\n/gu,""),Ar=t=>Qi(O.trimEnd(t)),On=t=>{let e=t,r=O.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=O.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function bt(t,e){return!!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||de(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||kt(t,e)&&!W(t,e)&&t.type!=="interpolation")}function ge(t){return t.type==="attribute"||!t.parent||!t.prev?!1:Ji(t.prev)}function Ji(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function $(t){return t.type==="text"||t.type==="comment"}function W(t,e){return t.type==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||t.fullName==="mj-style"&&e.parser==="mjml"||fe(t)&&(t.name==="script"||t.name==="style"))}function Mn(t,e){return t.children&&!W(t,e)}function qn(t,e){return W(t,e)||t.type==="interpolation"||Dr(t)}function Dr(t){return Qn(t).startsWith("pre")}function Hn(t,e){var s,i;let r=n();if(r&&!t.prev&&((i=(s=t.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf))return t.type==="interpolation";return r;function n(){return Pe(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.prev&&(t.prev.type==="text"||t.prev.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:de(t.parent)?!0:!(!t.prev&&(t.parent.type==="root"||de(t)&&t.parent||W(t.parent,e)||et(t.parent,e)||!sa(t.parent.cssDisplay))||t.prev&&!oa(t.prev.cssDisplay))}}function Vn(t,e){return Pe(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.next&&(t.next.type==="text"||t.next.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:de(t.parent)?!0:!(!t.next&&(t.parent.type==="root"||de(t)&&t.parent||W(t.parent,e)||et(t.parent,e)||!ia(t.parent.cssDisplay))||t.next&&!aa(t.next.cssDisplay))}function Un(t,e){return ua(t.cssDisplay)&&!W(t,e)}function Je(t){return Pe(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+10&&(["body","script","style"].includes(t.name)||t.children.some(e=>ea(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.type!=="text"&&zn(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||Yn(t.lastChild))}function vr(t){return t.type==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function Tt(t){return jn(t)||t.prev&&Zi(t.prev)||Gn(t)}function Zi(t){return jn(t)||t.type==="element"&&t.fullName==="br"||Gn(t)}function Gn(t){return zn(t)&&Yn(t)}function zn(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.linet.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function jn(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function xt(t){return t.lastChild?xt(t.lastChild):t}function ea(t){var e;return(e=t.children)==null?void 0:e.some(r=>r.type!=="text")}function Kn(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function ta(t,e){let{name:r,attrMap:n}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t.attrMap;return!i&&!s?"babel":Ne(e,{language:i})??Kn(s)}function ra(t,e){if(!kt(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Ne(e,{language:s})??Kn(n)}function na(t,e){if(t.name==="style"){let{lang:r}=t.attrMap;return r?Ne(e,{language:r}):"css"}if(t.name==="mj-style"&&e.parser==="mjml")return"css"}function yr(t,e){return ta(t,e)??na(t,e)??ra(t,e)}function Ze(t){return t==="block"||t==="list-item"||t.startsWith("table")}function sa(t){return!Ze(t)&&t!=="inline-block"}function ia(t){return!Ze(t)&&t!=="inline-block"}function aa(t){return!Ze(t)}function oa(t){return!Ze(t)}function ua(t){return!Ze(t)&&t!=="inline-block"}function de(t){return Qn(t).startsWith("pre")}function la(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function Xn(t,e){var n;if(Ce(t,e))return"block";if(((n=t.prev)==null?void 0:n.type)==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(s)return s[1]}let r=!1;if(t.type==="element"&&t.namespace==="svg")if(la(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(t.type==="element"&&(!t.namespace||r||fe(t))&&Object.prototype.hasOwnProperty.call(_r,t.name))return _r[t.name]}return Rn}function Qn(t){return t.type==="element"&&(!t.namespace||fe(t))&&Object.prototype.hasOwnProperty.call(Er,t.name)?Er[t.name]:$n}function ca(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(` -`)){if(r.length===0)continue;let n=O.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&nr.slice(e)).join(` -`)}function br(t){return w(!1,w(!1,t,"'","'"),""",'"')}function P(t){return br(t.value)}var pa=new Set(["template","style","script"]);function et(t,e){return Ce(t,e)&&!pa.has(t.fullName)}function Ce(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function kt(t,e){return Ce(t,e)&&(et(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function Jn(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function Zn(t,e){let r=t.parent;if(!Ce(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function Bt(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?B(e):B(wr(Ar(e)),S):H(_,O.split(e))}function Lt(t,e){return Ce(t,e)&&t.name==="script"}var Tr=/\{\{(.+?)\}\}/su;async function es(t,e){let r=[];for(let[n,s]of t.split(Tr).entries())if(n%2===0)r.push(B(s));else try{r.push(E(["{{",k([_,await T(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),_,"}}"]))}catch{r.push("{{",B(s),"}}")}return r}function xr({parser:t}){return(e,r,n)=>T(P(n.node),e,{parser:t},X)}var ha=xr({parser:"__ng_action"}),ma=xr({parser:"__ng_binding"}),fa=xr({parser:"__ng_directive"});function da(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return ha;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return ma;if(n.startsWith("*"))return fa;let s=P(r);if(/^i18n(?:-.+)?$/u.test(n))return()=>he(yt(Bt(r,s.trim())),!s.includes("@@"));if(Tr.test(s))return i=>es(s,i)}var ts=da;function ga(t,e){let{node:r}=t,n=P(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/u).join(" ")}var rs=ga;function ns(t){return t===" "||t===` -`||t==="\f"||t==="\r"||t===" "}var Ca=/^[ \t\n\r\u000c]+/,Sa=/^[, \t\n\r\u000c]+/,_a=/^[^ \t\n\r\u000c]+/,Ea=/[,]+$/,ss=/^\d+$/,Aa=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Da(t){let e=t.length,r,n,s,i,a,o=0,u;function p(C){let A,D=C.exec(t.substring(o));if(D)return[A]=D,o+=A.length,A}let l=[];for(;;){if(p(Sa),o>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}u=o,r=p(_a),n=[],r.slice(-1)===","?(r=r.replace(Ea,""),f()):m()}function m(){for(p(Ca),s="",i="in descriptor";;){if(a=t.charAt(o),i==="in descriptor")if(ns(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){o+=1,s&&n.push(s),f();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),f();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),f();return}else s+=a;else if(i==="after descriptor"&&!ns(a))if(a===""){f();return}else i="in descriptor",o-=1;o+=1}}function f(){let C=!1,A,D,I,F,c={},g,y,q,x,U;for(F=0;Fwa(P(t.node))}var as={width:"w",height:"h",density:"x"},ya=Object.keys(as);function wa(t){let e=is(t),r=ya.filter(l=>e.some(m=>Object.prototype.hasOwnProperty.call(m,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,s=as[n],i=e.map(l=>l.source.value),a=Math.max(...i.map(l=>l.length)),o=e.map(l=>l[n]?String(l[n].value):""),u=o.map(l=>{let m=l.indexOf(".");return m===-1?l.length:m}),p=Math.max(...u);return he(H([",",_],i.map((l,m)=>{let f=[l],C=o[m];if(C){let A=a-l.length+1,D=p-u[m],I=" ".repeat(A+D);f.push(pe(I," "),C+s)}return f})))}var os=va;function us(t,e){let{node:r}=t,n=P(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>he(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}var kr=new WeakMap;function ba(t,e){let{root:r}=t;return kr.has(r)||kr.set(r,r.children.some(n=>Lt(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),kr.get(r)}var Ie=ba;function ls(t,e,r){let{node:n}=r,s=P(n);return T(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},X)}function cs(t,e,{parseWithTs:r}){return T(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}async function ps(t,e,r,n){let s=P(r.node),{left:i,operator:a,right:o}=Ta(s),u=Ie(r,n);return[E(await T(`function _(${i}) {}`,t,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await T(o,t,{parser:u?"__ts_expression":"__js_expression"})]}function Ta(t){let e=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,s=t.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=w(!1,s[1].trim(),n,""),o=a.match(r);o?(i.alias=a.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=a;let u=[i.alias,i.iterator1,i.iterator2];if(!u.some((p,l)=>!p&&(l===0||u.slice(l+1).some(Boolean))))return{left:u.filter(Boolean).join(","),operator:s[2],right:i.for}}function xa(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return ps;if(n==="generic"&&Lt(r.parent,e))return ls;let s=P(r),i=Ie(t,e);if(Jn(r)||Zn(r,e))return a=>cs(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>ka(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith(".")||n.startsWith("v-bind:"))return a=>Ba(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>hs(s,a,{parseWithTs:i})}async function ka(t,e,{parseWithTs:r}){var n;try{return await hs(t,e,{parseWithTs:r})}catch(s){if(((n=s.cause)==null?void 0:n.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw s}return T(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},X)}function Ba(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},X)}function hs(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__ts_expression":"__js_expression"},X)}var ms=xa;function La(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[os,us,rs,ms,ts]){let s=n(t,e);if(s)return Fa(s)}}}function Fa(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=mr(i,a=>typeof a=="string"?w(!1,a,'"',"""):a),[n.node.rawName,'="',E(i),'"']}}var fs=La;var Pa=new Proxy(()=>{},{get:()=>Pa});function J(t){return t.sourceSpan.start.offset}function se(t){return t.sourceSpan.end.offset}function tt(t,e){return[t.isSelfClosing?"":Na(t,e),Se(t,e)]}function Na(t,e){return t.lastChild&&Ae(t.lastChild)?"":[Ia(t,e),Ft(t,e)]}function Se(t,e){return(t.next?Q(t.next):Ee(t.parent))?"":[_e(t,e),G(t,e)]}function Ia(t,e){return Ee(t)?_e(t.lastChild,e):""}function G(t,e){return Ae(t)?Ft(t.parent,e):rt(t)?Pt(t.next,e):""}function Ft(t,e){if(gs(t,e))return"";switch(t.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function gs(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(ge(t)||bt(t.parent,e))}function Q(t){return t.prev&&t.prev.type!=="docType"&&t.type!=="angularControlFlowBlock"&&!$(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function Ee(t){var e;return((e=t.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t.lastChild.hasTrailingSpaces&&!$(xt(t.lastChild))&&!de(t)}function Ae(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&$(xt(t))}function rt(t){return t.next&&!$(t.next)&&$(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function Ra(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return e?e[1]?e[1].split(/\s+/u):!0:!1}function nt(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function $a(t,e,r){var m;let{node:n}=t;if(!me(n.attrs))return n.isSelfClosing?" ":"";let s=((m=n.prev)==null?void 0:m.type)==="comment"&&Ra(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?f=>s.includes(f.rawName):()=>!1,a=t.map(({node:f})=>i(f)?B(e.originalText.slice(J(f),se(f))):r(),"attrs"),o=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,p=e.singleAttributePerLine&&n.attrs.length>1&&!Ce(n,e)?S:_,l=[k([o?" ":_,H(p,a)])];return n.firstChild&&nt(n.firstChild)||n.isSelfClosing&&Ee(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?_:v),l}function Oa(t){return t.firstChild&&nt(t.firstChild)?"":Nt(t)}function st(t,e,r){let{node:n}=t;return[De(n,e),$a(t,e,r),n.isSelfClosing?"":Oa(n)]}function De(t,e){return t.prev&&rt(t.prev)?"":[z(t,e),Pt(t,e)]}function z(t,e){return nt(t)?Nt(t.parent):Q(t)?_e(t.prev,e):""}var ds="<${t.rawName}`;default:return`<${t.rawName}`}}function Nt(t){switch(t.type){case"ieConditionalComment":return"]>";case"element":if(t.condition)return">";default:return">"}}function Ma(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&nt(t.firstChild)&&(r-=Nt(t).length);let n=t.endSourceSpan.start.offset;return t.lastChild&&Ae(t.lastChild)?n+=Ft(t,e).length:Ee(t)&&(n-=_e(t.lastChild,e).length),e.originalText.slice(r,n)}var It=Ma;var qa=new Set(["if","else if","for","switch","case"]);function Ha(t,e){let{node:r}=t;switch(r.type){case"element":if(W(r,e)||r.type==="interpolation")return;if(!r.isSelfClosing&&kt(r,e)){let n=yr(r,e);return n?async(s,i)=>{let a=It(r,e),o=/^\s*$/u.test(a),u="";return o||(u=await s(Ar(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[z(r,e),E(st(t,e,i)),o?"":S,u,o?"":S,tt(r,e),G(r,e)]}:void 0}break;case"text":if(W(r.parent,e)){let n=yr(r.parent,e);if(n)return async s=>{let i=n==="markdown"?wr(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(e.parser==="html"&&n==="babel"){let o="script",{attrMap:u}=r.parent;u&&(u.type==="module"||(u.type==="text/babel"||u.type==="text/jsx")&&u["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[ne,z(r,e),await s(i,a),G(r,e)]}}else if(r.parent.type==="interpolation")return async n=>{let s={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?s.parser="__ng_interpolation":e.parser==="vue"?s.parser=Ie(t,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[k([_,await n(r.value,s)]),r.parent.next&&Q(r.parent.next)?" ":_]};break;case"attribute":return fs(t,e);case"front-matter":return n=>vn(r,n);case"angularControlFlowBlockParameters":return qa.has(t.parent.name)?yn:void 0;case"angularLetDeclarationInitializer":return n=>T(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var Cs=Ha;var it=null;function at(t){if(it!==null&&typeof it.property){let e=it;return it=at.prototype=null,e}return it=at.prototype=t??Object.create(null),new at}var Va=10;for(let t=0;t<=Va;t++)at();function Br(t){return at(t)}function Ua(t,e="type"){Br(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Ss=Ua;var Wa={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},_s=Wa;var Ga=Ss(_s),Es=Ga;var As="format";var Ds=/^\s*/u,vs=/^\s*/u;function ys(t){return vs.test(t)}function ws(t){return Ds.test(t)}function bs(t){return` - -${t}`}var Ts=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function xs(t){let e=se(t);return t.type==="element"&&!t.endSourceSpan&&me(t.children)?Math.max(e,xs(K(!1,t.children,-1))):e}function ot(t,e,r){let n=t.node;if(ge(n)){let s=xs(n);return[z(n,e),B(O.trimEnd(e.originalText.slice(J(n)+(n.prev&&rt(n.prev)?Pt(n).length:0),s-(n.next&&Q(n.next)?_e(n,e).length:0)))),G(n,e)]}return r()}function Rt(t,e){return $(t)&&$(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?Tt(e)?S:_:"":Tt(e)?S:v:rt(t)&&(ge(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&Q(e)?"":!e.isLeadingSpaceSensitive||Tt(e)||Q(e)&&t.lastChild&&Ae(t.lastChild)&&t.lastChild.lastChild&&Ae(t.lastChild.lastChild)?S:e.hasLeadingSpaces?_:v}function Re(t,e,r){let{node:n}=t;if(vr(n))return[ne,...t.map(i=>{let a=i.node,o=a.prev?Rt(a.prev,a):"";return[o?[o,Je(a.prev)?S:""]:"",ot(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let o=i.node;if($(o)){if(o.prev&&$(o.prev)){let A=Rt(o.prev,o);if(A)return Je(o.prev)?[S,S,ot(i,e,r)]:[A,ot(i,e,r)]}return ot(i,e,r)}let u=[],p=[],l=[],m=[],f=o.prev?Rt(o.prev,o):"",C=o.next?Rt(o,o.next):"";return f&&(Je(o.prev)?u.push(S,S):f===S?u.push(S):$(o.prev)?p.push(f):p.push(pe("",v,{groupId:s[a-1]}))),C&&(Je(o)?$(o.next)&&m.push(S,S):C===S?$(o.next)&&m.push(S):l.push(C)),[...u,E([...p,E([ot(i,e,r),...l],{id:s[a]})]),...m]},"children")}function ks(t,e,r){let{node:n}=t,s=[];za(t)&&s.push("} "),s.push("@",n.name),n.parameters&&s.push(" (",E(r("parameters")),")"),s.push(" {");let i=Bs(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,s.push(k([S,Re(t,e,r)])),i&&s.push(S,"}")):i&&s.push("}"),E(s,{shouldBreak:!0})}function Bs(t){var e,r;return!(((e=t.next)==null?void 0:e.type)==="angularControlFlowBlock"&&((r=Ts.get(t.name))!=null&&r.has(t.next.name)))}function za(t){let{previous:e}=t;return(e==null?void 0:e.type)==="angularControlFlowBlock"&&!ge(e)&&!Bs(e)}function Ls(t,e,r){return[k([v,H([";",_],t.map(r,"children"))]),v]}function Fs(t,e,r){let{node:n}=t;return[De(n,e),E([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",k([_,H(_,t.map(r,"cases"))])]:"",v]),Se(n,e)]}function Ps(t,e,r){let{node:n}=t;return[n.value," {",E([k([v,t.map(({node:s,isLast:i})=>{let a=[r()];return s.type==="text"&&(s.hasLeadingSpaces&&a.unshift(_),s.hasTrailingSpaces&&!i&&a.push(_)),a},"expression")]),v]),"}"]}function Ns(t,e,r){let{node:n}=t;if(bt(n,e))return[z(n,e),E(st(t,e,r)),B(It(n,e)),...tt(n,e),G(n,e)];let s=n.children.length===1&&(n.firstChild.type==="interpolation"||n.firstChild.type==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=l=>E([E(st(t,e,r),{id:i}),l,tt(n,e)]),o=l=>s?gn(l,{groupId:i}):(W(n,e)||et(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:k(l),u=()=>s?pe(v,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?_:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?fn(v):v,p=()=>(n.next?Q(n.next):Ee(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?pe(v,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?_:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":v;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?_:""):a([Wn(n)?ne:"",o([u(),Re(t,e,r)]),p()])}function ut(t){return t>=9&&t<=32||t==160}function $t(t){return 48<=t&&t<=57}function lt(t){return t>=97&&t<=122||t>=65&&t<=90}function Is(t){return t>=97&&t<=102||t>=65&&t<=70||$t(t)}function Ot(t){return t===10||t===13}function Lr(t){return 48<=t&&t<=55}function Mt(t){return t===39||t===34||t===96}var Ya=/-+([a-z0-9])/g;function $s(t){return t.replace(Ya,(...e)=>e[1].toUpperCase())}var ie=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let u=r.substring(0,s-1).lastIndexOf(String.fromCharCode(10));a=u>0?s-u:s}else a--;for(;s0;){let o=r.charCodeAt(s);s++,e--,o==10?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,o=0;for(;a0&&(s--,a++,!(n[s]==` -`&&++o==r)););for(a=0,o=0;a]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var ja=[Xa,Qa,Za,to,ro,io,no,so,ao,eo];function Ka(t,e){for(let r of ja)r(t,e);return t}function Xa(t){t.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===` -`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function Qa(t){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let s=0;se.type==="cdata",e=>``)}function eo(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!O.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t.walk(r=>{if(r.children)for(let n=0;n`+s.firstChild.value+``+a.value,i.sourceSpan=new h(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function to(t,e){if(e.parser==="html")return;let r=/\{\{(.+?)\}\}/su;t.walk(n=>{if(Mn(n,e))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,o=s.value.split(r);for(let u=0;u0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new h(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new h(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new h(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(s)}})}function ro(t,e){t.walk(r=>{let n=r.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].type==="text"&&O.trim(n[0].value).length===0){r.hasDanglingSpaces=n.length>0,r.$children=[];return}let s=qn(r,e),i=Dr(r);if(!s)for(let a=0;a{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function so(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function io(t,e){t.walk(r=>{r.cssDisplay=Xn(r,e)})}function ao(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=Un(r,e);return}for(let s of n)s.isLeadingSpaceSensitive=Hn(s,e),s.isTrailingSpaceSensitive=Vn(s,e);for(let s=0;s of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Hs="HTML",lo={bracketSameLine:Fr.bracketSameLine,htmlWhitespaceSensitivity:{category:Hs,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Fr.singleAttributePerLine,vueIndentScriptAndStyle:{category:Hs,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Vs=lo;var rn={};un(rn,{angular:()=>lu,html:()=>au,lwc:()=>pu,mjml:()=>uu,vue:()=>cu});var ph=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var Us;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(Us||(Us={}));var Ws;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(Ws||(Ws={}));var Gs;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Gs||(Gs={}));var Pr={name:"custom-elements"},Nr={name:"no-errors-schema"};var Z;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(Z||(Z={}));var zs;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(zs||(zs={}));var N;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(N||(N={}));function ct(t,e=!0){if(t[0]!=":")return[null,t];let r=t.indexOf(":",1);if(r===-1){if(e)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,r),t.slice(r+1)]}function Ir(t){return ct(t)[1]==="ng-container"}function Rr(t){return ct(t)[1]==="ng-content"}function Me(t){return t===null?null:ct(t)[0]}function qe(t,e){return t?`:${t}:${e}`:e}var Vt;function $r(){return Vt||(Vt={},Ht(Z.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Ht(Z.STYLE,["*|style"]),Ht(Z.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Ht(Z.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Vt}function Ht(t,e){for(let r of e)Vt[r.toLowerCase()]=t}var Ut=class{};var co="boolean",po="number",ho="string",mo="object",fo=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],Ys=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),go=Array.from(Ys).reduce((t,[e,r])=>(t.set(e,r),t),new Map),Wt=class extends Ut{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,fo.forEach(e=>{let r=new Map,n=new Set,[s,i]=e.split("|"),a=i.split(","),[o,u]=s.split("^");o.split(",").forEach(l=>{this._schema.set(l.toLowerCase(),r),this._eventSchema.set(l.toLowerCase(),n)});let p=u&&this._schema.get(u.toLowerCase());if(p){for(let[l,m]of p)r.set(l,m);for(let l of this._eventSchema.get(u.toLowerCase()))n.add(l)}a.forEach(l=>{if(l.length>0)switch(l[0]){case"*":n.add(l.substring(1));break;case"!":r.set(l.substring(1),co);break;case"#":r.set(l.substring(1),po);break;case"%":r.set(l.substring(1),mo);break;default:r.set(l,ho)}})})}hasProperty(e,r,n){if(n.some(i=>i.name===Nr.name))return!0;if(e.indexOf("-")>-1){if(Ir(e)||Rr(e))return!1;if(n.some(i=>i.name===Pr.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return r.some(n=>n.name===Nr.name)||e.indexOf("-")>-1&&(Ir(e)||Rr(e)||r.some(n=>n.name===Pr.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,r,n){n&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let s=$r()[e+"|"+r];return s||(s=$r()["*|"+r],s||Z.NONE)}getMappedPropName(e){return Ys.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... -If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>go.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return $s(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(Co(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:i+s}}};function Co(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var d=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=N.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:u=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(p=>this.closedByChildren[p]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=u??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},js,pt;function He(t){return pt||(js=new d({canSelfClose:!0}),pt=Object.assign(Object.create(null),{base:new d({isVoid:!0}),meta:new d({isVoid:!0}),area:new d({isVoid:!0}),embed:new d({isVoid:!0}),link:new d({isVoid:!0}),img:new d({isVoid:!0}),input:new d({isVoid:!0}),param:new d({isVoid:!0}),hr:new d({isVoid:!0}),br:new d({isVoid:!0}),source:new d({isVoid:!0}),track:new d({isVoid:!0}),wbr:new d({isVoid:!0}),p:new d({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new d({closedByChildren:["tbody","tfoot"]}),tbody:new d({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new d({closedByChildren:["tbody"],closedByParent:!0}),tr:new d({closedByChildren:["tr"],closedByParent:!0}),td:new d({closedByChildren:["td","th"],closedByParent:!0}),th:new d({closedByChildren:["td","th"],closedByParent:!0}),col:new d({isVoid:!0}),svg:new d({implicitNamespacePrefix:"svg"}),foreignObject:new d({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new d({implicitNamespacePrefix:"math"}),li:new d({closedByChildren:["li"],closedByParent:!0}),dt:new d({closedByChildren:["dt","dd"]}),dd:new d({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new d({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new d({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new d({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new d({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new d({closedByChildren:["optgroup"],closedByParent:!0}),option:new d({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new d({ignoreFirstLf:!0}),listing:new d({ignoreFirstLf:!0}),style:new d({contentType:N.RAW_TEXT}),script:new d({contentType:N.RAW_TEXT}),title:new d({contentType:{default:N.ESCAPABLE_RAW_TEXT,svg:N.PARSABLE_DATA}}),textarea:new d({contentType:N.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Wt().allKnownElementNames().forEach(e=>{!pt[e]&&Me(e)===null&&(pt[e]=new d({canSelfClose:!1}))})),pt[t]??js}var ae=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},Gt=class extends ae{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="text"}visit(e,r){return e.visitText(this,r)}},zt=class extends ae{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="cdata"}visit(e,r){return e.visitCdata(this,r)}},Yt=class extends ae{constructor(e,r,n,s,i,a){super(s,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}},jt=class{constructor(e,r,n,s,i){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=s,this.expSourceSpan=i,this.type="expansionCase"}visit(e,r){return e.visitExpansionCase(this,r)}},Kt=class extends ae{constructor(e,r,n,s,i,a,o){super(n,o),this.name=e,this.value=r,this.keySpan=s,this.valueSpan=i,this.valueTokens=a,this.type="attribute"}visit(e,r){return e.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},Y=class extends ae{constructor(e,r,n,s,i,a=null,o=null,u){super(s,u),this.name=e,this.attrs=r,this.children=n,this.startSourceSpan=i,this.endSourceSpan=a,this.nameSpan=o,this.type="element"}visit(e,r){return e.visitElement(this,r)}},Xt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="comment"}visit(e,r){return e.visitComment(this,r)}},Qt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="docType"}visit(e,r){return e.visitDocType(this,r)}},ee=class extends ae{constructor(e,r,n,s,i,a,o=null,u){super(s,u),this.name=e,this.parameters=r,this.children=n,this.nameSpan=i,this.startSourceSpan=a,this.endSourceSpan=o,this.type="block"}visit(e,r){return e.visitBlock(this,r)}},ht=class{constructor(e,r){this.expression=e,this.sourceSpan=r,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitBlockParameter(this,r)}},mt=class{constructor(e,r,n,s,i){this.name=e,this.value=r,this.sourceSpan=n,this.nameSpan=s,this.valueSpan=i,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitLetDeclaration(this,r)}};function Jt(t,e,r=null){let n=[],s=t.visit?i=>t.visit(i,r)||i.visit(t,r):i=>i.visit(t,r);return e.forEach(i=>{let a=s(i);a&&n.push(a)}),n}var ft=class{constructor(){}visitElement(e,r){this.visitChildren(r,n=>{n(e.attrs),n(e.children)})}visitAttribute(e,r){}visitText(e,r){}visitCdata(e,r){}visitComment(e,r){}visitDocType(e,r){}visitExpansion(e,r){return this.visitChildren(r,n=>{n(e.cases)})}visitExpansionCase(e,r){}visitBlock(e,r){this.visitChildren(r,n=>{n(e.parameters),n(e.children)})}visitBlockParameter(e,r){}visitLetDeclaration(e,r){}visitChildren(e,r){let n=[],s=this;function i(a){a&&n.push(Jt(s,a,e))}return r(i),Array.prototype.concat.apply([],n)}};var Ve={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},_o="\uE500";Ve.ngsp=_o;var Eo=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Ks(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let r=e[0],n=e[1];Eo.forEach(s=>{if(s.test(r)||s.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}var Or=class t{static fromArray(e){return e?(Ks("interpolation",e),new t(e[0],e[1])):Mr}constructor(e,r){this.start=e,this.end=r}},Mr=new Or("{{","}}");var gt=class extends Oe{constructor(e,r,n){super(n,e),this.tokenType=r}},Wr=class{constructor(e,r,n){this.tokens=e,this.errors=r,this.nonNormalizedIcuExpressions=n}};function ui(t,e,r,n={}){let s=new Gr(new ve(t,e),r,n);return s.tokenize(),new Wr(zo(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var Mo=/\r\n?/g;function Ue(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function ei(t){return`Unknown entity "${t}" - use the "&#;" or "&#x;" syntax`}function qo(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var nr;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(nr||(nr={}));var Ct=class{constructor(e){this.error=e}},Gr=class{constructor(e,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||Mr,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let s=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new zr(e,s):new sr(e,s),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(Mo,` -`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(34),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn(n=>ut(n)?!e:ni(n)?(e=!0,!1):!0),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._beginToken(25,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(b),this._attemptCharCode(41))this._attemptCharCodeUntilFn(b);else{r.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):r.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(si);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),r=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||r!==null;){let s=this._cursor.peek();if(s===92)this._cursor.advance();else if(s===r)r=null;else if(r===null&&Mt(s))r=s;else if(s===40&&r===null)n++;else if(s===41&&r===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(si)}}_consumeLetDeclaration(e){if(this._beginToken(30,e),ut(this._cursor.peek()))this._attemptCharCodeUntilFn(b);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=33;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(b),!this._attemptCharCode(61)){r.type=33;return}this._attemptCharCodeUntilFn(s=>b(s)&&!Ot(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(r.type=33,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(n=>lt(n)||n===36||n===95||r&&$t(n)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(31,e);this._cursor.peek()!==0;){let r=this._cursor.peek();if(r===59)break;Mt(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(n=>n===92?(this._cursor.advance(),!1):n===r)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Wo(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new gt("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(this._currentTokenType===null)throw new gt("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new gt(e,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new Ct(n)}handleError(e){if(e instanceof St&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof Ct)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Go(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Ue(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!Ho(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(e),this._cursor.advance(),n=this._cursor.clone()):n=e,this._requireCharCodeUntilFn(ti,r===""?0:1);let s=this._cursor.getChars(n);return[r,s]}_consumeTagOpen(e){let r,n,s,i=[];try{if(!lt(this._cursor.peek()))throw this._createError(Ue(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),n=s.parts[0],r=s.parts[1],this._attemptCharCodeUntilFn(b);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[o,u]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(b),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(b);let p=this._consumeAttributeValue();i.push({prefix:o,name:u,value:p})}else i.push({prefix:o,name:u});this._attemptCharCodeUntilFn(b)}this._consumeTagOpenEnd()}catch(o){if(o instanceof Ct){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let a=this._getTagContentType(r,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,r),a===N.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):a===N.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(b),!this._attemptStrCaseInsensitive(e?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(b),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===62,3),this._cursor.advance(),this._endToken([e,r]),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(0,e);let r=this._consumePrefixAndName();return this._endToken(r)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Ue(e),this._cursor.getSpan());this._beginToken(14);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let r=this._cursor.peek();this._consumeQuote(r);let n=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(r)}else{let r=()=>ti(this._cursor.peek());e=this._consumeWithInterpolation(16,17,r,r)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(b),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let s=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(44),this._attemptCharCodeUntilFn(b),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(b)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(b),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,n,s){this._beginToken(e);let i=[];for(;!n();){let o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(r,o,s),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(""));return this._endToken([a]),a}_consumeInterpolation(e,r,n){let s=[];this._beginToken(e,r),s.push(this._interpolationConfig.start);let i=this._cursor.clone(),a=null,o=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let u=this._cursor.clone();if(this._isTagStart()){this._cursor=u,s.push(this._getProcessedChars(i,u)),this._endToken(s);return}if(a===null)if(this._attemptStr(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,u)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(o=!0);let p=this._cursor.peek();this._cursor.advance(),p===92?this._cursor.advance():p===a?a=null:!o&&a===null&&Mt(p)&&(a=p)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||r===47||r===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let e=this._cursor.clone();if(e.advance(),ni(e.peek()))return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!r}return!0}_handleFullNameStackForTagOpen(e,r){let n=qe(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,r){let n=qe(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function b(t){return!ut(t)||t===0}function ti(t){return ut(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function Ho(t){return(t<97||12257)}function Vo(t){return t===59||t===0||!Is(t)}function Uo(t){return t===59||t===0||!lt(t)}function Wo(t){return t!==125}function Go(t,e){return ri(t)===ri(e)}function ri(t){return t>=97&&t<=122?t-97+65:t}function ni(t){return lt(t)||$t(t)||t===95}function si(t){return t!==59&&b(t)}function zo(t){let e=[],r;for(let n=0;n0&&r.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),a=n!==e?this.locationFromCursor(n):s;return new h(s,i,a)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new St('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):Ot(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new ie(e.file,e.state.offset,e.state.line,e.state.column)}},zr=class t extends sr{constructor(e,r){e instanceof t?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(e){let r=e.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(Lr(e())){let r="",n=0,s=this.clone();for(;Lr(e())&&n<3;)s=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=s.internalState}else Ot(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let n=this.input.slice(e.internalState.offset,e.internalState.offset+r),s=parseInt(n,16);if(isNaN(s))throw e.state=e.internalState,new St("Invalid hexadecimal escape sequence",e);return s}},St=class{constructor(e,r){this.msg=e,this.cursor=r}};var L=class t extends Oe{static create(e,r,n){return new t(e,r,n)}constructor(e,r,n){super(r,n),this.elementName=e}},Kr=class{constructor(e,r){this.rootNodes=e,this.errors=r}},ir=class{constructor(e){this.getTagDefinition=e}parse(e,r,n,s=!1,i){let a=D=>(I,...F)=>D(I.toLowerCase(),...F),o=s?this.getTagDefinition:a(this.getTagDefinition),u=D=>o(D).getContentType(),p=s?i:a(i),m=ui(e,r,i?(D,I,F,c)=>{let g=p(D,I,F,c);return g!==void 0?g:u(D)}:u,n),f=n&&n.canSelfClose||!1,C=n&&n.allowHtmComponentClosingTags||!1,A=new Xr(m.tokens,o,f,C,s);return A.build(),new Kr(A.rootNodes,m.errors.concat(A.errors))}},Xr=class t{constructor(e,r,n,s,i){this.tokens=e,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=s,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof ee&&this.errors.push(L.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let a=new h(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),o=new h(r.sourceSpan.start,s.sourceSpan.end,r.sourceSpan.fullStart);return new jt(e.parts[0],i.rootNodes,a,e.sourceSpan,o)}_collectExpansionExpTokens(e){let r=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(li(n,22)){if(n.pop(),n.length===0)return r}else return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(li(n,20))n.pop();else return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&r[0]==` -`){let n=this._getClosestParentElement();n!=null&&n.children.length==0&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(e){let r=[e],n=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===` -`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,ci):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Gt(s,new h(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getContainer();e instanceof Y&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let C=this.getTagDefinition(i);this.canSelfClose||C.canSelfClose||Me(i)!==null||C.isVoid||this.errors.push(L.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let o=this._peek.sourceSpan.fullStart,u=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),p=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),l=new h(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),m=new Y(i,s,[],u,p,void 0,l),f=this._getContainer();this._pushContainer(m,f instanceof Y&&this.getTagDefinition(f.name).isClosedByChild(m.name)),a?this._popContainer(i,Y,u):e.type===4&&(this._popContainer(i,Y,null),this.errors.push(L.create(i,u,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(L.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(r,Y,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(L.create(r,e.sourceSpan,n))}}_popContainer(e,r,n){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(Me(a.name)?a.name===e:(e==null||a.name.toLowerCase()===e.toLowerCase())&&a instanceof r)return a.endSourceSpan=n,a.sourceSpan.end=n!==null?n.end:a.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(a instanceof ee||a instanceof Y&&!this.getTagDefinition(a.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let r=qe(e.parts[0],e.parts[1]),n=e.sourceSpan.end,s;this._peek.type===15&&(s=this._advance());let i="",a=[],o,u;if(this._peek.type===16)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let m=this._advance();a.push(m),m.type===17?i+=m.parts.join("").replace(/&([^;]+);/g,ci):m.type===9?i+=m.parts[0]:i+=m.parts.join(""),u=n=m.sourceSpan.end}this._peek.type===15&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new h((s==null?void 0:s.sourceSpan.start)??o.start,u,(s==null?void 0:s.sourceSpan.fullStart)??o.fullStart);return new Kt(r,i,new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ht(o.parts[0],o.sourceSpan))}this._peek.type===26&&this._advance();let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new ee(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,ee,e.sourceSpan)||this.errors.push(L.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ht(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new ee(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,ee,null),this.errors.push(L.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let r=e.parts[0],n,s;if(this._peek.type!==31){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==32){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else s=this._advance();let i=s.sourceSpan.fullStart,a=new h(e.sourceSpan.start,i,e.sourceSpan.fullStart),o=e.sourceSpan.toString().lastIndexOf(r),u=e.sourceSpan.start.moveBy(o),p=new h(u,e.sourceSpan.end),l=new mt(r,n.parts[0],a,p,n.sourceSpan);this._addToParent(l)}_consumeIncompleteLet(e){let r=e.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let s=e.sourceSpan.toString().lastIndexOf(r),i=e.sourceSpan.start.moveBy(s),a=new h(i,e.sourceSpan.end),o=new h(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),u=new mt(r,"",e.sourceSpan,a,o);this._addToParent(u)}this.errors.push(L.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof Y)return this._containerStack[e];return null}_addToParent(e){let r=this._getContainer();r===null?this.rootNodes.push(e):r.children.push(e)}_getElementFullName(e,r,n){if(e===""&&(e=this.getTagDefinition(r).implicitNamespacePrefix||"",e===""&&n!=null)){let s=ct(n.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=Me(n.name))}return qe(e,r)}};function li(t,e){return t.length>0&&t[t.length-1]===e}function ci(t,e){return Ve[e]!==void 0?Ve[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var ar=class extends ir{constructor(){super(He)}parse(e,r,n,s=!1,i){return super.parse(e,r,n,s,i)}};var Qr=null,Yo=()=>(Qr||(Qr=new ar),Qr);function Jr(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:s=!1,getTagContentType:i,tokenizeAngularBlocks:a=!1,tokenizeAngularLetDeclaration:o=!1}=e;return Yo().parse(t,"angular-html-parser",{tokenizeExpansionForms:a,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a,tokenizeLet:o},s,i)}function jo(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var pi=jo;var _t=3;function Ko(t){let e=t.slice(0,_t);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(` -`,_t);if(r===-1)return;let n=t.slice(_t,r).trim(),s=t.indexOf(` -${e}`,r),i=n;if(i||(i=e==="+++"?"toml":"yaml"),s===-1&&e==="---"&&i==="yaml"&&(s=t.indexOf(` -...`,r)),s===-1)return;let a=s+1+_t,o=t.charAt(a+1);if(!/\s?/u.test(o))return;let u=t.slice(0,a);return{type:"front-matter",language:i,explicitLanguage:n,value:t.slice(r+1,s),startDelimiter:e,endDelimiter:u.slice(-_t),raw:u}}function Xo(t){let e=Ko(t);if(!e)return{content:t};let{raw:r}=e;return{frontMatter:e,content:w(!1,r,/[^\n]/gu," ")+t.slice(r.length)}}var hi=Xo;var or={attrs:!0,children:!0,cases:!0,expression:!0},mi=new Set(["parent"]),le,Zr,en,Ge=class Ge{constructor(e={}){Dt(this,le);cr(this,"type");cr(this,"parent");for(let r of new Set([...mi,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in or&&(r=r.map(n=>this.createChild(n))),!mi.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in or){let s=this[n];if(s){let i=Qo(s,a=>a.map(e));r!==s&&(r||(r=new Ge({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in or||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in or){let n=this[r];if(n)for(let s=0;s[e.fullName,e.value]))}};le=new WeakSet,Zr=function(){return this.type==="angularIcuCase"?"expression":this.type==="angularIcuExpression"?"cases":"children"},en=function(){var e;return((e=this.parent)==null?void 0:e.$children)??[]};var ur=Ge;function Qo(t,e){let r=t.map(e);return r.some((n,s)=>n!==t[s])?r:t}var Jo=[{regex:/^(\[if([^\]]*)\]>)(.*?){try{return[!0,e(i,o).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new h(o,u)}]]}})();return{type:"ieConditionalComment",complete:p,children:l,condition:w(!1,s.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan,startSourceSpan:new h(t.sourceSpan.start,o),endSourceSpan:new h(u,t.sourceSpan.end)}}function eu(t,e,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:w(!1,n.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan}}function tu(t){return{type:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}var lr=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]);var di=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function ru(t){if(t.type==="block"){if(t.name=w(!1,t.name.toLowerCase(),/\s+/gu," ").trim(),t.type="angularControlFlowBlock",!me(t.parameters)){delete t.parameters;return}for(let e of t.parameters)e.type="angularControlFlowBlockParameter";t.parameters={type:"angularControlFlowBlockParameters",children:t.parameters,sourceSpan:new h(t.parameters[0].sourceSpan.start,K(!1,t.parameters,-1).sourceSpan.end)}}}function nu(t){t.type==="letDeclaration"&&(t.type="angularLetDeclaration",t.id=t.name,t.init={type:"angularLetDeclarationInitializer",sourceSpan:new h(t.valueSpan.start,t.valueSpan.end),value:t.value},delete t.name,delete t.value)}function su(t){(t.type==="plural"||t.type==="select")&&(t.clause=t.type,t.type="angularIcuExpression"),t.type==="expansionCase"&&(t.type="angularIcuCase")}function Ci(t,e,r){let{name:n,canSelfClose:s=!0,normalizeTagName:i=!1,normalizeAttributeName:a=!1,allowHtmComponentClosingTags:o=!1,isTagNameCaseSensitive:u=!1,shouldParseAsRawText:p}=e,{rootNodes:l,errors:m}=Jr(t,{canSelfClose:s,allowHtmComponentClosingTags:o,isTagNameCaseSensitive:u,getTagContentType:p?(...c)=>p(...c)?N.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:n==="angular"?!0:void 0,tokenizeAngularLetDeclaration:n==="angular"?!0:void 0});if(n==="vue"){if(l.some(x=>x.type==="docType"&&x.value==="html"||x.type==="element"&&x.name.toLowerCase()==="html"))return Ci(t,tn,r);let g,y=()=>g??(g=Jr(t,{canSelfClose:s,allowHtmComponentClosingTags:o,isTagNameCaseSensitive:u})),q=x=>y().rootNodes.find(({startSourceSpan:U})=>U&&U.start.offset===x.startSourceSpan.start.offset)??x;for(let[x,U]of l.entries()){let{endSourceSpan:nn,startSourceSpan:_i}=U;if(nn===null)m=y().errors,l[x]=q(U);else if(iu(U,r)){let sn=y().errors.find(an=>an.span.start.offset>_i.start.offset&&an.span.start.offset0&&gi(m[0]);let f=c=>{let g=c.name.startsWith(":")?c.name.slice(1).split(":")[0]:null,y=c.nameSpan.toString(),q=g!==null&&y.startsWith(`${g}:`),x=q?y.slice(g.length+1):y;c.name=x,c.namespace=g,c.hasExplicitNamespace=q},C=c=>{switch(c.type){case"element":f(c);for(let g of c.attrs)f(g),g.valueSpan?(g.value=g.valueSpan.toString(),/["']/u.test(g.value[0])&&(g.value=g.value.slice(1,-1))):g.value=null;break;case"comment":c.value=c.sourceSpan.toString().slice(4,-3);break;case"text":c.value=c.sourceSpan.toString();break}},A=(c,g)=>{let y=c.toLowerCase();return g(y)?y:c},D=c=>{if(c.type==="element"&&(i&&(!c.namespace||c.namespace===c.tagDefinition.implicitNamespacePrefix||fe(c))&&(c.name=A(c.name,g=>di.has(g))),a))for(let g of c.attrs)g.namespace||(g.name=A(g.name,y=>lr.has(c.name)&&(lr.get("*").has(y)||lr.get(c.name).has(y))))},I=c=>{c.sourceSpan&&c.endSourceSpan&&(c.sourceSpan=new h(c.sourceSpan.start,c.endSourceSpan.end))},F=c=>{if(c.type==="element"){let g=He(u?c.name:c.name.toLowerCase());!c.namespace||c.namespace===g.implicitNamespacePrefix||fe(c)?c.tagDefinition=g:c.tagDefinition=He("")}};return Jt(new class extends ft{visitExpansionCase(c,g){n==="angular"&&this.visitChildren(g,y=>{y(c.expression)})}visit(c){C(c),F(c),D(c),I(c)}},l),l}function iu(t,e){var n;if(t.type!=="element"||t.name!=="template")return!1;let r=(n=t.attrs.find(s=>s.name==="lang"))==null?void 0:n.value;return!r||Ne(e,{language:r})==="html"}function gi(t){let{msg:e,span:{start:r,end:n}}=t;throw pi(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:t})}function Si(t,e,r={},n=!0){let{frontMatter:s,content:i}=n?hi(t):{frontMatter:null,content:t},a=new ve(t,r.filepath),o=new ie(a,0,0,0),u=o.moveBy(t.length),p={type:"root",sourceSpan:new h(o,u),children:Ci(i,e,r)};if(s){let f=new ie(a,0,0,0),C=f.moveBy(s.raw.length);s.sourceSpan=new h(f,C),p.children.unshift(s)}let l=new ur(p),m=(f,C)=>{let{offset:A}=C,D=w(!1,t.slice(0,A),/[^\n\r]/gu," "),F=Si(D+f,e,r,!1);F.sourceSpan=new h(C,K(!1,F.children,-1).sourceSpan.end);let c=F.children[0];return c.length===A?F.children.shift():(c.sourceSpan=new h(c.sourceSpan.start.moveBy(A),c.sourceSpan.end),c.value=c.value.slice(A)),F};return l.walk(f=>{if(f.type==="comment"){let C=fi(f,m);C&&f.parent.replaceChild(f,C)}ru(f),nu(f),su(f)}),l}function Et(t){return{parse:(e,r)=>Si(e,t,r),hasPragma:ys,hasIgnorePragma:ws,astFormat:"html",locStart:J,locEnd:se}}var tn={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},au=Et(tn),ou=new Set(["mj-style","mj-raw"]),uu=Et({...tn,name:"mjml",shouldParseAsRawText:t=>ou.has(t)}),lu=Et({name:"angular"}),cu=Et({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,n){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||n.some(({name:s,value:i})=>s==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),pu=Et({name:"lwc",canSelfClose:!1});var hu={html:Ms};return wi(mu);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/html.mjs b/node_modules/prettier/plugins/html.mjs deleted file mode 100644 index 18101d7..0000000 --- a/node_modules/prettier/plugins/html.mjs +++ /dev/null @@ -1,22 +0,0 @@ -var on=Object.defineProperty;var un=t=>{throw TypeError(t)};var Ai=(t,e,r)=>e in t?on(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ln=(t,e)=>{for(var r in e)on(t,r,{get:e[r],enumerable:!0})};var lr=(t,e,r)=>Ai(t,typeof e!="symbol"?e+"":e,r),cn=(t,e,r)=>e.has(t)||un("Cannot "+r);var R=(t,e,r)=>(cn(t,e,"read from private field"),r?r.call(t):e.get(t)),At=(t,e,r)=>e.has(t)?un("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),pn=(t,e,r,n)=>(cn(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var rn={};ln(rn,{languages:()=>Hs,options:()=>Us,parsers:()=>tn,printers:()=>uu});var Di=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},w=Di;var we="string",ze="array",Ye="cursor",be="indent",Te="align",je="trim",xe="group",ke="fill",ce="if-break",Be="indent-if-break",Ke="line-suffix",Xe="line-suffix-boundary",j="line",Qe="label",Le="break-parent",Dt=new Set([Ye,be,Te,je,xe,ke,ce,Be,Ke,Xe,j,Qe,Le]);var vi=(t,e,r)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},K=vi;function yi(t){if(typeof t=="string")return we;if(Array.isArray(t))return ze;if(!t)return;let{type:e}=t;if(Dt.has(e))return e}var Fe=yi;var wi=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function bi(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(Fe(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=wi([...Dt].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${n}.`}var cr=class extends Error{name="InvalidDocError";constructor(e){super(bi(e)),this.doc=e}},pr=cr;function hr(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Fe(i)){case ze:return e(i.map(n));case ke:return e({...i,parts:i.parts.map(n)});case ce:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case xe:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case Te:case be:case Be:case Qe:case Ke:return e({...i,contents:n(i.contents)});case we:case Ye:case je:case Xe:case j:case Le:return e(i);default:throw new pr(i)}}}function B(t,e=hn){return hr(t,r=>typeof r=="string"?H(e,r.split(` -`)):r)}var mr=()=>{},re=mr,fr=mr,mn=mr;function k(t){return re(t),{type:be,contents:t}}function fn(t,e){return re(e),{type:Te,contents:e,n:t}}function E(t,e={}){return re(t),fr(e.expandedStates,!0),{type:xe,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function dn(t){return fn(Number.NEGATIVE_INFINITY,t)}function gn(t){return fn({type:"root"},t)}function vt(t){return mn(t),{type:ke,parts:t}}function pe(t,e="",r={}){return re(t),e!==""&&re(e),{type:ce,breakContents:t,flatContents:e,groupId:r.groupId}}function Cn(t,e){return re(t),{type:Be,contents:t,groupId:e.groupId,negate:e.negate}}var ne={type:Le};var xi={type:j,hard:!0},ki={type:j,hard:!0,literal:!0},_={type:j},v={type:j,soft:!0},S=[xi,ne],hn=[ki,ne];function H(t,e){re(t),fr(e);let r=[];for(let n=0;ni?n:r}var _n=Bi;function dr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var V,gr=class{constructor(e){At(this,V);pn(this,V,new Set(e))}getLeadingWhitespaceCount(e){let r=R(this,V),n=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return R(this,V).has(e.charAt(0))}hasTrailingWhitespace(e){return R(this,V).has(K(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${dr([...R(this,V)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=R(this,V);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=R(this,V);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=R(this,V);return Array.prototype.every.call(e,n=>r.has(n))}};V=new WeakMap;var En=gr;var Li=[" ",` -`,"\f","\r"," "],Fi=new En(Li),O=Fi;var Cr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},An=Cr;function Pi(t){return(t==null?void 0:t.type)==="front-matter"}var Pe=Pi;var Ni=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Ii=new Set(["if","else if","for","switch","case"]);function Dn(t,e){var r;if(t.type==="text"||t.type==="comment"||Pe(t)||t.type==="yaml"||t.type==="toml")return null;if(t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value,t.type==="angularControlFlowBlock"&&((r=t.parameters)!=null&&r.children))for(let n of e.parameters.children)Ii.has(t.name)?delete n.expression:n.expression=n.expression.trim();t.type==="angularIcuExpression"&&(e.switchValue=t.switchValue.trim()),t.type==="angularLetDeclarationInitializer"&&delete e.value}Dn.ignoredProperties=Ni;var vn=Dn;async function Ri(t,e){if(t.language==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return gn([t.startDelimiter,t.explicitLanguage,S,n,n?S:"",t.endDelimiter])}}var yn=Ri;function he(t,e=!0){return[k([v,t]),e?v:""]}function X(t,e){let r=t.type==="NGRoot"?t.node.type==="NGMicrosyntax"&&t.node.body.length===1&&t.node.body[0].type==="NGMicrosyntaxExpression"?t.node.body[0].expression:t.node:t.type==="JsExpressionRoot"?t.node:t;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function T(t,e,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let s=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{s=n(a,o)});let i=await e(t,r,e);return s?E(i):he(i)}function $i(t,e,r,n){let{node:s}=r,i=n.originalText.slice(s.sourceSpan.start.offset,s.sourceSpan.end.offset);return/^\s*$/u.test(i)?"":T(i,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},X)}var wn=$i;var Oi=(t,e)=>{if(!(t&&e==null))return e.toReversed||!Array.isArray(e)?e.toReversed():[...e].reverse()},bn=Oi;function Mi(t){return Array.isArray(t)&&t.length>0}var me=Mi;var Tn,xn,kn,Bn,Ln,qi=((Tn=globalThis.Deno)==null?void 0:Tn.build.os)==="windows"||((kn=(xn=globalThis.navigator)==null?void 0:xn.platform)==null?void 0:kn.startsWith("Win"))||((Ln=(Bn=globalThis.process)==null?void 0:Bn.platform)==null?void 0:Ln.startsWith("win"))||!1;function Fn(t){if(t=t instanceof URL?t:new URL(t),t.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);return t}function Hi(t){return t=Fn(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Vi(t){t=Fn(t);let e=decodeURIComponent(t.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return t.hostname!==""&&(e=`\\\\${t.hostname}${e}`),e}function Pn(t){return qi?Vi(t):Hi(t)}var Nn=Pn;var Ui=t=>String(t).split(/[/\\]/u).pop();function In(t,e){if(!e)return;let r=Ui(e).toLowerCase();return t.find(({filenames:n})=>n==null?void 0:n.some(s=>s.toLowerCase()===r))??t.find(({extensions:n})=>n==null?void 0:n.some(s=>r.endsWith(s)))}function Wi(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function Rn(t,e){if(e){if(String(e).startsWith("file:"))try{e=Nn(e)}catch{return}if(typeof e=="string")return t.find(({isSupported:r})=>r==null?void 0:r({filepath:e}))}}function Gi(t,e){let r=bn(!1,t.plugins).flatMap(s=>s.languages??[]),n=Wi(r,e.language)??In(r,e.physicalFile)??In(r,e.file)??Rn(r,e.physicalFile)??Rn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Ne=Gi;var $n="inline",Sr={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},On="normal",_r={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function zi(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var fe=zi;var Yi=t=>w(!1,t,/^[\t\f\r ]*\n/gu,""),Er=t=>Yi(O.trimEnd(t)),Mn=t=>{let e=t,r=O.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=O.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function wt(t,e){return!!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||de(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||xt(t,e)&&!W(t,e)&&t.type!=="interpolation")}function ge(t){return t.type==="attribute"||!t.parent||!t.prev?!1:ji(t.prev)}function ji(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function $(t){return t.type==="text"||t.type==="comment"}function W(t,e){return t.type==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||t.fullName==="mj-style"&&e.parser==="mjml"||fe(t)&&(t.name==="script"||t.name==="style"))}function qn(t,e){return t.children&&!W(t,e)}function Hn(t,e){return W(t,e)||t.type==="interpolation"||Ar(t)}function Ar(t){return Jn(t).startsWith("pre")}function Vn(t,e){var s,i;let r=n();if(r&&!t.prev&&((i=(s=t.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf))return t.type==="interpolation";return r;function n(){return Pe(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.prev&&(t.prev.type==="text"||t.prev.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:de(t.parent)?!0:!(!t.prev&&(t.parent.type==="root"||de(t)&&t.parent||W(t.parent,e)||et(t.parent,e)||!ea(t.parent.cssDisplay))||t.prev&&!na(t.prev.cssDisplay))}}function Un(t,e){return Pe(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.next&&(t.next.type==="text"||t.next.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:de(t.parent)?!0:!(!t.next&&(t.parent.type==="root"||de(t)&&t.parent||W(t.parent,e)||et(t.parent,e)||!ta(t.parent.cssDisplay))||t.next&&!ra(t.next.cssDisplay))}function Wn(t,e){return sa(t.cssDisplay)&&!W(t,e)}function Je(t){return Pe(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+10&&(["body","script","style"].includes(t.name)||t.children.some(e=>Xi(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.type!=="text"&&Yn(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||jn(t.lastChild))}function Dr(t){return t.type==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function bt(t){return Kn(t)||t.prev&&Ki(t.prev)||zn(t)}function Ki(t){return Kn(t)||t.type==="element"&&t.fullName==="br"||zn(t)}function zn(t){return Yn(t)&&jn(t)}function Yn(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.linet.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function Kn(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function Tt(t){return t.lastChild?Tt(t.lastChild):t}function Xi(t){var e;return(e=t.children)==null?void 0:e.some(r=>r.type!=="text")}function Xn(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function Qi(t,e){let{name:r,attrMap:n}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t.attrMap;return!i&&!s?"babel":Ne(e,{language:i})??Xn(s)}function Ji(t,e){if(!xt(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Ne(e,{language:s})??Xn(n)}function Zi(t,e){if(t.name==="style"){let{lang:r}=t.attrMap;return r?Ne(e,{language:r}):"css"}if(t.name==="mj-style"&&e.parser==="mjml")return"css"}function vr(t,e){return Qi(t,e)??Zi(t,e)??Ji(t,e)}function Ze(t){return t==="block"||t==="list-item"||t.startsWith("table")}function ea(t){return!Ze(t)&&t!=="inline-block"}function ta(t){return!Ze(t)&&t!=="inline-block"}function ra(t){return!Ze(t)}function na(t){return!Ze(t)}function sa(t){return!Ze(t)&&t!=="inline-block"}function de(t){return Jn(t).startsWith("pre")}function ia(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function Qn(t,e){var n;if(Ce(t,e))return"block";if(((n=t.prev)==null?void 0:n.type)==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(s)return s[1]}let r=!1;if(t.type==="element"&&t.namespace==="svg")if(ia(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(t.type==="element"&&(!t.namespace||r||fe(t))&&Object.prototype.hasOwnProperty.call(Sr,t.name))return Sr[t.name]}return $n}function Jn(t){return t.type==="element"&&(!t.namespace||fe(t))&&Object.prototype.hasOwnProperty.call(_r,t.name)?_r[t.name]:On}function aa(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(` -`)){if(r.length===0)continue;let n=O.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&nr.slice(e)).join(` -`)}function wr(t){return w(!1,w(!1,t,"'","'"),""",'"')}function P(t){return wr(t.value)}var oa=new Set(["template","style","script"]);function et(t,e){return Ce(t,e)&&!oa.has(t.fullName)}function Ce(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function xt(t,e){return Ce(t,e)&&(et(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function Zn(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function es(t,e){let r=t.parent;if(!Ce(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function kt(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?B(e):B(yr(Er(e)),S):H(_,O.split(e))}function Bt(t,e){return Ce(t,e)&&t.name==="script"}var br=/\{\{(.+?)\}\}/su;async function ts(t,e){let r=[];for(let[n,s]of t.split(br).entries())if(n%2===0)r.push(B(s));else try{r.push(E(["{{",k([_,await T(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),_,"}}"]))}catch{r.push("{{",B(s),"}}")}return r}function Tr({parser:t}){return(e,r,n)=>T(P(n.node),e,{parser:t},X)}var ua=Tr({parser:"__ng_action"}),la=Tr({parser:"__ng_binding"}),ca=Tr({parser:"__ng_directive"});function pa(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return ua;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return la;if(n.startsWith("*"))return ca;let s=P(r);if(/^i18n(?:-.+)?$/u.test(n))return()=>he(vt(kt(r,s.trim())),!s.includes("@@"));if(br.test(s))return i=>ts(s,i)}var rs=pa;function ha(t,e){let{node:r}=t,n=P(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/u).join(" ")}var ns=ha;function ss(t){return t===" "||t===` -`||t==="\f"||t==="\r"||t===" "}var ma=/^[ \t\n\r\u000c]+/,fa=/^[, \t\n\r\u000c]+/,da=/^[^ \t\n\r\u000c]+/,ga=/[,]+$/,is=/^\d+$/,Ca=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Sa(t){let e=t.length,r,n,s,i,a,o=0,u;function p(C){let A,D=C.exec(t.substring(o));if(D)return[A]=D,o+=A.length,A}let l=[];for(;;){if(p(fa),o>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}u=o,r=p(da),n=[],r.slice(-1)===","?(r=r.replace(ga,""),f()):m()}function m(){for(p(ma),s="",i="in descriptor";;){if(a=t.charAt(o),i==="in descriptor")if(ss(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){o+=1,s&&n.push(s),f();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),f();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),f();return}else s+=a;else if(i==="after descriptor"&&!ss(a))if(a===""){f();return}else i="in descriptor",o-=1;o+=1}}function f(){let C=!1,A,D,I,F,c={},g,y,q,x,U;for(F=0;FAa(P(t.node))}var os={width:"w",height:"h",density:"x"},Ea=Object.keys(os);function Aa(t){let e=as(t),r=Ea.filter(l=>e.some(m=>Object.prototype.hasOwnProperty.call(m,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,s=os[n],i=e.map(l=>l.source.value),a=Math.max(...i.map(l=>l.length)),o=e.map(l=>l[n]?String(l[n].value):""),u=o.map(l=>{let m=l.indexOf(".");return m===-1?l.length:m}),p=Math.max(...u);return he(H([",",_],i.map((l,m)=>{let f=[l],C=o[m];if(C){let A=a-l.length+1,D=p-u[m],I=" ".repeat(A+D);f.push(pe(I," "),C+s)}return f})))}var us=_a;function ls(t,e){let{node:r}=t,n=P(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>he(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}var xr=new WeakMap;function Da(t,e){let{root:r}=t;return xr.has(r)||xr.set(r,r.children.some(n=>Bt(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),xr.get(r)}var Ie=Da;function cs(t,e,r){let{node:n}=r,s=P(n);return T(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},X)}function ps(t,e,{parseWithTs:r}){return T(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}async function hs(t,e,r,n){let s=P(r.node),{left:i,operator:a,right:o}=va(s),u=Ie(r,n);return[E(await T(`function _(${i}) {}`,t,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await T(o,t,{parser:u?"__ts_expression":"__js_expression"})]}function va(t){let e=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,s=t.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=w(!1,s[1].trim(),n,""),o=a.match(r);o?(i.alias=a.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=a;let u=[i.alias,i.iterator1,i.iterator2];if(!u.some((p,l)=>!p&&(l===0||u.slice(l+1).some(Boolean))))return{left:u.filter(Boolean).join(","),operator:s[2],right:i.for}}function ya(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return hs;if(n==="generic"&&Bt(r.parent,e))return cs;let s=P(r),i=Ie(t,e);if(Zn(r)||es(r,e))return a=>ps(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>wa(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith(".")||n.startsWith("v-bind:"))return a=>ba(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>ms(s,a,{parseWithTs:i})}async function wa(t,e,{parseWithTs:r}){var n;try{return await ms(t,e,{parseWithTs:r})}catch(s){if(((n=s.cause)==null?void 0:n.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw s}return T(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},X)}function ba(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},X)}function ms(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__ts_expression":"__js_expression"},X)}var fs=ya;function Ta(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[us,ls,ns,fs,rs]){let s=n(t,e);if(s)return xa(s)}}}function xa(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=hr(i,a=>typeof a=="string"?w(!1,a,'"',"""):a),[n.node.rawName,'="',E(i),'"']}}var ds=Ta;var ka=new Proxy(()=>{},{get:()=>ka});function J(t){return t.sourceSpan.start.offset}function se(t){return t.sourceSpan.end.offset}function tt(t,e){return[t.isSelfClosing?"":Ba(t,e),Se(t,e)]}function Ba(t,e){return t.lastChild&&Ae(t.lastChild)?"":[La(t,e),Lt(t,e)]}function Se(t,e){return(t.next?Q(t.next):Ee(t.parent))?"":[_e(t,e),G(t,e)]}function La(t,e){return Ee(t)?_e(t.lastChild,e):""}function G(t,e){return Ae(t)?Lt(t.parent,e):rt(t)?Ft(t.next,e):""}function Lt(t,e){if(Cs(t,e))return"";switch(t.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function Cs(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(ge(t)||wt(t.parent,e))}function Q(t){return t.prev&&t.prev.type!=="docType"&&t.type!=="angularControlFlowBlock"&&!$(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function Ee(t){var e;return((e=t.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t.lastChild.hasTrailingSpaces&&!$(Tt(t.lastChild))&&!de(t)}function Ae(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&$(Tt(t))}function rt(t){return t.next&&!$(t.next)&&$(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function Fa(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return e?e[1]?e[1].split(/\s+/u):!0:!1}function nt(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function Pa(t,e,r){var m;let{node:n}=t;if(!me(n.attrs))return n.isSelfClosing?" ":"";let s=((m=n.prev)==null?void 0:m.type)==="comment"&&Fa(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?f=>s.includes(f.rawName):()=>!1,a=t.map(({node:f})=>i(f)?B(e.originalText.slice(J(f),se(f))):r(),"attrs"),o=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,p=e.singleAttributePerLine&&n.attrs.length>1&&!Ce(n,e)?S:_,l=[k([o?" ":_,H(p,a)])];return n.firstChild&&nt(n.firstChild)||n.isSelfClosing&&Ee(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?_:v),l}function Na(t){return t.firstChild&&nt(t.firstChild)?"":Pt(t)}function st(t,e,r){let{node:n}=t;return[De(n,e),Pa(t,e,r),n.isSelfClosing?"":Na(n)]}function De(t,e){return t.prev&&rt(t.prev)?"":[z(t,e),Ft(t,e)]}function z(t,e){return nt(t)?Pt(t.parent):Q(t)?_e(t.prev,e):""}var gs="<${t.rawName}`;default:return`<${t.rawName}`}}function Pt(t){switch(t.type){case"ieConditionalComment":return"]>";case"element":if(t.condition)return">";default:return">"}}function Ia(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&nt(t.firstChild)&&(r-=Pt(t).length);let n=t.endSourceSpan.start.offset;return t.lastChild&&Ae(t.lastChild)?n+=Lt(t,e).length:Ee(t)&&(n-=_e(t.lastChild,e).length),e.originalText.slice(r,n)}var Nt=Ia;var Ra=new Set(["if","else if","for","switch","case"]);function $a(t,e){let{node:r}=t;switch(r.type){case"element":if(W(r,e)||r.type==="interpolation")return;if(!r.isSelfClosing&&xt(r,e)){let n=vr(r,e);return n?async(s,i)=>{let a=Nt(r,e),o=/^\s*$/u.test(a),u="";return o||(u=await s(Er(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[z(r,e),E(st(t,e,i)),o?"":S,u,o?"":S,tt(r,e),G(r,e)]}:void 0}break;case"text":if(W(r.parent,e)){let n=vr(r.parent,e);if(n)return async s=>{let i=n==="markdown"?yr(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(e.parser==="html"&&n==="babel"){let o="script",{attrMap:u}=r.parent;u&&(u.type==="module"||(u.type==="text/babel"||u.type==="text/jsx")&&u["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[ne,z(r,e),await s(i,a),G(r,e)]}}else if(r.parent.type==="interpolation")return async n=>{let s={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?s.parser="__ng_interpolation":e.parser==="vue"?s.parser=Ie(t,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[k([_,await n(r.value,s)]),r.parent.next&&Q(r.parent.next)?" ":_]};break;case"attribute":return ds(t,e);case"front-matter":return n=>yn(r,n);case"angularControlFlowBlockParameters":return Ra.has(t.parent.name)?wn:void 0;case"angularLetDeclarationInitializer":return n=>T(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var Ss=$a;var it=null;function at(t){if(it!==null&&typeof it.property){let e=it;return it=at.prototype=null,e}return it=at.prototype=t??Object.create(null),new at}var Oa=10;for(let t=0;t<=Oa;t++)at();function kr(t){return at(t)}function Ma(t,e="type"){kr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var _s=Ma;var qa={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},Es=qa;var Ha=_s(Es),As=Ha;var Ds="format";var vs=/^\s*/u,ys=/^\s*/u;function ws(t){return ys.test(t)}function bs(t){return vs.test(t)}function Ts(t){return` - -${t}`}var xs=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function ks(t){let e=se(t);return t.type==="element"&&!t.endSourceSpan&&me(t.children)?Math.max(e,ks(K(!1,t.children,-1))):e}function ot(t,e,r){let n=t.node;if(ge(n)){let s=ks(n);return[z(n,e),B(O.trimEnd(e.originalText.slice(J(n)+(n.prev&&rt(n.prev)?Ft(n).length:0),s-(n.next&&Q(n.next)?_e(n,e).length:0)))),G(n,e)]}return r()}function It(t,e){return $(t)&&$(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?bt(e)?S:_:"":bt(e)?S:v:rt(t)&&(ge(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&Q(e)?"":!e.isLeadingSpaceSensitive||bt(e)||Q(e)&&t.lastChild&&Ae(t.lastChild)&&t.lastChild.lastChild&&Ae(t.lastChild.lastChild)?S:e.hasLeadingSpaces?_:v}function Re(t,e,r){let{node:n}=t;if(Dr(n))return[ne,...t.map(i=>{let a=i.node,o=a.prev?It(a.prev,a):"";return[o?[o,Je(a.prev)?S:""]:"",ot(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let o=i.node;if($(o)){if(o.prev&&$(o.prev)){let A=It(o.prev,o);if(A)return Je(o.prev)?[S,S,ot(i,e,r)]:[A,ot(i,e,r)]}return ot(i,e,r)}let u=[],p=[],l=[],m=[],f=o.prev?It(o.prev,o):"",C=o.next?It(o,o.next):"";return f&&(Je(o.prev)?u.push(S,S):f===S?u.push(S):$(o.prev)?p.push(f):p.push(pe("",v,{groupId:s[a-1]}))),C&&(Je(o)?$(o.next)&&m.push(S,S):C===S?$(o.next)&&m.push(S):l.push(C)),[...u,E([...p,E([ot(i,e,r),...l],{id:s[a]})]),...m]},"children")}function Bs(t,e,r){let{node:n}=t,s=[];Va(t)&&s.push("} "),s.push("@",n.name),n.parameters&&s.push(" (",E(r("parameters")),")"),s.push(" {");let i=Ls(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,s.push(k([S,Re(t,e,r)])),i&&s.push(S,"}")):i&&s.push("}"),E(s,{shouldBreak:!0})}function Ls(t){var e,r;return!(((e=t.next)==null?void 0:e.type)==="angularControlFlowBlock"&&((r=xs.get(t.name))!=null&&r.has(t.next.name)))}function Va(t){let{previous:e}=t;return(e==null?void 0:e.type)==="angularControlFlowBlock"&&!ge(e)&&!Ls(e)}function Fs(t,e,r){return[k([v,H([";",_],t.map(r,"children"))]),v]}function Ps(t,e,r){let{node:n}=t;return[De(n,e),E([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",k([_,H(_,t.map(r,"cases"))])]:"",v]),Se(n,e)]}function Ns(t,e,r){let{node:n}=t;return[n.value," {",E([k([v,t.map(({node:s,isLast:i})=>{let a=[r()];return s.type==="text"&&(s.hasLeadingSpaces&&a.unshift(_),s.hasTrailingSpaces&&!i&&a.push(_)),a},"expression")]),v]),"}"]}function Is(t,e,r){let{node:n}=t;if(wt(n,e))return[z(n,e),E(st(t,e,r)),B(Nt(n,e)),...tt(n,e),G(n,e)];let s=n.children.length===1&&(n.firstChild.type==="interpolation"||n.firstChild.type==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=l=>E([E(st(t,e,r),{id:i}),l,tt(n,e)]),o=l=>s?Cn(l,{groupId:i}):(W(n,e)||et(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:k(l),u=()=>s?pe(v,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?_:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?dn(v):v,p=()=>(n.next?Q(n.next):Ee(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?pe(v,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?_:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":v;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?_:""):a([Gn(n)?ne:"",o([u(),Re(t,e,r)]),p()])}function ut(t){return t>=9&&t<=32||t==160}function Rt(t){return 48<=t&&t<=57}function lt(t){return t>=97&&t<=122||t>=65&&t<=90}function Rs(t){return t>=97&&t<=102||t>=65&&t<=70||Rt(t)}function $t(t){return t===10||t===13}function Br(t){return 48<=t&&t<=55}function Ot(t){return t===39||t===34||t===96}var Ua=/-+([a-z0-9])/g;function Os(t){return t.replace(Ua,(...e)=>e[1].toUpperCase())}var ie=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let u=r.substring(0,s-1).lastIndexOf(String.fromCharCode(10));a=u>0?s-u:s}else a--;for(;s0;){let o=r.charCodeAt(s);s++,e--,o==10?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,o=0;for(;a0&&(s--,a++,!(n[s]==` -`&&++o==r)););for(a=0,o=0;a]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var Wa=[za,Ya,Ka,Qa,Ja,to,Za,eo,ro,Xa];function Ga(t,e){for(let r of Wa)r(t,e);return t}function za(t){t.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===` -`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function Ya(t){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let s=0;se.type==="cdata",e=>``)}function Xa(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!O.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t.walk(r=>{if(r.children)for(let n=0;n`+s.firstChild.value+``+a.value,i.sourceSpan=new h(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function Qa(t,e){if(e.parser==="html")return;let r=/\{\{(.+?)\}\}/su;t.walk(n=>{if(qn(n,e))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,o=s.value.split(r);for(let u=0;u0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new h(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new h(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new h(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(s)}})}function Ja(t,e){t.walk(r=>{let n=r.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].type==="text"&&O.trim(n[0].value).length===0){r.hasDanglingSpaces=n.length>0,r.$children=[];return}let s=Hn(r,e),i=Ar(r);if(!s)for(let a=0;a{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function eo(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function to(t,e){t.walk(r=>{r.cssDisplay=Qn(r,e)})}function ro(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=Wn(r,e);return}for(let s of n)s.isLeadingSpaceSensitive=Vn(s,e),s.isTrailingSpaceSensitive=Un(s,e);for(let s=0;s of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Vs="HTML",io={bracketSameLine:Lr.bracketSameLine,htmlWhitespaceSensitivity:{category:Vs,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Lr.singleAttributePerLine,vueIndentScriptAndStyle:{category:Vs,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Us=io;var tn={};ln(tn,{angular:()=>iu,html:()=>ru,lwc:()=>ou,mjml:()=>su,vue:()=>au});var ah=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var Ws;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(Ws||(Ws={}));var Gs;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(Gs||(Gs={}));var zs;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(zs||(zs={}));var Fr={name:"custom-elements"},Pr={name:"no-errors-schema"};var Z;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(Z||(Z={}));var Ys;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(Ys||(Ys={}));var N;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(N||(N={}));function ct(t,e=!0){if(t[0]!=":")return[null,t];let r=t.indexOf(":",1);if(r===-1){if(e)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,r),t.slice(r+1)]}function Nr(t){return ct(t)[1]==="ng-container"}function Ir(t){return ct(t)[1]==="ng-content"}function Me(t){return t===null?null:ct(t)[0]}function qe(t,e){return t?`:${t}:${e}`:e}var Ht;function Rr(){return Ht||(Ht={},qt(Z.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),qt(Z.STYLE,["*|style"]),qt(Z.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),qt(Z.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Ht}function qt(t,e){for(let r of e)Ht[r.toLowerCase()]=t}var Vt=class{};var ao="boolean",oo="number",uo="string",lo="object",co=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],js=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),po=Array.from(js).reduce((t,[e,r])=>(t.set(e,r),t),new Map),Ut=class extends Vt{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,co.forEach(e=>{let r=new Map,n=new Set,[s,i]=e.split("|"),a=i.split(","),[o,u]=s.split("^");o.split(",").forEach(l=>{this._schema.set(l.toLowerCase(),r),this._eventSchema.set(l.toLowerCase(),n)});let p=u&&this._schema.get(u.toLowerCase());if(p){for(let[l,m]of p)r.set(l,m);for(let l of this._eventSchema.get(u.toLowerCase()))n.add(l)}a.forEach(l=>{if(l.length>0)switch(l[0]){case"*":n.add(l.substring(1));break;case"!":r.set(l.substring(1),ao);break;case"#":r.set(l.substring(1),oo);break;case"%":r.set(l.substring(1),lo);break;default:r.set(l,uo)}})})}hasProperty(e,r,n){if(n.some(i=>i.name===Pr.name))return!0;if(e.indexOf("-")>-1){if(Nr(e)||Ir(e))return!1;if(n.some(i=>i.name===Fr.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return r.some(n=>n.name===Pr.name)||e.indexOf("-")>-1&&(Nr(e)||Ir(e)||r.some(n=>n.name===Fr.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,r,n){n&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let s=Rr()[e+"|"+r];return s||(s=Rr()["*|"+r],s||Z.NONE)}getMappedPropName(e){return js.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... -If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>po.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return Os(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(ho(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:i+s}}};function ho(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var d=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=N.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:u=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(p=>this.closedByChildren[p]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=u??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Ks,pt;function He(t){return pt||(Ks=new d({canSelfClose:!0}),pt=Object.assign(Object.create(null),{base:new d({isVoid:!0}),meta:new d({isVoid:!0}),area:new d({isVoid:!0}),embed:new d({isVoid:!0}),link:new d({isVoid:!0}),img:new d({isVoid:!0}),input:new d({isVoid:!0}),param:new d({isVoid:!0}),hr:new d({isVoid:!0}),br:new d({isVoid:!0}),source:new d({isVoid:!0}),track:new d({isVoid:!0}),wbr:new d({isVoid:!0}),p:new d({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new d({closedByChildren:["tbody","tfoot"]}),tbody:new d({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new d({closedByChildren:["tbody"],closedByParent:!0}),tr:new d({closedByChildren:["tr"],closedByParent:!0}),td:new d({closedByChildren:["td","th"],closedByParent:!0}),th:new d({closedByChildren:["td","th"],closedByParent:!0}),col:new d({isVoid:!0}),svg:new d({implicitNamespacePrefix:"svg"}),foreignObject:new d({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new d({implicitNamespacePrefix:"math"}),li:new d({closedByChildren:["li"],closedByParent:!0}),dt:new d({closedByChildren:["dt","dd"]}),dd:new d({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new d({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new d({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new d({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new d({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new d({closedByChildren:["optgroup"],closedByParent:!0}),option:new d({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new d({ignoreFirstLf:!0}),listing:new d({ignoreFirstLf:!0}),style:new d({contentType:N.RAW_TEXT}),script:new d({contentType:N.RAW_TEXT}),title:new d({contentType:{default:N.ESCAPABLE_RAW_TEXT,svg:N.PARSABLE_DATA}}),textarea:new d({contentType:N.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Ut().allKnownElementNames().forEach(e=>{!pt[e]&&Me(e)===null&&(pt[e]=new d({canSelfClose:!1}))})),pt[t]??Ks}var ae=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},Wt=class extends ae{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="text"}visit(e,r){return e.visitText(this,r)}},Gt=class extends ae{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="cdata"}visit(e,r){return e.visitCdata(this,r)}},zt=class extends ae{constructor(e,r,n,s,i,a){super(s,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}},Yt=class{constructor(e,r,n,s,i){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=s,this.expSourceSpan=i,this.type="expansionCase"}visit(e,r){return e.visitExpansionCase(this,r)}},jt=class extends ae{constructor(e,r,n,s,i,a,o){super(n,o),this.name=e,this.value=r,this.keySpan=s,this.valueSpan=i,this.valueTokens=a,this.type="attribute"}visit(e,r){return e.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},Y=class extends ae{constructor(e,r,n,s,i,a=null,o=null,u){super(s,u),this.name=e,this.attrs=r,this.children=n,this.startSourceSpan=i,this.endSourceSpan=a,this.nameSpan=o,this.type="element"}visit(e,r){return e.visitElement(this,r)}},Kt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="comment"}visit(e,r){return e.visitComment(this,r)}},Xt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="docType"}visit(e,r){return e.visitDocType(this,r)}},ee=class extends ae{constructor(e,r,n,s,i,a,o=null,u){super(s,u),this.name=e,this.parameters=r,this.children=n,this.nameSpan=i,this.startSourceSpan=a,this.endSourceSpan=o,this.type="block"}visit(e,r){return e.visitBlock(this,r)}},ht=class{constructor(e,r){this.expression=e,this.sourceSpan=r,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitBlockParameter(this,r)}},mt=class{constructor(e,r,n,s,i){this.name=e,this.value=r,this.sourceSpan=n,this.nameSpan=s,this.valueSpan=i,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitLetDeclaration(this,r)}};function Qt(t,e,r=null){let n=[],s=t.visit?i=>t.visit(i,r)||i.visit(t,r):i=>i.visit(t,r);return e.forEach(i=>{let a=s(i);a&&n.push(a)}),n}var ft=class{constructor(){}visitElement(e,r){this.visitChildren(r,n=>{n(e.attrs),n(e.children)})}visitAttribute(e,r){}visitText(e,r){}visitCdata(e,r){}visitComment(e,r){}visitDocType(e,r){}visitExpansion(e,r){return this.visitChildren(r,n=>{n(e.cases)})}visitExpansionCase(e,r){}visitBlock(e,r){this.visitChildren(r,n=>{n(e.parameters),n(e.children)})}visitBlockParameter(e,r){}visitLetDeclaration(e,r){}visitChildren(e,r){let n=[],s=this;function i(a){a&&n.push(Qt(s,a,e))}return r(i),Array.prototype.concat.apply([],n)}};var Ve={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},fo="\uE500";Ve.ngsp=fo;var go=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Xs(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let r=e[0],n=e[1];go.forEach(s=>{if(s.test(r)||s.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}var $r=class t{static fromArray(e){return e?(Xs("interpolation",e),new t(e[0],e[1])):Or}constructor(e,r){this.start=e,this.end=r}},Or=new $r("{{","}}");var gt=class extends Oe{constructor(e,r,n){super(n,e),this.tokenType=r}},Ur=class{constructor(e,r,n){this.tokens=e,this.errors=r,this.nonNormalizedIcuExpressions=n}};function li(t,e,r,n={}){let s=new Wr(new ve(t,e),r,n);return s.tokenize(),new Ur(Vo(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var Io=/\r\n?/g;function Ue(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function ti(t){return`Unknown entity "${t}" - use the "&#;" or "&#x;" syntax`}function Ro(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var rr;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(rr||(rr={}));var Ct=class{constructor(e){this.error=e}},Wr=class{constructor(e,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||Or,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let s=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new Gr(e,s):new nr(e,s),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(Io,` -`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(34),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn(n=>ut(n)?!e:si(n)?(e=!0,!1):!0),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._beginToken(25,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(b),this._attemptCharCode(41))this._attemptCharCodeUntilFn(b);else{r.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):r.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(ii);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),r=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||r!==null;){let s=this._cursor.peek();if(s===92)this._cursor.advance();else if(s===r)r=null;else if(r===null&&Ot(s))r=s;else if(s===40&&r===null)n++;else if(s===41&&r===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(ii)}}_consumeLetDeclaration(e){if(this._beginToken(30,e),ut(this._cursor.peek()))this._attemptCharCodeUntilFn(b);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=33;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(b),!this._attemptCharCode(61)){r.type=33;return}this._attemptCharCodeUntilFn(s=>b(s)&&!$t(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(r.type=33,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(n=>lt(n)||n===36||n===95||r&&Rt(n)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(31,e);this._cursor.peek()!==0;){let r=this._cursor.peek();if(r===59)break;Ot(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(n=>n===92?(this._cursor.advance(),!1):n===r)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(qo(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new gt("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(this._currentTokenType===null)throw new gt("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new gt(e,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new Ct(n)}handleError(e){if(e instanceof St&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof Ct)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Ho(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Ue(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!$o(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(e),this._cursor.advance(),n=this._cursor.clone()):n=e,this._requireCharCodeUntilFn(ri,r===""?0:1);let s=this._cursor.getChars(n);return[r,s]}_consumeTagOpen(e){let r,n,s,i=[];try{if(!lt(this._cursor.peek()))throw this._createError(Ue(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),n=s.parts[0],r=s.parts[1],this._attemptCharCodeUntilFn(b);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[o,u]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(b),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(b);let p=this._consumeAttributeValue();i.push({prefix:o,name:u,value:p})}else i.push({prefix:o,name:u});this._attemptCharCodeUntilFn(b)}this._consumeTagOpenEnd()}catch(o){if(o instanceof Ct){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let a=this._getTagContentType(r,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,r),a===N.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):a===N.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(b),!this._attemptStrCaseInsensitive(e?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(b),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===62,3),this._cursor.advance(),this._endToken([e,r]),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(0,e);let r=this._consumePrefixAndName();return this._endToken(r)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Ue(e),this._cursor.getSpan());this._beginToken(14);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let r=this._cursor.peek();this._consumeQuote(r);let n=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(r)}else{let r=()=>ri(this._cursor.peek());e=this._consumeWithInterpolation(16,17,r,r)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(b),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let s=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(44),this._attemptCharCodeUntilFn(b),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(b)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(b),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,n,s){this._beginToken(e);let i=[];for(;!n();){let o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(r,o,s),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(""));return this._endToken([a]),a}_consumeInterpolation(e,r,n){let s=[];this._beginToken(e,r),s.push(this._interpolationConfig.start);let i=this._cursor.clone(),a=null,o=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let u=this._cursor.clone();if(this._isTagStart()){this._cursor=u,s.push(this._getProcessedChars(i,u)),this._endToken(s);return}if(a===null)if(this._attemptStr(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,u)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(o=!0);let p=this._cursor.peek();this._cursor.advance(),p===92?this._cursor.advance():p===a?a=null:!o&&a===null&&Ot(p)&&(a=p)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||r===47||r===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let e=this._cursor.clone();if(e.advance(),si(e.peek()))return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!r}return!0}_handleFullNameStackForTagOpen(e,r){let n=qe(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,r){let n=qe(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function b(t){return!ut(t)||t===0}function ri(t){return ut(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function $o(t){return(t<97||12257)}function Oo(t){return t===59||t===0||!Rs(t)}function Mo(t){return t===59||t===0||!lt(t)}function qo(t){return t!==125}function Ho(t,e){return ni(t)===ni(e)}function ni(t){return t>=97&&t<=122?t-97+65:t}function si(t){return lt(t)||Rt(t)||t===95}function ii(t){return t!==59&&b(t)}function Vo(t){let e=[],r;for(let n=0;n0&&r.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),a=n!==e?this.locationFromCursor(n):s;return new h(s,i,a)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new St('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):$t(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new ie(e.file,e.state.offset,e.state.line,e.state.column)}},Gr=class t extends nr{constructor(e,r){e instanceof t?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(e){let r=e.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(Br(e())){let r="",n=0,s=this.clone();for(;Br(e())&&n<3;)s=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=s.internalState}else $t(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let n=this.input.slice(e.internalState.offset,e.internalState.offset+r),s=parseInt(n,16);if(isNaN(s))throw e.state=e.internalState,new St("Invalid hexadecimal escape sequence",e);return s}},St=class{constructor(e,r){this.msg=e,this.cursor=r}};var L=class t extends Oe{static create(e,r,n){return new t(e,r,n)}constructor(e,r,n){super(r,n),this.elementName=e}},jr=class{constructor(e,r){this.rootNodes=e,this.errors=r}},sr=class{constructor(e){this.getTagDefinition=e}parse(e,r,n,s=!1,i){let a=D=>(I,...F)=>D(I.toLowerCase(),...F),o=s?this.getTagDefinition:a(this.getTagDefinition),u=D=>o(D).getContentType(),p=s?i:a(i),m=li(e,r,i?(D,I,F,c)=>{let g=p(D,I,F,c);return g!==void 0?g:u(D)}:u,n),f=n&&n.canSelfClose||!1,C=n&&n.allowHtmComponentClosingTags||!1,A=new Kr(m.tokens,o,f,C,s);return A.build(),new jr(A.rootNodes,m.errors.concat(A.errors))}},Kr=class t{constructor(e,r,n,s,i){this.tokens=e,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=s,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof ee&&this.errors.push(L.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let a=new h(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),o=new h(r.sourceSpan.start,s.sourceSpan.end,r.sourceSpan.fullStart);return new Yt(e.parts[0],i.rootNodes,a,e.sourceSpan,o)}_collectExpansionExpTokens(e){let r=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(ci(n,22)){if(n.pop(),n.length===0)return r}else return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(ci(n,20))n.pop();else return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&r[0]==` -`){let n=this._getClosestParentElement();n!=null&&n.children.length==0&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(e){let r=[e],n=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===` -`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,pi):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Wt(s,new h(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getContainer();e instanceof Y&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let C=this.getTagDefinition(i);this.canSelfClose||C.canSelfClose||Me(i)!==null||C.isVoid||this.errors.push(L.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let o=this._peek.sourceSpan.fullStart,u=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),p=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),l=new h(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),m=new Y(i,s,[],u,p,void 0,l),f=this._getContainer();this._pushContainer(m,f instanceof Y&&this.getTagDefinition(f.name).isClosedByChild(m.name)),a?this._popContainer(i,Y,u):e.type===4&&(this._popContainer(i,Y,null),this.errors.push(L.create(i,u,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(L.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(r,Y,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(L.create(r,e.sourceSpan,n))}}_popContainer(e,r,n){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(Me(a.name)?a.name===e:(e==null||a.name.toLowerCase()===e.toLowerCase())&&a instanceof r)return a.endSourceSpan=n,a.sourceSpan.end=n!==null?n.end:a.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(a instanceof ee||a instanceof Y&&!this.getTagDefinition(a.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let r=qe(e.parts[0],e.parts[1]),n=e.sourceSpan.end,s;this._peek.type===15&&(s=this._advance());let i="",a=[],o,u;if(this._peek.type===16)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let m=this._advance();a.push(m),m.type===17?i+=m.parts.join("").replace(/&([^;]+);/g,pi):m.type===9?i+=m.parts[0]:i+=m.parts.join(""),u=n=m.sourceSpan.end}this._peek.type===15&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new h((s==null?void 0:s.sourceSpan.start)??o.start,u,(s==null?void 0:s.sourceSpan.fullStart)??o.fullStart);return new jt(r,i,new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ht(o.parts[0],o.sourceSpan))}this._peek.type===26&&this._advance();let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new ee(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,ee,e.sourceSpan)||this.errors.push(L.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ht(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new ee(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,ee,null),this.errors.push(L.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let r=e.parts[0],n,s;if(this._peek.type!==31){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==32){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else s=this._advance();let i=s.sourceSpan.fullStart,a=new h(e.sourceSpan.start,i,e.sourceSpan.fullStart),o=e.sourceSpan.toString().lastIndexOf(r),u=e.sourceSpan.start.moveBy(o),p=new h(u,e.sourceSpan.end),l=new mt(r,n.parts[0],a,p,n.sourceSpan);this._addToParent(l)}_consumeIncompleteLet(e){let r=e.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let s=e.sourceSpan.toString().lastIndexOf(r),i=e.sourceSpan.start.moveBy(s),a=new h(i,e.sourceSpan.end),o=new h(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),u=new mt(r,"",e.sourceSpan,a,o);this._addToParent(u)}this.errors.push(L.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof Y)return this._containerStack[e];return null}_addToParent(e){let r=this._getContainer();r===null?this.rootNodes.push(e):r.children.push(e)}_getElementFullName(e,r,n){if(e===""&&(e=this.getTagDefinition(r).implicitNamespacePrefix||"",e===""&&n!=null)){let s=ct(n.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=Me(n.name))}return qe(e,r)}};function ci(t,e){return t.length>0&&t[t.length-1]===e}function pi(t,e){return Ve[e]!==void 0?Ve[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var ir=class extends sr{constructor(){super(He)}parse(e,r,n,s=!1,i){return super.parse(e,r,n,s,i)}};var Xr=null,Uo=()=>(Xr||(Xr=new ir),Xr);function Qr(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:s=!1,getTagContentType:i,tokenizeAngularBlocks:a=!1,tokenizeAngularLetDeclaration:o=!1}=e;return Uo().parse(t,"angular-html-parser",{tokenizeExpansionForms:a,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a,tokenizeLet:o},s,i)}function Wo(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var hi=Wo;var _t=3;function Go(t){let e=t.slice(0,_t);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(` -`,_t);if(r===-1)return;let n=t.slice(_t,r).trim(),s=t.indexOf(` -${e}`,r),i=n;if(i||(i=e==="+++"?"toml":"yaml"),s===-1&&e==="---"&&i==="yaml"&&(s=t.indexOf(` -...`,r)),s===-1)return;let a=s+1+_t,o=t.charAt(a+1);if(!/\s?/u.test(o))return;let u=t.slice(0,a);return{type:"front-matter",language:i,explicitLanguage:n,value:t.slice(r+1,s),startDelimiter:e,endDelimiter:u.slice(-_t),raw:u}}function zo(t){let e=Go(t);if(!e)return{content:t};let{raw:r}=e;return{frontMatter:e,content:w(!1,r,/[^\n]/gu," ")+t.slice(r.length)}}var mi=zo;var ar={attrs:!0,children:!0,cases:!0,expression:!0},fi=new Set(["parent"]),le,Jr,Zr,Ge=class Ge{constructor(e={}){At(this,le);lr(this,"type");lr(this,"parent");for(let r of new Set([...fi,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in ar&&(r=r.map(n=>this.createChild(n))),!fi.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in ar){let s=this[n];if(s){let i=Yo(s,a=>a.map(e));r!==s&&(r||(r=new Ge({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in ar||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in ar){let n=this[r];if(n)for(let s=0;s[e.fullName,e.value]))}};le=new WeakSet,Jr=function(){return this.type==="angularIcuCase"?"expression":this.type==="angularIcuExpression"?"cases":"children"},Zr=function(){var e;return((e=this.parent)==null?void 0:e.$children)??[]};var or=Ge;function Yo(t,e){let r=t.map(e);return r.some((n,s)=>n!==t[s])?r:t}var jo=[{regex:/^(\[if([^\]]*)\]>)(.*?){try{return[!0,e(i,o).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new h(o,u)}]]}})();return{type:"ieConditionalComment",complete:p,children:l,condition:w(!1,s.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan,startSourceSpan:new h(t.sourceSpan.start,o),endSourceSpan:new h(u,t.sourceSpan.end)}}function Xo(t,e,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:w(!1,n.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan}}function Qo(t){return{type:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}var ur=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]);var gi=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function Jo(t){if(t.type==="block"){if(t.name=w(!1,t.name.toLowerCase(),/\s+/gu," ").trim(),t.type="angularControlFlowBlock",!me(t.parameters)){delete t.parameters;return}for(let e of t.parameters)e.type="angularControlFlowBlockParameter";t.parameters={type:"angularControlFlowBlockParameters",children:t.parameters,sourceSpan:new h(t.parameters[0].sourceSpan.start,K(!1,t.parameters,-1).sourceSpan.end)}}}function Zo(t){t.type==="letDeclaration"&&(t.type="angularLetDeclaration",t.id=t.name,t.init={type:"angularLetDeclarationInitializer",sourceSpan:new h(t.valueSpan.start,t.valueSpan.end),value:t.value},delete t.name,delete t.value)}function eu(t){(t.type==="plural"||t.type==="select")&&(t.clause=t.type,t.type="angularIcuExpression"),t.type==="expansionCase"&&(t.type="angularIcuCase")}function Si(t,e,r){let{name:n,canSelfClose:s=!0,normalizeTagName:i=!1,normalizeAttributeName:a=!1,allowHtmComponentClosingTags:o=!1,isTagNameCaseSensitive:u=!1,shouldParseAsRawText:p}=e,{rootNodes:l,errors:m}=Qr(t,{canSelfClose:s,allowHtmComponentClosingTags:o,isTagNameCaseSensitive:u,getTagContentType:p?(...c)=>p(...c)?N.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:n==="angular"?!0:void 0,tokenizeAngularLetDeclaration:n==="angular"?!0:void 0});if(n==="vue"){if(l.some(x=>x.type==="docType"&&x.value==="html"||x.type==="element"&&x.name.toLowerCase()==="html"))return Si(t,en,r);let g,y=()=>g??(g=Qr(t,{canSelfClose:s,allowHtmComponentClosingTags:o,isTagNameCaseSensitive:u})),q=x=>y().rootNodes.find(({startSourceSpan:U})=>U&&U.start.offset===x.startSourceSpan.start.offset)??x;for(let[x,U]of l.entries()){let{endSourceSpan:nn,startSourceSpan:Ei}=U;if(nn===null)m=y().errors,l[x]=q(U);else if(tu(U,r)){let sn=y().errors.find(an=>an.span.start.offset>Ei.start.offset&&an.span.start.offset0&&Ci(m[0]);let f=c=>{let g=c.name.startsWith(":")?c.name.slice(1).split(":")[0]:null,y=c.nameSpan.toString(),q=g!==null&&y.startsWith(`${g}:`),x=q?y.slice(g.length+1):y;c.name=x,c.namespace=g,c.hasExplicitNamespace=q},C=c=>{switch(c.type){case"element":f(c);for(let g of c.attrs)f(g),g.valueSpan?(g.value=g.valueSpan.toString(),/["']/u.test(g.value[0])&&(g.value=g.value.slice(1,-1))):g.value=null;break;case"comment":c.value=c.sourceSpan.toString().slice(4,-3);break;case"text":c.value=c.sourceSpan.toString();break}},A=(c,g)=>{let y=c.toLowerCase();return g(y)?y:c},D=c=>{if(c.type==="element"&&(i&&(!c.namespace||c.namespace===c.tagDefinition.implicitNamespacePrefix||fe(c))&&(c.name=A(c.name,g=>gi.has(g))),a))for(let g of c.attrs)g.namespace||(g.name=A(g.name,y=>ur.has(c.name)&&(ur.get("*").has(y)||ur.get(c.name).has(y))))},I=c=>{c.sourceSpan&&c.endSourceSpan&&(c.sourceSpan=new h(c.sourceSpan.start,c.endSourceSpan.end))},F=c=>{if(c.type==="element"){let g=He(u?c.name:c.name.toLowerCase());!c.namespace||c.namespace===g.implicitNamespacePrefix||fe(c)?c.tagDefinition=g:c.tagDefinition=He("")}};return Qt(new class extends ft{visitExpansionCase(c,g){n==="angular"&&this.visitChildren(g,y=>{y(c.expression)})}visit(c){C(c),F(c),D(c),I(c)}},l),l}function tu(t,e){var n;if(t.type!=="element"||t.name!=="template")return!1;let r=(n=t.attrs.find(s=>s.name==="lang"))==null?void 0:n.value;return!r||Ne(e,{language:r})==="html"}function Ci(t){let{msg:e,span:{start:r,end:n}}=t;throw hi(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:t})}function _i(t,e,r={},n=!0){let{frontMatter:s,content:i}=n?mi(t):{frontMatter:null,content:t},a=new ve(t,r.filepath),o=new ie(a,0,0,0),u=o.moveBy(t.length),p={type:"root",sourceSpan:new h(o,u),children:Si(i,e,r)};if(s){let f=new ie(a,0,0,0),C=f.moveBy(s.raw.length);s.sourceSpan=new h(f,C),p.children.unshift(s)}let l=new or(p),m=(f,C)=>{let{offset:A}=C,D=w(!1,t.slice(0,A),/[^\n\r]/gu," "),F=_i(D+f,e,r,!1);F.sourceSpan=new h(C,K(!1,F.children,-1).sourceSpan.end);let c=F.children[0];return c.length===A?F.children.shift():(c.sourceSpan=new h(c.sourceSpan.start.moveBy(A),c.sourceSpan.end),c.value=c.value.slice(A)),F};return l.walk(f=>{if(f.type==="comment"){let C=di(f,m);C&&f.parent.replaceChild(f,C)}Jo(f),Zo(f),eu(f)}),l}function Et(t){return{parse:(e,r)=>_i(e,t,r),hasPragma:ws,hasIgnorePragma:bs,astFormat:"html",locStart:J,locEnd:se}}var en={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},ru=Et(en),nu=new Set(["mj-style","mj-raw"]),su=Et({...en,name:"mjml",shouldParseAsRawText:t=>nu.has(t)}),iu=Et({name:"angular"}),au=Et({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,n){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||n.some(({name:s,value:i})=>s==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),ou=Et({name:"lwc",canSelfClose:!1});var uu={html:qs};var ym=rn;export{ym as default,Hs as languages,Us as options,tn as parsers,uu as printers}; diff --git a/node_modules/prettier/plugins/markdown.d.ts b/node_modules/prettier/plugins/markdown.d.ts deleted file mode 100644 index 8a82214..0000000 --- a/node_modules/prettier/plugins/markdown.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Parser } from "../index.js"; - -export declare const parsers: { - markdown: Parser; - mdx: Parser; - remark: Parser; -}; diff --git a/node_modules/prettier/plugins/markdown.js b/node_modules/prettier/plugins/markdown.js deleted file mode 100644 index d275218..0000000 --- a/node_modules/prettier/plugins/markdown.js +++ /dev/null @@ -1,63 +0,0 @@ -(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.markdown=e()}})(function(){"use strict";var yl=Object.create;var kr=Object.defineProperty;var wl=Object.getOwnPropertyDescriptor;var xl=Object.getOwnPropertyNames;var kl=Object.getPrototypeOf,Bl=Object.prototype.hasOwnProperty;var Gn=e=>{throw TypeError(e)};var C=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Yn=(e,r)=>{for(var t in r)kr(e,t,{get:r[t],enumerable:!0})},$n=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of xl(r))!Bl.call(e,a)&&a!==t&&kr(e,a,{get:()=>r[a],enumerable:!(n=wl(r,a))||n.enumerable});return e};var Me=(e,r,t)=>(t=e!=null?yl(kl(e)):{},$n(r||!e||!e.__esModule?kr(t,"default",{value:e,enumerable:!0}):t,e)),Tl=e=>$n(kr({},"__esModule",{value:!0}),e);var Vn=(e,r,t)=>r.has(e)||Gn("Cannot "+t);var ce=(e,r,t)=>(Vn(e,r,"read from private field"),t?t.call(e):r.get(e)),jn=(e,r,t)=>r.has(e)?Gn("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,t),Wn=(e,r,t,n)=>(Vn(e,r,"write to private field"),n?n.call(e,t):r.set(e,t),t);var Br=C((cF,Hn)=>{"use strict";Hn.exports=Sl;function Sl(e){return String(e).replace(/\s+/g," ")}});var iu=C((cv,nu)=>{"use strict";nu.exports=Vf;var Dr=9,Gr=10,je=32,zf=33,Gf=58,We=91,Yf=92,Pt=93,pr=94,Yr=96,$r=4,$f=1024;function Vf(e){var r=this.Parser,t=this.Compiler;jf(r)&&Hf(r,e),Wf(t)&&Kf(t)}function jf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Wf(e){return!!(e&&e.prototype&&e.prototype.visitors)}function Hf(e,r){for(var t=r||{},n=e.prototype,a=n.blockTokenizers,i=n.inlineTokenizers,u=n.blockMethods,o=n.inlineMethods,s=a.definition,l=i.reference,c=[],f=-1,p=u.length,d;++f$r&&(Z=void 0,Ee=T);else{if(Z<$r&&U&&(U.contentStart===U.contentEnd||Xf(E,a,w,[b,g.slice(T,$f),!0])))break;Z=void 0,Ee=T}T++}for(T=-1,k=ve.length;k>0&&(U=ve[k-1],U.contentStart===U.contentEnd);)k--;for(Be=b(g.slice(0,U.contentEnd));++T{Lt.isRemarkParser=Jf;Lt.isRemarkCompiler=Qf;function Jf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Qf(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var fu=C((fv,lu)=>{var uu=It();lu.exports=tD;var au=9,ou=32,Vr=36,Zf=48,eD=57,su=92,rD=["math","math-inline"],cu="math-display";function tD(e){let r=this.Parser,t=this.Compiler;uu.isRemarkParser(r)&&nD(r,e),uu.isRemarkCompiler(t)&&iD(t,e)}function nD(e,r){let t=e.prototype,n=t.inlineMethods;i.locator=a,t.inlineTokenizers.math=i,n.splice(n.indexOf("text"),0,"math");function a(u,o){return u.indexOf("$",o)}function i(u,o,s){let l=o.length,c=!1,f=!1,p=0,d,D,h,m,F,A,v;if(o.charCodeAt(p)===su&&(f=!0,p++),o.charCodeAt(p)===Vr){if(p++,f)return s?!0:u(o.slice(0,p))({type:"text",value:"$"});if(o.charCodeAt(p)===Vr&&(c=!0,p++),h=o.charCodeAt(p),!(h===ou||h===au)){for(m=p;peD)&&(!c||h===Vr)){F=p-1,p++,c&&p++,A=p;break}}else D===su&&(p++,h=o.charCodeAt(p+1));p++}if(A!==void 0)return s?!0:(v=o.slice(m,F+1),u(o.slice(0,A))({type:"inlineMath",value:v,data:{hName:"span",hProperties:{className:rD.concat(c&&r.inlineMathDouble?[cu]:[])},hChildren:[{type:"text",value:v}]}}))}}}}function iD(e){let r=e.prototype;r.visitors.inlineMath=t;function t(n){let a="$";return(n.data&&n.data.hProperties&&n.data.hProperties.className||[]).includes(cu)&&(a="$$"),a+n.value+a}}});var mu=C((Dv,du)=>{var Du=It();du.exports=sD;var pu=10,hr=32,Rt=36,hu=` -`,uD="$",aD=2,oD=["math","math-display"];function sD(){let e=this.Parser,r=this.Compiler;Du.isRemarkParser(e)&&cD(e),Du.isRemarkCompiler(r)&&lD(r)}function cD(e){let r=e.prototype,t=r.blockMethods,n=r.interruptParagraph,a=r.interruptList,i=r.interruptBlockquote;r.blockTokenizers.math=u,t.splice(t.indexOf("fencedCode")+1,0,"math"),n.splice(n.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),i.splice(i.indexOf("fencedCode")+1,0,["math"]);function u(o,s,l){var c=s.length,f=0;let p,d,D,h,m,F,A,v,B,b,g;for(;fb&&s.charCodeAt(h-1)===hr;)h--;for(;h>b&&s.charCodeAt(h-1)===Rt;)B++,h--;for(F<=B&&s.indexOf(uD,b)===h&&(v=!0,g=h);b<=g&&b-fb&&s.charCodeAt(g-1)===hr;)g--;if((!v||b!==g)&&d.push(s.slice(b,g)),v)break;f=D+1,D=s.indexOf(hu,f+1),D=D===-1?c:D}return d=d.join(` -`),o(s.slice(0,D))({type:"math",value:d,data:{hName:"div",hProperties:{className:oD.concat()},hChildren:[{type:"text",value:d}]}})}}}}function lD(e){let r=e.prototype;r.visitors.math=t;function t(n){return`$$ -`+n.value+` -$$`}}});var gu=C((pv,Fu)=>{var fD=fu(),DD=mu();Fu.exports=pD;function pD(e){var r=e||{};DD.call(this,r),fD.call(this,r)}});var Ie=C((hv,Eu)=>{Eu.exports=dD;var hD=Object.prototype.hasOwnProperty;function dD(){for(var e={},r=0;r{typeof Object.create=="function"?Nt.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Nt.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});var Au=C((mv,bu)=>{"use strict";var mD=Ie(),Cu=vu();bu.exports=FD;function FD(e){var r,t,n;Cu(i,e),Cu(a,i),r=i.prototype;for(t in r)n=r[t],n&&typeof n=="object"&&(r[t]="concat"in n?n.concat():mD(n));return i;function a(u){return e.apply(this,u)}function i(){return this instanceof i?e.apply(this,arguments):new a(arguments)}}});var wu=C((Fv,yu)=>{"use strict";yu.exports=gD;function gD(e,r,t){return n;function n(){var a=t||this,i=a[e];return a[e]=!r,u;function u(){a[e]=i}}}});var ku=C((gv,xu)=>{"use strict";xu.exports=ED;function ED(e){for(var r=String(e),t=[],n=/\r?\n|\r/g;n.exec(r);)t.push(n.lastIndex);return t.push(r.length+1),{toPoint:a,toPosition:a,toOffset:i};function a(u){var o=-1;if(u>-1&&uu)return{line:o+1,column:u-(t[o-1]||0)+1,offset:u}}return{}}function i(u){var o=u&&u.line,s=u&&u.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in t&&(l=(t[o-2]||0)+s-1||0),l>-1&&l{"use strict";Bu.exports=vD;var Mt="\\";function vD(e,r){return t;function t(n){for(var a=0,i=n.indexOf(Mt),u=e[r],o=[],s;i!==-1;)o.push(n.slice(a,i)),a=i+1,s=n.charAt(a),(!s||u.indexOf(s)===-1)&&o.push(Mt),i=n.indexOf(Mt,a+1);return o.push(n.slice(a)),o.join("")}}});var qu=C((vv,CD)=>{CD.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var _u=C((Cv,bD)=>{bD.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Re=C((bv,Su)=>{"use strict";Su.exports=AD;function AD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var Ou=C((Av,Pu)=>{"use strict";Pu.exports=yD;function yD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var He=C((yv,Lu)=>{"use strict";Lu.exports=wD;function wD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var Ru=C((wv,Iu)=>{"use strict";var xD=He(),kD=Re();Iu.exports=BD;function BD(e){return xD(e)||kD(e)}});var Nu=C((xv,TD)=>{TD.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var zu=C((kv,Uu)=>{"use strict";var Mu=Nu();Uu.exports=_D;var qD={}.hasOwnProperty;function _D(e){return qD.call(Mu,e)?Mu[e]:!1}});var dr=C((Bv,ea)=>{"use strict";var Gu=qu(),Yu=_u(),SD=Re(),PD=Ou(),Wu=Ru(),OD=zu();ea.exports=WD;var LD={}.hasOwnProperty,Ke=String.fromCharCode,ID=Function.prototype,$u={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},RD=9,Vu=10,ND=12,MD=32,ju=38,UD=59,zD=60,GD=61,YD=35,$D=88,VD=120,jD=65533,Xe="named",zt="hexadecimal",Gt="decimal",Yt={};Yt[zt]=16;Yt[Gt]=10;var jr={};jr[Xe]=Wu;jr[Gt]=SD;jr[zt]=PD;var Hu=1,Ku=2,Xu=3,Ju=4,Qu=5,Ut=6,Zu=7,we={};we[Hu]="Named character references must be terminated by a semicolon";we[Ku]="Numeric character references must be terminated by a semicolon";we[Xu]="Named character references cannot be empty";we[Ju]="Numeric character references cannot be empty";we[Qu]="Named character references must be known";we[Ut]="Numeric character references cannot be disallowed";we[Zu]="Numeric character references cannot be outside the permissible Unicode range";function WD(e,r){var t={},n,a;r||(r={});for(a in $u)n=r[a],t[a]=n??$u[a];return(t.position.indent||t.position.start)&&(t.indent=t.position.indent||[],t.position=t.position.start),HD(e,t)}function HD(e,r){var t=r.additional,n=r.nonTerminated,a=r.text,i=r.reference,u=r.warning,o=r.textContext,s=r.referenceContext,l=r.warningContext,c=r.position,f=r.indent||[],p=e.length,d=0,D=-1,h=c.column||1,m=c.line||1,F="",A=[],v,B,b,g,y,w,E,x,k,T,q,N,P,S,_,O,Be,W,I;for(typeof t=="string"&&(t=t.charCodeAt(0)),O=ee(),x=u?Z:ID,d--,p++;++d65535&&(w-=65536,T+=Ke(w>>>10|55296),w=56320|w&1023),w=T+Ke(w))):S!==Xe&&x(Ju,W)),w?(Ee(),O=ee(),d=I-1,h+=I-P+1,A.push(w),Be=ee(),Be.offset++,i&&i.call(s,w,{start:O,end:Be},e.slice(P-1,I)),O=Be):(g=e.slice(P-1,I),F+=g,h+=g.length,d=I-1)}else y===10&&(m++,D++,h=0),y===y?(F+=Ke(y),h++):Ee();return A.join("");function ee(){return{line:m,column:h,offset:d+(c.offset||0)}}function Z(ve,U){var ht=ee();ht.column+=U,ht.offset+=U,u.call(l,we[ve],ht,ve)}function Ee(){F&&(A.push(F),a&&a.call(o,F,{start:O,end:ee()}),F="")}}function KD(e){return e>=55296&&e<=57343||e>1114111}function XD(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}});var na=C((Tv,ta)=>{"use strict";var JD=Ie(),ra=dr();ta.exports=QD;function QD(e){return t.raw=n,t;function r(i){for(var u=e.offset,o=i.line,s=[];++o&&o in u;)s.push((u[o]||0)+1);return{start:i,indent:s}}function t(i,u,o){ra(i,{position:r(u),warning:a,text:o,reference:o,textContext:e,referenceContext:e})}function n(i,u,o){return ra(i,JD(o,{position:r(u),warning:a}))}function a(i,u,o){o!==3&&e.file.message(i,u)}}});var aa=C((qv,ua)=>{"use strict";ua.exports=ZD;function ZD(e){return r;function r(t,n){var a=this,i=a.offset,u=[],o=a[e+"Methods"],s=a[e+"Tokenizers"],l=n.line,c=n.column,f,p,d,D,h,m;if(!t)return u;for(w.now=v,w.file=a.file,F("");t;){for(f=-1,p=o.length,h=!1;++f{"use strict";sa.exports=Wr;var $t=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],Vt=$t.concat(["~","|"]),oa=Vt.concat([` -`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);Wr.default=$t;Wr.gfm=Vt;Wr.commonmark=oa;function Wr(e){var r=e||{};return r.commonmark?oa:r.gfm?Vt:$t}});var fa=C((Sv,la)=>{"use strict";la.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var jt=C((Pv,Da)=>{"use strict";Da.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:fa()}});var ha=C((Ov,pa)=>{"use strict";var tp=Ie(),np=ca(),ip=jt();pa.exports=up;function up(e){var r=this,t=r.options,n,a;if(e==null)e={};else if(typeof e=="object")e=tp(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(n in ip){if(a=e[n],a==null&&(a=t[n]),n!=="blocks"&&typeof a!="boolean"||n==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+n+"`");e[n]=a}return r.options=e,r.escape=np(e),r}});var Fa=C((Lv,ma)=>{"use strict";ma.exports=da;function da(e){if(e==null)return cp;if(typeof e=="string")return sp(e);if(typeof e=="object")return"length"in e?op(e):ap(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function ap(e){return r;function r(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function op(e){for(var r=[],t=-1;++t{ga.exports=lp;function lp(e){return e}});var Aa=C((Rv,ba)=>{"use strict";ba.exports=Hr;var fp=Fa(),Dp=Ea(),va=!0,Ca="skip",Wt=!1;Hr.CONTINUE=va;Hr.SKIP=Ca;Hr.EXIT=Wt;function Hr(e,r,t,n){var a,i;typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),i=fp(r),a=n?-1:1,u(e,null,[])();function u(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,p.displayName="node ("+Dp(c.type+(f?"<"+f+">":""))+")"),p;function p(){var d=l.concat(o),D=[],h,m;if((!r||i(o,s,l[l.length-1]||null))&&(D=pp(t(o,l)),D[0]===Wt))return D;if(o.children&&D[0]!==Ca)for(m=(n?o.children.length:-1)+a;m>-1&&m{"use strict";ya.exports=Xr;var Kr=Aa(),hp=Kr.CONTINUE,dp=Kr.SKIP,mp=Kr.EXIT;Xr.CONTINUE=hp;Xr.SKIP=dp;Xr.EXIT=mp;function Xr(e,r,t,n){typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),Kr(e,r,a,n);function a(i,u){var o=u[u.length-1],s=o?o.children.indexOf(i):null;return t(i,s,o)}}});var ka=C((Mv,xa)=>{"use strict";var Fp=wa();xa.exports=gp;function gp(e,r){return Fp(e,r?Ep:vp),e}function Ep(e){delete e.position}function vp(e){e.position=void 0}});var qa=C((Uv,Ta)=>{"use strict";var Ba=Ie(),Cp=ka();Ta.exports=yp;var bp=` -`,Ap=/\r\n|\r/g;function yp(){var e=this,r=String(e.file),t={line:1,column:1,offset:0},n=Ba(t),a;return r=r.replace(Ap,bp),r.charCodeAt(0)===65279&&(r=r.slice(1),n.column++,n.offset++),a={type:"root",children:e.tokenizeBlock(r,n),position:{start:t,end:e.eof||Ba(t)}},e.options.position||Cp(a,!0),a}});var Sa=C((zv,_a)=>{"use strict";var wp=/^[ \t]*(\n|$)/;_a.exports=xp;function xp(e,r,t){for(var n,a="",i=0,u=r.length;i{"use strict";var me="",Ht;Pa.exports=kp;function kp(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var t=e.length*r;if(Ht!==e||typeof Ht>"u")Ht=e,me="";else if(me.length>=t)return me.substr(0,t);for(;t>me.length&&r>1;)r&1&&(me+=e),r>>=1,e+=e;return me+=e,me=me.substr(0,t),me}});var Kt=C((Yv,Oa)=>{"use strict";Oa.exports=Bp;function Bp(e){return String(e).replace(/\n+$/,"")}});var Ra=C(($v,Ia)=>{"use strict";var Tp=Jr(),qp=Kt();Ia.exports=Pp;var Xt=` -`,La=" ",Jt=" ",_p=4,Sp=Tp(Jt,_p);function Pp(e,r,t){for(var n=-1,a=r.length,i="",u="",o="",s="",l,c,f;++n{"use strict";Ma.exports=Rp;var Qr=` -`,mr=" ",Je=" ",Op="~",Na="`",Lp=3,Ip=4;function Rp(e,r,t){var n=this,a=n.options.gfm,i=r.length+1,u=0,o="",s,l,c,f,p,d,D,h,m,F,A,v,B;if(a){for(;u=Ip)){for(D="";u{Qe=za.exports=Np;function Np(e){return e.trim?e.trim():Qe.right(Qe.left(e))}Qe.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Qe.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,t=e.length;r.test(e.charAt(--t)););return e.slice(0,t+1)}});var Zr=C((jv,Ga)=>{"use strict";Ga.exports=Mp;function Mp(e,r,t,n){for(var a=e.length,i=-1,u,o;++i{"use strict";var Up=Ne(),zp=Zr();Va.exports=Gp;var Qt=` -`,Ya=" ",Zt=" ",$a=">";function Gp(e,r,t){for(var n=this,a=n.offset,i=n.blockTokenizers,u=n.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],p=[],d,D=0,h,m,F,A,v,B,b,g;D{"use strict";Ha.exports=$p;var Wa=` -`,Fr=" ",gr=" ",Er="#",Yp=6;function $p(e,r,t){for(var n=this,a=n.options.pedantic,i=r.length+1,u=-1,o=e.now(),s="",l="",c,f,p;++uYp)&&!(!p||!a&&r.charAt(u+1)===Er)){for(i=r.length+1,f="";++u{"use strict";Ja.exports=Jp;var Vp=" ",jp=` -`,Xa=" ",Wp="*",Hp="-",Kp="_",Xp=3;function Jp(e,r,t){for(var n=-1,a=r.length+1,i="",u,o,s,l;++n=Xp&&(!u||u===jp)?(i+=l,t?!0:e(i)({type:"thematicBreak"})):void 0}});var en=C((Xv,eo)=>{"use strict";eo.exports=rh;var Za=" ",Qp=" ",Zp=1,eh=4;function rh(e){for(var r=0,t=0,n=e.charAt(r),a={},i,u=0;n===Za||n===Qp;){for(i=n===Za?eh:Zp,t+=i,i>1&&(t=Math.floor(t/i)*i);u{"use strict";var th=Ne(),nh=Jr(),ih=en();to.exports=oh;var ro=` -`,uh=" ",ah="!";function oh(e,r){var t=e.split(ro),n=t.length+1,a=1/0,i=[],u,o,s;for(t.unshift(nh(uh,r)+ah);n--;)if(o=ih(t[n]),i[n]=o.stops,th(t[n]).length!==0)if(o.indent)o.indent>0&&o.indent{"use strict";var sh=Ne(),ch=Jr(),io=Re(),lh=en(),fh=no(),Dh=Zr();so.exports=vh;var rn="*",ph="_",uo="+",tn="-",ao=".",Fe=" ",ae=` -`,et=" ",oo=")",hh="x",xe=4,dh=/\n\n(?!\s*$)/,mh=/^\[([ X\tx])][ \t]/,Fh=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,gh=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,Eh=/^( {1,4}|\t)?/gm;function vh(e,r,t){for(var n=this,a=n.options.commonmark,i=n.options.pedantic,u=n.blockTokenizers,o=n.interruptList,s=0,l=r.length,c=null,f,p,d,D,h,m,F,A,v,B,b,g,y,w,E,x,k,T,q,N=!1,P,S,_,O;s=k.indent&&(O=!0),D=r.charAt(s),v=null,!O){if(D===rn||D===uo||D===tn)v=D,s++,f++;else{for(p="";s=k.indent||f>xe),A=!1,s=F;if(b=r.slice(F,m),B=F===s?b:r.slice(s,m),(v===rn||v===ph||v===tn)&&u.thematicBreak.call(n,e,b,!0))break;if(g=y,y=!A&&!sh(B).length,O&&k)k.value=k.value.concat(x,b),E=E.concat(x,b),x=[];else if(A)x.length!==0&&(N=!0,k.value.push(""),k.trail=x.concat()),k={value:[b],indent:f,trail:[]},w.push(k),E=E.concat(x,b),x=[];else if(y){if(g&&!a)break;x.push(b)}else{if(g||Dh(o,u,n,[e,b,!0]))break;k.value=k.value.concat(x,b),E=E.concat(x,b),x=[]}s=m+1}for(P=e(E.join(ae)).reset({type:"list",ordered:d,start:c,spread:N,children:[]}),T=n.enterList(),q=n.enterBlock(),s=-1,l=w.length;++s{"use strict";Do.exports=Th;var nn=` -`,yh=" ",lo=" ",fo="=",wh="-",xh=3,kh=1,Bh=2;function Th(e,r,t){for(var n=this,a=e.now(),i=r.length,u=-1,o="",s,l,c,f,p;++u=xh){u--;break}o+=c}for(s="",l="";++u{"use strict";var qh="[a-zA-Z_:][a-zA-Z0-9:._-]*",_h="[^\"'=<>`\\u0000-\\u0020]+",Sh="'[^']*'",Ph='"[^"]*"',Oh="(?:"+_h+"|"+Sh+"|"+Ph+")",Lh="(?:\\s+"+qh+"(?:\\s*=\\s*"+Oh+")?)",ho="<[A-Za-z][A-Za-z0-9\\-]*"+Lh+"*\\s*\\/?>",mo="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Ih="|",Rh="<[?].*?[?]>",Nh="]*>",Mh="";un.openCloseTag=new RegExp("^(?:"+ho+"|"+mo+")");un.tag=new RegExp("^(?:"+ho+"|"+mo+"|"+Ih+"|"+Rh+"|"+Nh+"|"+Mh+")")});var vo=C((rC,Eo)=>{"use strict";var Uh=an().openCloseTag;Eo.exports=rd;var zh=" ",Gh=" ",Fo=` -`,Yh="<",$h=/^<(script|pre|style)(?=(\s|>|$))/i,Vh=/<\/(script|pre|style)>/i,jh=/^/,Hh=/^<\?/,Kh=/\?>/,Xh=/^/,Qh=/^/,go=/^$/,ed=new RegExp(Uh.source+"\\s*$");function rd(e,r,t){for(var n=this,a=n.options.blocks.join("|"),i=new RegExp("^|$))","i"),u=r.length,o=0,s,l,c,f,p,d,D,h=[[$h,Vh,!0],[jh,Wh,!0],[Hh,Kh,!0],[Xh,Jh,!0],[Qh,Zh,!0],[i,go,!0],[ed,go,!1]];o{"use strict";Co.exports=id;var td=String.fromCharCode,nd=/\s/;function id(e){return nd.test(typeof e=="number"?td(e):e.charAt(0))}});var on=C((nC,bo)=>{"use strict";var ud=Br();bo.exports=ad;function ad(e){return ud(e).toLowerCase()}});var To=C((iC,Bo)=>{"use strict";var od=oe(),sd=on();Bo.exports=Dd;var Ao='"',yo="'",cd="\\",Ze=` -`,rt=" ",tt=" ",cn="[",vr="]",ld="(",fd=")",wo=":",xo="<",ko=">";function Dd(e,r,t){for(var n=this,a=n.options.commonmark,i=0,u=r.length,o="",s,l,c,f,p,d,D,h;i{"use strict";var hd=oe();_o.exports=yd;var dd=" ",nt=` -`,md=" ",Fd="-",gd=":",Ed="\\",ln="|",vd=1,Cd=2,qo="left",bd="center",Ad="right";function yd(e,r,t){var n=this,a,i,u,o,s,l,c,f,p,d,D,h,m,F,A,v,B,b,g,y,w,E;if(n.options.gfm){for(a=0,v=0,l=r.length+1,c=[];ay){if(v1&&(p?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),F=e.now(),e(o)({type:"tableCell",children:n.tokenizeInline(h,F)},s)),e(f+p),f="",h=""):(f&&(h+=f,f=""),h+=p,p===Ed&&a!==l-2&&(h+=B.charAt(a+1),a++)),m=!1,a++}A||e(nt+i)}return g}}}});var Lo=C((aC,Oo)=>{"use strict";var wd=Ne(),xd=Kt(),kd=Zr();Oo.exports=qd;var Bd=" ",Cr=` -`,Td=" ",Po=4;function qd(e,r,t){for(var n=this,a=n.options,i=a.commonmark,u=n.blockTokenizers,o=n.interruptParagraph,s=r.indexOf(Cr),l=r.length,c,f,p,d,D;s=Po&&p!==Cr){s=r.indexOf(Cr,s+1);continue}}if(f=r.slice(s+1),kd(o,u,n,[e,f,!0]))break;if(c=s,s=r.indexOf(Cr,s+1),s!==-1&&wd(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),t?!0:(D=e.now(),f=xd(f),e(f)({type:"paragraph",children:n.tokenizeInline(f,D)}))}});var Ro=C((oC,Io)=>{"use strict";Io.exports=_d;function _d(e,r){return e.indexOf("\\",r)}});var zo=C((sC,Uo)=>{"use strict";var Sd=Ro();Uo.exports=Mo;Mo.locator=Sd;var Pd=` -`,No="\\";function Mo(e,r,t){var n=this,a,i;if(r.charAt(0)===No&&(a=r.charAt(1),n.escape.indexOf(a)!==-1))return t?!0:(a===Pd?i={type:"break"}:i={type:"text",value:a},e(No+a)(i))}});var fn=C((cC,Go)=>{"use strict";Go.exports=Od;function Od(e,r){return e.indexOf("<",r)}});var Wo=C((lC,jo)=>{"use strict";var Yo=oe(),Ld=dr(),Id=fn();jo.exports=dn;dn.locator=Id;dn.notInLink=!0;var $o="<",Dn=">",Vo="@",pn="/",hn="mailto:",it=hn.length;function dn(e,r,t){var n=this,a="",i=r.length,u=0,o="",s=!1,l="",c,f,p,d,D;if(r.charAt(0)===$o){for(u++,a=$o;u{"use strict";Ho.exports=Rd;function Rd(e,r){var t=String(e),n=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=t.indexOf(r);a!==-1;)n++,a=t.indexOf(r,a+r.length);return n}});var Qo=C((DC,Jo)=>{"use strict";Jo.exports=Nd;var Xo=["www.","http://","https://"];function Nd(e,r){var t=-1,n,a,i;if(!this.options.gfm)return t;for(a=Xo.length,n=-1;++n{"use strict";var Zo=Ko(),Md=dr(),Ud=Re(),mn=He(),zd=oe(),Gd=Qo();ts.exports=gn;gn.locator=Gd;gn.notInLink=!0;var Yd=33,$d=38,Vd=41,jd=42,Wd=44,Hd=45,Fn=46,Kd=58,Xd=59,Jd=63,Qd=60,es=95,Zd=126,e0="(",rs=")";function gn(e,r,t){var n=this,a=n.options.gfm,i=n.inlineTokenizers,u=r.length,o=-1,s=!1,l,c,f,p,d,D,h,m,F,A,v,B,b,g;if(a){if(r.slice(0,4)==="www.")s=!0,p=4;else if(r.slice(0,7).toLowerCase()==="http://")p=7;else if(r.slice(0,8).toLowerCase()==="https://")p=8;else return;for(o=p-1,f=p,l=[];pF;)p=d+D.lastIndexOf(rs),D=r.slice(d,p),A--;if(r.charCodeAt(p-1)===Xd&&(p--,mn(r.charCodeAt(p-1)))){for(m=p-2;mn(r.charCodeAt(m));)m--;r.charCodeAt(m)===$d&&(p=m)}return v=r.slice(0,p),b=Md(v,{nonTerminated:!1}),s&&(b="http://"+b),g=n.enterLink(),n.inlineTokenizers={text:i.text},B=n.tokenizeInline(v,e.now()),n.inlineTokenizers=i,g(),e(v)({type:"link",title:null,url:b,children:B})}}}});var os=C((hC,as)=>{"use strict";var r0=Re(),t0=He(),n0=43,i0=45,u0=46,a0=95;as.exports=us;function us(e,r){var t=this,n,a;if(!this.options.gfm||(n=e.indexOf("@",r),n===-1))return-1;if(a=n,a===r||!is(e.charCodeAt(a-1)))return us.call(t,e,n+1);for(;a>r&&is(e.charCodeAt(a-1));)a--;return a}function is(e){return r0(e)||t0(e)||e===n0||e===i0||e===u0||e===a0}});var fs=C((dC,ls)=>{"use strict";var o0=dr(),ss=Re(),cs=He(),s0=os();ls.exports=Cn;Cn.locator=s0;Cn.notInLink=!0;var c0=43,En=45,ut=46,l0=64,vn=95;function Cn(e,r,t){var n=this,a=n.options.gfm,i=n.inlineTokenizers,u=0,o=r.length,s=-1,l,c,f,p;if(a){for(l=r.charCodeAt(u);ss(l)||cs(l)||l===c0||l===En||l===ut||l===vn;)l=r.charCodeAt(++u);if(u!==0&&l===l0){for(u++;u{"use strict";var f0=He(),D0=fn(),p0=an().tag;ps.exports=Ds;Ds.locator=D0;var h0="<",d0="?",m0="!",F0="/",g0=/^/i;function Ds(e,r,t){var n=this,a=r.length,i,u;if(!(r.charAt(0)!==h0||a<3)&&(i=r.charAt(1),!(!f0(i)&&i!==d0&&i!==m0&&i!==F0)&&(u=r.match(p0),!!u)))return t?!0:(u=u[0],!n.inLink&&g0.test(u)?n.inLink=!0:n.inLink&&E0.test(u)&&(n.inLink=!1),e(u)({type:"html",value:u}))}});var bn=C((FC,ds)=>{"use strict";ds.exports=v0;function v0(e,r){var t=e.indexOf("[",r),n=e.indexOf("![",r);return n===-1||t{"use strict";var br=oe(),C0=bn();Cs.exports=vs;vs.locator=C0;var b0=` -`,A0="!",ms='"',Fs="'",er="(",Ar=")",An="<",yn=">",gs="[",yr="\\",y0="]",Es="`";function vs(e,r,t){var n=this,a="",i=0,u=r.charAt(0),o=n.options.pedantic,s=n.options.commonmark,l=n.options.gfm,c,f,p,d,D,h,m,F,A,v,B,b,g,y,w,E,x,k;if(u===A0&&(F=!0,a=u,u=r.charAt(++i)),u===gs&&!(!F&&n.inLink)){for(a+=u,y="",i++,B=r.length,E=e.now(),g=0,E.column+=i,E.offset+=i;i=p&&(p=0):p=f}else if(u===yr)i++,h+=r.charAt(i);else if((!p||l)&&u===gs)g++;else if((!p||l)&&u===y0)if(g)g--;else{if(r.charAt(i+1)!==er)return;h+=er,c=!0,i++;break}y+=h,h="",i++}if(c){for(A=y,a+=y+h,i++;i{"use strict";var w0=oe(),x0=bn(),k0=on();ys.exports=As;As.locator=x0;var wn="link",B0="image",T0="shortcut",q0="collapsed",xn="full",_0="!",at="[",ot="\\",st="]";function As(e,r,t){var n=this,a=n.options.commonmark,i=r.charAt(0),u=0,o=r.length,s="",l="",c=wn,f=T0,p,d,D,h,m,F,A,v;if(i===_0&&(c=B0,l=i,i=r.charAt(++u)),i===at){for(u++,l+=i,F="",v=0;u{"use strict";xs.exports=S0;function S0(e,r){var t=e.indexOf("**",r),n=e.indexOf("__",r);return n===-1?t:t===-1||n{"use strict";var P0=Ne(),Bs=oe(),O0=ks();qs.exports=Ts;Ts.locator=O0;var L0="\\",I0="*",R0="_";function Ts(e,r,t){var n=this,a=0,i=r.charAt(a),u,o,s,l,c,f,p;if(!(i!==I0&&i!==R0||r.charAt(++a)!==i)&&(o=n.options.pedantic,s=i,c=s+s,f=r.length,a++,l="",i="",!(o&&Bs(r.charAt(a)))))for(;a{"use strict";Ss.exports=U0;var N0=String.fromCharCode,M0=/\w/;function U0(e){return M0.test(typeof e=="number"?N0(e):e.charAt(0))}});var Ls=C((AC,Os)=>{"use strict";Os.exports=z0;function z0(e,r){var t=e.indexOf("*",r),n=e.indexOf("_",r);return n===-1?t:t===-1||n{"use strict";var G0=Ne(),Y0=Ps(),Is=oe(),$0=Ls();Ms.exports=Ns;Ns.locator=$0;var V0="*",Rs="_",j0="\\";function Ns(e,r,t){var n=this,a=0,i=r.charAt(a),u,o,s,l,c,f,p;if(!(i!==V0&&i!==Rs)&&(o=n.options.pedantic,c=i,s=i,f=r.length,a++,l="",i="",!(o&&Is(r.charAt(a)))))for(;a{"use strict";zs.exports=W0;function W0(e,r){return e.indexOf("~~",r)}});var Ws=C((xC,js)=>{"use strict";var Ys=oe(),H0=Gs();js.exports=Vs;Vs.locator=H0;var ct="~",$s="~~";function Vs(e,r,t){var n=this,a="",i="",u="",o="",s,l,c;if(!(!n.options.gfm||r.charAt(0)!==ct||r.charAt(1)!==ct||Ys(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s{"use strict";Hs.exports=K0;function K0(e,r){return e.indexOf("`",r)}});var Qs=C((BC,Js)=>{"use strict";var X0=Ks();Js.exports=Xs;Xs.locator=X0;var kn=10,Bn=32,Tn=96;function Xs(e,r,t){for(var n=r.length,a=0,i,u,o,s,l,c;a2&&(s===Bn||s===kn)&&(l===Bn||l===kn)){for(a++,n--;a{"use strict";Zs.exports=J0;function J0(e,r){for(var t=e.indexOf(` -`,r);t>r&&e.charAt(t-1)===" ";)t--;return t}});var nc=C((qC,tc)=>{"use strict";var Q0=ec();tc.exports=rc;rc.locator=Q0;var Z0=" ",em=` -`,rm=2;function rc(e,r,t){for(var n=r.length,a=-1,i="",u;++a{"use strict";ic.exports=tm;function tm(e,r,t){var n=this,a,i,u,o,s,l,c,f,p,d;if(t)return!0;for(a=n.inlineMethods,o=a.length,i=n.inlineTokenizers,u=-1,p=r.length;++u{"use strict";var nm=Ie(),lt=wu(),im=ku(),um=Tu(),am=na(),qn=aa();sc.exports=ac;function ac(e,r){this.file=r,this.offset={},this.options=nm(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=im(r).toOffset,this.unescape=um(this,"escape"),this.decode=am(this)}var M=ac.prototype;M.setOptions=ha();M.parse=qa();M.options=jt();M.exitStart=lt("atStart",!0);M.enterList=lt("inList",!1);M.enterLink=lt("inLink",!1);M.enterBlock=lt("inBlock",!1);M.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];M.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];M.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];M.blockTokenizers={blankLine:Sa(),indentedCode:Ra(),fencedCode:Ua(),blockquote:ja(),atxHeading:Ka(),thematicBreak:Qa(),list:co(),setextHeading:po(),html:vo(),definition:To(),table:So(),paragraph:Lo()};M.inlineTokenizers={escape:zo(),autoLink:Wo(),url:ns(),email:fs(),html:hs(),link:bs(),reference:ws(),strong:_s(),emphasis:Us(),deletion:Ws(),code:Qs(),break:nc(),text:uc()};M.blockMethods=oc(M.blockTokenizers);M.inlineMethods=oc(M.inlineTokenizers);M.tokenizeBlock=qn("block");M.tokenizeInline=qn("inline");M.tokenizeFactory=qn;function oc(e){var r=[],t;for(t in e)r.push(t);return r}});var pc=C((PC,Dc)=>{"use strict";var om=Au(),sm=Ie(),lc=cc();Dc.exports=fc;fc.Parser=lc;function fc(e){var r=this.data("settings"),t=om(lc);t.prototype.options=sm(t.prototype.options,r,e),this.Parser=t}});var dc=C((OC,hc)=>{"use strict";hc.exports=cm;function cm(e){if(e)throw e}});var _n=C((LC,mc)=>{mc.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var wc=C((IC,yc)=>{"use strict";var ft=Object.prototype.hasOwnProperty,Ac=Object.prototype.toString,Fc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,Ec=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Ac.call(r)==="[object Array]"},vc=function(r){if(!r||Ac.call(r)!=="[object Object]")return!1;var t=ft.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&ft.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!t&&!n)return!1;var a;for(a in r);return typeof a>"u"||ft.call(r,a)},Cc=function(r,t){Fc&&t.name==="__proto__"?Fc(r,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):r[t.name]=t.newValue},bc=function(r,t){if(t==="__proto__")if(ft.call(r,t)){if(gc)return gc(r,t).value}else return;return r[t]};yc.exports=function e(){var r,t,n,a,i,u,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s{"use strict";xc.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var Tc=C((NC,Bc)=>{"use strict";var lm=[].slice;Bc.exports=fm;function fm(e,r){var t;return n;function n(){var u=lm.call(arguments,0),o=e.length>u.length,s;o&&u.push(a);try{s=e.apply(null,u)}catch(l){if(o&&t)throw l;return a(l)}o||(s&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(){t||(t=!0,r.apply(null,arguments))}function i(u){a(null,u)}}});var Oc=C((MC,Pc)=>{"use strict";var _c=Tc();Pc.exports=Sc;Sc.wrap=_c;var qc=[].slice;function Sc(){var e=[],r={};return r.run=t,r.use=n,r;function t(){var a=-1,i=qc.call(arguments,0,-1),u=arguments[arguments.length-1];if(typeof u!="function")throw new Error("Expected function as last argument, not "+u);o.apply(null,[null].concat(i));function o(s){var l=e[++a],c=qc.call(arguments,0),f=c.slice(1),p=i.length,d=-1;if(s){u(s);return}for(;++d{"use strict";var rr={}.hasOwnProperty;Rc.exports=Dm;function Dm(e){return!e||typeof e!="object"?"":rr.call(e,"position")||rr.call(e,"type")?Lc(e.position):rr.call(e,"start")||rr.call(e,"end")?Lc(e):rr.call(e,"line")||rr.call(e,"column")?Sn(e):""}function Sn(e){return(!e||typeof e!="object")&&(e={}),Ic(e.line)+":"+Ic(e.column)}function Lc(e){return(!e||typeof e!="object")&&(e={}),Sn(e.start)+"-"+Sn(e.end)}function Ic(e){return e&&typeof e=="number"?e:1}});var zc=C((zC,Uc)=>{"use strict";var pm=Nc();Uc.exports=Pn;function Mc(){}Mc.prototype=Error.prototype;Pn.prototype=new Mc;var ke=Pn.prototype;ke.file="";ke.name="";ke.reason="";ke.message="";ke.stack="";ke.fatal=null;ke.column=null;ke.line=null;function Pn(e,r,t){var n,a,i;typeof r=="string"&&(t=r,r=null),n=hm(t),a=pm(r)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},r&&r.position&&(r=r.position),r&&(r.start?(i=r,r=r.start):i.start=r),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=r?r.line:null,this.column=r?r.column:null,this.location=i,this.source=n[0],this.ruleId=n[1]}function hm(e){var r=[null,null],t;return typeof e=="string"&&(t=e.indexOf(":"),t===-1?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1))),r}});var Gc=C(tr=>{"use strict";tr.basename=dm;tr.dirname=mm;tr.extname=Fm;tr.join=gm;tr.sep="/";function dm(e,r){var t=0,n=-1,a,i,u,o;if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');if(wr(e),a=e.length,r===void 0||!r.length||r.length>e.length){for(;a--;)if(e.charCodeAt(a)===47){if(u){t=a+1;break}}else n<0&&(u=!0,n=a+1);return n<0?"":e.slice(t,n)}if(r===e)return"";for(i=-1,o=r.length-1;a--;)if(e.charCodeAt(a)===47){if(u){t=a+1;break}}else i<0&&(u=!0,i=a+1),o>-1&&(e.charCodeAt(a)===r.charCodeAt(o--)?o<0&&(n=a):(o=-1,n=i));return t===n?n=i:n<0&&(n=e.length),e.slice(t,n)}function mm(e){var r,t,n;if(wr(e),!e.length)return".";for(r=-1,n=e.length;--n;)if(e.charCodeAt(n)===47){if(t){r=n;break}}else t||(t=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function Fm(e){var r=-1,t=0,n=-1,a=0,i,u,o;for(wr(e),o=e.length;o--;){if(u=e.charCodeAt(o),u===47){if(i){t=o+1;break}continue}n<0&&(i=!0,n=o+1),u===46?r<0?r=o:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||n<0||a===0||a===1&&r===n-1&&r===t+1?"":e.slice(r,n)}function gm(){for(var e=-1,r;++e2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",n=0):(t=t.slice(0,s),n=t.length-1-t.lastIndexOf("/")),a=u,i=0;continue}}else if(t.length){t="",n=0,a=u,i=0;continue}}r&&(t=t.length?t+"/..":"..",n=2)}else t.length?t+="/"+e.slice(a+1,u):t=e.slice(a+1,u),n=u-a-1;a=u,i=0}else o===46&&i>-1?i++:i=-1}return t}function wr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}});var $c=C(Yc=>{"use strict";Yc.cwd=Cm;function Cm(){return"/"}});var Wc=C(($C,jc)=>{"use strict";var se=Gc(),bm=$c(),Am=_n();jc.exports=ge;var ym={}.hasOwnProperty,On=["history","path","basename","stem","extname","dirname"];ge.prototype.toString=Lm;Object.defineProperty(ge.prototype,"path",{get:wm,set:xm});Object.defineProperty(ge.prototype,"dirname",{get:km,set:Bm});Object.defineProperty(ge.prototype,"basename",{get:Tm,set:qm});Object.defineProperty(ge.prototype,"extname",{get:_m,set:Sm});Object.defineProperty(ge.prototype,"stem",{get:Pm,set:Om});function ge(e){var r,t;if(!e)e={};else if(typeof e=="string"||Am(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof ge))return new ge(e);for(this.data={},this.messages=[],this.history=[],this.cwd=bm.cwd(),t=-1;++t-1)throw new Error("`extname` cannot contain multiple dots")}this.path=se.join(this.dirname,this.stem+(e||""))}function Pm(){return typeof this.path=="string"?se.basename(this.path,this.extname):void 0}function Om(e){In(e,"stem"),Ln(e,"stem"),this.path=se.join(this.dirname||"",e+(this.extname||""))}function Lm(e){return(this.contents||"").toString(e)}function Ln(e,r){if(e&&e.indexOf(se.sep)>-1)throw new Error("`"+r+"` cannot be a path: did not expect `"+se.sep+"`")}function In(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function Vc(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}});var Kc=C((VC,Hc)=>{"use strict";var Im=zc(),Dt=Wc();Hc.exports=Dt;Dt.prototype.message=Rm;Dt.prototype.info=Mm;Dt.prototype.fail=Nm;function Rm(e,r,t){var n=new Im(e,r,t);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}function Nm(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function Mm(){var e=this.message.apply(this,arguments);return e.fatal=null,e}});var Jc=C((jC,Xc)=>{"use strict";Xc.exports=Kc()});var al=C((WC,ul)=>{"use strict";var Qc=dc(),Um=_n(),pt=wc(),Zc=kc(),nl=Oc(),xr=Jc();ul.exports=il().freeze();var zm=[].slice,Gm={}.hasOwnProperty,Ym=nl().use($m).use(Vm).use(jm);function $m(e,r){r.tree=e.parse(r.file)}function Vm(e,r,t){e.run(r.tree,r.file,n);function n(a,i,u){a?t(a):(r.tree=i,r.file=u,t())}}function jm(e,r){var t=e.stringify(r.tree,r.file);t==null||(typeof t=="string"||Um(t)?("value"in r.file&&(r.file.value=t),r.file.contents=t):r.file.result=t)}function il(){var e=[],r=nl(),t={},n=-1,a;return i.data=o,i.freeze=u,i.attachers=e,i.use=s,i.parse=c,i.stringify=d,i.run=f,i.runSync=p,i.process=D,i.processSync=h,i;function i(){for(var m=il(),F=-1;++Fru,options:()=>tu,parsers:()=>zn,printers:()=>iF});var ql=(e,r,t)=>{if(!(e&&r==null))return Array.isArray(r)||typeof r=="string"?r[t<0?r.length+t:t]:r.at(t)},z=ql;var _l=(e,r,t,n)=>{if(!(e&&r==null))return r.replaceAll?r.replaceAll(t,n):t.global?r.replace(t,n):r.split(t).join(n)},R=_l;var Zi=Me(Br(),1);function le(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Y="string",H="array",Ce="cursor",re="indent",te="align",fe="trim",X="group",J="fill",K="if-break",De="indent-if-break",pe="line-suffix",he="line-suffix-boundary",$="line",de="label",ne="break-parent",Tr=new Set([Ce,re,te,fe,X,J,K,De,pe,he,$,de,ne]);function Pl(e){if(typeof e=="string")return Y;if(Array.isArray(e))return H;if(!e)return;let{type:r}=e;if(Tr.has(r))return r}var G=Pl;var Ol=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Ll(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', -Expected it to be 'string' or 'object'.`;if(G(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let n=Ol([...Tr].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var dt=class extends Error{name="InvalidDocError";constructor(r){super(Ll(r)),this.doc=r}},Te=dt;var Kn={};function Il(e,r,t,n){let a=[e];for(;a.length>0;){let i=a.pop();if(i===Kn){t(a.pop());continue}t&&a.push(i,Kn);let u=G(i);if(!u)throw new Te(i);if((r==null?void 0:r(i))!==!1)switch(u){case H:case J:{let o=u===H?i:i.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case K:a.push(i.flatContents,i.breakContents);break;case X:if(n&&i.expandedStates)for(let o=i.expandedStates.length,s=o-1;s>=0;--s)a.push(i.expandedStates[s]);else a.push(i.contents);break;case te:case re:case De:case de:case pe:a.push(i.contents);break;case Y:case Ce:case fe:case he:case $:case ne:break;default:throw new Te(i)}}}var mt=Il;function Rl(e,r){if(typeof e=="string")return r(e);let t=new Map;return n(e);function n(i){if(t.has(i))return t.get(i);let u=a(i);return t.set(i,u),u}function a(i){switch(G(i)){case H:return r(i.map(n));case J:return r({...i,parts:i.parts.map(n)});case K:return r({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case X:{let{expandedStates:u,contents:o}=i;return u?(u=u.map(n),o=u[0]):o=n(o),r({...i,contents:o,expandedStates:u})}case te:case re:case De:case de:case pe:return r({...i,contents:n(i.contents)});case Y:case Ce:case fe:case he:case $:case ne:return r(i);default:throw new Te(i)}}}function Xn(e){if(e.length>0){let r=z(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Jn(e){let r=new Set,t=[];function n(i){if(i.type===ne&&Xn(t),i.type===X){if(t.push(i),r.has(i))return!1;r.add(i)}}function a(i){i.type===X&&t.pop().break&&Xn(t)}mt(e,n,a,!0)}function be(e,r=nr){return Rl(e,t=>typeof t=="string"?qr(r,t.split(` -`)):t)}var Ft=()=>{},qe=Ft,gt=Ft,Qn=Ft;function ir(e){return qe(e),{type:re,contents:e}}function Ae(e,r){return qe(r),{type:te,contents:r,n:e}}function Ue(e,r={}){return qe(e),gt(r.expandedStates,!0),{type:X,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function _e(e){return Ae({type:"root"},e)}function ze(e){return Qn(e),{type:J,parts:e}}function Zn(e,r="",t={}){return qe(e),r!==""&&qe(r),{type:K,breakContents:e,flatContents:r,groupId:t.groupId}}var ur={type:ne};var ar={type:$,hard:!0},Nl={type:$,hard:!0,literal:!0},_r={type:$},Sr={type:$,soft:!0},L=[ar,ur],nr=[Nl,ur];function qr(e,r){qe(e),gt(r);let t=[];for(let n=0;nMath.max(n,a.length/r.length),0)}var Pr=Ml;function Ul(e,r){let t=e.match(new RegExp(`(${le(r)})+`,"gu"));if(t===null)return 0;let n=new Map,a=0;for(let i of t){let u=i.length/r.length;n.set(u,!0),u>a&&(a=u)}for(let i=1;ii?n:t}var ti=zl;var Et=class extends Error{name="UnexpectedNodeError";constructor(r,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(r[n])}.`),this.node=r}},ni=Et;var li=Me(Br(),1);function Gl(e){return(e==null?void 0:e.type)==="front-matter"}var ii=Gl;var ui=["noformat","noprettier"],Lr=["format","prettier"],ai="format";var or=3;function Yl(e){let r=e.slice(0,or);if(r!=="---"&&r!=="+++")return;let t=e.indexOf(` -`,or);if(t===-1)return;let n=e.slice(or,t).trim(),a=e.indexOf(` -${r}`,t),i=n;if(i||(i=r==="+++"?"toml":"yaml"),a===-1&&r==="---"&&i==="yaml"&&(a=e.indexOf(` -...`,t)),a===-1)return;let u=a+1+or,o=e.charAt(u+1);if(!/\s?/u.test(o))return;let s=e.slice(0,u);return{type:"front-matter",language:i,explicitLanguage:n,value:e.slice(t+1,a),startDelimiter:r,endDelimiter:s.slice(-or),raw:s}}function $l(e){let r=Yl(e);if(!r)return{content:e};let{raw:t}=r;return{frontMatter:r,content:R(!1,t,/[^\n]/gu," ")+e.slice(t.length)}}var Ge=$l;function Ir(e,r){let t=`@(${r.join("|")})`,n=new RegExp([``,`\\{\\s*\\/\\*\\s*${t}\\s*\\*\\/\\s*\\}`,``].join("|"),"mu"),a=e.match(n);return(a==null?void 0:a.index)===0}var oi=e=>Ir(Ge(e).content.trimStart(),Lr),si=e=>Ir(Ge(e).content.trimStart(),ui),ci=e=>{let r=Ge(e),t=``;return r.frontMatter?`${r.frontMatter.raw} - -${t} - -${r.content}`:`${t} - -${r.content}`};var Vl=new Set(["position","raw"]);function fi(e,r,t){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text")return null;if(e.type==="inlineCode"&&(r.value=R(!1,e.value,` -`," ")),e.type==="wikiLink"&&(r.value=R(!1,e.value.trim(),/[\t\n]+/gu," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,li.default)(e.label)),(e.type==="link"||e.type==="image")&&e.url&&e.url.includes("("))for(let n of"<>")r.url=R(!1,e.url,n,encodeURIComponent(n));if((e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=R(!1,e.title,/\\(?=["')])/gu,"")),(t==null?void 0:t.type)==="root"&&t.children.length>0&&(t.children[0]===e||ii(t.children[0])&&t.children[1]===e)&&e.type==="html"&&Ir(e.value,Lr))return null}fi.ignoredProperties=Vl;var Di=fi;var pi=/(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b739}\u{2b740}-\u{2b81d}\u{2b820}-\u{2cea1}\u{2ceb0}-\u{2ebe0}\u{2ebf0}-\u{2ee5d}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{323af}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u,Se=/(?:[\u{21}-\u{2f}\u{3a}-\u{40}\u{5b}-\u{60}\u{7b}-\u{7e}]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u;async function jl(e,r){if(e.language==="yaml"){let t=e.value.trim(),n=t?await r(t,{parser:"yaml"}):"";return _e([e.startDelimiter,e.explicitLanguage,L,n,n?L:"",e.endDelimiter])}}var hi=jl;var Wl=(e,r)=>{if(!(e&&r==null))return r.toReversed||!Array.isArray(r)?r.toReversed():[...r].reverse()},di=Wl;var mi,Fi,gi,Ei,vi,Hl=((mi=globalThis.Deno)==null?void 0:mi.build.os)==="windows"||((gi=(Fi=globalThis.navigator)==null?void 0:Fi.platform)==null?void 0:gi.startsWith("Win"))||((vi=(Ei=globalThis.process)==null?void 0:Ei.platform)==null?void 0:vi.startsWith("win"))||!1;function Ci(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function Kl(e){return e=Ci(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Xl(e){e=Ci(e);let r=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(r=`\\\\${e.hostname}${r}`),r}function bi(e){return Hl?Xl(e):Kl(e)}var Ai=bi;var Jl=e=>String(e).split(/[/\\]/u).pop();function yi(e,r){if(!r)return;let t=Jl(r).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===t))??e.find(({extensions:n})=>n==null?void 0:n.some(a=>t.endsWith(a)))}function Ql(e,r){if(r)return e.find(({name:t})=>t.toLowerCase()===r)??e.find(({aliases:t})=>t==null?void 0:t.includes(r))??e.find(({extensions:t})=>t==null?void 0:t.includes(`.${r}`))}function wi(e,r){if(r){if(String(r).startsWith("file:"))try{r=Ai(r)}catch{return}if(typeof r=="string")return e.find(({isSupported:t})=>t==null?void 0:t({filepath:r}))}}function Zl(e,r){let t=di(!1,e.plugins).flatMap(a=>a.languages??[]),n=Ql(t,r.language)??yi(t,r.physicalFile)??yi(t,r.file)??wi(t,r.physicalFile)??wi(t,r.file)??(r.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var xi=Zl;var ef=new Proxy(()=>{},{get:()=>ef});function Pe(e){return e.position.start.offset}function Oe(e){return e.position.end.offset}var vt=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Rr=new Set([...vt,"tableCell","paragraph","heading"]),$e="non-cjk",ie="cj-letter",Le="k-letter",sr="cjk-punctuation",rf=/\p{Script_Extensions=Hangul}/u;function Nr(e){let r=[],t=e.split(/([\t\n ]+)/u);for(let[a,i]of t.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/u.test(i)?` -`:" "});continue}if((a===0||a===t.length-1)&&i==="")continue;let u=i.split(new RegExp(`(${pi.source})`,"u"));for(let[o,s]of u.entries())if(!((o===0||o===u.length-1)&&s==="")){if(o%2===0){s!==""&&n({type:"word",value:s,kind:$e,isCJ:!1,hasLeadingPunctuation:Se.test(s[0]),hasTrailingPunctuation:Se.test(z(!1,s,-1))});continue}if(Se.test(s)){n({type:"word",value:s,kind:sr,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(rf.test(s)){n({type:"word",value:s,kind:Le,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}n({type:"word",value:s,kind:ie,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function n(a){let i=z(!1,r,-1);(i==null?void 0:i.type)==="word"&&!u($e,sr)&&![i.value,a.value].some(o=>/\u3000/u.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function u(o,s){return i.kind===o&&a.kind===s||i.kind===s&&a.kind===o}}}function Ye(e,r){let t=r.originalText.slice(e.position.start.offset,e.position.end.offset),{numberText:n,leadingSpaces:a}=t.match(/^\s*(?\d+)(\.|\))(?\s*)/u).groups;return{number:Number(n),leadingSpaces:a}}function ki(e,r){return!e.ordered||e.children.length<2||Ye(e.children[1],r).number!==1?!1:Ye(e.children[0],r).number!==0?!0:e.children.length>2&&Ye(e.children[2],r).number===1}function Mr(e,r){let{value:t}=e;return e.position.end.offset===r.length&&t.endsWith(` -`)&&r.endsWith(` -`)?t.slice(0,-1):t}function ye(e,r){return function t(n,a,i){let u={...r(n,a,i)};return u.children&&(u.children=u.children.map((o,s)=>t(o,s,[u,...i]))),u}(e,null,[])}function Ct(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[r]=e.children;return Pe(e)===Pe(r)&&Oe(e)===Oe(r)}function tf(e,r){let{node:t}=e;if(t.type==="code"&&t.lang!==null){let n=xi(r,{language:t.lang});if(n)return async a=>{let i=r.__inJsTemplate?"~":"`",u=i.repeat(Math.max(3,Pr(t.value,i)+1)),o={parser:n};t.lang==="ts"||t.lang==="typescript"?o.filepath="dummy.ts":t.lang==="tsx"&&(o.filepath="dummy.tsx");let s=await a(Mr(t,r.originalText),o);return _e([u,t.lang,t.meta?" "+t.meta:"",L,be(s),L,u])}}switch(t.type){case"front-matter":return n=>hi(t,n);case"import":case"export":return n=>n(t.value,{parser:"babel"});case"jsx":return n=>n(`<$>${t.value}`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var Bi=tf;var cr=null;function lr(e){if(cr!==null&&typeof cr.property){let r=cr;return cr=lr.prototype=null,r}return cr=lr.prototype=e??Object.create(null),new lr}var nf=10;for(let e=0;e<=nf;e++)lr();function bt(e){return lr(e)}function uf(e,r="type"){bt(e);function t(n){let a=n[r],i=e[a];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return i}return t}var Ti=uf;var af={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},qi=af;var of=Ti(qi),_i=of;function Si(e){switch(e){case"cr":return"\r";case"crlf":return`\r -`;default:return` -`}}var Pi=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Oi(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Li(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Ii=e=>!(Oi(e)||Li(e));var sf=/[^\x20-\x7F]/u;function cf(e){if(!e)return 0;if(!sf.test(e))return e.length;e=e.replace(Pi()," ");let r=0;for(let t of e){let n=t.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(r+=Ii(n)?1:2)}return r}var fr=cf;var V=Symbol("MODE_BREAK"),ue=Symbol("MODE_FLAT"),Ve=Symbol("cursor"),At=Symbol("DOC_FILL_PRINTED_LENGTH");function Ri(){return{value:"",length:0,queue:[]}}function lf(e,r){return yt(e,{type:"indent"},r)}function ff(e,r,t){return r===Number.NEGATIVE_INFINITY?e.root||Ri():r<0?yt(e,{type:"dedent"},t):r?r.type==="root"?{...e,root:e}:yt(e,{type:typeof r=="string"?"stringAlign":"numberAlign",n:r},t):e}function yt(e,r,t){let n=r.type==="dedent"?e.queue.slice(0,-1):[...e.queue,r],a="",i=0,u=0,o=0;for(let D of n)switch(D.type){case"indent":c(),t.useTabs?s(1):l(t.tabWidth);break;case"stringAlign":c(),a+=D.n,i+=D.n.length;break;case"numberAlign":u+=1,o+=D.n;break;default:throw new Error(`Unexpected type '${D.type}'`)}return p(),{...e,value:a,length:i,queue:n};function s(D){a+=" ".repeat(D),i+=t.tabWidth*D}function l(D){a+=" ".repeat(D),i+=D}function c(){t.useTabs?f():p()}function f(){u>0&&s(u),d()}function p(){o>0&&l(o),d()}function d(){u=0,o=0}}function wt(e){let r=0,t=0,n=e.length;e:for(;n--;){let a=e[n];if(a===Ve){t++;continue}for(let i=a.length-1;i>=0;i--){let u=a[i];if(u===" "||u===" ")r++;else{e[n]=a.slice(0,i+1);break e}}}if(r>0||t>0)for(e.length=n+1;t-- >0;)e.push(Ve);return r}function Ur(e,r,t,n,a,i){if(t===Number.POSITIVE_INFINITY)return!0;let u=r.length,o=[e],s=[];for(;t>=0;){if(o.length===0){if(u===0)return!0;o.push(r[--u]);continue}let{mode:l,doc:c}=o.pop(),f=G(c);switch(f){case Y:s.push(c),t-=fr(c);break;case H:case J:{let p=f===H?c:c.parts,d=c[At]??0;for(let D=p.length-1;D>=d;D--)o.push({mode:l,doc:p[D]});break}case re:case te:case De:case de:o.push({mode:l,doc:c.contents});break;case fe:t+=wt(s);break;case X:{if(i&&c.break)return!1;let p=c.break?V:l,d=c.expandedStates&&p===V?z(!1,c.expandedStates,-1):c.contents;o.push({mode:p,doc:d});break}case K:{let d=(c.groupId?a[c.groupId]||ue:l)===V?c.breakContents:c.flatContents;d&&o.push({mode:l,doc:d});break}case $:if(l===V||c.hard)return!0;c.soft||(s.push(" "),t--);break;case pe:n=!0;break;case he:if(n)return!1;break}}return!1}function Ni(e,r){let t={},n=r.printWidth,a=Si(r.endOfLine),i=0,u=[{ind:Ri(),mode:V,doc:e}],o=[],s=!1,l=[],c=0;for(Jn(e);u.length>0;){let{ind:p,mode:d,doc:D}=u.pop();switch(G(D)){case Y:{let h=a!==` -`?R(!1,D,` -`,a):D;o.push(h),u.length>0&&(i+=fr(h));break}case H:for(let h=D.length-1;h>=0;h--)u.push({ind:p,mode:d,doc:D[h]});break;case Ce:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(Ve),c++;break;case re:u.push({ind:lf(p,r),mode:d,doc:D.contents});break;case te:u.push({ind:ff(p,D.n,r),mode:d,doc:D.contents});break;case fe:i-=wt(o);break;case X:switch(d){case ue:if(!s){u.push({ind:p,mode:D.break?V:ue,doc:D.contents});break}case V:{s=!1;let h={ind:p,mode:ue,doc:D.contents},m=n-i,F=l.length>0;if(!D.break&&Ur(h,u,m,F,t))u.push(h);else if(D.expandedStates){let A=z(!1,D.expandedStates,-1);if(D.break){u.push({ind:p,mode:V,doc:A});break}else for(let v=1;v=D.expandedStates.length){u.push({ind:p,mode:V,doc:A});break}else{let B=D.expandedStates[v],b={ind:p,mode:ue,doc:B};if(Ur(b,u,m,F,t)){u.push(b);break}}}else u.push({ind:p,mode:V,doc:D.contents});break}}D.id&&(t[D.id]=z(!1,u,-1).mode);break;case J:{let h=n-i,m=D[At]??0,{parts:F}=D,A=F.length-m;if(A===0)break;let v=F[m+0],B=F[m+1],b={ind:p,mode:ue,doc:v},g={ind:p,mode:V,doc:v},y=Ur(b,[],h,l.length>0,t,!0);if(A===1){y?u.push(b):u.push(g);break}let w={ind:p,mode:ue,doc:B},E={ind:p,mode:V,doc:B};if(A===2){y?u.push(w,b):u.push(E,g);break}let x=F[m+2],k={ind:p,mode:d,doc:{...D,[At]:m+2}};Ur({ind:p,mode:ue,doc:[v,B,x]},[],h,l.length>0,t,!0)?u.push(k,w,b):y?u.push(k,E,b):u.push(k,E,g);break}case K:case De:{let h=D.groupId?t[D.groupId]:d;if(h===V){let m=D.type===K?D.breakContents:D.negate?D.contents:ir(D.contents);m&&u.push({ind:p,mode:d,doc:m})}if(h===ue){let m=D.type===K?D.flatContents:D.negate?ir(D.contents):D.contents;m&&u.push({ind:p,mode:d,doc:m})}break}case pe:l.push({ind:p,mode:d,doc:D.contents});break;case he:l.length>0&&u.push({ind:p,mode:d,doc:ar});break;case $:switch(d){case ue:if(D.hard)s=!0;else{D.soft||(o.push(" "),i+=1);break}case V:if(l.length>0){u.push({ind:p,mode:d,doc:D},...l.reverse()),l.length=0;break}D.literal?p.root?(o.push(a,p.root.value),i=p.root.length):(o.push(a),i=0):(i-=wt(o),o.push(a+p.value),i=p.length);break}break;case de:u.push({ind:p,mode:d,doc:D.contents});break;case ne:break;default:throw new Te(D)}u.length===0&&l.length>0&&(u.push(...l.reverse()),l.length=0)}let f=o.indexOf(Ve);if(f!==-1){let p=o.indexOf(Ve,f+1);if(p===-1)return{formatted:o.filter(m=>m!==Ve).join("")};let d=o.slice(0,f).join(""),D=o.slice(f+1,p).join(""),h=o.slice(p+1).join("");return{formatted:d+D+h,cursorNodeStart:d.length,cursorNodeText:D}}return{formatted:o.join("")}}function Mi(e,r,t){let{node:n}=e,a=[],i=e.map(()=>e.map(({index:f})=>{let p=Ni(t(),r).formatted,d=fr(p);return a[f]=Math.max(a[f]??3,d),{text:p,width:d}},"children"),"children"),u=s(!1);if(r.proseWrap!=="never")return[ur,u];let o=s(!0);return[ur,Ue(Zn(o,u))];function s(f){return qr(ar,[c(i[0],f),l(f),...i.slice(1).map(p=>c(p,f))].map(p=>`| ${p.join(" | ")} |`))}function l(f){return a.map((p,d)=>{let D=n.align[d],h=D==="center"||D==="left"?":":"-",m=D==="center"||D==="right"?":":"-",F=f?"-":"-".repeat(p-2);return`${h}${F}${m}`})}function c(f,p){return f.map(({text:d,width:D},h)=>{if(p)return d;let m=a[h]-D,F=n.align[h],A=0;F==="right"?A=m:F==="center"&&(A=Math.floor(m/2));let v=m-A;return`${" ".repeat(A)}${d}${" ".repeat(v)}`})}}function Ui(e,r,t){let n=e.map(t,"children");return Df(n)}function Df(e){let r=[""];return function t(n){for(let a of n){let i=G(a);if(i===H){t(a);continue}let u=a,o=[];i===J&&([u,...o]=a.parts),r.push([r.pop(),u],...o)}}(e),ze(r)}var Q,xt=class{constructor(r){jn(this,Q);Wn(this,Q,new Set(r))}getLeadingWhitespaceCount(r){let t=ce(this,Q),n=0;for(let a=0;a=0&&t.has(r.charAt(a));a--)n++;return n}getLeadingWhitespace(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(0,t)}getTrailingWhitespace(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(r.length-t)}hasLeadingWhitespace(r){return ce(this,Q).has(r.charAt(0))}hasTrailingWhitespace(r){return ce(this,Q).has(z(!1,r,-1))}trimStart(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(t)}trimEnd(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(0,r.length-t)}trim(r){return this.trimEnd(this.trimStart(r))}split(r,t=!1){let n=`[${le([...ce(this,Q)].join(""))}]+`,a=new RegExp(t?`(${n})`:n,"u");return r.split(a)}hasWhitespaceCharacter(r){let t=ce(this,Q);return Array.prototype.some.call(r,n=>t.has(n))}hasNonWhitespaceCharacter(r){let t=ce(this,Q);return Array.prototype.some.call(r,n=>!t.has(n))}isWhitespaceOnly(r){let t=ce(this,Q);return Array.prototype.every.call(r,n=>t.has(n))}};Q=new WeakMap;var zi=xt;var pf=[" ",` -`,"\f","\r"," "],hf=new zi(pf),kt=hf;var df=/^\\?.$/su,mf=/^\n *>[ >]*$/u;function Ff(e,r){return e=gf(e,r),e=vf(e),e=bf(e,r),e=Af(e,r),e=Cf(e),e}function gf(e,r){return ye(e,t=>{if(t.type!=="text")return t;let{value:n}=t;if(n==="*"||n==="_"||!df.test(n)||t.position.end.offset-t.position.start.offset===n.length)return t;let a=r.originalText.slice(t.position.start.offset,t.position.end.offset);return mf.test(a)?t:{...t,value:a}})}function Ef(e,r,t){return ye(e,n=>{if(!n.children)return n;let a=n.children.reduce((i,u)=>{let o=z(!1,i,-1);return o&&r(o,u)?i.splice(-1,1,t(o,u)):i.push(u),i},[]);return{...n,children:a}})}function vf(e){return Ef(e,(r,t)=>r.type==="text"&&t.type==="text",(r,t)=>({type:"text",value:r.value+t.value,position:{start:r.position.start,end:t.position.end}}))}function Cf(e){return ye(e,(r,t,[n])=>{if(r.type!=="text")return r;let{value:a}=r;return n.type==="paragraph"&&(t===0&&(a=kt.trimStart(a)),t===n.children.length-1&&(a=kt.trimEnd(a))),{type:"sentence",position:r.position,children:Nr(a)}})}function bf(e,r){return ye(e,(t,n,a)=>{if(t.type==="code"){let i=/^\n?(?: {4,}|\t)/u.test(r.originalText.slice(t.position.start.offset,t.position.end.offset));if(t.isIndented=i,i)for(let u=0;u{if(a.type==="list"&&a.children.length>0){for(let o=0;o1)return!0;let s=t(i);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=t(u);return s!==l?!1:s%r.tabWidth===0?!0:Ye(u,r).leadingSpaces.length>1}}var Gi=Ff;function Yi(e,r){let t=[""];return e.each(()=>{let{node:n}=e,a=r();switch(n.type){case"whitespace":if(G(a)!==Y){t.push(a,"");break}default:t.push([t.pop(),a])}},"children"),ze(t)}var yf=new Set(["heading","tableCell","link","wikiLink"]),$i=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function wf({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:t}=e;for(let n=1;nr[""]}return e.usesCJSpaces}function xf(e,r){if(r)return!0;let{previous:t,next:n}=e;if(!t||!n)return!0;let a=t.kind,i=n.kind;return Vi(a)&&Vi(i)||a===Le&&i===ie||i===Le&&a===ie?!0:a===sr||i===sr||a===ie&&i===ie?!1:$i.has(n.value[0])||$i.has(z(!1,t.value,-1))?!0:t.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:wf(e)}function Vi(e){return e===$e||e===Le}function kf(e,r,t,n){if(t!=="always"||e.hasAncestor(u=>yf.has(u.type)))return!1;if(n)return r!=="";let{previous:a,next:i}=e;return!a||!i?!0:r===""?!1:a.kind===Le&&i.kind===ie||i.kind===Le&&a.kind===ie?!0:!(a.isCJ||i.isCJ)}function Bt(e,r,t,n){if(t==="preserve"&&r===` -`)return L;let a=r===" "||r===` -`&&xf(e,n);return kf(e,r,t,n)?a?_r:Sr:a?" ":""}var Bf=new Set(["listItem","definition"]);function ji(e){var a,i;let{previous:r,next:t}=e;return(r==null?void 0:r.type)==="sentence"&&((a=z(!1,r.children,-1))==null?void 0:a.type)==="word"&&!z(!1,r.children,-1).hasTrailingPunctuation||(t==null?void 0:t.type)==="sentence"&&((i=t.children[0])==null?void 0:i.type)==="word"&&!t.children[0].hasLeadingPunctuation}function Tf(e,r,t){var a;let{node:n}=e;if(Lf(e)){let i=[""],u=Nr(r.originalText.slice(n.position.start.offset,n.position.end.offset));for(let o of u){if(o.type==="word"){i.push([i.pop(),o.value]);continue}let s=Bt(e,o.value,r.proseWrap,!0);if(G(s)===Y){i.push([i.pop(),s]);continue}i.push(s,"")}return ze(i)}switch(n.type){case"front-matter":return r.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":[Sf(e,r,t),L];case"paragraph":return Ui(e,r,t);case"sentence":return Yi(e,t);case"word":{let i=R(!1,R(!1,n.value,"*",String.raw`\*`),new RegExp([`(^|${Se.source})(_+)`,`(_+)(${Se.source}|$)`].join("|"),"gu"),(s,l,c,f,p)=>R(!1,c?`${l}${c}`:`${f}${p}`,"_",String.raw`\_`)),u=(s,l,c)=>s.type==="sentence"&&c===0,o=(s,l,c)=>Ct(s.children[c-1]);return i!==n.value&&(e.match(void 0,u,o)||e.match(void 0,u,(s,l,c)=>s.type==="emphasis"&&c===0,o))&&(i=i.replace(/^(\\?[*_])+/u,s=>R(!1,s,"\\",""))),i}case"whitespace":{let{next:i}=e,u=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value)?"never":r.proseWrap;return Bt(e,n.value,u)}case"emphasis":{let i;if(Ct(n.children[0]))i=r.originalText[n.position.start.offset];else{let u=ji(e),o=((a=e.parent)==null?void 0:a.type)==="strong"&&ji(e.ancestors);i=u||o||e.hasAncestor(s=>s.type==="emphasis")?"*":"_"}return[i,j(e,r,t),i]}case"strong":return["**",j(e,r,t),"**"];case"delete":return["~~",j(e,r,t),"~~"];case"inlineCode":{let i=r.proseWrap==="preserve"?n.value:R(!1,n.value,` -`," "),u=ei(i,"`"),o="`".repeat(u||1),s=i.startsWith("`")||i.endsWith("`")||/^[\n ]/u.test(i)&&/[\n ]$/u.test(i)&&/[^\n ]/u.test(i)?" ":"";return[o,s,i,s,o]}case"wikiLink":{let i="";return r.proseWrap==="preserve"?i=n.value:i=R(!1,n.value,/[\t\n]+/gu," "),["[[",i,"]]"]}case"link":switch(r.originalText[n.position.start.offset]){case"<":{let i="mailto:";return["<",n.url.startsWith(i)&&r.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url,">"]}case"[":return["[",j(e,r,t),"](",Tt(n.url,")"),zr(n.title,r),")"];default:return r.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return["![",n.alt||"","](",Tt(n.url,")"),zr(n.title,r),")"];case"blockquote":return["> ",Ae("> ",j(e,r,t))];case"heading":return["#".repeat(n.depth)+" ",j(e,r,t)];case"code":{if(n.isIndented){let o=" ".repeat(4);return Ae(o,[o,be(n.value,L)])}let i=r.__inJsTemplate?"~":"`",u=i.repeat(Math.max(3,Pr(n.value,i)+1));return[u,n.lang||"",n.meta?" "+n.meta:"",L,be(Mr(n,r.originalText),L),L,u]}case"html":{let{parent:i,isLast:u}=e,o=i.type==="root"&&u?n.value.trimEnd():n.value,s=/^$/su.test(o);return be(o,s?L:_e(nr))}case"list":{let i=Hi(n,e.parent),u=ki(n,r);return j(e,r,t,{processor(o){let s=c(),l=o.node;if(l.children.length===2&&l.children[1].type==="html"&&l.children[0].position.start.column!==l.children[1].position.start.column)return[s,Wi(o,r,t,s)];return[s,Ae(" ".repeat(s.length),Wi(o,r,t,s))];function c(){let f=n.ordered?(o.isFirst?n.start:u?1:n.start+o.index)+(i%2===0?". ":") "):i%2===0?"- ":"* ";return(n.isAligned||n.hasIndentedCodeblock)&&n.ordered?qf(f,r):f}}})}case"thematicBreak":{let{ancestors:i}=e,u=i.findIndex(s=>s.type==="list");return u===-1?"---":Hi(i[u],i[u+1])%2===0?"***":"---"}case"linkReference":return["[",j(e,r,t),"]",n.referenceType==="full"?qt(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","]",qt(n)];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let i=r.proseWrap==="always"?_r:" ";return Ue([qt(n),":",ir([i,Tt(n.url),n.title===null?"":[i,zr(n.title,r,!1)]])])}case"footnote":return["[^",j(e,r,t),"]"];case"footnoteReference":return Qi(n);case"footnoteDefinition":{let i=n.children.length===1&&n.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[Qi(n),": ",i?j(e,r,t):Ue([Ae(" ".repeat(4),j(e,r,t,{processor:({isFirst:u})=>u?Ue([Sr,t()]):t()}))])]}case"table":return Mi(e,r,t);case"tableCell":return j(e,r,t);case"break":return/\s/u.test(r.originalText[n.position.start.offset])?[" ",_e(nr)]:["\\",L];case"liquidNode":return be(n.value,L);case"import":case"export":case"jsx":return n.value;case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",L,n.value?[be(n.value,L),L]:"","$$"];case"inlineMath":return r.originalText.slice(Pe(n),Oe(n));case"tableRow":case"listItem":case"text":default:throw new ni(n,"Markdown")}}function Wi(e,r,t,n){let{node:a}=e,i=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[i,j(e,r,t,{processor({node:u,isFirst:o}){if(o&&u.type!=="list")return Ae(" ".repeat(i.length),t());let s=" ".repeat(Rf(r.tabWidth-n.length,0,3));return[s,Ae(s,t())]}})]}function qf(e,r){let t=n();return e+" ".repeat(t>=4?0:t);function n(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function Hi(e,r){return _f(e,r,t=>t.ordered===e.ordered)}function _f(e,r,t){let n=-1;for(let a of r.children)if(a.type===e.type&&t(a)?n++:n=-1,a===e)return n}function Sf(e,r,t){let n=[],a=null,{children:i}=e.node;for(let[u,o]of i.entries())switch(_t(o)){case"start":a===null&&(a={index:u,offset:o.position.end.offset});break;case"end":a!==null&&(n.push({start:a,end:{index:u,offset:o.position.start.offset}}),a=null);break;default:break}return j(e,r,t,{processor({index:u}){if(n.length>0){let o=n[0];if(u===o.start.index)return[Ki(i[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),Ki(i[o.end.index])];if(o.start.index{let u=a(e);u!==!1&&(i.length>0&&Pf(e)&&(i.push(L),(Of(e,r)||Ji(e))&&i.push(L),Ji(e)&&i.push(L)),i.push(u))},"children"),i}function Ki(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function _t(e){let r;if(e.type==="html")r=e.value.match(/^$/u);else{let t;e.type==="esComment"?t=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(t=e.children[0]),t&&(r=t.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return r?r[1]||"next":!1}function Pf({node:e,parent:r}){let t=vt.has(e.type),n=e.type==="html"&&Rr.has(r.type);return!t&&!n}function Xi(e,r){return e.type==="listItem"&&(e.spread||r.originalText.charAt(e.position.end.offset-1)===` -`)}function Of({node:e,previous:r,parent:t},n){if(Xi(r,n)||e.type==="list"&&t.type==="listItem"&&r.type==="code")return!0;let i=r.type===e.type&&Bf.has(e.type),u=t.type==="listItem"&&(e.type==="list"||!Xi(t,n)),o=_t(r)==="next",s=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,l=e.type==="html"&&t.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(i||u||o||s||l)}function Ji({node:e,previous:r}){let t=r.type==="list",n=e.type==="code"&&e.isIndented;return t&&n}function Lf(e){let r=e.findAncestor(t=>t.type==="linkReference"||t.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}var If=(e,r)=>{for(let t of r)e=R(!1,e,t,encodeURIComponent(t));return e};function Tt(e,r=[]){let t=[" ",...Array.isArray(r)?r:[r]];return new RegExp(t.map(n=>le(n)).join("|"),"u").test(e)?`<${If(e,"<>")}>`:e}function zr(e,r,t=!0){if(!e)return"";if(t)return" "+zr(e,r,!1);if(e=R(!1,e,/\\(?=["')])/gu,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=ti(e,r.singleQuote);return e=R(!1,e,"\\","\\\\"),e=R(!1,e,n,`\\${n}`),`${n}${e}${n}`}function Rf(e,r,t){return Math.max(r,Math.min(e,t))}function Nf(e){return e.index>0&&_t(e.previous)==="next"}function qt(e){return`[${(0,Zi.default)(e.label)}]`}function Qi(e){return`[^${e.label}]`}var Mf={preprocess:Gi,print:Tf,embed:Bi,massageAstNode:Di,hasPrettierIgnore:Nf,insertPragma:ci,getVisitorKeys:_i},eu=Mf;var ru=[{name:"Markdown",type:"prose",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:["contents.lr","README"],wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",extensions:[".mdx"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:[],wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}];var St={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Uf={proseWrap:St.proseWrap,singleQuote:St.singleQuote},tu=Uf;var zn={};Yn(zn,{markdown:()=>tF,mdx:()=>nF,remark:()=>tF});var gl=Me(iu(),1),El=Me(gu(),1),vl=Me(pc(),1),Cl=Me(al(),1);var Hm=/^import\s/u,Km=/^export\s/u,ol=String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`,sl=/|/u,Xm=/^\{\s*\/\*(.*)\*\/\s*\}/u,Jm=` - -`,cl=e=>Hm.test(e),Un=e=>Km.test(e),ll=(e,r)=>{let t=r.indexOf(Jm),n=r.slice(0,t);if(Un(n)||cl(n))return e(n)({type:Un(n)?"export":"import",value:n})},fl=(e,r)=>{let t=Xm.exec(r);if(t)return e(t[0])({type:"esComment",value:t[1].trim()})};ll.locator=e=>Un(e)||cl(e)?-1:1;fl.locator=(e,r)=>e.indexOf("{",r);var Dl=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:t,inlineTokenizers:n,inlineMethods:a}=e.prototype;r.esSyntax=ll,n.esComment=fl,t.splice(t.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};var Qm=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(t,n){let a=Ge(n);if(a.frontMatter)return t(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},pl=Qm;function Zm(){return e=>ye(e,(r,t,[n])=>r.type!=="html"||sl.test(r.value)||Rr.has(n.type)?r:{...r,type:"jsx"})}var hl=Zm;var eF=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=t;function t(n,a){let i=a.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(i)return n(i[0])({type:"liquidNode",value:i[0]})}t.locator=function(n,a){return n.indexOf("{",a)}},dl=eF;var rF=function(){let e="wikiLink",r=/^\[\[(?.+?)\]\]/su,t=this.Parser.prototype,n=t.inlineMethods;n.splice(n.indexOf("link"),0,e),t.inlineTokenizers.wikiLink=a;function a(i,u){let o=r.exec(u);if(o){let s=o.groups.linkContents.trim();return i(o[0])({type:e,value:s})}}a.locator=function(i,u){return i.indexOf("[",u)}},ml=rF;function bl({isMDX:e}){return r=>{let t=(0,Cl.default)().use(vl.default,{commonmark:!0,...e&&{blocks:[ol]}}).use(gl.default).use(pl).use(El.default).use(e?Dl:Fl).use(dl).use(e?hl:Fl).use(ml);return t.run(t.parse(r))}}function Fl(){}var Al={astFormat:"mdast",hasPragma:oi,hasIgnorePragma:si,locStart:Pe,locEnd:Oe},tF={...Al,parse:bl({isMDX:!1})},nF={...Al,parse:bl({isMDX:!0})};var iF={mdast:eu};return Tl(uF);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/markdown.mjs b/node_modules/prettier/plugins/markdown.mjs deleted file mode 100644 index a92cde9..0000000 --- a/node_modules/prettier/plugins/markdown.mjs +++ /dev/null @@ -1,63 +0,0 @@ -var yl=Object.create;var ht=Object.defineProperty;var xl=Object.getOwnPropertyDescriptor;var wl=Object.getOwnPropertyNames;var kl=Object.getPrototypeOf,Bl=Object.prototype.hasOwnProperty;var Yn=e=>{throw TypeError(e)};var C=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),$n=(e,r)=>{for(var t in r)ht(e,t,{get:r[t],enumerable:!0})},Tl=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of wl(r))!Bl.call(e,a)&&a!==t&&ht(e,a,{get:()=>r[a],enumerable:!(n=xl(r,a))||n.enumerable});return e};var Me=(e,r,t)=>(t=e!=null?yl(kl(e)):{},Tl(r||!e||!e.__esModule?ht(t,"default",{value:e,enumerable:!0}):t,e));var Vn=(e,r,t)=>r.has(e)||Yn("Cannot "+t);var ce=(e,r,t)=>(Vn(e,r,"read from private field"),t?t.call(e):r.get(e)),jn=(e,r,t)=>r.has(e)?Yn("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,t),Wn=(e,r,t,n)=>(Vn(e,r,"write to private field"),n?n.call(e,t):r.set(e,t),t);var kr=C((sF,Hn)=>{"use strict";Hn.exports=Sl;function Sl(e){return String(e).replace(/\s+/g," ")}});var iu=C((sv,nu)=>{"use strict";nu.exports=Vf;var Dr=9,zr=10,je=32,zf=33,Gf=58,We=91,Yf=92,Pt=93,pr=94,Gr=96,Yr=4,$f=1024;function Vf(e){var r=this.Parser,t=this.Compiler;jf(r)&&Hf(r,e),Wf(t)&&Kf(t)}function jf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Wf(e){return!!(e&&e.prototype&&e.prototype.visitors)}function Hf(e,r){for(var t=r||{},n=e.prototype,a=n.blockTokenizers,i=n.inlineTokenizers,u=n.blockMethods,o=n.inlineMethods,s=a.definition,l=i.reference,c=[],f=-1,p=u.length,d;++fYr&&(Z=void 0,Ee=T);else{if(Z0&&(U=ve[k-1],U.contentStart===U.contentEnd);)k--;for(Be=b(g.slice(0,U.contentEnd));++T{Lt.isRemarkParser=Jf;Lt.isRemarkCompiler=Qf;function Jf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Qf(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var fu=C((lv,lu)=>{var uu=It();lu.exports=tD;var au=9,ou=32,$r=36,Zf=48,eD=57,su=92,rD=["math","math-inline"],cu="math-display";function tD(e){let r=this.Parser,t=this.Compiler;uu.isRemarkParser(r)&&nD(r,e),uu.isRemarkCompiler(t)&&iD(t,e)}function nD(e,r){let t=e.prototype,n=t.inlineMethods;i.locator=a,t.inlineTokenizers.math=i,n.splice(n.indexOf("text"),0,"math");function a(u,o){return u.indexOf("$",o)}function i(u,o,s){let l=o.length,c=!1,f=!1,p=0,d,D,h,m,F,A,v;if(o.charCodeAt(p)===su&&(f=!0,p++),o.charCodeAt(p)===$r){if(p++,f)return s?!0:u(o.slice(0,p))({type:"text",value:"$"});if(o.charCodeAt(p)===$r&&(c=!0,p++),h=o.charCodeAt(p),!(h===ou||h===au)){for(m=p;peD)&&(!c||h===$r)){F=p-1,p++,c&&p++,A=p;break}}else D===su&&(p++,h=o.charCodeAt(p+1));p++}if(A!==void 0)return s?!0:(v=o.slice(m,F+1),u(o.slice(0,A))({type:"inlineMath",value:v,data:{hName:"span",hProperties:{className:rD.concat(c&&r.inlineMathDouble?[cu]:[])},hChildren:[{type:"text",value:v}]}}))}}}}function iD(e){let r=e.prototype;r.visitors.inlineMath=t;function t(n){let a="$";return(n.data&&n.data.hProperties&&n.data.hProperties.className||[]).includes(cu)&&(a="$$"),a+n.value+a}}});var mu=C((fv,du)=>{var Du=It();du.exports=sD;var pu=10,hr=32,Rt=36,hu=` -`,uD="$",aD=2,oD=["math","math-display"];function sD(){let e=this.Parser,r=this.Compiler;Du.isRemarkParser(e)&&cD(e),Du.isRemarkCompiler(r)&&lD(r)}function cD(e){let r=e.prototype,t=r.blockMethods,n=r.interruptParagraph,a=r.interruptList,i=r.interruptBlockquote;r.blockTokenizers.math=u,t.splice(t.indexOf("fencedCode")+1,0,"math"),n.splice(n.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),i.splice(i.indexOf("fencedCode")+1,0,["math"]);function u(o,s,l){var c=s.length,f=0;let p,d,D,h,m,F,A,v,B,b,g;for(;fb&&s.charCodeAt(h-1)===hr;)h--;for(;h>b&&s.charCodeAt(h-1)===Rt;)B++,h--;for(F<=B&&s.indexOf(uD,b)===h&&(v=!0,g=h);b<=g&&b-fb&&s.charCodeAt(g-1)===hr;)g--;if((!v||b!==g)&&d.push(s.slice(b,g)),v)break;f=D+1,D=s.indexOf(hu,f+1),D=D===-1?c:D}return d=d.join(` -`),o(s.slice(0,D))({type:"math",value:d,data:{hName:"div",hProperties:{className:oD.concat()},hChildren:[{type:"text",value:d}]}})}}}}function lD(e){let r=e.prototype;r.visitors.math=t;function t(n){return`$$ -`+n.value+` -$$`}}});var gu=C((Dv,Fu)=>{var fD=fu(),DD=mu();Fu.exports=pD;function pD(e){var r=e||{};DD.call(this,r),fD.call(this,r)}});var Ie=C((pv,Eu)=>{Eu.exports=dD;var hD=Object.prototype.hasOwnProperty;function dD(){for(var e={},r=0;r{typeof Object.create=="function"?Nt.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Nt.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});var Au=C((dv,bu)=>{"use strict";var mD=Ie(),Cu=vu();bu.exports=FD;function FD(e){var r,t,n;Cu(i,e),Cu(a,i),r=i.prototype;for(t in r)n=r[t],n&&typeof n=="object"&&(r[t]="concat"in n?n.concat():mD(n));return i;function a(u){return e.apply(this,u)}function i(){return this instanceof i?e.apply(this,arguments):new a(arguments)}}});var xu=C((mv,yu)=>{"use strict";yu.exports=gD;function gD(e,r,t){return n;function n(){var a=t||this,i=a[e];return a[e]=!r,u;function u(){a[e]=i}}}});var ku=C((Fv,wu)=>{"use strict";wu.exports=ED;function ED(e){for(var r=String(e),t=[],n=/\r?\n|\r/g;n.exec(r);)t.push(n.lastIndex);return t.push(r.length+1),{toPoint:a,toPosition:a,toOffset:i};function a(u){var o=-1;if(u>-1&&uu)return{line:o+1,column:u-(t[o-1]||0)+1,offset:u}}return{}}function i(u){var o=u&&u.line,s=u&&u.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in t&&(l=(t[o-2]||0)+s-1||0),l>-1&&l{"use strict";Bu.exports=vD;var Mt="\\";function vD(e,r){return t;function t(n){for(var a=0,i=n.indexOf(Mt),u=e[r],o=[],s;i!==-1;)o.push(n.slice(a,i)),a=i+1,s=n.charAt(a),(!s||u.indexOf(s)===-1)&&o.push(Mt),i=n.indexOf(Mt,a+1);return o.push(n.slice(a)),o.join("")}}});var qu=C((Ev,CD)=>{CD.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var _u=C((vv,bD)=>{bD.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Re=C((Cv,Su)=>{"use strict";Su.exports=AD;function AD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var Ou=C((bv,Pu)=>{"use strict";Pu.exports=yD;function yD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var He=C((Av,Lu)=>{"use strict";Lu.exports=xD;function xD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var Ru=C((yv,Iu)=>{"use strict";var wD=He(),kD=Re();Iu.exports=BD;function BD(e){return wD(e)||kD(e)}});var Nu=C((xv,TD)=>{TD.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var zu=C((wv,Uu)=>{"use strict";var Mu=Nu();Uu.exports=_D;var qD={}.hasOwnProperty;function _D(e){return qD.call(Mu,e)?Mu[e]:!1}});var dr=C((kv,ea)=>{"use strict";var Gu=qu(),Yu=_u(),SD=Re(),PD=Ou(),Wu=Ru(),OD=zu();ea.exports=WD;var LD={}.hasOwnProperty,Ke=String.fromCharCode,ID=Function.prototype,$u={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},RD=9,Vu=10,ND=12,MD=32,ju=38,UD=59,zD=60,GD=61,YD=35,$D=88,VD=120,jD=65533,Xe="named",zt="hexadecimal",Gt="decimal",Yt={};Yt[zt]=16;Yt[Gt]=10;var Vr={};Vr[Xe]=Wu;Vr[Gt]=SD;Vr[zt]=PD;var Hu=1,Ku=2,Xu=3,Ju=4,Qu=5,Ut=6,Zu=7,xe={};xe[Hu]="Named character references must be terminated by a semicolon";xe[Ku]="Numeric character references must be terminated by a semicolon";xe[Xu]="Named character references cannot be empty";xe[Ju]="Numeric character references cannot be empty";xe[Qu]="Named character references must be known";xe[Ut]="Numeric character references cannot be disallowed";xe[Zu]="Numeric character references cannot be outside the permissible Unicode range";function WD(e,r){var t={},n,a;r||(r={});for(a in $u)n=r[a],t[a]=n??$u[a];return(t.position.indent||t.position.start)&&(t.indent=t.position.indent||[],t.position=t.position.start),HD(e,t)}function HD(e,r){var t=r.additional,n=r.nonTerminated,a=r.text,i=r.reference,u=r.warning,o=r.textContext,s=r.referenceContext,l=r.warningContext,c=r.position,f=r.indent||[],p=e.length,d=0,D=-1,h=c.column||1,m=c.line||1,F="",A=[],v,B,b,g,y,x,E,w,k,T,q,N,P,S,_,O,Be,W,I;for(typeof t=="string"&&(t=t.charCodeAt(0)),O=ee(),w=u?Z:ID,d--,p++;++d65535&&(x-=65536,T+=Ke(x>>>10|55296),x=56320|x&1023),x=T+Ke(x))):S!==Xe&&w(Ju,W)),x?(Ee(),O=ee(),d=I-1,h+=I-P+1,A.push(x),Be=ee(),Be.offset++,i&&i.call(s,x,{start:O,end:Be},e.slice(P-1,I)),O=Be):(g=e.slice(P-1,I),F+=g,h+=g.length,d=I-1)}else y===10&&(m++,D++,h=0),y===y?(F+=Ke(y),h++):Ee();return A.join("");function ee(){return{line:m,column:h,offset:d+(c.offset||0)}}function Z(ve,U){var pt=ee();pt.column+=U,pt.offset+=U,u.call(l,xe[ve],pt,ve)}function Ee(){F&&(A.push(F),a&&a.call(o,F,{start:O,end:ee()}),F="")}}function KD(e){return e>=55296&&e<=57343||e>1114111}function XD(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}});var na=C((Bv,ta)=>{"use strict";var JD=Ie(),ra=dr();ta.exports=QD;function QD(e){return t.raw=n,t;function r(i){for(var u=e.offset,o=i.line,s=[];++o&&o in u;)s.push((u[o]||0)+1);return{start:i,indent:s}}function t(i,u,o){ra(i,{position:r(u),warning:a,text:o,reference:o,textContext:e,referenceContext:e})}function n(i,u,o){return ra(i,JD(o,{position:r(u),warning:a}))}function a(i,u,o){o!==3&&e.file.message(i,u)}}});var aa=C((Tv,ua)=>{"use strict";ua.exports=ZD;function ZD(e){return r;function r(t,n){var a=this,i=a.offset,u=[],o=a[e+"Methods"],s=a[e+"Tokenizers"],l=n.line,c=n.column,f,p,d,D,h,m;if(!t)return u;for(x.now=v,x.file=a.file,F("");t;){for(f=-1,p=o.length,h=!1;++f{"use strict";sa.exports=jr;var $t=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],Vt=$t.concat(["~","|"]),oa=Vt.concat([` -`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);jr.default=$t;jr.gfm=Vt;jr.commonmark=oa;function jr(e){var r=e||{};return r.commonmark?oa:r.gfm?Vt:$t}});var fa=C((_v,la)=>{"use strict";la.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var jt=C((Sv,Da)=>{"use strict";Da.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:fa()}});var ha=C((Pv,pa)=>{"use strict";var tp=Ie(),np=ca(),ip=jt();pa.exports=up;function up(e){var r=this,t=r.options,n,a;if(e==null)e={};else if(typeof e=="object")e=tp(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(n in ip){if(a=e[n],a==null&&(a=t[n]),n!=="blocks"&&typeof a!="boolean"||n==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+n+"`");e[n]=a}return r.options=e,r.escape=np(e),r}});var Fa=C((Ov,ma)=>{"use strict";ma.exports=da;function da(e){if(e==null)return cp;if(typeof e=="string")return sp(e);if(typeof e=="object")return"length"in e?op(e):ap(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function ap(e){return r;function r(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function op(e){for(var r=[],t=-1;++t{ga.exports=lp;function lp(e){return e}});var Aa=C((Iv,ba)=>{"use strict";ba.exports=Wr;var fp=Fa(),Dp=Ea(),va=!0,Ca="skip",Wt=!1;Wr.CONTINUE=va;Wr.SKIP=Ca;Wr.EXIT=Wt;function Wr(e,r,t,n){var a,i;typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),i=fp(r),a=n?-1:1,u(e,null,[])();function u(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,p.displayName="node ("+Dp(c.type+(f?"<"+f+">":""))+")"),p;function p(){var d=l.concat(o),D=[],h,m;if((!r||i(o,s,l[l.length-1]||null))&&(D=pp(t(o,l)),D[0]===Wt))return D;if(o.children&&D[0]!==Ca)for(m=(n?o.children.length:-1)+a;m>-1&&m{"use strict";ya.exports=Kr;var Hr=Aa(),hp=Hr.CONTINUE,dp=Hr.SKIP,mp=Hr.EXIT;Kr.CONTINUE=hp;Kr.SKIP=dp;Kr.EXIT=mp;function Kr(e,r,t,n){typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),Hr(e,r,a,n);function a(i,u){var o=u[u.length-1],s=o?o.children.indexOf(i):null;return t(i,s,o)}}});var ka=C((Nv,wa)=>{"use strict";var Fp=xa();wa.exports=gp;function gp(e,r){return Fp(e,r?Ep:vp),e}function Ep(e){delete e.position}function vp(e){e.position=void 0}});var qa=C((Mv,Ta)=>{"use strict";var Ba=Ie(),Cp=ka();Ta.exports=yp;var bp=` -`,Ap=/\r\n|\r/g;function yp(){var e=this,r=String(e.file),t={line:1,column:1,offset:0},n=Ba(t),a;return r=r.replace(Ap,bp),r.charCodeAt(0)===65279&&(r=r.slice(1),n.column++,n.offset++),a={type:"root",children:e.tokenizeBlock(r,n),position:{start:t,end:e.eof||Ba(t)}},e.options.position||Cp(a,!0),a}});var Sa=C((Uv,_a)=>{"use strict";var xp=/^[ \t]*(\n|$)/;_a.exports=wp;function wp(e,r,t){for(var n,a="",i=0,u=r.length;i{"use strict";var me="",Ht;Pa.exports=kp;function kp(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var t=e.length*r;if(Ht!==e||typeof Ht>"u")Ht=e,me="";else if(me.length>=t)return me.substr(0,t);for(;t>me.length&&r>1;)r&1&&(me+=e),r>>=1,e+=e;return me+=e,me=me.substr(0,t),me}});var Kt=C((Gv,Oa)=>{"use strict";Oa.exports=Bp;function Bp(e){return String(e).replace(/\n+$/,"")}});var Ra=C((Yv,Ia)=>{"use strict";var Tp=Xr(),qp=Kt();Ia.exports=Pp;var Xt=` -`,La=" ",Jt=" ",_p=4,Sp=Tp(Jt,_p);function Pp(e,r,t){for(var n=-1,a=r.length,i="",u="",o="",s="",l,c,f;++n{"use strict";Ma.exports=Rp;var Jr=` -`,mr=" ",Je=" ",Op="~",Na="`",Lp=3,Ip=4;function Rp(e,r,t){var n=this,a=n.options.gfm,i=r.length+1,u=0,o="",s,l,c,f,p,d,D,h,m,F,A,v,B;if(a){for(;u=Ip)){for(D="";u{Qe=za.exports=Np;function Np(e){return e.trim?e.trim():Qe.right(Qe.left(e))}Qe.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Qe.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,t=e.length;r.test(e.charAt(--t)););return e.slice(0,t+1)}});var Qr=C((Vv,Ga)=>{"use strict";Ga.exports=Mp;function Mp(e,r,t,n){for(var a=e.length,i=-1,u,o;++i{"use strict";var Up=Ne(),zp=Qr();Va.exports=Gp;var Qt=` -`,Ya=" ",Zt=" ",$a=">";function Gp(e,r,t){for(var n=this,a=n.offset,i=n.blockTokenizers,u=n.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],p=[],d,D=0,h,m,F,A,v,B,b,g;D{"use strict";Ha.exports=$p;var Wa=` -`,Fr=" ",gr=" ",Er="#",Yp=6;function $p(e,r,t){for(var n=this,a=n.options.pedantic,i=r.length+1,u=-1,o=e.now(),s="",l="",c,f,p;++uYp)&&!(!p||!a&&r.charAt(u+1)===Er)){for(i=r.length+1,f="";++u{"use strict";Ja.exports=Jp;var Vp=" ",jp=` -`,Xa=" ",Wp="*",Hp="-",Kp="_",Xp=3;function Jp(e,r,t){for(var n=-1,a=r.length+1,i="",u,o,s,l;++n=Xp&&(!u||u===jp)?(i+=l,t?!0:e(i)({type:"thematicBreak"})):void 0}});var en=C((Kv,eo)=>{"use strict";eo.exports=rh;var Za=" ",Qp=" ",Zp=1,eh=4;function rh(e){for(var r=0,t=0,n=e.charAt(r),a={},i,u=0;n===Za||n===Qp;){for(i=n===Za?eh:Zp,t+=i,i>1&&(t=Math.floor(t/i)*i);u{"use strict";var th=Ne(),nh=Xr(),ih=en();to.exports=oh;var ro=` -`,uh=" ",ah="!";function oh(e,r){var t=e.split(ro),n=t.length+1,a=1/0,i=[],u,o,s;for(t.unshift(nh(uh,r)+ah);n--;)if(o=ih(t[n]),i[n]=o.stops,th(t[n]).length!==0)if(o.indent)o.indent>0&&o.indent{"use strict";var sh=Ne(),ch=Xr(),io=Re(),lh=en(),fh=no(),Dh=Qr();so.exports=vh;var rn="*",ph="_",uo="+",tn="-",ao=".",Fe=" ",ae=` -`,Zr=" ",oo=")",hh="x",we=4,dh=/\n\n(?!\s*$)/,mh=/^\[([ X\tx])][ \t]/,Fh=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,gh=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,Eh=/^( {1,4}|\t)?/gm;function vh(e,r,t){for(var n=this,a=n.options.commonmark,i=n.options.pedantic,u=n.blockTokenizers,o=n.interruptList,s=0,l=r.length,c=null,f,p,d,D,h,m,F,A,v,B,b,g,y,x,E,w,k,T,q,N=!1,P,S,_,O;s=k.indent&&(O=!0),D=r.charAt(s),v=null,!O){if(D===rn||D===uo||D===tn)v=D,s++,f++;else{for(p="";s=k.indent||f>we),A=!1,s=F;if(b=r.slice(F,m),B=F===s?b:r.slice(s,m),(v===rn||v===ph||v===tn)&&u.thematicBreak.call(n,e,b,!0))break;if(g=y,y=!A&&!sh(B).length,O&&k)k.value=k.value.concat(w,b),E=E.concat(w,b),w=[];else if(A)w.length!==0&&(N=!0,k.value.push(""),k.trail=w.concat()),k={value:[b],indent:f,trail:[]},x.push(k),E=E.concat(w,b),w=[];else if(y){if(g&&!a)break;w.push(b)}else{if(g||Dh(o,u,n,[e,b,!0]))break;k.value=k.value.concat(w,b),E=E.concat(w,b),w=[]}s=m+1}for(P=e(E.join(ae)).reset({type:"list",ordered:d,start:c,spread:N,children:[]}),T=n.enterList(),q=n.enterBlock(),s=-1,l=x.length;++s{"use strict";Do.exports=Th;var nn=` -`,yh=" ",lo=" ",fo="=",xh="-",wh=3,kh=1,Bh=2;function Th(e,r,t){for(var n=this,a=e.now(),i=r.length,u=-1,o="",s,l,c,f,p;++u=wh){u--;break}o+=c}for(s="",l="";++u{"use strict";var qh="[a-zA-Z_:][a-zA-Z0-9:._-]*",_h="[^\"'=<>`\\u0000-\\u0020]+",Sh="'[^']*'",Ph='"[^"]*"',Oh="(?:"+_h+"|"+Sh+"|"+Ph+")",Lh="(?:\\s+"+qh+"(?:\\s*=\\s*"+Oh+")?)",ho="<[A-Za-z][A-Za-z0-9\\-]*"+Lh+"*\\s*\\/?>",mo="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Ih="|",Rh="<[?].*?[?]>",Nh="]*>",Mh="";un.openCloseTag=new RegExp("^(?:"+ho+"|"+mo+")");un.tag=new RegExp("^(?:"+ho+"|"+mo+"|"+Ih+"|"+Rh+"|"+Nh+"|"+Mh+")")});var vo=C((eC,Eo)=>{"use strict";var Uh=an().openCloseTag;Eo.exports=rd;var zh=" ",Gh=" ",Fo=` -`,Yh="<",$h=/^<(script|pre|style)(?=(\s|>|$))/i,Vh=/<\/(script|pre|style)>/i,jh=/^/,Hh=/^<\?/,Kh=/\?>/,Xh=/^/,Qh=/^/,go=/^$/,ed=new RegExp(Uh.source+"\\s*$");function rd(e,r,t){for(var n=this,a=n.options.blocks.join("|"),i=new RegExp("^|$))","i"),u=r.length,o=0,s,l,c,f,p,d,D,h=[[$h,Vh,!0],[jh,Wh,!0],[Hh,Kh,!0],[Xh,Jh,!0],[Qh,Zh,!0],[i,go,!0],[ed,go,!1]];o{"use strict";Co.exports=id;var td=String.fromCharCode,nd=/\s/;function id(e){return nd.test(typeof e=="number"?td(e):e.charAt(0))}});var on=C((tC,bo)=>{"use strict";var ud=kr();bo.exports=ad;function ad(e){return ud(e).toLowerCase()}});var To=C((nC,Bo)=>{"use strict";var od=oe(),sd=on();Bo.exports=Dd;var Ao='"',yo="'",cd="\\",Ze=` -`,et=" ",rt=" ",cn="[",vr="]",ld="(",fd=")",xo=":",wo="<",ko=">";function Dd(e,r,t){for(var n=this,a=n.options.commonmark,i=0,u=r.length,o="",s,l,c,f,p,d,D,h;i{"use strict";var hd=oe();_o.exports=yd;var dd=" ",tt=` -`,md=" ",Fd="-",gd=":",Ed="\\",ln="|",vd=1,Cd=2,qo="left",bd="center",Ad="right";function yd(e,r,t){var n=this,a,i,u,o,s,l,c,f,p,d,D,h,m,F,A,v,B,b,g,y,x,E;if(n.options.gfm){for(a=0,v=0,l=r.length+1,c=[];ay){if(v1&&(p?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),F=e.now(),e(o)({type:"tableCell",children:n.tokenizeInline(h,F)},s)),e(f+p),f="",h=""):(f&&(h+=f,f=""),h+=p,p===Ed&&a!==l-2&&(h+=B.charAt(a+1),a++)),m=!1,a++}A||e(tt+i)}return g}}}});var Lo=C((uC,Oo)=>{"use strict";var xd=Ne(),wd=Kt(),kd=Qr();Oo.exports=qd;var Bd=" ",Cr=` -`,Td=" ",Po=4;function qd(e,r,t){for(var n=this,a=n.options,i=a.commonmark,u=n.blockTokenizers,o=n.interruptParagraph,s=r.indexOf(Cr),l=r.length,c,f,p,d,D;s=Po&&p!==Cr){s=r.indexOf(Cr,s+1);continue}}if(f=r.slice(s+1),kd(o,u,n,[e,f,!0]))break;if(c=s,s=r.indexOf(Cr,s+1),s!==-1&&xd(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),t?!0:(D=e.now(),f=wd(f),e(f)({type:"paragraph",children:n.tokenizeInline(f,D)}))}});var Ro=C((aC,Io)=>{"use strict";Io.exports=_d;function _d(e,r){return e.indexOf("\\",r)}});var zo=C((oC,Uo)=>{"use strict";var Sd=Ro();Uo.exports=Mo;Mo.locator=Sd;var Pd=` -`,No="\\";function Mo(e,r,t){var n=this,a,i;if(r.charAt(0)===No&&(a=r.charAt(1),n.escape.indexOf(a)!==-1))return t?!0:(a===Pd?i={type:"break"}:i={type:"text",value:a},e(No+a)(i))}});var fn=C((sC,Go)=>{"use strict";Go.exports=Od;function Od(e,r){return e.indexOf("<",r)}});var Wo=C((cC,jo)=>{"use strict";var Yo=oe(),Ld=dr(),Id=fn();jo.exports=dn;dn.locator=Id;dn.notInLink=!0;var $o="<",Dn=">",Vo="@",pn="/",hn="mailto:",nt=hn.length;function dn(e,r,t){var n=this,a="",i=r.length,u=0,o="",s=!1,l="",c,f,p,d,D;if(r.charAt(0)===$o){for(u++,a=$o;u{"use strict";Ho.exports=Rd;function Rd(e,r){var t=String(e),n=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=t.indexOf(r);a!==-1;)n++,a=t.indexOf(r,a+r.length);return n}});var Qo=C((fC,Jo)=>{"use strict";Jo.exports=Nd;var Xo=["www.","http://","https://"];function Nd(e,r){var t=-1,n,a,i;if(!this.options.gfm)return t;for(a=Xo.length,n=-1;++n{"use strict";var Zo=Ko(),Md=dr(),Ud=Re(),mn=He(),zd=oe(),Gd=Qo();ts.exports=gn;gn.locator=Gd;gn.notInLink=!0;var Yd=33,$d=38,Vd=41,jd=42,Wd=44,Hd=45,Fn=46,Kd=58,Xd=59,Jd=63,Qd=60,es=95,Zd=126,e0="(",rs=")";function gn(e,r,t){var n=this,a=n.options.gfm,i=n.inlineTokenizers,u=r.length,o=-1,s=!1,l,c,f,p,d,D,h,m,F,A,v,B,b,g;if(a){if(r.slice(0,4)==="www.")s=!0,p=4;else if(r.slice(0,7).toLowerCase()==="http://")p=7;else if(r.slice(0,8).toLowerCase()==="https://")p=8;else return;for(o=p-1,f=p,l=[];pF;)p=d+D.lastIndexOf(rs),D=r.slice(d,p),A--;if(r.charCodeAt(p-1)===Xd&&(p--,mn(r.charCodeAt(p-1)))){for(m=p-2;mn(r.charCodeAt(m));)m--;r.charCodeAt(m)===$d&&(p=m)}return v=r.slice(0,p),b=Md(v,{nonTerminated:!1}),s&&(b="http://"+b),g=n.enterLink(),n.inlineTokenizers={text:i.text},B=n.tokenizeInline(v,e.now()),n.inlineTokenizers=i,g(),e(v)({type:"link",title:null,url:b,children:B})}}}});var os=C((pC,as)=>{"use strict";var r0=Re(),t0=He(),n0=43,i0=45,u0=46,a0=95;as.exports=us;function us(e,r){var t=this,n,a;if(!this.options.gfm||(n=e.indexOf("@",r),n===-1))return-1;if(a=n,a===r||!is(e.charCodeAt(a-1)))return us.call(t,e,n+1);for(;a>r&&is(e.charCodeAt(a-1));)a--;return a}function is(e){return r0(e)||t0(e)||e===n0||e===i0||e===u0||e===a0}});var fs=C((hC,ls)=>{"use strict";var o0=dr(),ss=Re(),cs=He(),s0=os();ls.exports=Cn;Cn.locator=s0;Cn.notInLink=!0;var c0=43,En=45,it=46,l0=64,vn=95;function Cn(e,r,t){var n=this,a=n.options.gfm,i=n.inlineTokenizers,u=0,o=r.length,s=-1,l,c,f,p;if(a){for(l=r.charCodeAt(u);ss(l)||cs(l)||l===c0||l===En||l===it||l===vn;)l=r.charCodeAt(++u);if(u!==0&&l===l0){for(u++;u{"use strict";var f0=He(),D0=fn(),p0=an().tag;ps.exports=Ds;Ds.locator=D0;var h0="<",d0="?",m0="!",F0="/",g0=/^/i;function Ds(e,r,t){var n=this,a=r.length,i,u;if(!(r.charAt(0)!==h0||a<3)&&(i=r.charAt(1),!(!f0(i)&&i!==d0&&i!==m0&&i!==F0)&&(u=r.match(p0),!!u)))return t?!0:(u=u[0],!n.inLink&&g0.test(u)?n.inLink=!0:n.inLink&&E0.test(u)&&(n.inLink=!1),e(u)({type:"html",value:u}))}});var bn=C((mC,ds)=>{"use strict";ds.exports=v0;function v0(e,r){var t=e.indexOf("[",r),n=e.indexOf("![",r);return n===-1||t{"use strict";var br=oe(),C0=bn();Cs.exports=vs;vs.locator=C0;var b0=` -`,A0="!",ms='"',Fs="'",er="(",Ar=")",An="<",yn=">",gs="[",yr="\\",y0="]",Es="`";function vs(e,r,t){var n=this,a="",i=0,u=r.charAt(0),o=n.options.pedantic,s=n.options.commonmark,l=n.options.gfm,c,f,p,d,D,h,m,F,A,v,B,b,g,y,x,E,w,k;if(u===A0&&(F=!0,a=u,u=r.charAt(++i)),u===gs&&!(!F&&n.inLink)){for(a+=u,y="",i++,B=r.length,E=e.now(),g=0,E.column+=i,E.offset+=i;i=p&&(p=0):p=f}else if(u===yr)i++,h+=r.charAt(i);else if((!p||l)&&u===gs)g++;else if((!p||l)&&u===y0)if(g)g--;else{if(r.charAt(i+1)!==er)return;h+=er,c=!0,i++;break}y+=h,h="",i++}if(c){for(A=y,a+=y+h,i++;i{"use strict";var x0=oe(),w0=bn(),k0=on();ys.exports=As;As.locator=w0;var xn="link",B0="image",T0="shortcut",q0="collapsed",wn="full",_0="!",ut="[",at="\\",ot="]";function As(e,r,t){var n=this,a=n.options.commonmark,i=r.charAt(0),u=0,o=r.length,s="",l="",c=xn,f=T0,p,d,D,h,m,F,A,v;if(i===_0&&(c=B0,l=i,i=r.charAt(++u)),i===ut){for(u++,l+=i,F="",v=0;u{"use strict";ws.exports=S0;function S0(e,r){var t=e.indexOf("**",r),n=e.indexOf("__",r);return n===-1?t:t===-1||n{"use strict";var P0=Ne(),Bs=oe(),O0=ks();qs.exports=Ts;Ts.locator=O0;var L0="\\",I0="*",R0="_";function Ts(e,r,t){var n=this,a=0,i=r.charAt(a),u,o,s,l,c,f,p;if(!(i!==I0&&i!==R0||r.charAt(++a)!==i)&&(o=n.options.pedantic,s=i,c=s+s,f=r.length,a++,l="",i="",!(o&&Bs(r.charAt(a)))))for(;a{"use strict";Ss.exports=U0;var N0=String.fromCharCode,M0=/\w/;function U0(e){return M0.test(typeof e=="number"?N0(e):e.charAt(0))}});var Ls=C((bC,Os)=>{"use strict";Os.exports=z0;function z0(e,r){var t=e.indexOf("*",r),n=e.indexOf("_",r);return n===-1?t:t===-1||n{"use strict";var G0=Ne(),Y0=Ps(),Is=oe(),$0=Ls();Ms.exports=Ns;Ns.locator=$0;var V0="*",Rs="_",j0="\\";function Ns(e,r,t){var n=this,a=0,i=r.charAt(a),u,o,s,l,c,f,p;if(!(i!==V0&&i!==Rs)&&(o=n.options.pedantic,c=i,s=i,f=r.length,a++,l="",i="",!(o&&Is(r.charAt(a)))))for(;a{"use strict";zs.exports=W0;function W0(e,r){return e.indexOf("~~",r)}});var Ws=C((xC,js)=>{"use strict";var Ys=oe(),H0=Gs();js.exports=Vs;Vs.locator=H0;var st="~",$s="~~";function Vs(e,r,t){var n=this,a="",i="",u="",o="",s,l,c;if(!(!n.options.gfm||r.charAt(0)!==st||r.charAt(1)!==st||Ys(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s{"use strict";Hs.exports=K0;function K0(e,r){return e.indexOf("`",r)}});var Qs=C((kC,Js)=>{"use strict";var X0=Ks();Js.exports=Xs;Xs.locator=X0;var kn=10,Bn=32,Tn=96;function Xs(e,r,t){for(var n=r.length,a=0,i,u,o,s,l,c;a2&&(s===Bn||s===kn)&&(l===Bn||l===kn)){for(a++,n--;a{"use strict";Zs.exports=J0;function J0(e,r){for(var t=e.indexOf(` -`,r);t>r&&e.charAt(t-1)===" ";)t--;return t}});var nc=C((TC,tc)=>{"use strict";var Q0=ec();tc.exports=rc;rc.locator=Q0;var Z0=" ",em=` -`,rm=2;function rc(e,r,t){for(var n=r.length,a=-1,i="",u;++a{"use strict";ic.exports=tm;function tm(e,r,t){var n=this,a,i,u,o,s,l,c,f,p,d;if(t)return!0;for(a=n.inlineMethods,o=a.length,i=n.inlineTokenizers,u=-1,p=r.length;++u{"use strict";var nm=Ie(),ct=xu(),im=ku(),um=Tu(),am=na(),qn=aa();sc.exports=ac;function ac(e,r){this.file=r,this.offset={},this.options=nm(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=im(r).toOffset,this.unescape=um(this,"escape"),this.decode=am(this)}var M=ac.prototype;M.setOptions=ha();M.parse=qa();M.options=jt();M.exitStart=ct("atStart",!0);M.enterList=ct("inList",!1);M.enterLink=ct("inLink",!1);M.enterBlock=ct("inBlock",!1);M.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];M.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];M.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];M.blockTokenizers={blankLine:Sa(),indentedCode:Ra(),fencedCode:Ua(),blockquote:ja(),atxHeading:Ka(),thematicBreak:Qa(),list:co(),setextHeading:po(),html:vo(),definition:To(),table:So(),paragraph:Lo()};M.inlineTokenizers={escape:zo(),autoLink:Wo(),url:ns(),email:fs(),html:hs(),link:bs(),reference:xs(),strong:_s(),emphasis:Us(),deletion:Ws(),code:Qs(),break:nc(),text:uc()};M.blockMethods=oc(M.blockTokenizers);M.inlineMethods=oc(M.inlineTokenizers);M.tokenizeBlock=qn("block");M.tokenizeInline=qn("inline");M.tokenizeFactory=qn;function oc(e){var r=[],t;for(t in e)r.push(t);return r}});var pc=C((SC,Dc)=>{"use strict";var om=Au(),sm=Ie(),lc=cc();Dc.exports=fc;fc.Parser=lc;function fc(e){var r=this.data("settings"),t=om(lc);t.prototype.options=sm(t.prototype.options,r,e),this.Parser=t}});var dc=C((PC,hc)=>{"use strict";hc.exports=cm;function cm(e){if(e)throw e}});var _n=C((OC,mc)=>{mc.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var xc=C((LC,yc)=>{"use strict";var lt=Object.prototype.hasOwnProperty,Ac=Object.prototype.toString,Fc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,Ec=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Ac.call(r)==="[object Array]"},vc=function(r){if(!r||Ac.call(r)!=="[object Object]")return!1;var t=lt.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&<.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!t&&!n)return!1;var a;for(a in r);return typeof a>"u"||lt.call(r,a)},Cc=function(r,t){Fc&&t.name==="__proto__"?Fc(r,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):r[t.name]=t.newValue},bc=function(r,t){if(t==="__proto__")if(lt.call(r,t)){if(gc)return gc(r,t).value}else return;return r[t]};yc.exports=function e(){var r,t,n,a,i,u,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s{"use strict";wc.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var Tc=C((RC,Bc)=>{"use strict";var lm=[].slice;Bc.exports=fm;function fm(e,r){var t;return n;function n(){var u=lm.call(arguments,0),o=e.length>u.length,s;o&&u.push(a);try{s=e.apply(null,u)}catch(l){if(o&&t)throw l;return a(l)}o||(s&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(){t||(t=!0,r.apply(null,arguments))}function i(u){a(null,u)}}});var Oc=C((NC,Pc)=>{"use strict";var _c=Tc();Pc.exports=Sc;Sc.wrap=_c;var qc=[].slice;function Sc(){var e=[],r={};return r.run=t,r.use=n,r;function t(){var a=-1,i=qc.call(arguments,0,-1),u=arguments[arguments.length-1];if(typeof u!="function")throw new Error("Expected function as last argument, not "+u);o.apply(null,[null].concat(i));function o(s){var l=e[++a],c=qc.call(arguments,0),f=c.slice(1),p=i.length,d=-1;if(s){u(s);return}for(;++d{"use strict";var rr={}.hasOwnProperty;Rc.exports=Dm;function Dm(e){return!e||typeof e!="object"?"":rr.call(e,"position")||rr.call(e,"type")?Lc(e.position):rr.call(e,"start")||rr.call(e,"end")?Lc(e):rr.call(e,"line")||rr.call(e,"column")?Sn(e):""}function Sn(e){return(!e||typeof e!="object")&&(e={}),Ic(e.line)+":"+Ic(e.column)}function Lc(e){return(!e||typeof e!="object")&&(e={}),Sn(e.start)+"-"+Sn(e.end)}function Ic(e){return e&&typeof e=="number"?e:1}});var zc=C((UC,Uc)=>{"use strict";var pm=Nc();Uc.exports=Pn;function Mc(){}Mc.prototype=Error.prototype;Pn.prototype=new Mc;var ke=Pn.prototype;ke.file="";ke.name="";ke.reason="";ke.message="";ke.stack="";ke.fatal=null;ke.column=null;ke.line=null;function Pn(e,r,t){var n,a,i;typeof r=="string"&&(t=r,r=null),n=hm(t),a=pm(r)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},r&&r.position&&(r=r.position),r&&(r.start?(i=r,r=r.start):i.start=r),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=r?r.line:null,this.column=r?r.column:null,this.location=i,this.source=n[0],this.ruleId=n[1]}function hm(e){var r=[null,null],t;return typeof e=="string"&&(t=e.indexOf(":"),t===-1?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1))),r}});var Gc=C(tr=>{"use strict";tr.basename=dm;tr.dirname=mm;tr.extname=Fm;tr.join=gm;tr.sep="/";function dm(e,r){var t=0,n=-1,a,i,u,o;if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');if(xr(e),a=e.length,r===void 0||!r.length||r.length>e.length){for(;a--;)if(e.charCodeAt(a)===47){if(u){t=a+1;break}}else n<0&&(u=!0,n=a+1);return n<0?"":e.slice(t,n)}if(r===e)return"";for(i=-1,o=r.length-1;a--;)if(e.charCodeAt(a)===47){if(u){t=a+1;break}}else i<0&&(u=!0,i=a+1),o>-1&&(e.charCodeAt(a)===r.charCodeAt(o--)?o<0&&(n=a):(o=-1,n=i));return t===n?n=i:n<0&&(n=e.length),e.slice(t,n)}function mm(e){var r,t,n;if(xr(e),!e.length)return".";for(r=-1,n=e.length;--n;)if(e.charCodeAt(n)===47){if(t){r=n;break}}else t||(t=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function Fm(e){var r=-1,t=0,n=-1,a=0,i,u,o;for(xr(e),o=e.length;o--;){if(u=e.charCodeAt(o),u===47){if(i){t=o+1;break}continue}n<0&&(i=!0,n=o+1),u===46?r<0?r=o:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||n<0||a===0||a===1&&r===n-1&&r===t+1?"":e.slice(r,n)}function gm(){for(var e=-1,r;++e2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",n=0):(t=t.slice(0,s),n=t.length-1-t.lastIndexOf("/")),a=u,i=0;continue}}else if(t.length){t="",n=0,a=u,i=0;continue}}r&&(t=t.length?t+"/..":"..",n=2)}else t.length?t+="/"+e.slice(a+1,u):t=e.slice(a+1,u),n=u-a-1;a=u,i=0}else o===46&&i>-1?i++:i=-1}return t}function xr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}});var $c=C(Yc=>{"use strict";Yc.cwd=Cm;function Cm(){return"/"}});var Wc=C((YC,jc)=>{"use strict";var se=Gc(),bm=$c(),Am=_n();jc.exports=ge;var ym={}.hasOwnProperty,On=["history","path","basename","stem","extname","dirname"];ge.prototype.toString=Lm;Object.defineProperty(ge.prototype,"path",{get:xm,set:wm});Object.defineProperty(ge.prototype,"dirname",{get:km,set:Bm});Object.defineProperty(ge.prototype,"basename",{get:Tm,set:qm});Object.defineProperty(ge.prototype,"extname",{get:_m,set:Sm});Object.defineProperty(ge.prototype,"stem",{get:Pm,set:Om});function ge(e){var r,t;if(!e)e={};else if(typeof e=="string"||Am(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof ge))return new ge(e);for(this.data={},this.messages=[],this.history=[],this.cwd=bm.cwd(),t=-1;++t-1)throw new Error("`extname` cannot contain multiple dots")}this.path=se.join(this.dirname,this.stem+(e||""))}function Pm(){return typeof this.path=="string"?se.basename(this.path,this.extname):void 0}function Om(e){In(e,"stem"),Ln(e,"stem"),this.path=se.join(this.dirname||"",e+(this.extname||""))}function Lm(e){return(this.contents||"").toString(e)}function Ln(e,r){if(e&&e.indexOf(se.sep)>-1)throw new Error("`"+r+"` cannot be a path: did not expect `"+se.sep+"`")}function In(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function Vc(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}});var Kc=C(($C,Hc)=>{"use strict";var Im=zc(),ft=Wc();Hc.exports=ft;ft.prototype.message=Rm;ft.prototype.info=Mm;ft.prototype.fail=Nm;function Rm(e,r,t){var n=new Im(e,r,t);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}function Nm(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function Mm(){var e=this.message.apply(this,arguments);return e.fatal=null,e}});var Jc=C((VC,Xc)=>{"use strict";Xc.exports=Kc()});var al=C((jC,ul)=>{"use strict";var Qc=dc(),Um=_n(),Dt=xc(),Zc=kc(),nl=Oc(),wr=Jc();ul.exports=il().freeze();var zm=[].slice,Gm={}.hasOwnProperty,Ym=nl().use($m).use(Vm).use(jm);function $m(e,r){r.tree=e.parse(r.file)}function Vm(e,r,t){e.run(r.tree,r.file,n);function n(a,i,u){a?t(a):(r.tree=i,r.file=u,t())}}function jm(e,r){var t=e.stringify(r.tree,r.file);t==null||(typeof t=="string"||Um(t)?("value"in r.file&&(r.file.value=t),r.file.contents=t):r.file.result=t)}function il(){var e=[],r=nl(),t={},n=-1,a;return i.data=o,i.freeze=u,i.attachers=e,i.use=s,i.parse=c,i.stringify=d,i.run=f,i.runSync=p,i.process=D,i.processSync=h,i;function i(){for(var m=il(),F=-1;++Fru,options:()=>tu,parsers:()=>zn,printers:()=>iF});var ql=(e,r,t)=>{if(!(e&&r==null))return Array.isArray(r)||typeof r=="string"?r[t<0?r.length+t:t]:r.at(t)},z=ql;var _l=(e,r,t,n)=>{if(!(e&&r==null))return r.replaceAll?r.replaceAll(t,n):t.global?r.replace(t,n):r.split(t).join(n)},R=_l;var Zi=Me(kr(),1);function le(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Y="string",H="array",Ce="cursor",re="indent",te="align",fe="trim",X="group",J="fill",K="if-break",De="indent-if-break",pe="line-suffix",he="line-suffix-boundary",$="line",de="label",ne="break-parent",Br=new Set([Ce,re,te,fe,X,J,K,De,pe,he,$,de,ne]);function Pl(e){if(typeof e=="string")return Y;if(Array.isArray(e))return H;if(!e)return;let{type:r}=e;if(Br.has(r))return r}var G=Pl;var Ol=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Ll(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', -Expected it to be 'string' or 'object'.`;if(G(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let n=Ol([...Br].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var dt=class extends Error{name="InvalidDocError";constructor(r){super(Ll(r)),this.doc=r}},Te=dt;var Kn={};function Il(e,r,t,n){let a=[e];for(;a.length>0;){let i=a.pop();if(i===Kn){t(a.pop());continue}t&&a.push(i,Kn);let u=G(i);if(!u)throw new Te(i);if((r==null?void 0:r(i))!==!1)switch(u){case H:case J:{let o=u===H?i:i.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case K:a.push(i.flatContents,i.breakContents);break;case X:if(n&&i.expandedStates)for(let o=i.expandedStates.length,s=o-1;s>=0;--s)a.push(i.expandedStates[s]);else a.push(i.contents);break;case te:case re:case De:case de:case pe:a.push(i.contents);break;case Y:case Ce:case fe:case he:case $:case ne:break;default:throw new Te(i)}}}var mt=Il;function Rl(e,r){if(typeof e=="string")return r(e);let t=new Map;return n(e);function n(i){if(t.has(i))return t.get(i);let u=a(i);return t.set(i,u),u}function a(i){switch(G(i)){case H:return r(i.map(n));case J:return r({...i,parts:i.parts.map(n)});case K:return r({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case X:{let{expandedStates:u,contents:o}=i;return u?(u=u.map(n),o=u[0]):o=n(o),r({...i,contents:o,expandedStates:u})}case te:case re:case De:case de:case pe:return r({...i,contents:n(i.contents)});case Y:case Ce:case fe:case he:case $:case ne:return r(i);default:throw new Te(i)}}}function Xn(e){if(e.length>0){let r=z(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Jn(e){let r=new Set,t=[];function n(i){if(i.type===ne&&Xn(t),i.type===X){if(t.push(i),r.has(i))return!1;r.add(i)}}function a(i){i.type===X&&t.pop().break&&Xn(t)}mt(e,n,a,!0)}function be(e,r=nr){return Rl(e,t=>typeof t=="string"?Tr(r,t.split(` -`)):t)}var Ft=()=>{},qe=Ft,gt=Ft,Qn=Ft;function ir(e){return qe(e),{type:re,contents:e}}function Ae(e,r){return qe(r),{type:te,contents:r,n:e}}function Ue(e,r={}){return qe(e),gt(r.expandedStates,!0),{type:X,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function _e(e){return Ae({type:"root"},e)}function ze(e){return Qn(e),{type:J,parts:e}}function Zn(e,r="",t={}){return qe(e),r!==""&&qe(r),{type:K,breakContents:e,flatContents:r,groupId:t.groupId}}var ur={type:ne};var ar={type:$,hard:!0},Nl={type:$,hard:!0,literal:!0},qr={type:$},_r={type:$,soft:!0},L=[ar,ur],nr=[Nl,ur];function Tr(e,r){qe(e),gt(r);let t=[];for(let n=0;nMath.max(n,a.length/r.length),0)}var Sr=Ml;function Ul(e,r){let t=e.match(new RegExp(`(${le(r)})+`,"gu"));if(t===null)return 0;let n=new Map,a=0;for(let i of t){let u=i.length/r.length;n.set(u,!0),u>a&&(a=u)}for(let i=1;ii?n:t}var ti=zl;var Et=class extends Error{name="UnexpectedNodeError";constructor(r,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(r[n])}.`),this.node=r}},ni=Et;var li=Me(kr(),1);function Gl(e){return(e==null?void 0:e.type)==="front-matter"}var ii=Gl;var ui=["noformat","noprettier"],Or=["format","prettier"],ai="format";var or=3;function Yl(e){let r=e.slice(0,or);if(r!=="---"&&r!=="+++")return;let t=e.indexOf(` -`,or);if(t===-1)return;let n=e.slice(or,t).trim(),a=e.indexOf(` -${r}`,t),i=n;if(i||(i=r==="+++"?"toml":"yaml"),a===-1&&r==="---"&&i==="yaml"&&(a=e.indexOf(` -...`,t)),a===-1)return;let u=a+1+or,o=e.charAt(u+1);if(!/\s?/u.test(o))return;let s=e.slice(0,u);return{type:"front-matter",language:i,explicitLanguage:n,value:e.slice(t+1,a),startDelimiter:r,endDelimiter:s.slice(-or),raw:s}}function $l(e){let r=Yl(e);if(!r)return{content:e};let{raw:t}=r;return{frontMatter:r,content:R(!1,t,/[^\n]/gu," ")+e.slice(t.length)}}var Ge=$l;function Lr(e,r){let t=`@(${r.join("|")})`,n=new RegExp([``,`\\{\\s*\\/\\*\\s*${t}\\s*\\*\\/\\s*\\}`,``].join("|"),"mu"),a=e.match(n);return(a==null?void 0:a.index)===0}var oi=e=>Lr(Ge(e).content.trimStart(),Or),si=e=>Lr(Ge(e).content.trimStart(),ui),ci=e=>{let r=Ge(e),t=``;return r.frontMatter?`${r.frontMatter.raw} - -${t} - -${r.content}`:`${t} - -${r.content}`};var Vl=new Set(["position","raw"]);function fi(e,r,t){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text")return null;if(e.type==="inlineCode"&&(r.value=R(!1,e.value,` -`," ")),e.type==="wikiLink"&&(r.value=R(!1,e.value.trim(),/[\t\n]+/gu," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,li.default)(e.label)),(e.type==="link"||e.type==="image")&&e.url&&e.url.includes("("))for(let n of"<>")r.url=R(!1,e.url,n,encodeURIComponent(n));if((e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=R(!1,e.title,/\\(?=["')])/gu,"")),(t==null?void 0:t.type)==="root"&&t.children.length>0&&(t.children[0]===e||ii(t.children[0])&&t.children[1]===e)&&e.type==="html"&&Lr(e.value,Or))return null}fi.ignoredProperties=Vl;var Di=fi;var pi=/(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b739}\u{2b740}-\u{2b81d}\u{2b820}-\u{2cea1}\u{2ceb0}-\u{2ebe0}\u{2ebf0}-\u{2ee5d}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{323af}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u,Se=/(?:[\u{21}-\u{2f}\u{3a}-\u{40}\u{5b}-\u{60}\u{7b}-\u{7e}]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u;async function jl(e,r){if(e.language==="yaml"){let t=e.value.trim(),n=t?await r(t,{parser:"yaml"}):"";return _e([e.startDelimiter,e.explicitLanguage,L,n,n?L:"",e.endDelimiter])}}var hi=jl;var Wl=(e,r)=>{if(!(e&&r==null))return r.toReversed||!Array.isArray(r)?r.toReversed():[...r].reverse()},di=Wl;var mi,Fi,gi,Ei,vi,Hl=((mi=globalThis.Deno)==null?void 0:mi.build.os)==="windows"||((gi=(Fi=globalThis.navigator)==null?void 0:Fi.platform)==null?void 0:gi.startsWith("Win"))||((vi=(Ei=globalThis.process)==null?void 0:Ei.platform)==null?void 0:vi.startsWith("win"))||!1;function Ci(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function Kl(e){return e=Ci(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Xl(e){e=Ci(e);let r=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(r=`\\\\${e.hostname}${r}`),r}function bi(e){return Hl?Xl(e):Kl(e)}var Ai=bi;var Jl=e=>String(e).split(/[/\\]/u).pop();function yi(e,r){if(!r)return;let t=Jl(r).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===t))??e.find(({extensions:n})=>n==null?void 0:n.some(a=>t.endsWith(a)))}function Ql(e,r){if(r)return e.find(({name:t})=>t.toLowerCase()===r)??e.find(({aliases:t})=>t==null?void 0:t.includes(r))??e.find(({extensions:t})=>t==null?void 0:t.includes(`.${r}`))}function xi(e,r){if(r){if(String(r).startsWith("file:"))try{r=Ai(r)}catch{return}if(typeof r=="string")return e.find(({isSupported:t})=>t==null?void 0:t({filepath:r}))}}function Zl(e,r){let t=di(!1,e.plugins).flatMap(a=>a.languages??[]),n=Ql(t,r.language)??yi(t,r.physicalFile)??yi(t,r.file)??xi(t,r.physicalFile)??xi(t,r.file)??(r.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var wi=Zl;var ef=new Proxy(()=>{},{get:()=>ef});function Pe(e){return e.position.start.offset}function Oe(e){return e.position.end.offset}var vt=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Ir=new Set([...vt,"tableCell","paragraph","heading"]),$e="non-cjk",ie="cj-letter",Le="k-letter",sr="cjk-punctuation",rf=/\p{Script_Extensions=Hangul}/u;function Rr(e){let r=[],t=e.split(/([\t\n ]+)/u);for(let[a,i]of t.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/u.test(i)?` -`:" "});continue}if((a===0||a===t.length-1)&&i==="")continue;let u=i.split(new RegExp(`(${pi.source})`,"u"));for(let[o,s]of u.entries())if(!((o===0||o===u.length-1)&&s==="")){if(o%2===0){s!==""&&n({type:"word",value:s,kind:$e,isCJ:!1,hasLeadingPunctuation:Se.test(s[0]),hasTrailingPunctuation:Se.test(z(!1,s,-1))});continue}if(Se.test(s)){n({type:"word",value:s,kind:sr,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(rf.test(s)){n({type:"word",value:s,kind:Le,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}n({type:"word",value:s,kind:ie,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function n(a){let i=z(!1,r,-1);(i==null?void 0:i.type)==="word"&&!u($e,sr)&&![i.value,a.value].some(o=>/\u3000/u.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function u(o,s){return i.kind===o&&a.kind===s||i.kind===s&&a.kind===o}}}function Ye(e,r){let t=r.originalText.slice(e.position.start.offset,e.position.end.offset),{numberText:n,leadingSpaces:a}=t.match(/^\s*(?\d+)(\.|\))(?\s*)/u).groups;return{number:Number(n),leadingSpaces:a}}function ki(e,r){return!e.ordered||e.children.length<2||Ye(e.children[1],r).number!==1?!1:Ye(e.children[0],r).number!==0?!0:e.children.length>2&&Ye(e.children[2],r).number===1}function Nr(e,r){let{value:t}=e;return e.position.end.offset===r.length&&t.endsWith(` -`)&&r.endsWith(` -`)?t.slice(0,-1):t}function ye(e,r){return function t(n,a,i){let u={...r(n,a,i)};return u.children&&(u.children=u.children.map((o,s)=>t(o,s,[u,...i]))),u}(e,null,[])}function Ct(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[r]=e.children;return Pe(e)===Pe(r)&&Oe(e)===Oe(r)}function tf(e,r){let{node:t}=e;if(t.type==="code"&&t.lang!==null){let n=wi(r,{language:t.lang});if(n)return async a=>{let i=r.__inJsTemplate?"~":"`",u=i.repeat(Math.max(3,Sr(t.value,i)+1)),o={parser:n};t.lang==="ts"||t.lang==="typescript"?o.filepath="dummy.ts":t.lang==="tsx"&&(o.filepath="dummy.tsx");let s=await a(Nr(t,r.originalText),o);return _e([u,t.lang,t.meta?" "+t.meta:"",L,be(s),L,u])}}switch(t.type){case"front-matter":return n=>hi(t,n);case"import":case"export":return n=>n(t.value,{parser:"babel"});case"jsx":return n=>n(`<$>${t.value}`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var Bi=tf;var cr=null;function lr(e){if(cr!==null&&typeof cr.property){let r=cr;return cr=lr.prototype=null,r}return cr=lr.prototype=e??Object.create(null),new lr}var nf=10;for(let e=0;e<=nf;e++)lr();function bt(e){return lr(e)}function uf(e,r="type"){bt(e);function t(n){let a=n[r],i=e[a];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return i}return t}var Ti=uf;var af={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},qi=af;var of=Ti(qi),_i=of;function Si(e){switch(e){case"cr":return"\r";case"crlf":return`\r -`;default:return` -`}}var Pi=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Oi(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Li(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Ii=e=>!(Oi(e)||Li(e));var sf=/[^\x20-\x7F]/u;function cf(e){if(!e)return 0;if(!sf.test(e))return e.length;e=e.replace(Pi()," ");let r=0;for(let t of e){let n=t.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(r+=Ii(n)?1:2)}return r}var fr=cf;var V=Symbol("MODE_BREAK"),ue=Symbol("MODE_FLAT"),Ve=Symbol("cursor"),At=Symbol("DOC_FILL_PRINTED_LENGTH");function Ri(){return{value:"",length:0,queue:[]}}function lf(e,r){return yt(e,{type:"indent"},r)}function ff(e,r,t){return r===Number.NEGATIVE_INFINITY?e.root||Ri():r<0?yt(e,{type:"dedent"},t):r?r.type==="root"?{...e,root:e}:yt(e,{type:typeof r=="string"?"stringAlign":"numberAlign",n:r},t):e}function yt(e,r,t){let n=r.type==="dedent"?e.queue.slice(0,-1):[...e.queue,r],a="",i=0,u=0,o=0;for(let D of n)switch(D.type){case"indent":c(),t.useTabs?s(1):l(t.tabWidth);break;case"stringAlign":c(),a+=D.n,i+=D.n.length;break;case"numberAlign":u+=1,o+=D.n;break;default:throw new Error(`Unexpected type '${D.type}'`)}return p(),{...e,value:a,length:i,queue:n};function s(D){a+=" ".repeat(D),i+=t.tabWidth*D}function l(D){a+=" ".repeat(D),i+=D}function c(){t.useTabs?f():p()}function f(){u>0&&s(u),d()}function p(){o>0&&l(o),d()}function d(){u=0,o=0}}function xt(e){let r=0,t=0,n=e.length;e:for(;n--;){let a=e[n];if(a===Ve){t++;continue}for(let i=a.length-1;i>=0;i--){let u=a[i];if(u===" "||u===" ")r++;else{e[n]=a.slice(0,i+1);break e}}}if(r>0||t>0)for(e.length=n+1;t-- >0;)e.push(Ve);return r}function Mr(e,r,t,n,a,i){if(t===Number.POSITIVE_INFINITY)return!0;let u=r.length,o=[e],s=[];for(;t>=0;){if(o.length===0){if(u===0)return!0;o.push(r[--u]);continue}let{mode:l,doc:c}=o.pop(),f=G(c);switch(f){case Y:s.push(c),t-=fr(c);break;case H:case J:{let p=f===H?c:c.parts,d=c[At]??0;for(let D=p.length-1;D>=d;D--)o.push({mode:l,doc:p[D]});break}case re:case te:case De:case de:o.push({mode:l,doc:c.contents});break;case fe:t+=xt(s);break;case X:{if(i&&c.break)return!1;let p=c.break?V:l,d=c.expandedStates&&p===V?z(!1,c.expandedStates,-1):c.contents;o.push({mode:p,doc:d});break}case K:{let d=(c.groupId?a[c.groupId]||ue:l)===V?c.breakContents:c.flatContents;d&&o.push({mode:l,doc:d});break}case $:if(l===V||c.hard)return!0;c.soft||(s.push(" "),t--);break;case pe:n=!0;break;case he:if(n)return!1;break}}return!1}function Ni(e,r){let t={},n=r.printWidth,a=Si(r.endOfLine),i=0,u=[{ind:Ri(),mode:V,doc:e}],o=[],s=!1,l=[],c=0;for(Jn(e);u.length>0;){let{ind:p,mode:d,doc:D}=u.pop();switch(G(D)){case Y:{let h=a!==` -`?R(!1,D,` -`,a):D;o.push(h),u.length>0&&(i+=fr(h));break}case H:for(let h=D.length-1;h>=0;h--)u.push({ind:p,mode:d,doc:D[h]});break;case Ce:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(Ve),c++;break;case re:u.push({ind:lf(p,r),mode:d,doc:D.contents});break;case te:u.push({ind:ff(p,D.n,r),mode:d,doc:D.contents});break;case fe:i-=xt(o);break;case X:switch(d){case ue:if(!s){u.push({ind:p,mode:D.break?V:ue,doc:D.contents});break}case V:{s=!1;let h={ind:p,mode:ue,doc:D.contents},m=n-i,F=l.length>0;if(!D.break&&Mr(h,u,m,F,t))u.push(h);else if(D.expandedStates){let A=z(!1,D.expandedStates,-1);if(D.break){u.push({ind:p,mode:V,doc:A});break}else for(let v=1;v=D.expandedStates.length){u.push({ind:p,mode:V,doc:A});break}else{let B=D.expandedStates[v],b={ind:p,mode:ue,doc:B};if(Mr(b,u,m,F,t)){u.push(b);break}}}else u.push({ind:p,mode:V,doc:D.contents});break}}D.id&&(t[D.id]=z(!1,u,-1).mode);break;case J:{let h=n-i,m=D[At]??0,{parts:F}=D,A=F.length-m;if(A===0)break;let v=F[m+0],B=F[m+1],b={ind:p,mode:ue,doc:v},g={ind:p,mode:V,doc:v},y=Mr(b,[],h,l.length>0,t,!0);if(A===1){y?u.push(b):u.push(g);break}let x={ind:p,mode:ue,doc:B},E={ind:p,mode:V,doc:B};if(A===2){y?u.push(x,b):u.push(E,g);break}let w=F[m+2],k={ind:p,mode:d,doc:{...D,[At]:m+2}};Mr({ind:p,mode:ue,doc:[v,B,w]},[],h,l.length>0,t,!0)?u.push(k,x,b):y?u.push(k,E,b):u.push(k,E,g);break}case K:case De:{let h=D.groupId?t[D.groupId]:d;if(h===V){let m=D.type===K?D.breakContents:D.negate?D.contents:ir(D.contents);m&&u.push({ind:p,mode:d,doc:m})}if(h===ue){let m=D.type===K?D.flatContents:D.negate?ir(D.contents):D.contents;m&&u.push({ind:p,mode:d,doc:m})}break}case pe:l.push({ind:p,mode:d,doc:D.contents});break;case he:l.length>0&&u.push({ind:p,mode:d,doc:ar});break;case $:switch(d){case ue:if(D.hard)s=!0;else{D.soft||(o.push(" "),i+=1);break}case V:if(l.length>0){u.push({ind:p,mode:d,doc:D},...l.reverse()),l.length=0;break}D.literal?p.root?(o.push(a,p.root.value),i=p.root.length):(o.push(a),i=0):(i-=xt(o),o.push(a+p.value),i=p.length);break}break;case de:u.push({ind:p,mode:d,doc:D.contents});break;case ne:break;default:throw new Te(D)}u.length===0&&l.length>0&&(u.push(...l.reverse()),l.length=0)}let f=o.indexOf(Ve);if(f!==-1){let p=o.indexOf(Ve,f+1);if(p===-1)return{formatted:o.filter(m=>m!==Ve).join("")};let d=o.slice(0,f).join(""),D=o.slice(f+1,p).join(""),h=o.slice(p+1).join("");return{formatted:d+D+h,cursorNodeStart:d.length,cursorNodeText:D}}return{formatted:o.join("")}}function Mi(e,r,t){let{node:n}=e,a=[],i=e.map(()=>e.map(({index:f})=>{let p=Ni(t(),r).formatted,d=fr(p);return a[f]=Math.max(a[f]??3,d),{text:p,width:d}},"children"),"children"),u=s(!1);if(r.proseWrap!=="never")return[ur,u];let o=s(!0);return[ur,Ue(Zn(o,u))];function s(f){return Tr(ar,[c(i[0],f),l(f),...i.slice(1).map(p=>c(p,f))].map(p=>`| ${p.join(" | ")} |`))}function l(f){return a.map((p,d)=>{let D=n.align[d],h=D==="center"||D==="left"?":":"-",m=D==="center"||D==="right"?":":"-",F=f?"-":"-".repeat(p-2);return`${h}${F}${m}`})}function c(f,p){return f.map(({text:d,width:D},h)=>{if(p)return d;let m=a[h]-D,F=n.align[h],A=0;F==="right"?A=m:F==="center"&&(A=Math.floor(m/2));let v=m-A;return`${" ".repeat(A)}${d}${" ".repeat(v)}`})}}function Ui(e,r,t){let n=e.map(t,"children");return Df(n)}function Df(e){let r=[""];return function t(n){for(let a of n){let i=G(a);if(i===H){t(a);continue}let u=a,o=[];i===J&&([u,...o]=a.parts),r.push([r.pop(),u],...o)}}(e),ze(r)}var Q,wt=class{constructor(r){jn(this,Q);Wn(this,Q,new Set(r))}getLeadingWhitespaceCount(r){let t=ce(this,Q),n=0;for(let a=0;a=0&&t.has(r.charAt(a));a--)n++;return n}getLeadingWhitespace(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(0,t)}getTrailingWhitespace(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(r.length-t)}hasLeadingWhitespace(r){return ce(this,Q).has(r.charAt(0))}hasTrailingWhitespace(r){return ce(this,Q).has(z(!1,r,-1))}trimStart(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(t)}trimEnd(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(0,r.length-t)}trim(r){return this.trimEnd(this.trimStart(r))}split(r,t=!1){let n=`[${le([...ce(this,Q)].join(""))}]+`,a=new RegExp(t?`(${n})`:n,"u");return r.split(a)}hasWhitespaceCharacter(r){let t=ce(this,Q);return Array.prototype.some.call(r,n=>t.has(n))}hasNonWhitespaceCharacter(r){let t=ce(this,Q);return Array.prototype.some.call(r,n=>!t.has(n))}isWhitespaceOnly(r){let t=ce(this,Q);return Array.prototype.every.call(r,n=>t.has(n))}};Q=new WeakMap;var zi=wt;var pf=[" ",` -`,"\f","\r"," "],hf=new zi(pf),kt=hf;var df=/^\\?.$/su,mf=/^\n *>[ >]*$/u;function Ff(e,r){return e=gf(e,r),e=vf(e),e=bf(e,r),e=Af(e,r),e=Cf(e),e}function gf(e,r){return ye(e,t=>{if(t.type!=="text")return t;let{value:n}=t;if(n==="*"||n==="_"||!df.test(n)||t.position.end.offset-t.position.start.offset===n.length)return t;let a=r.originalText.slice(t.position.start.offset,t.position.end.offset);return mf.test(a)?t:{...t,value:a}})}function Ef(e,r,t){return ye(e,n=>{if(!n.children)return n;let a=n.children.reduce((i,u)=>{let o=z(!1,i,-1);return o&&r(o,u)?i.splice(-1,1,t(o,u)):i.push(u),i},[]);return{...n,children:a}})}function vf(e){return Ef(e,(r,t)=>r.type==="text"&&t.type==="text",(r,t)=>({type:"text",value:r.value+t.value,position:{start:r.position.start,end:t.position.end}}))}function Cf(e){return ye(e,(r,t,[n])=>{if(r.type!=="text")return r;let{value:a}=r;return n.type==="paragraph"&&(t===0&&(a=kt.trimStart(a)),t===n.children.length-1&&(a=kt.trimEnd(a))),{type:"sentence",position:r.position,children:Rr(a)}})}function bf(e,r){return ye(e,(t,n,a)=>{if(t.type==="code"){let i=/^\n?(?: {4,}|\t)/u.test(r.originalText.slice(t.position.start.offset,t.position.end.offset));if(t.isIndented=i,i)for(let u=0;u{if(a.type==="list"&&a.children.length>0){for(let o=0;o1)return!0;let s=t(i);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=t(u);return s!==l?!1:s%r.tabWidth===0?!0:Ye(u,r).leadingSpaces.length>1}}var Gi=Ff;function Yi(e,r){let t=[""];return e.each(()=>{let{node:n}=e,a=r();switch(n.type){case"whitespace":if(G(a)!==Y){t.push(a,"");break}default:t.push([t.pop(),a])}},"children"),ze(t)}var yf=new Set(["heading","tableCell","link","wikiLink"]),$i=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function xf({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:t}=e;for(let n=1;nr[""]}return e.usesCJSpaces}function wf(e,r){if(r)return!0;let{previous:t,next:n}=e;if(!t||!n)return!0;let a=t.kind,i=n.kind;return Vi(a)&&Vi(i)||a===Le&&i===ie||i===Le&&a===ie?!0:a===sr||i===sr||a===ie&&i===ie?!1:$i.has(n.value[0])||$i.has(z(!1,t.value,-1))?!0:t.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:xf(e)}function Vi(e){return e===$e||e===Le}function kf(e,r,t,n){if(t!=="always"||e.hasAncestor(u=>yf.has(u.type)))return!1;if(n)return r!=="";let{previous:a,next:i}=e;return!a||!i?!0:r===""?!1:a.kind===Le&&i.kind===ie||i.kind===Le&&a.kind===ie?!0:!(a.isCJ||i.isCJ)}function Bt(e,r,t,n){if(t==="preserve"&&r===` -`)return L;let a=r===" "||r===` -`&&wf(e,n);return kf(e,r,t,n)?a?qr:_r:a?" ":""}var Bf=new Set(["listItem","definition"]);function ji(e){var a,i;let{previous:r,next:t}=e;return(r==null?void 0:r.type)==="sentence"&&((a=z(!1,r.children,-1))==null?void 0:a.type)==="word"&&!z(!1,r.children,-1).hasTrailingPunctuation||(t==null?void 0:t.type)==="sentence"&&((i=t.children[0])==null?void 0:i.type)==="word"&&!t.children[0].hasLeadingPunctuation}function Tf(e,r,t){var a;let{node:n}=e;if(Lf(e)){let i=[""],u=Rr(r.originalText.slice(n.position.start.offset,n.position.end.offset));for(let o of u){if(o.type==="word"){i.push([i.pop(),o.value]);continue}let s=Bt(e,o.value,r.proseWrap,!0);if(G(s)===Y){i.push([i.pop(),s]);continue}i.push(s,"")}return ze(i)}switch(n.type){case"front-matter":return r.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":[Sf(e,r,t),L];case"paragraph":return Ui(e,r,t);case"sentence":return Yi(e,t);case"word":{let i=R(!1,R(!1,n.value,"*",String.raw`\*`),new RegExp([`(^|${Se.source})(_+)`,`(_+)(${Se.source}|$)`].join("|"),"gu"),(s,l,c,f,p)=>R(!1,c?`${l}${c}`:`${f}${p}`,"_",String.raw`\_`)),u=(s,l,c)=>s.type==="sentence"&&c===0,o=(s,l,c)=>Ct(s.children[c-1]);return i!==n.value&&(e.match(void 0,u,o)||e.match(void 0,u,(s,l,c)=>s.type==="emphasis"&&c===0,o))&&(i=i.replace(/^(\\?[*_])+/u,s=>R(!1,s,"\\",""))),i}case"whitespace":{let{next:i}=e,u=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value)?"never":r.proseWrap;return Bt(e,n.value,u)}case"emphasis":{let i;if(Ct(n.children[0]))i=r.originalText[n.position.start.offset];else{let u=ji(e),o=((a=e.parent)==null?void 0:a.type)==="strong"&&ji(e.ancestors);i=u||o||e.hasAncestor(s=>s.type==="emphasis")?"*":"_"}return[i,j(e,r,t),i]}case"strong":return["**",j(e,r,t),"**"];case"delete":return["~~",j(e,r,t),"~~"];case"inlineCode":{let i=r.proseWrap==="preserve"?n.value:R(!1,n.value,` -`," "),u=ei(i,"`"),o="`".repeat(u||1),s=i.startsWith("`")||i.endsWith("`")||/^[\n ]/u.test(i)&&/[\n ]$/u.test(i)&&/[^\n ]/u.test(i)?" ":"";return[o,s,i,s,o]}case"wikiLink":{let i="";return r.proseWrap==="preserve"?i=n.value:i=R(!1,n.value,/[\t\n]+/gu," "),["[[",i,"]]"]}case"link":switch(r.originalText[n.position.start.offset]){case"<":{let i="mailto:";return["<",n.url.startsWith(i)&&r.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url,">"]}case"[":return["[",j(e,r,t),"](",Tt(n.url,")"),Ur(n.title,r),")"];default:return r.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return["![",n.alt||"","](",Tt(n.url,")"),Ur(n.title,r),")"];case"blockquote":return["> ",Ae("> ",j(e,r,t))];case"heading":return["#".repeat(n.depth)+" ",j(e,r,t)];case"code":{if(n.isIndented){let o=" ".repeat(4);return Ae(o,[o,be(n.value,L)])}let i=r.__inJsTemplate?"~":"`",u=i.repeat(Math.max(3,Sr(n.value,i)+1));return[u,n.lang||"",n.meta?" "+n.meta:"",L,be(Nr(n,r.originalText),L),L,u]}case"html":{let{parent:i,isLast:u}=e,o=i.type==="root"&&u?n.value.trimEnd():n.value,s=/^$/su.test(o);return be(o,s?L:_e(nr))}case"list":{let i=Hi(n,e.parent),u=ki(n,r);return j(e,r,t,{processor(o){let s=c(),l=o.node;if(l.children.length===2&&l.children[1].type==="html"&&l.children[0].position.start.column!==l.children[1].position.start.column)return[s,Wi(o,r,t,s)];return[s,Ae(" ".repeat(s.length),Wi(o,r,t,s))];function c(){let f=n.ordered?(o.isFirst?n.start:u?1:n.start+o.index)+(i%2===0?". ":") "):i%2===0?"- ":"* ";return(n.isAligned||n.hasIndentedCodeblock)&&n.ordered?qf(f,r):f}}})}case"thematicBreak":{let{ancestors:i}=e,u=i.findIndex(s=>s.type==="list");return u===-1?"---":Hi(i[u],i[u+1])%2===0?"***":"---"}case"linkReference":return["[",j(e,r,t),"]",n.referenceType==="full"?qt(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","]",qt(n)];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let i=r.proseWrap==="always"?qr:" ";return Ue([qt(n),":",ir([i,Tt(n.url),n.title===null?"":[i,Ur(n.title,r,!1)]])])}case"footnote":return["[^",j(e,r,t),"]"];case"footnoteReference":return Qi(n);case"footnoteDefinition":{let i=n.children.length===1&&n.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[Qi(n),": ",i?j(e,r,t):Ue([Ae(" ".repeat(4),j(e,r,t,{processor:({isFirst:u})=>u?Ue([_r,t()]):t()}))])]}case"table":return Mi(e,r,t);case"tableCell":return j(e,r,t);case"break":return/\s/u.test(r.originalText[n.position.start.offset])?[" ",_e(nr)]:["\\",L];case"liquidNode":return be(n.value,L);case"import":case"export":case"jsx":return n.value;case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",L,n.value?[be(n.value,L),L]:"","$$"];case"inlineMath":return r.originalText.slice(Pe(n),Oe(n));case"tableRow":case"listItem":case"text":default:throw new ni(n,"Markdown")}}function Wi(e,r,t,n){let{node:a}=e,i=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[i,j(e,r,t,{processor({node:u,isFirst:o}){if(o&&u.type!=="list")return Ae(" ".repeat(i.length),t());let s=" ".repeat(Rf(r.tabWidth-n.length,0,3));return[s,Ae(s,t())]}})]}function qf(e,r){let t=n();return e+" ".repeat(t>=4?0:t);function n(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function Hi(e,r){return _f(e,r,t=>t.ordered===e.ordered)}function _f(e,r,t){let n=-1;for(let a of r.children)if(a.type===e.type&&t(a)?n++:n=-1,a===e)return n}function Sf(e,r,t){let n=[],a=null,{children:i}=e.node;for(let[u,o]of i.entries())switch(_t(o)){case"start":a===null&&(a={index:u,offset:o.position.end.offset});break;case"end":a!==null&&(n.push({start:a,end:{index:u,offset:o.position.start.offset}}),a=null);break;default:break}return j(e,r,t,{processor({index:u}){if(n.length>0){let o=n[0];if(u===o.start.index)return[Ki(i[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),Ki(i[o.end.index])];if(o.start.index{let u=a(e);u!==!1&&(i.length>0&&Pf(e)&&(i.push(L),(Of(e,r)||Ji(e))&&i.push(L),Ji(e)&&i.push(L)),i.push(u))},"children"),i}function Ki(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function _t(e){let r;if(e.type==="html")r=e.value.match(/^$/u);else{let t;e.type==="esComment"?t=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(t=e.children[0]),t&&(r=t.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return r?r[1]||"next":!1}function Pf({node:e,parent:r}){let t=vt.has(e.type),n=e.type==="html"&&Ir.has(r.type);return!t&&!n}function Xi(e,r){return e.type==="listItem"&&(e.spread||r.originalText.charAt(e.position.end.offset-1)===` -`)}function Of({node:e,previous:r,parent:t},n){if(Xi(r,n)||e.type==="list"&&t.type==="listItem"&&r.type==="code")return!0;let i=r.type===e.type&&Bf.has(e.type),u=t.type==="listItem"&&(e.type==="list"||!Xi(t,n)),o=_t(r)==="next",s=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,l=e.type==="html"&&t.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(i||u||o||s||l)}function Ji({node:e,previous:r}){let t=r.type==="list",n=e.type==="code"&&e.isIndented;return t&&n}function Lf(e){let r=e.findAncestor(t=>t.type==="linkReference"||t.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}var If=(e,r)=>{for(let t of r)e=R(!1,e,t,encodeURIComponent(t));return e};function Tt(e,r=[]){let t=[" ",...Array.isArray(r)?r:[r]];return new RegExp(t.map(n=>le(n)).join("|"),"u").test(e)?`<${If(e,"<>")}>`:e}function Ur(e,r,t=!0){if(!e)return"";if(t)return" "+Ur(e,r,!1);if(e=R(!1,e,/\\(?=["')])/gu,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=ti(e,r.singleQuote);return e=R(!1,e,"\\","\\\\"),e=R(!1,e,n,`\\${n}`),`${n}${e}${n}`}function Rf(e,r,t){return Math.max(r,Math.min(e,t))}function Nf(e){return e.index>0&&_t(e.previous)==="next"}function qt(e){return`[${(0,Zi.default)(e.label)}]`}function Qi(e){return`[^${e.label}]`}var Mf={preprocess:Gi,print:Tf,embed:Bi,massageAstNode:Di,hasPrettierIgnore:Nf,insertPragma:ci,getVisitorKeys:_i},eu=Mf;var ru=[{name:"Markdown",type:"prose",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:["contents.lr","README"],wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",extensions:[".mdx"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:[],wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}];var St={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Uf={proseWrap:St.proseWrap,singleQuote:St.singleQuote},tu=Uf;var zn={};$n(zn,{markdown:()=>tF,mdx:()=>nF,remark:()=>tF});var gl=Me(iu(),1),El=Me(gu(),1),vl=Me(pc(),1),Cl=Me(al(),1);var Hm=/^import\s/u,Km=/^export\s/u,ol=String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`,sl=/|/u,Xm=/^\{\s*\/\*(.*)\*\/\s*\}/u,Jm=` - -`,cl=e=>Hm.test(e),Un=e=>Km.test(e),ll=(e,r)=>{let t=r.indexOf(Jm),n=r.slice(0,t);if(Un(n)||cl(n))return e(n)({type:Un(n)?"export":"import",value:n})},fl=(e,r)=>{let t=Xm.exec(r);if(t)return e(t[0])({type:"esComment",value:t[1].trim()})};ll.locator=e=>Un(e)||cl(e)?-1:1;fl.locator=(e,r)=>e.indexOf("{",r);var Dl=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:t,inlineTokenizers:n,inlineMethods:a}=e.prototype;r.esSyntax=ll,n.esComment=fl,t.splice(t.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};var Qm=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(t,n){let a=Ge(n);if(a.frontMatter)return t(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},pl=Qm;function Zm(){return e=>ye(e,(r,t,[n])=>r.type!=="html"||sl.test(r.value)||Ir.has(n.type)?r:{...r,type:"jsx"})}var hl=Zm;var eF=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=t;function t(n,a){let i=a.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(i)return n(i[0])({type:"liquidNode",value:i[0]})}t.locator=function(n,a){return n.indexOf("{",a)}},dl=eF;var rF=function(){let e="wikiLink",r=/^\[\[(?.+?)\]\]/su,t=this.Parser.prototype,n=t.inlineMethods;n.splice(n.indexOf("link"),0,e),t.inlineTokenizers.wikiLink=a;function a(i,u){let o=r.exec(u);if(o){let s=o.groups.linkContents.trim();return i(o[0])({type:e,value:s})}}a.locator=function(i,u){return i.indexOf("[",u)}},ml=rF;function bl({isMDX:e}){return r=>{let t=(0,Cl.default)().use(vl.default,{commonmark:!0,...e&&{blocks:[ol]}}).use(gl.default).use(pl).use(El.default).use(e?Dl:Fl).use(dl).use(e?hl:Fl).use(ml);return t.run(t.parse(r))}}function Fl(){}var Al={astFormat:"mdast",hasPragma:oi,hasIgnorePragma:si,locStart:Pe,locEnd:Oe},tF={...Al,parse:bl({isMDX:!1})},nF={...Al,parse:bl({isMDX:!0})};var iF={mdast:eu};var p2=Gn;export{p2 as default,ru as languages,tu as options,zn as parsers,iF as printers}; diff --git a/node_modules/prettier/plugins/meriyah.d.ts b/node_modules/prettier/plugins/meriyah.d.ts deleted file mode 100644 index 6541de5..0000000 --- a/node_modules/prettier/plugins/meriyah.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Parser } from "../index.js"; - -export declare const parsers: { - meriyah: Parser; -}; diff --git a/node_modules/prettier/plugins/meriyah.js b/node_modules/prettier/plugins/meriyah.js deleted file mode 100644 index 25e3485..0000000 --- a/node_modules/prettier/plugins/meriyah.js +++ /dev/null @@ -1,4 +0,0 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.meriyah=e()}})(function(){"use strict";var K2=Object.defineProperty;var Jn=Object.getOwnPropertyDescriptor;var _n=Object.getOwnPropertyNames;var jn=Object.prototype.hasOwnProperty;var Ce=(e,n)=>{for(var t in n)K2(e,t,{get:n[t],enumerable:!0})},Xn=(e,n,t,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of _n(n))!jn.call(e,o)&&o!==t&&K2(e,o,{get:()=>n[o],enumerable:!(u=Jn(n,o))||u.enumerable});return e};var Hn=e=>Xn(K2({},"__esModule",{value:!0}),e);var u1={};Ce(u1,{parsers:()=>De});var De={};Ce(De,{meriyah:()=>t1});var zn=(e,n,t,u)=>{if(!(e&&n==null))return n.replaceAll?n.replaceAll(t,u):t.global?n.replace(t,u):n.split(t).join(u)},G=zn;var Kn={0:"Unexpected token",30:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"\\8 and \\9 are not allowed in template strings",4:"Private identifier #%0 is not defined",5:"Illegal Unicode escape sequence",6:"Invalid code point %0",7:"Invalid hexadecimal escape sequence",9:"Octal literals are not allowed in strict mode",8:"Decimal integer literals with a leading zero are forbidden in strict mode",10:"Expected number in radix %0",151:"Invalid left-hand side assignment to a destructible right-hand side",11:"Non-number found after exponent indicator",12:"Invalid BigIntLiteral",13:"No identifiers allowed directly after numeric literal",14:"Escapes \\8 or \\9 are not syntactically valid escapes",15:"Escapes \\8 or \\9 are not allowed in strict mode",16:"Unterminated string literal",17:"Unterminated template literal",18:"Multiline comment was not closed properly",19:"The identifier contained dynamic unicode escape that was not closed",20:"Illegal character '%0'",21:"Missing hexadecimal digits",22:"Invalid implicit octal",23:"Invalid line break in string literal",24:"Only unicode escapes are legal in identifier names",25:"Expected '%0'",26:"Invalid left-hand side in assignment",27:"Invalid left-hand side in async arrow",28:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',29:"Member access on super must be in a method",31:"Await expression not allowed in formal parameter",32:"Yield expression not allowed in formal parameter",95:"Unexpected token: 'escaped keyword'",33:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",123:"Async functions can only be declared at the top level or inside a block",34:"Unterminated regular expression",35:"Unexpected regular expression flag",36:"Duplicate regular expression flag '%0'",37:"%0 functions must have exactly %1 argument%2",38:"Setter function argument must not be a rest parameter",39:"%0 declaration must have a name in this context",40:"Function name may not contain any reserved words or be eval or arguments in strict mode",41:"The rest operator is missing an argument",42:"A getter cannot be a generator",43:"A setter cannot be a generator",44:"A computed property name must be followed by a colon or paren",134:"Object literal keys that are strings or numbers must be a method or have a colon",46:"Found `* async x(){}` but this should be `async * x(){}`",45:"Getters and setters can not be generators",47:"'%0' can not be generator method",48:"No line break is allowed after '=>'",49:"The left-hand side of the arrow can only be destructed through assignment",50:"The binding declaration is not destructible",51:"Async arrow can not be followed by new expression",52:"Classes may not have a static property named 'prototype'",53:"Class constructor may not be a %0",54:"Duplicate constructor method in class",55:"Invalid increment/decrement operand",56:"Invalid use of `new` keyword on an increment/decrement expression",57:"`=>` is an invalid assignment target",58:"Rest element may not have a trailing comma",59:"Missing initializer in %0 declaration",60:"'for-%0' loop head declarations can not have an initializer",61:"Invalid left-hand side in for-%0 loop: Must have a single binding",62:"Invalid shorthand property initializer",63:"Property name __proto__ appears more than once in object literal",64:"Let is disallowed as a lexically bound name",65:"Invalid use of '%0' inside new expression",66:"Illegal 'use strict' directive in function with non-simple parameter list",67:'Identifier "let" disallowed as left-hand side expression in strict mode',68:"Illegal continue statement",69:"Illegal break statement",70:"Cannot have `let[...]` as a var name in strict mode",71:"Invalid destructuring assignment target",72:"Rest parameter may not have a default initializer",73:"The rest argument must the be last parameter",74:"Invalid rest argument",76:"In strict mode code, functions can only be declared at top level or inside a block",77:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",78:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",79:"Class declaration can't appear in single-statement context",80:"Invalid left-hand side in for-%0",81:"Invalid assignment in for-%0",82:"for await (... of ...) is only valid in async functions and async generators",83:"The first token after the template expression should be a continuation of the template",85:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",84:"`let \n [` is a restricted production at the start of a statement",86:"Catch clause requires exactly one parameter, not more (and no trailing comma)",87:"Catch clause parameter does not support default values",88:"Missing catch or finally after try",89:"More than one default clause in switch statement",90:"Illegal newline after throw",91:"Strict mode code may not include a with statement",92:"Illegal return statement",93:"The left hand side of the for-header binding declaration is not destructible",94:"new.target only allowed within functions or static blocks",96:"'#' not followed by identifier",102:"Invalid keyword",101:"Can not use 'let' as a class name",100:"'A lexical declaration can't define a 'let' binding",99:"Can not use `let` as variable name in strict mode",97:"'%0' may not be used as an identifier in this context",98:"Await is only valid in async functions",103:"The %0 keyword can only be used with the module goal",104:"Unicode codepoint must not be greater than 0x10FFFF",105:"%0 source must be string",106:"Only a identifier or string can be used to indicate alias",107:"Only '*' or '{...}' can be imported after default",108:"Trailing decorator may be followed by method",109:"Decorators can't be used with a constructor",110:"Can not use `await` as identifier in module or async func",111:"Can not use `await` as identifier in module",112:"HTML comments are only allowed with web compatibility (Annex B)",113:"The identifier 'let' must not be in expression position in strict mode",114:"Cannot assign to `eval` and `arguments` in strict mode",115:"The left-hand side of a for-of loop may not start with 'let'",116:"Block body arrows can not be immediately invoked without a group",117:"Block body arrows can not be immediately accessed without a group",118:"Unexpected strict mode reserved word",119:"Unexpected eval or arguments in strict mode",120:"Decorators must not be followed by a semicolon",121:"Calling delete on expression not allowed in strict mode",122:"Pattern can not have a tail",124:"Can not have a `yield` expression on the left side of a ternary",125:"An arrow function can not have a postfix update operator",126:"Invalid object literal key character after generator star",127:"Private fields can not be deleted",129:"Classes may not have a field called constructor",128:"Classes may not have a private element named constructor",130:"A class field initializer or static block may not contain arguments",131:"Generators can only be declared at the top level or inside a block",132:"Async methods are a restricted production and cannot have a newline following it",133:"Unexpected character after object literal property name",135:"Invalid key token",136:"Label '%0' has already been declared",137:"continue statement must be nested within an iteration statement",138:"Undefined label '%0'",139:"Trailing comma is disallowed inside import(...) arguments",140:"Invalid binding in JSON import",141:"import() requires exactly one argument",142:"Cannot use new with import(...)",143:"... is not allowed in import()",144:"Expected '=>'",145:"Duplicate binding '%0'",146:"Duplicate private identifier #%0",147:"Cannot export a duplicate name '%0'",150:"Duplicate %0 for-binding",148:"Exported binding '%0' needs to refer to a top-level declared variable",149:"Unexpected private field",153:"Numeric separators are not allowed at the end of numeric literals",152:"Only one underscore is allowed as numeric separator",154:"JSX value should be either an expression or a quoted JSX text",155:"Expected corresponding JSX closing tag for %0",156:"Adjacent JSX elements must be wrapped in an enclosing tag",157:"JSX attributes must only be assigned a non-empty 'expression'",158:"'%0' has already been declared",159:"'%0' shadowed a catch clause binding",160:"Dot property must be an identifier",161:"Encountered invalid input after spread/rest argument",162:"Catch without try",163:"Finally without try",164:"Expected corresponding closing tag for JSX fragment",165:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",166:"Invalid tagged template on optional chain",167:"Invalid optional chain from super property",168:"Invalid optional chain from new expression",169:'Cannot use "import.meta" outside a module',170:"Leading decorators must be attached to a class declaration",171:"An export name cannot include a lone surrogate, found %0",172:"A string literal cannot be used as an exported binding without `from`",173:"Private fields can't be accessed on super",174:"The only valid meta property for import is 'import.meta'",175:"'import.meta' must not contain escaped characters",176:'cannot use "await" as identifier inside an async function',177:'cannot use "await" in static blocks'},i2=class extends SyntaxError{start;end;range;loc;description;constructor(n,t,u,...o){let i=Kn[u].replace(/%(\d+)/g,(c,d)=>o[d]),l="["+n.line+":"+n.column+"-"+t.line+":"+t.column+"]: "+i;super(l),this.start=n.index,this.end=t.index,this.range=[n.index,t.index],this.loc={start:{line:n.line,column:n.column},end:{line:t.line,column:t.column}},this.description=i}};function f(e,n,...t){throw new i2(e.tokenStart,e.currentLocation,n,...t)}function V2(e){throw new i2(e.start,e.end,e.type,...e.params)}function J(e,n,t,...u){throw new i2(e,n,t,...u)}function a2(e,n,t){throw new i2(e,n,t)}var Le=((e,n)=>{let t=new Uint32Array(104448),u=0,o=0;for(;u<3822;){let i=e[u++];if(i<0)o-=i;else{let l=e[u++];i&2&&(l=n[l]),i&1?t.fill(l,o,o+=e[u++]):t[o++]=l}}return t})([-1,2,26,2,27,2,5,-1,0,77595648,3,44,2,3,0,14,2,63,2,64,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,41,3,0,4,0,4294966523,3,0,4,2,16,2,65,2,0,0,4294836735,0,3221225471,0,4294901942,2,66,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,18,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,60,2,7,2,6,0,4286611199,3,0,2,2,1,3,0,3,0,4294901711,2,40,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,2,203,2,3,0,4093640191,0,660618719,0,65487,0,4294828015,0,4092591615,0,1616920031,0,982991,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,71,0,4284449919,0,851904,2,4,2,12,0,67076095,-1,2,72,0,1073741743,0,4093607775,-1,0,50331649,0,3265266687,2,33,0,4294844415,0,4278190047,2,20,2,137,-1,3,0,2,2,23,2,0,2,10,2,0,2,15,2,22,3,0,10,2,74,2,0,2,75,2,76,2,77,2,0,2,78,2,0,2,11,0,261632,2,25,3,0,2,2,13,2,4,3,0,18,2,79,2,5,3,0,2,2,80,0,2151677951,2,29,2,9,0,909311,3,0,2,0,814743551,2,49,0,67090432,3,0,2,2,42,2,0,2,6,2,0,2,30,2,8,0,268374015,2,110,2,51,2,0,2,81,0,134153215,-1,2,7,2,0,2,8,0,2684354559,0,67044351,0,3221160064,2,17,-1,3,0,2,2,53,0,1046528,3,0,3,2,9,2,0,2,54,0,4294960127,2,10,2,6,2,11,0,4294377472,2,12,3,0,16,2,13,2,0,2,82,2,10,2,0,2,83,2,84,2,85,2,210,2,55,0,1048577,2,86,2,14,-1,2,14,0,131042,2,87,2,88,2,89,2,0,2,34,-83,3,0,7,0,1046559,2,0,2,15,2,0,0,2147516671,2,21,3,90,2,2,0,-16,2,91,0,524222462,2,4,2,0,0,4269801471,2,4,3,0,2,2,28,2,16,3,0,2,2,17,2,0,-1,2,18,-16,3,0,206,-2,3,0,692,2,73,-1,2,18,2,10,3,0,8,2,93,2,133,2,0,0,3220242431,3,0,3,2,19,2,94,2,95,3,0,2,2,96,2,0,2,97,2,46,2,0,0,4351,2,0,2,9,3,0,2,0,67043391,0,3909091327,2,0,2,24,2,9,2,20,3,0,2,0,67076097,2,8,2,0,2,21,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,101,2,102,2,22,2,23,3,0,3,0,67057663,3,0,349,2,103,2,104,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,3774349439,2,105,2,106,3,0,2,2,19,2,107,3,0,10,2,10,2,18,2,0,2,47,2,0,2,31,2,108,2,25,0,1638399,2,183,2,109,3,0,3,2,20,2,26,2,27,2,5,2,28,2,0,2,8,2,111,-1,2,112,2,113,2,114,-1,3,0,3,2,12,-2,2,0,2,29,-3,2,163,-4,2,20,2,0,2,36,0,1,2,0,2,67,2,6,2,12,2,10,2,0,2,115,-1,3,0,4,2,10,2,23,2,116,2,7,2,0,2,117,2,0,2,118,2,119,2,120,2,0,2,9,3,0,9,2,21,2,30,2,31,2,121,2,122,-2,2,123,2,124,2,30,2,21,2,8,-2,2,125,2,30,2,32,-2,2,0,2,39,-2,0,4277137519,0,2269118463,-1,3,20,2,-1,2,33,2,38,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,48,2,0,0,4294950463,2,37,-7,2,0,0,203775,2,57,2,167,2,20,2,43,2,36,2,18,2,37,2,18,2,126,2,21,3,0,2,2,38,0,2151677888,2,0,2,12,0,4294901764,2,144,2,0,2,58,2,56,0,5242879,3,0,2,0,402644511,-1,2,128,2,39,0,3,-1,2,129,2,130,2,0,0,67045375,2,40,0,4226678271,0,3766565279,0,2039759,2,132,2,41,0,1046437,0,6,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,42,2,23,2,50,2,11,2,61,2,38,-5,2,0,2,12,-3,3,0,2,0,2147484671,2,134,0,4190109695,2,52,-2,2,135,0,4244635647,0,27,2,0,2,8,2,43,2,0,2,68,2,18,2,0,2,42,-6,2,0,2,45,2,59,2,44,2,45,2,46,2,47,0,8388351,-2,2,136,0,3028287487,2,48,2,138,0,33259519,2,49,-9,2,21,0,4294836223,0,3355443199,0,134152199,-2,2,69,-2,3,0,28,2,32,-3,3,0,3,2,17,3,0,6,2,50,-81,2,18,3,0,2,2,36,3,0,33,2,25,2,30,3,0,124,2,12,3,0,18,2,38,-213,2,0,2,32,-54,3,0,17,2,42,2,8,2,23,2,0,2,8,2,23,2,51,2,0,2,21,2,52,2,139,2,25,-13,2,0,2,53,-6,3,0,2,-4,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,196635,3,0,191,2,54,3,0,38,2,30,2,55,2,34,-278,2,140,3,0,9,2,141,2,142,2,56,3,0,11,2,7,-72,3,0,3,2,143,0,1677656575,-130,2,26,-16,2,0,2,24,2,38,-16,0,4161266656,0,4071,2,205,-4,2,57,-13,3,0,2,2,58,2,0,2,145,2,146,2,62,2,0,2,147,2,148,2,149,3,0,10,2,150,2,151,2,22,3,58,2,3,152,2,3,59,2,0,4294954999,2,0,-16,2,0,2,92,2,0,0,2105343,0,4160749584,2,177,-34,2,8,2,154,-6,0,4194303871,0,4294903771,2,0,2,60,2,100,-3,2,0,0,1073684479,0,17407,-9,2,18,2,17,2,0,2,32,-14,2,18,2,32,-6,2,18,2,12,-15,2,155,3,0,6,0,8323103,-1,3,0,2,2,61,-37,2,62,2,156,2,157,2,158,2,159,2,160,-105,2,26,-32,3,0,1335,-1,3,0,129,2,32,3,0,6,2,10,3,0,180,2,161,3,0,233,2,162,3,0,18,2,10,-77,3,0,16,2,10,-47,3,0,154,2,6,3,0,130,2,25,-22250,3,0,7,2,25,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,63,2,64,-3,0,3168731136,0,4294956864,2,1,2,0,2,41,3,0,4,0,4294966275,3,0,4,2,16,2,65,2,0,2,34,-1,2,18,2,66,-1,2,0,0,2047,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,25,2,67,3,0,2,0,131135,2,98,0,70256639,0,71303167,0,272,2,42,2,6,0,32511,2,0,2,49,-1,2,99,2,68,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,70,2,69,0,33554435,2,131,2,70,2,164,0,131075,0,3594373096,0,67094296,2,69,-1,0,4294828e3,0,603979263,0,654311424,0,3,0,4294828001,0,602930687,2,171,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,71,2,38,-1,2,4,0,917503,2,38,-1,2,72,0,537788335,0,4026531935,-1,0,1,-1,2,33,2,73,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,15,2,22,3,0,10,2,74,2,0,2,75,2,76,2,77,2,0,2,78,2,0,2,12,-1,2,25,3,0,2,2,13,2,4,3,0,18,2,79,2,5,3,0,2,2,80,0,2147745791,3,19,2,0,122879,2,0,2,9,0,276824064,-2,3,0,2,2,42,2,0,0,4294903295,2,0,2,30,2,8,-1,2,18,2,51,2,0,2,81,2,49,-1,2,21,2,0,2,29,-2,0,128,-2,2,28,2,9,0,8160,-1,2,127,0,4227907585,2,0,2,37,2,0,2,50,2,184,2,10,2,6,2,11,-1,0,74440192,3,0,6,-2,3,0,8,2,13,2,0,2,82,2,10,2,0,2,83,2,84,2,85,-3,2,86,2,14,-3,2,87,2,88,2,89,2,0,2,34,-83,3,0,7,0,817183,2,0,2,15,2,0,0,33023,2,21,3,90,2,-17,2,91,0,524157950,2,4,2,0,2,92,2,4,2,0,2,22,2,28,2,16,3,0,2,2,17,2,0,-1,2,18,-16,3,0,206,-2,3,0,692,2,73,-1,2,18,2,10,3,0,8,2,93,0,3072,2,0,0,2147516415,2,10,3,0,2,2,25,2,94,2,95,3,0,2,2,96,2,0,2,97,2,46,0,4294965179,0,7,2,0,2,9,2,95,2,9,-1,0,1761345536,2,98,0,4294901823,2,38,2,20,2,99,2,35,2,100,0,2080440287,2,0,2,34,2,153,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,101,2,102,2,22,2,23,3,0,3,0,7,3,0,349,2,103,2,104,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,2700607615,2,105,2,106,3,0,2,2,19,2,107,3,0,10,2,10,2,18,2,0,2,47,2,0,2,31,2,108,-3,2,109,3,0,3,2,20,-1,3,5,2,2,110,2,0,2,8,2,111,-1,2,112,2,113,2,114,-1,3,0,3,2,12,-2,2,0,2,29,-8,2,20,2,0,2,36,-1,2,0,2,67,2,6,2,30,2,10,2,0,2,115,-1,3,0,4,2,10,2,18,2,116,2,7,2,0,2,117,2,0,2,118,2,119,2,120,2,0,2,9,3,0,9,2,21,2,30,2,31,2,121,2,122,-2,2,123,2,124,2,30,2,21,2,8,-2,2,125,2,30,2,32,-2,2,0,2,39,-2,0,4277075969,2,30,-1,3,20,2,-1,2,33,2,126,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,50,2,98,0,4294934591,2,37,-7,2,0,0,197631,2,57,-1,2,20,2,43,2,37,2,18,0,3,2,18,2,126,2,21,2,127,2,54,-1,0,2490368,2,127,2,25,2,18,2,34,2,127,2,38,0,4294901904,0,4718591,2,127,2,35,0,335544350,-1,2,128,0,2147487743,0,1,-1,2,129,2,130,2,8,-1,2,131,2,70,0,3758161920,0,3,2,132,0,12582911,0,655360,-1,2,0,2,29,0,2147485568,0,3,2,0,2,25,0,176,-5,2,0,2,17,2,192,-1,2,0,2,25,2,209,-1,2,0,0,16779263,-2,2,12,-1,2,38,-5,2,0,2,133,-3,3,0,2,2,55,2,134,0,2147549183,0,2,-2,2,135,2,36,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,2,18,2,0,2,42,-6,2,0,0,1,2,59,2,17,0,1,2,46,2,25,-3,2,136,2,36,2,137,2,138,0,16778239,-10,2,35,0,4294836212,2,9,-3,2,69,-2,3,0,28,2,32,-3,3,0,3,2,17,3,0,6,2,50,-81,2,18,3,0,2,2,36,3,0,33,2,25,0,126,3,0,124,2,12,3,0,18,2,38,-213,2,10,-55,3,0,17,2,42,2,8,2,18,2,0,2,8,2,18,2,60,2,0,2,25,2,50,2,139,2,25,-13,2,0,2,73,-6,3,0,2,-4,3,0,2,0,67583,-1,2,107,-2,0,11,3,0,191,2,54,3,0,38,2,30,2,55,2,34,-278,2,140,3,0,9,2,141,2,142,2,56,3,0,11,2,7,-72,3,0,3,2,143,2,144,-187,3,0,2,2,58,2,0,2,145,2,146,2,62,2,0,2,147,2,148,2,149,3,0,10,2,150,2,151,2,22,3,58,2,3,152,2,3,59,2,2,153,-57,2,8,2,154,-7,2,18,2,0,2,60,-4,2,0,0,1065361407,0,16384,-9,2,18,2,60,2,0,2,133,-14,2,18,2,133,-6,2,18,0,81919,-15,2,155,3,0,6,2,126,-1,3,0,2,0,2063,-37,2,62,2,156,2,157,2,158,2,159,2,160,-138,3,0,1335,-1,3,0,129,2,32,3,0,6,2,10,3,0,180,2,161,3,0,233,2,162,3,0,18,2,10,-77,3,0,16,2,10,-47,3,0,154,2,6,3,0,130,2,25,-28386,2,0,0,1,-1,2,55,2,0,0,8193,-21,2,201,0,10255,0,4,-11,2,69,2,182,-1,0,71680,-1,2,174,0,4292900864,0,268435519,-5,2,163,-1,2,173,-1,0,6144,-2,2,46,-1,2,168,-1,0,2147532800,2,164,2,170,0,8355840,-2,0,4,-4,2,198,0,205128192,0,1333757536,0,2147483696,0,423953,0,747766272,0,2717763192,0,4286578751,0,278545,2,165,0,4294886464,0,33292336,0,417809,2,165,0,1327482464,0,4278190128,0,700594195,0,1006647527,0,4286497336,0,4160749631,2,166,0,201327104,0,3634348576,0,8323120,2,166,0,202375680,0,2678047264,0,4293984304,2,166,-1,0,983584,0,48,0,58720273,0,3489923072,0,10517376,0,4293066815,0,1,2,213,2,167,2,0,0,2089,0,3221225552,0,201359520,2,0,-2,0,256,0,122880,0,16777216,2,163,0,4160757760,2,0,-6,2,179,-11,0,3263218176,-1,0,49664,0,2160197632,0,8388802,-1,0,12713984,-1,2,168,2,186,2,187,-2,2,175,-20,0,3758096385,-2,2,169,2,195,2,94,2,180,0,4294057984,-2,2,176,2,172,0,4227874816,-2,2,169,-1,2,170,-1,2,181,2,55,0,4026593280,0,14,0,4292919296,-1,2,178,0,939588608,-1,0,805306368,-1,2,55,2,171,2,172,2,173,2,211,2,0,-2,0,8192,-4,0,267386880,-1,0,117440512,0,7168,-1,2,170,2,168,2,174,2,188,-16,2,175,-1,0,1426112704,2,176,-1,2,196,0,271581216,0,2149777408,2,25,2,174,2,55,0,851967,2,189,-1,2,177,2,190,-4,2,178,-20,2,98,2,208,-56,0,3145728,2,191,-10,0,32505856,-1,2,179,-1,0,2147385088,2,94,1,2155905152,2,-3,2,176,2,0,0,67108864,-2,2,180,-6,2,181,2,25,0,1,-1,0,1,-1,2,182,-3,2,126,2,69,-2,2,100,-2,0,32704,2,55,-915,2,183,-1,2,207,-10,2,194,-5,2,185,-6,0,3759456256,2,19,-1,2,184,-1,2,185,-2,0,4227874752,-3,0,2146435072,2,186,-2,0,1006649344,2,55,-1,2,94,0,201375744,-3,0,134217720,2,94,0,4286677377,0,32896,-1,2,178,-3,0,4227907584,-349,0,65520,0,1920,2,167,3,0,264,-11,2,173,-2,2,187,2,0,0,520617856,0,2692743168,0,36,-3,0,524280,-13,2,193,-1,0,4294934272,2,25,2,187,-1,2,215,0,2158720,-3,2,186,0,1,-4,2,55,0,3808625411,0,3489628288,0,4096,0,1207959680,0,3221274624,2,0,-3,2,188,0,120,0,7340032,-2,2,189,2,4,2,25,2,176,3,0,4,2,186,-1,2,190,2,167,-1,0,8176,2,170,2,188,0,1073741824,-1,0,4290773232,2,0,-4,2,176,2,197,0,15728640,2,167,-1,2,174,-1,0,134250480,0,4720640,0,3825467396,-1,2,180,-9,2,94,2,181,0,4294967040,2,137,0,4160880640,3,0,2,0,704,0,1849688064,2,191,-1,2,55,0,4294901887,2,0,0,130547712,0,1879048192,2,212,3,0,2,-1,2,192,2,193,-1,0,17829776,0,2025848832,0,4261477888,-2,2,0,-1,0,4286580608,-1,0,29360128,2,200,0,16252928,0,3791388672,2,130,3,0,2,-2,2,206,2,0,-1,2,107,-1,0,66584576,-1,2,199,-1,0,448,0,4294918080,3,0,6,2,55,-1,0,4294755328,0,4294967267,2,7,-1,2,174,2,187,2,25,2,98,2,25,2,194,2,94,-2,0,245760,2,195,-1,2,163,2,202,0,4227923456,-1,2,196,2,174,2,94,-3,0,4292870145,0,262144,-1,2,95,2,0,0,1073758848,2,197,-1,0,4227921920,2,198,0,68289024,0,528402016,0,4292927536,0,46080,2,191,0,4265609306,0,4294967289,-2,0,268435456,2,95,-2,2,199,3,0,5,-1,2,200,2,176,2,0,-2,0,4227923936,2,67,-1,2,187,2,197,2,99,2,168,2,178,2,204,3,0,5,-1,2,167,3,0,3,-2,0,2146959360,0,9440640,0,104857600,0,4227923840,3,0,2,0,768,2,201,2,28,-2,2,174,-2,2,202,-1,2,169,2,98,3,0,5,-1,0,4227923964,0,512,0,8388608,2,203,2,183,2,193,0,4286578944,3,0,2,0,1152,0,1266679808,2,199,0,576,0,4261707776,2,98,3,0,9,2,169,0,131072,0,939524096,2,188,3,0,2,2,16,-1,0,2147221504,-28,2,187,3,0,3,-3,0,4292902912,-6,2,99,3,0,81,2,25,-2,2,107,-33,2,18,2,181,-124,2,188,-18,2,204,3,0,213,-1,2,187,3,0,54,-17,2,169,2,55,2,205,-1,2,55,2,197,0,4290822144,-2,0,67174336,0,520093700,2,18,3,0,13,-1,2,187,3,0,6,-2,2,188,3,0,3,-2,0,30720,-1,0,32512,3,0,2,0,4294770656,-191,2,185,-38,2,181,2,8,2,206,3,0,278,0,2417033215,-9,0,4294705144,0,4292411391,0,65295,-11,2,167,3,0,72,-3,0,3758159872,0,201391616,3,0,123,-7,2,187,-13,2,180,3,0,2,-1,2,173,2,207,-3,2,99,2,0,-7,2,181,-1,0,384,-1,0,133693440,-3,2,208,-2,2,110,3,0,3,3,180,2,-2,2,94,2,169,3,0,4,-2,2,196,-1,2,163,0,335552923,2,209,-1,0,538974272,0,2214592512,0,132e3,-10,0,192,-8,2,210,-21,0,134213632,2,162,3,0,34,2,55,0,4294965279,3,0,6,0,100663424,0,63524,-1,2,214,2,152,3,0,3,-1,0,3221282816,0,4294917120,3,0,9,2,25,2,211,-1,2,212,3,0,14,2,25,2,187,3,0,6,2,25,2,213,3,0,15,0,2147520640,-6,0,4286578784,2,0,-2,0,1006694400,3,0,24,2,36,-1,0,4292870144,3,0,2,0,1,2,176,3,0,6,2,209,0,4110942569,0,1432950139,0,2701658217,0,4026532864,0,4026532881,2,0,2,47,3,0,8,-1,2,178,-2,2,180,0,98304,0,65537,2,181,-5,2,214,2,0,2,37,2,202,2,167,0,4294770176,2,110,3,0,4,-30,2,192,0,3758153728,-3,0,125829120,-2,2,187,0,4294897664,2,178,-1,2,199,-1,2,174,0,4026580992,2,95,2,0,-10,2,180,0,3758145536,0,31744,-1,0,1610628992,0,4261477376,-4,2,215,-2,2,187,3,0,32,-1335,2,0,-129,2,187,-6,2,176,-180,0,65532,-233,2,177,-18,2,176,3,0,77,-16,2,176,3,0,47,-154,2,170,-130,2,18,3,0,22250,-7,2,18,3,0,6128],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,4294903807,268435455,2147483647,1048575,1073741823,3892314111,134217727,1061158911,536805376,4294910143,4294901759,32767,4294901760,262143,536870911,8388607,4160749567,4294902783,4294918143,65535,67043328,2281701374,4294967264,2097151,4194303,255,67108863,4294967039,511,524287,131071,63,127,3238002687,4294549487,4290772991,33554431,4294901888,4286578687,67043329,4294705152,4294770687,67043583,1023,15,2047999,67043343,67051519,16777215,2147483648,4294902e3,28,4292870143,4294966783,16383,67047423,4294967279,262083,20511,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,535511039,4294966272,4294967280,32768,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,4294967232,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4160684047,4290246655,469499899,4294967231,134086655,4294966591,2445279231,3670015,31,4294967288,4294705151,3221208447,4294902271,4294549472,4294921215,4095,4285526655,4294966527,4294966143,64,4294966719,3774873592,1877934080,262151,2555904,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4294934527,4087,2016,2147446655,184024726,2862017156,1593309078,268434431,268434414,4294901763,4294901761,536870912,2952790016,202506752,139264,4026531840,402653184,4261412864,63488,1610612736,4227922944,49152,65280,3233808384,3221225472,65534,61440,57152,4293918720,4290772992,25165824,57344,4227915776,4278190080,3758096384,4227858432,4160749568,3758129152,4294836224,4194304,251658240,196608,4294963200,2143289344,2097152,64512,417808,4227923712,12582912,50331648,65528,65472,4294967168,15360,4294966784,65408,4294965248,16,12288,4294934528,2080374784,2013265920,4294950912,524288]),$n=e=>(Le[(e>>>5)+0]>>>e&31&1)!==0,Ie=e=>(Le[(e>>>5)+34816]>>>e&31&1)!==0;function m(e){return e.column++,e.currentChar=e.source.charCodeAt(++e.index)}function x2(e){let n=e.currentChar;if((n&64512)!==55296)return 0;let t=e.source.charCodeAt(e.index+1);return(t&64512)!==56320?0:65536+((n&1023)<<10)+(t&1023)}function p2(e,n){e.currentChar=e.source.charCodeAt(++e.index),e.flags|=1,(n&4)===0&&(e.column=0,e.line++)}function o2(e){e.flags|=1,e.currentChar=e.source.charCodeAt(++e.index),e.column=0,e.line++}function Wn(e){return e===160||e===65279||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===8201||e===65519}function _(e){return e<65?e-48:e-65+10&15}function Yn(e){switch(e){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 131:return"TemplateLiteral";default:return(e&143360)===143360?"Identifier":(e&4096)===4096?"Keyword":"Punctuator"}}var B=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],Qn=[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,0,0,0,1,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,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,0,1,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,0,0],qe=[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,0,0,0,1,0,0,0,0,0,0,0,0,0,0,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,0,1,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,0,0];function q2(e){return e<=127?Qn[e]>0:Ie(e)}function F2(e){return e<=127?qe[e]>0:$n(e)||e===8204||e===8205}var Pe=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function Zn(e){let{source:n}=e;e.currentChar===35&&n.charCodeAt(e.index+1)===33&&(m(e),m(e),ee(e,n,0,4,e.tokenIndex,e.tokenLine,e.tokenColumn))}function Ee(e,n,t,u,o,i,l,c){return u&512&&f(e,0),ee(e,n,t,o,i,l,c)}function ee(e,n,t,u,o,i,l){let{index:c}=e;for(e.tokenIndex=e.index,e.tokenLine=e.line,e.tokenColumn=e.column;e.index=e.source.length)return f(e,34)}let o=e.index-1,i=P.Empty,l=e.currentChar,{index:c}=e;for(;F2(l);){switch(l){case 103:i&P.Global&&f(e,36,"g"),i|=P.Global;break;case 105:i&P.IgnoreCase&&f(e,36,"i"),i|=P.IgnoreCase;break;case 109:i&P.Multiline&&f(e,36,"m"),i|=P.Multiline;break;case 117:i&P.Unicode&&f(e,36,"u"),i&P.UnicodeSets&&f(e,36,"vu"),i|=P.Unicode;break;case 118:i&P.Unicode&&f(e,36,"uv"),i&P.UnicodeSets&&f(e,36,"v"),i|=P.UnicodeSets;break;case 121:i&P.Sticky&&f(e,36,"y"),i|=P.Sticky;break;case 115:i&P.DotAll&&f(e,36,"s"),i|=P.DotAll;break;case 100:i&P.Indices&&f(e,36,"d"),i|=P.Indices;break;default:f(e,35)}l=m(e)}let d=e.source.slice(c,e.index),g=e.source.slice(t,o);return e.tokenRegExp={pattern:g,flags:d},n&128&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),e.tokenValue=pn(e,g,d),65540}function pn(e,n,t){try{return new RegExp(n,t)}catch{try{return new RegExp(n,t),null}catch{f(e,34)}}}function et(e,n,t){let{index:u}=e,o="",i=m(e),l=e.index;for(;(B[i]&8)===0;){if(i===t)return o+=e.source.slice(l,e.index),m(e),n&128&&(e.tokenRaw=e.source.slice(u,e.index)),e.tokenValue=o,134283267;if((i&8)===8&&i===92){if(o+=e.source.slice(l,e.index),i=m(e),i<127||i===8232||i===8233){let c=ve(e,n,i);c>=0?o+=String.fromCodePoint(c):Oe(e,c,0)}else o+=String.fromCodePoint(i);l=e.index+1}else(i===8232||i===8233)&&(e.column=-1,e.line++);e.index>=e.end&&f(e,16),i=m(e)}f(e,16)}function ve(e,n,t,u=0){switch(t){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(e.index1114111)return-5;return e.currentChar<1||e.currentChar!==125?-4:i}else{if((B[o]&64)===0)return-4;let i=e.source.charCodeAt(e.index+1);if((B[i]&64)===0)return-4;let l=e.source.charCodeAt(e.index+2);if((B[l]&64)===0)return-4;let c=e.source.charCodeAt(e.index+3);return(B[c]&64)===0?-4:(e.index+=3,e.column+=3,e.currentChar=e.source.charCodeAt(e.index),_(o)<<12|_(i)<<8|_(l)<<4|_(c))}}case 56:case 57:if(u||(n&64)===0||n&256)return-3;e.flags|=4096;default:return t}}function Oe(e,n,t){switch(n){case-1:return;case-2:f(e,t?2:1);case-3:f(e,t?3:14);case-4:f(e,7);case-5:f(e,104)}}function Re(e,n){let{index:t}=e,u=67174409,o="",i=m(e);for(;i!==96;){if(i===36&&e.source.charCodeAt(e.index+1)===123){m(e),u=67174408;break}else if(i===92)if(i=m(e),i>126)o+=String.fromCodePoint(i);else{let{index:l,line:c,column:d}=e,g=ve(e,n|256,i,1);if(g>=0)o+=String.fromCodePoint(g);else if(g!==-1&&n&16384){e.index=l,e.line=c,e.column=d,o=null,i=nt(e,i),i<0&&(u=67174408);break}else Oe(e,g,1)}else e.index=e.end&&f(e,17),i=m(e)}return m(e),e.tokenValue=o,e.tokenRaw=e.source.slice(t+1,e.index-(u===67174409?1:2)),u}function nt(e,n){for(;n!==96;){switch(n){case 36:{let t=e.index+1;if(t=e.end&&f(e,17),n=m(e)}return n}function tt(e,n){return e.index>=e.end&&f(e,0),e.index--,e.column--,Re(e,n)}function re(e,n,t){let u=e.currentChar,o=0,i=9,l=t&64?0:1,c=0,d=0;if(t&64)o="."+B2(e,u),u=e.currentChar,u===110&&f(e,12);else{if(u===48)if(u=m(e),(u|32)===120){for(t=136,u=m(e);B[u]&4160;){if(u===95){d||f(e,152),d=0,u=m(e);continue}d=1,o=o*16+_(u),c++,u=m(e)}(c===0||!d)&&f(e,c===0?21:153)}else if((u|32)===111){for(t=132,u=m(e);B[u]&4128;){if(u===95){d||f(e,152),d=0,u=m(e);continue}d=1,o=o*8+(u-48),c++,u=m(e)}(c===0||!d)&&f(e,c===0?0:153)}else if((u|32)===98){for(t=130,u=m(e);B[u]&4224;){if(u===95){d||f(e,152),d=0,u=m(e);continue}d=1,o=o*2+(u-48),c++,u=m(e)}(c===0||!d)&&f(e,c===0?0:153)}else if(B[u]&32)for(n&256&&f(e,1),t=1;B[u]&16;){if(B[u]&512){t=32,l=0;break}o=o*8+(u-48),u=m(e)}else B[u]&512?(n&256&&f(e,1),e.flags|=64,t=32):u===95&&f(e,0);if(t&48){if(l){for(;i>=0&&B[u]&4112;){if(u===95){u=m(e),(u===95||t&32)&&a2(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},152),d=1;continue}d=0,o=10*o+(u-48),u=m(e),--i}if(d&&a2(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},153),i>=0&&!q2(u)&&u!==46)return e.tokenValue=o,n&128&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283266}o+=B2(e,u),u=e.currentChar,u===46&&(m(e)===95&&f(e,0),t=64,o+="."+B2(e,e.currentChar),u=e.currentChar)}}let g=e.index,a=0;if(u===110&&t&128)a=1,u=m(e);else if((u|32)===101){u=m(e),B[u]&256&&(u=m(e));let{index:s}=e;(B[u]&16)===0&&f(e,11),o+=e.source.substring(g,s)+B2(e,u),u=e.currentChar}return(e.index","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","accessor","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],Ve=Object.create(null,{this:{value:86111},function:{value:86104},if:{value:20569},return:{value:20572},var:{value:86088},else:{value:20563},for:{value:20567},new:{value:86107},in:{value:8673330},typeof:{value:16863275},while:{value:20578},case:{value:20556},break:{value:20555},try:{value:20577},catch:{value:20557},delete:{value:16863276},throw:{value:86112},switch:{value:86110},continue:{value:20559},default:{value:20561},instanceof:{value:8411187},do:{value:20562},void:{value:16863277},finally:{value:20566},async:{value:209005},await:{value:209006},class:{value:86094},const:{value:86090},constructor:{value:12399},debugger:{value:20560},export:{value:20564},extends:{value:20565},false:{value:86021},from:{value:209011},get:{value:209008},implements:{value:36964},import:{value:86106},interface:{value:36965},let:{value:241737},null:{value:86023},of:{value:471156},package:{value:36966},private:{value:36967},protected:{value:36968},public:{value:36969},set:{value:209009},static:{value:36970},super:{value:86109},true:{value:86022},with:{value:20579},yield:{value:241771},enum:{value:86133},eval:{value:537079926},as:{value:77932},arguments:{value:537079927},target:{value:209029},meta:{value:209030},accessor:{value:12402}});function we(e,n,t){for(;qe[m(e)];);return e.tokenValue=e.source.slice(e.tokenIndex,e.index),e.currentChar!==92&&e.currentChar<=126?Ve[e.tokenValue]||208897:ne(e,n,0,t)}function ut(e,n){let t=Me(e);return q2(t)||f(e,5),e.tokenValue=String.fromCodePoint(t),ne(e,n,1,B[t]&4)}function ne(e,n,t,u){let o=e.index;for(;e.index0)F2(l)||f(e,20,String.fromCodePoint(l)),e.currentChar=l,e.index++,e.column++;else if(!F2(e.currentChar))break;m(e)}e.index<=e.end&&(e.tokenValue+=e.source.slice(o,e.index));let{length:i}=e.tokenValue;if(u&&i>=2&&i<=11){let l=Ve[e.tokenValue];return l===void 0?208897|(t?-2147483648:0):t?l===209006?(n&524800)===0?l|-2147483648:-2147483528:n&256?l===36970||(l&36864)===36864?-2147483527:(l&20480)===20480?n&67108864&&(n&2048)===0?l|-2147483648:-2147483528:-2147274630:n&67108864&&(n&2048)===0&&(l&20480)===20480?l|-2147483648:l===241771?n&67108864?-2147274630:n&262144?-2147483528:l|-2147483648:l===209005?-2147274630:(l&36864)===36864?l|12288|-2147483648:-2147483528:l}return 208897|(t?-2147483648:0)}function it(e){let n=m(e);if(n===92)return 130;let t=x2(e);return t&&(n=t),q2(n)||f(e,96),130}function Me(e){return e.source.charCodeAt(e.index+1)!==117&&f(e,5),e.currentChar=e.source.charCodeAt(e.index+=2),e.column+=2,ot(e)}function ot(e){let n=0,t=e.currentChar;if(t===123){let l=e.index-2;for(;B[m(e)]&64;)n=n<<4|_(e.currentChar),n>1114111&&a2({index:l,line:e.line,column:e.column},e.currentLocation,104);return e.currentChar!==125&&a2({index:l,line:e.line,column:e.column},e.currentLocation,7),m(e),n}(B[t]&64)===0&&f(e,7);let u=e.source.charCodeAt(e.index+1);(B[u]&64)===0&&f(e,7);let o=e.source.charCodeAt(e.index+2);(B[o]&64)===0&&f(e,7);let i=e.source.charCodeAt(e.index+3);return(B[i]&64)===0&&f(e,7),n=_(t)<<12|_(u)<<8|_(o)<<4|_(i),e.currentChar=e.source.charCodeAt(e.index+=4),e.column+=4,n}var lt=[128,128,128,128,128,128,128,128,128,127,135,127,127,129,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,127,16842798,134283267,130,208897,8391477,8390213,134283267,67174411,16,8391476,25233968,18,25233969,67108877,8457014,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456256,1077936155,8390721,22,132,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,136,20,8389959,208897,131,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8389702,1074790415,16842799,128];function k(e,n){e.flags=(e.flags|1)^1,e.startIndex=e.index,e.startColumn=e.column,e.startLine=e.line,e.setToken(Ue(e,n,0))}function Ue(e,n,t){let u=e.index===0,{source:o}=e,i=e.index,l=e.line,c=e.column;for(;e.index=e.end)return 8391476;let a=e.currentChar;return a===61?(m(e),4194338):a!==42?8391476:m(e)!==61?8391735:(m(e),4194335)}case 8389959:return m(e)!==61?8389959:(m(e),4194341);case 25233968:{m(e);let a=e.currentChar;return a===43?(m(e),33619993):a===61?(m(e),4194336):25233968}case 25233969:{m(e);let a=e.currentChar;if(a===45){if(m(e),(t&1||u)&&e.currentChar===62){(n&64)===0&&f(e,112),m(e),t=Ee(e,o,t,n,3,i,l,c),i=e.tokenIndex,l=e.tokenLine,c=e.tokenColumn;continue}return 33619994}return a===61?(m(e),4194337):25233969}case 8457014:{if(m(e),e.index=48&&a<=57)return re(e,n,80);if(a===46){let s=e.index+1;if(s=48&&a<=57)))return m(e),67108990}return 22}}}else{if((d^8232)<=1){t=t&-5|1,o2(e);continue}let g=x2(e);if(g>0&&(d=g),Ie(d))return e.tokenValue="",ne(e,n,0,0);if(Wn(d)){m(e);continue}f(e,20,String.fromCodePoint(d))}}return 1048576}function ft(e,n){return e.startIndex=e.tokenIndex=e.index,e.startColumn=e.tokenColumn=e.column,e.startLine=e.tokenLine=e.line,e.setToken(B[e.currentChar]&8192?ct(e,n):Ue(e,n,0)),e.getToken()}function ct(e,n){let t=e.currentChar,u=m(e),o=e.index;for(;u!==t;)e.index>=e.end&&f(e,16),u=m(e);return u!==t&&f(e,16),e.tokenValue=e.source.slice(o,e.index),m(e),n&128&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283267}function T2(e,n){if(e.startIndex=e.tokenIndex=e.index,e.startColumn=e.tokenColumn=e.column,e.startLine=e.tokenLine=e.line,e.index>=e.end){e.setToken(1048576);return}if(e.currentChar===60){m(e),e.setToken(8456256);return}if(e.currentChar===123){m(e),e.setToken(2162700);return}let t=0;for(;e.index1&&i&32&&e.getToken()&262144&&f(e,61,S[e.getToken()&255]),c}function Se(e,n,t,u,o,i){let{tokenStart:l}=e,c=e.getToken(),d=null,g=ln(e,n,t,u,o,i);return e.getToken()===1077936155?(k(e,n|8192),d=L(e,n,u,1,0,e.tokenStart),(i&32||(c&2097152)===0)&&(e.getToken()===471156||e.getToken()===8673330&&(c&2097152||(o&4)===0||n&256))&&J(l,e.currentLocation,60,e.getToken()===471156?"of":"in")):(o&16||(c&2097152)>0)&&(e.getToken()&262144)!==262144&&f(e,59,o&16?"const":"destructuring"),e.finishNode({type:"VariableDeclarator",id:g,init:d},l)}function Ut(e,n,t,u,o){let i=e.tokenStart;k(e,n);let l=((n&524288)>0||(n&512)>0&&(n&2048)>0)&&r(e,n,209006);A(e,n|8192,67174411),t&&(t=q(t,1));let c=null,d=null,g=0,a=null,s=e.getToken()===86088||e.getToken()===241737||e.getToken()===86090,h,{tokenStart:T}=e,C=e.getToken();if(s)C===241737?(a=N(e,n),e.getToken()&2240512?(e.getToken()===8673330?n&256&&f(e,67):a=e.finishNode({type:"VariableDeclaration",kind:"let",declarations:d2(e,n|33554432,t,u,8,32)},T),e.assignable=1):n&256?f(e,67):(s=!1,e.assignable=1,a=F(e,n,u,a,0,0,T),e.getToken()===471156&&f(e,115))):(k(e,n),a=e.finishNode(C===86088?{type:"VariableDeclaration",kind:"var",declarations:d2(e,n|33554432,t,u,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:d2(e,n|33554432,t,u,16,32)},T),e.assignable=1);else if(C===1074790417)l&&f(e,82);else if((C&2097152)===2097152){let b=e.tokenStart;a=C===2162700?z(e,n,void 0,u,1,0,0,2,32):H(e,n,void 0,u,1,0,0,2,32),g=e.destructible,g&64&&f(e,63),e.assignable=g&16?2:1,a=F(e,n|33554432,u,a,0,0,b)}else a=X(e,n|33554432,u,1,0,1);if((e.getToken()&262144)===262144){if(e.getToken()===471156){e.assignable&2&&f(e,80,l?"await":"of"),$(e,a),k(e,n|8192),h=L(e,n,u,1,0,e.tokenStart),A(e,n|8192,16);let D=y2(e,n,t,u,o);return e.finishNode({type:"ForOfStatement",left:a,right:h,body:D,await:l},i)}e.assignable&2&&f(e,80,"in"),$(e,a),k(e,n|8192),l&&f(e,82),h=V(e,n,u,0,1,e.tokenStart),A(e,n|8192,16);let b=y2(e,n,t,u,o);return e.finishNode({type:"ForInStatement",body:b,left:a,right:h},i)}l&&f(e,82),s||(g&8&&e.getToken()!==1077936155&&f(e,80,"loop"),a=I(e,n|33554432,u,0,0,T,a)),e.getToken()===18&&(a=Q(e,n,u,0,T,a)),A(e,n|8192,1074790417),e.getToken()!==1074790417&&(c=V(e,n,u,0,1,e.tokenStart)),A(e,n|8192,1074790417),e.getToken()!==16&&(d=V(e,n,u,0,1,e.tokenStart)),A(e,n|8192,16);let E=y2(e,n,t,u,o);return e.finishNode({type:"ForStatement",init:a,test:c,update:d,body:E},i)}function We(e,n,t){return b2(n,e.getToken())||f(e,118),(e.getToken()&537079808)===537079808&&f(e,119),t&&n2(e,n,t,e.tokenValue,8,0),N(e,n)}function Jt(e,n,t){let u=e.tokenStart;k(e,n);let o=null,{tokenStart:i}=e,l=[];if(e.getToken()===134283267)o=v(e,n);else{if(e.getToken()&143360){let g=We(e,n,t);if(l=[e.finishNode({type:"ImportDefaultSpecifier",local:g},i)],r(e,n,18))switch(e.getToken()){case 8391476:l.push(Fe(e,n,t));break;case 2162700:Ne(e,n,t,l);break;default:f(e,107)}}else switch(e.getToken()){case 8391476:l=[Fe(e,n,t)];break;case 2162700:Ne(e,n,t,l);break;case 67174411:return Qe(e,n,void 0,u);case 67108877:return Ye(e,n,u);default:f(e,30,S[e.getToken()&255])}o=_t(e,n)}let c=Z2(e,n,l),d={type:"ImportDeclaration",specifiers:l,source:o,attributes:c};return U(e,n|8192),e.finishNode(d,u)}function Fe(e,n,t){let{tokenStart:u}=e;return k(e,n),A(e,n,77932),(e.getToken()&134217728)===134217728&&J(u,e.currentLocation,30,S[e.getToken()&255]),e.finishNode({type:"ImportNamespaceSpecifier",local:We(e,n,t)},u)}function _t(e,n){return A(e,n,209011),e.getToken()!==134283267&&f(e,105,"Import"),v(e,n)}function Ne(e,n,t,u){for(k(e,n);e.getToken()&143360||e.getToken()===134283267;){let{tokenValue:o,tokenStart:i}=e,l=e.getToken(),c=N2(e,n),d;r(e,n,77932)?((e.getToken()&134217728)===134217728||e.getToken()===18?f(e,106):P2(e,n,16,e.getToken(),0),o=e.tokenValue,d=N(e,n)):c.type==="Identifier"?(P2(e,n,16,l,0),d=c):f(e,25,S[108]),t&&n2(e,n,t,o,8,0),u.push(e.finishNode({type:"ImportSpecifier",local:d,imported:c},i)),e.getToken()!==1074790415&&A(e,n,18)}return A(e,n,1074790415),u}function Ye(e,n,t){let u=Ze(e,n,e.finishNode({type:"Identifier",name:"import"},t),t);return u=F(e,n,void 0,u,0,0,t),u=I(e,n,void 0,0,0,t,u),e.getToken()===18&&(u=Q(e,n,void 0,0,t,u)),s2(e,n,u,t)}function Qe(e,n,t,u){let o=Ge(e,n,t,0,u);return o=F(e,n,t,o,0,0,u),e.getToken()===18&&(o=Q(e,n,t,0,u,o)),s2(e,n,o,u)}function jt(e,n,t){let u=e.leadingDecorators.decorators.length?e.leadingDecorators.start:e.tokenStart;k(e,n|8192);let o=[],i=null,l=null,c=[];if(r(e,n|8192,20561)){switch(e.getToken()){case 86104:{i=e2(e,n,t,void 0,4,1,1,0,e.tokenStart);break}case 132:case 86094:i=G2(e,n,t,void 0,1);break;case 209005:{let{tokenStart:g}=e;i=N(e,n);let{flags:a}=e;(a&1)===0&&(e.getToken()===86104?i=e2(e,n,t,void 0,4,1,1,1,g):e.getToken()===67174411?(i=ae(e,n,void 0,i,1,1,0,a,g),i=F(e,n,void 0,i,0,0,g),i=I(e,n,void 0,0,0,g,i)):e.getToken()&143360&&(t&&(t=M2(e,n,e.tokenValue)),i=N(e,n),i=E2(e,n,t,void 0,[i],1,g)));break}default:i=L(e,n,void 0,1,0,e.tokenStart),U(e,n|8192)}return t&&t2(e,"default"),e.finishNode({type:"ExportDefaultDeclaration",declaration:i},u)}switch(e.getToken()){case 8391476:{k(e,n);let g=null;r(e,n,77932)&&(t&&t2(e,e.tokenValue),g=N2(e,n)),A(e,n,209011),e.getToken()!==134283267&&f(e,105,"Export"),l=v(e,n);let s=Z2(e,n),h={type:"ExportAllDeclaration",source:l,exported:g,attributes:s};return U(e,n|8192),e.finishNode(h,u)}case 2162700:{k(e,n);let g=[],a=[],s=0;for(;e.getToken()&143360||e.getToken()===134283267;){let{tokenStart:h,tokenValue:T}=e,C=N2(e,n);C.type==="Literal"&&(s=1);let E;e.getToken()===77932?(k(e,n),(e.getToken()&143360)===0&&e.getToken()!==134283267&&f(e,106),t&&(g.push(e.tokenValue),a.push(T)),E=N2(e,n)):(t&&(g.push(e.tokenValue),a.push(e.tokenValue)),E=C),o.push(e.finishNode({type:"ExportSpecifier",local:C,exported:E},h)),e.getToken()!==1074790415&&A(e,n,18)}A(e,n,1074790415),r(e,n,209011)?(e.getToken()!==134283267&&f(e,105,"Export"),l=v(e,n),c=Z2(e,n,o),t&&g.forEach(h=>t2(e,h))):(s&&f(e,172),t&&(g.forEach(h=>t2(e,h)),a.forEach(h=>ht(e,h)))),U(e,n|8192);break}case 132:case 86094:i=G2(e,n,t,void 0,2);break;case 86104:i=e2(e,n,t,void 0,4,1,2,0,e.tokenStart);break;case 241737:i=Q2(e,n,t,void 0,8,64);break;case 86090:i=Q2(e,n,t,void 0,16,64);break;case 86088:i=$e(e,n,t,void 0,64);break;case 209005:{let{tokenStart:g}=e;if(k(e,n),(e.flags&1)===0&&e.getToken()===86104){i=e2(e,n,t,void 0,4,1,2,1,g);break}}default:f(e,30,S[e.getToken()&255])}let d={type:"ExportNamedDeclaration",declaration:i,specifiers:o,source:l,attributes:c};return e.finishNode(d,u)}function L(e,n,t,u,o,i){let l=j(e,n,t,2,0,u,o,1,i);return l=F(e,n,t,l,o,0,i),I(e,n,t,o,0,i,l)}function Q(e,n,t,u,o,i){let l=[i];for(;r(e,n|8192,18);)l.push(L(e,n,t,1,u,e.tokenStart));return e.finishNode({type:"SequenceExpression",expressions:l},o)}function V(e,n,t,u,o,i){let l=L(e,n,t,o,u,i);return e.getToken()===18?Q(e,n,t,u,i,l):l}function I(e,n,t,u,o,i,l){let c=e.getToken();if((c&4194304)===4194304){e.assignable&2&&f(e,26),(!o&&c===1077936155&&l.type==="ArrayExpression"||l.type==="ObjectExpression")&&$(e,l),k(e,n|8192);let d=L(e,n,t,1,u,e.tokenStart);return e.assignable=2,e.finishNode(o?{type:"AssignmentPattern",left:l,right:d}:{type:"AssignmentExpression",left:l,operator:S[c&255],right:d},i)}return(c&8388608)===8388608&&(l=p(e,n,t,u,i,4,c,l)),r(e,n|8192,22)&&(l=u2(e,n,t,l,i)),l}function S2(e,n,t,u,o,i,l){let c=e.getToken();k(e,n|8192);let d=L(e,n,t,1,u,e.tokenStart);return l=e.finishNode(o?{type:"AssignmentPattern",left:l,right:d}:{type:"AssignmentExpression",left:l,operator:S[c&255],right:d},i),e.assignable=2,l}function u2(e,n,t,u,o){let i=L(e,(n|33554432)^33554432,t,1,0,e.tokenStart);A(e,n|8192,21),e.assignable=1;let l=L(e,n,t,1,0,e.tokenStart);return e.assignable=2,e.finishNode({type:"ConditionalExpression",test:u,consequent:i,alternate:l},o)}function p(e,n,t,u,o,i,l,c){let d=-((n&33554432)>0)&8673330,g,a;for(e.assignable=2;e.getToken()&8388608&&(g=e.getToken(),a=g&3840,(g&524288&&l&268435456||l&524288&&g&268435456)&&f(e,165),!(a+((g===8391735)<<8)-((d===g)<<12)<=i));)k(e,n|8192),c=e.finishNode({type:g&524288||g&268435456?"LogicalExpression":"BinaryExpression",left:c,right:p(e,n,t,u,e.tokenStart,a,g,X(e,n,t,0,u,1)),operator:S[g&255]},o);return e.getToken()===1077936155&&f(e,26),c}function Xt(e,n,t,u,o){u||f(e,0);let{tokenStart:i}=e,l=e.getToken();k(e,n|8192);let c=X(e,n,t,0,o,1);return e.getToken()===8391735&&f(e,33),n&256&&l===16863276&&(c.type==="Identifier"?f(e,121):dt(c)&&f(e,127)),e.assignable=2,e.finishNode({type:"UnaryExpression",operator:S[l&255],argument:c,prefix:!0},i)}function Ht(e,n,t,u,o,i,l,c){let d=e.getToken(),g=N(e,n),{flags:a}=e;if((a&1)===0){if(e.getToken()===86104)return pe(e,n,t,1,u,c);if(b2(n,e.getToken()))return o||f(e,0),(e.getToken()&36864)===36864&&(e.flags|=256),tn(e,n,t,i,c)}return!l&&e.getToken()===67174411?ae(e,n,t,g,i,1,0,a,c):e.getToken()===10?(U2(e,n,d),l&&f(e,51),(d&36864)===36864&&(e.flags|=256),_2(e,n,t,e.tokenValue,g,l,i,0,c)):(e.assignable=1,g)}function zt(e,n,t,u,o,i){if(u&&(e.destructible|=256),n&262144){k(e,n|8192),n&2097152&&f(e,32),o||f(e,26),e.getToken()===22&&f(e,124);let l=null,c=!1;return(e.flags&1)===0?(c=r(e,n|8192,8391476),(e.getToken()&77824||c)&&(l=L(e,n,t,1,0,e.tokenStart))):e.getToken()===8391476&&f(e,30,S[e.getToken()&255]),e.assignable=2,e.finishNode({type:"YieldExpression",argument:l,delegate:c},i)}return n&256&&f(e,97,"yield"),de(e,n,t)}function Kt(e,n,t,u,o,i){o&&(e.destructible|=128),n&268435456&&f(e,177);let l=de(e,n,t);if(l.type==="ArrowFunctionExpression"||(e.getToken()&65536)===0)return n&524288&&J(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},176),n&512&&J(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},110),n&2097152&&n&524288&&J(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},110),l;if(n&2097152&&J(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},31),n&524288||n&512&&n&2048){u&&J(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},0);let d=X(e,n,t,0,0,1);return e.getToken()===8391735&&f(e,33),e.assignable=2,e.finishNode({type:"AwaitExpression",argument:d},i)}return n&512&&J(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},98),l}function J2(e,n,t,u,o,i,l){let{tokenStart:c}=e;A(e,n|8192,2162700);let d=[];if(e.getToken()!==1074790415){for(;e.getToken()===134283267;){let{index:g,tokenStart:a,tokenIndex:s,tokenValue:h}=e,T=e.getToken(),C=v(e,n);Je(e,g,s,h)&&(n|=256,e.flags&128&&J(a,e.currentLocation,66),e.flags&64&&J(a,e.currentLocation,9),e.flags&4096&&J(a,e.currentLocation,15),l&&V2(l)),d.push(ie(e,n,C,T,a))}n&256&&(i&&((i&537079808)===537079808&&f(e,119),(i&36864)===36864&&f(e,40)),e.flags&512&&f(e,119),e.flags&256&&f(e,118))}for(e.flags=(e.flags|512|256|64|4096)^4928,e.destructible=(e.destructible|256)^256;e.getToken()!==1074790415;)d.push(D2(e,n,t,u,4,{}));return A(e,o&24?n|8192:n,1074790415),e.flags&=-4289,e.getToken()===1077936155&&f(e,26),e.finishNode({type:"BlockStatement",body:d},c)}function $t(e,n){let{tokenStart:t}=e;switch(k(e,n),e.getToken()){case 67108990:f(e,167);case 67174411:{(n&131072)===0&&f(e,28),e.assignable=2;break}case 69271571:case 67108877:{(n&65536)===0&&f(e,29),e.assignable=1;break}default:f(e,30,"super")}return e.finishNode({type:"Super"},t)}function X(e,n,t,u,o,i){let l=e.tokenStart,c=j(e,n,t,2,0,u,o,i,l);return F(e,n,t,c,o,0,l)}function Wt(e,n,t,u){e.assignable&2&&f(e,55);let o=e.getToken();return k(e,n),e.assignable=2,e.finishNode({type:"UpdateExpression",argument:t,operator:S[o&255],prefix:!1},u)}function F(e,n,t,u,o,i,l){if((e.getToken()&33619968)===33619968&&(e.flags&1)===0)u=Wt(e,n,u,l);else if((e.getToken()&67108864)===67108864){switch(n=(n|33554432)^33554432,e.getToken()){case 67108877:{k(e,(n|67108864|2048)^2048),n&4096&&e.getToken()===130&&e.tokenValue==="super"&&f(e,173),e.assignable=1;let c=oe(e,n|16384,t);u=e.finishNode({type:"MemberExpression",object:u,computed:!1,property:c,optional:!1},l);break}case 69271571:{let c=!1;(e.flags&2048)===2048&&(c=!0,e.flags=(e.flags|2048)^2048),k(e,n|8192);let{tokenStart:d}=e,g=V(e,n,t,o,1,d);A(e,n,20),e.assignable=1,u=e.finishNode({type:"MemberExpression",object:u,computed:!0,property:g,optional:!1},l),c&&(e.flags|=2048);break}case 67174411:{if((e.flags&1024)===1024)return e.flags=(e.flags|1024)^1024,u;let c=!1;(e.flags&2048)===2048&&(c=!0,e.flags=(e.flags|2048)^2048);let d=ce(e,n,t,o);e.assignable=2,u=e.finishNode({type:"CallExpression",callee:u,arguments:d,optional:!1},l),c&&(e.flags|=2048);break}case 67108990:{k(e,(n|67108864|2048)^2048),e.flags|=2048,e.assignable=2,u=Yt(e,n,t,u,l);break}default:(e.flags&2048)===2048&&f(e,166),e.assignable=2,u=e.finishNode({type:"TaggedTemplateExpression",tag:u,quasi:e.getToken()===67174408?fe(e,n|16384,t):le(e,n)},l)}u=F(e,n,t,u,0,1,l)}return i===0&&(e.flags&2048)===2048&&(e.flags=(e.flags|2048)^2048,u=e.finishNode({type:"ChainExpression",expression:u},l)),u}function Yt(e,n,t,u,o){let i=!1,l;if((e.getToken()===69271571||e.getToken()===67174411)&&(e.flags&2048)===2048&&(i=!0,e.flags=(e.flags|2048)^2048),e.getToken()===69271571){k(e,n|8192);let{tokenStart:c}=e,d=V(e,n,t,0,1,c);A(e,n,20),e.assignable=2,l=e.finishNode({type:"MemberExpression",object:u,computed:!0,optional:!0,property:d},o)}else if(e.getToken()===67174411){let c=ce(e,n,t,0);e.assignable=2,l=e.finishNode({type:"CallExpression",callee:u,arguments:c,optional:!0},o)}else{let c=oe(e,n,t);e.assignable=2,l=e.finishNode({type:"MemberExpression",object:u,computed:!1,optional:!0,property:c},o)}return i&&(e.flags|=2048),l}function oe(e,n,t){return(e.getToken()&143360)===0&&e.getToken()!==-2147483528&&e.getToken()!==-2147483527&&e.getToken()!==130&&f(e,160),e.getToken()===130?R2(e,n,t,0):N(e,n)}function Qt(e,n,t,u,o,i){u&&f(e,56),o||f(e,0);let l=e.getToken();k(e,n|8192);let c=X(e,n,t,0,0,1);return e.assignable&2&&f(e,55),e.assignable=2,e.finishNode({type:"UpdateExpression",argument:c,operator:S[l&255],prefix:!0},i)}function j(e,n,t,u,o,i,l,c,d){if((e.getToken()&143360)===143360){switch(e.getToken()){case 209006:return Kt(e,n,t,o,l,d);case 241771:return zt(e,n,t,l,i,d);case 209005:return Ht(e,n,t,l,c,i,o,d)}let{tokenValue:g}=e,a=e.getToken(),s=N(e,n|16384);return e.getToken()===10?(c||f(e,0),U2(e,n,a),(a&36864)===36864&&(e.flags|=256),_2(e,n,t,g,s,o,i,0,d)):(n&4096&&!(n&8388608)&&!(n&2097152)&&e.tokenValue==="arguments"&&f(e,130),(a&255)===73&&(n&256&&f(e,113),u&24&&f(e,100)),e.assignable=n&256&&(a&537079808)===537079808?2:1,s)}if((e.getToken()&134217728)===134217728)return v(e,n);switch(e.getToken()){case 33619993:case 33619994:return Qt(e,n,t,o,c,d);case 16863276:case 16842798:case 16842799:case 25233968:case 25233969:case 16863275:case 16863277:return Xt(e,n,t,c,l);case 86104:return pe(e,n,t,0,l,d);case 2162700:return iu(e,n,t,i?0:1,l);case 69271571:return uu(e,n,t,i?0:1,l);case 67174411:return lu(e,n|16384,t,i,1,0,d);case 86021:case 86022:case 86023:return nu(e,n);case 86111:return tu(e,n);case 65540:return du(e,n);case 132:case 86094:return au(e,n,t,l,d);case 86109:return $t(e,n);case 67174409:return le(e,n);case 67174408:return fe(e,n,t);case 86107:return fu(e,n,t,l);case 134283388:return xe(e,n);case 130:return R2(e,n,t,0);case 86106:return Zt(e,n,t,o,l,d);case 8456256:if(n&8)return X2(e,n,t,0,e.tokenStart);default:if(b2(n,e.getToken()))return de(e,n,t);f(e,30,S[e.getToken()&255])}}function Zt(e,n,t,u,o,i){let l=N(e,n);return e.getToken()===67108877?Ze(e,n,l,i):(u&&f(e,142),l=Ge(e,n,t,o,i),e.assignable=2,F(e,n,t,l,o,0,i))}function Ze(e,n,t,u){(n&512)===0&&f(e,169),k(e,n);let o=e.getToken();return o!==209030&&e.tokenValue!=="meta"?f(e,174):o&-2147483648&&f(e,175),e.assignable=2,e.finishNode({type:"MetaProperty",meta:t,property:N(e,n)},u)}function Ge(e,n,t,u,o){A(e,n|8192,67174411),e.getToken()===14&&f(e,143);let i=L(e,n,t,1,u,e.tokenStart),l=null;if(e.getToken()===18){if(A(e,n,18),e.getToken()!==16){let d=(n|33554432)^33554432;l=L(e,d,t,1,u,e.tokenStart)}r(e,n,18)}let c={type:"ImportExpression",source:i,options:l};return A(e,n,16),e.finishNode(c,o)}function Z2(e,n,t=null){if(!r(e,n,20579))return[];A(e,n,2162700);let u=[],o=new Set;for(;e.getToken()!==1074790415;){let i=e.tokenStart,l=xt(e,n);A(e,n,21);let c=Gt(e,n),d=l.type==="Literal"?l.value:l.name;d==="type"&&c.value==="json"&&(t===null||t.length===1&&(t[0].type==="ImportDefaultSpecifier"||t[0].type==="ImportNamespaceSpecifier"||t[0].type==="ImportSpecifier"&&t[0].imported.type==="Identifier"&&t[0].imported.name==="default"||t[0].type==="ExportSpecifier"&&t[0].local.type==="Identifier"&&t[0].local.name==="default")||f(e,140)),o.has(d)&&f(e,145,`${d}`),o.add(d),u.push(e.finishNode({type:"ImportAttribute",key:l,value:c},i)),e.getToken()!==1074790415&&A(e,n,18)}return A(e,n,1074790415),u}function Gt(e,n){if(e.getToken()===134283267)return v(e,n);f(e,30,S[e.getToken()&255])}function xt(e,n){if(e.getToken()===134283267)return v(e,n);if(e.getToken()&143360)return N(e,n);f(e,30,S[e.getToken()&255])}function pt(e,n){let t=n.length;for(let u=0;u56319||++u>=t||(n.charCodeAt(u)&64512)!==56320)&&f(e,171,JSON.stringify(n.charAt(u--)))}}function N2(e,n){if(e.getToken()===134283267)return pt(e,e.tokenValue),v(e,n);if(e.getToken()&143360)return N(e,n);f(e,30,S[e.getToken()&255])}function xe(e,n){let{tokenRaw:t,tokenValue:u,tokenStart:o}=e;k(e,n),e.assignable=2;let i={type:"Literal",value:u,bigint:String(u)};return n&128&&(i.raw=t),e.finishNode(i,o)}function le(e,n){e.assignable=2;let{tokenValue:t,tokenRaw:u,tokenStart:o}=e;A(e,n,67174409);let i=[L2(e,n,t,u,o,!0)];return e.finishNode({type:"TemplateLiteral",expressions:[],quasis:i},o)}function fe(e,n,t){n=(n|33554432)^33554432;let{tokenValue:u,tokenRaw:o,tokenStart:i}=e;A(e,n&-16385|8192,67174408);let l=[L2(e,n,u,o,i,!1)],c=[V(e,n&-16385,t,0,1,e.tokenStart)];for(e.getToken()!==1074790415&&f(e,83);e.setToken(tt(e,n),!0)!==67174409;){let{tokenValue:d,tokenRaw:g,tokenStart:a}=e;A(e,n&-16385|8192,67174408),l.push(L2(e,n,d,g,a,!1)),c.push(V(e,n,t,0,1,e.tokenStart)),e.getToken()!==1074790415&&f(e,83)}{let{tokenValue:d,tokenRaw:g,tokenStart:a}=e;A(e,n,67174409),l.push(L2(e,n,d,g,a,!0))}return e.finishNode({type:"TemplateLiteral",expressions:c,quasis:l},i)}function L2(e,n,t,u,o,i){let l=e.finishNode({type:"TemplateElement",value:{cooked:t,raw:u},tail:i},o),c=i?1:2;return n&2&&(l.start+=1,l.range[0]+=1,l.end-=c,l.range[1]-=c),n&4&&(l.loc.start.column+=1,l.loc.end.column-=c),l}function eu(e,n,t){let u=e.tokenStart;n=(n|33554432)^33554432,A(e,n|8192,14);let o=L(e,n,t,1,0,e.tokenStart);return e.assignable=1,e.finishNode({type:"SpreadElement",argument:o},u)}function ce(e,n,t,u){k(e,n|8192);let o=[];if(e.getToken()===16)return k(e,n|16384),o;for(;e.getToken()!==16&&(e.getToken()===14?o.push(eu(e,n,t)):o.push(L(e,n,t,1,u,e.tokenStart)),!(e.getToken()!==18||(k(e,n|8192),e.getToken()===16))););return A(e,n|16384,16),o}function N(e,n){let{tokenValue:t,tokenStart:u}=e,o=t==="await"&&(e.getToken()&-2147483648)===0;return k(e,n|(o?8192:0)),e.finishNode({type:"Identifier",name:t},u)}function v(e,n){let{tokenValue:t,tokenRaw:u,tokenStart:o}=e;return e.getToken()===134283388?xe(e,n):(k(e,n),e.assignable=2,e.finishNode(n&128?{type:"Literal",value:t,raw:u}:{type:"Literal",value:t},o))}function nu(e,n){let t=e.tokenStart,u=S[e.getToken()&255],o=e.getToken()===86023?null:u==="true";return k(e,n),e.assignable=2,e.finishNode(n&128?{type:"Literal",value:o,raw:u}:{type:"Literal",value:o},t)}function tu(e,n){let{tokenStart:t}=e;return k(e,n),e.assignable=2,e.finishNode({type:"ThisExpression"},t)}function e2(e,n,t,u,o,i,l,c,d){k(e,n|8192);let g=i?te(e,n,8391476):0,a=null,s,h=t?l2():void 0;if(e.getToken()===67174411)(l&1)===0&&f(e,39,"Function");else{let b=o&4&&((n&2048)===0||(n&512)===0)?4:64|(c?1024:0)|(g?1024:0);_e(e,n,e.getToken()),t&&(b&4?He(e,n,t,e.tokenValue,b):n2(e,n,t,e.tokenValue,b,o),h=q(h,256),l&&l&2&&t2(e,e.tokenValue)),s=e.getToken(),e.getToken()&143360?a=N(e,n):f(e,30,S[e.getToken()&255])}n=(n|7274496)^7274496|16777216|(c?524288:0)|(g?262144:0)|(g?0:67108864),t&&(h=q(h,512));let T=nn(e,(n|2097152)&-268435457,h,u,0,1),C=268471296,E=J2(e,(n|C)^C|8388608|1048576,t?q(h,128):h,u,8,s,h==null?void 0:h.scopeError);return e.finishNode({type:"FunctionDeclaration",id:a,params:T,body:E,async:c===1,generator:g===1},d)}function pe(e,n,t,u,o,i){k(e,n|8192);let l=te(e,n,8391476),c=(u?524288:0)|(l?262144:0),d=null,g,a=n&16?l2():void 0,s=275709952;e.getToken()&143360&&(_e(e,(n|s)^s|c,e.getToken()),a&&(a=q(a,256)),g=e.getToken(),d=N(e,n)),n=(n|s)^s|16777216|c|(l?0:67108864),a&&(a=q(a,512));let h=nn(e,(n|2097152)&-268435457,a,t,o,1),T=J2(e,n&-33594369|8388608|1048576,a&&q(a,128),t,0,g,a==null?void 0:a.scopeError);return e.assignable=2,e.finishNode({type:"FunctionExpression",id:d,params:h,body:T,async:u===1,generator:l===1},i)}function uu(e,n,t,u,o){let i=H(e,n,void 0,t,u,o,0,2,0);return e.destructible&64&&f(e,63),e.destructible&8&&f(e,62),i}function H(e,n,t,u,o,i,l,c,d){let{tokenStart:g}=e;k(e,n|8192);let a=[],s=0;for(n=(n|33554432)^33554432;e.getToken()!==20;)if(r(e,n|8192,18))a.push(null);else{let T,{tokenStart:C,tokenValue:E}=e,b=e.getToken();if(b&143360)if(T=j(e,n,u,c,0,1,i,1,C),e.getToken()===1077936155){e.assignable&2&&f(e,26),k(e,n|8192),t&&Y(e,n,t,E,c,d);let D=L(e,n,u,1,i,e.tokenStart);T=e.finishNode(l?{type:"AssignmentPattern",left:T,right:D}:{type:"AssignmentExpression",operator:"=",left:T,right:D},C),s|=e.destructible&256?256:0|e.destructible&128?128:0}else e.getToken()===18||e.getToken()===20?(e.assignable&2?s|=16:t&&Y(e,n,t,E,c,d),s|=e.destructible&256?256:0|e.destructible&128?128:0):(s|=c&1?32:(c&2)===0?16:0,T=F(e,n,u,T,i,0,C),e.getToken()!==18&&e.getToken()!==20?(e.getToken()!==1077936155&&(s|=16),T=I(e,n,u,i,l,C,T)):e.getToken()!==1077936155&&(s|=e.assignable&2?16:32));else b&2097152?(T=e.getToken()===2162700?z(e,n,t,u,0,i,l,c,d):H(e,n,t,u,0,i,l,c,d),s|=e.destructible,e.assignable=e.destructible&16?2:1,e.getToken()===18||e.getToken()===20?e.assignable&2&&(s|=16):e.destructible&8?f(e,71):(T=F(e,n,u,T,i,0,C),s=e.assignable&2?16:0,e.getToken()!==18&&e.getToken()!==20?T=I(e,n,u,i,l,C,T):e.getToken()!==1077936155&&(s|=e.assignable&2?16:32))):b===14?(T=g2(e,n,t,u,20,c,d,0,i,l),s|=e.destructible,e.getToken()!==18&&e.getToken()!==20&&f(e,30,S[e.getToken()&255])):(T=X(e,n,u,1,0,1),e.getToken()!==18&&e.getToken()!==20?(T=I(e,n,u,i,l,C,T),(c&3)===0&&b===67174411&&(s|=16)):e.assignable&2?s|=16:b===67174411&&(s|=e.assignable&1&&c&3?32:16));if(a.push(T),r(e,n|8192,18)){if(e.getToken()===20)break}else break}A(e,n,20);let h=e.finishNode({type:l?"ArrayPattern":"ArrayExpression",elements:a},g);return!o&&e.getToken()&4194304?en(e,n,u,s,i,l,g,h):(e.destructible=s,h)}function en(e,n,t,u,o,i,l,c){e.getToken()!==1077936155&&f(e,26),k(e,n|8192),u&16&&f(e,26),i||$(e,c);let{tokenStart:d}=e,g=L(e,n,t,1,o,d);return e.destructible=(u|64|8)^72|(e.destructible&128?128:0)|(e.destructible&256?256:0),e.finishNode(i?{type:"AssignmentPattern",left:c,right:g}:{type:"AssignmentExpression",left:c,operator:"=",right:g},l)}function g2(e,n,t,u,o,i,l,c,d,g){let{tokenStart:a}=e;k(e,n|8192);let s=null,h=0,{tokenValue:T,tokenStart:C}=e,E=e.getToken();if(E&143360)e.assignable=1,s=j(e,n,u,i,0,1,d,1,C),E=e.getToken(),s=F(e,n,u,s,d,0,C),e.getToken()!==18&&e.getToken()!==o&&(e.assignable&2&&e.getToken()===1077936155&&f(e,71),h|=16,s=I(e,n,u,d,g,C,s)),e.assignable&2?h|=16:E===o||E===18?t&&Y(e,n,t,T,i,l):h|=32,h|=e.destructible&128?128:0;else if(E===o)f(e,41);else if(E&2097152)s=e.getToken()===2162700?z(e,n,t,u,1,d,g,i,l):H(e,n,t,u,1,d,g,i,l),E=e.getToken(),E!==1077936155&&E!==o&&E!==18?(e.destructible&8&&f(e,71),s=F(e,n,u,s,d,0,C),h|=e.assignable&2?16:0,(e.getToken()&4194304)===4194304?(e.getToken()!==1077936155&&(h|=16),s=I(e,n,u,d,g,C,s)):((e.getToken()&8388608)===8388608&&(s=p(e,n,u,1,C,4,E,s)),r(e,n|8192,22)&&(s=u2(e,n,u,s,C)),h|=e.assignable&2?16:32)):h|=o===1074790415&&E!==1077936155?16:e.destructible;else{h|=32,s=X(e,n,u,1,d,1);let{tokenStart:b}=e,D=e.getToken();return D===1077936155?(e.assignable&2&&f(e,26),s=I(e,n,u,d,g,b,s),h|=16):(D===18?h|=16:D!==o&&(s=I(e,n,u,d,g,b,s)),h|=e.assignable&1?32:16),e.destructible=h,e.getToken()!==o&&e.getToken()!==18&&f(e,161),e.finishNode({type:g?"RestElement":"SpreadElement",argument:s},a)}if(e.getToken()!==o)if(i&1&&(h|=c?16:32),r(e,n|8192,1077936155)){h&16&&f(e,26),$(e,s);let b=L(e,n,u,1,d,e.tokenStart);s=e.finishNode(g?{type:"AssignmentPattern",left:s,right:b}:{type:"AssignmentExpression",left:s,operator:"=",right:b},C),h=16}else h|=16;return e.destructible=h,e.finishNode({type:g?"RestElement":"SpreadElement",argument:s},a)}function K(e,n,t,u,o,i){var a;let l=2883584|((u&64)===0?4325376:0);n=(n|l)^l|(u&8?262144:0)|(u&16?524288:0)|(u&64?4194304:0)|65536|8388608|16777216;let c=n&16?q(l2(),512):void 0,d=ou(e,(n|2097152)&-268435457,c,t,u,1,o);c&&(c=q(c,128));let g=J2(e,n&-301992961|8388608|1048576,c,t,0,void 0,(a=c==null?void 0:c.parent)==null?void 0:a.scopeError);return e.finishNode({type:"FunctionExpression",params:d,body:g,async:(u&16)>0,generator:(u&8)>0,id:null},i)}function iu(e,n,t,u,o){let i=z(e,n,void 0,t,u,o,0,2,0);return e.destructible&64&&f(e,63),e.destructible&8&&f(e,62),i}function z(e,n,t,u,o,i,l,c,d){let{tokenStart:g}=e;k(e,n);let a=[],s=0,h=0;for(n=(n|33554432)^33554432;e.getToken()!==1074790415;){let{tokenValue:C,tokenStart:E}=e,b=e.getToken();if(b===14)a.push(g2(e,n,t,u,1074790415,c,d,0,i,l));else{let D=0,R=null,y;if(e.getToken()&143360||e.getToken()===-2147483528||e.getToken()===-2147483527)if(e.getToken()===-2147483527&&(s|=16),R=N(e,n),e.getToken()===18||e.getToken()===1074790415||e.getToken()===1077936155)if(D|=4,n&256&&(b&537079808)===537079808?s|=16:P2(e,n,c,b,0),t&&Y(e,n,t,C,c,d),r(e,n|8192,1077936155)){s|=8;let w=L(e,n,u,1,i,e.tokenStart);s|=e.destructible&256?256:0|e.destructible&128?128:0,y=e.finishNode({type:"AssignmentPattern",left:n&134217728?Object.assign({},R):R,right:w},E)}else s|=(b===209006?128:0)|(b===-2147483528?16:0),y=n&134217728?Object.assign({},R):R;else if(r(e,n|8192,21)){let{tokenStart:w}=e;if(C==="__proto__"&&h++,e.getToken()&143360){let k2=e.getToken(),Z=e.tokenValue;y=j(e,n,u,c,0,1,i,1,w);let W=e.getToken();y=F(e,n,u,y,i,0,w),e.getToken()===18||e.getToken()===1074790415?W===1077936155||W===1074790415||W===18?(s|=e.destructible&128?128:0,e.assignable&2?s|=16:t&&(k2&143360)===143360&&Y(e,n,t,Z,c,d)):s|=e.assignable&1?32:16:(e.getToken()&4194304)===4194304?(e.assignable&2?s|=16:W!==1077936155?s|=32:t&&Y(e,n,t,Z,c,d),y=I(e,n,u,i,l,w,y)):(s|=16,(e.getToken()&8388608)===8388608&&(y=p(e,n,u,1,w,4,W,y)),r(e,n|8192,22)&&(y=u2(e,n,u,y,w)))}else(e.getToken()&2097152)===2097152?(y=e.getToken()===69271571?H(e,n,t,u,0,i,l,c,d):z(e,n,t,u,0,i,l,c,d),s=e.destructible,e.assignable=s&16?2:1,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(s|=16):e.destructible&8?f(e,71):(y=F(e,n,u,y,i,0,w),s=e.assignable&2?16:0,(e.getToken()&4194304)===4194304?y=S2(e,n,u,i,l,w,y):((e.getToken()&8388608)===8388608&&(y=p(e,n,u,1,w,4,b,y)),r(e,n|8192,22)&&(y=u2(e,n,u,y,w)),s|=e.assignable&2?16:32))):(y=X(e,n,u,1,i,1),s|=e.assignable&1?32:16,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(s|=16):(y=F(e,n,u,y,i,0,w),s=e.assignable&2?16:0,e.getToken()!==18&&b!==1074790415&&(e.getToken()!==1077936155&&(s|=16),y=I(e,n,u,i,l,w,y))))}else e.getToken()===69271571?(s|=16,b===209005&&(D|=16),D|=(b===209008?256:b===209009?512:1)|2,R=c2(e,n,u,i),s|=e.assignable,y=K(e,n,u,D,i,e.tokenStart)):e.getToken()&143360?(s|=16,b===-2147483528&&f(e,95),b===209005?(e.flags&1&&f(e,132),D|=17):b===209008?D|=256:b===209009?D|=512:f(e,0),R=N(e,n),y=K(e,n,u,D,i,e.tokenStart)):e.getToken()===67174411?(s|=16,D|=1,y=K(e,n,u,D,i,e.tokenStart)):e.getToken()===8391476?(s|=16,b===209008?f(e,42):b===209009?f(e,43):b!==209005&&f(e,30,S[52]),k(e,n),D|=9|(b===209005?16:0),e.getToken()&143360?R=N(e,n):(e.getToken()&134217728)===134217728?R=v(e,n):e.getToken()===69271571?(D|=2,R=c2(e,n,u,i),s|=e.assignable):f(e,30,S[e.getToken()&255]),y=K(e,n,u,D,i,e.tokenStart)):(e.getToken()&134217728)===134217728?(b===209005&&(D|=16),D|=b===209008?256:b===209009?512:1,s|=16,R=v(e,n),y=K(e,n,u,D,i,e.tokenStart)):f(e,133);else if((e.getToken()&134217728)===134217728)if(R=v(e,n),e.getToken()===21){A(e,n|8192,21);let{tokenStart:w}=e;if(C==="__proto__"&&h++,e.getToken()&143360){y=j(e,n,u,c,0,1,i,1,w);let{tokenValue:k2}=e,Z=e.getToken();y=F(e,n,u,y,i,0,w),e.getToken()===18||e.getToken()===1074790415?Z===1077936155||Z===1074790415||Z===18?e.assignable&2?s|=16:t&&Y(e,n,t,k2,c,d):s|=e.assignable&1?32:16:e.getToken()===1077936155?(e.assignable&2&&(s|=16),y=I(e,n,u,i,l,w,y)):(s|=16,y=I(e,n,u,i,l,w,y))}else(e.getToken()&2097152)===2097152?(y=e.getToken()===69271571?H(e,n,t,u,0,i,l,c,d):z(e,n,t,u,0,i,l,c,d),s=e.destructible,e.assignable=s&16?2:1,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(s|=16):(e.destructible&8)!==8&&(y=F(e,n,u,y,i,0,w),s=e.assignable&2?16:0,(e.getToken()&4194304)===4194304?y=S2(e,n,u,i,l,w,y):((e.getToken()&8388608)===8388608&&(y=p(e,n,u,1,w,4,b,y)),r(e,n|8192,22)&&(y=u2(e,n,u,y,w)),s|=e.assignable&2?16:32))):(y=X(e,n,u,1,0,1),s|=e.assignable&1?32:16,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(s|=16):(y=F(e,n,u,y,i,0,w),s=e.assignable&1?0:16,e.getToken()!==18&&e.getToken()!==1074790415&&(e.getToken()!==1077936155&&(s|=16),y=I(e,n,u,i,l,w,y))))}else e.getToken()===67174411?(D|=1,y=K(e,n,u,D,i,e.tokenStart),s=e.assignable|16):f(e,134);else if(e.getToken()===69271571)if(R=c2(e,n,u,i),s|=e.destructible&256?256:0,D|=2,e.getToken()===21){k(e,n|8192);let{tokenStart:w,tokenValue:k2}=e,Z=e.getToken();if(e.getToken()&143360){y=j(e,n,u,c,0,1,i,1,w);let W=e.getToken();y=F(e,n,u,y,i,0,w),(e.getToken()&4194304)===4194304?(s|=e.assignable&2?16:W===1077936155?0:32,y=S2(e,n,u,i,l,w,y)):e.getToken()===18||e.getToken()===1074790415?W===1077936155||W===1074790415||W===18?e.assignable&2?s|=16:t&&(Z&143360)===143360&&Y(e,n,t,k2,c,d):s|=e.assignable&1?32:16:(s|=16,y=I(e,n,u,i,l,w,y))}else(e.getToken()&2097152)===2097152?(y=e.getToken()===69271571?H(e,n,t,u,0,i,l,c,d):z(e,n,t,u,0,i,l,c,d),s=e.destructible,e.assignable=s&16?2:1,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(s|=16):s&8?f(e,62):(y=F(e,n,u,y,i,0,w),s=e.assignable&2?s|16:0,(e.getToken()&4194304)===4194304?(e.getToken()!==1077936155&&(s|=16),y=S2(e,n,u,i,l,w,y)):((e.getToken()&8388608)===8388608&&(y=p(e,n,u,1,w,4,b,y)),r(e,n|8192,22)&&(y=u2(e,n,u,y,w)),s|=e.assignable&2?16:32))):(y=X(e,n,u,1,0,1),s|=e.assignable&1?32:16,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(s|=16):(y=F(e,n,u,y,i,0,w),s=e.assignable&1?0:16,e.getToken()!==18&&e.getToken()!==1074790415&&(e.getToken()!==1077936155&&(s|=16),y=I(e,n,u,i,l,w,y))))}else e.getToken()===67174411?(D|=1,y=K(e,n,u,D,i,e.tokenStart),s=16):f(e,44);else if(b===8391476)if(A(e,n|8192,8391476),D|=8,e.getToken()&143360){let w=e.getToken();R=N(e,n),D|=1,e.getToken()===67174411?(s|=16,y=K(e,n,u,D,i,e.tokenStart)):J(e.tokenStart,e.currentLocation,w===209005?46:w===209008||e.getToken()===209009?45:47,S[w&255])}else(e.getToken()&134217728)===134217728?(s|=16,R=v(e,n),D|=1,y=K(e,n,u,D,i,e.tokenStart)):e.getToken()===69271571?(s|=16,D|=3,R=c2(e,n,u,i),y=K(e,n,u,D,i,e.tokenStart)):f(e,126);else f(e,30,S[b&255]);s|=e.destructible&128?128:0,e.destructible=s,a.push(e.finishNode({type:"Property",key:R,value:y,kind:D&768?D&512?"set":"get":"init",computed:(D&2)>0,method:(D&1)>0,shorthand:(D&4)>0},E))}if(s|=e.destructible,e.getToken()!==18)break;k(e,n)}A(e,n,1074790415),h>1&&(s|=64);let T=e.finishNode({type:l?"ObjectPattern":"ObjectExpression",properties:a},g);return!o&&e.getToken()&4194304?en(e,n,u,s,i,l,g,T):(e.destructible=s,T)}function ou(e,n,t,u,o,i,l){A(e,n,67174411);let c=[];if(e.flags=(e.flags|128)^128,e.getToken()===16)return o&512&&f(e,37,"Setter","one",""),k(e,n),c;o&256&&f(e,37,"Getter","no","s"),o&512&&e.getToken()===14&&f(e,38),n=(n|33554432)^33554432;let d=0,g=0;for(;e.getToken()!==18;){let a=null,{tokenStart:s}=e;if(e.getToken()&143360?((n&256)===0&&((e.getToken()&36864)===36864&&(e.flags|=256),(e.getToken()&537079808)===537079808&&(e.flags|=512)),a=se(e,n,t,o|1,0)):(e.getToken()===2162700?a=z(e,n,t,u,1,l,1,i,0):e.getToken()===69271571?a=H(e,n,t,u,1,l,1,i,0):e.getToken()===14&&(a=g2(e,n,t,u,16,i,0,0,l,1)),g=1,e.destructible&48&&f(e,50)),e.getToken()===1077936155){k(e,n|8192),g=1;let h=L(e,n,u,1,0,e.tokenStart);a=e.finishNode({type:"AssignmentPattern",left:a,right:h},s)}if(d++,c.push(a),!r(e,n,18)||e.getToken()===16)break}return o&512&&d!==1&&f(e,37,"Setter","one",""),t&&t.scopeError&&V2(t.scopeError),g&&(e.flags|=128),A(e,n,16),c}function c2(e,n,t,u){k(e,n|8192);let o=L(e,(n|33554432)^33554432,t,1,u,e.tokenStart);return A(e,n,20),o}function lu(e,n,t,u,o,i,l){e.flags=(e.flags|128)^128;let c=e.tokenStart;k(e,n|8192|67108864);let d=n&16?q(l2(),1024):void 0;if(n=(n|33554432)^33554432,r(e,n,16))return O2(e,n,d,t,[],u,0,l);let g=0;e.destructible&=-385;let a,s=[],h=0,T=0,C=0,E=e.tokenStart;for(e.assignable=1;e.getToken()!==16;){let{tokenStart:b}=e,D=e.getToken();if(D&143360)d&&n2(e,n,d,e.tokenValue,1,0),(D&537079808)===537079808?T=1:(D&36864)===36864&&(C=1),a=j(e,n,t,o,0,1,1,1,b),e.getToken()===16||e.getToken()===18?e.assignable&2&&(g|=16,T=1):(e.getToken()===1077936155?T=1:g|=16,a=F(e,n,t,a,1,0,b),e.getToken()!==16&&e.getToken()!==18&&(a=I(e,n,t,1,0,b,a)));else if((D&2097152)===2097152)a=D===2162700?z(e,n|67108864,d,t,0,1,0,o,i):H(e,n|67108864,d,t,0,1,0,o,i),g|=e.destructible,T=1,e.assignable=2,e.getToken()!==16&&e.getToken()!==18&&(g&8&&f(e,122),a=F(e,n,t,a,0,0,b),g|=16,e.getToken()!==16&&e.getToken()!==18&&(a=I(e,n,t,0,0,b,a)));else if(D===14){a=g2(e,n,d,t,16,o,i,0,1,0),e.destructible&16&&f(e,74),T=1,h&&(e.getToken()===16||e.getToken()===18)&&s.push(a),g|=8;break}else{if(g|=16,a=L(e,n,t,1,1,b),h&&(e.getToken()===16||e.getToken()===18)&&s.push(a),e.getToken()===18&&(h||(h=1,s=[a])),h){for(;r(e,n|8192,18);)s.push(L(e,n,t,1,1,e.tokenStart));e.assignable=2,a=e.finishNode({type:"SequenceExpression",expressions:s},E)}return A(e,n,16),e.destructible=g,n&32?e.finishNode({type:"ParenthesizedExpression",expression:a},c):a}if(h&&(e.getToken()===16||e.getToken()===18)&&s.push(a),!r(e,n|8192,18))break;if(h||(h=1,s=[a]),e.getToken()===16){g|=8;break}}return h&&(e.assignable=2,a=e.finishNode({type:"SequenceExpression",expressions:s},E)),A(e,n,16),g&16&&g&8&&f(e,151),g|=e.destructible&256?256:0|e.destructible&128?128:0,e.getToken()===10?(g&48&&f(e,49),n&524800&&g&128&&f(e,31),n&262400&&g&256&&f(e,32),T&&(e.flags|=128),C&&(e.flags|=256),O2(e,n,d,t,h?s:[a],u,0,l)):(g&64&&f(e,63),g&8&&f(e,144),e.destructible=(e.destructible|256)^256|g,n&32?e.finishNode({type:"ParenthesizedExpression",expression:a},c):a)}function de(e,n,t){let{tokenStart:u}=e,{tokenValue:o}=e,i=0,l=0;(e.getToken()&537079808)===537079808?i=1:(e.getToken()&36864)===36864&&(l=1);let c=N(e,n);if(e.assignable=1,e.getToken()===10){let d;return n&16&&(d=M2(e,n,o)),i&&(e.flags|=128),l&&(e.flags|=256),E2(e,n,d,t,[c],0,u)}return c}function _2(e,n,t,u,o,i,l,c,d){l||f(e,57),i&&f(e,51),e.flags&=-129;let g=n&16?M2(e,n,u):void 0;return E2(e,n,g,t,[o],c,d)}function O2(e,n,t,u,o,i,l,c){i||f(e,57);for(let d=0;d0&&e.tokenValue==="constructor"&&f(e,109),e.getToken()===1074790415&&f(e,108),r(e,n,1074790417)){E>0&&f(e,120);continue}h.push(on(e,n,u,g,t,i,T,0,c,E>0?C:e.tokenStart))}return A(e,l&8?n|8192:n,1074790415),g&&kt(g),e.flags=e.flags&-33|s,e.finishNode({type:"ClassBody",body:h},d)}function on(e,n,t,u,o,i,l,c,d,g){let a=c?32:0,s=null,h=e.getToken();if(h&176128||h===-2147483528)switch(s=N(e,n),h){case 36970:if(!c&&e.getToken()!==67174411&&(e.getToken()&1048576)!==1048576&&e.getToken()!==1077936155)return on(e,n,t,u,o,i,l,1,d,g);break;case 209005:if(e.getToken()!==67174411&&(e.flags&1)===0){if((e.getToken()&1073741824)===1073741824)return h2(e,n,u,s,a,l,g);a|=16|(te(e,n,8391476)?8:0)}break;case 209008:if(e.getToken()!==67174411){if((e.getToken()&1073741824)===1073741824)return h2(e,n,u,s,a,l,g);a|=256}break;case 209009:if(e.getToken()!==67174411){if((e.getToken()&1073741824)===1073741824)return h2(e,n,u,s,a,l,g);a|=512}break;case 12402:if(e.getToken()!==67174411&&(e.flags&1)===0){if((e.getToken()&1073741824)===1073741824)return h2(e,n,u,s,a,l,g);n&1&&(a|=1024)}break}else if(h===69271571)a|=2,s=c2(e,o,u,d);else if((h&134217728)===134217728)s=v(e,n);else if(h===8391476)a|=8,k(e,n);else if(e.getToken()===130)a|=8192,s=R2(e,n|4096,u,768);else if((e.getToken()&1073741824)===1073741824)a|=128;else{if(c&&h===2162700)return Rt(e,n|4096,t,u,g);h===-2147483527?(s=N(e,n),e.getToken()!==67174411&&f(e,30,S[e.getToken()&255])):f(e,30,S[e.getToken()&255])}if(a&1816&&(e.getToken()&143360||e.getToken()===-2147483528||e.getToken()===-2147483527?s=N(e,n):(e.getToken()&134217728)===134217728?s=v(e,n):e.getToken()===69271571?(a|=2,s=c2(e,n,u,0)):e.getToken()===130?(a|=8192,s=R2(e,n,u,a)):f(e,135)),(a&2)===0&&(e.tokenValue==="constructor"?((e.getToken()&1073741824)===1073741824?f(e,129):(a&32)===0&&e.getToken()===67174411&&(a&920?f(e,53,"accessor"):(n&131072)===0&&(e.flags&32?f(e,54):e.flags|=32)),a|=64):(a&8192)===0&&a&32&&e.tokenValue==="prototype"&&f(e,52)),a&1024||e.getToken()!==67174411&&(a&768)===0)return h2(e,n,u,s,a,l,g);let T=K(e,n|4096,u,a,d,e.tokenStart);return e.finishNode({type:"MethodDefinition",kind:(a&32)===0&&a&64?"constructor":a&256?"get":a&512?"set":"method",static:(a&32)>0,computed:(a&2)>0,key:s,value:T,...n&1?{decorators:l}:null},g)}function R2(e,n,t,u){let{tokenStart:o}=e;k(e,n);let{tokenValue:i}=e;return i==="constructor"&&f(e,128),n&16&&(t||f(e,4,i),u?gt(e,t,i,u):mt(e,t,i)),k(e,n),e.finishNode({type:"PrivateIdentifier",name:i},o)}function h2(e,n,t,u,o,i,l){let c=null;if(o&8&&f(e,0),e.getToken()===1077936155){k(e,n|8192);let{tokenStart:d}=e;e.getToken()===537079927&&f(e,119);let g=2883584|((o&64)===0?4325376:0);n=(n|g)^g|(o&8?262144:0)|(o&16?524288:0)|(o&64?4194304:0)|65536|16777216,c=j(e,n|4096,t,2,0,1,0,1,d),((e.getToken()&1073741824)!==1073741824||(e.getToken()&4194304)===4194304)&&(c=F(e,n|4096,t,c,0,0,d),c=I(e,n|4096,t,0,0,d,c))}return U(e,n),e.finishNode({type:o&1024?"AccessorProperty":"PropertyDefinition",key:u,value:c,static:(o&32)>0,computed:(o&2)>0,...n&1?{decorators:i}:null},l)}function ln(e,n,t,u,o,i){if(e.getToken()&143360||(n&256)===0&&e.getToken()===-2147483527)return se(e,n,t,o,i);(e.getToken()&2097152)!==2097152&&f(e,30,S[e.getToken()&255]);let l=e.getToken()===69271571?H(e,n,t,u,1,0,1,o,i):z(e,n,t,u,1,0,1,o,i);return e.destructible&16&&f(e,50),e.destructible&32&&f(e,50),l}function se(e,n,t,u,o){let i=e.getToken();n&256&&((i&537079808)===537079808?f(e,119):((i&36864)===36864||i===-2147483527)&&f(e,118)),(i&20480)===20480&&f(e,102),i===241771&&(n&262144&&f(e,32),n&512&&f(e,111)),(i&255)===73&&u&24&&f(e,100),i===209006&&(n&524288&&f(e,176),n&512&&f(e,110));let{tokenValue:l,tokenStart:c}=e;return k(e,n),t&&Y(e,n,t,l,u,o),e.finishNode({type:"Identifier",name:l},c)}function X2(e,n,t,u,o){if(u||A(e,n,8456256),e.getToken()===8390721){let d=gu(e,n,o),[g,a]=yu(e,n,t,u);return e.finishNode({type:"JSXFragment",openingFragment:d,children:g,closingFragment:a},o)}e.getToken()===8457014&&f(e,30,S[e.getToken()&255]);let i=null,l=[],c=bu(e,n,t,u,o);if(!c.selfClosing){[l,i]=hu(e,n,t,u);let d=v2(i.name);v2(c.name)!==d&&f(e,155,d)}return e.finishNode({type:"JSXElement",children:l,openingElement:c,closingElement:i},o)}function gu(e,n,t){return T2(e,n),e.finishNode({type:"JSXOpeningFragment"},t)}function mu(e,n,t,u){A(e,n,8457014);let o=cn(e,n);return e.getToken()!==8390721&&f(e,25,S[65]),t?T2(e,n):k(e,n),e.finishNode({type:"JSXClosingElement",name:o},u)}function ku(e,n,t,u){return A(e,n,8457014),e.getToken()!==8390721&&f(e,25,S[65]),t?T2(e,n):k(e,n),e.finishNode({type:"JSXClosingFragment"},u)}function hu(e,n,t,u){let o=[];for(;;){let i=Au(e,n,t,u);if(i.type==="JSXClosingElement")return[o,i];o.push(i)}}function yu(e,n,t,u){let o=[];for(;;){let i=Tu(e,n,t,u);if(i.type==="JSXClosingFragment")return[o,i];o.push(i)}}function Au(e,n,t,u){if(e.getToken()===137)return fn(e,n);if(e.getToken()===2162700)return ge(e,n,t,1,0);if(e.getToken()===8456256){let{tokenStart:o}=e;return k(e,n),e.getToken()===8457014?mu(e,n,u,o):X2(e,n,t,1,o)}f(e,0)}function Tu(e,n,t,u){if(e.getToken()===137)return fn(e,n);if(e.getToken()===2162700)return ge(e,n,t,1,0);if(e.getToken()===8456256){let{tokenStart:o}=e;return k(e,n),e.getToken()===8457014?ku(e,n,u,o):X2(e,n,t,1,o)}f(e,0)}function fn(e,n){let t=e.tokenStart;k(e,n);let u={type:"JSXText",value:e.tokenValue};return n&128&&(u.raw=e.tokenRaw),e.finishNode(u,t)}function bu(e,n,t,u,o){(e.getToken()&143360)!==143360&&(e.getToken()&4096)!==4096&&f(e,0);let i=cn(e,n),l=Cu(e,n,t),c=e.getToken()===8457014;return c&&A(e,n,8457014),e.getToken()!==8390721&&f(e,25,S[65]),u||!c?T2(e,n):k(e,n),e.finishNode({type:"JSXOpeningElement",name:i,attributes:l,selfClosing:c},o)}function cn(e,n){let{tokenStart:t}=e;$2(e);let u=H2(e,n);if(e.getToken()===21)return dn(e,n,u,t);for(;r(e,n,67108877);)$2(e),u=Du(e,n,u,t);return u}function Du(e,n,t,u){let o=H2(e,n);return e.finishNode({type:"JSXMemberExpression",object:t,property:o},u)}function Cu(e,n,t){let u=[];for(;e.getToken()!==8457014&&e.getToken()!==8390721&&e.getToken()!==1048576;)u.push(ru(e,n,t));return u}function Eu(e,n,t){let u=e.tokenStart;k(e,n),A(e,n,14);let o=L(e,n,t,1,0,e.tokenStart);return A(e,n,1074790415),e.finishNode({type:"JSXSpreadAttribute",argument:o},u)}function ru(e,n,t){let{tokenStart:u}=e;if(e.getToken()===2162700)return Eu(e,n,t);$2(e);let o=null,i=H2(e,n);if(e.getToken()===21&&(i=dn(e,n,i,u)),e.getToken()===1077936155)switch(ft(e,n)){case 134283267:o=v(e,n);break;case 8456256:o=X2(e,n,t,0,e.tokenStart);break;case 2162700:o=ge(e,n,t,0,1);break;default:f(e,154)}return e.finishNode({type:"JSXAttribute",value:o,name:i},u)}function dn(e,n,t,u){A(e,n,21);let o=H2(e,n);return e.finishNode({type:"JSXNamespacedName",namespace:t,name:o},u)}function ge(e,n,t,u,o){let{tokenStart:i}=e;k(e,n|8192);let{tokenStart:l}=e;if(e.getToken()===14)return wu(e,n,t,i);let c=null;return e.getToken()===1074790415?(o&&f(e,157),c=Bu(e,{index:e.startIndex,line:e.startLine,column:e.startColumn})):c=L(e,n,t,1,0,l),e.getToken()!==1074790415&&f(e,25,S[15]),u?T2(e,n):k(e,n),e.finishNode({type:"JSXExpressionContainer",expression:c},i)}function wu(e,n,t,u){A(e,n,14);let o=L(e,n,t,1,0,e.tokenStart);return A(e,n,1074790415),e.finishNode({type:"JSXSpreadChild",expression:o},u)}function Bu(e,n){return e.finishNode({type:"JSXEmptyExpression"},n,e.tokenStart)}function H2(e,n){let t=e.tokenStart;e.getToken()&143360||f(e,30,S[e.getToken()&255]);let{tokenValue:u}=e;return k(e,n),e.finishNode({type:"JSXIdentifier",name:u},t)}function an(e,n){return Tt(e,n,0)}function Su(e,n){let t=new SyntaxError(e+" ("+n.loc.start.line+":"+n.loc.start.column+")");return Object.assign(t,n)}var sn=Su;function Fu(e){let n=[];for(let t of e)try{return t()}catch(u){n.push(u)}throw Object.assign(new Error("All combinations failed"),{errors:n})}var gn=Fu;var Nu=(e,n,t)=>{if(!(e&&n==null)){if(n.findLast)return n.findLast(t);for(let u=n.length-1;u>=0;u--){let o=n[u];if(t(o,u,n))return o}}},mn=Nu;var Lu=(e,n,t)=>{if(!(e&&n==null))return Array.isArray(n)||typeof n=="string"?n[t<0?n.length+t:t]:n.at(t)},kn=Lu;var Iu=new Proxy(()=>{},{get:()=>Iu});function M(e){var u,o,i;let n=((u=e.range)==null?void 0:u[0])??e.start,t=(i=((o=e.declaration)==null?void 0:o.decorators)??e.decorators)==null?void 0:i[0];return t?Math.min(M(t),n):n}function O(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function qu(e){let n=new Set(e);return t=>n.has(t==null?void 0:t.type)}var m2=qu;function Pu(e,n,t){let u=e.originalText.slice(n,t);for(let o of e[Symbol.for("comments")]){let i=M(o);if(i>t)break;let l=O(o);if(l1&&n.every(t=>t.trimStart()[0]==="*")}var he=new WeakMap;function Mu(e){return he.has(e)||he.set(e,Vu(e)),he.get(e)}var ye=Mu;function Uu(e){if(e.length<2)return;let n;for(let t=e.length-1;t>=0;t--){let u=e[t];if(n&&O(u)===M(n)&&ye(u)&&ye(n)&&(e.splice(t+1,1),u.value+="*//*"+n.value,u.range=[M(u),O(n)]),!me(u)&&!f2(u))throw new TypeError(`Unknown comment type: "${u.type}".`);n=u}}var An=Uu;var r2=null;function w2(e){if(r2!==null&&typeof r2.property){let n=r2;return r2=w2.prototype=null,n}return r2=w2.prototype=e??Object.create(null),new w2}var Ju=10;for(let e=0;e<=Ju;e++)w2();function Ae(e){return w2(e)}function _u(e,n="type"){Ae(e);function t(u){let o=u[n],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:u});return i}return t}var Tn=_u;var bn={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","typeParameters","typeArguments","arguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","typeParameters","typeArguments","arguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["decorators","key","value"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","typeParameters","typeArguments","arguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],ImportAttribute:["key","value"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["nameType","typeAnnotation","key","constraint"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","body"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:["body"],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGRoot:["node"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var ju=Tn(bn),Dn=ju;function Te(e,n){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let u=0;u{switch(d.type){case"ParenthesizedExpression":{let{expression:g}=d,a=M(d);if(g.type==="TypeCastExpression")return g.range=[a,O(d)],g;let s=!1;if(!i){if(!l){l=[];for(let T of o)yn(T)&&l.push(O(T))}let h=mn(!1,l,T=>T<=a);s=h&&u.slice(h,a).trim().length===0}if(!s)return g.extra={...g.extra,parenthesized:!0},g;break}case"LogicalExpression":if(rn(d))return be(d);break;case"TemplateLiteral":if(d.expressions.length!==d.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(t==="flow"||t==="hermes"||t==="espree"||t==="typescript"||i){let g=M(d)+1,a=O(d)-(d.tail?1:2);d.range=[g,a]}break;case"VariableDeclaration":{let g=kn(!1,d.declarations,-1);g!=null&&g.init&&u[O(g)]!==";"&&(d.range=[M(d),O(g)]);break}case"TSParenthesizedType":return d.typeAnnotation;case"TSTypeParameter":En(d);break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(d.types.length===1)return d.types[0];break;case"TSMappedType":if(!d.constraint&&!d.key){let{name:g,constraint:a}=En(d.typeParameter);d.constraint=a,d.key=g,delete d.typeParameter}break;case"TSEnumDeclaration":if(!d.body){let g=O(d.id),{members:a}=d,s=hn({originalText:u,[Symbol.for("comments")]:o},g,a[0]?M(a[0]):O(d)),h=g+s.indexOf("{");d.body={type:"TSEnumBody",members:a,range:[h,O(d)]},delete d.members}break;case"ImportExpression":t==="hermes"&&d.attributes&&!d.options&&(d.options=d.attributes);break}});let c=e.type==="File"?e.program:e;return c.interpreter&&(o.unshift(c.interpreter),delete c.interpreter),i&&e.hashbang&&(o.unshift(e.hashbang),delete e.hashbang),e.type==="Program"&&(e.range=[0,u.length]),e}function En(e){if(e.type==="TSTypeParameter"&&typeof e.name=="string"){let n=M(e);e.name={type:"Identifier",name:e.name,range:[n,n+e.name.length]}}return e}function rn(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function be(e){return rn(e)?be({type:"LogicalExpression",operator:e.operator,left:be({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[M(e.left),O(e.right.left)]}),right:e.right.right,range:[M(e),O(e)]}):e}var wn=Xu;var Hu=/\*\/$/,zu=/^\/\*\*?/,Ku=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,$u=/(^|\s+)\/\/([^\n\r]*)/g,Bn=/^(\r?\n)+/,Wu=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Sn=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Yu=/(\r?\n|^) *\* ?/g,Qu=[];function Fn(e){let n=e.match(Ku);return n?n[0].trimStart():""}function Nn(e){let n=` -`;e=G(!1,e.replace(zu,"").replace(Hu,""),Yu,"$1");let t="";for(;t!==e;)t=e,e=G(!1,e,Wu,`${n}$1 $2${n}`);e=e.replace(Bn,"").trimEnd();let u=Object.create(null),o=G(!1,e,Sn,"").replace(Bn,"").trimEnd(),i;for(;i=Sn.exec(e);){let l=G(!1,i[2],$u,"");if(typeof u[i[1]]=="string"||Array.isArray(u[i[1]])){let c=u[i[1]];u[i[1]]=[...Qu,...Array.isArray(c)?c:[c],l]}else u[i[1]]=l}return{comments:o,pragmas:u}}var Ln=["noformat","noprettier"],In=["format","prettier"];function Zu(e){if(!e.startsWith("#!"))return"";let n=e.indexOf(` -`);return n===-1?e:e.slice(0,n)}var qn=Zu;function Pn(e){let n=qn(e);n&&(e=e.slice(n.length+1));let t=Fn(e),{pragmas:u,comments:o}=Nn(t);return{shebang:n,text:e,pragmas:u,comments:o}}function vn(e){let{pragmas:n}=Pn(e);return In.some(t=>Object.prototype.hasOwnProperty.call(n,t))}function On(e){let{pragmas:n}=Pn(e);return Ln.some(t=>Object.prototype.hasOwnProperty.call(n,t))}function Gu(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:vn,hasIgnorePragma:On,locStart:M,locEnd:O,...e}}var Rn=Gu;var z2="module",Vn="script",Mn=[z2,Vn];function Un(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return z2;if(/\.(?:cjs|cts)$/iu.test(e))return Vn}}var xu={next:!0,ranges:!0,webcompat:!0,loc:!1,raw:!0,directives:!0,globalReturn:!0,impliedStrict:!1,preserveParens:!0,lexical:!1,jsx:!0,uniqueKeyInPattern:!1};function pu(e,n){let t=[],u=an(e,{...xu,module:n===z2,onComment:t});return u.comments=t,u}function e1(e){let{description:n,loc:t}=e;return t?sn(n,{loc:{start:{line:t.start.line,column:t.start.column+1},end:{line:t.end.line,column:t.end.column+1}},cause:e}):e}function n1(e,n){let t=Un(n==null?void 0:n.filepath),u=(t?[t]:Mn).map(i=>()=>pu(e,i)),o;try{o=gn(u)}catch({errors:[i]}){throw e1(i)}return wn(o,{parser:"meriyah",text:e})}var t1=Rn(n1);return Hn(u1);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/meriyah.mjs b/node_modules/prettier/plugins/meriyah.mjs deleted file mode 100644 index 438aa8e..0000000 --- a/node_modules/prettier/plugins/meriyah.mjs +++ /dev/null @@ -1,4 +0,0 @@ -var Jn=Object.defineProperty;var Ce=(e,n)=>{for(var t in n)Jn(e,t,{get:n[t],enumerable:!0})};var De={};Ce(De,{parsers:()=>be});var be={};Ce(be,{meriyah:()=>xu});var _n=(e,n,t,u)=>{if(!(e&&n==null))return n.replaceAll?n.replaceAll(t,u):t.global?n.replace(t,u):n.split(t).join(u)},G=_n;var jn={0:"Unexpected token",30:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"\\8 and \\9 are not allowed in template strings",4:"Private identifier #%0 is not defined",5:"Illegal Unicode escape sequence",6:"Invalid code point %0",7:"Invalid hexadecimal escape sequence",9:"Octal literals are not allowed in strict mode",8:"Decimal integer literals with a leading zero are forbidden in strict mode",10:"Expected number in radix %0",151:"Invalid left-hand side assignment to a destructible right-hand side",11:"Non-number found after exponent indicator",12:"Invalid BigIntLiteral",13:"No identifiers allowed directly after numeric literal",14:"Escapes \\8 or \\9 are not syntactically valid escapes",15:"Escapes \\8 or \\9 are not allowed in strict mode",16:"Unterminated string literal",17:"Unterminated template literal",18:"Multiline comment was not closed properly",19:"The identifier contained dynamic unicode escape that was not closed",20:"Illegal character '%0'",21:"Missing hexadecimal digits",22:"Invalid implicit octal",23:"Invalid line break in string literal",24:"Only unicode escapes are legal in identifier names",25:"Expected '%0'",26:"Invalid left-hand side in assignment",27:"Invalid left-hand side in async arrow",28:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',29:"Member access on super must be in a method",31:"Await expression not allowed in formal parameter",32:"Yield expression not allowed in formal parameter",95:"Unexpected token: 'escaped keyword'",33:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",123:"Async functions can only be declared at the top level or inside a block",34:"Unterminated regular expression",35:"Unexpected regular expression flag",36:"Duplicate regular expression flag '%0'",37:"%0 functions must have exactly %1 argument%2",38:"Setter function argument must not be a rest parameter",39:"%0 declaration must have a name in this context",40:"Function name may not contain any reserved words or be eval or arguments in strict mode",41:"The rest operator is missing an argument",42:"A getter cannot be a generator",43:"A setter cannot be a generator",44:"A computed property name must be followed by a colon or paren",134:"Object literal keys that are strings or numbers must be a method or have a colon",46:"Found `* async x(){}` but this should be `async * x(){}`",45:"Getters and setters can not be generators",47:"'%0' can not be generator method",48:"No line break is allowed after '=>'",49:"The left-hand side of the arrow can only be destructed through assignment",50:"The binding declaration is not destructible",51:"Async arrow can not be followed by new expression",52:"Classes may not have a static property named 'prototype'",53:"Class constructor may not be a %0",54:"Duplicate constructor method in class",55:"Invalid increment/decrement operand",56:"Invalid use of `new` keyword on an increment/decrement expression",57:"`=>` is an invalid assignment target",58:"Rest element may not have a trailing comma",59:"Missing initializer in %0 declaration",60:"'for-%0' loop head declarations can not have an initializer",61:"Invalid left-hand side in for-%0 loop: Must have a single binding",62:"Invalid shorthand property initializer",63:"Property name __proto__ appears more than once in object literal",64:"Let is disallowed as a lexically bound name",65:"Invalid use of '%0' inside new expression",66:"Illegal 'use strict' directive in function with non-simple parameter list",67:'Identifier "let" disallowed as left-hand side expression in strict mode',68:"Illegal continue statement",69:"Illegal break statement",70:"Cannot have `let[...]` as a var name in strict mode",71:"Invalid destructuring assignment target",72:"Rest parameter may not have a default initializer",73:"The rest argument must the be last parameter",74:"Invalid rest argument",76:"In strict mode code, functions can only be declared at top level or inside a block",77:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",78:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",79:"Class declaration can't appear in single-statement context",80:"Invalid left-hand side in for-%0",81:"Invalid assignment in for-%0",82:"for await (... of ...) is only valid in async functions and async generators",83:"The first token after the template expression should be a continuation of the template",85:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",84:"`let \n [` is a restricted production at the start of a statement",86:"Catch clause requires exactly one parameter, not more (and no trailing comma)",87:"Catch clause parameter does not support default values",88:"Missing catch or finally after try",89:"More than one default clause in switch statement",90:"Illegal newline after throw",91:"Strict mode code may not include a with statement",92:"Illegal return statement",93:"The left hand side of the for-header binding declaration is not destructible",94:"new.target only allowed within functions or static blocks",96:"'#' not followed by identifier",102:"Invalid keyword",101:"Can not use 'let' as a class name",100:"'A lexical declaration can't define a 'let' binding",99:"Can not use `let` as variable name in strict mode",97:"'%0' may not be used as an identifier in this context",98:"Await is only valid in async functions",103:"The %0 keyword can only be used with the module goal",104:"Unicode codepoint must not be greater than 0x10FFFF",105:"%0 source must be string",106:"Only a identifier or string can be used to indicate alias",107:"Only '*' or '{...}' can be imported after default",108:"Trailing decorator may be followed by method",109:"Decorators can't be used with a constructor",110:"Can not use `await` as identifier in module or async func",111:"Can not use `await` as identifier in module",112:"HTML comments are only allowed with web compatibility (Annex B)",113:"The identifier 'let' must not be in expression position in strict mode",114:"Cannot assign to `eval` and `arguments` in strict mode",115:"The left-hand side of a for-of loop may not start with 'let'",116:"Block body arrows can not be immediately invoked without a group",117:"Block body arrows can not be immediately accessed without a group",118:"Unexpected strict mode reserved word",119:"Unexpected eval or arguments in strict mode",120:"Decorators must not be followed by a semicolon",121:"Calling delete on expression not allowed in strict mode",122:"Pattern can not have a tail",124:"Can not have a `yield` expression on the left side of a ternary",125:"An arrow function can not have a postfix update operator",126:"Invalid object literal key character after generator star",127:"Private fields can not be deleted",129:"Classes may not have a field called constructor",128:"Classes may not have a private element named constructor",130:"A class field initializer or static block may not contain arguments",131:"Generators can only be declared at the top level or inside a block",132:"Async methods are a restricted production and cannot have a newline following it",133:"Unexpected character after object literal property name",135:"Invalid key token",136:"Label '%0' has already been declared",137:"continue statement must be nested within an iteration statement",138:"Undefined label '%0'",139:"Trailing comma is disallowed inside import(...) arguments",140:"Invalid binding in JSON import",141:"import() requires exactly one argument",142:"Cannot use new with import(...)",143:"... is not allowed in import()",144:"Expected '=>'",145:"Duplicate binding '%0'",146:"Duplicate private identifier #%0",147:"Cannot export a duplicate name '%0'",150:"Duplicate %0 for-binding",148:"Exported binding '%0' needs to refer to a top-level declared variable",149:"Unexpected private field",153:"Numeric separators are not allowed at the end of numeric literals",152:"Only one underscore is allowed as numeric separator",154:"JSX value should be either an expression or a quoted JSX text",155:"Expected corresponding JSX closing tag for %0",156:"Adjacent JSX elements must be wrapped in an enclosing tag",157:"JSX attributes must only be assigned a non-empty 'expression'",158:"'%0' has already been declared",159:"'%0' shadowed a catch clause binding",160:"Dot property must be an identifier",161:"Encountered invalid input after spread/rest argument",162:"Catch without try",163:"Finally without try",164:"Expected corresponding closing tag for JSX fragment",165:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",166:"Invalid tagged template on optional chain",167:"Invalid optional chain from super property",168:"Invalid optional chain from new expression",169:'Cannot use "import.meta" outside a module',170:"Leading decorators must be attached to a class declaration",171:"An export name cannot include a lone surrogate, found %0",172:"A string literal cannot be used as an exported binding without `from`",173:"Private fields can't be accessed on super",174:"The only valid meta property for import is 'import.meta'",175:"'import.meta' must not contain escaped characters",176:'cannot use "await" as identifier inside an async function',177:'cannot use "await" in static blocks'},i2=class extends SyntaxError{start;end;range;loc;description;constructor(n,t,u,...o){let i=jn[u].replace(/%(\d+)/g,(c,d)=>o[d]),l="["+n.line+":"+n.column+"-"+t.line+":"+t.column+"]: "+i;super(l),this.start=n.index,this.end=t.index,this.range=[n.index,t.index],this.loc={start:{line:n.line,column:n.column},end:{line:t.line,column:t.column}},this.description=i}};function f(e,n,...t){throw new i2(e.tokenStart,e.currentLocation,n,...t)}function V2(e){throw new i2(e.start,e.end,e.type,...e.params)}function J(e,n,t,...u){throw new i2(e,n,t,...u)}function a2(e,n,t){throw new i2(e,n,t)}var Le=((e,n)=>{let t=new Uint32Array(104448),u=0,o=0;for(;u<3822;){let i=e[u++];if(i<0)o-=i;else{let l=e[u++];i&2&&(l=n[l]),i&1?t.fill(l,o,o+=e[u++]):t[o++]=l}}return t})([-1,2,26,2,27,2,5,-1,0,77595648,3,44,2,3,0,14,2,63,2,64,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,41,3,0,4,0,4294966523,3,0,4,2,16,2,65,2,0,0,4294836735,0,3221225471,0,4294901942,2,66,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,18,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,60,2,7,2,6,0,4286611199,3,0,2,2,1,3,0,3,0,4294901711,2,40,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,2,203,2,3,0,4093640191,0,660618719,0,65487,0,4294828015,0,4092591615,0,1616920031,0,982991,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,71,0,4284449919,0,851904,2,4,2,12,0,67076095,-1,2,72,0,1073741743,0,4093607775,-1,0,50331649,0,3265266687,2,33,0,4294844415,0,4278190047,2,20,2,137,-1,3,0,2,2,23,2,0,2,10,2,0,2,15,2,22,3,0,10,2,74,2,0,2,75,2,76,2,77,2,0,2,78,2,0,2,11,0,261632,2,25,3,0,2,2,13,2,4,3,0,18,2,79,2,5,3,0,2,2,80,0,2151677951,2,29,2,9,0,909311,3,0,2,0,814743551,2,49,0,67090432,3,0,2,2,42,2,0,2,6,2,0,2,30,2,8,0,268374015,2,110,2,51,2,0,2,81,0,134153215,-1,2,7,2,0,2,8,0,2684354559,0,67044351,0,3221160064,2,17,-1,3,0,2,2,53,0,1046528,3,0,3,2,9,2,0,2,54,0,4294960127,2,10,2,6,2,11,0,4294377472,2,12,3,0,16,2,13,2,0,2,82,2,10,2,0,2,83,2,84,2,85,2,210,2,55,0,1048577,2,86,2,14,-1,2,14,0,131042,2,87,2,88,2,89,2,0,2,34,-83,3,0,7,0,1046559,2,0,2,15,2,0,0,2147516671,2,21,3,90,2,2,0,-16,2,91,0,524222462,2,4,2,0,0,4269801471,2,4,3,0,2,2,28,2,16,3,0,2,2,17,2,0,-1,2,18,-16,3,0,206,-2,3,0,692,2,73,-1,2,18,2,10,3,0,8,2,93,2,133,2,0,0,3220242431,3,0,3,2,19,2,94,2,95,3,0,2,2,96,2,0,2,97,2,46,2,0,0,4351,2,0,2,9,3,0,2,0,67043391,0,3909091327,2,0,2,24,2,9,2,20,3,0,2,0,67076097,2,8,2,0,2,21,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,101,2,102,2,22,2,23,3,0,3,0,67057663,3,0,349,2,103,2,104,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,3774349439,2,105,2,106,3,0,2,2,19,2,107,3,0,10,2,10,2,18,2,0,2,47,2,0,2,31,2,108,2,25,0,1638399,2,183,2,109,3,0,3,2,20,2,26,2,27,2,5,2,28,2,0,2,8,2,111,-1,2,112,2,113,2,114,-1,3,0,3,2,12,-2,2,0,2,29,-3,2,163,-4,2,20,2,0,2,36,0,1,2,0,2,67,2,6,2,12,2,10,2,0,2,115,-1,3,0,4,2,10,2,23,2,116,2,7,2,0,2,117,2,0,2,118,2,119,2,120,2,0,2,9,3,0,9,2,21,2,30,2,31,2,121,2,122,-2,2,123,2,124,2,30,2,21,2,8,-2,2,125,2,30,2,32,-2,2,0,2,39,-2,0,4277137519,0,2269118463,-1,3,20,2,-1,2,33,2,38,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,48,2,0,0,4294950463,2,37,-7,2,0,0,203775,2,57,2,167,2,20,2,43,2,36,2,18,2,37,2,18,2,126,2,21,3,0,2,2,38,0,2151677888,2,0,2,12,0,4294901764,2,144,2,0,2,58,2,56,0,5242879,3,0,2,0,402644511,-1,2,128,2,39,0,3,-1,2,129,2,130,2,0,0,67045375,2,40,0,4226678271,0,3766565279,0,2039759,2,132,2,41,0,1046437,0,6,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,42,2,23,2,50,2,11,2,61,2,38,-5,2,0,2,12,-3,3,0,2,0,2147484671,2,134,0,4190109695,2,52,-2,2,135,0,4244635647,0,27,2,0,2,8,2,43,2,0,2,68,2,18,2,0,2,42,-6,2,0,2,45,2,59,2,44,2,45,2,46,2,47,0,8388351,-2,2,136,0,3028287487,2,48,2,138,0,33259519,2,49,-9,2,21,0,4294836223,0,3355443199,0,134152199,-2,2,69,-2,3,0,28,2,32,-3,3,0,3,2,17,3,0,6,2,50,-81,2,18,3,0,2,2,36,3,0,33,2,25,2,30,3,0,124,2,12,3,0,18,2,38,-213,2,0,2,32,-54,3,0,17,2,42,2,8,2,23,2,0,2,8,2,23,2,51,2,0,2,21,2,52,2,139,2,25,-13,2,0,2,53,-6,3,0,2,-4,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,196635,3,0,191,2,54,3,0,38,2,30,2,55,2,34,-278,2,140,3,0,9,2,141,2,142,2,56,3,0,11,2,7,-72,3,0,3,2,143,0,1677656575,-130,2,26,-16,2,0,2,24,2,38,-16,0,4161266656,0,4071,2,205,-4,2,57,-13,3,0,2,2,58,2,0,2,145,2,146,2,62,2,0,2,147,2,148,2,149,3,0,10,2,150,2,151,2,22,3,58,2,3,152,2,3,59,2,0,4294954999,2,0,-16,2,0,2,92,2,0,0,2105343,0,4160749584,2,177,-34,2,8,2,154,-6,0,4194303871,0,4294903771,2,0,2,60,2,100,-3,2,0,0,1073684479,0,17407,-9,2,18,2,17,2,0,2,32,-14,2,18,2,32,-6,2,18,2,12,-15,2,155,3,0,6,0,8323103,-1,3,0,2,2,61,-37,2,62,2,156,2,157,2,158,2,159,2,160,-105,2,26,-32,3,0,1335,-1,3,0,129,2,32,3,0,6,2,10,3,0,180,2,161,3,0,233,2,162,3,0,18,2,10,-77,3,0,16,2,10,-47,3,0,154,2,6,3,0,130,2,25,-22250,3,0,7,2,25,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,63,2,64,-3,0,3168731136,0,4294956864,2,1,2,0,2,41,3,0,4,0,4294966275,3,0,4,2,16,2,65,2,0,2,34,-1,2,18,2,66,-1,2,0,0,2047,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,25,2,67,3,0,2,0,131135,2,98,0,70256639,0,71303167,0,272,2,42,2,6,0,32511,2,0,2,49,-1,2,99,2,68,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,70,2,69,0,33554435,2,131,2,70,2,164,0,131075,0,3594373096,0,67094296,2,69,-1,0,4294828e3,0,603979263,0,654311424,0,3,0,4294828001,0,602930687,2,171,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,71,2,38,-1,2,4,0,917503,2,38,-1,2,72,0,537788335,0,4026531935,-1,0,1,-1,2,33,2,73,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,15,2,22,3,0,10,2,74,2,0,2,75,2,76,2,77,2,0,2,78,2,0,2,12,-1,2,25,3,0,2,2,13,2,4,3,0,18,2,79,2,5,3,0,2,2,80,0,2147745791,3,19,2,0,122879,2,0,2,9,0,276824064,-2,3,0,2,2,42,2,0,0,4294903295,2,0,2,30,2,8,-1,2,18,2,51,2,0,2,81,2,49,-1,2,21,2,0,2,29,-2,0,128,-2,2,28,2,9,0,8160,-1,2,127,0,4227907585,2,0,2,37,2,0,2,50,2,184,2,10,2,6,2,11,-1,0,74440192,3,0,6,-2,3,0,8,2,13,2,0,2,82,2,10,2,0,2,83,2,84,2,85,-3,2,86,2,14,-3,2,87,2,88,2,89,2,0,2,34,-83,3,0,7,0,817183,2,0,2,15,2,0,0,33023,2,21,3,90,2,-17,2,91,0,524157950,2,4,2,0,2,92,2,4,2,0,2,22,2,28,2,16,3,0,2,2,17,2,0,-1,2,18,-16,3,0,206,-2,3,0,692,2,73,-1,2,18,2,10,3,0,8,2,93,0,3072,2,0,0,2147516415,2,10,3,0,2,2,25,2,94,2,95,3,0,2,2,96,2,0,2,97,2,46,0,4294965179,0,7,2,0,2,9,2,95,2,9,-1,0,1761345536,2,98,0,4294901823,2,38,2,20,2,99,2,35,2,100,0,2080440287,2,0,2,34,2,153,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,101,2,102,2,22,2,23,3,0,3,0,7,3,0,349,2,103,2,104,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,2700607615,2,105,2,106,3,0,2,2,19,2,107,3,0,10,2,10,2,18,2,0,2,47,2,0,2,31,2,108,-3,2,109,3,0,3,2,20,-1,3,5,2,2,110,2,0,2,8,2,111,-1,2,112,2,113,2,114,-1,3,0,3,2,12,-2,2,0,2,29,-8,2,20,2,0,2,36,-1,2,0,2,67,2,6,2,30,2,10,2,0,2,115,-1,3,0,4,2,10,2,18,2,116,2,7,2,0,2,117,2,0,2,118,2,119,2,120,2,0,2,9,3,0,9,2,21,2,30,2,31,2,121,2,122,-2,2,123,2,124,2,30,2,21,2,8,-2,2,125,2,30,2,32,-2,2,0,2,39,-2,0,4277075969,2,30,-1,3,20,2,-1,2,33,2,126,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,50,2,98,0,4294934591,2,37,-7,2,0,0,197631,2,57,-1,2,20,2,43,2,37,2,18,0,3,2,18,2,126,2,21,2,127,2,54,-1,0,2490368,2,127,2,25,2,18,2,34,2,127,2,38,0,4294901904,0,4718591,2,127,2,35,0,335544350,-1,2,128,0,2147487743,0,1,-1,2,129,2,130,2,8,-1,2,131,2,70,0,3758161920,0,3,2,132,0,12582911,0,655360,-1,2,0,2,29,0,2147485568,0,3,2,0,2,25,0,176,-5,2,0,2,17,2,192,-1,2,0,2,25,2,209,-1,2,0,0,16779263,-2,2,12,-1,2,38,-5,2,0,2,133,-3,3,0,2,2,55,2,134,0,2147549183,0,2,-2,2,135,2,36,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,2,18,2,0,2,42,-6,2,0,0,1,2,59,2,17,0,1,2,46,2,25,-3,2,136,2,36,2,137,2,138,0,16778239,-10,2,35,0,4294836212,2,9,-3,2,69,-2,3,0,28,2,32,-3,3,0,3,2,17,3,0,6,2,50,-81,2,18,3,0,2,2,36,3,0,33,2,25,0,126,3,0,124,2,12,3,0,18,2,38,-213,2,10,-55,3,0,17,2,42,2,8,2,18,2,0,2,8,2,18,2,60,2,0,2,25,2,50,2,139,2,25,-13,2,0,2,73,-6,3,0,2,-4,3,0,2,0,67583,-1,2,107,-2,0,11,3,0,191,2,54,3,0,38,2,30,2,55,2,34,-278,2,140,3,0,9,2,141,2,142,2,56,3,0,11,2,7,-72,3,0,3,2,143,2,144,-187,3,0,2,2,58,2,0,2,145,2,146,2,62,2,0,2,147,2,148,2,149,3,0,10,2,150,2,151,2,22,3,58,2,3,152,2,3,59,2,2,153,-57,2,8,2,154,-7,2,18,2,0,2,60,-4,2,0,0,1065361407,0,16384,-9,2,18,2,60,2,0,2,133,-14,2,18,2,133,-6,2,18,0,81919,-15,2,155,3,0,6,2,126,-1,3,0,2,0,2063,-37,2,62,2,156,2,157,2,158,2,159,2,160,-138,3,0,1335,-1,3,0,129,2,32,3,0,6,2,10,3,0,180,2,161,3,0,233,2,162,3,0,18,2,10,-77,3,0,16,2,10,-47,3,0,154,2,6,3,0,130,2,25,-28386,2,0,0,1,-1,2,55,2,0,0,8193,-21,2,201,0,10255,0,4,-11,2,69,2,182,-1,0,71680,-1,2,174,0,4292900864,0,268435519,-5,2,163,-1,2,173,-1,0,6144,-2,2,46,-1,2,168,-1,0,2147532800,2,164,2,170,0,8355840,-2,0,4,-4,2,198,0,205128192,0,1333757536,0,2147483696,0,423953,0,747766272,0,2717763192,0,4286578751,0,278545,2,165,0,4294886464,0,33292336,0,417809,2,165,0,1327482464,0,4278190128,0,700594195,0,1006647527,0,4286497336,0,4160749631,2,166,0,201327104,0,3634348576,0,8323120,2,166,0,202375680,0,2678047264,0,4293984304,2,166,-1,0,983584,0,48,0,58720273,0,3489923072,0,10517376,0,4293066815,0,1,2,213,2,167,2,0,0,2089,0,3221225552,0,201359520,2,0,-2,0,256,0,122880,0,16777216,2,163,0,4160757760,2,0,-6,2,179,-11,0,3263218176,-1,0,49664,0,2160197632,0,8388802,-1,0,12713984,-1,2,168,2,186,2,187,-2,2,175,-20,0,3758096385,-2,2,169,2,195,2,94,2,180,0,4294057984,-2,2,176,2,172,0,4227874816,-2,2,169,-1,2,170,-1,2,181,2,55,0,4026593280,0,14,0,4292919296,-1,2,178,0,939588608,-1,0,805306368,-1,2,55,2,171,2,172,2,173,2,211,2,0,-2,0,8192,-4,0,267386880,-1,0,117440512,0,7168,-1,2,170,2,168,2,174,2,188,-16,2,175,-1,0,1426112704,2,176,-1,2,196,0,271581216,0,2149777408,2,25,2,174,2,55,0,851967,2,189,-1,2,177,2,190,-4,2,178,-20,2,98,2,208,-56,0,3145728,2,191,-10,0,32505856,-1,2,179,-1,0,2147385088,2,94,1,2155905152,2,-3,2,176,2,0,0,67108864,-2,2,180,-6,2,181,2,25,0,1,-1,0,1,-1,2,182,-3,2,126,2,69,-2,2,100,-2,0,32704,2,55,-915,2,183,-1,2,207,-10,2,194,-5,2,185,-6,0,3759456256,2,19,-1,2,184,-1,2,185,-2,0,4227874752,-3,0,2146435072,2,186,-2,0,1006649344,2,55,-1,2,94,0,201375744,-3,0,134217720,2,94,0,4286677377,0,32896,-1,2,178,-3,0,4227907584,-349,0,65520,0,1920,2,167,3,0,264,-11,2,173,-2,2,187,2,0,0,520617856,0,2692743168,0,36,-3,0,524280,-13,2,193,-1,0,4294934272,2,25,2,187,-1,2,215,0,2158720,-3,2,186,0,1,-4,2,55,0,3808625411,0,3489628288,0,4096,0,1207959680,0,3221274624,2,0,-3,2,188,0,120,0,7340032,-2,2,189,2,4,2,25,2,176,3,0,4,2,186,-1,2,190,2,167,-1,0,8176,2,170,2,188,0,1073741824,-1,0,4290773232,2,0,-4,2,176,2,197,0,15728640,2,167,-1,2,174,-1,0,134250480,0,4720640,0,3825467396,-1,2,180,-9,2,94,2,181,0,4294967040,2,137,0,4160880640,3,0,2,0,704,0,1849688064,2,191,-1,2,55,0,4294901887,2,0,0,130547712,0,1879048192,2,212,3,0,2,-1,2,192,2,193,-1,0,17829776,0,2025848832,0,4261477888,-2,2,0,-1,0,4286580608,-1,0,29360128,2,200,0,16252928,0,3791388672,2,130,3,0,2,-2,2,206,2,0,-1,2,107,-1,0,66584576,-1,2,199,-1,0,448,0,4294918080,3,0,6,2,55,-1,0,4294755328,0,4294967267,2,7,-1,2,174,2,187,2,25,2,98,2,25,2,194,2,94,-2,0,245760,2,195,-1,2,163,2,202,0,4227923456,-1,2,196,2,174,2,94,-3,0,4292870145,0,262144,-1,2,95,2,0,0,1073758848,2,197,-1,0,4227921920,2,198,0,68289024,0,528402016,0,4292927536,0,46080,2,191,0,4265609306,0,4294967289,-2,0,268435456,2,95,-2,2,199,3,0,5,-1,2,200,2,176,2,0,-2,0,4227923936,2,67,-1,2,187,2,197,2,99,2,168,2,178,2,204,3,0,5,-1,2,167,3,0,3,-2,0,2146959360,0,9440640,0,104857600,0,4227923840,3,0,2,0,768,2,201,2,28,-2,2,174,-2,2,202,-1,2,169,2,98,3,0,5,-1,0,4227923964,0,512,0,8388608,2,203,2,183,2,193,0,4286578944,3,0,2,0,1152,0,1266679808,2,199,0,576,0,4261707776,2,98,3,0,9,2,169,0,131072,0,939524096,2,188,3,0,2,2,16,-1,0,2147221504,-28,2,187,3,0,3,-3,0,4292902912,-6,2,99,3,0,81,2,25,-2,2,107,-33,2,18,2,181,-124,2,188,-18,2,204,3,0,213,-1,2,187,3,0,54,-17,2,169,2,55,2,205,-1,2,55,2,197,0,4290822144,-2,0,67174336,0,520093700,2,18,3,0,13,-1,2,187,3,0,6,-2,2,188,3,0,3,-2,0,30720,-1,0,32512,3,0,2,0,4294770656,-191,2,185,-38,2,181,2,8,2,206,3,0,278,0,2417033215,-9,0,4294705144,0,4292411391,0,65295,-11,2,167,3,0,72,-3,0,3758159872,0,201391616,3,0,123,-7,2,187,-13,2,180,3,0,2,-1,2,173,2,207,-3,2,99,2,0,-7,2,181,-1,0,384,-1,0,133693440,-3,2,208,-2,2,110,3,0,3,3,180,2,-2,2,94,2,169,3,0,4,-2,2,196,-1,2,163,0,335552923,2,209,-1,0,538974272,0,2214592512,0,132e3,-10,0,192,-8,2,210,-21,0,134213632,2,162,3,0,34,2,55,0,4294965279,3,0,6,0,100663424,0,63524,-1,2,214,2,152,3,0,3,-1,0,3221282816,0,4294917120,3,0,9,2,25,2,211,-1,2,212,3,0,14,2,25,2,187,3,0,6,2,25,2,213,3,0,15,0,2147520640,-6,0,4286578784,2,0,-2,0,1006694400,3,0,24,2,36,-1,0,4292870144,3,0,2,0,1,2,176,3,0,6,2,209,0,4110942569,0,1432950139,0,2701658217,0,4026532864,0,4026532881,2,0,2,47,3,0,8,-1,2,178,-2,2,180,0,98304,0,65537,2,181,-5,2,214,2,0,2,37,2,202,2,167,0,4294770176,2,110,3,0,4,-30,2,192,0,3758153728,-3,0,125829120,-2,2,187,0,4294897664,2,178,-1,2,199,-1,2,174,0,4026580992,2,95,2,0,-10,2,180,0,3758145536,0,31744,-1,0,1610628992,0,4261477376,-4,2,215,-2,2,187,3,0,32,-1335,2,0,-129,2,187,-6,2,176,-180,0,65532,-233,2,177,-18,2,176,3,0,77,-16,2,176,3,0,47,-154,2,170,-130,2,18,3,0,22250,-7,2,18,3,0,6128],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,4294903807,268435455,2147483647,1048575,1073741823,3892314111,134217727,1061158911,536805376,4294910143,4294901759,32767,4294901760,262143,536870911,8388607,4160749567,4294902783,4294918143,65535,67043328,2281701374,4294967264,2097151,4194303,255,67108863,4294967039,511,524287,131071,63,127,3238002687,4294549487,4290772991,33554431,4294901888,4286578687,67043329,4294705152,4294770687,67043583,1023,15,2047999,67043343,67051519,16777215,2147483648,4294902e3,28,4292870143,4294966783,16383,67047423,4294967279,262083,20511,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,535511039,4294966272,4294967280,32768,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,4294967232,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4160684047,4290246655,469499899,4294967231,134086655,4294966591,2445279231,3670015,31,4294967288,4294705151,3221208447,4294902271,4294549472,4294921215,4095,4285526655,4294966527,4294966143,64,4294966719,3774873592,1877934080,262151,2555904,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4294934527,4087,2016,2147446655,184024726,2862017156,1593309078,268434431,268434414,4294901763,4294901761,536870912,2952790016,202506752,139264,4026531840,402653184,4261412864,63488,1610612736,4227922944,49152,65280,3233808384,3221225472,65534,61440,57152,4293918720,4290772992,25165824,57344,4227915776,4278190080,3758096384,4227858432,4160749568,3758129152,4294836224,4194304,251658240,196608,4294963200,2143289344,2097152,64512,417808,4227923712,12582912,50331648,65528,65472,4294967168,15360,4294966784,65408,4294965248,16,12288,4294934528,2080374784,2013265920,4294950912,524288]),Xn=e=>(Le[(e>>>5)+0]>>>e&31&1)!==0,Ie=e=>(Le[(e>>>5)+34816]>>>e&31&1)!==0;function m(e){return e.column++,e.currentChar=e.source.charCodeAt(++e.index)}function G2(e){let n=e.currentChar;if((n&64512)!==55296)return 0;let t=e.source.charCodeAt(e.index+1);return(t&64512)!==56320?0:65536+((n&1023)<<10)+(t&1023)}function x2(e,n){e.currentChar=e.source.charCodeAt(++e.index),e.flags|=1,(n&4)===0&&(e.column=0,e.line++)}function o2(e){e.flags|=1,e.currentChar=e.source.charCodeAt(++e.index),e.column=0,e.line++}function Hn(e){return e===160||e===65279||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===8201||e===65519}function _(e){return e<65?e-48:e-65+10&15}function zn(e){switch(e){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 131:return"TemplateLiteral";default:return(e&143360)===143360?"Identifier":(e&4096)===4096?"Keyword":"Punctuator"}}var B=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],Kn=[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,0,0,0,1,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,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,0,1,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,0,0],qe=[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,0,0,0,1,0,0,0,0,0,0,0,0,0,0,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,0,1,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,0,0];function q2(e){return e<=127?Kn[e]>0:Ie(e)}function F2(e){return e<=127?qe[e]>0:Xn(e)||e===8204||e===8205}var Pe=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function $n(e){let{source:n}=e;e.currentChar===35&&n.charCodeAt(e.index+1)===33&&(m(e),m(e),p2(e,n,0,4,e.tokenIndex,e.tokenLine,e.tokenColumn))}function Ee(e,n,t,u,o,i,l,c){return u&512&&f(e,0),p2(e,n,t,o,i,l,c)}function p2(e,n,t,u,o,i,l){let{index:c}=e;for(e.tokenIndex=e.index,e.tokenLine=e.line,e.tokenColumn=e.column;e.index=e.source.length)return f(e,34)}let o=e.index-1,i=P.Empty,l=e.currentChar,{index:c}=e;for(;F2(l);){switch(l){case 103:i&P.Global&&f(e,36,"g"),i|=P.Global;break;case 105:i&P.IgnoreCase&&f(e,36,"i"),i|=P.IgnoreCase;break;case 109:i&P.Multiline&&f(e,36,"m"),i|=P.Multiline;break;case 117:i&P.Unicode&&f(e,36,"u"),i&P.UnicodeSets&&f(e,36,"vu"),i|=P.Unicode;break;case 118:i&P.Unicode&&f(e,36,"uv"),i&P.UnicodeSets&&f(e,36,"v"),i|=P.UnicodeSets;break;case 121:i&P.Sticky&&f(e,36,"y"),i|=P.Sticky;break;case 115:i&P.DotAll&&f(e,36,"s"),i|=P.DotAll;break;case 100:i&P.Indices&&f(e,36,"d"),i|=P.Indices;break;default:f(e,35)}l=m(e)}let d=e.source.slice(c,e.index),g=e.source.slice(t,o);return e.tokenRegExp={pattern:g,flags:d},n&128&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),e.tokenValue=Qn(e,g,d),65540}function Qn(e,n,t){try{return new RegExp(n,t)}catch{try{return new RegExp(n,t),null}catch{f(e,34)}}}function Zn(e,n,t){let{index:u}=e,o="",i=m(e),l=e.index;for(;(B[i]&8)===0;){if(i===t)return o+=e.source.slice(l,e.index),m(e),n&128&&(e.tokenRaw=e.source.slice(u,e.index)),e.tokenValue=o,134283267;if((i&8)===8&&i===92){if(o+=e.source.slice(l,e.index),i=m(e),i<127||i===8232||i===8233){let c=ve(e,n,i);c>=0?o+=String.fromCodePoint(c):Oe(e,c,0)}else o+=String.fromCodePoint(i);l=e.index+1}else(i===8232||i===8233)&&(e.column=-1,e.line++);e.index>=e.end&&f(e,16),i=m(e)}f(e,16)}function ve(e,n,t,u=0){switch(t){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(e.index1114111)return-5;return e.currentChar<1||e.currentChar!==125?-4:i}else{if((B[o]&64)===0)return-4;let i=e.source.charCodeAt(e.index+1);if((B[i]&64)===0)return-4;let l=e.source.charCodeAt(e.index+2);if((B[l]&64)===0)return-4;let c=e.source.charCodeAt(e.index+3);return(B[c]&64)===0?-4:(e.index+=3,e.column+=3,e.currentChar=e.source.charCodeAt(e.index),_(o)<<12|_(i)<<8|_(l)<<4|_(c))}}case 56:case 57:if(u||(n&64)===0||n&256)return-3;e.flags|=4096;default:return t}}function Oe(e,n,t){switch(n){case-1:return;case-2:f(e,t?2:1);case-3:f(e,t?3:14);case-4:f(e,7);case-5:f(e,104)}}function Re(e,n){let{index:t}=e,u=67174409,o="",i=m(e);for(;i!==96;){if(i===36&&e.source.charCodeAt(e.index+1)===123){m(e),u=67174408;break}else if(i===92)if(i=m(e),i>126)o+=String.fromCodePoint(i);else{let{index:l,line:c,column:d}=e,g=ve(e,n|256,i,1);if(g>=0)o+=String.fromCodePoint(g);else if(g!==-1&&n&16384){e.index=l,e.line=c,e.column=d,o=null,i=Gn(e,i),i<0&&(u=67174408);break}else Oe(e,g,1)}else e.index=e.end&&f(e,17),i=m(e)}return m(e),e.tokenValue=o,e.tokenRaw=e.source.slice(t+1,e.index-(u===67174409?1:2)),u}function Gn(e,n){for(;n!==96;){switch(n){case 36:{let t=e.index+1;if(t=e.end&&f(e,17),n=m(e)}return n}function xn(e,n){return e.index>=e.end&&f(e,0),e.index--,e.column--,Re(e,n)}function re(e,n,t){let u=e.currentChar,o=0,i=9,l=t&64?0:1,c=0,d=0;if(t&64)o="."+B2(e,u),u=e.currentChar,u===110&&f(e,12);else{if(u===48)if(u=m(e),(u|32)===120){for(t=136,u=m(e);B[u]&4160;){if(u===95){d||f(e,152),d=0,u=m(e);continue}d=1,o=o*16+_(u),c++,u=m(e)}(c===0||!d)&&f(e,c===0?21:153)}else if((u|32)===111){for(t=132,u=m(e);B[u]&4128;){if(u===95){d||f(e,152),d=0,u=m(e);continue}d=1,o=o*8+(u-48),c++,u=m(e)}(c===0||!d)&&f(e,c===0?0:153)}else if((u|32)===98){for(t=130,u=m(e);B[u]&4224;){if(u===95){d||f(e,152),d=0,u=m(e);continue}d=1,o=o*2+(u-48),c++,u=m(e)}(c===0||!d)&&f(e,c===0?0:153)}else if(B[u]&32)for(n&256&&f(e,1),t=1;B[u]&16;){if(B[u]&512){t=32,l=0;break}o=o*8+(u-48),u=m(e)}else B[u]&512?(n&256&&f(e,1),e.flags|=64,t=32):u===95&&f(e,0);if(t&48){if(l){for(;i>=0&&B[u]&4112;){if(u===95){u=m(e),(u===95||t&32)&&a2(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},152),d=1;continue}d=0,o=10*o+(u-48),u=m(e),--i}if(d&&a2(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},153),i>=0&&!q2(u)&&u!==46)return e.tokenValue=o,n&128&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283266}o+=B2(e,u),u=e.currentChar,u===46&&(m(e)===95&&f(e,0),t=64,o+="."+B2(e,e.currentChar),u=e.currentChar)}}let g=e.index,a=0;if(u===110&&t&128)a=1,u=m(e);else if((u|32)===101){u=m(e),B[u]&256&&(u=m(e));let{index:s}=e;(B[u]&16)===0&&f(e,11),o+=e.source.substring(g,s)+B2(e,u),u=e.currentChar}return(e.index","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","accessor","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],Ve=Object.create(null,{this:{value:86111},function:{value:86104},if:{value:20569},return:{value:20572},var:{value:86088},else:{value:20563},for:{value:20567},new:{value:86107},in:{value:8673330},typeof:{value:16863275},while:{value:20578},case:{value:20556},break:{value:20555},try:{value:20577},catch:{value:20557},delete:{value:16863276},throw:{value:86112},switch:{value:86110},continue:{value:20559},default:{value:20561},instanceof:{value:8411187},do:{value:20562},void:{value:16863277},finally:{value:20566},async:{value:209005},await:{value:209006},class:{value:86094},const:{value:86090},constructor:{value:12399},debugger:{value:20560},export:{value:20564},extends:{value:20565},false:{value:86021},from:{value:209011},get:{value:209008},implements:{value:36964},import:{value:86106},interface:{value:36965},let:{value:241737},null:{value:86023},of:{value:471156},package:{value:36966},private:{value:36967},protected:{value:36968},public:{value:36969},set:{value:209009},static:{value:36970},super:{value:86109},true:{value:86022},with:{value:20579},yield:{value:241771},enum:{value:86133},eval:{value:537079926},as:{value:77932},arguments:{value:537079927},target:{value:209029},meta:{value:209030},accessor:{value:12402}});function we(e,n,t){for(;qe[m(e)];);return e.tokenValue=e.source.slice(e.tokenIndex,e.index),e.currentChar!==92&&e.currentChar<=126?Ve[e.tokenValue]||208897:ee(e,n,0,t)}function pn(e,n){let t=Me(e);return q2(t)||f(e,5),e.tokenValue=String.fromCodePoint(t),ee(e,n,1,B[t]&4)}function ee(e,n,t,u){let o=e.index;for(;e.index0)F2(l)||f(e,20,String.fromCodePoint(l)),e.currentChar=l,e.index++,e.column++;else if(!F2(e.currentChar))break;m(e)}e.index<=e.end&&(e.tokenValue+=e.source.slice(o,e.index));let{length:i}=e.tokenValue;if(u&&i>=2&&i<=11){let l=Ve[e.tokenValue];return l===void 0?208897|(t?-2147483648:0):t?l===209006?(n&524800)===0?l|-2147483648:-2147483528:n&256?l===36970||(l&36864)===36864?-2147483527:(l&20480)===20480?n&67108864&&(n&2048)===0?l|-2147483648:-2147483528:-2147274630:n&67108864&&(n&2048)===0&&(l&20480)===20480?l|-2147483648:l===241771?n&67108864?-2147274630:n&262144?-2147483528:l|-2147483648:l===209005?-2147274630:(l&36864)===36864?l|12288|-2147483648:-2147483528:l}return 208897|(t?-2147483648:0)}function et(e){let n=m(e);if(n===92)return 130;let t=G2(e);return t&&(n=t),q2(n)||f(e,96),130}function Me(e){return e.source.charCodeAt(e.index+1)!==117&&f(e,5),e.currentChar=e.source.charCodeAt(e.index+=2),e.column+=2,nt(e)}function nt(e){let n=0,t=e.currentChar;if(t===123){let l=e.index-2;for(;B[m(e)]&64;)n=n<<4|_(e.currentChar),n>1114111&&a2({index:l,line:e.line,column:e.column},e.currentLocation,104);return e.currentChar!==125&&a2({index:l,line:e.line,column:e.column},e.currentLocation,7),m(e),n}(B[t]&64)===0&&f(e,7);let u=e.source.charCodeAt(e.index+1);(B[u]&64)===0&&f(e,7);let o=e.source.charCodeAt(e.index+2);(B[o]&64)===0&&f(e,7);let i=e.source.charCodeAt(e.index+3);return(B[i]&64)===0&&f(e,7),n=_(t)<<12|_(u)<<8|_(o)<<4|_(i),e.currentChar=e.source.charCodeAt(e.index+=4),e.column+=4,n}var tt=[128,128,128,128,128,128,128,128,128,127,135,127,127,129,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,127,16842798,134283267,130,208897,8391477,8390213,134283267,67174411,16,8391476,25233968,18,25233969,67108877,8457014,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456256,1077936155,8390721,22,132,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,136,20,8389959,208897,131,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8389702,1074790415,16842799,128];function k(e,n){e.flags=(e.flags|1)^1,e.startIndex=e.index,e.startColumn=e.column,e.startLine=e.line,e.setToken(Ue(e,n,0))}function Ue(e,n,t){let u=e.index===0,{source:o}=e,i=e.index,l=e.line,c=e.column;for(;e.index=e.end)return 8391476;let a=e.currentChar;return a===61?(m(e),4194338):a!==42?8391476:m(e)!==61?8391735:(m(e),4194335)}case 8389959:return m(e)!==61?8389959:(m(e),4194341);case 25233968:{m(e);let a=e.currentChar;return a===43?(m(e),33619993):a===61?(m(e),4194336):25233968}case 25233969:{m(e);let a=e.currentChar;if(a===45){if(m(e),(t&1||u)&&e.currentChar===62){(n&64)===0&&f(e,112),m(e),t=Ee(e,o,t,n,3,i,l,c),i=e.tokenIndex,l=e.tokenLine,c=e.tokenColumn;continue}return 33619994}return a===61?(m(e),4194337):25233969}case 8457014:{if(m(e),e.index=48&&a<=57)return re(e,n,80);if(a===46){let s=e.index+1;if(s=48&&a<=57)))return m(e),67108990}return 22}}}else{if((d^8232)<=1){t=t&-5|1,o2(e);continue}let g=G2(e);if(g>0&&(d=g),Ie(d))return e.tokenValue="",ee(e,n,0,0);if(Hn(d)){m(e);continue}f(e,20,String.fromCodePoint(d))}}return 1048576}function ut(e,n){return e.startIndex=e.tokenIndex=e.index,e.startColumn=e.tokenColumn=e.column,e.startLine=e.tokenLine=e.line,e.setToken(B[e.currentChar]&8192?it(e,n):Ue(e,n,0)),e.getToken()}function it(e,n){let t=e.currentChar,u=m(e),o=e.index;for(;u!==t;)e.index>=e.end&&f(e,16),u=m(e);return u!==t&&f(e,16),e.tokenValue=e.source.slice(o,e.index),m(e),n&128&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283267}function T2(e,n){if(e.startIndex=e.tokenIndex=e.index,e.startColumn=e.tokenColumn=e.column,e.startLine=e.tokenLine=e.line,e.index>=e.end){e.setToken(1048576);return}if(e.currentChar===60){m(e),e.setToken(8456256);return}if(e.currentChar===123){m(e),e.setToken(2162700);return}let t=0;for(;e.index1&&i&32&&e.getToken()&262144&&f(e,61,S[e.getToken()&255]),c}function Se(e,n,t,u,o,i){let{tokenStart:l}=e,c=e.getToken(),d=null,g=ln(e,n,t,u,o,i);return e.getToken()===1077936155?(k(e,n|8192),d=L(e,n,u,1,0,e.tokenStart),(i&32||(c&2097152)===0)&&(e.getToken()===471156||e.getToken()===8673330&&(c&2097152||(o&4)===0||n&256))&&J(l,e.currentLocation,60,e.getToken()===471156?"of":"in")):(o&16||(c&2097152)>0)&&(e.getToken()&262144)!==262144&&f(e,59,o&16?"const":"destructuring"),e.finishNode({type:"VariableDeclarator",id:g,init:d},l)}function Ot(e,n,t,u,o){let i=e.tokenStart;k(e,n);let l=((n&524288)>0||(n&512)>0&&(n&2048)>0)&&r(e,n,209006);A(e,n|8192,67174411),t&&(t=q(t,1));let c=null,d=null,g=0,a=null,s=e.getToken()===86088||e.getToken()===241737||e.getToken()===86090,h,{tokenStart:T}=e,C=e.getToken();if(s)C===241737?(a=N(e,n),e.getToken()&2240512?(e.getToken()===8673330?n&256&&f(e,67):a=e.finishNode({type:"VariableDeclaration",kind:"let",declarations:d2(e,n|33554432,t,u,8,32)},T),e.assignable=1):n&256?f(e,67):(s=!1,e.assignable=1,a=F(e,n,u,a,0,0,T),e.getToken()===471156&&f(e,115))):(k(e,n),a=e.finishNode(C===86088?{type:"VariableDeclaration",kind:"var",declarations:d2(e,n|33554432,t,u,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:d2(e,n|33554432,t,u,16,32)},T),e.assignable=1);else if(C===1074790417)l&&f(e,82);else if((C&2097152)===2097152){let b=e.tokenStart;a=C===2162700?z(e,n,void 0,u,1,0,0,2,32):H(e,n,void 0,u,1,0,0,2,32),g=e.destructible,g&64&&f(e,63),e.assignable=g&16?2:1,a=F(e,n|33554432,u,a,0,0,b)}else a=X(e,n|33554432,u,1,0,1);if((e.getToken()&262144)===262144){if(e.getToken()===471156){e.assignable&2&&f(e,80,l?"await":"of"),$(e,a),k(e,n|8192),h=L(e,n,u,1,0,e.tokenStart),A(e,n|8192,16);let D=y2(e,n,t,u,o);return e.finishNode({type:"ForOfStatement",left:a,right:h,body:D,await:l},i)}e.assignable&2&&f(e,80,"in"),$(e,a),k(e,n|8192),l&&f(e,82),h=V(e,n,u,0,1,e.tokenStart),A(e,n|8192,16);let b=y2(e,n,t,u,o);return e.finishNode({type:"ForInStatement",body:b,left:a,right:h},i)}l&&f(e,82),s||(g&8&&e.getToken()!==1077936155&&f(e,80,"loop"),a=I(e,n|33554432,u,0,0,T,a)),e.getToken()===18&&(a=Q(e,n,u,0,T,a)),A(e,n|8192,1074790417),e.getToken()!==1074790417&&(c=V(e,n,u,0,1,e.tokenStart)),A(e,n|8192,1074790417),e.getToken()!==16&&(d=V(e,n,u,0,1,e.tokenStart)),A(e,n|8192,16);let E=y2(e,n,t,u,o);return e.finishNode({type:"ForStatement",init:a,test:c,update:d,body:E},i)}function We(e,n,t){return b2(n,e.getToken())||f(e,118),(e.getToken()&537079808)===537079808&&f(e,119),t&&n2(e,n,t,e.tokenValue,8,0),N(e,n)}function Rt(e,n,t){let u=e.tokenStart;k(e,n);let o=null,{tokenStart:i}=e,l=[];if(e.getToken()===134283267)o=v(e,n);else{if(e.getToken()&143360){let g=We(e,n,t);if(l=[e.finishNode({type:"ImportDefaultSpecifier",local:g},i)],r(e,n,18))switch(e.getToken()){case 8391476:l.push(Fe(e,n,t));break;case 2162700:Ne(e,n,t,l);break;default:f(e,107)}}else switch(e.getToken()){case 8391476:l=[Fe(e,n,t)];break;case 2162700:Ne(e,n,t,l);break;case 67174411:return Qe(e,n,void 0,u);case 67108877:return Ye(e,n,u);default:f(e,30,S[e.getToken()&255])}o=Vt(e,n)}let c=Q2(e,n,l),d={type:"ImportDeclaration",specifiers:l,source:o,attributes:c};return U(e,n|8192),e.finishNode(d,u)}function Fe(e,n,t){let{tokenStart:u}=e;return k(e,n),A(e,n,77932),(e.getToken()&134217728)===134217728&&J(u,e.currentLocation,30,S[e.getToken()&255]),e.finishNode({type:"ImportNamespaceSpecifier",local:We(e,n,t)},u)}function Vt(e,n){return A(e,n,209011),e.getToken()!==134283267&&f(e,105,"Import"),v(e,n)}function Ne(e,n,t,u){for(k(e,n);e.getToken()&143360||e.getToken()===134283267;){let{tokenValue:o,tokenStart:i}=e,l=e.getToken(),c=N2(e,n),d;r(e,n,77932)?((e.getToken()&134217728)===134217728||e.getToken()===18?f(e,106):P2(e,n,16,e.getToken(),0),o=e.tokenValue,d=N(e,n)):c.type==="Identifier"?(P2(e,n,16,l,0),d=c):f(e,25,S[108]),t&&n2(e,n,t,o,8,0),u.push(e.finishNode({type:"ImportSpecifier",local:d,imported:c},i)),e.getToken()!==1074790415&&A(e,n,18)}return A(e,n,1074790415),u}function Ye(e,n,t){let u=Ze(e,n,e.finishNode({type:"Identifier",name:"import"},t),t);return u=F(e,n,void 0,u,0,0,t),u=I(e,n,void 0,0,0,t,u),e.getToken()===18&&(u=Q(e,n,void 0,0,t,u)),s2(e,n,u,t)}function Qe(e,n,t,u){let o=Ge(e,n,t,0,u);return o=F(e,n,t,o,0,0,u),e.getToken()===18&&(o=Q(e,n,t,0,u,o)),s2(e,n,o,u)}function Mt(e,n,t){let u=e.leadingDecorators.decorators.length?e.leadingDecorators.start:e.tokenStart;k(e,n|8192);let o=[],i=null,l=null,c=[];if(r(e,n|8192,20561)){switch(e.getToken()){case 86104:{i=e2(e,n,t,void 0,4,1,1,0,e.tokenStart);break}case 132:case 86094:i=Z2(e,n,t,void 0,1);break;case 209005:{let{tokenStart:g}=e;i=N(e,n);let{flags:a}=e;(a&1)===0&&(e.getToken()===86104?i=e2(e,n,t,void 0,4,1,1,1,g):e.getToken()===67174411?(i=de(e,n,void 0,i,1,1,0,a,g),i=F(e,n,void 0,i,0,0,g),i=I(e,n,void 0,0,0,g,i)):e.getToken()&143360&&(t&&(t=M2(e,n,e.tokenValue)),i=N(e,n),i=E2(e,n,t,void 0,[i],1,g)));break}default:i=L(e,n,void 0,1,0,e.tokenStart),U(e,n|8192)}return t&&t2(e,"default"),e.finishNode({type:"ExportDefaultDeclaration",declaration:i},u)}switch(e.getToken()){case 8391476:{k(e,n);let g=null;r(e,n,77932)&&(t&&t2(e,e.tokenValue),g=N2(e,n)),A(e,n,209011),e.getToken()!==134283267&&f(e,105,"Export"),l=v(e,n);let s=Q2(e,n),h={type:"ExportAllDeclaration",source:l,exported:g,attributes:s};return U(e,n|8192),e.finishNode(h,u)}case 2162700:{k(e,n);let g=[],a=[],s=0;for(;e.getToken()&143360||e.getToken()===134283267;){let{tokenStart:h,tokenValue:T}=e,C=N2(e,n);C.type==="Literal"&&(s=1);let E;e.getToken()===77932?(k(e,n),(e.getToken()&143360)===0&&e.getToken()!==134283267&&f(e,106),t&&(g.push(e.tokenValue),a.push(T)),E=N2(e,n)):(t&&(g.push(e.tokenValue),a.push(e.tokenValue)),E=C),o.push(e.finishNode({type:"ExportSpecifier",local:C,exported:E},h)),e.getToken()!==1074790415&&A(e,n,18)}A(e,n,1074790415),r(e,n,209011)?(e.getToken()!==134283267&&f(e,105,"Export"),l=v(e,n),c=Q2(e,n,o),t&&g.forEach(h=>t2(e,h))):(s&&f(e,172),t&&(g.forEach(h=>t2(e,h)),a.forEach(h=>st(e,h)))),U(e,n|8192);break}case 132:case 86094:i=Z2(e,n,t,void 0,2);break;case 86104:i=e2(e,n,t,void 0,4,1,2,0,e.tokenStart);break;case 241737:i=Y2(e,n,t,void 0,8,64);break;case 86090:i=Y2(e,n,t,void 0,16,64);break;case 86088:i=$e(e,n,t,void 0,64);break;case 209005:{let{tokenStart:g}=e;if(k(e,n),(e.flags&1)===0&&e.getToken()===86104){i=e2(e,n,t,void 0,4,1,2,1,g);break}}default:f(e,30,S[e.getToken()&255])}let d={type:"ExportNamedDeclaration",declaration:i,specifiers:o,source:l,attributes:c};return e.finishNode(d,u)}function L(e,n,t,u,o,i){let l=j(e,n,t,2,0,u,o,1,i);return l=F(e,n,t,l,o,0,i),I(e,n,t,o,0,i,l)}function Q(e,n,t,u,o,i){let l=[i];for(;r(e,n|8192,18);)l.push(L(e,n,t,1,u,e.tokenStart));return e.finishNode({type:"SequenceExpression",expressions:l},o)}function V(e,n,t,u,o,i){let l=L(e,n,t,o,u,i);return e.getToken()===18?Q(e,n,t,u,i,l):l}function I(e,n,t,u,o,i,l){let c=e.getToken();if((c&4194304)===4194304){e.assignable&2&&f(e,26),(!o&&c===1077936155&&l.type==="ArrayExpression"||l.type==="ObjectExpression")&&$(e,l),k(e,n|8192);let d=L(e,n,t,1,u,e.tokenStart);return e.assignable=2,e.finishNode(o?{type:"AssignmentPattern",left:l,right:d}:{type:"AssignmentExpression",left:l,operator:S[c&255],right:d},i)}return(c&8388608)===8388608&&(l=p(e,n,t,u,i,4,c,l)),r(e,n|8192,22)&&(l=u2(e,n,t,l,i)),l}function S2(e,n,t,u,o,i,l){let c=e.getToken();k(e,n|8192);let d=L(e,n,t,1,u,e.tokenStart);return l=e.finishNode(o?{type:"AssignmentPattern",left:l,right:d}:{type:"AssignmentExpression",left:l,operator:S[c&255],right:d},i),e.assignable=2,l}function u2(e,n,t,u,o){let i=L(e,(n|33554432)^33554432,t,1,0,e.tokenStart);A(e,n|8192,21),e.assignable=1;let l=L(e,n,t,1,0,e.tokenStart);return e.assignable=2,e.finishNode({type:"ConditionalExpression",test:u,consequent:i,alternate:l},o)}function p(e,n,t,u,o,i,l,c){let d=-((n&33554432)>0)&8673330,g,a;for(e.assignable=2;e.getToken()&8388608&&(g=e.getToken(),a=g&3840,(g&524288&&l&268435456||l&524288&&g&268435456)&&f(e,165),!(a+((g===8391735)<<8)-((d===g)<<12)<=i));)k(e,n|8192),c=e.finishNode({type:g&524288||g&268435456?"LogicalExpression":"BinaryExpression",left:c,right:p(e,n,t,u,e.tokenStart,a,g,X(e,n,t,0,u,1)),operator:S[g&255]},o);return e.getToken()===1077936155&&f(e,26),c}function Ut(e,n,t,u,o){u||f(e,0);let{tokenStart:i}=e,l=e.getToken();k(e,n|8192);let c=X(e,n,t,0,o,1);return e.getToken()===8391735&&f(e,33),n&256&&l===16863276&&(c.type==="Identifier"?f(e,121):ot(c)&&f(e,127)),e.assignable=2,e.finishNode({type:"UnaryExpression",operator:S[l&255],argument:c,prefix:!0},i)}function Jt(e,n,t,u,o,i,l,c){let d=e.getToken(),g=N(e,n),{flags:a}=e;if((a&1)===0){if(e.getToken()===86104)return pe(e,n,t,1,u,c);if(b2(n,e.getToken()))return o||f(e,0),(e.getToken()&36864)===36864&&(e.flags|=256),tn(e,n,t,i,c)}return!l&&e.getToken()===67174411?de(e,n,t,g,i,1,0,a,c):e.getToken()===10?(U2(e,n,d),l&&f(e,51),(d&36864)===36864&&(e.flags|=256),_2(e,n,t,e.tokenValue,g,l,i,0,c)):(e.assignable=1,g)}function _t(e,n,t,u,o,i){if(u&&(e.destructible|=256),n&262144){k(e,n|8192),n&2097152&&f(e,32),o||f(e,26),e.getToken()===22&&f(e,124);let l=null,c=!1;return(e.flags&1)===0?(c=r(e,n|8192,8391476),(e.getToken()&77824||c)&&(l=L(e,n,t,1,0,e.tokenStart))):e.getToken()===8391476&&f(e,30,S[e.getToken()&255]),e.assignable=2,e.finishNode({type:"YieldExpression",argument:l,delegate:c},i)}return n&256&&f(e,97,"yield"),ce(e,n,t)}function jt(e,n,t,u,o,i){o&&(e.destructible|=128),n&268435456&&f(e,177);let l=ce(e,n,t);if(l.type==="ArrowFunctionExpression"||(e.getToken()&65536)===0)return n&524288&&J(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},176),n&512&&J(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},110),n&2097152&&n&524288&&J(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},110),l;if(n&2097152&&J(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},31),n&524288||n&512&&n&2048){u&&J(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},0);let d=X(e,n,t,0,0,1);return e.getToken()===8391735&&f(e,33),e.assignable=2,e.finishNode({type:"AwaitExpression",argument:d},i)}return n&512&&J(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},98),l}function J2(e,n,t,u,o,i,l){let{tokenStart:c}=e;A(e,n|8192,2162700);let d=[];if(e.getToken()!==1074790415){for(;e.getToken()===134283267;){let{index:g,tokenStart:a,tokenIndex:s,tokenValue:h}=e,T=e.getToken(),C=v(e,n);Je(e,g,s,h)&&(n|=256,e.flags&128&&J(a,e.currentLocation,66),e.flags&64&&J(a,e.currentLocation,9),e.flags&4096&&J(a,e.currentLocation,15),l&&V2(l)),d.push(ue(e,n,C,T,a))}n&256&&(i&&((i&537079808)===537079808&&f(e,119),(i&36864)===36864&&f(e,40)),e.flags&512&&f(e,119),e.flags&256&&f(e,118))}for(e.flags=(e.flags|512|256|64|4096)^4928,e.destructible=(e.destructible|256)^256;e.getToken()!==1074790415;)d.push(D2(e,n,t,u,4,{}));return A(e,o&24?n|8192:n,1074790415),e.flags&=-4289,e.getToken()===1077936155&&f(e,26),e.finishNode({type:"BlockStatement",body:d},c)}function Xt(e,n){let{tokenStart:t}=e;switch(k(e,n),e.getToken()){case 67108990:f(e,167);case 67174411:{(n&131072)===0&&f(e,28),e.assignable=2;break}case 69271571:case 67108877:{(n&65536)===0&&f(e,29),e.assignable=1;break}default:f(e,30,"super")}return e.finishNode({type:"Super"},t)}function X(e,n,t,u,o,i){let l=e.tokenStart,c=j(e,n,t,2,0,u,o,i,l);return F(e,n,t,c,o,0,l)}function Ht(e,n,t,u){e.assignable&2&&f(e,55);let o=e.getToken();return k(e,n),e.assignable=2,e.finishNode({type:"UpdateExpression",argument:t,operator:S[o&255],prefix:!1},u)}function F(e,n,t,u,o,i,l){if((e.getToken()&33619968)===33619968&&(e.flags&1)===0)u=Ht(e,n,u,l);else if((e.getToken()&67108864)===67108864){switch(n=(n|33554432)^33554432,e.getToken()){case 67108877:{k(e,(n|67108864|2048)^2048),n&4096&&e.getToken()===130&&e.tokenValue==="super"&&f(e,173),e.assignable=1;let c=ie(e,n|16384,t);u=e.finishNode({type:"MemberExpression",object:u,computed:!1,property:c,optional:!1},l);break}case 69271571:{let c=!1;(e.flags&2048)===2048&&(c=!0,e.flags=(e.flags|2048)^2048),k(e,n|8192);let{tokenStart:d}=e,g=V(e,n,t,o,1,d);A(e,n,20),e.assignable=1,u=e.finishNode({type:"MemberExpression",object:u,computed:!0,property:g,optional:!1},l),c&&(e.flags|=2048);break}case 67174411:{if((e.flags&1024)===1024)return e.flags=(e.flags|1024)^1024,u;let c=!1;(e.flags&2048)===2048&&(c=!0,e.flags=(e.flags|2048)^2048);let d=fe(e,n,t,o);e.assignable=2,u=e.finishNode({type:"CallExpression",callee:u,arguments:d,optional:!1},l),c&&(e.flags|=2048);break}case 67108990:{k(e,(n|67108864|2048)^2048),e.flags|=2048,e.assignable=2,u=zt(e,n,t,u,l);break}default:(e.flags&2048)===2048&&f(e,166),e.assignable=2,u=e.finishNode({type:"TaggedTemplateExpression",tag:u,quasi:e.getToken()===67174408?le(e,n|16384,t):oe(e,n)},l)}u=F(e,n,t,u,0,1,l)}return i===0&&(e.flags&2048)===2048&&(e.flags=(e.flags|2048)^2048,u=e.finishNode({type:"ChainExpression",expression:u},l)),u}function zt(e,n,t,u,o){let i=!1,l;if((e.getToken()===69271571||e.getToken()===67174411)&&(e.flags&2048)===2048&&(i=!0,e.flags=(e.flags|2048)^2048),e.getToken()===69271571){k(e,n|8192);let{tokenStart:c}=e,d=V(e,n,t,0,1,c);A(e,n,20),e.assignable=2,l=e.finishNode({type:"MemberExpression",object:u,computed:!0,optional:!0,property:d},o)}else if(e.getToken()===67174411){let c=fe(e,n,t,0);e.assignable=2,l=e.finishNode({type:"CallExpression",callee:u,arguments:c,optional:!0},o)}else{let c=ie(e,n,t);e.assignable=2,l=e.finishNode({type:"MemberExpression",object:u,computed:!1,optional:!0,property:c},o)}return i&&(e.flags|=2048),l}function ie(e,n,t){return(e.getToken()&143360)===0&&e.getToken()!==-2147483528&&e.getToken()!==-2147483527&&e.getToken()!==130&&f(e,160),e.getToken()===130?R2(e,n,t,0):N(e,n)}function Kt(e,n,t,u,o,i){u&&f(e,56),o||f(e,0);let l=e.getToken();k(e,n|8192);let c=X(e,n,t,0,0,1);return e.assignable&2&&f(e,55),e.assignable=2,e.finishNode({type:"UpdateExpression",argument:c,operator:S[l&255],prefix:!0},i)}function j(e,n,t,u,o,i,l,c,d){if((e.getToken()&143360)===143360){switch(e.getToken()){case 209006:return jt(e,n,t,o,l,d);case 241771:return _t(e,n,t,l,i,d);case 209005:return Jt(e,n,t,l,c,i,o,d)}let{tokenValue:g}=e,a=e.getToken(),s=N(e,n|16384);return e.getToken()===10?(c||f(e,0),U2(e,n,a),(a&36864)===36864&&(e.flags|=256),_2(e,n,t,g,s,o,i,0,d)):(n&4096&&!(n&8388608)&&!(n&2097152)&&e.tokenValue==="arguments"&&f(e,130),(a&255)===73&&(n&256&&f(e,113),u&24&&f(e,100)),e.assignable=n&256&&(a&537079808)===537079808?2:1,s)}if((e.getToken()&134217728)===134217728)return v(e,n);switch(e.getToken()){case 33619993:case 33619994:return Kt(e,n,t,o,c,d);case 16863276:case 16842798:case 16842799:case 25233968:case 25233969:case 16863275:case 16863277:return Ut(e,n,t,c,l);case 86104:return pe(e,n,t,0,l,d);case 2162700:return eu(e,n,t,i?0:1,l);case 69271571:return pt(e,n,t,i?0:1,l);case 67174411:return tu(e,n|16384,t,i,1,0,d);case 86021:case 86022:case 86023:return Gt(e,n);case 86111:return xt(e,n);case 65540:return ou(e,n);case 132:case 86094:return lu(e,n,t,l,d);case 86109:return Xt(e,n);case 67174409:return oe(e,n);case 67174408:return le(e,n,t);case 86107:return uu(e,n,t,l);case 134283388:return xe(e,n);case 130:return R2(e,n,t,0);case 86106:return $t(e,n,t,o,l,d);case 8456256:if(n&8)return X2(e,n,t,0,e.tokenStart);default:if(b2(n,e.getToken()))return ce(e,n,t);f(e,30,S[e.getToken()&255])}}function $t(e,n,t,u,o,i){let l=N(e,n);return e.getToken()===67108877?Ze(e,n,l,i):(u&&f(e,142),l=Ge(e,n,t,o,i),e.assignable=2,F(e,n,t,l,o,0,i))}function Ze(e,n,t,u){(n&512)===0&&f(e,169),k(e,n);let o=e.getToken();return o!==209030&&e.tokenValue!=="meta"?f(e,174):o&-2147483648&&f(e,175),e.assignable=2,e.finishNode({type:"MetaProperty",meta:t,property:N(e,n)},u)}function Ge(e,n,t,u,o){A(e,n|8192,67174411),e.getToken()===14&&f(e,143);let i=L(e,n,t,1,u,e.tokenStart),l=null;if(e.getToken()===18){if(A(e,n,18),e.getToken()!==16){let d=(n|33554432)^33554432;l=L(e,d,t,1,u,e.tokenStart)}r(e,n,18)}let c={type:"ImportExpression",source:i,options:l};return A(e,n,16),e.finishNode(c,o)}function Q2(e,n,t=null){if(!r(e,n,20579))return[];A(e,n,2162700);let u=[],o=new Set;for(;e.getToken()!==1074790415;){let i=e.tokenStart,l=Yt(e,n);A(e,n,21);let c=Wt(e,n),d=l.type==="Literal"?l.value:l.name;d==="type"&&c.value==="json"&&(t===null||t.length===1&&(t[0].type==="ImportDefaultSpecifier"||t[0].type==="ImportNamespaceSpecifier"||t[0].type==="ImportSpecifier"&&t[0].imported.type==="Identifier"&&t[0].imported.name==="default"||t[0].type==="ExportSpecifier"&&t[0].local.type==="Identifier"&&t[0].local.name==="default")||f(e,140)),o.has(d)&&f(e,145,`${d}`),o.add(d),u.push(e.finishNode({type:"ImportAttribute",key:l,value:c},i)),e.getToken()!==1074790415&&A(e,n,18)}return A(e,n,1074790415),u}function Wt(e,n){if(e.getToken()===134283267)return v(e,n);f(e,30,S[e.getToken()&255])}function Yt(e,n){if(e.getToken()===134283267)return v(e,n);if(e.getToken()&143360)return N(e,n);f(e,30,S[e.getToken()&255])}function Qt(e,n){let t=n.length;for(let u=0;u56319||++u>=t||(n.charCodeAt(u)&64512)!==56320)&&f(e,171,JSON.stringify(n.charAt(u--)))}}function N2(e,n){if(e.getToken()===134283267)return Qt(e,e.tokenValue),v(e,n);if(e.getToken()&143360)return N(e,n);f(e,30,S[e.getToken()&255])}function xe(e,n){let{tokenRaw:t,tokenValue:u,tokenStart:o}=e;k(e,n),e.assignable=2;let i={type:"Literal",value:u,bigint:String(u)};return n&128&&(i.raw=t),e.finishNode(i,o)}function oe(e,n){e.assignable=2;let{tokenValue:t,tokenRaw:u,tokenStart:o}=e;A(e,n,67174409);let i=[L2(e,n,t,u,o,!0)];return e.finishNode({type:"TemplateLiteral",expressions:[],quasis:i},o)}function le(e,n,t){n=(n|33554432)^33554432;let{tokenValue:u,tokenRaw:o,tokenStart:i}=e;A(e,n&-16385|8192,67174408);let l=[L2(e,n,u,o,i,!1)],c=[V(e,n&-16385,t,0,1,e.tokenStart)];for(e.getToken()!==1074790415&&f(e,83);e.setToken(xn(e,n),!0)!==67174409;){let{tokenValue:d,tokenRaw:g,tokenStart:a}=e;A(e,n&-16385|8192,67174408),l.push(L2(e,n,d,g,a,!1)),c.push(V(e,n,t,0,1,e.tokenStart)),e.getToken()!==1074790415&&f(e,83)}{let{tokenValue:d,tokenRaw:g,tokenStart:a}=e;A(e,n,67174409),l.push(L2(e,n,d,g,a,!0))}return e.finishNode({type:"TemplateLiteral",expressions:c,quasis:l},i)}function L2(e,n,t,u,o,i){let l=e.finishNode({type:"TemplateElement",value:{cooked:t,raw:u},tail:i},o),c=i?1:2;return n&2&&(l.start+=1,l.range[0]+=1,l.end-=c,l.range[1]-=c),n&4&&(l.loc.start.column+=1,l.loc.end.column-=c),l}function Zt(e,n,t){let u=e.tokenStart;n=(n|33554432)^33554432,A(e,n|8192,14);let o=L(e,n,t,1,0,e.tokenStart);return e.assignable=1,e.finishNode({type:"SpreadElement",argument:o},u)}function fe(e,n,t,u){k(e,n|8192);let o=[];if(e.getToken()===16)return k(e,n|16384),o;for(;e.getToken()!==16&&(e.getToken()===14?o.push(Zt(e,n,t)):o.push(L(e,n,t,1,u,e.tokenStart)),!(e.getToken()!==18||(k(e,n|8192),e.getToken()===16))););return A(e,n|16384,16),o}function N(e,n){let{tokenValue:t,tokenStart:u}=e,o=t==="await"&&(e.getToken()&-2147483648)===0;return k(e,n|(o?8192:0)),e.finishNode({type:"Identifier",name:t},u)}function v(e,n){let{tokenValue:t,tokenRaw:u,tokenStart:o}=e;return e.getToken()===134283388?xe(e,n):(k(e,n),e.assignable=2,e.finishNode(n&128?{type:"Literal",value:t,raw:u}:{type:"Literal",value:t},o))}function Gt(e,n){let t=e.tokenStart,u=S[e.getToken()&255],o=e.getToken()===86023?null:u==="true";return k(e,n),e.assignable=2,e.finishNode(n&128?{type:"Literal",value:o,raw:u}:{type:"Literal",value:o},t)}function xt(e,n){let{tokenStart:t}=e;return k(e,n),e.assignable=2,e.finishNode({type:"ThisExpression"},t)}function e2(e,n,t,u,o,i,l,c,d){k(e,n|8192);let g=i?ne(e,n,8391476):0,a=null,s,h=t?l2():void 0;if(e.getToken()===67174411)(l&1)===0&&f(e,39,"Function");else{let b=o&4&&((n&2048)===0||(n&512)===0)?4:64|(c?1024:0)|(g?1024:0);_e(e,n,e.getToken()),t&&(b&4?He(e,n,t,e.tokenValue,b):n2(e,n,t,e.tokenValue,b,o),h=q(h,256),l&&l&2&&t2(e,e.tokenValue)),s=e.getToken(),e.getToken()&143360?a=N(e,n):f(e,30,S[e.getToken()&255])}n=(n|7274496)^7274496|16777216|(c?524288:0)|(g?262144:0)|(g?0:67108864),t&&(h=q(h,512));let T=nn(e,(n|2097152)&-268435457,h,u,0,1),C=268471296,E=J2(e,(n|C)^C|8388608|1048576,t?q(h,128):h,u,8,s,h==null?void 0:h.scopeError);return e.finishNode({type:"FunctionDeclaration",id:a,params:T,body:E,async:c===1,generator:g===1},d)}function pe(e,n,t,u,o,i){k(e,n|8192);let l=ne(e,n,8391476),c=(u?524288:0)|(l?262144:0),d=null,g,a=n&16?l2():void 0,s=275709952;e.getToken()&143360&&(_e(e,(n|s)^s|c,e.getToken()),a&&(a=q(a,256)),g=e.getToken(),d=N(e,n)),n=(n|s)^s|16777216|c|(l?0:67108864),a&&(a=q(a,512));let h=nn(e,(n|2097152)&-268435457,a,t,o,1),T=J2(e,n&-33594369|8388608|1048576,a&&q(a,128),t,0,g,a==null?void 0:a.scopeError);return e.assignable=2,e.finishNode({type:"FunctionExpression",id:d,params:h,body:T,async:u===1,generator:l===1},i)}function pt(e,n,t,u,o){let i=H(e,n,void 0,t,u,o,0,2,0);return e.destructible&64&&f(e,63),e.destructible&8&&f(e,62),i}function H(e,n,t,u,o,i,l,c,d){let{tokenStart:g}=e;k(e,n|8192);let a=[],s=0;for(n=(n|33554432)^33554432;e.getToken()!==20;)if(r(e,n|8192,18))a.push(null);else{let T,{tokenStart:C,tokenValue:E}=e,b=e.getToken();if(b&143360)if(T=j(e,n,u,c,0,1,i,1,C),e.getToken()===1077936155){e.assignable&2&&f(e,26),k(e,n|8192),t&&Y(e,n,t,E,c,d);let D=L(e,n,u,1,i,e.tokenStart);T=e.finishNode(l?{type:"AssignmentPattern",left:T,right:D}:{type:"AssignmentExpression",operator:"=",left:T,right:D},C),s|=e.destructible&256?256:0|e.destructible&128?128:0}else e.getToken()===18||e.getToken()===20?(e.assignable&2?s|=16:t&&Y(e,n,t,E,c,d),s|=e.destructible&256?256:0|e.destructible&128?128:0):(s|=c&1?32:(c&2)===0?16:0,T=F(e,n,u,T,i,0,C),e.getToken()!==18&&e.getToken()!==20?(e.getToken()!==1077936155&&(s|=16),T=I(e,n,u,i,l,C,T)):e.getToken()!==1077936155&&(s|=e.assignable&2?16:32));else b&2097152?(T=e.getToken()===2162700?z(e,n,t,u,0,i,l,c,d):H(e,n,t,u,0,i,l,c,d),s|=e.destructible,e.assignable=e.destructible&16?2:1,e.getToken()===18||e.getToken()===20?e.assignable&2&&(s|=16):e.destructible&8?f(e,71):(T=F(e,n,u,T,i,0,C),s=e.assignable&2?16:0,e.getToken()!==18&&e.getToken()!==20?T=I(e,n,u,i,l,C,T):e.getToken()!==1077936155&&(s|=e.assignable&2?16:32))):b===14?(T=g2(e,n,t,u,20,c,d,0,i,l),s|=e.destructible,e.getToken()!==18&&e.getToken()!==20&&f(e,30,S[e.getToken()&255])):(T=X(e,n,u,1,0,1),e.getToken()!==18&&e.getToken()!==20?(T=I(e,n,u,i,l,C,T),(c&3)===0&&b===67174411&&(s|=16)):e.assignable&2?s|=16:b===67174411&&(s|=e.assignable&1&&c&3?32:16));if(a.push(T),r(e,n|8192,18)){if(e.getToken()===20)break}else break}A(e,n,20);let h=e.finishNode({type:l?"ArrayPattern":"ArrayExpression",elements:a},g);return!o&&e.getToken()&4194304?en(e,n,u,s,i,l,g,h):(e.destructible=s,h)}function en(e,n,t,u,o,i,l,c){e.getToken()!==1077936155&&f(e,26),k(e,n|8192),u&16&&f(e,26),i||$(e,c);let{tokenStart:d}=e,g=L(e,n,t,1,o,d);return e.destructible=(u|64|8)^72|(e.destructible&128?128:0)|(e.destructible&256?256:0),e.finishNode(i?{type:"AssignmentPattern",left:c,right:g}:{type:"AssignmentExpression",left:c,operator:"=",right:g},l)}function g2(e,n,t,u,o,i,l,c,d,g){let{tokenStart:a}=e;k(e,n|8192);let s=null,h=0,{tokenValue:T,tokenStart:C}=e,E=e.getToken();if(E&143360)e.assignable=1,s=j(e,n,u,i,0,1,d,1,C),E=e.getToken(),s=F(e,n,u,s,d,0,C),e.getToken()!==18&&e.getToken()!==o&&(e.assignable&2&&e.getToken()===1077936155&&f(e,71),h|=16,s=I(e,n,u,d,g,C,s)),e.assignable&2?h|=16:E===o||E===18?t&&Y(e,n,t,T,i,l):h|=32,h|=e.destructible&128?128:0;else if(E===o)f(e,41);else if(E&2097152)s=e.getToken()===2162700?z(e,n,t,u,1,d,g,i,l):H(e,n,t,u,1,d,g,i,l),E=e.getToken(),E!==1077936155&&E!==o&&E!==18?(e.destructible&8&&f(e,71),s=F(e,n,u,s,d,0,C),h|=e.assignable&2?16:0,(e.getToken()&4194304)===4194304?(e.getToken()!==1077936155&&(h|=16),s=I(e,n,u,d,g,C,s)):((e.getToken()&8388608)===8388608&&(s=p(e,n,u,1,C,4,E,s)),r(e,n|8192,22)&&(s=u2(e,n,u,s,C)),h|=e.assignable&2?16:32)):h|=o===1074790415&&E!==1077936155?16:e.destructible;else{h|=32,s=X(e,n,u,1,d,1);let{tokenStart:b}=e,D=e.getToken();return D===1077936155?(e.assignable&2&&f(e,26),s=I(e,n,u,d,g,b,s),h|=16):(D===18?h|=16:D!==o&&(s=I(e,n,u,d,g,b,s)),h|=e.assignable&1?32:16),e.destructible=h,e.getToken()!==o&&e.getToken()!==18&&f(e,161),e.finishNode({type:g?"RestElement":"SpreadElement",argument:s},a)}if(e.getToken()!==o)if(i&1&&(h|=c?16:32),r(e,n|8192,1077936155)){h&16&&f(e,26),$(e,s);let b=L(e,n,u,1,d,e.tokenStart);s=e.finishNode(g?{type:"AssignmentPattern",left:s,right:b}:{type:"AssignmentExpression",left:s,operator:"=",right:b},C),h=16}else h|=16;return e.destructible=h,e.finishNode({type:g?"RestElement":"SpreadElement",argument:s},a)}function K(e,n,t,u,o,i){var a;let l=2883584|((u&64)===0?4325376:0);n=(n|l)^l|(u&8?262144:0)|(u&16?524288:0)|(u&64?4194304:0)|65536|8388608|16777216;let c=n&16?q(l2(),512):void 0,d=nu(e,(n|2097152)&-268435457,c,t,u,1,o);c&&(c=q(c,128));let g=J2(e,n&-301992961|8388608|1048576,c,t,0,void 0,(a=c==null?void 0:c.parent)==null?void 0:a.scopeError);return e.finishNode({type:"FunctionExpression",params:d,body:g,async:(u&16)>0,generator:(u&8)>0,id:null},i)}function eu(e,n,t,u,o){let i=z(e,n,void 0,t,u,o,0,2,0);return e.destructible&64&&f(e,63),e.destructible&8&&f(e,62),i}function z(e,n,t,u,o,i,l,c,d){let{tokenStart:g}=e;k(e,n);let a=[],s=0,h=0;for(n=(n|33554432)^33554432;e.getToken()!==1074790415;){let{tokenValue:C,tokenStart:E}=e,b=e.getToken();if(b===14)a.push(g2(e,n,t,u,1074790415,c,d,0,i,l));else{let D=0,R=null,y;if(e.getToken()&143360||e.getToken()===-2147483528||e.getToken()===-2147483527)if(e.getToken()===-2147483527&&(s|=16),R=N(e,n),e.getToken()===18||e.getToken()===1074790415||e.getToken()===1077936155)if(D|=4,n&256&&(b&537079808)===537079808?s|=16:P2(e,n,c,b,0),t&&Y(e,n,t,C,c,d),r(e,n|8192,1077936155)){s|=8;let w=L(e,n,u,1,i,e.tokenStart);s|=e.destructible&256?256:0|e.destructible&128?128:0,y=e.finishNode({type:"AssignmentPattern",left:n&134217728?Object.assign({},R):R,right:w},E)}else s|=(b===209006?128:0)|(b===-2147483528?16:0),y=n&134217728?Object.assign({},R):R;else if(r(e,n|8192,21)){let{tokenStart:w}=e;if(C==="__proto__"&&h++,e.getToken()&143360){let k2=e.getToken(),Z=e.tokenValue;y=j(e,n,u,c,0,1,i,1,w);let W=e.getToken();y=F(e,n,u,y,i,0,w),e.getToken()===18||e.getToken()===1074790415?W===1077936155||W===1074790415||W===18?(s|=e.destructible&128?128:0,e.assignable&2?s|=16:t&&(k2&143360)===143360&&Y(e,n,t,Z,c,d)):s|=e.assignable&1?32:16:(e.getToken()&4194304)===4194304?(e.assignable&2?s|=16:W!==1077936155?s|=32:t&&Y(e,n,t,Z,c,d),y=I(e,n,u,i,l,w,y)):(s|=16,(e.getToken()&8388608)===8388608&&(y=p(e,n,u,1,w,4,W,y)),r(e,n|8192,22)&&(y=u2(e,n,u,y,w)))}else(e.getToken()&2097152)===2097152?(y=e.getToken()===69271571?H(e,n,t,u,0,i,l,c,d):z(e,n,t,u,0,i,l,c,d),s=e.destructible,e.assignable=s&16?2:1,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(s|=16):e.destructible&8?f(e,71):(y=F(e,n,u,y,i,0,w),s=e.assignable&2?16:0,(e.getToken()&4194304)===4194304?y=S2(e,n,u,i,l,w,y):((e.getToken()&8388608)===8388608&&(y=p(e,n,u,1,w,4,b,y)),r(e,n|8192,22)&&(y=u2(e,n,u,y,w)),s|=e.assignable&2?16:32))):(y=X(e,n,u,1,i,1),s|=e.assignable&1?32:16,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(s|=16):(y=F(e,n,u,y,i,0,w),s=e.assignable&2?16:0,e.getToken()!==18&&b!==1074790415&&(e.getToken()!==1077936155&&(s|=16),y=I(e,n,u,i,l,w,y))))}else e.getToken()===69271571?(s|=16,b===209005&&(D|=16),D|=(b===209008?256:b===209009?512:1)|2,R=c2(e,n,u,i),s|=e.assignable,y=K(e,n,u,D,i,e.tokenStart)):e.getToken()&143360?(s|=16,b===-2147483528&&f(e,95),b===209005?(e.flags&1&&f(e,132),D|=17):b===209008?D|=256:b===209009?D|=512:f(e,0),R=N(e,n),y=K(e,n,u,D,i,e.tokenStart)):e.getToken()===67174411?(s|=16,D|=1,y=K(e,n,u,D,i,e.tokenStart)):e.getToken()===8391476?(s|=16,b===209008?f(e,42):b===209009?f(e,43):b!==209005&&f(e,30,S[52]),k(e,n),D|=9|(b===209005?16:0),e.getToken()&143360?R=N(e,n):(e.getToken()&134217728)===134217728?R=v(e,n):e.getToken()===69271571?(D|=2,R=c2(e,n,u,i),s|=e.assignable):f(e,30,S[e.getToken()&255]),y=K(e,n,u,D,i,e.tokenStart)):(e.getToken()&134217728)===134217728?(b===209005&&(D|=16),D|=b===209008?256:b===209009?512:1,s|=16,R=v(e,n),y=K(e,n,u,D,i,e.tokenStart)):f(e,133);else if((e.getToken()&134217728)===134217728)if(R=v(e,n),e.getToken()===21){A(e,n|8192,21);let{tokenStart:w}=e;if(C==="__proto__"&&h++,e.getToken()&143360){y=j(e,n,u,c,0,1,i,1,w);let{tokenValue:k2}=e,Z=e.getToken();y=F(e,n,u,y,i,0,w),e.getToken()===18||e.getToken()===1074790415?Z===1077936155||Z===1074790415||Z===18?e.assignable&2?s|=16:t&&Y(e,n,t,k2,c,d):s|=e.assignable&1?32:16:e.getToken()===1077936155?(e.assignable&2&&(s|=16),y=I(e,n,u,i,l,w,y)):(s|=16,y=I(e,n,u,i,l,w,y))}else(e.getToken()&2097152)===2097152?(y=e.getToken()===69271571?H(e,n,t,u,0,i,l,c,d):z(e,n,t,u,0,i,l,c,d),s=e.destructible,e.assignable=s&16?2:1,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(s|=16):(e.destructible&8)!==8&&(y=F(e,n,u,y,i,0,w),s=e.assignable&2?16:0,(e.getToken()&4194304)===4194304?y=S2(e,n,u,i,l,w,y):((e.getToken()&8388608)===8388608&&(y=p(e,n,u,1,w,4,b,y)),r(e,n|8192,22)&&(y=u2(e,n,u,y,w)),s|=e.assignable&2?16:32))):(y=X(e,n,u,1,0,1),s|=e.assignable&1?32:16,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(s|=16):(y=F(e,n,u,y,i,0,w),s=e.assignable&1?0:16,e.getToken()!==18&&e.getToken()!==1074790415&&(e.getToken()!==1077936155&&(s|=16),y=I(e,n,u,i,l,w,y))))}else e.getToken()===67174411?(D|=1,y=K(e,n,u,D,i,e.tokenStart),s=e.assignable|16):f(e,134);else if(e.getToken()===69271571)if(R=c2(e,n,u,i),s|=e.destructible&256?256:0,D|=2,e.getToken()===21){k(e,n|8192);let{tokenStart:w,tokenValue:k2}=e,Z=e.getToken();if(e.getToken()&143360){y=j(e,n,u,c,0,1,i,1,w);let W=e.getToken();y=F(e,n,u,y,i,0,w),(e.getToken()&4194304)===4194304?(s|=e.assignable&2?16:W===1077936155?0:32,y=S2(e,n,u,i,l,w,y)):e.getToken()===18||e.getToken()===1074790415?W===1077936155||W===1074790415||W===18?e.assignable&2?s|=16:t&&(Z&143360)===143360&&Y(e,n,t,k2,c,d):s|=e.assignable&1?32:16:(s|=16,y=I(e,n,u,i,l,w,y))}else(e.getToken()&2097152)===2097152?(y=e.getToken()===69271571?H(e,n,t,u,0,i,l,c,d):z(e,n,t,u,0,i,l,c,d),s=e.destructible,e.assignable=s&16?2:1,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(s|=16):s&8?f(e,62):(y=F(e,n,u,y,i,0,w),s=e.assignable&2?s|16:0,(e.getToken()&4194304)===4194304?(e.getToken()!==1077936155&&(s|=16),y=S2(e,n,u,i,l,w,y)):((e.getToken()&8388608)===8388608&&(y=p(e,n,u,1,w,4,b,y)),r(e,n|8192,22)&&(y=u2(e,n,u,y,w)),s|=e.assignable&2?16:32))):(y=X(e,n,u,1,0,1),s|=e.assignable&1?32:16,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(s|=16):(y=F(e,n,u,y,i,0,w),s=e.assignable&1?0:16,e.getToken()!==18&&e.getToken()!==1074790415&&(e.getToken()!==1077936155&&(s|=16),y=I(e,n,u,i,l,w,y))))}else e.getToken()===67174411?(D|=1,y=K(e,n,u,D,i,e.tokenStart),s=16):f(e,44);else if(b===8391476)if(A(e,n|8192,8391476),D|=8,e.getToken()&143360){let w=e.getToken();R=N(e,n),D|=1,e.getToken()===67174411?(s|=16,y=K(e,n,u,D,i,e.tokenStart)):J(e.tokenStart,e.currentLocation,w===209005?46:w===209008||e.getToken()===209009?45:47,S[w&255])}else(e.getToken()&134217728)===134217728?(s|=16,R=v(e,n),D|=1,y=K(e,n,u,D,i,e.tokenStart)):e.getToken()===69271571?(s|=16,D|=3,R=c2(e,n,u,i),y=K(e,n,u,D,i,e.tokenStart)):f(e,126);else f(e,30,S[b&255]);s|=e.destructible&128?128:0,e.destructible=s,a.push(e.finishNode({type:"Property",key:R,value:y,kind:D&768?D&512?"set":"get":"init",computed:(D&2)>0,method:(D&1)>0,shorthand:(D&4)>0},E))}if(s|=e.destructible,e.getToken()!==18)break;k(e,n)}A(e,n,1074790415),h>1&&(s|=64);let T=e.finishNode({type:l?"ObjectPattern":"ObjectExpression",properties:a},g);return!o&&e.getToken()&4194304?en(e,n,u,s,i,l,g,T):(e.destructible=s,T)}function nu(e,n,t,u,o,i,l){A(e,n,67174411);let c=[];if(e.flags=(e.flags|128)^128,e.getToken()===16)return o&512&&f(e,37,"Setter","one",""),k(e,n),c;o&256&&f(e,37,"Getter","no","s"),o&512&&e.getToken()===14&&f(e,38),n=(n|33554432)^33554432;let d=0,g=0;for(;e.getToken()!==18;){let a=null,{tokenStart:s}=e;if(e.getToken()&143360?((n&256)===0&&((e.getToken()&36864)===36864&&(e.flags|=256),(e.getToken()&537079808)===537079808&&(e.flags|=512)),a=ae(e,n,t,o|1,0)):(e.getToken()===2162700?a=z(e,n,t,u,1,l,1,i,0):e.getToken()===69271571?a=H(e,n,t,u,1,l,1,i,0):e.getToken()===14&&(a=g2(e,n,t,u,16,i,0,0,l,1)),g=1,e.destructible&48&&f(e,50)),e.getToken()===1077936155){k(e,n|8192),g=1;let h=L(e,n,u,1,0,e.tokenStart);a=e.finishNode({type:"AssignmentPattern",left:a,right:h},s)}if(d++,c.push(a),!r(e,n,18)||e.getToken()===16)break}return o&512&&d!==1&&f(e,37,"Setter","one",""),t&&t.scopeError&&V2(t.scopeError),g&&(e.flags|=128),A(e,n,16),c}function c2(e,n,t,u){k(e,n|8192);let o=L(e,(n|33554432)^33554432,t,1,u,e.tokenStart);return A(e,n,20),o}function tu(e,n,t,u,o,i,l){e.flags=(e.flags|128)^128;let c=e.tokenStart;k(e,n|8192|67108864);let d=n&16?q(l2(),1024):void 0;if(n=(n|33554432)^33554432,r(e,n,16))return O2(e,n,d,t,[],u,0,l);let g=0;e.destructible&=-385;let a,s=[],h=0,T=0,C=0,E=e.tokenStart;for(e.assignable=1;e.getToken()!==16;){let{tokenStart:b}=e,D=e.getToken();if(D&143360)d&&n2(e,n,d,e.tokenValue,1,0),(D&537079808)===537079808?T=1:(D&36864)===36864&&(C=1),a=j(e,n,t,o,0,1,1,1,b),e.getToken()===16||e.getToken()===18?e.assignable&2&&(g|=16,T=1):(e.getToken()===1077936155?T=1:g|=16,a=F(e,n,t,a,1,0,b),e.getToken()!==16&&e.getToken()!==18&&(a=I(e,n,t,1,0,b,a)));else if((D&2097152)===2097152)a=D===2162700?z(e,n|67108864,d,t,0,1,0,o,i):H(e,n|67108864,d,t,0,1,0,o,i),g|=e.destructible,T=1,e.assignable=2,e.getToken()!==16&&e.getToken()!==18&&(g&8&&f(e,122),a=F(e,n,t,a,0,0,b),g|=16,e.getToken()!==16&&e.getToken()!==18&&(a=I(e,n,t,0,0,b,a)));else if(D===14){a=g2(e,n,d,t,16,o,i,0,1,0),e.destructible&16&&f(e,74),T=1,h&&(e.getToken()===16||e.getToken()===18)&&s.push(a),g|=8;break}else{if(g|=16,a=L(e,n,t,1,1,b),h&&(e.getToken()===16||e.getToken()===18)&&s.push(a),e.getToken()===18&&(h||(h=1,s=[a])),h){for(;r(e,n|8192,18);)s.push(L(e,n,t,1,1,e.tokenStart));e.assignable=2,a=e.finishNode({type:"SequenceExpression",expressions:s},E)}return A(e,n,16),e.destructible=g,n&32?e.finishNode({type:"ParenthesizedExpression",expression:a},c):a}if(h&&(e.getToken()===16||e.getToken()===18)&&s.push(a),!r(e,n|8192,18))break;if(h||(h=1,s=[a]),e.getToken()===16){g|=8;break}}return h&&(e.assignable=2,a=e.finishNode({type:"SequenceExpression",expressions:s},E)),A(e,n,16),g&16&&g&8&&f(e,151),g|=e.destructible&256?256:0|e.destructible&128?128:0,e.getToken()===10?(g&48&&f(e,49),n&524800&&g&128&&f(e,31),n&262400&&g&256&&f(e,32),T&&(e.flags|=128),C&&(e.flags|=256),O2(e,n,d,t,h?s:[a],u,0,l)):(g&64&&f(e,63),g&8&&f(e,144),e.destructible=(e.destructible|256)^256|g,n&32?e.finishNode({type:"ParenthesizedExpression",expression:a},c):a)}function ce(e,n,t){let{tokenStart:u}=e,{tokenValue:o}=e,i=0,l=0;(e.getToken()&537079808)===537079808?i=1:(e.getToken()&36864)===36864&&(l=1);let c=N(e,n);if(e.assignable=1,e.getToken()===10){let d;return n&16&&(d=M2(e,n,o)),i&&(e.flags|=128),l&&(e.flags|=256),E2(e,n,d,t,[c],0,u)}return c}function _2(e,n,t,u,o,i,l,c,d){l||f(e,57),i&&f(e,51),e.flags&=-129;let g=n&16?M2(e,n,u):void 0;return E2(e,n,g,t,[o],c,d)}function O2(e,n,t,u,o,i,l,c){i||f(e,57);for(let d=0;d0&&e.tokenValue==="constructor"&&f(e,109),e.getToken()===1074790415&&f(e,108),r(e,n,1074790417)){E>0&&f(e,120);continue}h.push(on(e,n,u,g,t,i,T,0,c,E>0?C:e.tokenStart))}return A(e,l&8?n|8192:n,1074790415),g&&at(g),e.flags=e.flags&-33|s,e.finishNode({type:"ClassBody",body:h},d)}function on(e,n,t,u,o,i,l,c,d,g){let a=c?32:0,s=null,h=e.getToken();if(h&176128||h===-2147483528)switch(s=N(e,n),h){case 36970:if(!c&&e.getToken()!==67174411&&(e.getToken()&1048576)!==1048576&&e.getToken()!==1077936155)return on(e,n,t,u,o,i,l,1,d,g);break;case 209005:if(e.getToken()!==67174411&&(e.flags&1)===0){if((e.getToken()&1073741824)===1073741824)return h2(e,n,u,s,a,l,g);a|=16|(ne(e,n,8391476)?8:0)}break;case 209008:if(e.getToken()!==67174411){if((e.getToken()&1073741824)===1073741824)return h2(e,n,u,s,a,l,g);a|=256}break;case 209009:if(e.getToken()!==67174411){if((e.getToken()&1073741824)===1073741824)return h2(e,n,u,s,a,l,g);a|=512}break;case 12402:if(e.getToken()!==67174411&&(e.flags&1)===0){if((e.getToken()&1073741824)===1073741824)return h2(e,n,u,s,a,l,g);n&1&&(a|=1024)}break}else if(h===69271571)a|=2,s=c2(e,o,u,d);else if((h&134217728)===134217728)s=v(e,n);else if(h===8391476)a|=8,k(e,n);else if(e.getToken()===130)a|=8192,s=R2(e,n|4096,u,768);else if((e.getToken()&1073741824)===1073741824)a|=128;else{if(c&&h===2162700)return qt(e,n|4096,t,u,g);h===-2147483527?(s=N(e,n),e.getToken()!==67174411&&f(e,30,S[e.getToken()&255])):f(e,30,S[e.getToken()&255])}if(a&1816&&(e.getToken()&143360||e.getToken()===-2147483528||e.getToken()===-2147483527?s=N(e,n):(e.getToken()&134217728)===134217728?s=v(e,n):e.getToken()===69271571?(a|=2,s=c2(e,n,u,0)):e.getToken()===130?(a|=8192,s=R2(e,n,u,a)):f(e,135)),(a&2)===0&&(e.tokenValue==="constructor"?((e.getToken()&1073741824)===1073741824?f(e,129):(a&32)===0&&e.getToken()===67174411&&(a&920?f(e,53,"accessor"):(n&131072)===0&&(e.flags&32?f(e,54):e.flags|=32)),a|=64):(a&8192)===0&&a&32&&e.tokenValue==="prototype"&&f(e,52)),a&1024||e.getToken()!==67174411&&(a&768)===0)return h2(e,n,u,s,a,l,g);let T=K(e,n|4096,u,a,d,e.tokenStart);return e.finishNode({type:"MethodDefinition",kind:(a&32)===0&&a&64?"constructor":a&256?"get":a&512?"set":"method",static:(a&32)>0,computed:(a&2)>0,key:s,value:T,...n&1?{decorators:l}:null},g)}function R2(e,n,t,u){let{tokenStart:o}=e;k(e,n);let{tokenValue:i}=e;return i==="constructor"&&f(e,128),n&16&&(t||f(e,4,i),u?ct(e,t,i,u):dt(e,t,i)),k(e,n),e.finishNode({type:"PrivateIdentifier",name:i},o)}function h2(e,n,t,u,o,i,l){let c=null;if(o&8&&f(e,0),e.getToken()===1077936155){k(e,n|8192);let{tokenStart:d}=e;e.getToken()===537079927&&f(e,119);let g=2883584|((o&64)===0?4325376:0);n=(n|g)^g|(o&8?262144:0)|(o&16?524288:0)|(o&64?4194304:0)|65536|16777216,c=j(e,n|4096,t,2,0,1,0,1,d),((e.getToken()&1073741824)!==1073741824||(e.getToken()&4194304)===4194304)&&(c=F(e,n|4096,t,c,0,0,d),c=I(e,n|4096,t,0,0,d,c))}return U(e,n),e.finishNode({type:o&1024?"AccessorProperty":"PropertyDefinition",key:u,value:c,static:(o&32)>0,computed:(o&2)>0,...n&1?{decorators:i}:null},l)}function ln(e,n,t,u,o,i){if(e.getToken()&143360||(n&256)===0&&e.getToken()===-2147483527)return ae(e,n,t,o,i);(e.getToken()&2097152)!==2097152&&f(e,30,S[e.getToken()&255]);let l=e.getToken()===69271571?H(e,n,t,u,1,0,1,o,i):z(e,n,t,u,1,0,1,o,i);return e.destructible&16&&f(e,50),e.destructible&32&&f(e,50),l}function ae(e,n,t,u,o){let i=e.getToken();n&256&&((i&537079808)===537079808?f(e,119):((i&36864)===36864||i===-2147483527)&&f(e,118)),(i&20480)===20480&&f(e,102),i===241771&&(n&262144&&f(e,32),n&512&&f(e,111)),(i&255)===73&&u&24&&f(e,100),i===209006&&(n&524288&&f(e,176),n&512&&f(e,110));let{tokenValue:l,tokenStart:c}=e;return k(e,n),t&&Y(e,n,t,l,u,o),e.finishNode({type:"Identifier",name:l},c)}function X2(e,n,t,u,o){if(u||A(e,n,8456256),e.getToken()===8390721){let d=cu(e,n,o),[g,a]=gu(e,n,t,u);return e.finishNode({type:"JSXFragment",openingFragment:d,children:g,closingFragment:a},o)}e.getToken()===8457014&&f(e,30,S[e.getToken()&255]);let i=null,l=[],c=hu(e,n,t,u,o);if(!c.selfClosing){[l,i]=su(e,n,t,u);let d=v2(i.name);v2(c.name)!==d&&f(e,155,d)}return e.finishNode({type:"JSXElement",children:l,openingElement:c,closingElement:i},o)}function cu(e,n,t){return T2(e,n),e.finishNode({type:"JSXOpeningFragment"},t)}function du(e,n,t,u){A(e,n,8457014);let o=cn(e,n);return e.getToken()!==8390721&&f(e,25,S[65]),t?T2(e,n):k(e,n),e.finishNode({type:"JSXClosingElement",name:o},u)}function au(e,n,t,u){return A(e,n,8457014),e.getToken()!==8390721&&f(e,25,S[65]),t?T2(e,n):k(e,n),e.finishNode({type:"JSXClosingFragment"},u)}function su(e,n,t,u){let o=[];for(;;){let i=mu(e,n,t,u);if(i.type==="JSXClosingElement")return[o,i];o.push(i)}}function gu(e,n,t,u){let o=[];for(;;){let i=ku(e,n,t,u);if(i.type==="JSXClosingFragment")return[o,i];o.push(i)}}function mu(e,n,t,u){if(e.getToken()===137)return fn(e,n);if(e.getToken()===2162700)return se(e,n,t,1,0);if(e.getToken()===8456256){let{tokenStart:o}=e;return k(e,n),e.getToken()===8457014?du(e,n,u,o):X2(e,n,t,1,o)}f(e,0)}function ku(e,n,t,u){if(e.getToken()===137)return fn(e,n);if(e.getToken()===2162700)return se(e,n,t,1,0);if(e.getToken()===8456256){let{tokenStart:o}=e;return k(e,n),e.getToken()===8457014?au(e,n,u,o):X2(e,n,t,1,o)}f(e,0)}function fn(e,n){let t=e.tokenStart;k(e,n);let u={type:"JSXText",value:e.tokenValue};return n&128&&(u.raw=e.tokenRaw),e.finishNode(u,t)}function hu(e,n,t,u,o){(e.getToken()&143360)!==143360&&(e.getToken()&4096)!==4096&&f(e,0);let i=cn(e,n),l=Au(e,n,t),c=e.getToken()===8457014;return c&&A(e,n,8457014),e.getToken()!==8390721&&f(e,25,S[65]),u||!c?T2(e,n):k(e,n),e.finishNode({type:"JSXOpeningElement",name:i,attributes:l,selfClosing:c},o)}function cn(e,n){let{tokenStart:t}=e;K2(e);let u=H2(e,n);if(e.getToken()===21)return dn(e,n,u,t);for(;r(e,n,67108877);)K2(e),u=yu(e,n,u,t);return u}function yu(e,n,t,u){let o=H2(e,n);return e.finishNode({type:"JSXMemberExpression",object:t,property:o},u)}function Au(e,n,t){let u=[];for(;e.getToken()!==8457014&&e.getToken()!==8390721&&e.getToken()!==1048576;)u.push(bu(e,n,t));return u}function Tu(e,n,t){let u=e.tokenStart;k(e,n),A(e,n,14);let o=L(e,n,t,1,0,e.tokenStart);return A(e,n,1074790415),e.finishNode({type:"JSXSpreadAttribute",argument:o},u)}function bu(e,n,t){let{tokenStart:u}=e;if(e.getToken()===2162700)return Tu(e,n,t);K2(e);let o=null,i=H2(e,n);if(e.getToken()===21&&(i=dn(e,n,i,u)),e.getToken()===1077936155)switch(ut(e,n)){case 134283267:o=v(e,n);break;case 8456256:o=X2(e,n,t,0,e.tokenStart);break;case 2162700:o=se(e,n,t,0,1);break;default:f(e,154)}return e.finishNode({type:"JSXAttribute",value:o,name:i},u)}function dn(e,n,t,u){A(e,n,21);let o=H2(e,n);return e.finishNode({type:"JSXNamespacedName",namespace:t,name:o},u)}function se(e,n,t,u,o){let{tokenStart:i}=e;k(e,n|8192);let{tokenStart:l}=e;if(e.getToken()===14)return Du(e,n,t,i);let c=null;return e.getToken()===1074790415?(o&&f(e,157),c=Cu(e,{index:e.startIndex,line:e.startLine,column:e.startColumn})):c=L(e,n,t,1,0,l),e.getToken()!==1074790415&&f(e,25,S[15]),u?T2(e,n):k(e,n),e.finishNode({type:"JSXExpressionContainer",expression:c},i)}function Du(e,n,t,u){A(e,n,14);let o=L(e,n,t,1,0,e.tokenStart);return A(e,n,1074790415),e.finishNode({type:"JSXSpreadChild",expression:o},u)}function Cu(e,n){return e.finishNode({type:"JSXEmptyExpression"},n,e.tokenStart)}function H2(e,n){let t=e.tokenStart;e.getToken()&143360||f(e,30,S[e.getToken()&255]);let{tokenValue:u}=e;return k(e,n),e.finishNode({type:"JSXIdentifier",name:u},t)}function an(e,n){return kt(e,n,0)}function Eu(e,n){let t=new SyntaxError(e+" ("+n.loc.start.line+":"+n.loc.start.column+")");return Object.assign(t,n)}var sn=Eu;function ru(e){let n=[];for(let t of e)try{return t()}catch(u){n.push(u)}throw Object.assign(new Error("All combinations failed"),{errors:n})}var gn=ru;var wu=(e,n,t)=>{if(!(e&&n==null)){if(n.findLast)return n.findLast(t);for(let u=n.length-1;u>=0;u--){let o=n[u];if(t(o,u,n))return o}}},mn=wu;var Bu=(e,n,t)=>{if(!(e&&n==null))return Array.isArray(n)||typeof n=="string"?n[t<0?n.length+t:t]:n.at(t)},kn=Bu;var Su=new Proxy(()=>{},{get:()=>Su});function M(e){var u,o,i;let n=((u=e.range)==null?void 0:u[0])??e.start,t=(i=((o=e.declaration)==null?void 0:o.decorators)??e.decorators)==null?void 0:i[0];return t?Math.min(M(t),n):n}function O(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function Fu(e){let n=new Set(e);return t=>n.has(t==null?void 0:t.type)}var m2=Fu;function Nu(e,n,t){let u=e.originalText.slice(n,t);for(let o of e[Symbol.for("comments")]){let i=M(o);if(i>t)break;let l=O(o);if(l1&&n.every(t=>t.trimStart()[0]==="*")}var ke=new WeakMap;function vu(e){return ke.has(e)||ke.set(e,Pu(e)),ke.get(e)}var he=vu;function Ou(e){if(e.length<2)return;let n;for(let t=e.length-1;t>=0;t--){let u=e[t];if(n&&O(u)===M(n)&&he(u)&&he(n)&&(e.splice(t+1,1),u.value+="*//*"+n.value,u.range=[M(u),O(n)]),!ge(u)&&!f2(u))throw new TypeError(`Unknown comment type: "${u.type}".`);n=u}}var An=Ou;var r2=null;function w2(e){if(r2!==null&&typeof r2.property){let n=r2;return r2=w2.prototype=null,n}return r2=w2.prototype=e??Object.create(null),new w2}var Ru=10;for(let e=0;e<=Ru;e++)w2();function ye(e){return w2(e)}function Vu(e,n="type"){ye(e);function t(u){let o=u[n],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:u});return i}return t}var Tn=Vu;var bn={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","typeParameters","typeArguments","arguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","typeParameters","typeArguments","arguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["decorators","key","value"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","typeParameters","typeArguments","arguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],ImportAttribute:["key","value"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["nameType","typeAnnotation","key","constraint"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","body"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:["body"],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGRoot:["node"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var Mu=Tn(bn),Dn=Mu;function Ae(e,n){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let u=0;u{switch(d.type){case"ParenthesizedExpression":{let{expression:g}=d,a=M(d);if(g.type==="TypeCastExpression")return g.range=[a,O(d)],g;let s=!1;if(!i){if(!l){l=[];for(let T of o)yn(T)&&l.push(O(T))}let h=mn(!1,l,T=>T<=a);s=h&&u.slice(h,a).trim().length===0}if(!s)return g.extra={...g.extra,parenthesized:!0},g;break}case"LogicalExpression":if(rn(d))return Te(d);break;case"TemplateLiteral":if(d.expressions.length!==d.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(t==="flow"||t==="hermes"||t==="espree"||t==="typescript"||i){let g=M(d)+1,a=O(d)-(d.tail?1:2);d.range=[g,a]}break;case"VariableDeclaration":{let g=kn(!1,d.declarations,-1);g!=null&&g.init&&u[O(g)]!==";"&&(d.range=[M(d),O(g)]);break}case"TSParenthesizedType":return d.typeAnnotation;case"TSTypeParameter":En(d);break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(d.types.length===1)return d.types[0];break;case"TSMappedType":if(!d.constraint&&!d.key){let{name:g,constraint:a}=En(d.typeParameter);d.constraint=a,d.key=g,delete d.typeParameter}break;case"TSEnumDeclaration":if(!d.body){let g=O(d.id),{members:a}=d,s=hn({originalText:u,[Symbol.for("comments")]:o},g,a[0]?M(a[0]):O(d)),h=g+s.indexOf("{");d.body={type:"TSEnumBody",members:a,range:[h,O(d)]},delete d.members}break;case"ImportExpression":t==="hermes"&&d.attributes&&!d.options&&(d.options=d.attributes);break}});let c=e.type==="File"?e.program:e;return c.interpreter&&(o.unshift(c.interpreter),delete c.interpreter),i&&e.hashbang&&(o.unshift(e.hashbang),delete e.hashbang),e.type==="Program"&&(e.range=[0,u.length]),e}function En(e){if(e.type==="TSTypeParameter"&&typeof e.name=="string"){let n=M(e);e.name={type:"Identifier",name:e.name,range:[n,n+e.name.length]}}return e}function rn(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function Te(e){return rn(e)?Te({type:"LogicalExpression",operator:e.operator,left:Te({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[M(e.left),O(e.right.left)]}),right:e.right.right,range:[M(e),O(e)]}):e}var wn=Uu;var Ju=/\*\/$/,_u=/^\/\*\*?/,ju=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Xu=/(^|\s+)\/\/([^\n\r]*)/g,Bn=/^(\r?\n)+/,Hu=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Sn=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,zu=/(\r?\n|^) *\* ?/g,Ku=[];function Fn(e){let n=e.match(ju);return n?n[0].trimStart():""}function Nn(e){let n=` -`;e=G(!1,e.replace(_u,"").replace(Ju,""),zu,"$1");let t="";for(;t!==e;)t=e,e=G(!1,e,Hu,`${n}$1 $2${n}`);e=e.replace(Bn,"").trimEnd();let u=Object.create(null),o=G(!1,e,Sn,"").replace(Bn,"").trimEnd(),i;for(;i=Sn.exec(e);){let l=G(!1,i[2],Xu,"");if(typeof u[i[1]]=="string"||Array.isArray(u[i[1]])){let c=u[i[1]];u[i[1]]=[...Ku,...Array.isArray(c)?c:[c],l]}else u[i[1]]=l}return{comments:o,pragmas:u}}var Ln=["noformat","noprettier"],In=["format","prettier"];function $u(e){if(!e.startsWith("#!"))return"";let n=e.indexOf(` -`);return n===-1?e:e.slice(0,n)}var qn=$u;function Pn(e){let n=qn(e);n&&(e=e.slice(n.length+1));let t=Fn(e),{pragmas:u,comments:o}=Nn(t);return{shebang:n,text:e,pragmas:u,comments:o}}function vn(e){let{pragmas:n}=Pn(e);return In.some(t=>Object.prototype.hasOwnProperty.call(n,t))}function On(e){let{pragmas:n}=Pn(e);return Ln.some(t=>Object.prototype.hasOwnProperty.call(n,t))}function Wu(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:vn,hasIgnorePragma:On,locStart:M,locEnd:O,...e}}var Rn=Wu;var z2="module",Vn="script",Mn=[z2,Vn];function Un(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return z2;if(/\.(?:cjs|cts)$/iu.test(e))return Vn}}var Yu={next:!0,ranges:!0,webcompat:!0,loc:!1,raw:!0,directives:!0,globalReturn:!0,impliedStrict:!1,preserveParens:!0,lexical:!1,jsx:!0,uniqueKeyInPattern:!1};function Qu(e,n){let t=[],u=an(e,{...Yu,module:n===z2,onComment:t});return u.comments=t,u}function Zu(e){let{description:n,loc:t}=e;return t?sn(n,{loc:{start:{line:t.start.line,column:t.start.column+1},end:{line:t.end.line,column:t.end.column+1}},cause:e}):e}function Gu(e,n){let t=Un(n==null?void 0:n.filepath),u=(t?[t]:Mn).map(i=>()=>Qu(e,i)),o;try{o=gn(u)}catch({errors:[i]}){throw Zu(i)}return wn(o,{parser:"meriyah",text:e})}var xu=Rn(Gu);var w0=De;export{w0 as default,be as parsers}; diff --git a/node_modules/prettier/plugins/postcss.d.ts b/node_modules/prettier/plugins/postcss.d.ts deleted file mode 100644 index 493d3f4..0000000 --- a/node_modules/prettier/plugins/postcss.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Parser } from "../index.js"; - -export declare const parsers: { - css: Parser; - less: Parser; - scss: Parser; -}; diff --git a/node_modules/prettier/plugins/postcss.js b/node_modules/prettier/plugins/postcss.js deleted file mode 100644 index 528ea52..0000000 --- a/node_modules/prettier/plugins/postcss.js +++ /dev/null @@ -1,54 +0,0 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.postcss=e()}})(function(){"use strict";var xl=Object.create;var Tt=Object.defineProperty;var bl=Object.getOwnPropertyDescriptor;var _l=Object.getOwnPropertyNames;var El=Object.getPrototypeOf,kl=Object.prototype.hasOwnProperty;var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),tn=(t,e)=>{for(var s in e)Tt(t,s,{get:e[s],enumerable:!0})},rn=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of _l(e))!kl.call(t,n)&&n!==s&&Tt(t,n,{get:()=>e[n],enumerable:!(r=bl(e,n))||r.enumerable});return t};var be=(t,e,s)=>(s=t!=null?xl(El(t)):{},rn(e||!t||!t.__esModule?Tt(s,"default",{value:t,enumerable:!0}):s,t)),Sl=t=>rn(Tt({},"__esModule",{value:!0}),t);var Oi=g((Rv,is)=>{var _=String,Ti=function(){return{isColorSupported:!1,reset:_,bold:_,dim:_,italic:_,underline:_,inverse:_,hidden:_,strikethrough:_,black:_,red:_,green:_,yellow:_,blue:_,magenta:_,cyan:_,white:_,gray:_,bgBlack:_,bgRed:_,bgGreen:_,bgYellow:_,bgBlue:_,bgMagenta:_,bgCyan:_,bgWhite:_,blackBright:_,redBright:_,greenBright:_,yellowBright:_,blueBright:_,magentaBright:_,cyanBright:_,whiteBright:_,bgBlackBright:_,bgRedBright:_,bgGreenBright:_,bgYellowBright:_,bgBlueBright:_,bgMagentaBright:_,bgCyanBright:_,bgWhiteBright:_}};is.exports=Ti();is.exports.createColors=Ti});var os=g(()=>{});var Yt=g((Lv,Ni)=>{"use strict";var Ci=Oi(),Ai=os(),at=class t extends Error{constructor(e,s,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),typeof s<"u"&&typeof r<"u"&&(typeof s=="number"?(this.line=s,this.column=r):(this.line=s.line,this.column=s.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let s=this.source;e==null&&(e=Ci.isColorSupported);let r=f=>f,n=f=>f,i=f=>f;if(e){let{bold:f,gray:p,red:l}=Ci.createColors(!0);n=d=>f(l(d)),r=d=>p(d),Ai&&(i=d=>Ai(d))}let o=s.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;return o.slice(u,a).map((f,p)=>{let l=u+1+p,d=" "+(" "+l).slice(-c)+" | ";if(l===this.line){if(f.length>160){let h=20,m=Math.max(0,this.column-h),y=Math.max(this.column+h,this.endColumn+h),b=f.slice(m,y),w=r(d.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,h-1)).replace(/[^\t]/g," ");return n(">")+r(d)+i(b)+` - `+w+n("^")}let x=r(d.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(d)+i(f)+` - `+x+n("^")}return" "+r(d)+i(f)}).join(` -`)}toString(){let e=this.showSourceCode();return e&&(e=` - -`+e+` -`),this.name+": "+this.message+e}};Ni.exports=at;at.default=at});var Vt=g((Dv,Ri)=>{"use strict";var Pi={after:` -`,beforeClose:` -`,beforeComment:` -`,beforeDecl:` -`,beforeOpen:" ",beforeRule:` -`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Sc(t){return t[0].toUpperCase()+t.slice(1)}var ut=class{constructor(e){this.builder=e}atrule(e,s){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(s?";":"");this.builder(r+n+i,e)}}beforeAfter(e,s){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):s==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(` -`)){let o=this.raw(e,null,"indent");if(o.length)for(let u=0;u0&&e.nodes[s].type==="comment";)s-=1;let r=this.raw(e,"semicolon");for(let n=0;n{if(n=a.raws[s],typeof n<"u")return!1})}return typeof n>"u"&&(n=Pi[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return s=r.raws.after,s.includes(` -`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeComment(e,s){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` -`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,s){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` -`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let s;return e.walk(r=>{if(r.type!=="decl"&&(s=r.raws.between,typeof s<"u"))return!1}),s}rawBeforeRule(e){let s;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return s=r.raws.before,s.includes(` -`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawColon(e){let s;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return s=r.raws.between.replace(/[^\s:]/g,""),!1}),s}rawEmptyBody(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(s=r.raws.after,typeof s<"u"))return!1}),s}rawIndent(e){if(e.raws.indent)return e.raws.indent;let s;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(` -`);return s=i[i.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(s=r.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(e,s){let r=e[s],n=e.raws[s];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,s){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,s)}};Ri.exports=ut;ut.default=ut});var lt=g((Mv,Ii)=>{"use strict";var Tc=Vt();function as(t,e){new Tc(e).stringify(t)}Ii.exports=as;as.default=as});var zt=g((Bv,us)=>{"use strict";us.exports.isClean=Symbol("isClean");us.exports.my=Symbol("my")});var pt=g((Uv,qi)=>{"use strict";var Oc=Yt(),Cc=Vt(),Ac=lt(),{isClean:ct,my:Nc}=zt();function ls(t,e){let s=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:Array.isArray(n)?s[r]=n.map(o=>ls(o,s)):(i==="object"&&n!==null&&(n=ls(n)),s[r]=n)}return s}function J(t,e){if(e&&typeof e.offset<"u")return e.offset;let s=1,r=1,n=0;for(let i=0;ie.root().toProxy():e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&e.markDirty()),!0}}}markClean(){this[ct]=!0}markDirty(){if(this[ct]){this[ct]=!1;let e=this;for(;e=e.parent;)e[ct]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let s=this.source.start;if(e.index)s=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,i=r.slice(J(r,this.source.start),J(r,this.source.end)).indexOf(e.word);i!==-1&&(s=this.positionInside(i))}return s}positionInside(e){let s=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=J(n,this.source.start),o=i+e;for(let u=i;utypeof a=="object"&&a.toJSON?a.toJSON(null,s):a);else if(typeof u=="object"&&u.toJSON)r[o]=u.toJSON(null,s);else if(o==="source"){if(u==null)continue;let a=s.get(u.input);a==null&&(a=i,s.set(u.input,i),i++),r[o]={end:u.end,inputId:a,start:u.start}}else r[o]=u}return n&&(r.inputs=[...s.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ac){e.stringify&&(e=e.stringify);let s="";return e(this,r=>{s+=r}),s}warn(e,s,r={}){let n={node:this};for(let i in r)n[i]=r[i];return e.warn(s,n)}};qi.exports=ft;ft.default=ft});var qe=g((Fv,Li)=>{"use strict";var Pc=pt(),ht=class extends Pc{constructor(e){super(e),this.type="comment"}};Li.exports=ht;ht.default=ht});var mt=g(($v,Di)=>{"use strict";var Rc=pt(),dt=class extends Rc{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};Di.exports=dt;dt.default=dt});var le=g((Wv,Vi)=>{"use strict";var Mi=qe(),Bi=mt(),Ic=pt(),{isClean:Ui,my:Fi}=zt(),cs,$i,Wi,fs;function Gi(t){return t.map(e=>(e.nodes&&(e.nodes=Gi(e.nodes)),delete e.source,e))}function Yi(t){if(t[Ui]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Yi(e)}var V=class t extends Ic{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let s of e){let r=this.normalize(s,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let s=this.getIterator(),r,n;for(;this.indexes[s]e[s](...r.map(n=>typeof n=="function"?(i,o)=>n(i.toProxy(),o):n)):s==="every"||s==="some"?r=>e[s]((n,...i)=>r(n.toProxy(),...i)):s==="root"?()=>e.root().toProxy():s==="nodes"?e.nodes.map(r=>r.toProxy()):s==="first"||s==="last"?e[s].toProxy():e[s]:e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="name"||s==="params"||s==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,s){let r=this.index(e),n=this.normalize(s,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Bi(e)]}else if(e.selector||e.selectors)e=[new fs(e)];else if(e.name)e=[new cs(e)];else if(e.text)e=[new Mi(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Fi]||t.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Ui]&&Yi(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&s&&typeof s.raws.before<"u"&&(n.raws.before=s.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let s of e){let r=this.normalize(s,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this.markDirty(),this}replaceValues(e,s,r){return r||(r=s,s={}),this.walkDecls(n=>{s.props&&!s.props.includes(n.prop)||s.fast&&!n.value.includes(s.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((s,r)=>{let n;try{n=e(s,r)}catch(i){throw s.addToError(i)}return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkAtRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return s(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="atrule")return s(r,n)}))}walkComments(e){return this.walk((s,r)=>{if(s.type==="comment")return e(s,r)})}walkDecls(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return s(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="decl")return s(r,n)}))}walkRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return s(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="rule")return s(r,n)}))}};V.registerParse=t=>{$i=t};V.registerRule=t=>{fs=t};V.registerAtRule=t=>{cs=t};V.registerRoot=t=>{Wi=t};Vi.exports=V;V.default=V;V.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,cs.prototype):t.type==="rule"?Object.setPrototypeOf(t,fs.prototype):t.type==="decl"?Object.setPrototypeOf(t,Bi.prototype):t.type==="comment"?Object.setPrototypeOf(t,Mi.prototype):t.type==="root"&&Object.setPrototypeOf(t,Wi.prototype),t[Fi]=!0,t.nodes&&t.nodes.forEach(e=>{V.rebuild(e)})}});var Hi=g((Gv,zi)=>{var qc="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Lc=(t,e=21)=>(s=e)=>{let r="",n=s|0;for(;n--;)r+=t[Math.random()*t.length|0];return r},Dc=(t=21)=>{let e="",s=t|0;for(;s--;)e+=qc[Math.random()*64|0];return e};zi.exports={nanoid:Dc,customAlphabet:Lc}});var ji=g(()=>{});var ps=g((zv,Ki)=>{Ki.exports=class{}});var De=g((jv,eo)=>{"use strict";var{nanoid:Mc}=Hi(),{isAbsolute:ms,resolve:ys}={},{SourceMapConsumer:Bc,SourceMapGenerator:Uc}=ji(),{fileURLToPath:Qi,pathToFileURL:Ht}={},Xi=Yt(),Fc=ps(),hs=os(),ds=Symbol("lineToIndexCache"),$c=!!(Bc&&Uc),Ji=!!(ys&&ms);function Zi(t){if(t[ds])return t[ds];let e=t.css.split(` -`),s=new Array(e.length),r=0;for(let n=0,i=e.length;n"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,s.document&&(this.document=s.document.toString()),s.from&&(!Ji||/^\w+:\/\//.test(s.from)||ms(s.from)?this.file=s.from:this.file=ys(s.from)),Ji&&$c){let r=new Fc(this.css,s);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,s,r,n={}){let i,o,u,a,c;if(s&&typeof s=="object"){let p=s,l=r;if(typeof p.offset=="number"){a=p.offset;let d=this.fromOffset(a);s=d.line,r=d.col}else s=p.line,r=p.column,a=this.fromLineAndColumn(s,r);if(typeof l.offset=="number"){u=l.offset;let d=this.fromOffset(u);o=d.line,i=d.col}else o=l.line,i=l.column,u=this.fromLineAndColumn(l.line,l.column)}else if(r)a=this.fromLineAndColumn(s,r);else{a=s;let p=this.fromOffset(a);s=p.line,r=p.col}let f=this.origin(s,r,o,i);return f?c=new Xi(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,n.plugin):c=new Xi(e,o===void 0?s:{column:r,line:s},o===void 0?r:{column:i,line:o},this.css,this.file,n.plugin),c.input={column:r,endColumn:i,endLine:o,endOffset:u,line:s,offset:a,source:this.css},this.file&&(Ht&&(c.input.url=Ht(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,s){return Zi(this)[e-1]+s-1}fromOffset(e){let s=Zi(this),r=s[s.length-1],n=0;if(e>=r)n=s.length-1;else{let i=s.length-2,o;for(;n>1),e=s[o+1])n=o+1;else{n=o;break}}return{col:e-s[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ys(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:s,line:e});if(!o.source)return!1;let u;typeof r=="number"&&(u=i.originalPositionFor({column:n,line:r}));let a;ms(o.source)?a=Ht(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Ht(this.map.mapFile));let c={column:o.column,endColumn:u&&u.column,endLine:u&&u.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Qi)c.file=Qi(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};eo.exports=Le;Le.default=Le;hs&&hs.registerInput&&hs.registerInput(Le)});var jt=g((Kv,ro)=>{"use strict";var to=le(),Me=class extends to{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};ro.exports=Me;Me.default=Me;to.registerAtRule(Me)});var Be=g((Qv,oo)=>{"use strict";var so=le(),no,io,ce=class extends so{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,s,r){let n=super.normalize(e);if(s){if(r==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let i of n)i.raws.before=s.raws.before}return n}removeChild(e,s){let r=this.index(e);return!s&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new no(new io,this,e).stringify()}};ce.registerLazyResult=t=>{no=t};ce.registerProcessor=t=>{io=t};oo.exports=ce;ce.default=ce;so.registerRoot(ce)});var gs=g((Xv,ao)=>{"use strict";var yt={comma(t){return yt.split(t,[","],!0)},space(t){let e=[" ",` -`," "];return yt.split(t,e)},split(t,e,s){let r=[],n="",i=!1,o=0,u=!1,a="",c=!1;for(let f of t)c?c=!1:f==="\\"?c=!0:u?f===a&&(u=!1):f==='"'||f==="'"?(u=!0,a=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=f;return(s||n!=="")&&r.push(n.trim()),r}};ao.exports=yt;yt.default=yt});var Kt=g((Jv,lo)=>{"use strict";var uo=le(),Wc=gs(),Ue=class extends uo{get selectors(){return Wc.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};lo.exports=Ue;Ue.default=Ue;uo.registerRule(Ue)});var Jt=g((Zv,fo)=>{"use strict";var Qt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Gc=/.[\r\n"'(/\\]/,co=/[\da-f]/i;fo.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,c,f,p,l,d,x,h=r.length,m=0,y=[],b=[];function w(){return m}function v(W){throw e.error("Unclosed "+W,m)}function R(){return b.length===0&&m>=h}function F(W){if(b.length)return b.pop();if(m>=h)return;let T=W?W.ignoreUnclosed:!1;switch(i=r.charCodeAt(m),i){case 10:case 32:case 9:case 13:case 12:{a=m;do a+=1,i=r.charCodeAt(a);while(i===32||i===10||i===9||i===13||i===12);f=["space",r.slice(m,a)],m=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let O=String.fromCharCode(i);f=[O,O,m];break}case 40:{if(x=y.length?y.pop()[1]:"",d=r.charCodeAt(m+1),x==="url"&&d!==39&&d!==34&&d!==32&&d!==10&&d!==9&&d!==12&&d!==13){a=m;do{if(p=!1,a=r.indexOf(")",a+1),a===-1)if(n||T){a=m;break}else v("bracket");for(l=a;r.charCodeAt(l-1)===92;)l-=1,p=!p}while(p);f=["brackets",r.slice(m,a+1),m,a],m=a}else a=r.indexOf(")",m+1),o=r.slice(m,a+1),a===-1||Gc.test(o)?f=["(","(",m]:(f=["brackets",o,m,a],m=a);break}case 39:case 34:{c=i===39?"'":'"',a=m;do{if(p=!1,a=r.indexOf(c,a+1),a===-1)if(n||T){a=m+1;break}else v("string");for(l=a;r.charCodeAt(l-1)===92;)l-=1,p=!p}while(p);f=["string",r.slice(m,a+1),m,a],m=a;break}case 64:{Qt.lastIndex=m+1,Qt.test(r),Qt.lastIndex===0?a=r.length-1:a=Qt.lastIndex-2,f=["at-word",r.slice(m,a+1),m,a],m=a;break}case 92:{for(a=m,u=!0;r.charCodeAt(a+1)===92;)a+=1,u=!u;if(i=r.charCodeAt(a+1),u&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(a+=1,co.test(r.charAt(a)))){for(;co.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}f=["word",r.slice(m,a+1),m,a],m=a;break}default:{i===47&&r.charCodeAt(m+1)===42?(a=r.indexOf("*/",m+2)+1,a===0&&(n||T?a=r.length:v("comment")),f=["comment",r.slice(m,a+1),m,a],m=a):(Xt.lastIndex=m+1,Xt.test(r),Xt.lastIndex===0?a=r.length-1:a=Xt.lastIndex-2,f=["word",r.slice(m,a+1),m,a],y.push(f),m=a);break}}return m++,f}function Q(W){b.push(W)}return{back:Q,endOfFile:R,nextToken:F,position:w}}});var Zt=g((ex,mo)=>{"use strict";var Yc=jt(),Vc=qe(),zc=mt(),Hc=Be(),po=Kt(),jc=Jt(),ho={empty:!0,space:!0};function Kc(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var ws=class{constructor(e){this.input=e,this.root=new Hc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let s=new Yc;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,u=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(a.length>0){for(i=a.length-1,n=a[i];n&&n[0]==="space";)n=a[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]),s.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),o&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),u&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let s=this.colon(e);if(s===!1)return;let r=0,n;for(let i=s-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let s=0,r,n,i;for(let[o,u]of e.entries()){if(n=u,i=n[0],i==="("&&(s+=1),i===")"&&(s-=1),s===0&&i===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=n}return!1}comment(e){let s=new Vc;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=n[2],s.raws.left=n[1],s.raws.right=n[3]}}createTokenizer(){this.tokenizer=jc(this.input)}decl(e,s){let r=new zc;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||Kc(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],u;for(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(i=e[c],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let l=c;l>0;l--){let d=f[l][0];if(p.trim().startsWith("!")&&d!=="space")break;p=f.pop()[1]+p}p.trim().startsWith("!")&&(r.important=!0,r.raws.important=p,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),s),r.value.includes(":")&&!s&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let s=new po;this.init(s,e[2]),s.selector="",s.raws.between="",this.current=s}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let s=this.current.nodes[this.current.nodes.length-1];s&&s.type==="rule"&&!s.raws.ownSemicolon&&(s.raws.ownSemicolon=this.spaces,this.spaces="",s.source.end=this.getPosition(e[2]),s.source.end.offset+=s.raws.ownSemicolon.length)}}getPosition(e){let s=this.input.fromOffset(e);return{column:s.col,line:s.line,offset:e}}init(e,s){this.current.push(e),e.source={input:this.input,start:this.getPosition(s)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let s=!1,r=null,n=!1,i=null,o=[],u=e[1].startsWith("--"),a=[],c=e;for(;c;){if(r=c[0],a.push(c),r==="("||r==="[")i||(i=c),o.push(r==="("?")":"]");else if(u&&n&&r==="{")i||(i=c),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(a,u);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),s=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(s=!0),o.length>0&&this.unclosedBracket(i),s&&n){if(!u)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,u)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,s,r,n){let i,o,u=r.length,a="",c=!0,f,p;for(let l=0;ld+x[1],"");e.raws[s]={raw:l,value:a}}e[s]=a}rule(e){e.pop();let s=new po;this.init(s,e[0][2]),s.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(s,"selector",e),this.current=s}spacesAndCommentsFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],!(s!=="space"&&s!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let s,r="";for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],s==="space");)r=e.pop()[1]+r;return r}stringFrom(e,s){let r="";for(let n=s;n{"use strict";var Qc=le(),Xc=De(),Jc=Zt();function er(t,e){let s=new Xc(t,e),r=new Jc(s);try{r.parse()}catch(n){throw n}return r.root}yo.exports=er;er.default=er;Qc.registerParse(er)});var go=g((rx,vs)=>{var Zc=Jt(),ef=De();vs.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,s=[],r,n;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){s.push(t[1].substring(0,t[1].indexOf(` -`))),n=t[1].substring(t[1].indexOf(` -`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new ef(n),this.tokenizer=Zc(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),vs.exports.isInlineComment.bind(this)(t)}return!1}}});var vo=g((sx,wo)=>{wo.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(u=>u[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var bo=g((nx,xo)=>{var tf=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,rf=/\.[0-9]/,sf=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&tf.test(e)===!1&&rf.test(e)===!1};xo.exports={isMixinToken:sf}});var Eo=g((ix,_o)=>{var nf=Jt(),of=/^url\((.+)\)/;_o.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=nf({css:s});for(t.filename=s.replace(of,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var Oo=g((ox,To)=>{var ko=/:$/,So=/^:(\s+)?/;To.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(ko.test(e)){let[r]=e.match(ko);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(So.test(s)){let[r]=s.match(So);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var No=g((ux,Ao)=>{var af=qe(),uf=Zt(),{isInlineComment:lf}=go(),{interpolation:Co}=vo(),{isMixinToken:cf}=bo(),ff=Eo(),pf=Oo(),hf=/(!\s*important)$/i;Ao.exports=class extends uf{constructor(...e){super(...e),this.lastNode=null}atrule(e){Co.bind(this)(e)||(super.atrule(e),ff(this.lastNode),pf(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let s=e.findIndex(u=>u[0]==="("),r=e.reverse().find(u=>u[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new af,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((n<0||n>3)&&i>0){let c=e.reduce((w,v,R)=>v[0]===")"?R:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),d=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],m=["brackets",p].concat(d,h),y=e.slice(0,i),b=e.slice(c+1);e=y,e.push(m),e=e.concat(b)}let u=[];for(let c of e)if((c[1]==="!"||u.length)&&u.push(c),c[1]==="important")break;if(u.length){let[c]=u,f=e.indexOf(c),p=u[u.length-1],l=[c[2],c[3]],d=[p[4],p[5]],h=["word",u.map(m=>m[1]).join("")].concat(l,d);e.splice(f,u.length,h)}let a=e.findIndex(c=>hf.test(c[1]));a>0&&([,o]=e[a],e.splice(a,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){lf.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),Co.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(cf(s)){this.mixin(e);return}super.unknownWord(e)}}});var Ro=g((cx,Po)=>{var df=Vt();Po.exports=class extends df{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let u=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+u,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var Io=g((fx,xs)=>{var mf=De(),yf=No(),gf=Ro();xs.exports={parse(t,e){let s=new mf(t,e),r=new yf(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,u=s.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:u.line,column:u.col},n.source.end){let a=i+n.source.end.offset,c=s.fromOffset(i+n.source.end.offset);n.source.end={offset:a,line:c.line,column:c.col}}}),r.root},stringify(t,e){new gf(e).stringify(t)},nodeToString(t){let e="";return xs.exports.stringify(t,s=>{e+=s}),e}}});var tr=g((px,Do)=>{"use strict";var wf=le(),qo,Lo,ge=class extends wf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new qo(new Lo,this,e).stringify()}};ge.registerLazyResult=t=>{qo=t};ge.registerProcessor=t=>{Lo=t};Do.exports=ge;ge.default=ge});var Bo=g((hx,Mo)=>{"use strict";var vf=jt(),xf=qe(),bf=mt(),_f=De(),Ef=ps(),kf=Be(),Sf=Kt();function wt(t,e){if(Array.isArray(t))return t.map(n=>wt(n));let{inputs:s,...r}=t;if(s){e=[];for(let n of s){let i={...n,__proto__:_f.prototype};i.map&&(i.map={...i.map,__proto__:Ef.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(n=>wt(n,e))),r.source){let{inputId:n,...i}=r.source;r.source=i,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new kf(r);if(r.type==="decl")return new bf(r);if(r.type==="rule")return new Sf(r);if(r.type==="comment")return new xf(r);if(r.type==="atrule")return new vf(r);throw new Error("Unknown node type: "+t.type)}Mo.exports=wt;wt.default=wt});var bs=g((dx,Uo)=>{Uo.exports=class{generate(){}}});var _s=g((yx,Fo)=>{"use strict";var vt=class{constructor(e,s={}){if(this.type="warning",this.text=e,s.node&&s.node.source){let r=s.node.rangeBy(s);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in s)this[r]=s[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Fo.exports=vt;vt.default=vt});var rr=g((gx,$o)=>{"use strict";var Tf=_s(),xt=class{get content(){return this.css}constructor(e,s,r){this.processor=e,this.messages=[],this.root=s,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new Tf(e,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};$o.exports=xt;xt.default=xt});var Es=g((wx,Go)=>{"use strict";var Wo={};Go.exports=function(e){Wo[e]||(Wo[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Ts=g((xx,Ho)=>{"use strict";var Of=le(),Cf=tr(),Af=bs(),Nf=gt(),Yo=rr(),Pf=Be(),Rf=lt(),{isClean:K,my:If}=zt(),vx=Es(),qf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Lf={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Df={Once:!0,postcssPlugin:!0,prepare:!0},Fe=0;function bt(t){return typeof t=="object"&&typeof t.then=="function"}function zo(t){let e=!1,s=qf[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,Fe,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,Fe,s+"Exit"]:[s,s+"Exit"]}function Vo(t){let e;return t.type==="document"?e=["Document",Fe,"DocumentExit"]:t.type==="root"?e=["Root",Fe,"RootExit"]:e=zo(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ks(t){return t[K]=!1,t.nodes&&t.nodes.forEach(e=>ks(e)),t}var Ss={},fe=class t{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,s,r){this.stringified=!1,this.processed=!1;let n;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))n=ks(s);else if(s instanceof t||s instanceof Yo)n=ks(s.root),s.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let i=Nf;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(s,r)}catch(o){this.processed=!0,this.error=o}n&&!n[If]&&Of.rebuild(n)}this.result=new Yo(e,n,r),this.helpers={...Ss,postcss:Ss,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,s){let r=this.result.lastPlugin;try{s&&s.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(s,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([s,n])};for(let s of this.plugins)if(typeof s=="object")for(let r in s){if(!Lf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Df[r])if(typeof s[r]=="object")for(let n in s[r])n==="*"?e(s,r,s[r][n]):e(s,r+"-"+n.toLowerCase(),s[r][n]);else typeof s[r]=="function"&&e(s,r,s[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let r=this.visitTick(s);if(bt(r))try{await r}catch(n){let i=s[s.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[s,r]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(e.type==="document"){let n=e.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return bt(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,s=Rf;e.syntax&&(s=e.syntax.stringify),e.stringifier&&(s=e.stringifier),s.stringify&&(s=s.stringify);let n=new Af(s,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let s=this.runOnRoot(e);if(bt(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[K];)e[K]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let s of e.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,s){return this.async().then(e,s)}toString(){return this.css}visitSync(e,s){for(let[r,n]of e){this.result.lastPlugin=r;let i;try{i=n(s,this.helpers)}catch(o){throw this.handleError(o,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(bt(i))throw this.getAsyncError()}}visitTick(e){let s=e[e.length-1],{node:r,visitors:n}=s;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&s.visitorIndex{n[K]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}};fe.registerPostcss=t=>{Ss=t};Ho.exports=fe;fe.default=fe;Pf.registerLazyResult(fe);Cf.registerLazyResult(fe)});var Ko=g((_x,jo)=>{"use strict";var Mf=bs(),Bf=gt(),Uf=rr(),Ff=lt(),bx=Es(),_t=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,s=Bf;try{e=s(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,s,r){s=s.toString(),this.stringified=!1,this._processor=e,this._css=s,this._opts=r,this._map=void 0;let n,i=Ff;this.result=new Uf(this._processor,n,this._opts),this.result.css=s;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let u=new Mf(i,n,this._opts,s);if(u.isMap()){let[a,c]=u.generate();a&&(this.result.css=a),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,s){return this.async().then(e,s)}toString(){return this._css}warnings(){return[]}};jo.exports=_t;_t.default=_t});var Xo=g((Ex,Qo)=>{"use strict";var $f=tr(),Wf=Ts(),Gf=Ko(),Yf=Be(),we=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let s=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))s=s.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)s.push(r);else if(typeof r=="function")s.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return s}process(e,s={}){return!this.plugins.length&&!s.parser&&!s.stringifier&&!s.syntax?new Gf(this,e,s):new Wf(this,e,s)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};Qo.exports=we;we.default=we;Yf.registerProcessor(we);$f.registerProcessor(we)});var sr=g((kx,na)=>{"use strict";var Jo=jt(),Zo=qe(),Vf=le(),zf=Yt(),ea=mt(),ta=tr(),Hf=Bo(),jf=De(),Kf=Ts(),Qf=gs(),Xf=pt(),Jf=gt(),Os=Xo(),Zf=rr(),ra=Be(),sa=Kt(),ep=lt(),tp=_s();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Os(t)}k.plugin=function(e,s){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: -https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let u=s(...o);return u.postcssPlugin=e,u.postcssVersion=new Os().version,u}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,u,a){return k([n(a)]).process(o,u)},n};k.stringify=ep;k.parse=Jf;k.fromJSON=Hf;k.list=Qf;k.comment=t=>new Zo(t);k.atRule=t=>new Jo(t);k.decl=t=>new ea(t);k.rule=t=>new sa(t);k.root=t=>new ra(t);k.document=t=>new ta(t);k.CssSyntaxError=zf;k.Declaration=ea;k.Container=Vf;k.Processor=Os;k.Document=ta;k.Comment=Zo;k.Warning=tp;k.AtRule=Jo;k.Result=Zf;k.Input=jf;k.Rule=sa;k.Root=ra;k.Node=Xf;Kf.registerPostcss(k);na.exports=k;k.default=k});var oa=g((Sx,ia)=>{var{Container:rp}=sr(),Cs=class extends rp{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};ia.exports=Cs});var la=g((Tx,ua)=>{"use strict";var nr=/[\t\n\f\r "#'()/;[\\\]{}]/g,ir=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,sp=/.[\r\n"'(/\\]/,aa=/[\da-f]/i,or=/[\n\f\r]/g;ua.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,c,f,p,l,d,x=r.length,h=0,m=[],y=[],b;function w(){return h}function v(T){throw e.error("Unclosed "+T,h)}function R(){return y.length===0&&h>=x}function F(){let T=1,O=!1,C=!1;for(;T>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),O?!C&&i===O?(O=!1,C=!1):i===92?C=!C:C&&(C=!1):i===39||i===34?O=i:i===125?T-=1:i===35&&l===123&&(T+=1)}function Q(T){if(y.length)return y.pop();if(h>=x)return;let O=T?T.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case 10:case 32:case 9:case 13:case 12:{o=h;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);d=["space",r.slice(h,o)],h=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let C=String.fromCharCode(i);d=[C,C,h];break}case 44:{d=["word",",",h,h+1];break}case 40:{if(p=m.length?m.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==39&&l!==34){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===92)f=!f;else if(l===40)b+=1;else if(l===41&&(b-=1,b===0))break;o+=1}a=r.slice(h,o+1),d=["brackets",a,h,o],h=o}else o=r.indexOf(")",h+1),a=r.slice(h,o+1),o===-1||sp.test(a)?d=["(","(",h]:(d=["brackets",a,h,o],h=o);break}case 39:case 34:{for(u=i,o=h,f=!1;o{var{Comment:np}=sr(),ip=Zt(),op=oa(),ap=la(),As=class extends ip{atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}comment(e){if(e[4]==="inline"){let s=new np;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={column:r.col,line:r.line,offset:e[3]+1};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=ap(this.input)}raw(e,s,r,n){if(super.raw(e,s,r,n),e.raws[s]){let i=e.raws[s].raw;e.raws[s].raw=r.reduce((o,u)=>{if(u[0]==="comment"&&u[4]==="inline"){let a=u[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+a+"*/"}else return o+u[1]},""),i!==e.raws[s].raw&&(e.raws[s].scss=i)}}rule(e){let s=!1,r=0,n="";for(let i of e)if(s)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(` -`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new op;this.init(i,e[0][2]);let o;for(let a=e.length-1;a>=0;a--)if(e[a][0]!=="space"){o=e[a];break}if(o[3]){let a=this.input.fromOffset(o[3]);i.source.end={column:a.col,line:a.line,offset:o[3]+1}}else{let a=this.input.fromOffset(o[2]);i.source.end={column:a.col,line:a.line,offset:o[2]+1}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let a=this.input.fromOffset(e[0][2]);i.source.start={column:a.col,line:a.line,offset:e[0][2]}}for(i.prop="";e.length;){let a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let a=e.length-1;a>0;a--){if(u=e[a],u[1]==="!important"){i.important=!0;let c=this.stringFrom(e,a);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(u[1]==="important"){let c=e.slice(0),f="";for(let p=a;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(u[0]!=="space"&&u[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}};ca.exports=As});var ha=g((Cx,pa)=>{var{Input:up}=sr(),lp=fa();pa.exports=function(e,s){let r=new up(e,s),n=new lp(r);return n.parse(),n.root}});var Ps=g(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});function fp(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}Ns.default=fp});var Is=g(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var pp=Ps(),ma=hp(pp);function hp(t){return t&&t.__esModule?t:{default:t}}function Et(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(s){s.parent=e})}Et.prototype=Object.create(ma.default.prototype);Et.constructor=ma.default;Et.prototype.walk=function(e,s){for(var r=typeof e=="string"||e instanceof RegExp,n=r?s:e,i=typeof e=="string"?new RegExp(e):e,o=0;o{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.parseMediaFeature=wa;kt.parseMediaQuery=Ls;kt.parseMediaList=yp;var dp=Ps(),ya=ga(dp),mp=Is(),qs=ga(mp);function ga(t){return t&&t.__esModule?t:{default:t}}function wa(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[{mode:"normal",character:null}],r=[],n=0,i="",o=null,u=null,a=e,c=t;t[0]==="("&&t[t.length-1]===")"&&(c=t.substring(1,t.length-1),a++);for(var f=0;f0&&(s[c-1].after=i.before),i.type===void 0){if(c>0){if(s[c-1].type==="media-feature-expression"){i.type="keyword";continue}if(s[c-1].value==="not"||s[c-1].value==="only"){i.type="media-type";continue}if(s[c-1].value==="and"){i.type="media-feature-expression";continue}s[c-1].type==="media-type"&&(s[c+1]?i.type=s[c+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(c===0){if(!s[c+1]){i.type="media-type";continue}if(s[c+1]&&(s[c+1].type==="media-feature-expression"||s[c+1].type==="keyword")){i.type="media-type";continue}if(s[c+2]){if(s[c+2].type==="media-feature-expression"){i.type="media-type",s[c+1].type="keyword";continue}if(s[c+2].type==="keyword"){i.type="keyword",s[c+1].type="media-type";continue}}if(s[c+3]&&s[c+3].type==="media-feature-expression"){i.type="keyword",s[c+1].type="media-type",s[c+2].type="keyword";continue}}}return s}function yp(t){var e=[],s=0,r=0,n=/^(\s*)url\s*\(/.exec(t);if(n!==null){for(var i=n[0].length,o=1;o>0;){var u=t[i];u==="("&&o++,u===")"&&o--,i++}e.unshift(new ya.default({type:"url",value:t.substring(0,i).trim(),sourceIndex:n[1].length,before:n[1],after:/^(\s*)/.exec(t.substring(i))[1]})),s=i}for(var a=s;a{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.default=bp;var gp=Is(),wp=xp(gp),vp=va();function xp(t){return t&&t.__esModule?t:{default:t}}function bp(t){return new wp.default({nodes:(0,vp.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});var Bs=g((Mx,Ea)=>{Ea.exports=function(e,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(e)?e.map(function(n){return n}):e;return r(e,1);function r(n,i){return n.reduce(function(o,u){return Array.isArray(u)&&i{ka.exports=function(t,e){for(var s=-1,r=[];(s=t.indexOf(e,s+1))!==-1;)r.push(s);return r}});var Fs=g((Ux,Sa)=>{"use strict";function kp(t,e){for(var s=1,r=t.length,n=t[0],i=t[0],o=1;o{"use strict";ar.__esModule=!0;var Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function Op(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Cp=function t(e,s){if((typeof e>"u"?"undefined":Ta(e))!=="object")return e;var r=new e.constructor;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],o=typeof i>"u"?"undefined":Ta(i);n==="parent"&&o==="object"?s&&(r[n]=s):i instanceof Array?r[n]=i.map(function(u){return t(u,r)}):r[n]=t(i,r)}return r},Ap=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Op(this,t);for(var s in e)this[s]=e[s];var r=e.spaces;r=r===void 0?{}:r;var n=r.before,i=n===void 0?"":n,o=r.after,u=o===void 0?"":o;this.spaces={before:i,after:u}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var s in arguments)this.parent.insertBefore(this,arguments[s]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Cp(this);for(var n in s)r[n]=s[n];return r},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t}();ar.default=Ap;Oa.exports=ar.default});var M=g(B=>{"use strict";B.__esModule=!0;var Fx=B.TAG="tag",$x=B.STRING="string",Wx=B.SELECTOR="selector",Gx=B.ROOT="root",Yx=B.PSEUDO="pseudo",Vx=B.NESTING="nesting",zx=B.ID="id",Hx=B.COMMENT="comment",jx=B.COMBINATOR="combinator",Kx=B.CLASS="class",Qx=B.ATTRIBUTE="attribute",Xx=B.UNIVERSAL="universal"});var lr=g((ur,Ca)=>{"use strict";ur.__esModule=!0;var Np=function(){function t(e,s){for(var r=0;r=r&&(this.indexes[i]=n-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var u=o;u.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(r,n){var i=this.index(r);this.nodes.splice(i+1,0,n);var o=void 0;for(var u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+this.nodes.length);return this},e.prototype.insertBefore=function(r,n){var i=this.index(r);this.nodes.splice(i,0,n);var o=void 0;for(var u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+this.nodes.length);return this},e.prototype.each=function(r){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[n]{"use strict";cr.__esModule=!0;var Fp=lr(),$p=Gp(Fp),Wp=M();function Gp(t){return t&&t.__esModule?t:{default:t}}function Yp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function zp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Hp=function(t){zp(e,t);function e(s){Yp(this,e);var r=Vp(this,t.call(this,s));return r.type=Wp.ROOT,r}return e.prototype.toString=function(){var r=this.reduce(function(n,i){var o=String(i);return o?n+o+",":""},"").slice(0,-1);return this.trailingComma?r+",":r},e}($p.default);cr.default=Hp;Aa.exports=cr.default});var Ra=g((fr,Pa)=>{"use strict";fr.__esModule=!0;var jp=lr(),Kp=Xp(jp),Qp=M();function Xp(t){return t&&t.__esModule?t:{default:t}}function Jp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function eh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var th=function(t){eh(e,t);function e(s){Jp(this,e);var r=Zp(this,t.call(this,s));return r.type=Qp.SELECTOR,r}return e}(Kp.default);fr.default=th;Pa.exports=fr.default});var $e=g((pr,Ia)=>{"use strict";pr.__esModule=!0;var rh=function(){function t(e,s){for(var r=0;r{"use strict";hr.__esModule=!0;var ch=$e(),fh=hh(ch),ph=M();function hh(t){return t&&t.__esModule?t:{default:t}}function dh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var gh=function(t){yh(e,t);function e(s){dh(this,e);var r=mh(this,t.call(this,s));return r.type=ph.CLASS,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},e}(fh.default);hr.default=gh;qa.exports=hr.default});var Ma=g((dr,Da)=>{"use strict";dr.__esModule=!0;var wh=ve(),vh=bh(wh),xh=M();function bh(t){return t&&t.__esModule?t:{default:t}}function _h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Eh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function kh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Sh=function(t){kh(e,t);function e(s){_h(this,e);var r=Eh(this,t.call(this,s));return r.type=xh.COMMENT,r}return e}(vh.default);dr.default=Sh;Da.exports=dr.default});var Ua=g((mr,Ba)=>{"use strict";mr.__esModule=!0;var Th=$e(),Oh=Ah(Th),Ch=M();function Ah(t){return t&&t.__esModule?t:{default:t}}function Nh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ph(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Rh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ih=function(t){Rh(e,t);function e(s){Nh(this,e);var r=Ph(this,t.call(this,s));return r.type=Ch.ID,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},e}(Oh.default);mr.default=Ih;Ba.exports=mr.default});var $a=g((yr,Fa)=>{"use strict";yr.__esModule=!0;var qh=$e(),Lh=Mh(qh),Dh=M();function Mh(t){return t&&t.__esModule?t:{default:t}}function Bh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Fh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $h=function(t){Fh(e,t);function e(s){Bh(this,e);var r=Uh(this,t.call(this,s));return r.type=Dh.TAG,r}return e}(Lh.default);yr.default=$h;Fa.exports=yr.default});var Ga=g((gr,Wa)=>{"use strict";gr.__esModule=!0;var Wh=ve(),Gh=Vh(Wh),Yh=M();function Vh(t){return t&&t.__esModule?t:{default:t}}function zh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function jh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Kh=function(t){jh(e,t);function e(s){zh(this,e);var r=Hh(this,t.call(this,s));return r.type=Yh.STRING,r}return e}(Gh.default);gr.default=Kh;Wa.exports=gr.default});var Va=g((wr,Ya)=>{"use strict";wr.__esModule=!0;var Qh=lr(),Xh=Zh(Qh),Jh=M();function Zh(t){return t&&t.__esModule?t:{default:t}}function ed(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function td(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var sd=function(t){rd(e,t);function e(s){ed(this,e);var r=td(this,t.call(this,s));return r.type=Jh.PSEUDO,r}return e.prototype.toString=function(){var r=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),r,this.spaces.after].join("")},e}(Xh.default);wr.default=sd;Ya.exports=wr.default});var Ha=g((vr,za)=>{"use strict";vr.__esModule=!0;var nd=$e(),id=ad(nd),od=M();function ad(t){return t&&t.__esModule?t:{default:t}}function ud(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ld(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function cd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var fd=function(t){cd(e,t);function e(s){ud(this,e);var r=ld(this,t.call(this,s));return r.type=od.ATTRIBUTE,r.raws={},r}return e.prototype.toString=function(){var r=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&r.push(this.operator),this.value&&r.push(this.value),this.raws.insensitive?r.push(this.raws.insensitive):this.insensitive&&r.push(" i"),r.push("]"),r.concat(this.spaces.after).join("")},e}(id.default);vr.default=fd;za.exports=vr.default});var Ka=g((xr,ja)=>{"use strict";xr.__esModule=!0;var pd=$e(),hd=md(pd),dd=M();function md(t){return t&&t.__esModule?t:{default:t}}function yd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function wd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var vd=function(t){wd(e,t);function e(s){yd(this,e);var r=gd(this,t.call(this,s));return r.type=dd.UNIVERSAL,r.value="*",r}return e}(hd.default);xr.default=vd;ja.exports=xr.default});var Xa=g((br,Qa)=>{"use strict";br.__esModule=!0;var xd=ve(),bd=Ed(xd),_d=M();function Ed(t){return t&&t.__esModule?t:{default:t}}function kd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Td(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Od=function(t){Td(e,t);function e(s){kd(this,e);var r=Sd(this,t.call(this,s));return r.type=_d.COMBINATOR,r}return e}(bd.default);br.default=Od;Qa.exports=br.default});var Za=g((_r,Ja)=>{"use strict";_r.__esModule=!0;var Cd=ve(),Ad=Pd(Cd),Nd=M();function Pd(t){return t&&t.__esModule?t:{default:t}}function Rd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Id(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function qd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ld=function(t){qd(e,t);function e(s){Rd(this,e);var r=Id(this,t.call(this,s));return r.type=Nd.NESTING,r.value="&",r}return e}(Ad.default);_r.default=Ld;Ja.exports=_r.default});var tu=g((Er,eu)=>{"use strict";Er.__esModule=!0;Er.default=Dd;function Dd(t){return t.sort(function(e,s){return e-s})}eu.exports=Er.default});var cu=g((Tr,lu)=>{"use strict";Tr.__esModule=!0;Tr.default=Hd;var ru=39,Md=34,$s=92,su=47,St=10,Ws=32,Gs=12,Ys=9,Vs=13,nu=43,iu=62,ou=126,au=124,Bd=44,Ud=40,Fd=41,$d=91,Wd=93,Gd=59,uu=42,Yd=58,Vd=38,zd=64,kr=/[ \n\t\r\{\(\)'"\\;/]/g,Sr=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function Hd(t){for(var e=[],s=t.css.valueOf(),r=void 0,n=void 0,i=void 0,o=void 0,u=void 0,a=void 0,c=void 0,f=void 0,p=void 0,l=void 0,d=void 0,x=s.length,h=-1,m=1,y=0,b=function(v,R){if(t.safe)s+=R,n=s.length-1;else throw t.error("Unclosed "+v,m,y-h,y)};y0?(f=m+u,p=n-o[u].length):(f=m,p=h),e.push(["comment",a,m,y-h,f,n-p,y]),h=p,m=f,y=n):(Sr.lastIndex=y+1,Sr.test(s),Sr.lastIndex===0?n=s.length-1:n=Sr.lastIndex-2,e.push(["word",s.slice(y,n+1),m,y-h,m,n-h,y]),y=n);break}y++}return e}lu.exports=Tr.default});var hu=g((Or,pu)=>{"use strict";Or.__esModule=!0;var jd=function(){function t(e,s){for(var r=0;r1?(o[0]===""&&(o[0]=!0),u.attribute=this.parseValue(o[2]),u.namespace=this.parseNamespace(o[0])):u.attribute=this.parseValue(i[0]),r=new ym.default(u),i[2]){var a=i[2].split(/(\s+i\s*?)$/),c=a[0].trim();r.value=this.lossy?c:a[0],a[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=a[1])),r.quoted=c[0]==="'"||c[0]==='"',r.raws.unquoted=r.quoted?c.slice(1,-1):c}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var s=new xm.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position1&&s.nextToken&&s.nextToken[0]==="("&&s.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var s=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(s[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(s[1]),this.position++):this.combinator()},t.prototype.string=function(){var s=this.currToken;this.newNode(new pm.default({value:this.currToken[1],source:{start:{line:s[2],column:s[3]},end:{line:s[4],column:s[5]}},sourceIndex:s[6]})),this.position++},t.prototype.universal=function(s){var r=this.nextToken;if(r&&r[1]==="|")return this.position++,this.namespace();this.newNode(new wm.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),s),this.position++},t.prototype.splitWord=function(s,r){for(var n=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var u=this.currToken[1];if(o+=u,u.lastIndexOf("\\")===u.length-1){var a=this.nextToken;a&&a[0]==="space"&&(o+=this.parseSpace(a[1]," "),this.position++)}i=this.nextToken}var c=(0,zs.default)(o,"."),f=(0,zs.default)(o,"#"),p=(0,zs.default)(o,"#{");p.length&&(f=f.filter(function(d){return!~p.indexOf(d)}));var l=(0,km.default)((0,Zd.default)((0,Qd.default)([[0],c,f])));l.forEach(function(d,x){var h=l[x+1]||o.length,m=o.slice(d,h);if(x===0&&r)return r.call(n,m,l.length);var y=void 0;~c.indexOf(d)?y=new nm.default({value:m.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+d},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):~f.indexOf(d)?y=new um.default({value:m.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+d},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):y=new cm.default({value:m,source:{start:{line:n.currToken[2],column:n.currToken[3]+d},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}),n.newNode(y,s)}),this.position++},t.prototype.word=function(s){var r=this.nextToken;return r&&r[1]==="|"?(this.position++,this.namespace()):this.splitWord(s)},t.prototype.loop=function(){for(;this.position{"use strict";Cr.__esModule=!0;var Pm=function(){function t(e,s){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=new Im.default({css:s,error:function(o){throw new Error(o)},options:r});return this.res=n,this.func(n),this},Pm(t,[{key:"result",get:function(){return String(this.res)}}]),t}();Cr.default=Dm;du.exports=Cr.default});var z=g((rb,gu)=>{"use strict";var js=function(t,e){let s=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:n instanceof Array?s[r]=n.map(o=>js(o,s)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&n!==null&&(n=js(n)),s[r]=n)}return s};gu.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let s in e)this[s]=e[s]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let s=js(this);for(let r in e)s[r]=e[r];return s}cloneBefore(e){e=e||{};let s=this.clone(e);return this.parent.insertBefore(this,s),s}cloneAfter(e){e=e||{};let s=this.clone(e);return this.parent.insertAfter(this,s),s}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let s of e)this.parent.insertBefore(this,s);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let s in this){if(!this.hasOwnProperty(s)||s==="parent")continue;let r=this[s];r instanceof Array?e[s]=r.map(n=>typeof n=="object"&&n.toJSON?n.toJSON():n):typeof r=="object"&&r.toJSON?e[s]=r.toJSON():e[s]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let s=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i{"use strict";var Bm=z(),We=class extends Bm{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach,r,n;if(this.indexes[s]=0,!!this.nodes){for(;this.indexes[s]{let n=e(s,r);return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkType(e,s){if(!e||!s)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((n,i)=>{if(r&&n instanceof e||!r&&n.type===e)return s.call(this,n,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}insertAfter(e,s){let r=this.index(e),n;this.nodes.splice(r+1,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}insertBefore(e,s){let r=this.index(e),n;this.nodes.splice(r,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};We.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!We.prototype[e]&&(We.prototype[e]=function(s){return this.walkType(t,s)})};wu.exports=We});var xu=g((ib,vu)=>{"use strict";var Um=U();vu.exports=class extends Um{constructor(e){super(e),this.type="root"}}});var _u=g((ab,bu)=>{"use strict";var Fm=U();bu.exports=class extends Fm{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var Su=g((ub,ku)=>{"use strict";var Eu=U(),Ar=class extends Eu{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};Eu.registerWalker(Ar);ku.exports=Ar});var Ou=g((lb,Tu)=>{"use strict";var $m=U(),Wm=z(),Nr=class extends Wm{constructor(e){super(e),this.type="colon"}};$m.registerWalker(Nr);Tu.exports=Nr});var Au=g((cb,Cu)=>{"use strict";var Gm=U(),Ym=z(),Pr=class extends Ym{constructor(e){super(e),this.type="comma"}};Gm.registerWalker(Pr);Cu.exports=Pr});var Pu=g((fb,Nu)=>{"use strict";var Vm=U(),zm=z(),Rr=class extends zm{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Vm.registerWalker(Rr);Nu.exports=Rr});var qu=g((pb,Iu)=>{"use strict";var Ru=U(),Ir=class extends Ru{constructor(e){super(e),this.type="func",this.unbalanced=-1}};Ru.registerWalker(Ir);Iu.exports=Ir});var Du=g((hb,Lu)=>{"use strict";var Hm=U(),jm=z(),qr=class extends jm{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};Hm.registerWalker(qr);Lu.exports=qr});var Bu=g((db,Mu)=>{"use strict";var Km=U(),Qm=z(),Lr=class extends Qm{constructor(e){super(e),this.type="operator"}};Km.registerWalker(Lr);Mu.exports=Lr});var Fu=g((mb,Uu)=>{"use strict";var Xm=U(),Jm=z(),Dr=class extends Jm{constructor(e){super(e),this.type="paren",this.parenType=""}};Xm.registerWalker(Dr);Uu.exports=Dr});var Wu=g((yb,$u)=>{"use strict";var Zm=U(),ey=z(),Mr=class extends ey{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};Zm.registerWalker(Mr);$u.exports=Mr});var Yu=g((gb,Gu)=>{"use strict";var ty=U(),ry=z(),Br=class extends ry{constructor(e){super(e),this.type="word"}};ty.registerWalker(Br);Gu.exports=Br});var zu=g((wb,Vu)=>{"use strict";var sy=U(),ny=z(),Ur=class extends ny{constructor(e){super(e),this.type="unicode-range"}};sy.registerWalker(Ur);Vu.exports=Ur});var ju=g((vb,Hu)=>{"use strict";var Ks=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Hu.exports=Ks});var Xu=g((xb,Qu)=>{"use strict";var Fr=/[ \n\t\r\{\(\)'"\\;,/]/g,iy=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,Ge=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,oy=/^[a-z0-9]/i,ay=/^[a-f0-9?\-]/i,Ku=ju();Qu.exports=function(e,s){s=s||{};let r=[],n=e.valueOf(),i=n.length,o=-1,u=1,a=0,c=0,f=null,p,l,d,x,h,m,y,b,w,v,R,F;function Q(T){let O=`Unclosed ${T} at line: ${u}, column: ${a-o}, token: ${a}`;throw new Ku(O)}function W(){let T=`Syntax error at line: ${u}, column: ${a-o}, token: ${a}`;throw new Ku(T)}for(;a0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",u,a-o,u,l-o,a]);break;case 41:c--,f=f&&c>0,r.push([")",")",u,a-o,u,l-o,a]);break;case 39:case 34:d=p===39?"'":'"',l=a;do for(v=!1,l=n.indexOf(d,l+1),l===-1&&Q("quote",d),R=l;n.charCodeAt(R-1)===92;)R-=1,v=!v;while(v);r.push(["string",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l;break;case 64:Fr.lastIndex=a+1,Fr.test(n),Fr.lastIndex===0?l=n.length-1:l=Fr.lastIndex-2,r.push(["atword",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l;break;case 92:l=a,p=n.charCodeAt(l+1),y&&p!==47&&p!==32&&p!==10&&p!==9&&p!==13&&p!==12&&(l+=1),r.push(["word",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l;break;case 43:case 45:case 42:l=a+1,F=n.slice(a+1,l+1);let T=n.slice(a-1,a);if(p===45&&F.charCodeAt(0)===45){l++,r.push(["word",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;break}r.push(["operator",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;break;default:if(p===47&&(n.charCodeAt(a+1)===42||s.loose&&!f&&n.charCodeAt(a+1)===47)){if(n.charCodeAt(a+1)===42)l=n.indexOf("*/",a+2)+1,l===0&&Q("comment","*/");else{let C=n.indexOf(` -`,a+2);l=C!==-1?C-1:i}m=n.slice(a,l+1),x=m.split(` -`),h=x.length-1,h>0?(b=u+h,w=l-x[h].length):(b=u,w=o),r.push(["comment",m,u,a-o,b,l-w,a]),o=w,u=b,a=l}else if(p===35&&!oy.test(n.slice(a+1,a+2)))l=a+1,r.push(["#",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;else if((p===117||p===85)&&n.charCodeAt(a+1)===43){l=a+2;do l+=1,p=n.charCodeAt(l);while(l=48&&p<=57&&(O=Ge),O.lastIndex=a+1,O.test(n),O.lastIndex===0?l=n.length-1:l=O.lastIndex-2,O===Ge||p===46){let C=n.charCodeAt(l),xe=n.charCodeAt(l+1),en=n.charCodeAt(l+2);(C===101||C===69)&&(xe===45||xe===43)&&en>=48&&en<=57&&(Ge.lastIndex=l+2,Ge.test(n),Ge.lastIndex===0?l=n.length-1:l=Ge.lastIndex-2)}r.push(["word",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l}break}a++}return r}});var Zu=g((bb,Ju)=>{"use strict";var Qs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Ju.exports=Qs});var sl=g((Eb,rl)=>{"use strict";var uy=xu(),ly=_u(),cy=Su(),fy=Ou(),py=Au(),hy=Pu(),dy=qu(),my=Du(),yy=Bu(),el=Fu(),gy=Wu(),tl=Yu(),wy=zu(),vy=Xu(),xy=Bs(),by=Us(),_y=Fs(),Ey=Zu();function ky(t){return t.sort((e,s)=>e-s)}rl.exports=class{constructor(e,s){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,s),this.position=0,this.unbalanced=0,this.root=new uy;let n=new ly;this.root.append(n),this.current=n,this.tokens=vy(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new fy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new py({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,s=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&s.startsWith("//")&&(s=s.substring(2),e=!0),r=new hy({value:s,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,s){throw new Ey(e+` at line: ${s[2]}, column ${s[3]}`)}loop(){for(;this.position0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return s=new yy({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(s)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,s=this.position+1,r=this.currToken,n;for(;s=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new wy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,s=this.currToken[1],r=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,n=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!n.test(s))for(;e&&e[0]==="word";){this.position++;let u=this.currToken[1];s+=u,e=this.nextToken}i=by(s,"@"),o=ky(_y(xy([[0],i]))),o.forEach((u,a)=>{let c=o[a+1]||s.length,f=s.slice(u,c),p;if(~i.indexOf(u))p=new cy({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[a]});else if(r.test(this.currToken[1])){let l=f.replace(r,"");p=new my({value:f.replace(l,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[a],unit:l})}else p=new(e&&e[0]==="("?dy:tl)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[a]}),p.type==="word"?(p.isHex=/^#(.+)/.test(f),p.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(p)}),this.position++}string(){let e=this.currToken,s=this.currToken[1],r=/^(\"|\')/,n=r.test(s),i="",o;n&&(i=s.match(r)[0],s=s.slice(1,s.length-1)),o=new gy({value:s,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:n}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var $y={};tn($y,{languages:()=>Ei,options:()=>Si,parsers:()=>Zs,printers:()=>Fy});var Tl=(t,e,s,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(s,r):s.global?e.replace(s,r):e.split(s).join(r)},E=Tl;var _e="string",Ye="array",Ve="cursor",re="indent",Ee="align",ze="trim",se="group",ne="fill",ie="if-break",He="indent-if-break",ke="line-suffix",je="line-suffix-boundary",H="line",Ke="label",Se="break-parent",Ot=new Set([Ve,re,Ee,ze,se,ne,ie,He,ke,je,H,Ke,Se]);var Ol=(t,e,s)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[s<0?e.length+s:s]:e.at(s)},$=Ol;function Cl(t){if(typeof t=="string")return _e;if(Array.isArray(t))return Ye;if(!t)return;let{type:e}=t;if(Ot.has(e))return e}var j=Cl;var Al=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Nl(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(j(t))throw new Error("doc is valid.");let s=Object.prototype.toString.call(t);if(s!=="[object Object]")return`Unexpected doc '${s}'.`;let r=Al([...Ot].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${r}.`}var Gr=class extends Error{name="InvalidDocError";constructor(e){super(Nl(e)),this.doc=e}},Yr=Gr;function Rl(t,e){if(typeof t=="string")return e(t);let s=new Map;return r(t);function r(i){if(s.has(i))return s.get(i);let o=n(i);return s.set(i,o),o}function n(i){switch(j(i)){case Ye:return e(i.map(r));case ne:return e({...i,parts:i.parts.map(r)});case ie:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case se:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(r),u=o[0]):u=r(u),e({...i,contents:u,expandedStates:o})}case Ee:case re:case He:case Ke:case ke:return e({...i,contents:r(i.contents)});case _e:case Ve:case ze:case je:case H:case Se:return e(i);default:throw new Yr(i)}}}function Il(t){return t.type===H&&!t.hard?t.soft?"":" ":t.type===ie?t.flatContents:t}function sn(t){return Rl(t,Il)}var Vr=()=>{},oe=Vr,Qe=Vr,nn=Vr;function q(t){return oe(t),{type:re,contents:t}}function on(t,e){return oe(e),{type:Ee,contents:e,n:t}}function L(t,e={}){return oe(t),Qe(e.expandedStates,!0),{type:se,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function an(t){return on({type:"root"},t)}function ae(t){return on(-1,t)}function Te(t){return nn(t),{type:ne,parts:t}}function Ct(t,e="",s={}){return oe(t),e!==""&&oe(e),{type:ie,breakContents:t,flatContents:e,groupId:s.groupId}}function un(t){return oe(t),{type:ke,contents:t}}var Xe={type:Se};var ql={type:H,hard:!0};var A={type:H},D={type:H,soft:!0},S=[ql,Xe];function G(t,e){oe(t),Qe(e);let s=[];for(let r=0;r0}var ue=Ll;var ln=new Proxy(()=>{},{get:()=>ln}),cn=ln;var At="'",fn='"';function Dl(t,e){let s=e===!0||e===At?At:fn,r=s===At?fn:At,n=0,i=0;for(let o of t)o===s?n++:o===r&&i++;return n>i?r:s}var pn=Dl;function Ml(t,e,s){let r=e==='"'?"'":'"',i=E(!1,t,/\\(.)|(["'])/gsu,(o,u,a)=>u===r?u:a===e?"\\"+a:a||(s&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return e+i+e}var hn=Ml;function Bl(t,e){cn.ok(/^(?["']).*\k$/su.test(t));let s=t.slice(1,-1),r=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":pn(s,e.singleQuote);return t.charAt(0)===r?t:hn(s,r,!1)}var Nt=Bl;var zr=class extends Error{name="UnexpectedNodeError";constructor(e,s,r="type"){super(`Unexpected ${s} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},dn=zr;function Ul(t){return(t==null?void 0:t.type)==="front-matter"}var Oe=Ul;var Fl=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function mn(t,e,s){if(Oe(t)&&t.language==="yaml"&&delete e.value,t.type==="css-comment"&&s.type==="css-root"&&s.nodes.length>0&&((s.nodes[0]===t||Oe(s.nodes[0])&&s.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||s.type==="css-root"&&$(!1,s.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=$l(t.value)),t.type==="selector-combinator"&&(e.value=E(!1,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=E(!1,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=E(!1,e.value,/;$/gu,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value&&(e.value=E(!1,e.value.trim(),/^["']|["']$/gu,""),delete e.quoted)),(t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=E(!1,e.value,/([\d+.e-]+)([a-z]*)/giu,(r,n,i)=>{let o=Number(n);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=e.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&r.value.endsWith("[")||r.type==="value-word"&&r.value.startsWith("]")))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}mn.ignoredProperties=Fl;function $l(t){return E(!1,E(!1,t,"'",'"'),/\\([^\da-f])/giu,"$1")}var yn=mn;async function Wl(t,e){if(t.language==="yaml"){let s=t.value.trim(),r=s?await e(s,{parser:"yaml"}):"";return an([t.startDelimiter,t.explicitLanguage,S,r,r?S:"",t.endDelimiter])}}var gn=Wl;function wn(t){let{node:e}=t;if(e.type==="front-matter")return async s=>{let r=await gn(e,s);return r?[r,S]:void 0}}wn.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var vn=wn;var Je=null;function Ze(t){if(Je!==null&&typeof Je.property){let e=Je;return Je=Ze.prototype=null,e}return Je=Ze.prototype=t??Object.create(null),new Ze}var Gl=10;for(let t=0;t<=Gl;t++)Ze();function Hr(t){return Ze(t)}function Yl(t,e="type"){Hr(t);function s(r){let n=r[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}return s}var xn=Yl;var Vl={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},bn=Vl;var zl=xn(bn),_n=zl;function Hl(t,e){let s=0;for(let r=0;r{let n=!!(r!=null&&r.backwards);if(s===!1)return!1;let{length:i}=e,o=s;for(;o>=0&&oNn(c,e[c])).map(c=>`${n} ${c}${s}`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let c=e[o[0]];return`${r} ${Nn(o[0],c)[0]}${i}`}}let a=t.split(s).map(c=>`${n} ${c}`).join(s)+s;return r+s+(t?a:"")+(t&&o.length>0?n+s:"")+u+i}function Nn(t,e){return[...Rn,...Array.isArray(e)?e:[e]].map(s=>`@${t} ${s}`.trim())}var Mn=["noformat","noprettier"],Bn=["format","prettier"],Un="format";function ec(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(` -`);return e===-1?t:t.slice(0,e)}var Fn=ec;function Xr(t){let e=Fn(t);e&&(t=t.slice(e.length+1));let s=In(t),{pragmas:r,comments:n}=Ln(s);return{shebang:e,text:t,pragmas:r,comments:n}}function $n(t){let{pragmas:e}=Xr(t);return Bn.some(s=>Object.prototype.hasOwnProperty.call(e,s))}function Wn(t){let{pragmas:e}=Xr(t);return Mn.some(s=>Object.prototype.hasOwnProperty.call(e,s))}function Gn(t){let{shebang:e,text:s,pragmas:r,comments:n}=Xr(t),i=qn(s),o=Dn({pragmas:{[Un]:"",...r},comments:n.trimStart()});return(e?`${e} -`:"")+o+(i.startsWith(` -`)?` -`:` - -`)+i}var et=3;function tc(t){let e=t.slice(0,et);if(e!=="---"&&e!=="+++")return;let s=t.indexOf(` -`,et);if(s===-1)return;let r=t.slice(et,s).trim(),n=t.indexOf(` -${e}`,s),i=r;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n=t.indexOf(` -...`,s)),n===-1)return;let o=n+1+et,u=t.charAt(o+1);if(!/\s?/u.test(u))return;let a=t.slice(0,o);return{type:"front-matter",language:i,explicitLanguage:r,value:t.slice(s+1,n),startDelimiter:e,endDelimiter:a.slice(-et),raw:a}}function rc(t){let e=tc(t);if(!e)return{content:t};let{raw:s}=e;return{frontMatter:e,content:E(!1,s,/[^\n]/gu," ")+t.slice(s.length)}}var Ce=rc;function Yn(t){return $n(Ce(t).content)}function Vn(t){return Wn(Ce(t).content)}function zn(t){let{frontMatter:e,content:s}=Ce(t);return(e?e.raw+` - -`:"")+Gn(s)}var sc=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Hn(t){var e,s;return(s=(e=t.findAncestor(r=>r.type==="css-decl"))==null?void 0:e.prop)==null?void 0:s.toLowerCase()}var nc=new Set(["initial","inherit","unset","revert"]);function jn(t){return nc.has(t.toLowerCase())}function Kn(t,e){var r;let s=t.findAncestor(n=>n.type==="css-atrule");return((r=s==null?void 0:s.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(e.toLowerCase())}function Ae(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function Ne(t,e){var r;let s=t.findAncestor(n=>n.type==="value-func");return((r=s==null?void 0:s.value)==null?void 0:r.toLowerCase())===e}function Qn(t){var r;let e=t.findAncestor(n=>n.type==="css-rule"),s=(r=e==null?void 0:e.raws)==null?void 0:r.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))}function he(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function Xn(t){var s;let{node:e}=t;return e.groups[0].value==="url"&&e.groups.length===2&&((s=t.findAncestor(r=>r.type==="css-atrule"))==null?void 0:s.name)==="import"}function Jn(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function Zn(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function ei(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function ti(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function ri(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function si(t){return t.type==="value-word"&&t.value==="in"}function qt(t){return t.type==="value-operator"&&t.value==="*"}function tt(t){return t.type==="value-operator"&&t.value==="/"}function X(t){return t.type==="value-operator"&&t.value==="+"}function de(t){return t.type==="value-operator"&&t.value==="-"}function ic(t){return t.type==="value-operator"&&t.value==="%"}function Lt(t){return qt(t)||tt(t)||X(t)||de(t)||ic(t)}function ni(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function ii(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function rt(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function Zr(t){var e;return((e=t.raws)==null?void 0:e.params)&&/^\(\s*\)$/u.test(t.raws.params)}function Dt(t){return t.name.startsWith("prettier-placeholder")}function oi(t){return t.prop.startsWith("@prettier-placeholder")}function ai(t,e){return t.value==="$$"&&t.type==="value-func"&&(e==null?void 0:e.type)==="value-word"&&!e.raws.before}function ui(t){var e,s;return((e=t.value)==null?void 0:e.type)==="value-root"&&((s=t.value.group)==null?void 0:s.type)==="value-value"&&t.prop.toLowerCase()==="composes"}function li(t){var e,s,r;return((r=(s=(e=t.value)==null?void 0:e.group)==null?void 0:s.group)==null?void 0:r.type)==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function me(t){var e;return((e=t.raws)==null?void 0:e.before)===""}function Mt(t){var e,s;return t.type==="value-comma_group"&&((s=(e=t.groups)==null?void 0:e[1])==null?void 0:s.type)==="value-colon"}function Jr(t){var e;return t.type==="value-paren_group"&&((e=t.groups)==null?void 0:e[0])&&Mt(t.groups[0])}function es(t,e){var i;if(e.parser!=="scss")return!1;let{node:s}=t;if(s.groups.length===0)return!1;let r=t.grandparent;if(!Jr(s)&&!(r&&Jr(r)))return!1;let n=t.findAncestor(o=>o.type==="css-decl");return!!((i=n==null?void 0:n.prop)!=null&&i.startsWith("$")||Jr(r)||r.type==="value-func")}function Pe(t){return t.type==="value-comment"&&t.inline}function Bt(t){return t.type==="value-word"&&t.value==="#"}function ts(t){return t.type==="value-word"&&t.value==="{"}function Ut(t){return t.type==="value-word"&&t.value==="}"}function st(t){return["value-word","value-atword"].includes(t.type)}function nt(t){return(t==null?void 0:t.type)==="value-colon"}function ci(t,e){if(!Mt(e))return!1;let{groups:s}=e,r=s.indexOf(t);return r===-1?!1:nt(s[r+1])}function fi(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function pi(t){return t.type!=="value-func"?!1:sc.has(t.value.toLowerCase())}function Re(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function it(t){return(t==null?void 0:t.type)==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function hi(t,e){var s,r;if(((s=t.open)==null?void 0:s.value)!=="("||((r=t.close)==null?void 0:r.value)!==")"||t.groups.some(n=>n.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let n=e.groups.indexOf(t)-1,i=e.groups[n];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}function ot(t){var e,s;return t.type==="value-paren_group"&&((e=t.open)==null?void 0:e.value)==="("&&((s=t.close)==null?void 0:s.value)===")"}function oc(t,e,s){var m;let{node:r}=t,n=t.parent,i=t.grandparent,o=Hn(t),u=o&&n.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),a=t.findAncestor(y=>y.type==="css-atrule"),c=a&&rt(a,e),f=r.groups.some(y=>Pe(y)),p=t.map(s,"groups"),l=[""],d=Ne(t,"url"),x=!1,h=!1;for(let y=0;y2&&r.groups.slice(0,y).every(C=>C.type==="value-comment")&&!Pe(b)&&(l[l.length-2]=ae($(!1,l,-2))),he(t,"forward")&&w.type==="value-word"&&w.value&&b!==void 0&&b.type==="value-word"&&b.value==="as"&&v.type==="value-operator"&&v.value==="*"||he(t,"utility")&&w.type==="value-word"&&v&&v.type==="value-operator"&&v.value==="*"||!v||w.type==="value-word"&&it(v)&&P(w)===N(v))continue;if(w.type==="value-string"&&w.quoted){let C=w.value.lastIndexOf("#{"),xe=w.value.lastIndexOf("}");C!==-1&&xe!==-1?x=C>xe:C!==-1?x=!0:xe!==-1&&(x=!1)}if(x||nt(w)||nt(v)||w.type==="value-atword"&&(w.value===""||w.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||w.value==="~"||w.type!=="value-string"&&w.value&&w.value.includes("\\")&&v&&v.type!=="value-comment"||b!=null&&b.value&&b.value.indexOf("\\")===b.value.length-1&&w.type==="value-operator"&&w.value==="/"||w.value==="\\"||ai(w,v)||Bt(w)||ts(w)||Ut(v)||ts(v)&&me(v)||Ut(w)&&me(v)||w.value==="--"&&Bt(v))continue;let F=Lt(w),Q=Lt(v);if((F&&Bt(v)||Q&&Ut(w))&&me(v)||!b&&tt(w)||Ne(t,"calc")&&(X(w)||X(v)||de(w)||de(v))&&me(v))continue;let W=(X(w)||de(w))&&y===0&&(v.type==="value-number"||v.isHex)&&i&&pi(i)&&!me(v),T=(R==null?void 0:R.type)==="value-func"||R&&st(R)||w.type==="value-func"||st(w),O=v.type==="value-func"||st(v)||(b==null?void 0:b.type)==="value-func"||b&&st(b);if(e.parser==="scss"&&F&&w.value==="-"&&v.type==="value-func"&&P(w)!==N(v)){l.push([l.pop()," "]);continue}if(!(!(qt(v)||qt(w))&&!Ne(t,"calc")&&!W&&(tt(v)&&!T||tt(w)&&!O||X(v)&&!T||X(w)&&!O||de(v)||de(w))&&(me(v)||F&&(!b||b&&Lt(b))))&&!((e.parser==="scss"||e.parser==="less")&&F&&w.value==="-"&&ot(v)&&P(w)===N(v.open)&&v.open.value==="(")){if(Pe(w)){if(n.type==="value-paren_group"){l.push(ae(S),"");continue}l.push(S,"");continue}if(c&&(ni(v)||ii(v)||ri(v)||si(w)||ti(w))){l.push([l.pop()," "]);continue}if(a&&a.name.toLowerCase()==="namespace"){l.push([l.pop()," "]);continue}if(u){w.source&&v.source&&w.source.start.line!==v.source.start.line?(l.push(S,""),h=!0):l.push([l.pop()," "]);continue}if(Q){l.push([l.pop()," "]);continue}if((v==null?void 0:v.value)!=="..."&&!(it(w)&&it(v)&&P(w)===N(v))){if(it(w)&&ot(v)&&P(w)===N(v.open)){l.push(D,"");continue}if(w.value==="with"&&ot(v)){l=[[Te(l)," "]];continue}(m=w.value)!=null&&m.endsWith("#")&&v.value==="{"&&ot(v.group)||Pe(v)&&!R||l.push(A,"")}}}return f&&l.push([l.pop(),Xe]),h&&l.unshift("",S),c?L(q(l)):Xn(t)?L(Te(l)):L(q(Te(l)))}var di=oc;function ac(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var mi=ac;var Ft=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function rs(t){let e=t.toLowerCase();return Ft.has(e)?Ft.get(e):t}var yi=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,uc=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,lc=/[a-z]+/giu,cc=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,fc=new RegExp(yi.source+`|(${cc.source})?(${uc.source})(${lc.source})?`,"giu");function Y(t,e){return E(!1,t,yi,s=>Nt(s,e))}function gi(t,e){let s=e.singleQuote?"'":'"';return t.includes('"')||t.includes("'")?t:s+t+s}function ye(t){return E(!1,t,fc,(e,s,r,n,i)=>!r&&n&&(i??(i=""),i=i.toLowerCase(),!i||i==="n"||Ft.has(i))?ss(n)+(i?rs(i):""):e)}function ss(t){return mi(t).replace(/\.0(?=$|e)/u,"")}function wi(t){return t.trailingComma==="es5"||t.trailingComma==="all"}function pc(t,e,s){let r=!!(s!=null&&s.backwards);if(e===!1)return!1;let n=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&n===` -`)return e-2;if(n===` -`||n==="\r"||n==="\u2028"||n==="\u2029")return e-1}else{if(n==="\r"&&t.charAt(e+1)===` -`)return e+2;if(n===` -`||n==="\r"||n==="\u2028"||n==="\u2029")return e+1}return e}var $t=pc;function hc(t,e,s={}){let r=Rt(t,s.backwards?e-1:e,s),n=$t(t,r,s);return r!==n}var Wt=hc;function dc(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let s=e+2;ss.type==="value-comment"))&&wi(e)&&t.callParent(()=>es(t,e))?Ct(","):""}function bi(t,e,s){let{node:r,parent:n}=t,i=t.map(({node:d})=>typeof d=="string"?d:s(),"groups");if(n&&Jn(n)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?s("open"):"",G(",",i),r.close?s("close"):""];if(!r.open){let d=ns(t);Qe(i);let x=xc(G(",",i),2),h=G(d?S:A,x);return q(d?[S,h]:L([vc(t)?D:"",Te(h)]))}let o=t.map(({node:d,isLast:x,index:h})=>{var b;let m=i[h];Mt(d)&&d.type==="value-comma_group"&&d.groups&&d.groups[0].type!=="value-paren_group"&&((b=d.groups[2])==null?void 0:b.type)==="value-paren_group"&&j(m)===se&&j(m.contents)===re&&j(m.contents.contents)===ne&&(m=L(ae(m)));let y=[m,x?wc(t,e):","];if(!x&&d.type==="value-comma_group"&&ue(d.groups)){let w=$(!1,d.groups,-1);!w.source&&w.close&&(w=w.close),w.source&&Gt(e.originalText,P(w))&&y.push(S)}return y},"groups"),u=ci(r,n),a=hi(r,n),c=es(t,e),f=a||c&&!u,p=a||u,l=L([r.open?s("open"):"",q([D,G(A,o)]),D,r.close?s("close"):""],{shouldBreak:f});return p?ae(l):l}function ns(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(s=>s.type==="value-comma_group"),(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function vc(t){return t.match(e=>e.type==="value-paren_group"&&!e.open,(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&e.type==="css-decl")}function xc(t,e){let s=[];for(let r=0;r{let{node:n,previous:i}=t;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(N(n),P(n))):r.push(s()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Wt(e.originalText,N(o),{backwards:!0})&&!Oe(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?A:S),Gt(e.originalText,P(n))&&!Oe(n)&&r.push(S))},"nodes"),r}var Ie=bc;function _c(t,e,s){var n,i,o,u,a,c;let{node:r}=t;switch(r.type){case"front-matter":return[r.raw,S];case"css-root":{let f=Ie(t,e,s),p=r.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[r.frontMatter?[s("frontMatter"),S]:"",f,p?` ${p}`:"",r.nodes.length>0?S:""]}case"css-comment":{let f=r.inline||r.raws.inline,p=e.originalText.slice(N(r),P(r));return f?p.trimEnd():p}case"css-rule":return[s("selector"),r.important?" !important":"",r.nodes?[((n=r.selector)==null?void 0:n.type)==="selector-unknown"&&Re(r.selector.value)?A:r.selector?" ":"","{",r.nodes.length>0?q([S,Ie(t,e,s)]):"",S,"}",ei(r)?";":""]:";"];case"css-decl":{let f=t.parent,{between:p}=r.raws,l=p.trim(),d=l===":",x=typeof r.value=="string"&&/^ *$/u.test(r.value),h=typeof r.value=="string"?r.value:s("value");return h=ui(r)?sn(h):h,!d&&Re(l)&&!((o=(i=r.value)==null?void 0:i.group)!=null&&o.group&&t.call(()=>ns(t),"value","group","group"))&&(h=q([S,ae(h)])),[E(!1,r.raws.before,/[\s;]/gu,""),f.type==="css-atrule"&&f.variable||Qn(t)?r.prop:Ae(r.prop),l.startsWith("//")?" ":"",l,r.extend||x?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",s("selector"),")"]:"",h,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",q([D,Ie(t,e,s)]),D,"}"]:oi(r)&&!f.raws.semicolon&&e.originalText[P(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?Ct(";"):";"]}case"css-atrule":{let f=t.parent,p=Dt(r)&&!f.raws.semicolon&&e.originalText[P(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[s("selector"),r.important?" !important":"",p?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:s("params"),p?"":";"];if(r.variable)return["@",r.name,": ",r.value?s("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",q([r.nodes.length>0?D:"",Ie(t,e,s)]),D,"}"]:"",p?"":";"]}let l=r.name==="import"&&((u=r.params)==null?void 0:u.type)==="value-unknown"&&r.params.value.endsWith(";");return["@",Zr(r)||r.name.endsWith(":")||Dt(r)?r.name:Ae(r.name),r.params?[Zr(r)?"":Dt(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(r.raws.afterName)?[S,S]:/^\s*\n/u.test(r.raws.afterName)?S:" ":" ",typeof r.params=="string"?r.params:s("params")]:"",r.selector?q([" ",s("selector")]):"",r.value?L([" ",s("value"),rt(r,e)?li(r)?" ":A:""]):r.name==="else"?" ":"",r.nodes?[rt(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Re(r.selector.value)||!r.selector&&typeof r.params=="string"&&Re(r.params)?A:" ","{",q([r.nodes.length>0?D:"",Ie(t,e,s)]),D,"}"]:p||l?"":";"]}case"media-query-list":{let f=[];return t.each(({node:p})=>{p.type==="media-query"&&p.value===""||f.push(s())},"nodes"),L(q(G(A,f)))}case"media-query":return[G(" ",t.map(s,"nodes")),t.isLast?"":","];case"media-type":return ye(Y(r.value,e));case"media-feature-expression":return r.nodes?["(",...t.map(s,"nodes"),")"]:r.value;case"media-feature":return Ae(Y(E(!1,r.value,/ +/gu," "),e));case"media-colon":return[r.value," "];case"media-value":return ye(Y(r.value,e));case"media-keyword":return Y(r.value,e);case"media-url":return Y(E(!1,E(!1,r.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),e);case"media-unknown":return r.value;case"selector-root":return L([he(t,"custom-selector")?[t.findAncestor(f=>f.type==="css-atrule").customSelector,A]:"",G([",",he(t,["extend","custom-selector","nest"])?A:S],t.map(s,"nodes"))]);case"selector-selector":{let f=r.nodes.length>2;return L((f?q:p=>p)(t.map(s,"nodes")))}case"selector-comment":return r.value;case"selector-string":return Y(r.value,e);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",((a=t.previous)==null?void 0:a.type)==="selector-nesting"?r.value:ye(Kn(t,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",ye(Y(r.value,e))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?gi(Y(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let l=t.parent;return[l.type==="selector-selector"&&l.nodes[0]===r?"":A,r.value,t.isLast?"":" "]}let f=r.value.trim().startsWith("(")?A:"",p=ye(Y(r.value.trim(),e))||A;return[f,p]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[Ae(r.value),ue(r.nodes)?L(["(",q([D,G([",",A],t.map(s,"nodes"))]),D,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{let f=t.findAncestor(d=>d.type==="css-rule");if(f!=null&&f.isSCSSNesterProperty)return ye(Y(Ae(r.value),e));let p=t.parent;if((c=p.raws)!=null&&c.selector){let d=N(p),x=d+p.raws.selector.length;return e.originalText.slice(d,x).trim()}let l=t.grandparent;if(p.type==="value-paren_group"&&(l==null?void 0:l.type)==="value-func"&&l.value==="selector"){let d=P(p.open)+1,x=N(p.close),h=e.originalText.slice(d,x).trim();return Re(h)?[Xe,h]:h}return r.value}case"value-value":case"value-root":return s("group");case"value-comment":return e.originalText.slice(N(r),P(r));case"value-comma_group":return di(t,e,s);case"value-paren_group":return bi(t,e,s);case"value-func":return[r.value,he(t,"supports")&&fi(r)?" ":"",s("group")];case"value-paren":return r.value;case"value-number":return[ss(r.value),rs(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||jn(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:f}=t;return L([r.value,typeof(f==null?void 0:f.value)=="string"&&f.value.endsWith("\\")||Ne(t,"url")?"":A])}case"value-string":return Nt(r.raws.quote+r.value+r.raws.quote,e);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"value-comma":default:throw new dn(r,"PostCSS")}}var Ec={print:_c,embed:vn,insertPragma:zn,massageAstNode:yn,getVisitorKeys:_n},_i=Ec;var Ei=[{name:"CSS",type:"markup",extensions:[".css",".wxss"],tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",extensions:[".pcss",".postcss"],tmScope:"source.postcss",aceMode:"text",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",extensions:[".scss"],tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}];var ki={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var kc={singleQuote:ki.singleQuote},Si=kc;var Zs={};tn(Zs,{css:()=>My,less:()=>By,scss:()=>Uy});var hl=be(gt(),1),dl=be(Io(),1),ml=be(ha(),1);function cp(t,e){let s=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(s,e)}var da=cp;var ba=be(xa(),1);function Z(t,e,s){if(t&&typeof t=="object"){delete t.parent;for(let r in t)Z(t[r],e,s),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!s||!s.test(t[r]))&&(t[r]=e+t[r])}return t}function Ms(t){if(t&&typeof t=="object"){delete t.parent;for(let e in t)Ms(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}var _p=ba.default.default;function Ep(t){let e;try{e=_p(t)}catch{return{type:"selector-unknown",value:t}}return Z(Ms(e),"media-")}var _a=Ep;var yu=be(mu(),1);function Mm(t){if(/\/\/|\/\*/u.test(t))return{type:"selector-unknown",value:t.trim()};let e;try{new yu.default(s=>{e=s}).process(t)}catch{return{type:"selector-unknown",value:t}}return Z(e,"selector-")}var te=Mm;var ll=be(sl(),1);var Sy=t=>{for(;t.parent;)t=t.parent;return t},$r=Sy;function Ty(t){return $r(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var nl=Ty;function Oy(t){if(ue(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var il=Oy;function Cy(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var ol=Cy;function Ay(t,e){return!!(e.parser==="scss"&&(t==null?void 0:t.type)==="word"&&t.value.startsWith("$"))}var al=Ay;var ul=t=>t.type==="paren"&&t.value===")";function Ny(t,e){var a;let{nodes:s}=t,r={open:null,close:null,groups:[],type:"paren_group"},n=[r],i=r,o={groups:[],type:"comma_group"},u=[o];for(let c=0;c0&&r.groups.push(o),r.close=f,u.length===1)throw new Error("Unbalanced parenthesis");u.pop(),o=$(!1,u,-1),o.groups.push(r),n.pop(),r=$(!1,n,-1)}else if(f.type==="comma"){if(c===s.length-3&&s[c+1].type==="comment"&&ul(s[c+2]))continue;r.groups.push(o),o={groups:[],type:"comma_group"},u[u.length-1]=o}else o.groups.push(f)}return o.groups.length>0&&r.groups.push(o),i}function Wr(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?Wr(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(Wr)}:t}function cl(t,e){if(t&&typeof t=="object")for(let s in t)s!=="parent"&&(cl(t[s],e),s==="nodes"&&(t.group=Wr(Ny(t,e)),delete t[s]));return t}function Py(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let s=null;try{s=new ll.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}s.text=t;let r=cl(s,e);return Z(r,"value-",/^selector-/u)}var pe=Py;var Ry=new Set(["import","use","forward"]);function Iy(t){return Ry.has(t)}var fl=Iy;function qy(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var pl=qy;var Ly=/(\s*)(!default).*$/u,Dy=/(\s*)(!global).*$/u;function yl(t,e){var s,r;if(t&&typeof t=="object"){delete t.parent;for(let u in t)yl(t[u],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let u;if(t.value.trimEnd().endsWith("}")){let a=e.originalText.slice(0,t.source.start.offset),c="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset),f=E(!1,a,/[^\n]/gu," ")+c,p;e.parser==="scss"?p=vl:e.parser==="less"?p=wl:p=gl;let l;try{l=p(f,{...e})}catch{}((s=l==null?void 0:l.nodes)==null?void 0:s.length)===1&&l.nodes[0].type==="css-rule"&&(u=l.nodes[0].nodes)}return u?t.value={type:"css-rule",nodes:u}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let n="";typeof t.selector=="string"&&(n=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(n+=t.raws.between),t.raws.selector=n);let i="";typeof t.value=="string"&&(i=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,t.raws.value=i.trim());let o="";if(typeof t.params=="string"&&(o=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(o=t.raws.afterName+o),t.raws.between&&t.raws.between.trim().length>0&&(o=o+t.raws.between),o=o.trim(),t.raws.params=o),n.trim().length>0)return n.startsWith("@")&&n.endsWith(":")?t:t.mixin?(t.selector=pe(n,e),t):(pl(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=te(n),t);if(i.trim().length>0){let u=i.match(Ly);u&&(i=i.slice(0,u.index),t.scssDefault=!0,u[0].trim()!=="!default"&&(t.raws.scssDefault=u[0]));let a=i.match(Dy);if(a&&(i=i.slice(0,a.index),t.scssGlobal=!0,a[0].trim()!=="!global"&&(t.raws.scssGlobal=a[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};t.value=pe(i,e)}if(e.parser==="less"&&t.type==="css-decl"&&i.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=te(i.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let u=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=te(u),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let u=t.params.match(/:--\S+\s+/u)[0].trim();return t.customSelector=u,t.selector=te(t.params.slice(u.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")&&!t.params){t.variable=!0;let u=t.name.split(":");t.name=u[0],t.value=pe(u.slice(1).join(":"),e)}if(!["page","nest","keyframes"].includes(t.name)&&((r=t.params)==null?void 0:r[0])===":"){t.variable=!0;let u=t.params.slice(1);u&&(t.value=pe(u,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&o.length>0){let{name:u}=t,a=t.name.toLowerCase();return u==="warn"||u==="error"?(t.params={type:"media-unknown",value:o},t):u==="extend"||u==="nest"?(t.selector=te(o),delete t.params,t):u==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(o)?t.params=pe(o,e):(t.selector=te(o),delete t.params),t):fl(a)?(t.import=!0,delete t.filename,t.params=pe(o,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(u)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/u,"$1($2"),t.value=pe(o,e),delete t.params,t):["media","custom-media"].includes(a)?o.includes("#{")?{type:"media-unknown",value:o}:(t.params=_a(o),t):(t.params=o,t)}}return t}function Xs(t,e,s){let r=Ce(e),{frontMatter:n}=r;e=r.content;let i;try{i=t(e,{map:!1})}catch(o){let{name:u,reason:a,line:c,column:f}=o;throw typeof c!="number"?o:da(`${u}: ${a}`,{loc:{start:{line:c,column:f}},cause:o})}return s.originalText=e,i=yl(Z(i,"css-"),s),Qr(i,e),n&&(n.source={startOffset:0,endOffset:n.raw.length},i.frontMatter=n),i}function gl(t,e={}){return Xs(hl.default.default,t,e)}function wl(t,e={}){return Xs(s=>dl.default.parse(On(s)),t,e)}function vl(t,e={}){return Xs(ml.default,t,e)}var Js={astFormat:"postcss",hasPragma:Yn,hasIgnorePragma:Vn,locStart:N,locEnd:P},My={...Js,parse:gl},By={...Js,parse:wl},Uy={...Js,parse:vl};var Fy={postcss:_i};return Sl($y);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/postcss.mjs b/node_modules/prettier/plugins/postcss.mjs deleted file mode 100644 index 4c7591f..0000000 --- a/node_modules/prettier/plugins/postcss.mjs +++ /dev/null @@ -1,54 +0,0 @@ -var xl=Object.create;var Wr=Object.defineProperty;var bl=Object.getOwnPropertyDescriptor;var _l=Object.getOwnPropertyNames;var El=Object.getPrototypeOf,kl=Object.prototype.hasOwnProperty;var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),rn=(t,e)=>{for(var s in e)Wr(t,s,{get:e[s],enumerable:!0})},Sl=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of _l(e))!kl.call(t,n)&&n!==s&&Wr(t,n,{get:()=>e[n],enumerable:!(r=bl(e,n))||r.enumerable});return t};var be=(t,e,s)=>(s=t!=null?xl(El(t)):{},Sl(e||!t||!t.__esModule?Wr(s,"default",{value:t,enumerable:!0}):s,t));var Oi=g((Pv,is)=>{var _=String,Ti=function(){return{isColorSupported:!1,reset:_,bold:_,dim:_,italic:_,underline:_,inverse:_,hidden:_,strikethrough:_,black:_,red:_,green:_,yellow:_,blue:_,magenta:_,cyan:_,white:_,gray:_,bgBlack:_,bgRed:_,bgGreen:_,bgYellow:_,bgBlue:_,bgMagenta:_,bgCyan:_,bgWhite:_,blackBright:_,redBright:_,greenBright:_,yellowBright:_,blueBright:_,magentaBright:_,cyanBright:_,whiteBright:_,bgBlackBright:_,bgRedBright:_,bgGreenBright:_,bgYellowBright:_,bgBlueBright:_,bgMagentaBright:_,bgCyanBright:_,bgWhiteBright:_}};is.exports=Ti();is.exports.createColors=Ti});var os=g(()=>{});var Gt=g((qv,Ni)=>{"use strict";var Ci=Oi(),Ai=os(),at=class t extends Error{constructor(e,s,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),typeof s<"u"&&typeof r<"u"&&(typeof s=="number"?(this.line=s,this.column=r):(this.line=s.line,this.column=s.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let s=this.source;e==null&&(e=Ci.isColorSupported);let r=f=>f,n=f=>f,i=f=>f;if(e){let{bold:f,gray:p,red:l}=Ci.createColors(!0);n=d=>f(l(d)),r=d=>p(d),Ai&&(i=d=>Ai(d))}let o=s.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;return o.slice(u,a).map((f,p)=>{let l=u+1+p,d=" "+(" "+l).slice(-c)+" | ";if(l===this.line){if(f.length>160){let h=20,m=Math.max(0,this.column-h),y=Math.max(this.column+h,this.endColumn+h),b=f.slice(m,y),w=r(d.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,h-1)).replace(/[^\t]/g," ");return n(">")+r(d)+i(b)+` - `+w+n("^")}let x=r(d.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(d)+i(f)+` - `+x+n("^")}return" "+r(d)+i(f)}).join(` -`)}toString(){let e=this.showSourceCode();return e&&(e=` - -`+e+` -`),this.name+": "+this.message+e}};Ni.exports=at;at.default=at});var Yt=g((Lv,Ri)=>{"use strict";var Pi={after:` -`,beforeClose:` -`,beforeComment:` -`,beforeDecl:` -`,beforeOpen:" ",beforeRule:` -`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Sc(t){return t[0].toUpperCase()+t.slice(1)}var ut=class{constructor(e){this.builder=e}atrule(e,s){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(s?";":"");this.builder(r+n+i,e)}}beforeAfter(e,s){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):s==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(` -`)){let o=this.raw(e,null,"indent");if(o.length)for(let u=0;u0&&e.nodes[s].type==="comment";)s-=1;let r=this.raw(e,"semicolon");for(let n=0;n{if(n=a.raws[s],typeof n<"u")return!1})}return typeof n>"u"&&(n=Pi[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return s=r.raws.after,s.includes(` -`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeComment(e,s){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` -`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,s){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` -`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let s;return e.walk(r=>{if(r.type!=="decl"&&(s=r.raws.between,typeof s<"u"))return!1}),s}rawBeforeRule(e){let s;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return s=r.raws.before,s.includes(` -`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawColon(e){let s;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return s=r.raws.between.replace(/[^\s:]/g,""),!1}),s}rawEmptyBody(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(s=r.raws.after,typeof s<"u"))return!1}),s}rawIndent(e){if(e.raws.indent)return e.raws.indent;let s;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(` -`);return s=i[i.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(s=r.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(e,s){let r=e[s],n=e.raws[s];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,s){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,s)}};Ri.exports=ut;ut.default=ut});var lt=g((Dv,Ii)=>{"use strict";var Tc=Yt();function as(t,e){new Tc(e).stringify(t)}Ii.exports=as;as.default=as});var Vt=g((Mv,us)=>{"use strict";us.exports.isClean=Symbol("isClean");us.exports.my=Symbol("my")});var pt=g((Bv,qi)=>{"use strict";var Oc=Gt(),Cc=Yt(),Ac=lt(),{isClean:ct,my:Nc}=Vt();function ls(t,e){let s=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:Array.isArray(n)?s[r]=n.map(o=>ls(o,s)):(i==="object"&&n!==null&&(n=ls(n)),s[r]=n)}return s}function J(t,e){if(e&&typeof e.offset<"u")return e.offset;let s=1,r=1,n=0;for(let i=0;ie.root().toProxy():e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&e.markDirty()),!0}}}markClean(){this[ct]=!0}markDirty(){if(this[ct]){this[ct]=!1;let e=this;for(;e=e.parent;)e[ct]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let s=this.source.start;if(e.index)s=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,i=r.slice(J(r,this.source.start),J(r,this.source.end)).indexOf(e.word);i!==-1&&(s=this.positionInside(i))}return s}positionInside(e){let s=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=J(n,this.source.start),o=i+e;for(let u=i;utypeof a=="object"&&a.toJSON?a.toJSON(null,s):a);else if(typeof u=="object"&&u.toJSON)r[o]=u.toJSON(null,s);else if(o==="source"){if(u==null)continue;let a=s.get(u.input);a==null&&(a=i,s.set(u.input,i),i++),r[o]={end:u.end,inputId:a,start:u.start}}else r[o]=u}return n&&(r.inputs=[...s.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ac){e.stringify&&(e=e.stringify);let s="";return e(this,r=>{s+=r}),s}warn(e,s,r={}){let n={node:this};for(let i in r)n[i]=r[i];return e.warn(s,n)}};qi.exports=ft;ft.default=ft});var qe=g((Uv,Li)=>{"use strict";var Pc=pt(),ht=class extends Pc{constructor(e){super(e),this.type="comment"}};Li.exports=ht;ht.default=ht});var mt=g((Fv,Di)=>{"use strict";var Rc=pt(),dt=class extends Rc{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};Di.exports=dt;dt.default=dt});var le=g(($v,Vi)=>{"use strict";var Mi=qe(),Bi=mt(),Ic=pt(),{isClean:Ui,my:Fi}=Vt(),cs,$i,Wi,fs;function Gi(t){return t.map(e=>(e.nodes&&(e.nodes=Gi(e.nodes)),delete e.source,e))}function Yi(t){if(t[Ui]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Yi(e)}var V=class t extends Ic{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let s of e){let r=this.normalize(s,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let s=this.getIterator(),r,n;for(;this.indexes[s]e[s](...r.map(n=>typeof n=="function"?(i,o)=>n(i.toProxy(),o):n)):s==="every"||s==="some"?r=>e[s]((n,...i)=>r(n.toProxy(),...i)):s==="root"?()=>e.root().toProxy():s==="nodes"?e.nodes.map(r=>r.toProxy()):s==="first"||s==="last"?e[s].toProxy():e[s]:e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="name"||s==="params"||s==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,s){let r=this.index(e),n=this.normalize(s,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Bi(e)]}else if(e.selector||e.selectors)e=[new fs(e)];else if(e.name)e=[new cs(e)];else if(e.text)e=[new Mi(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Fi]||t.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Ui]&&Yi(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&s&&typeof s.raws.before<"u"&&(n.raws.before=s.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let s of e){let r=this.normalize(s,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this.markDirty(),this}replaceValues(e,s,r){return r||(r=s,s={}),this.walkDecls(n=>{s.props&&!s.props.includes(n.prop)||s.fast&&!n.value.includes(s.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((s,r)=>{let n;try{n=e(s,r)}catch(i){throw s.addToError(i)}return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkAtRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return s(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="atrule")return s(r,n)}))}walkComments(e){return this.walk((s,r)=>{if(s.type==="comment")return e(s,r)})}walkDecls(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return s(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="decl")return s(r,n)}))}walkRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return s(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="rule")return s(r,n)}))}};V.registerParse=t=>{$i=t};V.registerRule=t=>{fs=t};V.registerAtRule=t=>{cs=t};V.registerRoot=t=>{Wi=t};Vi.exports=V;V.default=V;V.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,cs.prototype):t.type==="rule"?Object.setPrototypeOf(t,fs.prototype):t.type==="decl"?Object.setPrototypeOf(t,Bi.prototype):t.type==="comment"?Object.setPrototypeOf(t,Mi.prototype):t.type==="root"&&Object.setPrototypeOf(t,Wi.prototype),t[Fi]=!0,t.nodes&&t.nodes.forEach(e=>{V.rebuild(e)})}});var Hi=g((Wv,zi)=>{var qc="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Lc=(t,e=21)=>(s=e)=>{let r="",n=s|0;for(;n--;)r+=t[Math.random()*t.length|0];return r},Dc=(t=21)=>{let e="",s=t|0;for(;s--;)e+=qc[Math.random()*64|0];return e};zi.exports={nanoid:Dc,customAlphabet:Lc}});var ji=g(()=>{});var ps=g((Vv,Ki)=>{Ki.exports=class{}});var De=g((Hv,eo)=>{"use strict";var{nanoid:Mc}=Hi(),{isAbsolute:ms,resolve:ys}={},{SourceMapConsumer:Bc,SourceMapGenerator:Uc}=ji(),{fileURLToPath:Qi,pathToFileURL:zt}={},Xi=Gt(),Fc=ps(),hs=os(),ds=Symbol("lineToIndexCache"),$c=!!(Bc&&Uc),Ji=!!(ys&&ms);function Zi(t){if(t[ds])return t[ds];let e=t.css.split(` -`),s=new Array(e.length),r=0;for(let n=0,i=e.length;n"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,s.document&&(this.document=s.document.toString()),s.from&&(!Ji||/^\w+:\/\//.test(s.from)||ms(s.from)?this.file=s.from:this.file=ys(s.from)),Ji&&$c){let r=new Fc(this.css,s);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,s,r,n={}){let i,o,u,a,c;if(s&&typeof s=="object"){let p=s,l=r;if(typeof p.offset=="number"){a=p.offset;let d=this.fromOffset(a);s=d.line,r=d.col}else s=p.line,r=p.column,a=this.fromLineAndColumn(s,r);if(typeof l.offset=="number"){u=l.offset;let d=this.fromOffset(u);o=d.line,i=d.col}else o=l.line,i=l.column,u=this.fromLineAndColumn(l.line,l.column)}else if(r)a=this.fromLineAndColumn(s,r);else{a=s;let p=this.fromOffset(a);s=p.line,r=p.col}let f=this.origin(s,r,o,i);return f?c=new Xi(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,n.plugin):c=new Xi(e,o===void 0?s:{column:r,line:s},o===void 0?r:{column:i,line:o},this.css,this.file,n.plugin),c.input={column:r,endColumn:i,endLine:o,endOffset:u,line:s,offset:a,source:this.css},this.file&&(zt&&(c.input.url=zt(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,s){return Zi(this)[e-1]+s-1}fromOffset(e){let s=Zi(this),r=s[s.length-1],n=0;if(e>=r)n=s.length-1;else{let i=s.length-2,o;for(;n>1),e=s[o+1])n=o+1;else{n=o;break}}return{col:e-s[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ys(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:s,line:e});if(!o.source)return!1;let u;typeof r=="number"&&(u=i.originalPositionFor({column:n,line:r}));let a;ms(o.source)?a=zt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||zt(this.map.mapFile));let c={column:o.column,endColumn:u&&u.column,endLine:u&&u.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Qi)c.file=Qi(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};eo.exports=Le;Le.default=Le;hs&&hs.registerInput&&hs.registerInput(Le)});var Ht=g((jv,ro)=>{"use strict";var to=le(),Me=class extends to{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};ro.exports=Me;Me.default=Me;to.registerAtRule(Me)});var Be=g((Kv,oo)=>{"use strict";var so=le(),no,io,ce=class extends so{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,s,r){let n=super.normalize(e);if(s){if(r==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let i of n)i.raws.before=s.raws.before}return n}removeChild(e,s){let r=this.index(e);return!s&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new no(new io,this,e).stringify()}};ce.registerLazyResult=t=>{no=t};ce.registerProcessor=t=>{io=t};oo.exports=ce;ce.default=ce;so.registerRoot(ce)});var gs=g((Qv,ao)=>{"use strict";var yt={comma(t){return yt.split(t,[","],!0)},space(t){let e=[" ",` -`," "];return yt.split(t,e)},split(t,e,s){let r=[],n="",i=!1,o=0,u=!1,a="",c=!1;for(let f of t)c?c=!1:f==="\\"?c=!0:u?f===a&&(u=!1):f==='"'||f==="'"?(u=!0,a=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=f;return(s||n!=="")&&r.push(n.trim()),r}};ao.exports=yt;yt.default=yt});var jt=g((Xv,lo)=>{"use strict";var uo=le(),Wc=gs(),Ue=class extends uo{get selectors(){return Wc.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};lo.exports=Ue;Ue.default=Ue;uo.registerRule(Ue)});var Xt=g((Jv,fo)=>{"use strict";var Kt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Gc=/.[\r\n"'(/\\]/,co=/[\da-f]/i;fo.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,c,f,p,l,d,x,h=r.length,m=0,y=[],b=[];function w(){return m}function v(W){throw e.error("Unclosed "+W,m)}function R(){return b.length===0&&m>=h}function F(W){if(b.length)return b.pop();if(m>=h)return;let T=W?W.ignoreUnclosed:!1;switch(i=r.charCodeAt(m),i){case 10:case 32:case 9:case 13:case 12:{a=m;do a+=1,i=r.charCodeAt(a);while(i===32||i===10||i===9||i===13||i===12);f=["space",r.slice(m,a)],m=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let O=String.fromCharCode(i);f=[O,O,m];break}case 40:{if(x=y.length?y.pop()[1]:"",d=r.charCodeAt(m+1),x==="url"&&d!==39&&d!==34&&d!==32&&d!==10&&d!==9&&d!==12&&d!==13){a=m;do{if(p=!1,a=r.indexOf(")",a+1),a===-1)if(n||T){a=m;break}else v("bracket");for(l=a;r.charCodeAt(l-1)===92;)l-=1,p=!p}while(p);f=["brackets",r.slice(m,a+1),m,a],m=a}else a=r.indexOf(")",m+1),o=r.slice(m,a+1),a===-1||Gc.test(o)?f=["(","(",m]:(f=["brackets",o,m,a],m=a);break}case 39:case 34:{c=i===39?"'":'"',a=m;do{if(p=!1,a=r.indexOf(c,a+1),a===-1)if(n||T){a=m+1;break}else v("string");for(l=a;r.charCodeAt(l-1)===92;)l-=1,p=!p}while(p);f=["string",r.slice(m,a+1),m,a],m=a;break}case 64:{Kt.lastIndex=m+1,Kt.test(r),Kt.lastIndex===0?a=r.length-1:a=Kt.lastIndex-2,f=["at-word",r.slice(m,a+1),m,a],m=a;break}case 92:{for(a=m,u=!0;r.charCodeAt(a+1)===92;)a+=1,u=!u;if(i=r.charCodeAt(a+1),u&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(a+=1,co.test(r.charAt(a)))){for(;co.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}f=["word",r.slice(m,a+1),m,a],m=a;break}default:{i===47&&r.charCodeAt(m+1)===42?(a=r.indexOf("*/",m+2)+1,a===0&&(n||T?a=r.length:v("comment")),f=["comment",r.slice(m,a+1),m,a],m=a):(Qt.lastIndex=m+1,Qt.test(r),Qt.lastIndex===0?a=r.length-1:a=Qt.lastIndex-2,f=["word",r.slice(m,a+1),m,a],y.push(f),m=a);break}}return m++,f}function Q(W){b.push(W)}return{back:Q,endOfFile:R,nextToken:F,position:w}}});var Jt=g((Zv,mo)=>{"use strict";var Yc=Ht(),Vc=qe(),zc=mt(),Hc=Be(),po=jt(),jc=Xt(),ho={empty:!0,space:!0};function Kc(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var ws=class{constructor(e){this.input=e,this.root=new Hc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let s=new Yc;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,u=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(a.length>0){for(i=a.length-1,n=a[i];n&&n[0]==="space";)n=a[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]),s.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),o&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),u&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let s=this.colon(e);if(s===!1)return;let r=0,n;for(let i=s-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let s=0,r,n,i;for(let[o,u]of e.entries()){if(n=u,i=n[0],i==="("&&(s+=1),i===")"&&(s-=1),s===0&&i===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=n}return!1}comment(e){let s=new Vc;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=n[2],s.raws.left=n[1],s.raws.right=n[3]}}createTokenizer(){this.tokenizer=jc(this.input)}decl(e,s){let r=new zc;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||Kc(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],u;for(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(i=e[c],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let l=c;l>0;l--){let d=f[l][0];if(p.trim().startsWith("!")&&d!=="space")break;p=f.pop()[1]+p}p.trim().startsWith("!")&&(r.important=!0,r.raws.important=p,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),s),r.value.includes(":")&&!s&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let s=new po;this.init(s,e[2]),s.selector="",s.raws.between="",this.current=s}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let s=this.current.nodes[this.current.nodes.length-1];s&&s.type==="rule"&&!s.raws.ownSemicolon&&(s.raws.ownSemicolon=this.spaces,this.spaces="",s.source.end=this.getPosition(e[2]),s.source.end.offset+=s.raws.ownSemicolon.length)}}getPosition(e){let s=this.input.fromOffset(e);return{column:s.col,line:s.line,offset:e}}init(e,s){this.current.push(e),e.source={input:this.input,start:this.getPosition(s)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let s=!1,r=null,n=!1,i=null,o=[],u=e[1].startsWith("--"),a=[],c=e;for(;c;){if(r=c[0],a.push(c),r==="("||r==="[")i||(i=c),o.push(r==="("?")":"]");else if(u&&n&&r==="{")i||(i=c),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(a,u);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),s=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(s=!0),o.length>0&&this.unclosedBracket(i),s&&n){if(!u)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,u)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,s,r,n){let i,o,u=r.length,a="",c=!0,f,p;for(let l=0;ld+x[1],"");e.raws[s]={raw:l,value:a}}e[s]=a}rule(e){e.pop();let s=new po;this.init(s,e[0][2]),s.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(s,"selector",e),this.current=s}spacesAndCommentsFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],!(s!=="space"&&s!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let s,r="";for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],s==="space");)r=e.pop()[1]+r;return r}stringFrom(e,s){let r="";for(let n=s;n{"use strict";var Qc=le(),Xc=De(),Jc=Jt();function Zt(t,e){let s=new Xc(t,e),r=new Jc(s);try{r.parse()}catch(n){throw n}return r.root}yo.exports=Zt;Zt.default=Zt;Qc.registerParse(Zt)});var go=g((tx,vs)=>{var Zc=Xt(),ef=De();vs.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,s=[],r,n;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){s.push(t[1].substring(0,t[1].indexOf(` -`))),n=t[1].substring(t[1].indexOf(` -`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new ef(n),this.tokenizer=Zc(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),vs.exports.isInlineComment.bind(this)(t)}return!1}}});var vo=g((rx,wo)=>{wo.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(u=>u[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var bo=g((sx,xo)=>{var tf=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,rf=/\.[0-9]/,sf=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&tf.test(e)===!1&&rf.test(e)===!1};xo.exports={isMixinToken:sf}});var Eo=g((nx,_o)=>{var nf=Xt(),of=/^url\((.+)\)/;_o.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=nf({css:s});for(t.filename=s.replace(of,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var Oo=g((ix,To)=>{var ko=/:$/,So=/^:(\s+)?/;To.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(ko.test(e)){let[r]=e.match(ko);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(So.test(s)){let[r]=s.match(So);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var No=g((ax,Ao)=>{var af=qe(),uf=Jt(),{isInlineComment:lf}=go(),{interpolation:Co}=vo(),{isMixinToken:cf}=bo(),ff=Eo(),pf=Oo(),hf=/(!\s*important)$/i;Ao.exports=class extends uf{constructor(...e){super(...e),this.lastNode=null}atrule(e){Co.bind(this)(e)||(super.atrule(e),ff(this.lastNode),pf(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let s=e.findIndex(u=>u[0]==="("),r=e.reverse().find(u=>u[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new af,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((n<0||n>3)&&i>0){let c=e.reduce((w,v,R)=>v[0]===")"?R:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),d=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],m=["brackets",p].concat(d,h),y=e.slice(0,i),b=e.slice(c+1);e=y,e.push(m),e=e.concat(b)}let u=[];for(let c of e)if((c[1]==="!"||u.length)&&u.push(c),c[1]==="important")break;if(u.length){let[c]=u,f=e.indexOf(c),p=u[u.length-1],l=[c[2],c[3]],d=[p[4],p[5]],h=["word",u.map(m=>m[1]).join("")].concat(l,d);e.splice(f,u.length,h)}let a=e.findIndex(c=>hf.test(c[1]));a>0&&([,o]=e[a],e.splice(a,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){lf.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),Co.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(cf(s)){this.mixin(e);return}super.unknownWord(e)}}});var Ro=g((lx,Po)=>{var df=Yt();Po.exports=class extends df{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let u=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+u,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var Io=g((cx,xs)=>{var mf=De(),yf=No(),gf=Ro();xs.exports={parse(t,e){let s=new mf(t,e),r=new yf(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,u=s.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:u.line,column:u.col},n.source.end){let a=i+n.source.end.offset,c=s.fromOffset(i+n.source.end.offset);n.source.end={offset:a,line:c.line,column:c.col}}}),r.root},stringify(t,e){new gf(e).stringify(t)},nodeToString(t){let e="";return xs.exports.stringify(t,s=>{e+=s}),e}}});var er=g((fx,Do)=>{"use strict";var wf=le(),qo,Lo,ge=class extends wf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new qo(new Lo,this,e).stringify()}};ge.registerLazyResult=t=>{qo=t};ge.registerProcessor=t=>{Lo=t};Do.exports=ge;ge.default=ge});var Bo=g((px,Mo)=>{"use strict";var vf=Ht(),xf=qe(),bf=mt(),_f=De(),Ef=ps(),kf=Be(),Sf=jt();function wt(t,e){if(Array.isArray(t))return t.map(n=>wt(n));let{inputs:s,...r}=t;if(s){e=[];for(let n of s){let i={...n,__proto__:_f.prototype};i.map&&(i.map={...i.map,__proto__:Ef.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(n=>wt(n,e))),r.source){let{inputId:n,...i}=r.source;r.source=i,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new kf(r);if(r.type==="decl")return new bf(r);if(r.type==="rule")return new Sf(r);if(r.type==="comment")return new xf(r);if(r.type==="atrule")return new vf(r);throw new Error("Unknown node type: "+t.type)}Mo.exports=wt;wt.default=wt});var bs=g((hx,Uo)=>{Uo.exports=class{generate(){}}});var _s=g((mx,Fo)=>{"use strict";var vt=class{constructor(e,s={}){if(this.type="warning",this.text=e,s.node&&s.node.source){let r=s.node.rangeBy(s);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in s)this[r]=s[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Fo.exports=vt;vt.default=vt});var tr=g((yx,$o)=>{"use strict";var Tf=_s(),xt=class{get content(){return this.css}constructor(e,s,r){this.processor=e,this.messages=[],this.root=s,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new Tf(e,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};$o.exports=xt;xt.default=xt});var Es=g((gx,Go)=>{"use strict";var Wo={};Go.exports=function(e){Wo[e]||(Wo[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Ts=g((vx,Ho)=>{"use strict";var Of=le(),Cf=er(),Af=bs(),Nf=gt(),Yo=tr(),Pf=Be(),Rf=lt(),{isClean:K,my:If}=Vt(),wx=Es(),qf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Lf={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Df={Once:!0,postcssPlugin:!0,prepare:!0},Fe=0;function bt(t){return typeof t=="object"&&typeof t.then=="function"}function zo(t){let e=!1,s=qf[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,Fe,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,Fe,s+"Exit"]:[s,s+"Exit"]}function Vo(t){let e;return t.type==="document"?e=["Document",Fe,"DocumentExit"]:t.type==="root"?e=["Root",Fe,"RootExit"]:e=zo(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ks(t){return t[K]=!1,t.nodes&&t.nodes.forEach(e=>ks(e)),t}var Ss={},fe=class t{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,s,r){this.stringified=!1,this.processed=!1;let n;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))n=ks(s);else if(s instanceof t||s instanceof Yo)n=ks(s.root),s.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let i=Nf;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(s,r)}catch(o){this.processed=!0,this.error=o}n&&!n[If]&&Of.rebuild(n)}this.result=new Yo(e,n,r),this.helpers={...Ss,postcss:Ss,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,s){let r=this.result.lastPlugin;try{s&&s.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(s,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([s,n])};for(let s of this.plugins)if(typeof s=="object")for(let r in s){if(!Lf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Df[r])if(typeof s[r]=="object")for(let n in s[r])n==="*"?e(s,r,s[r][n]):e(s,r+"-"+n.toLowerCase(),s[r][n]);else typeof s[r]=="function"&&e(s,r,s[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let r=this.visitTick(s);if(bt(r))try{await r}catch(n){let i=s[s.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[s,r]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(e.type==="document"){let n=e.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return bt(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,s=Rf;e.syntax&&(s=e.syntax.stringify),e.stringifier&&(s=e.stringifier),s.stringify&&(s=s.stringify);let n=new Af(s,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let s=this.runOnRoot(e);if(bt(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[K];)e[K]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let s of e.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,s){return this.async().then(e,s)}toString(){return this.css}visitSync(e,s){for(let[r,n]of e){this.result.lastPlugin=r;let i;try{i=n(s,this.helpers)}catch(o){throw this.handleError(o,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(bt(i))throw this.getAsyncError()}}visitTick(e){let s=e[e.length-1],{node:r,visitors:n}=s;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&s.visitorIndex{n[K]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}};fe.registerPostcss=t=>{Ss=t};Ho.exports=fe;fe.default=fe;Pf.registerLazyResult(fe);Cf.registerLazyResult(fe)});var Ko=g((bx,jo)=>{"use strict";var Mf=bs(),Bf=gt(),Uf=tr(),Ff=lt(),xx=Es(),_t=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,s=Bf;try{e=s(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,s,r){s=s.toString(),this.stringified=!1,this._processor=e,this._css=s,this._opts=r,this._map=void 0;let n,i=Ff;this.result=new Uf(this._processor,n,this._opts),this.result.css=s;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let u=new Mf(i,n,this._opts,s);if(u.isMap()){let[a,c]=u.generate();a&&(this.result.css=a),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,s){return this.async().then(e,s)}toString(){return this._css}warnings(){return[]}};jo.exports=_t;_t.default=_t});var Xo=g((_x,Qo)=>{"use strict";var $f=er(),Wf=Ts(),Gf=Ko(),Yf=Be(),we=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let s=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))s=s.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)s.push(r);else if(typeof r=="function")s.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return s}process(e,s={}){return!this.plugins.length&&!s.parser&&!s.stringifier&&!s.syntax?new Gf(this,e,s):new Wf(this,e,s)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};Qo.exports=we;we.default=we;Yf.registerProcessor(we);$f.registerProcessor(we)});var rr=g((Ex,na)=>{"use strict";var Jo=Ht(),Zo=qe(),Vf=le(),zf=Gt(),ea=mt(),ta=er(),Hf=Bo(),jf=De(),Kf=Ts(),Qf=gs(),Xf=pt(),Jf=gt(),Os=Xo(),Zf=tr(),ra=Be(),sa=jt(),ep=lt(),tp=_s();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Os(t)}k.plugin=function(e,s){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: -https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let u=s(...o);return u.postcssPlugin=e,u.postcssVersion=new Os().version,u}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,u,a){return k([n(a)]).process(o,u)},n};k.stringify=ep;k.parse=Jf;k.fromJSON=Hf;k.list=Qf;k.comment=t=>new Zo(t);k.atRule=t=>new Jo(t);k.decl=t=>new ea(t);k.rule=t=>new sa(t);k.root=t=>new ra(t);k.document=t=>new ta(t);k.CssSyntaxError=zf;k.Declaration=ea;k.Container=Vf;k.Processor=Os;k.Document=ta;k.Comment=Zo;k.Warning=tp;k.AtRule=Jo;k.Result=Zf;k.Input=jf;k.Rule=sa;k.Root=ra;k.Node=Xf;Kf.registerPostcss(k);na.exports=k;k.default=k});var oa=g((kx,ia)=>{var{Container:rp}=rr(),Cs=class extends rp{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};ia.exports=Cs});var la=g((Sx,ua)=>{"use strict";var sr=/[\t\n\f\r "#'()/;[\\\]{}]/g,nr=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,sp=/.[\r\n"'(/\\]/,aa=/[\da-f]/i,ir=/[\n\f\r]/g;ua.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,c,f,p,l,d,x=r.length,h=0,m=[],y=[],b;function w(){return h}function v(T){throw e.error("Unclosed "+T,h)}function R(){return y.length===0&&h>=x}function F(){let T=1,O=!1,C=!1;for(;T>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),O?!C&&i===O?(O=!1,C=!1):i===92?C=!C:C&&(C=!1):i===39||i===34?O=i:i===125?T-=1:i===35&&l===123&&(T+=1)}function Q(T){if(y.length)return y.pop();if(h>=x)return;let O=T?T.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case 10:case 32:case 9:case 13:case 12:{o=h;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);d=["space",r.slice(h,o)],h=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let C=String.fromCharCode(i);d=[C,C,h];break}case 44:{d=["word",",",h,h+1];break}case 40:{if(p=m.length?m.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==39&&l!==34){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===92)f=!f;else if(l===40)b+=1;else if(l===41&&(b-=1,b===0))break;o+=1}a=r.slice(h,o+1),d=["brackets",a,h,o],h=o}else o=r.indexOf(")",h+1),a=r.slice(h,o+1),o===-1||sp.test(a)?d=["(","(",h]:(d=["brackets",a,h,o],h=o);break}case 39:case 34:{for(u=i,o=h,f=!1;o{var{Comment:np}=rr(),ip=Jt(),op=oa(),ap=la(),As=class extends ip{atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}comment(e){if(e[4]==="inline"){let s=new np;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={column:r.col,line:r.line,offset:e[3]+1};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=ap(this.input)}raw(e,s,r,n){if(super.raw(e,s,r,n),e.raws[s]){let i=e.raws[s].raw;e.raws[s].raw=r.reduce((o,u)=>{if(u[0]==="comment"&&u[4]==="inline"){let a=u[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+a+"*/"}else return o+u[1]},""),i!==e.raws[s].raw&&(e.raws[s].scss=i)}}rule(e){let s=!1,r=0,n="";for(let i of e)if(s)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(` -`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new op;this.init(i,e[0][2]);let o;for(let a=e.length-1;a>=0;a--)if(e[a][0]!=="space"){o=e[a];break}if(o[3]){let a=this.input.fromOffset(o[3]);i.source.end={column:a.col,line:a.line,offset:o[3]+1}}else{let a=this.input.fromOffset(o[2]);i.source.end={column:a.col,line:a.line,offset:o[2]+1}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let a=this.input.fromOffset(e[0][2]);i.source.start={column:a.col,line:a.line,offset:e[0][2]}}for(i.prop="";e.length;){let a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let a=e.length-1;a>0;a--){if(u=e[a],u[1]==="!important"){i.important=!0;let c=this.stringFrom(e,a);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(u[1]==="important"){let c=e.slice(0),f="";for(let p=a;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(u[0]!=="space"&&u[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}};ca.exports=As});var ha=g((Ox,pa)=>{var{Input:up}=rr(),lp=fa();pa.exports=function(e,s){let r=new up(e,s),n=new lp(r);return n.parse(),n.root}});var Ps=g(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});function fp(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}Ns.default=fp});var Is=g(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var pp=Ps(),ma=hp(pp);function hp(t){return t&&t.__esModule?t:{default:t}}function Et(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(s){s.parent=e})}Et.prototype=Object.create(ma.default.prototype);Et.constructor=ma.default;Et.prototype.walk=function(e,s){for(var r=typeof e=="string"||e instanceof RegExp,n=r?s:e,i=typeof e=="string"?new RegExp(e):e,o=0;o{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.parseMediaFeature=wa;kt.parseMediaQuery=Ls;kt.parseMediaList=yp;var dp=Ps(),ya=ga(dp),mp=Is(),qs=ga(mp);function ga(t){return t&&t.__esModule?t:{default:t}}function wa(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[{mode:"normal",character:null}],r=[],n=0,i="",o=null,u=null,a=e,c=t;t[0]==="("&&t[t.length-1]===")"&&(c=t.substring(1,t.length-1),a++);for(var f=0;f0&&(s[c-1].after=i.before),i.type===void 0){if(c>0){if(s[c-1].type==="media-feature-expression"){i.type="keyword";continue}if(s[c-1].value==="not"||s[c-1].value==="only"){i.type="media-type";continue}if(s[c-1].value==="and"){i.type="media-feature-expression";continue}s[c-1].type==="media-type"&&(s[c+1]?i.type=s[c+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(c===0){if(!s[c+1]){i.type="media-type";continue}if(s[c+1]&&(s[c+1].type==="media-feature-expression"||s[c+1].type==="keyword")){i.type="media-type";continue}if(s[c+2]){if(s[c+2].type==="media-feature-expression"){i.type="media-type",s[c+1].type="keyword";continue}if(s[c+2].type==="keyword"){i.type="keyword",s[c+1].type="media-type";continue}}if(s[c+3]&&s[c+3].type==="media-feature-expression"){i.type="keyword",s[c+1].type="media-type",s[c+2].type="keyword";continue}}}return s}function yp(t){var e=[],s=0,r=0,n=/^(\s*)url\s*\(/.exec(t);if(n!==null){for(var i=n[0].length,o=1;o>0;){var u=t[i];u==="("&&o++,u===")"&&o--,i++}e.unshift(new ya.default({type:"url",value:t.substring(0,i).trim(),sourceIndex:n[1].length,before:n[1],after:/^(\s*)/.exec(t.substring(i))[1]})),s=i}for(var a=s;a{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.default=bp;var gp=Is(),wp=xp(gp),vp=va();function xp(t){return t&&t.__esModule?t:{default:t}}function bp(t){return new wp.default({nodes:(0,vp.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});var Bs=g((Dx,Ea)=>{Ea.exports=function(e,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(e)?e.map(function(n){return n}):e;return r(e,1);function r(n,i){return n.reduce(function(o,u){return Array.isArray(u)&&i{ka.exports=function(t,e){for(var s=-1,r=[];(s=t.indexOf(e,s+1))!==-1;)r.push(s);return r}});var Fs=g((Bx,Sa)=>{"use strict";function kp(t,e){for(var s=1,r=t.length,n=t[0],i=t[0],o=1;o{"use strict";or.__esModule=!0;var Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function Op(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Cp=function t(e,s){if((typeof e>"u"?"undefined":Ta(e))!=="object")return e;var r=new e.constructor;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],o=typeof i>"u"?"undefined":Ta(i);n==="parent"&&o==="object"?s&&(r[n]=s):i instanceof Array?r[n]=i.map(function(u){return t(u,r)}):r[n]=t(i,r)}return r},Ap=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Op(this,t);for(var s in e)this[s]=e[s];var r=e.spaces;r=r===void 0?{}:r;var n=r.before,i=n===void 0?"":n,o=r.after,u=o===void 0?"":o;this.spaces={before:i,after:u}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var s in arguments)this.parent.insertBefore(this,arguments[s]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Cp(this);for(var n in s)r[n]=s[n];return r},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t}();or.default=Ap;Oa.exports=or.default});var M=g(B=>{"use strict";B.__esModule=!0;var Ux=B.TAG="tag",Fx=B.STRING="string",$x=B.SELECTOR="selector",Wx=B.ROOT="root",Gx=B.PSEUDO="pseudo",Yx=B.NESTING="nesting",Vx=B.ID="id",zx=B.COMMENT="comment",Hx=B.COMBINATOR="combinator",jx=B.CLASS="class",Kx=B.ATTRIBUTE="attribute",Qx=B.UNIVERSAL="universal"});var ur=g((ar,Ca)=>{"use strict";ar.__esModule=!0;var Np=function(){function t(e,s){for(var r=0;r=r&&(this.indexes[i]=n-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var u=o;u.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(r,n){var i=this.index(r);this.nodes.splice(i+1,0,n);var o=void 0;for(var u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+this.nodes.length);return this},e.prototype.insertBefore=function(r,n){var i=this.index(r);this.nodes.splice(i,0,n);var o=void 0;for(var u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+this.nodes.length);return this},e.prototype.each=function(r){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[n]{"use strict";lr.__esModule=!0;var Fp=ur(),$p=Gp(Fp),Wp=M();function Gp(t){return t&&t.__esModule?t:{default:t}}function Yp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function zp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Hp=function(t){zp(e,t);function e(s){Yp(this,e);var r=Vp(this,t.call(this,s));return r.type=Wp.ROOT,r}return e.prototype.toString=function(){var r=this.reduce(function(n,i){var o=String(i);return o?n+o+",":""},"").slice(0,-1);return this.trailingComma?r+",":r},e}($p.default);lr.default=Hp;Aa.exports=lr.default});var Ra=g((cr,Pa)=>{"use strict";cr.__esModule=!0;var jp=ur(),Kp=Xp(jp),Qp=M();function Xp(t){return t&&t.__esModule?t:{default:t}}function Jp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function eh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var th=function(t){eh(e,t);function e(s){Jp(this,e);var r=Zp(this,t.call(this,s));return r.type=Qp.SELECTOR,r}return e}(Kp.default);cr.default=th;Pa.exports=cr.default});var $e=g((fr,Ia)=>{"use strict";fr.__esModule=!0;var rh=function(){function t(e,s){for(var r=0;r{"use strict";pr.__esModule=!0;var ch=$e(),fh=hh(ch),ph=M();function hh(t){return t&&t.__esModule?t:{default:t}}function dh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var gh=function(t){yh(e,t);function e(s){dh(this,e);var r=mh(this,t.call(this,s));return r.type=ph.CLASS,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},e}(fh.default);pr.default=gh;qa.exports=pr.default});var Ma=g((hr,Da)=>{"use strict";hr.__esModule=!0;var wh=ve(),vh=bh(wh),xh=M();function bh(t){return t&&t.__esModule?t:{default:t}}function _h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Eh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function kh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Sh=function(t){kh(e,t);function e(s){_h(this,e);var r=Eh(this,t.call(this,s));return r.type=xh.COMMENT,r}return e}(vh.default);hr.default=Sh;Da.exports=hr.default});var Ua=g((dr,Ba)=>{"use strict";dr.__esModule=!0;var Th=$e(),Oh=Ah(Th),Ch=M();function Ah(t){return t&&t.__esModule?t:{default:t}}function Nh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ph(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Rh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ih=function(t){Rh(e,t);function e(s){Nh(this,e);var r=Ph(this,t.call(this,s));return r.type=Ch.ID,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},e}(Oh.default);dr.default=Ih;Ba.exports=dr.default});var $a=g((mr,Fa)=>{"use strict";mr.__esModule=!0;var qh=$e(),Lh=Mh(qh),Dh=M();function Mh(t){return t&&t.__esModule?t:{default:t}}function Bh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Fh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $h=function(t){Fh(e,t);function e(s){Bh(this,e);var r=Uh(this,t.call(this,s));return r.type=Dh.TAG,r}return e}(Lh.default);mr.default=$h;Fa.exports=mr.default});var Ga=g((yr,Wa)=>{"use strict";yr.__esModule=!0;var Wh=ve(),Gh=Vh(Wh),Yh=M();function Vh(t){return t&&t.__esModule?t:{default:t}}function zh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function jh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Kh=function(t){jh(e,t);function e(s){zh(this,e);var r=Hh(this,t.call(this,s));return r.type=Yh.STRING,r}return e}(Gh.default);yr.default=Kh;Wa.exports=yr.default});var Va=g((gr,Ya)=>{"use strict";gr.__esModule=!0;var Qh=ur(),Xh=Zh(Qh),Jh=M();function Zh(t){return t&&t.__esModule?t:{default:t}}function ed(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function td(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var sd=function(t){rd(e,t);function e(s){ed(this,e);var r=td(this,t.call(this,s));return r.type=Jh.PSEUDO,r}return e.prototype.toString=function(){var r=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),r,this.spaces.after].join("")},e}(Xh.default);gr.default=sd;Ya.exports=gr.default});var Ha=g((wr,za)=>{"use strict";wr.__esModule=!0;var nd=$e(),id=ad(nd),od=M();function ad(t){return t&&t.__esModule?t:{default:t}}function ud(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ld(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function cd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var fd=function(t){cd(e,t);function e(s){ud(this,e);var r=ld(this,t.call(this,s));return r.type=od.ATTRIBUTE,r.raws={},r}return e.prototype.toString=function(){var r=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&r.push(this.operator),this.value&&r.push(this.value),this.raws.insensitive?r.push(this.raws.insensitive):this.insensitive&&r.push(" i"),r.push("]"),r.concat(this.spaces.after).join("")},e}(id.default);wr.default=fd;za.exports=wr.default});var Ka=g((vr,ja)=>{"use strict";vr.__esModule=!0;var pd=$e(),hd=md(pd),dd=M();function md(t){return t&&t.__esModule?t:{default:t}}function yd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function wd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var vd=function(t){wd(e,t);function e(s){yd(this,e);var r=gd(this,t.call(this,s));return r.type=dd.UNIVERSAL,r.value="*",r}return e}(hd.default);vr.default=vd;ja.exports=vr.default});var Xa=g((xr,Qa)=>{"use strict";xr.__esModule=!0;var xd=ve(),bd=Ed(xd),_d=M();function Ed(t){return t&&t.__esModule?t:{default:t}}function kd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Td(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Od=function(t){Td(e,t);function e(s){kd(this,e);var r=Sd(this,t.call(this,s));return r.type=_d.COMBINATOR,r}return e}(bd.default);xr.default=Od;Qa.exports=xr.default});var Za=g((br,Ja)=>{"use strict";br.__esModule=!0;var Cd=ve(),Ad=Pd(Cd),Nd=M();function Pd(t){return t&&t.__esModule?t:{default:t}}function Rd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Id(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function qd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ld=function(t){qd(e,t);function e(s){Rd(this,e);var r=Id(this,t.call(this,s));return r.type=Nd.NESTING,r.value="&",r}return e}(Ad.default);br.default=Ld;Ja.exports=br.default});var tu=g((_r,eu)=>{"use strict";_r.__esModule=!0;_r.default=Dd;function Dd(t){return t.sort(function(e,s){return e-s})}eu.exports=_r.default});var cu=g((Sr,lu)=>{"use strict";Sr.__esModule=!0;Sr.default=Hd;var ru=39,Md=34,$s=92,su=47,St=10,Ws=32,Gs=12,Ys=9,Vs=13,nu=43,iu=62,ou=126,au=124,Bd=44,Ud=40,Fd=41,$d=91,Wd=93,Gd=59,uu=42,Yd=58,Vd=38,zd=64,Er=/[ \n\t\r\{\(\)'"\\;/]/g,kr=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function Hd(t){for(var e=[],s=t.css.valueOf(),r=void 0,n=void 0,i=void 0,o=void 0,u=void 0,a=void 0,c=void 0,f=void 0,p=void 0,l=void 0,d=void 0,x=s.length,h=-1,m=1,y=0,b=function(v,R){if(t.safe)s+=R,n=s.length-1;else throw t.error("Unclosed "+v,m,y-h,y)};y0?(f=m+u,p=n-o[u].length):(f=m,p=h),e.push(["comment",a,m,y-h,f,n-p,y]),h=p,m=f,y=n):(kr.lastIndex=y+1,kr.test(s),kr.lastIndex===0?n=s.length-1:n=kr.lastIndex-2,e.push(["word",s.slice(y,n+1),m,y-h,m,n-h,y]),y=n);break}y++}return e}lu.exports=Sr.default});var hu=g((Tr,pu)=>{"use strict";Tr.__esModule=!0;var jd=function(){function t(e,s){for(var r=0;r1?(o[0]===""&&(o[0]=!0),u.attribute=this.parseValue(o[2]),u.namespace=this.parseNamespace(o[0])):u.attribute=this.parseValue(i[0]),r=new ym.default(u),i[2]){var a=i[2].split(/(\s+i\s*?)$/),c=a[0].trim();r.value=this.lossy?c:a[0],a[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=a[1])),r.quoted=c[0]==="'"||c[0]==='"',r.raws.unquoted=r.quoted?c.slice(1,-1):c}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var s=new xm.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position1&&s.nextToken&&s.nextToken[0]==="("&&s.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var s=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(s[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(s[1]),this.position++):this.combinator()},t.prototype.string=function(){var s=this.currToken;this.newNode(new pm.default({value:this.currToken[1],source:{start:{line:s[2],column:s[3]},end:{line:s[4],column:s[5]}},sourceIndex:s[6]})),this.position++},t.prototype.universal=function(s){var r=this.nextToken;if(r&&r[1]==="|")return this.position++,this.namespace();this.newNode(new wm.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),s),this.position++},t.prototype.splitWord=function(s,r){for(var n=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var u=this.currToken[1];if(o+=u,u.lastIndexOf("\\")===u.length-1){var a=this.nextToken;a&&a[0]==="space"&&(o+=this.parseSpace(a[1]," "),this.position++)}i=this.nextToken}var c=(0,zs.default)(o,"."),f=(0,zs.default)(o,"#"),p=(0,zs.default)(o,"#{");p.length&&(f=f.filter(function(d){return!~p.indexOf(d)}));var l=(0,km.default)((0,Zd.default)((0,Qd.default)([[0],c,f])));l.forEach(function(d,x){var h=l[x+1]||o.length,m=o.slice(d,h);if(x===0&&r)return r.call(n,m,l.length);var y=void 0;~c.indexOf(d)?y=new nm.default({value:m.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+d},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):~f.indexOf(d)?y=new um.default({value:m.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+d},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):y=new cm.default({value:m,source:{start:{line:n.currToken[2],column:n.currToken[3]+d},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}),n.newNode(y,s)}),this.position++},t.prototype.word=function(s){var r=this.nextToken;return r&&r[1]==="|"?(this.position++,this.namespace()):this.splitWord(s)},t.prototype.loop=function(){for(;this.position{"use strict";Or.__esModule=!0;var Pm=function(){function t(e,s){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=new Im.default({css:s,error:function(o){throw new Error(o)},options:r});return this.res=n,this.func(n),this},Pm(t,[{key:"result",get:function(){return String(this.res)}}]),t}();Or.default=Dm;du.exports=Or.default});var z=g((tb,gu)=>{"use strict";var js=function(t,e){let s=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:n instanceof Array?s[r]=n.map(o=>js(o,s)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&n!==null&&(n=js(n)),s[r]=n)}return s};gu.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let s in e)this[s]=e[s]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let s=js(this);for(let r in e)s[r]=e[r];return s}cloneBefore(e){e=e||{};let s=this.clone(e);return this.parent.insertBefore(this,s),s}cloneAfter(e){e=e||{};let s=this.clone(e);return this.parent.insertAfter(this,s),s}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let s of e)this.parent.insertBefore(this,s);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let s in this){if(!this.hasOwnProperty(s)||s==="parent")continue;let r=this[s];r instanceof Array?e[s]=r.map(n=>typeof n=="object"&&n.toJSON?n.toJSON():n):typeof r=="object"&&r.toJSON?e[s]=r.toJSON():e[s]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let s=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i{"use strict";var Bm=z(),We=class extends Bm{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach,r,n;if(this.indexes[s]=0,!!this.nodes){for(;this.indexes[s]{let n=e(s,r);return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkType(e,s){if(!e||!s)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((n,i)=>{if(r&&n instanceof e||!r&&n.type===e)return s.call(this,n,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}insertAfter(e,s){let r=this.index(e),n;this.nodes.splice(r+1,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}insertBefore(e,s){let r=this.index(e),n;this.nodes.splice(r,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};We.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!We.prototype[e]&&(We.prototype[e]=function(s){return this.walkType(t,s)})};wu.exports=We});var xu=g((nb,vu)=>{"use strict";var Um=U();vu.exports=class extends Um{constructor(e){super(e),this.type="root"}}});var _u=g((ob,bu)=>{"use strict";var Fm=U();bu.exports=class extends Fm{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var Su=g((ab,ku)=>{"use strict";var Eu=U(),Cr=class extends Eu{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};Eu.registerWalker(Cr);ku.exports=Cr});var Ou=g((ub,Tu)=>{"use strict";var $m=U(),Wm=z(),Ar=class extends Wm{constructor(e){super(e),this.type="colon"}};$m.registerWalker(Ar);Tu.exports=Ar});var Au=g((lb,Cu)=>{"use strict";var Gm=U(),Ym=z(),Nr=class extends Ym{constructor(e){super(e),this.type="comma"}};Gm.registerWalker(Nr);Cu.exports=Nr});var Pu=g((cb,Nu)=>{"use strict";var Vm=U(),zm=z(),Pr=class extends zm{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Vm.registerWalker(Pr);Nu.exports=Pr});var qu=g((fb,Iu)=>{"use strict";var Ru=U(),Rr=class extends Ru{constructor(e){super(e),this.type="func",this.unbalanced=-1}};Ru.registerWalker(Rr);Iu.exports=Rr});var Du=g((pb,Lu)=>{"use strict";var Hm=U(),jm=z(),Ir=class extends jm{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};Hm.registerWalker(Ir);Lu.exports=Ir});var Bu=g((hb,Mu)=>{"use strict";var Km=U(),Qm=z(),qr=class extends Qm{constructor(e){super(e),this.type="operator"}};Km.registerWalker(qr);Mu.exports=qr});var Fu=g((db,Uu)=>{"use strict";var Xm=U(),Jm=z(),Lr=class extends Jm{constructor(e){super(e),this.type="paren",this.parenType=""}};Xm.registerWalker(Lr);Uu.exports=Lr});var Wu=g((mb,$u)=>{"use strict";var Zm=U(),ey=z(),Dr=class extends ey{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};Zm.registerWalker(Dr);$u.exports=Dr});var Yu=g((yb,Gu)=>{"use strict";var ty=U(),ry=z(),Mr=class extends ry{constructor(e){super(e),this.type="word"}};ty.registerWalker(Mr);Gu.exports=Mr});var zu=g((gb,Vu)=>{"use strict";var sy=U(),ny=z(),Br=class extends ny{constructor(e){super(e),this.type="unicode-range"}};sy.registerWalker(Br);Vu.exports=Br});var ju=g((wb,Hu)=>{"use strict";var Ks=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Hu.exports=Ks});var Xu=g((vb,Qu)=>{"use strict";var Ur=/[ \n\t\r\{\(\)'"\\;,/]/g,iy=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,Ge=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,oy=/^[a-z0-9]/i,ay=/^[a-f0-9?\-]/i,Ku=ju();Qu.exports=function(e,s){s=s||{};let r=[],n=e.valueOf(),i=n.length,o=-1,u=1,a=0,c=0,f=null,p,l,d,x,h,m,y,b,w,v,R,F;function Q(T){let O=`Unclosed ${T} at line: ${u}, column: ${a-o}, token: ${a}`;throw new Ku(O)}function W(){let T=`Syntax error at line: ${u}, column: ${a-o}, token: ${a}`;throw new Ku(T)}for(;a0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",u,a-o,u,l-o,a]);break;case 41:c--,f=f&&c>0,r.push([")",")",u,a-o,u,l-o,a]);break;case 39:case 34:d=p===39?"'":'"',l=a;do for(v=!1,l=n.indexOf(d,l+1),l===-1&&Q("quote",d),R=l;n.charCodeAt(R-1)===92;)R-=1,v=!v;while(v);r.push(["string",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l;break;case 64:Ur.lastIndex=a+1,Ur.test(n),Ur.lastIndex===0?l=n.length-1:l=Ur.lastIndex-2,r.push(["atword",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l;break;case 92:l=a,p=n.charCodeAt(l+1),y&&p!==47&&p!==32&&p!==10&&p!==9&&p!==13&&p!==12&&(l+=1),r.push(["word",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l;break;case 43:case 45:case 42:l=a+1,F=n.slice(a+1,l+1);let T=n.slice(a-1,a);if(p===45&&F.charCodeAt(0)===45){l++,r.push(["word",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;break}r.push(["operator",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;break;default:if(p===47&&(n.charCodeAt(a+1)===42||s.loose&&!f&&n.charCodeAt(a+1)===47)){if(n.charCodeAt(a+1)===42)l=n.indexOf("*/",a+2)+1,l===0&&Q("comment","*/");else{let C=n.indexOf(` -`,a+2);l=C!==-1?C-1:i}m=n.slice(a,l+1),x=m.split(` -`),h=x.length-1,h>0?(b=u+h,w=l-x[h].length):(b=u,w=o),r.push(["comment",m,u,a-o,b,l-w,a]),o=w,u=b,a=l}else if(p===35&&!oy.test(n.slice(a+1,a+2)))l=a+1,r.push(["#",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;else if((p===117||p===85)&&n.charCodeAt(a+1)===43){l=a+2;do l+=1,p=n.charCodeAt(l);while(l=48&&p<=57&&(O=Ge),O.lastIndex=a+1,O.test(n),O.lastIndex===0?l=n.length-1:l=O.lastIndex-2,O===Ge||p===46){let C=n.charCodeAt(l),xe=n.charCodeAt(l+1),tn=n.charCodeAt(l+2);(C===101||C===69)&&(xe===45||xe===43)&&tn>=48&&tn<=57&&(Ge.lastIndex=l+2,Ge.test(n),Ge.lastIndex===0?l=n.length-1:l=Ge.lastIndex-2)}r.push(["word",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l}break}a++}return r}});var Zu=g((xb,Ju)=>{"use strict";var Qs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Ju.exports=Qs});var sl=g((_b,rl)=>{"use strict";var uy=xu(),ly=_u(),cy=Su(),fy=Ou(),py=Au(),hy=Pu(),dy=qu(),my=Du(),yy=Bu(),el=Fu(),gy=Wu(),tl=Yu(),wy=zu(),vy=Xu(),xy=Bs(),by=Us(),_y=Fs(),Ey=Zu();function ky(t){return t.sort((e,s)=>e-s)}rl.exports=class{constructor(e,s){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,s),this.position=0,this.unbalanced=0,this.root=new uy;let n=new ly;this.root.append(n),this.current=n,this.tokens=vy(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new fy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new py({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,s=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&s.startsWith("//")&&(s=s.substring(2),e=!0),r=new hy({value:s,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,s){throw new Ey(e+` at line: ${s[2]}, column ${s[3]}`)}loop(){for(;this.position0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return s=new yy({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(s)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,s=this.position+1,r=this.currToken,n;for(;s=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new wy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,s=this.currToken[1],r=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,n=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!n.test(s))for(;e&&e[0]==="word";){this.position++;let u=this.currToken[1];s+=u,e=this.nextToken}i=by(s,"@"),o=ky(_y(xy([[0],i]))),o.forEach((u,a)=>{let c=o[a+1]||s.length,f=s.slice(u,c),p;if(~i.indexOf(u))p=new cy({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[a]});else if(r.test(this.currToken[1])){let l=f.replace(r,"");p=new my({value:f.replace(l,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[a],unit:l})}else p=new(e&&e[0]==="("?dy:tl)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[a]}),p.type==="word"?(p.isHex=/^#(.+)/.test(f),p.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(p)}),this.position++}string(){let e=this.currToken,s=this.currToken[1],r=/^(\"|\')/,n=r.test(s),i="",o;n&&(i=s.match(r)[0],s=s.slice(1,s.length-1)),o=new gy({value:s,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:n}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var en={};rn(en,{languages:()=>Ei,options:()=>Si,parsers:()=>Zs,printers:()=>Fy});var Tl=(t,e,s,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(s,r):s.global?e.replace(s,r):e.split(s).join(r)},E=Tl;var _e="string",Ye="array",Ve="cursor",re="indent",Ee="align",ze="trim",se="group",ne="fill",ie="if-break",He="indent-if-break",ke="line-suffix",je="line-suffix-boundary",H="line",Ke="label",Se="break-parent",Tt=new Set([Ve,re,Ee,ze,se,ne,ie,He,ke,je,H,Ke,Se]);var Ol=(t,e,s)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[s<0?e.length+s:s]:e.at(s)},$=Ol;function Cl(t){if(typeof t=="string")return _e;if(Array.isArray(t))return Ye;if(!t)return;let{type:e}=t;if(Tt.has(e))return e}var j=Cl;var Al=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Nl(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(j(t))throw new Error("doc is valid.");let s=Object.prototype.toString.call(t);if(s!=="[object Object]")return`Unexpected doc '${s}'.`;let r=Al([...Tt].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${r}.`}var Gr=class extends Error{name="InvalidDocError";constructor(e){super(Nl(e)),this.doc=e}},Yr=Gr;function Rl(t,e){if(typeof t=="string")return e(t);let s=new Map;return r(t);function r(i){if(s.has(i))return s.get(i);let o=n(i);return s.set(i,o),o}function n(i){switch(j(i)){case Ye:return e(i.map(r));case ne:return e({...i,parts:i.parts.map(r)});case ie:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case se:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(r),u=o[0]):u=r(u),e({...i,contents:u,expandedStates:o})}case Ee:case re:case He:case Ke:case ke:return e({...i,contents:r(i.contents)});case _e:case Ve:case ze:case je:case H:case Se:return e(i);default:throw new Yr(i)}}}function Il(t){return t.type===H&&!t.hard?t.soft?"":" ":t.type===ie?t.flatContents:t}function sn(t){return Rl(t,Il)}var Vr=()=>{},oe=Vr,Qe=Vr,nn=Vr;function q(t){return oe(t),{type:re,contents:t}}function on(t,e){return oe(e),{type:Ee,contents:e,n:t}}function L(t,e={}){return oe(t),Qe(e.expandedStates,!0),{type:se,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function an(t){return on({type:"root"},t)}function ae(t){return on(-1,t)}function Te(t){return nn(t),{type:ne,parts:t}}function Ot(t,e="",s={}){return oe(t),e!==""&&oe(e),{type:ie,breakContents:t,flatContents:e,groupId:s.groupId}}function un(t){return oe(t),{type:ke,contents:t}}var Xe={type:Se};var ql={type:H,hard:!0};var A={type:H},D={type:H,soft:!0},S=[ql,Xe];function G(t,e){oe(t),Qe(e);let s=[];for(let r=0;r0}var ue=Ll;var ln=new Proxy(()=>{},{get:()=>ln}),cn=ln;var Ct="'",fn='"';function Dl(t,e){let s=e===!0||e===Ct?Ct:fn,r=s===Ct?fn:Ct,n=0,i=0;for(let o of t)o===s?n++:o===r&&i++;return n>i?r:s}var pn=Dl;function Ml(t,e,s){let r=e==='"'?"'":'"',i=E(!1,t,/\\(.)|(["'])/gsu,(o,u,a)=>u===r?u:a===e?"\\"+a:a||(s&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return e+i+e}var hn=Ml;function Bl(t,e){cn.ok(/^(?["']).*\k$/su.test(t));let s=t.slice(1,-1),r=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":pn(s,e.singleQuote);return t.charAt(0)===r?t:hn(s,r,!1)}var At=Bl;var zr=class extends Error{name="UnexpectedNodeError";constructor(e,s,r="type"){super(`Unexpected ${s} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},dn=zr;function Ul(t){return(t==null?void 0:t.type)==="front-matter"}var Oe=Ul;var Fl=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function mn(t,e,s){if(Oe(t)&&t.language==="yaml"&&delete e.value,t.type==="css-comment"&&s.type==="css-root"&&s.nodes.length>0&&((s.nodes[0]===t||Oe(s.nodes[0])&&s.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||s.type==="css-root"&&$(!1,s.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=$l(t.value)),t.type==="selector-combinator"&&(e.value=E(!1,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=E(!1,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=E(!1,e.value,/;$/gu,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value&&(e.value=E(!1,e.value.trim(),/^["']|["']$/gu,""),delete e.quoted)),(t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=E(!1,e.value,/([\d+.e-]+)([a-z]*)/giu,(r,n,i)=>{let o=Number(n);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=e.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&r.value.endsWith("[")||r.type==="value-word"&&r.value.startsWith("]")))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}mn.ignoredProperties=Fl;function $l(t){return E(!1,E(!1,t,"'",'"'),/\\([^\da-f])/giu,"$1")}var yn=mn;async function Wl(t,e){if(t.language==="yaml"){let s=t.value.trim(),r=s?await e(s,{parser:"yaml"}):"";return an([t.startDelimiter,t.explicitLanguage,S,r,r?S:"",t.endDelimiter])}}var gn=Wl;function wn(t){let{node:e}=t;if(e.type==="front-matter")return async s=>{let r=await gn(e,s);return r?[r,S]:void 0}}wn.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var vn=wn;var Je=null;function Ze(t){if(Je!==null&&typeof Je.property){let e=Je;return Je=Ze.prototype=null,e}return Je=Ze.prototype=t??Object.create(null),new Ze}var Gl=10;for(let t=0;t<=Gl;t++)Ze();function Hr(t){return Ze(t)}function Yl(t,e="type"){Hr(t);function s(r){let n=r[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}return s}var xn=Yl;var Vl={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},bn=Vl;var zl=xn(bn),_n=zl;function Hl(t,e){let s=0;for(let r=0;r{let n=!!(r!=null&&r.backwards);if(s===!1)return!1;let{length:i}=e,o=s;for(;o>=0&&oNn(c,e[c])).map(c=>`${n} ${c}${s}`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let c=e[o[0]];return`${r} ${Nn(o[0],c)[0]}${i}`}}let a=t.split(s).map(c=>`${n} ${c}`).join(s)+s;return r+s+(t?a:"")+(t&&o.length>0?n+s:"")+u+i}function Nn(t,e){return[...Rn,...Array.isArray(e)?e:[e]].map(s=>`@${t} ${s}`.trim())}var Mn=["noformat","noprettier"],Bn=["format","prettier"],Un="format";function ec(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(` -`);return e===-1?t:t.slice(0,e)}var Fn=ec;function Xr(t){let e=Fn(t);e&&(t=t.slice(e.length+1));let s=In(t),{pragmas:r,comments:n}=Ln(s);return{shebang:e,text:t,pragmas:r,comments:n}}function $n(t){let{pragmas:e}=Xr(t);return Bn.some(s=>Object.prototype.hasOwnProperty.call(e,s))}function Wn(t){let{pragmas:e}=Xr(t);return Mn.some(s=>Object.prototype.hasOwnProperty.call(e,s))}function Gn(t){let{shebang:e,text:s,pragmas:r,comments:n}=Xr(t),i=qn(s),o=Dn({pragmas:{[Un]:"",...r},comments:n.trimStart()});return(e?`${e} -`:"")+o+(i.startsWith(` -`)?` -`:` - -`)+i}var et=3;function tc(t){let e=t.slice(0,et);if(e!=="---"&&e!=="+++")return;let s=t.indexOf(` -`,et);if(s===-1)return;let r=t.slice(et,s).trim(),n=t.indexOf(` -${e}`,s),i=r;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n=t.indexOf(` -...`,s)),n===-1)return;let o=n+1+et,u=t.charAt(o+1);if(!/\s?/u.test(u))return;let a=t.slice(0,o);return{type:"front-matter",language:i,explicitLanguage:r,value:t.slice(s+1,n),startDelimiter:e,endDelimiter:a.slice(-et),raw:a}}function rc(t){let e=tc(t);if(!e)return{content:t};let{raw:s}=e;return{frontMatter:e,content:E(!1,s,/[^\n]/gu," ")+t.slice(s.length)}}var Ce=rc;function Yn(t){return $n(Ce(t).content)}function Vn(t){return Wn(Ce(t).content)}function zn(t){let{frontMatter:e,content:s}=Ce(t);return(e?e.raw+` - -`:"")+Gn(s)}var sc=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Hn(t){var e,s;return(s=(e=t.findAncestor(r=>r.type==="css-decl"))==null?void 0:e.prop)==null?void 0:s.toLowerCase()}var nc=new Set(["initial","inherit","unset","revert"]);function jn(t){return nc.has(t.toLowerCase())}function Kn(t,e){var r;let s=t.findAncestor(n=>n.type==="css-atrule");return((r=s==null?void 0:s.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(e.toLowerCase())}function Ae(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function Ne(t,e){var r;let s=t.findAncestor(n=>n.type==="value-func");return((r=s==null?void 0:s.value)==null?void 0:r.toLowerCase())===e}function Qn(t){var r;let e=t.findAncestor(n=>n.type==="css-rule"),s=(r=e==null?void 0:e.raws)==null?void 0:r.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))}function he(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function Xn(t){var s;let{node:e}=t;return e.groups[0].value==="url"&&e.groups.length===2&&((s=t.findAncestor(r=>r.type==="css-atrule"))==null?void 0:s.name)==="import"}function Jn(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function Zn(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function ei(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function ti(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function ri(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function si(t){return t.type==="value-word"&&t.value==="in"}function It(t){return t.type==="value-operator"&&t.value==="*"}function tt(t){return t.type==="value-operator"&&t.value==="/"}function X(t){return t.type==="value-operator"&&t.value==="+"}function de(t){return t.type==="value-operator"&&t.value==="-"}function ic(t){return t.type==="value-operator"&&t.value==="%"}function qt(t){return It(t)||tt(t)||X(t)||de(t)||ic(t)}function ni(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function ii(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function rt(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function Zr(t){var e;return((e=t.raws)==null?void 0:e.params)&&/^\(\s*\)$/u.test(t.raws.params)}function Lt(t){return t.name.startsWith("prettier-placeholder")}function oi(t){return t.prop.startsWith("@prettier-placeholder")}function ai(t,e){return t.value==="$$"&&t.type==="value-func"&&(e==null?void 0:e.type)==="value-word"&&!e.raws.before}function ui(t){var e,s;return((e=t.value)==null?void 0:e.type)==="value-root"&&((s=t.value.group)==null?void 0:s.type)==="value-value"&&t.prop.toLowerCase()==="composes"}function li(t){var e,s,r;return((r=(s=(e=t.value)==null?void 0:e.group)==null?void 0:s.group)==null?void 0:r.type)==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function me(t){var e;return((e=t.raws)==null?void 0:e.before)===""}function Dt(t){var e,s;return t.type==="value-comma_group"&&((s=(e=t.groups)==null?void 0:e[1])==null?void 0:s.type)==="value-colon"}function Jr(t){var e;return t.type==="value-paren_group"&&((e=t.groups)==null?void 0:e[0])&&Dt(t.groups[0])}function es(t,e){var i;if(e.parser!=="scss")return!1;let{node:s}=t;if(s.groups.length===0)return!1;let r=t.grandparent;if(!Jr(s)&&!(r&&Jr(r)))return!1;let n=t.findAncestor(o=>o.type==="css-decl");return!!((i=n==null?void 0:n.prop)!=null&&i.startsWith("$")||Jr(r)||r.type==="value-func")}function Pe(t){return t.type==="value-comment"&&t.inline}function Mt(t){return t.type==="value-word"&&t.value==="#"}function ts(t){return t.type==="value-word"&&t.value==="{"}function Bt(t){return t.type==="value-word"&&t.value==="}"}function st(t){return["value-word","value-atword"].includes(t.type)}function nt(t){return(t==null?void 0:t.type)==="value-colon"}function ci(t,e){if(!Dt(e))return!1;let{groups:s}=e,r=s.indexOf(t);return r===-1?!1:nt(s[r+1])}function fi(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function pi(t){return t.type!=="value-func"?!1:sc.has(t.value.toLowerCase())}function Re(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function it(t){return(t==null?void 0:t.type)==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function hi(t,e){var s,r;if(((s=t.open)==null?void 0:s.value)!=="("||((r=t.close)==null?void 0:r.value)!==")"||t.groups.some(n=>n.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let n=e.groups.indexOf(t)-1,i=e.groups[n];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}function ot(t){var e,s;return t.type==="value-paren_group"&&((e=t.open)==null?void 0:e.value)==="("&&((s=t.close)==null?void 0:s.value)===")"}function oc(t,e,s){var m;let{node:r}=t,n=t.parent,i=t.grandparent,o=Hn(t),u=o&&n.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),a=t.findAncestor(y=>y.type==="css-atrule"),c=a&&rt(a,e),f=r.groups.some(y=>Pe(y)),p=t.map(s,"groups"),l=[""],d=Ne(t,"url"),x=!1,h=!1;for(let y=0;y2&&r.groups.slice(0,y).every(C=>C.type==="value-comment")&&!Pe(b)&&(l[l.length-2]=ae($(!1,l,-2))),he(t,"forward")&&w.type==="value-word"&&w.value&&b!==void 0&&b.type==="value-word"&&b.value==="as"&&v.type==="value-operator"&&v.value==="*"||he(t,"utility")&&w.type==="value-word"&&v&&v.type==="value-operator"&&v.value==="*"||!v||w.type==="value-word"&&it(v)&&P(w)===N(v))continue;if(w.type==="value-string"&&w.quoted){let C=w.value.lastIndexOf("#{"),xe=w.value.lastIndexOf("}");C!==-1&&xe!==-1?x=C>xe:C!==-1?x=!0:xe!==-1&&(x=!1)}if(x||nt(w)||nt(v)||w.type==="value-atword"&&(w.value===""||w.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||w.value==="~"||w.type!=="value-string"&&w.value&&w.value.includes("\\")&&v&&v.type!=="value-comment"||b!=null&&b.value&&b.value.indexOf("\\")===b.value.length-1&&w.type==="value-operator"&&w.value==="/"||w.value==="\\"||ai(w,v)||Mt(w)||ts(w)||Bt(v)||ts(v)&&me(v)||Bt(w)&&me(v)||w.value==="--"&&Mt(v))continue;let F=qt(w),Q=qt(v);if((F&&Mt(v)||Q&&Bt(w))&&me(v)||!b&&tt(w)||Ne(t,"calc")&&(X(w)||X(v)||de(w)||de(v))&&me(v))continue;let W=(X(w)||de(w))&&y===0&&(v.type==="value-number"||v.isHex)&&i&&pi(i)&&!me(v),T=(R==null?void 0:R.type)==="value-func"||R&&st(R)||w.type==="value-func"||st(w),O=v.type==="value-func"||st(v)||(b==null?void 0:b.type)==="value-func"||b&&st(b);if(e.parser==="scss"&&F&&w.value==="-"&&v.type==="value-func"&&P(w)!==N(v)){l.push([l.pop()," "]);continue}if(!(!(It(v)||It(w))&&!Ne(t,"calc")&&!W&&(tt(v)&&!T||tt(w)&&!O||X(v)&&!T||X(w)&&!O||de(v)||de(w))&&(me(v)||F&&(!b||b&&qt(b))))&&!((e.parser==="scss"||e.parser==="less")&&F&&w.value==="-"&&ot(v)&&P(w)===N(v.open)&&v.open.value==="(")){if(Pe(w)){if(n.type==="value-paren_group"){l.push(ae(S),"");continue}l.push(S,"");continue}if(c&&(ni(v)||ii(v)||ri(v)||si(w)||ti(w))){l.push([l.pop()," "]);continue}if(a&&a.name.toLowerCase()==="namespace"){l.push([l.pop()," "]);continue}if(u){w.source&&v.source&&w.source.start.line!==v.source.start.line?(l.push(S,""),h=!0):l.push([l.pop()," "]);continue}if(Q){l.push([l.pop()," "]);continue}if((v==null?void 0:v.value)!=="..."&&!(it(w)&&it(v)&&P(w)===N(v))){if(it(w)&&ot(v)&&P(w)===N(v.open)){l.push(D,"");continue}if(w.value==="with"&&ot(v)){l=[[Te(l)," "]];continue}(m=w.value)!=null&&m.endsWith("#")&&v.value==="{"&&ot(v.group)||Pe(v)&&!R||l.push(A,"")}}}return f&&l.push([l.pop(),Xe]),h&&l.unshift("",S),c?L(q(l)):Xn(t)?L(Te(l)):L(q(Te(l)))}var di=oc;function ac(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var mi=ac;var Ut=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function rs(t){let e=t.toLowerCase();return Ut.has(e)?Ut.get(e):t}var yi=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,uc=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,lc=/[a-z]+/giu,cc=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,fc=new RegExp(yi.source+`|(${cc.source})?(${uc.source})(${lc.source})?`,"giu");function Y(t,e){return E(!1,t,yi,s=>At(s,e))}function gi(t,e){let s=e.singleQuote?"'":'"';return t.includes('"')||t.includes("'")?t:s+t+s}function ye(t){return E(!1,t,fc,(e,s,r,n,i)=>!r&&n&&(i??(i=""),i=i.toLowerCase(),!i||i==="n"||Ut.has(i))?ss(n)+(i?rs(i):""):e)}function ss(t){return mi(t).replace(/\.0(?=$|e)/u,"")}function wi(t){return t.trailingComma==="es5"||t.trailingComma==="all"}function pc(t,e,s){let r=!!(s!=null&&s.backwards);if(e===!1)return!1;let n=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&n===` -`)return e-2;if(n===` -`||n==="\r"||n==="\u2028"||n==="\u2029")return e-1}else{if(n==="\r"&&t.charAt(e+1)===` -`)return e+2;if(n===` -`||n==="\r"||n==="\u2028"||n==="\u2029")return e+1}return e}var Ft=pc;function hc(t,e,s={}){let r=Pt(t,s.backwards?e-1:e,s),n=Ft(t,r,s);return r!==n}var $t=hc;function dc(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let s=e+2;ss.type==="value-comment"))&&wi(e)&&t.callParent(()=>es(t,e))?Ot(","):""}function bi(t,e,s){let{node:r,parent:n}=t,i=t.map(({node:d})=>typeof d=="string"?d:s(),"groups");if(n&&Jn(n)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?s("open"):"",G(",",i),r.close?s("close"):""];if(!r.open){let d=ns(t);Qe(i);let x=xc(G(",",i),2),h=G(d?S:A,x);return q(d?[S,h]:L([vc(t)?D:"",Te(h)]))}let o=t.map(({node:d,isLast:x,index:h})=>{var b;let m=i[h];Dt(d)&&d.type==="value-comma_group"&&d.groups&&d.groups[0].type!=="value-paren_group"&&((b=d.groups[2])==null?void 0:b.type)==="value-paren_group"&&j(m)===se&&j(m.contents)===re&&j(m.contents.contents)===ne&&(m=L(ae(m)));let y=[m,x?wc(t,e):","];if(!x&&d.type==="value-comma_group"&&ue(d.groups)){let w=$(!1,d.groups,-1);!w.source&&w.close&&(w=w.close),w.source&&Wt(e.originalText,P(w))&&y.push(S)}return y},"groups"),u=ci(r,n),a=hi(r,n),c=es(t,e),f=a||c&&!u,p=a||u,l=L([r.open?s("open"):"",q([D,G(A,o)]),D,r.close?s("close"):""],{shouldBreak:f});return p?ae(l):l}function ns(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(s=>s.type==="value-comma_group"),(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function vc(t){return t.match(e=>e.type==="value-paren_group"&&!e.open,(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&e.type==="css-decl")}function xc(t,e){let s=[];for(let r=0;r{let{node:n,previous:i}=t;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(N(n),P(n))):r.push(s()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!$t(e.originalText,N(o),{backwards:!0})&&!Oe(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?A:S),Wt(e.originalText,P(n))&&!Oe(n)&&r.push(S))},"nodes"),r}var Ie=bc;function _c(t,e,s){var n,i,o,u,a,c;let{node:r}=t;switch(r.type){case"front-matter":return[r.raw,S];case"css-root":{let f=Ie(t,e,s),p=r.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[r.frontMatter?[s("frontMatter"),S]:"",f,p?` ${p}`:"",r.nodes.length>0?S:""]}case"css-comment":{let f=r.inline||r.raws.inline,p=e.originalText.slice(N(r),P(r));return f?p.trimEnd():p}case"css-rule":return[s("selector"),r.important?" !important":"",r.nodes?[((n=r.selector)==null?void 0:n.type)==="selector-unknown"&&Re(r.selector.value)?A:r.selector?" ":"","{",r.nodes.length>0?q([S,Ie(t,e,s)]):"",S,"}",ei(r)?";":""]:";"];case"css-decl":{let f=t.parent,{between:p}=r.raws,l=p.trim(),d=l===":",x=typeof r.value=="string"&&/^ *$/u.test(r.value),h=typeof r.value=="string"?r.value:s("value");return h=ui(r)?sn(h):h,!d&&Re(l)&&!((o=(i=r.value)==null?void 0:i.group)!=null&&o.group&&t.call(()=>ns(t),"value","group","group"))&&(h=q([S,ae(h)])),[E(!1,r.raws.before,/[\s;]/gu,""),f.type==="css-atrule"&&f.variable||Qn(t)?r.prop:Ae(r.prop),l.startsWith("//")?" ":"",l,r.extend||x?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",s("selector"),")"]:"",h,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",q([D,Ie(t,e,s)]),D,"}"]:oi(r)&&!f.raws.semicolon&&e.originalText[P(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?Ot(";"):";"]}case"css-atrule":{let f=t.parent,p=Lt(r)&&!f.raws.semicolon&&e.originalText[P(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[s("selector"),r.important?" !important":"",p?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:s("params"),p?"":";"];if(r.variable)return["@",r.name,": ",r.value?s("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",q([r.nodes.length>0?D:"",Ie(t,e,s)]),D,"}"]:"",p?"":";"]}let l=r.name==="import"&&((u=r.params)==null?void 0:u.type)==="value-unknown"&&r.params.value.endsWith(";");return["@",Zr(r)||r.name.endsWith(":")||Lt(r)?r.name:Ae(r.name),r.params?[Zr(r)?"":Lt(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(r.raws.afterName)?[S,S]:/^\s*\n/u.test(r.raws.afterName)?S:" ":" ",typeof r.params=="string"?r.params:s("params")]:"",r.selector?q([" ",s("selector")]):"",r.value?L([" ",s("value"),rt(r,e)?li(r)?" ":A:""]):r.name==="else"?" ":"",r.nodes?[rt(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Re(r.selector.value)||!r.selector&&typeof r.params=="string"&&Re(r.params)?A:" ","{",q([r.nodes.length>0?D:"",Ie(t,e,s)]),D,"}"]:p||l?"":";"]}case"media-query-list":{let f=[];return t.each(({node:p})=>{p.type==="media-query"&&p.value===""||f.push(s())},"nodes"),L(q(G(A,f)))}case"media-query":return[G(" ",t.map(s,"nodes")),t.isLast?"":","];case"media-type":return ye(Y(r.value,e));case"media-feature-expression":return r.nodes?["(",...t.map(s,"nodes"),")"]:r.value;case"media-feature":return Ae(Y(E(!1,r.value,/ +/gu," "),e));case"media-colon":return[r.value," "];case"media-value":return ye(Y(r.value,e));case"media-keyword":return Y(r.value,e);case"media-url":return Y(E(!1,E(!1,r.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),e);case"media-unknown":return r.value;case"selector-root":return L([he(t,"custom-selector")?[t.findAncestor(f=>f.type==="css-atrule").customSelector,A]:"",G([",",he(t,["extend","custom-selector","nest"])?A:S],t.map(s,"nodes"))]);case"selector-selector":{let f=r.nodes.length>2;return L((f?q:p=>p)(t.map(s,"nodes")))}case"selector-comment":return r.value;case"selector-string":return Y(r.value,e);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",((a=t.previous)==null?void 0:a.type)==="selector-nesting"?r.value:ye(Kn(t,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",ye(Y(r.value,e))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?gi(Y(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let l=t.parent;return[l.type==="selector-selector"&&l.nodes[0]===r?"":A,r.value,t.isLast?"":" "]}let f=r.value.trim().startsWith("(")?A:"",p=ye(Y(r.value.trim(),e))||A;return[f,p]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[Ae(r.value),ue(r.nodes)?L(["(",q([D,G([",",A],t.map(s,"nodes"))]),D,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{let f=t.findAncestor(d=>d.type==="css-rule");if(f!=null&&f.isSCSSNesterProperty)return ye(Y(Ae(r.value),e));let p=t.parent;if((c=p.raws)!=null&&c.selector){let d=N(p),x=d+p.raws.selector.length;return e.originalText.slice(d,x).trim()}let l=t.grandparent;if(p.type==="value-paren_group"&&(l==null?void 0:l.type)==="value-func"&&l.value==="selector"){let d=P(p.open)+1,x=N(p.close),h=e.originalText.slice(d,x).trim();return Re(h)?[Xe,h]:h}return r.value}case"value-value":case"value-root":return s("group");case"value-comment":return e.originalText.slice(N(r),P(r));case"value-comma_group":return di(t,e,s);case"value-paren_group":return bi(t,e,s);case"value-func":return[r.value,he(t,"supports")&&fi(r)?" ":"",s("group")];case"value-paren":return r.value;case"value-number":return[ss(r.value),rs(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||jn(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:f}=t;return L([r.value,typeof(f==null?void 0:f.value)=="string"&&f.value.endsWith("\\")||Ne(t,"url")?"":A])}case"value-string":return At(r.raws.quote+r.value+r.raws.quote,e);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"value-comma":default:throw new dn(r,"PostCSS")}}var Ec={print:_c,embed:vn,insertPragma:zn,massageAstNode:yn,getVisitorKeys:_n},_i=Ec;var Ei=[{name:"CSS",type:"markup",extensions:[".css",".wxss"],tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",extensions:[".pcss",".postcss"],tmScope:"source.postcss",aceMode:"text",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",extensions:[".scss"],tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}];var ki={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var kc={singleQuote:ki.singleQuote},Si=kc;var Zs={};rn(Zs,{css:()=>My,less:()=>By,scss:()=>Uy});var hl=be(gt(),1),dl=be(Io(),1),ml=be(ha(),1);function cp(t,e){let s=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(s,e)}var da=cp;var ba=be(xa(),1);function Z(t,e,s){if(t&&typeof t=="object"){delete t.parent;for(let r in t)Z(t[r],e,s),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!s||!s.test(t[r]))&&(t[r]=e+t[r])}return t}function Ms(t){if(t&&typeof t=="object"){delete t.parent;for(let e in t)Ms(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}var _p=ba.default.default;function Ep(t){let e;try{e=_p(t)}catch{return{type:"selector-unknown",value:t}}return Z(Ms(e),"media-")}var _a=Ep;var yu=be(mu(),1);function Mm(t){if(/\/\/|\/\*/u.test(t))return{type:"selector-unknown",value:t.trim()};let e;try{new yu.default(s=>{e=s}).process(t)}catch{return{type:"selector-unknown",value:t}}return Z(e,"selector-")}var te=Mm;var ll=be(sl(),1);var Sy=t=>{for(;t.parent;)t=t.parent;return t},Fr=Sy;function Ty(t){return Fr(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var nl=Ty;function Oy(t){if(ue(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var il=Oy;function Cy(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var ol=Cy;function Ay(t,e){return!!(e.parser==="scss"&&(t==null?void 0:t.type)==="word"&&t.value.startsWith("$"))}var al=Ay;var ul=t=>t.type==="paren"&&t.value===")";function Ny(t,e){var a;let{nodes:s}=t,r={open:null,close:null,groups:[],type:"paren_group"},n=[r],i=r,o={groups:[],type:"comma_group"},u=[o];for(let c=0;c0&&r.groups.push(o),r.close=f,u.length===1)throw new Error("Unbalanced parenthesis");u.pop(),o=$(!1,u,-1),o.groups.push(r),n.pop(),r=$(!1,n,-1)}else if(f.type==="comma"){if(c===s.length-3&&s[c+1].type==="comment"&&ul(s[c+2]))continue;r.groups.push(o),o={groups:[],type:"comma_group"},u[u.length-1]=o}else o.groups.push(f)}return o.groups.length>0&&r.groups.push(o),i}function $r(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?$r(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map($r)}:t}function cl(t,e){if(t&&typeof t=="object")for(let s in t)s!=="parent"&&(cl(t[s],e),s==="nodes"&&(t.group=$r(Ny(t,e)),delete t[s]));return t}function Py(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let s=null;try{s=new ll.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}s.text=t;let r=cl(s,e);return Z(r,"value-",/^selector-/u)}var pe=Py;var Ry=new Set(["import","use","forward"]);function Iy(t){return Ry.has(t)}var fl=Iy;function qy(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var pl=qy;var Ly=/(\s*)(!default).*$/u,Dy=/(\s*)(!global).*$/u;function yl(t,e){var s,r;if(t&&typeof t=="object"){delete t.parent;for(let u in t)yl(t[u],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let u;if(t.value.trimEnd().endsWith("}")){let a=e.originalText.slice(0,t.source.start.offset),c="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset),f=E(!1,a,/[^\n]/gu," ")+c,p;e.parser==="scss"?p=vl:e.parser==="less"?p=wl:p=gl;let l;try{l=p(f,{...e})}catch{}((s=l==null?void 0:l.nodes)==null?void 0:s.length)===1&&l.nodes[0].type==="css-rule"&&(u=l.nodes[0].nodes)}return u?t.value={type:"css-rule",nodes:u}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let n="";typeof t.selector=="string"&&(n=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(n+=t.raws.between),t.raws.selector=n);let i="";typeof t.value=="string"&&(i=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,t.raws.value=i.trim());let o="";if(typeof t.params=="string"&&(o=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(o=t.raws.afterName+o),t.raws.between&&t.raws.between.trim().length>0&&(o=o+t.raws.between),o=o.trim(),t.raws.params=o),n.trim().length>0)return n.startsWith("@")&&n.endsWith(":")?t:t.mixin?(t.selector=pe(n,e),t):(pl(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=te(n),t);if(i.trim().length>0){let u=i.match(Ly);u&&(i=i.slice(0,u.index),t.scssDefault=!0,u[0].trim()!=="!default"&&(t.raws.scssDefault=u[0]));let a=i.match(Dy);if(a&&(i=i.slice(0,a.index),t.scssGlobal=!0,a[0].trim()!=="!global"&&(t.raws.scssGlobal=a[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};t.value=pe(i,e)}if(e.parser==="less"&&t.type==="css-decl"&&i.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=te(i.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let u=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=te(u),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let u=t.params.match(/:--\S+\s+/u)[0].trim();return t.customSelector=u,t.selector=te(t.params.slice(u.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")&&!t.params){t.variable=!0;let u=t.name.split(":");t.name=u[0],t.value=pe(u.slice(1).join(":"),e)}if(!["page","nest","keyframes"].includes(t.name)&&((r=t.params)==null?void 0:r[0])===":"){t.variable=!0;let u=t.params.slice(1);u&&(t.value=pe(u,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&o.length>0){let{name:u}=t,a=t.name.toLowerCase();return u==="warn"||u==="error"?(t.params={type:"media-unknown",value:o},t):u==="extend"||u==="nest"?(t.selector=te(o),delete t.params,t):u==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(o)?t.params=pe(o,e):(t.selector=te(o),delete t.params),t):fl(a)?(t.import=!0,delete t.filename,t.params=pe(o,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(u)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/u,"$1($2"),t.value=pe(o,e),delete t.params,t):["media","custom-media"].includes(a)?o.includes("#{")?{type:"media-unknown",value:o}:(t.params=_a(o),t):(t.params=o,t)}}return t}function Xs(t,e,s){let r=Ce(e),{frontMatter:n}=r;e=r.content;let i;try{i=t(e,{map:!1})}catch(o){let{name:u,reason:a,line:c,column:f}=o;throw typeof c!="number"?o:da(`${u}: ${a}`,{loc:{start:{line:c,column:f}},cause:o})}return s.originalText=e,i=yl(Z(i,"css-"),s),Qr(i,e),n&&(n.source={startOffset:0,endOffset:n.raw.length},i.frontMatter=n),i}function gl(t,e={}){return Xs(hl.default.default,t,e)}function wl(t,e={}){return Xs(s=>dl.default.parse(On(s)),t,e)}function vl(t,e={}){return Xs(ml.default,t,e)}var Js={astFormat:"postcss",hasPragma:Yn,hasIgnorePragma:Vn,locStart:N,locEnd:P},My={...Js,parse:gl},By={...Js,parse:wl},Uy={...Js,parse:vl};var Fy={postcss:_i};var s_=en;export{s_ as default,Ei as languages,Si as options,Zs as parsers,Fy as printers}; diff --git a/node_modules/prettier/plugins/typescript.d.ts b/node_modules/prettier/plugins/typescript.d.ts deleted file mode 100644 index e8e0f75..0000000 --- a/node_modules/prettier/plugins/typescript.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Parser } from "../index.js"; - -export declare const parsers: { - typescript: Parser; -}; diff --git a/node_modules/prettier/plugins/typescript.js b/node_modules/prettier/plugins/typescript.js deleted file mode 100644 index acc24de..0000000 --- a/node_modules/prettier/plugins/typescript.js +++ /dev/null @@ -1,20 +0,0 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.typescript=e()}})(function(){"use strict";var nl=Object.defineProperty;var dy=Object.getOwnPropertyDescriptor;var my=Object.getOwnPropertyNames;var hy=Object.prototype.hasOwnProperty;var xd=e=>{throw TypeError(e)};var yy=(e,t,a)=>t in e?nl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var Sd=(e,t)=>{for(var a in t)nl(e,a,{get:t[a],enumerable:!0})},gy=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of my(t))!hy.call(e,m)&&m!==a&&nl(e,m,{get:()=>t[m],enumerable:!(o=dy(t,m))||o.enumerable});return e};var by=e=>gy(nl({},"__esModule",{value:!0}),e);var Vi=(e,t,a)=>yy(e,typeof t!="symbol"?t+"":t,a),vy=(e,t,a)=>t.has(e)||xd("Cannot "+a);var bp=(e,t,a)=>t.has(e)?xd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a);var ge=(e,t,a)=>(vy(e,t,"access private method"),a);var s3={};Sd(s3,{parsers:()=>hd});var hd={};Sd(hd,{typescript:()=>a3});var Ty=()=>()=>{},Ma=Ty;var xy=(e,t,a,o)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(a,o):a.global?t.replace(a,o):t.split(a).join(o)},Er=xy;var km="5.8";var bt=[],Sy=new Map;function r_(e){return e!==void 0?e.length:0}function qn(e,t){if(e!==void 0)for(let a=0;a0;return!1}function Xp(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function Cy(e,t,a=Qp){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let o=0;oe==null?void 0:e.at(t):(e,t)=>{if(e!==void 0&&(t=Op(e,t),t>1),c=a(e[C],C);switch(o(c,t)){case-1:v=C+1;break;case 0:return C;case 1:E=C-1;break}}return~v}function Jy(e,t,a,o,m){if(e&&e.length>0){let v=e.length;if(v>0){let E=o===void 0||o<0?0:o,C=m===void 0||E+m>v-1?v-1:E+m,c;for(arguments.length<=2?(c=e[E],E++):c=a;E<=C;)c=t(c,e[E],E),E++;return c}}return a}var Dm=Object.prototype.hasOwnProperty;function Nr(e,t){return Dm.call(e,t)}function jy(e){let t=[];for(let a in e)Dm.call(e,a)&&t.push(a);return t}function Ry(){let e=new Map;return e.add=Uy,e.remove=By,e}function Uy(e,t){let a=this.get(e);return a!==void 0?a.push(t):this.set(e,a=[t]),a}function By(e,t){let a=this.get(e);a!==void 0&&(Xy(a,t),a.length||this.delete(e))}function Qr(e){return Array.isArray(e)}function Tp(e){return Qr(e)?e:[e]}function qy(e,t){return e!==void 0&&t(e)?e:void 0}function Cr(e,t){return e!==void 0&&t(e)?e:B.fail(`Invalid cast. The supplied value ${e} did not pass the test '${B.getFunctionName(t)}'.`)}function Ga(e){}function Fy(){return!0}function gt(e){return e}function kd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function er(e){let t=new Map;return a=>{let o=`${typeof a}:${a}`,m=t.get(o);return m===void 0&&!t.has(o)&&(m=e(a),t.set(o,m)),m}}function Qp(e,t){return e===t}function Kp(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function zy(e,t){return Qp(e,t)}function Vy(e,t){return e===t?0:e===void 0?-1:t===void 0?1:ea?C-a:1),h=Math.floor(t.length>a+C?a+C:t.length);m[0]=C;let y=C;for(let x=1;xa)return;let g=o;o=m,m=g}let E=o[t.length];return E>a?void 0:E}function Yy(e,t,a){let o=e.length-t.length;return o>=0&&(a?Kp(e.slice(o),t):e.indexOf(t,o)===o)}function Hy(e,t){e[t]=e[e.length-1],e.pop()}function Xy(e,t){return $y(e,a=>a===t)}function $y(e,t){for(let a=0;a{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function a(J){return e.currentLogLevel<=J}e.shouldLog=a;function o(J,_e){e.loggingHost&&a(J)&&e.loggingHost.log(J,_e)}function m(J){o(3,J)}e.log=m,(J=>{function _e(Ke){o(1,Ke)}J.error=_e;function me(Ke){o(2,Ke)}J.warn=me;function Te(Ke){o(3,Ke)}J.log=Te;function Xe(Ke){o(4,Ke)}J.trace=Xe})(m=e.log||(e.log={}));let v={};function E(){return t}e.getAssertionLevel=E;function C(J){let _e=t;if(t=J,J>_e)for(let me of jy(v)){let Te=v[me];Te!==void 0&&e[me]!==Te.assertion&&J>=Te.level&&(e[me]=Te,v[me]=void 0)}}e.setAssertionLevel=C;function c(J){return t>=J}e.shouldAssert=c;function W(J,_e){return c(J)?!0:(v[_e]={level:J,assertion:e[_e]},e[_e]=Ga,!1)}function h(J,_e){debugger;let me=new Error(J?`Debug Failure. ${J}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(me,_e||h),me}e.fail=h;function y(J,_e,me){return h(`${_e||"Unexpected node."}\r -Node ${Mt(J.kind)} was unexpected.`,me||y)}e.failBadSyntaxKind=y;function g(J,_e,me,Te){J||(_e=_e?`False expression: ${_e}`:"False expression.",me&&(_e+=`\r -Verbose Debug Information: `+(typeof me=="string"?me:me())),h(_e,Te||g))}e.assert=g;function x(J,_e,me,Te,Xe){if(J!==_e){let Ke=me?Te?`${me} ${Te}`:me:"";h(`Expected ${J} === ${_e}. ${Ke}`,Xe||x)}}e.assertEqual=x;function N(J,_e,me,Te){J>=_e&&h(`Expected ${J} < ${_e}. ${me||""}`,Te||N)}e.assertLessThan=N;function te(J,_e,me){J>_e&&h(`Expected ${J} <= ${_e}`,me||te)}e.assertLessThanOrEqual=te;function ue(J,_e,me){J<_e&&h(`Expected ${J} >= ${_e}`,me||ue)}e.assertGreaterThanOrEqual=ue;function ye(J,_e,me){J==null&&h(_e,me||ye)}e.assertIsDefined=ye;function fe(J,_e,me){return ye(J,_e,me||fe),J}e.checkDefined=fe;function M(J,_e,me){for(let Te of J)ye(Te,_e,me||M)}e.assertEachIsDefined=M;function ie(J,_e,me){return M(J,_e,me||ie),J}e.checkEachDefined=ie;function Ce(J,_e="Illegal value:",me){let Te=typeof J=="object"&&Nr(J,"kind")&&Nr(J,"pos")?"SyntaxKind: "+Mt(J.kind):JSON.stringify(J);return h(`${_e} ${Te}`,me||Ce)}e.assertNever=Ce;function V(J,_e,me,Te){W(1,"assertEachNode")&&g(_e===void 0||Hp(J,_e),me||"Unexpected node.",()=>`Node array did not pass test '${Tn(_e)}'.`,Te||V)}e.assertEachNode=V;function oe(J,_e,me,Te){W(1,"assertNode")&&g(J!==void 0&&(_e===void 0||_e(J)),me||"Unexpected node.",()=>`Node ${Mt(J==null?void 0:J.kind)} did not pass test '${Tn(_e)}'.`,Te||oe)}e.assertNode=oe;function G(J,_e,me,Te){W(1,"assertNotNode")&&g(J===void 0||_e===void 0||!_e(J),me||"Unexpected node.",()=>`Node ${Mt(J.kind)} should not have passed test '${Tn(_e)}'.`,Te||G)}e.assertNotNode=G;function dt(J,_e,me,Te){W(1,"assertOptionalNode")&&g(_e===void 0||J===void 0||_e(J),me||"Unexpected node.",()=>`Node ${Mt(J==null?void 0:J.kind)} did not pass test '${Tn(_e)}'.`,Te||dt)}e.assertOptionalNode=dt;function rr(J,_e,me,Te){W(1,"assertOptionalToken")&&g(_e===void 0||J===void 0||J.kind===_e,me||"Unexpected node.",()=>`Node ${Mt(J==null?void 0:J.kind)} was not a '${Mt(_e)}' token.`,Te||rr)}e.assertOptionalToken=rr;function vn(J,_e,me){W(1,"assertMissingNode")&&g(J===void 0,_e||"Unexpected node.",()=>`Node ${Mt(J.kind)} was unexpected'.`,me||vn)}e.assertMissingNode=vn;function ir(J){}e.type=ir;function Tn(J){if(typeof J!="function")return"";if(Nr(J,"name"))return J.name;{let _e=Function.prototype.toString.call(J),me=/^function\s+([\w$]+)\s*\(/.exec(_e);return me?me[1]:""}}e.getFunctionName=Tn;function Mn(J){return`{ name: ${f_(J.escapedName)}; flags: ${ct(J.flags)}; declarations: ${Ip(J.declarations,_e=>Mt(_e.kind))} }`}e.formatSymbol=Mn;function Ge(J=0,_e,me){let Te=Or(_e);if(J===0)return Te.length>0&&Te[0][0]===0?Te[0][1]:"0";if(me){let Xe=[],Ke=J;for(let[st,Pt]of Te){if(st>J)break;st!==0&&st&J&&(Xe.push(Pt),Ke&=~st)}if(Ke===0)return Xe.join("|")}else for(let[Xe,Ke]of Te)if(Xe===J)return Ke;return J.toString()}e.formatEnum=Ge;let ar=new Map;function Or(J){let _e=ar.get(J);if(_e)return _e;let me=[];for(let Xe in J){let Ke=J[Xe];typeof Ke=="number"&&me.push([Ke,Xe])}let Te=Ny(me,(Xe,Ke)=>Pm(Xe[0],Ke[0]));return ar.set(J,Te),Te}function Mt(J){return Ge(J,Ie,!1)}e.formatSyntaxKind=Mt;function Fn(J){return Ge(J,Lm,!1)}e.formatSnippetKind=Fn;function Ln(J){return Ge(J,Ir,!1)}e.formatScriptKind=Ln;function Lt(J){return Ge(J,bn,!0)}e.formatNodeFlags=Lt;function vt(J){return Ge(J,Im,!0)}e.formatNodeCheckFlags=vt;function Qe(J){return Ge(J,Zp,!0)}e.formatModifierFlags=Qe;function zn(J){return Ge(J,Mm,!0)}e.formatTransformFlags=zn;function $t(J){return Ge(J,Jm,!0)}e.formatEmitFlags=$t;function ct(J){return Ge(J,ef,!0)}e.formatSymbolFlags=ct;function at(J){return Ge(J,rn,!0)}e.formatTypeFlags=at;function Ut(J){return Ge(J,Om,!0)}e.formatSignatureFlags=Ut;function Jt(J){return Ge(J,tf,!0)}e.formatObjectFlags=Jt;function lt(J){return Ge(J,Lp,!0)}e.formatFlowFlags=lt;function sr(J){return Ge(J,Nm,!0)}e.formatRelationComparisonResult=sr;function mt(J){return Ge(J,CheckMode,!0)}e.formatCheckMode=mt;function xn(J){return Ge(J,SignatureCheckMode,!0)}e.formatSignatureCheckMode=xn;function yt(J){return Ge(J,TypeFacts,!0)}e.formatTypeFacts=yt;let ln=!1,nt;function Bt(J){"__debugFlowFlags"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(){let _e=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",me=this.flags&-2048;return`${_e}${me?` (${lt(me)})`:""}`}},__debugFlowFlags:{get(){return Ge(this.flags,Lp,!0)}},__debugToString:{value(){return gr(this)}}})}function an(J){return ln&&(typeof Object.setPrototypeOf=="function"?(nt||(nt=Object.create(Object.prototype),Bt(nt)),Object.setPrototypeOf(J,nt)):Bt(J)),J}e.attachFlowNodeDebugInfo=an;let _r;function hr(J){"__tsDebuggerDisplay"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(_e){return _e=String(_e).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${_e}`}}})}function yr(J){ln&&(typeof Object.setPrototypeOf=="function"?(_r||(_r=Object.create(Array.prototype),hr(_r)),Object.setPrototypeOf(J,_r)):hr(J))}e.attachNodeArrayDebugInfo=yr;function Vn(){if(ln)return;let J=new WeakMap,_e=new WeakMap;Object.defineProperties(At.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&33554432?"TransientSymbol":"Symbol",Xe=this.flags&-33554433;return`${Te} '${Rp(this)}'${Xe?` (${ct(Xe)})`:""}`}},__debugFlags:{get(){return ct(this.flags)}}}),Object.defineProperties(At.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Xe=this.flags&524288?this.objectFlags&-1344:0;return`${Te}${this.symbol?` '${Rp(this.symbol)}'`:""}${Xe?` (${Jt(Xe)})`:""}`}},__debugFlags:{get(){return at(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Jt(this.objectFlags):""}},__debugTypeToString:{value(){let Te=J.get(this);return Te===void 0&&(Te=this.checker.typeToString(this),J.set(this,Te)),Te}}}),Object.defineProperties(At.getSignatureConstructor().prototype,{__debugFlags:{get(){return Ut(this.flags)}},__debugSignatureToString:{value(){var Te;return(Te=this.checker)==null?void 0:Te.signatureToString(this)}}});let me=[At.getNodeConstructor(),At.getIdentifierConstructor(),At.getTokenConstructor(),At.getSourceFileConstructor()];for(let Te of me)Nr(Te.prototype,"__debugKind")||Object.defineProperties(Te.prototype,{__tsDebuggerDisplay:{value(){return`${qa(this)?"GeneratedIdentifier":Ze(this)?`Identifier '${In(this)}'`:vi(this)?`PrivateIdentifier '${In(this)}'`:Si(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:na(this)?`NumericLiteral ${this.text}`:I1(this)?`BigIntLiteral ${this.text}n`:Af(this)?"TypeParameterDeclaration":g_(this)?"ParameterDeclaration":Cf(this)?"ConstructorDeclaration":Tl(this)?"GetAccessorDeclaration":v_(this)?"SetAccessorDeclaration":j1(this)?"CallSignatureDeclaration":R1(this)?"ConstructSignatureDeclaration":Df(this)?"IndexSignatureDeclaration":U1(this)?"TypePredicateNode":Pf(this)?"TypeReferenceNode":Nf(this)?"FunctionTypeNode":If(this)?"ConstructorTypeNode":a6(this)?"TypeQueryNode":B1(this)?"TypeLiteralNode":s6(this)?"ArrayTypeNode":_6(this)?"TupleTypeNode":o6(this)?"OptionalTypeNode":c6(this)?"RestTypeNode":F1(this)?"UnionTypeNode":z1(this)?"IntersectionTypeNode":l6(this)?"ConditionalTypeNode":u6(this)?"InferTypeNode":V1(this)?"ParenthesizedTypeNode":p6(this)?"ThisTypeNode":W1(this)?"TypeOperatorNode":f6(this)?"IndexedAccessTypeNode":G1(this)?"MappedTypeNode":d6(this)?"LiteralTypeNode":q1(this)?"NamedTupleMember":m6(this)?"ImportTypeNode":Mt(this.kind)}${this.flags?` (${Lt(this.flags)})`:""}`}},__debugKind:{get(){return Mt(this.kind)}},__debugNodeFlags:{get(){return Lt(this.flags)}},__debugModifierFlags:{get(){return Qe(pb(this))}},__debugTransformFlags:{get(){return zn(this.transformFlags)}},__debugIsParseTreeNode:{get(){return gl(this)}},__debugEmitFlags:{get(){return $t(Wa(this))}},__debugGetText:{value(Xe){if(Ra(this))return"";let Ke=_e.get(this);if(Ke===void 0){let st=Og(this),Pt=st&&gi(st);Ke=Pt?Bd(Pt,st,Xe):"",_e.set(this,Ke)}return Ke}}});ln=!0}e.enableDebugInfo=Vn;function Wn(J){let _e=J&7,me=_e===0?"in out":_e===3?"[bivariant]":_e===2?"in":_e===1?"out":_e===4?"[independent]":"";return J&8?me+=" (unmeasurable)":J&16&&(me+=" (unreliable)"),me}e.formatVariance=Wn;class Mr{__debugToString(){var _e;switch(this.kind){case 3:return((_e=this.debugInfo)==null?void 0:_e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return wd(this.sources,this.targets||Ip(this.sources,()=>"any"),(me,Te)=>`${me.__debugTypeToString()} -> ${typeof Te=="string"?Te:Te.__debugTypeToString()}`).join(", ");case 2:return wd(this.sources,this.targets,(me,Te)=>`${me.__debugTypeToString()} -> ${Te().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` -`).join(` - `)} -m2: ${this.mapper2.__debugToString().split(` -`).join(` - `)}`;default:return Ce(this)}}}e.DebugTypeMapper=Mr;function Gn(J){return e.isDebugging?Object.setPrototypeOf(J,Mr.prototype):J}e.attachDebugPrototypeIfDebug=Gn;function De(J){return console.log(gr(J))}e.printControlFlowGraph=De;function gr(J){let _e=-1;function me(u){return u.id||(u.id=_e,_e--),u.id}let Te;(u=>{u.lr="\u2500",u.ud="\u2502",u.dr="\u256D",u.dl="\u256E",u.ul="\u256F",u.ur="\u2570",u.udr="\u251C",u.udl="\u2524",u.dlr="\u252C",u.ulr="\u2534",u.udlr="\u256B"})(Te||(Te={}));let Xe;(u=>{u[u.None=0]="None",u[u.Up=1]="Up",u[u.Down=2]="Down",u[u.Left=4]="Left",u[u.Right=8]="Right",u[u.UpDown=3]="UpDown",u[u.LeftRight=12]="LeftRight",u[u.UpLeft=5]="UpLeft",u[u.UpRight=9]="UpRight",u[u.DownLeft=6]="DownLeft",u[u.DownRight=10]="DownRight",u[u.UpDownLeft=7]="UpDownLeft",u[u.UpDownRight=11]="UpDownRight",u[u.UpLeftRight=13]="UpLeftRight",u[u.DownLeftRight=14]="DownLeftRight",u[u.UpDownLeftRight=15]="UpDownLeftRight",u[u.NoChildren=16]="NoChildren"})(Xe||(Xe={}));let Ke=2032,st=882,Pt=Object.create(null),Tt=[],ut=[],Lr=Se(J,new Set);for(let u of Tt)u.text=rt(u.flowNode,u.circular),be(u);let br=We(Lr),Jn=et(br);return Ye(Lr,0),un();function Yn(u){return!!(u.flags&128)}function Ei(u){return!!(u.flags&12)&&!!u.antecedent}function R(u){return!!(u.flags&Ke)}function Q(u){return!!(u.flags&st)}function K(u){let Oe=[];for(let Me of u.edges)Me.source===u&&Oe.push(Me.target);return Oe}function xe(u){let Oe=[];for(let Me of u.edges)Me.target===u&&Oe.push(Me.source);return Oe}function Se(u,Oe){let Me=me(u),U=Pt[Me];if(U&&Oe.has(u))return U.circular=!0,U={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tt.push(U),U;if(Oe.add(u),!U)if(Pt[Me]=U={id:Me,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tt.push(U),Ei(u))for(let Fe of u.antecedent)we(U,Fe,Oe);else R(u)&&we(U,u.antecedent,Oe);return Oe.delete(u),U}function we(u,Oe,Me){let U=Se(Oe,Me),Fe={source:u,target:U};ut.push(Fe),u.edges.push(Fe),U.edges.push(Fe)}function be(u){if(u.level!==-1)return u.level;let Oe=0;for(let Me of xe(u))Oe=Math.max(Oe,be(Me)+1);return u.level=Oe}function We(u){let Oe=0;for(let Me of K(u))Oe=Math.max(Oe,We(Me));return Oe+1}function et(u){let Oe=L(Array(u),0);for(let Me of Tt)Oe[Me.level]=Math.max(Oe[Me.level],Me.text.length);return Oe}function Ye(u,Oe){if(u.lane===-1){u.lane=Oe,u.endLane=Oe;let Me=K(u);for(let U=0;U0&&Oe++;let Fe=Me[U];Ye(Fe,Oe),Fe.endLane>u.endLane&&(Oe=Fe.endLane)}u.endLane=Oe}}function Ee(u){if(u&2)return"Start";if(u&4)return"Branch";if(u&8)return"Loop";if(u&16)return"Assignment";if(u&32)return"True";if(u&64)return"False";if(u&128)return"SwitchClause";if(u&256)return"ArrayMutation";if(u&512)return"Call";if(u&1024)return"ReduceLabel";if(u&1)return"Unreachable";throw new Error}function Sn(u){let Oe=gi(u);return Bd(Oe,u,!1)}function rt(u,Oe){let Me=Ee(u.flags);if(Oe&&(Me=`${Me}#${me(u)}`),Yn(u)){let U=[],{switchStatement:Fe,clauseStart:sn,clauseEnd:Ve}=u.node;for(let $e=sn;$eVe.lane)+1,Me=L(Array(Oe),""),U=Jn.map(()=>Array(Oe)),Fe=Jn.map(()=>L(Array(Oe),0));for(let Ve of Tt){U[Ve.level][Ve.lane]=Ve;let $e=K(Ve);for(let kt=0;kt<$e.length;kt++){let It=$e[kt],qt=8;It.lane===Ve.lane&&(qt|=4),kt>0&&(qt|=1),kt<$e.length-1&&(qt|=2),Fe[Ve.level][It.lane]|=qt}$e.length===0&&(Fe[Ve.level][Ve.lane]|=16);let Nt=xe(Ve);for(let kt=0;kt0&&(qt|=1),kt0?Fe[Ve-1][$e]:0,kt=$e>0?Fe[Ve][$e-1]:0,It=Fe[Ve][$e];It||(Nt&8&&(It|=12),kt&2&&(It|=3),Fe[Ve][$e]=It)}for(let Ve=0;Ve0?u.repeat(Oe):"";let Me="";for(;Me.length{},Qy=()=>{},ll,Ie=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.NotEmittedTypeElement=354]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=355]="PartiallyEmittedExpression",e[e.CommaListExpression=356]="CommaListExpression",e[e.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",e[e.Count=358]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(Ie||{}),bn=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(bn||{}),Zp=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(Zp||{});var Nm=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(Nm||{});var Lp=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Lp||{});var ef=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(ef||{});var Im=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Im||{}),rn=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(rn||{}),tf=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(tf||{});var Om=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Om||{});var Ir=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(Ir||{}),T_=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(T_||{}),wl=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(wl||{});var On=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(On||{}),Mm=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Mm||{}),Lm=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Lm||{}),Jm=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Jm||{});var Zs={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99};var jm={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Xa=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Xa||{});var $r="/",Ky="\\",Ad="://",Zy=/\\/g;function eg(e){return e===47||e===92}function tg(e,t){return e.length>t.length&&Yy(e,t)}function nf(e){return e.length>0&&eg(e.charCodeAt(e.length-1))}function Cd(e){return e>=97&&e<=122||e>=65&&e<=90}function ng(e,t){let a=e.charCodeAt(t);if(a===58)return t+1;if(a===37&&e.charCodeAt(t+1)===51){let o=e.charCodeAt(t+2);if(o===97||o===65)return t+3}return-1}function rg(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let o=e.indexOf(t===47?$r:Ky,2);return o<0?e.length:o+1}if(Cd(t)&&e.charCodeAt(1)===58){let o=e.charCodeAt(2);if(o===47||o===92)return 3;if(e.length===2)return 2}let a=e.indexOf(Ad);if(a!==-1){let o=a+Ad.length,m=e.indexOf($r,o);if(m!==-1){let v=e.slice(0,a),E=e.slice(o,m);if(v==="file"&&(E===""||E==="localhost")&&Cd(e.charCodeAt(m+1))){let C=ng(e,m+2);if(C!==-1){if(e.charCodeAt(C)===47)return~(C+1);if(C===e.length)return~C}}return~(m+1)}return~e.length}return 0}function u_(e){let t=rg(e);return t<0?~t:t}function Rm(e,t,a){if(e=p_(e),u_(e)===e.length)return"";e=hl(e);let m=e.slice(Math.max(u_(e),e.lastIndexOf($r)+1)),v=t!==void 0&&a!==void 0?Um(m,t,a):void 0;return v?m.slice(0,m.length-v.length):m}function Dd(e,t,a){if(ml(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let o=e.slice(e.length-t.length);if(a(o,t))return o}}function ig(e,t,a){if(typeof t=="string")return Dd(e,t,a)||"";for(let o of t){let m=Dd(e,o,a);if(m)return m}return""}function Um(e,t,a){if(t)return ig(hl(e),t,a?Kp:zy);let o=Rm(e),m=o.lastIndexOf(".");return m>=0?o.substring(m):""}function p_(e){return e.includes("\\")?e.replace(Zy,$r):e}function ag(e,...t){e&&(e=p_(e));for(let a of t)a&&(a=p_(a),!e||u_(a)!==0?e=a:e=qm(e)+a);return e}function sg(e,t){let a=u_(e);a===0&&t?(e=ag(t,e),a=u_(e)):e=p_(e);let o=Bm(e);if(o!==void 0)return o.length>a?hl(o):o;let m=e.length,v=e.substring(0,a),E,C=a,c=C,W=C,h=a!==0;for(;Cc&&(E??(E=e.substring(0,c-1)),c=C);let g=e.indexOf($r,C+1);g===-1&&(g=m);let x=g-c;if(x===1&&e.charCodeAt(C)===46)E??(E=e.substring(0,W));else if(x===2&&e.charCodeAt(C)===46&&e.charCodeAt(C+1)===46)if(!h)E!==void 0?E+=E.length===a?"..":"/..":W=C+2;else if(E===void 0)W-2>=0?E=e.substring(0,Math.max(a,e.lastIndexOf($r,W-2))):E=e.substring(0,W);else{let N=E.lastIndexOf($r);N!==-1?E=E.substring(0,Math.max(a,N)):E=v,E.length===a&&(h=a!==0)}else E!==void 0?(E.length!==a&&(E+=$r),h=!0,E+=e.substring(c,g)):(h=!0,W=g);C=g+1}return E??(m>a?hl(e):e)}function _g(e){e=p_(e);let t=Bm(e);return t!==void 0?t:(t=sg(e,""),t&&nf(e)?qm(t):t)}function Bm(e){if(!Pd.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!Pd.test(e)))return e}function hl(e){return nf(e)?e.substr(0,e.length-1):e}function qm(e){return nf(e)?e:e+$r}var Pd=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function r(e,t,a,o,m,v,E){return{code:e,category:t,key:a,message:o,reportsUnnecessary:m,elidedInCompatabilityPyramid:v,reportsDeprecated:E}}var A={Unterminated_string_literal:r(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:r(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:r(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:r(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:r(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:r(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:r(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:r(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:r(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:r(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:r(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:r(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:r(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:r(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:r(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:r(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:r(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:r(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:r(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:r(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:r(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:r(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:r(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:r(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:r(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:r(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:r(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:r(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:r(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:r(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:r(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:r(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:r(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:r(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:r(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:r(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:r(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:r(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:r(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:r(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:r(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:r(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:r(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:r(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:r(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:r(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:r(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:r(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:r(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:r(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:r(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:r(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:r(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:r(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:r(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:r(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:r(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:r(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:r(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:r(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:r(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:r(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:r(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:r(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:r(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:r(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:r(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:r(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:r(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:r(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:r(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:r(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:r(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:r(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:r(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:r(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:r(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:r(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:r(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:r(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:r(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:r(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:r(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:r(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:r(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:r(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:r(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:r(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:r(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:r(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:r(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:r(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:r(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:r(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:r(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:r(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:r(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:r(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:r(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:r(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:r(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:r(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:r(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:r(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:r(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:r(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:r(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:r(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:r(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:r(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:r(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:r(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:r(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:r(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:r(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:r(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:r(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:r(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:r(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:r(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:r(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:r(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:r(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:r(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:r(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:r(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:r(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:r(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:r(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:r(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:r(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:r(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:r(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:r(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:r(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:r(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:r(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:r(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:r(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:r(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:r(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:r(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:r(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:r(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:r(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:r(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:r(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:r(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:r(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:r(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:r(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:r(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:r(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:r(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:r(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:r(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:r(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:r(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:r(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:r(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:r(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:r(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:r(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:r(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:r(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:r(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:r(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:r(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:r(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:r(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:r(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:r(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:r(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:r(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:r(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:r(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:r(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:r(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:r(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:r(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:r(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:r(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:r(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:r(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:r(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:r(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:r(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:r(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:r(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:r(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:r(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:r(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:r(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:r(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:r(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:r(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:r(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:r(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:r(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:r(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:r(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:r(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:r(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:r(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:r(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:r(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:r(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:r(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:r(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:r(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:r(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:r(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:r(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:r(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:r(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:r(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:r(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:r(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:r(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:r(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:r(1293,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:r(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:r(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:r(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:r(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:r(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:r(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:r(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:r(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:r(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:r(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:r(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext:r(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve:r(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:r(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:r(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:r(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:r(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:r(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:r(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:r(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:r(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:r(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:r(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:r(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:r(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:r(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:r(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:r(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:r(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext:r(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', or 'nodenext'."),A_label_is_not_allowed_here:r(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:r(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:r(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:r(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:r(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:r(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:r(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:r(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:r(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:r(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:r(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:r(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:r(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:r(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:r(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:r(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:r(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:r(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:r(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:r(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:r(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:r(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:r(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:r(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:r(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:r(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:r(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:r(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:r(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:r(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:r(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:r(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:r(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:r(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:r(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:r(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:r(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:r(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:r(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:r(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:r(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:r(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:r(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:r(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:r(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:r(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:r(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:r(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:r(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:r(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:r(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:r(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:r(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:r(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:r(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:r(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:r(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:r(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:r(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:r(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:r(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:r(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:r(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:r(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:r(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:r(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:r(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:r(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:r(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:r(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:r(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:r(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:r(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:r(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:r(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:r(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:r(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:r(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:r(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:r(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:r(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:r(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:r(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:r(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:r(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:r(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:r(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:r(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:r(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:r(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:r(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:r(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:r(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:r(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:r(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:r(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:r(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:r(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:r(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:r(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:r(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:r(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:r(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:r(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:r(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:r(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:r(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:r(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:r(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:r(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:r(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:r(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:r(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:r(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:r(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:r(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:r(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:r(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:r(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:r(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:r(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:r(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:r(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:r(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:r(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:r(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:r(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:r(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:r(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:r(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:r(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:r(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:r(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:r(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:r(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:r(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:r(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:r(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:r(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:r(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:r(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:r(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:r(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:r(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:r(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:r(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:r(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:r(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:r(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:r(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:r(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:r(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:r(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:r(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:r(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:r(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:r(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:r(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:r(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:r(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:r(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:r(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:r(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:r(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:r(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),The_types_of_0_are_incompatible_between_these_types:r(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:r(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:r(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:r(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:r(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:r(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:r(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:r(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:r(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:r(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:r(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:r(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:r(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:r(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:r(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:r(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:r(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:r(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:r(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:r(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:r(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:r(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:r(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:r(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:r(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:r(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:r(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:r(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:r(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:r(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:r(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:r(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:r(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:r(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:r(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:r(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:r(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:r(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:r(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:r(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:r(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:r(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:r(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:r(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:r(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:r(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:r(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:r(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:r(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:r(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:r(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:r(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:r(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:r(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:r(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:r(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:r(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:r(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:r(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:r(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:r(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:r(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:r(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:r(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:r(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:r(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:r(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:r(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:r(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:r(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:r(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:r(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:r(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:r(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:r(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:r(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:r(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:r(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:r(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:r(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:r(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:r(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:r(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:r(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:r(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:r(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:r(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:r(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:r(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:r(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:r(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:r(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:r(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:r(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:r(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:r(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:r(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:r(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:r(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:r(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:r(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:r(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:r(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:r(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:r(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:r(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:r(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:r(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:r(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:r(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:r(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:r(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:r(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:r(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:r(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:r(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:r(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:r(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:r(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:r(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:r(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:r(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:r(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:r(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:r(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:r(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:r(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:r(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:r(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:r(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:r(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:r(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:r(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:r(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:r(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:r(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:r(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:r(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:r(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:r(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:r(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:r(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:r(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:r(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:r(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:r(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:r(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:r(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:r(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:r(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:r(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:r(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:r(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:r(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:r(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:r(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:r(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:r(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:r(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:r(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:r(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:r(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:r(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:r(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:r(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:r(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:r(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:r(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:r(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:r(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:r(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:r(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:r(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:r(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:r(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:r(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:r(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:r(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:r(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:r(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:r(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:r(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:r(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:r(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:r(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:r(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:r(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:r(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:r(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:r(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:r(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:r(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:r(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:r(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:r(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:r(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:r(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:r(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:r(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:r(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:r(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:r(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:r(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:r(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:r(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:r(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:r(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:r(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:r(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:r(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:r(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:r(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:r(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:r(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:r(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:r(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:r(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:r(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:r(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:r(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:r(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:r(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:r(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:r(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:r(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:r(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:r(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:r(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:r(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:r(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:r(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:r(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:r(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:r(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:r(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:r(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:r(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:r(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:r(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:r(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:r(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:r(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:r(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:r(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:r(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:r(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:r(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:r(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:r(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:r(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:r(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:r(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:r(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:r(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:r(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:r(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:r(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:r(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:r(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:r(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:r(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:r(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:r(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:r(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:r(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:r(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:r(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:r(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:r(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:r(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:r(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:r(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:r(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:r(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:r(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:r(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:r(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:r(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:r(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:r(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:r(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:r(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:r(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:r(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:r(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:r(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:r(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:r(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:r(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:r(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:r(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:r(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:r(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:r(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:r(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:r(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:r(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:r(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:r(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:r(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:r(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:r(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:r(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:r(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:r(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:r(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:r(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:r(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:r(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:r(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:r(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:r(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:r(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:r(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:r(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:r(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:r(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:r(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:r(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:r(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:r(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:r(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:r(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:r(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:r(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:r(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:r(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:r(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:r(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:r(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:r(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:r(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:r(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:r(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:r(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:r(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:r(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:r(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:r(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:r(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:r(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:r(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:r(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:r(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:r(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:r(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:r(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:r(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:r(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:r(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:r(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:r(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:r(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:r(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:r(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:r(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:r(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:r(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:r(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:r(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:r(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:r(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:r(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:r(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:r(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:r(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:r(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:r(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:r(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:r(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:r(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:r(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:r(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:r(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:r(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:r(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:r(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:r(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:r(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:r(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:r(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:r(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:r(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:r(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:r(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:r(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:r(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:r(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:r(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:r(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:r(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:r(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:r(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:r(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:r(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:r(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:r(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:r(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:r(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:r(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:r(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:r(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:r(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:r(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:r(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:r(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:r(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:r(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:r(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:r(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:r(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:r(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:r(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:r(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:r(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:r(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:r(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:r(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:r(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:r(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:r(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:r(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:r(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:r(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:r(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:r(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:r(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:r(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:r(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:r(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:r(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:r(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:r(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:r(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:r(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:r(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:r(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:r(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:r(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:r(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:r(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:r(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:r(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:r(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:r(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:r(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:r(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:r(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:r(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:r(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:r(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:r(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:r(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:r(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:r(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:r(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:r(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:r(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:r(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:r(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:r(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:r(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:r(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve:r(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:r(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve:r(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:r(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:r(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:r(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:r(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:r(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:r(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:r(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:r(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:r(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:r(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:r(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:r(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:r(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:r(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:r(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:r(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:r(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:r(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:r(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:r(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:r(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:r(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:r(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:r(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:r(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:r(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:r(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:r(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:r(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:r(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:r(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:r(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:r(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:r(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:r(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:r(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:r(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:r(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),Import_declaration_0_is_using_private_name_1:r(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:r(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:r(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:r(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:r(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:r(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:r(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:r(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:r(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:r(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:r(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:r(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:r(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:r(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:r(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:r(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:r(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:r(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:r(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:r(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:r(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:r(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:r(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:r(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:r(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:r(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:r(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:r(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:r(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:r(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:r(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:r(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:r(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:r(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:r(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:r(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:r(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:r(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:r(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:r(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:r(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:r(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:r(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:r(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:r(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:r(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:r(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:r(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:r(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:r(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:r(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:r(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:r(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:r(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:r(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:r(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:r(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:r(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:r(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:r(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:r(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:r(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:r(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:r(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:r(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:r(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:r(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:r(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:r(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:r(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:r(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:r(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:r(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:r(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:r(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:r(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:r(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:r(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:r(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:r(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:r(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:r(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:r(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:r(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:r(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:r(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:r(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:r(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:r(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:r(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:r(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:r(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:r(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:r(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:r(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:r(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:r(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:r(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:r(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:r(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:r(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:r(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:r(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:r(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:r(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:r(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:r(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:r(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:r(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:r(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:r(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:r(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:r(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:r(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:r(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:r(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:r(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:r(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:r(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:r(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:r(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:r(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:r(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:r(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:r(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:r(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:r(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:r(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:r(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:r(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:r(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:r(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:r(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:r(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:r(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:r(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:r(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:r(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:r(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:r(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:r(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:r(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:r(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:r(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:r(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:r(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:r(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:r(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:r(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:r(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:r(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:r(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:r(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:r(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:r(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:r(6024,3,"options_6024","options"),file:r(6025,3,"file_6025","file"),Examples_Colon_0:r(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:r(6027,3,"Options_Colon_6027","Options:"),Version_0:r(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:r(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:r(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:r(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:r(6034,3,"KIND_6034","KIND"),FILE:r(6035,3,"FILE_6035","FILE"),VERSION:r(6036,3,"VERSION_6036","VERSION"),LOCATION:r(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:r(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:r(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:r(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:r(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:r(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:r(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:r(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:r(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:r(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:r(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:r(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:r(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:r(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:r(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:r(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:r(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:r(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:r(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:r(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:r(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:r(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:r(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:r(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:r(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:r(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:r(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:r(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:r(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:r(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:r(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:r(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:r(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:r(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:r(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:r(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:r(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:r(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:r(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:r(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:r(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:r(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:r(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:r(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:r(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:r(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:r(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:r(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:r(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:r(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:r(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:r(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:r(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:r(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:r(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:r(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:r(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:r(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:r(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:r(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:r(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:r(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:r(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:r(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:r(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:r(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:r(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:r(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:r(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:r(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:r(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:r(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:r(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:r(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:r(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:r(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:r(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:r(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:r(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:r(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:r(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:r(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:r(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:r(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:r(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:r(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:r(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:r(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:r(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:r(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:r(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:r(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:r(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:r(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:r(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:r(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:r(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:r(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:r(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:r(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:r(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:r(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:r(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:r(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:r(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:r(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:r(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:r(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:r(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:r(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:r(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:r(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:r(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:r(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:r(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:r(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:r(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:r(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:r(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:r(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:r(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:r(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:r(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:r(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:r(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:r(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:r(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:r(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:r(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:r(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:r(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:r(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:r(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:r(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:r(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:r(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:r(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:r(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:r(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:r(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:r(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:r(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:r(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:r(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:r(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:r(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:r(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:r(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:r(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:r(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:r(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:r(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:r(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:r(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:r(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:r(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:r(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:r(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:r(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:r(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:r(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:r(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:r(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:r(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:r(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:r(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:r(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:r(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:r(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:r(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:r(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:r(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:r(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:r(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:r(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:r(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:r(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:r(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:r(6244,3,"Modules_6244","Modules"),File_Management:r(6245,3,"File_Management_6245","File Management"),Emit:r(6246,3,"Emit_6246","Emit"),JavaScript_Support:r(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:r(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:r(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:r(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:r(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:r(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:r(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:r(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:r(6255,3,"Projects_6255","Projects"),Output_Formatting:r(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:r(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:r(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:r(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:r(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:r(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:r(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:r(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:r(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:r(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:r(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:r(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:r(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:r(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:r(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:r(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:r(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:r(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:r(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:r(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:r(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:r(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:r(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:r(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:r(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:r(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:r(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:r(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:r(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:r(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:r(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:r(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:r(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:r(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:r(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:r(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:r(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:r(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:r(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:r(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:r(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:r(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:r(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:r(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:r(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:r(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:r(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:r(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:r(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:r(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:r(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:r(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:r(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:r(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:r(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:r(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:r(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:r(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:r(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:r(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:r(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:r(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:r(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:r(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:r(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:r(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:r(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:r(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:r(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:r(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:r(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:r(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:r(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:r(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:r(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:r(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:r(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:r(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:r(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:r(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:r(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:r(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:r(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:r(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:r(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:r(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:r(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:r(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:r(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:r(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:r(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:r(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:r(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:r(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:r(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:r(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:r(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:r(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:r(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:r(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:r(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:r(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:r(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:r(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:r(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:r(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:r(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:r(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:r(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:r(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:r(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:r(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:r(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:r(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:r(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:r(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:r(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:r(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:r(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:r(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:r(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:r(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:r(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:r(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:r(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:r(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:r(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:r(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:r(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:r(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:r(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:r(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:r(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:r(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:r(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:r(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:r(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:r(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:r(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:r(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:r(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:r(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:r(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:r(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:r(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:r(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:r(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:r(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:r(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:r(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:r(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:r(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:r(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:r(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:r(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:r(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:r(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:r(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:r(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:r(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:r(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:r(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:r(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:r(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:r(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:r(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:r(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:r(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:r(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:r(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:r(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:r(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:r(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:r(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:r(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:r(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:r(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:r(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:r(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:r(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:r(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:r(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:r(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:r(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:r(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:r(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:r(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:r(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:r(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:r(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:r(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:r(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:r(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:r(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:r(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:r(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:r(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:r(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:r(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:r(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:r(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:r(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:r(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:r(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:r(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:r(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:r(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:r(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:r(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:r(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:r(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:r(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:r(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:r(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:r(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:r(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:r(6902,3,"type_Colon_6902","type:"),default_Colon:r(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:r(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:r(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:r(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:r(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:r(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:r(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:r(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:r(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:r(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:r(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:r(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:r(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:r(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:r(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:r(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:r(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:r(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:r(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:r(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:r(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:r(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:r(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:r(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:r(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:r(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:r(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:r(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:r(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:r(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:r(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:r(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:r(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:r(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:r(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:r(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:r(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:r(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:r(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:r(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:r(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:r(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:r(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:r(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:r(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:r(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:r(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:r(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:r(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:r(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:r(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:r(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:r(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:r(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:r(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:r(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:r(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:r(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:r(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:r(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:r(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:r(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:r(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:r(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:r(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:r(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:r(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:r(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:r(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:r(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:r(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:r(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:r(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:r(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:r(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:r(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:r(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:r(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:r(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:r(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:r(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:r(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:r(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:r(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:r(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:r(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:r(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:r(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:r(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:r(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:r(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:r(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:r(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:r(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:r(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:r(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:r(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:r(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:r(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:r(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:r(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:r(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:r(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:r(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:r(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:r(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:r(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:r(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:r(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:r(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:r(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:r(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:r(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:r(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:r(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:r(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:r(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:r(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:r(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:r(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:r(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:r(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:r(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:r(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:r(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:r(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:r(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:r(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:r(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:r(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:r(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:r(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:r(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:r(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:r(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:r(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:r(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:r(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:r(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:r(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:r(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:r(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:r(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:r(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:r(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:r(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:r(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:r(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:r(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:r(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:r(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:r(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:r(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:r(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:r(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:r(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:r(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:r(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:r(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:r(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:r(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:r(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:r(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:r(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:r(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:r(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:r(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:r(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:r(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:r(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:r(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:r(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:r(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:r(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:r(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:r(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:r(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:r(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:r(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:r(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:r(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:r(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:r(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:r(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:r(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:r(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:r(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:r(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:r(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:r(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:r(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:r(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:r(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:r(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:r(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:r(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:r(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:r(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:r(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:r(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:r(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:r(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:r(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:r(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:r(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:r(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:r(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:r(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:r(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:r(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:r(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:r(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:r(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:r(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:r(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:r(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:r(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:r(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:r(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:r(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:r(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:r(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:r(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:r(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:r(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:r(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:r(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:r(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:r(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:r(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:r(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:r(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:r(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:r(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:r(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:r(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:r(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:r(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:r(95005,3,"Extract_function_95005","Extract function"),Extract_constant:r(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:r(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:r(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:r(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:r(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:r(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:r(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:r(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:r(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:r(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:r(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:r(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:r(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:r(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:r(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:r(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:r(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:r(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:r(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:r(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:r(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:r(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:r(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:r(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:r(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:r(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:r(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:r(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:r(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:r(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:r(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:r(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:r(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:r(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:r(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:r(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:r(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:r(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:r(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:r(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:r(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:r(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:r(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:r(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:r(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:r(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:r(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:r(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:r(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:r(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:r(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:r(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:r(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:r(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:r(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:r(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:r(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:r(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:r(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:r(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:r(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:r(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:r(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:r(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:r(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:r(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:r(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:r(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:r(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:r(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:r(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:r(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:r(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:r(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:r(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:r(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:r(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:r(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:r(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:r(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:r(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:r(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:r(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:r(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:r(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:r(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:r(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:r(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:r(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:r(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:r(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:r(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:r(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:r(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:r(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:r(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:r(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:r(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:r(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:r(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:r(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:r(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:r(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:r(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:r(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:r(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:r(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:r(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:r(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:r(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:r(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:r(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:r(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:r(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:r(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:r(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:r(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:r(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:r(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:r(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:r(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:r(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:r(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:r(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:r(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:r(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:r(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:r(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:r(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:r(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:r(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:r(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:r(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:r(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:r(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:r(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:r(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:r(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:r(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:r(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:r(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:r(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:r(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:r(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:r(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:r(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:r(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:r(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:r(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:r(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:r(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:r(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:r(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:r(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:r(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:r(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:r(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:r(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:r(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:r(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:r(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:r(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:r(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:r(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:r(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:r(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:r(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:r(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:r(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:r(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:r(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:r(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:r(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:r(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:r(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:r(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:r(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:r(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:r(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:r(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:r(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:r(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:r(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:r(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:r(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:r(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:r(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:r(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:r(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:r(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:r(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:r(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:r(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:r(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:r(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:r(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:r(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:r(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:r(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:r(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:r(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:r(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:r(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:r(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:r(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:r(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:r(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:r(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:r(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:r(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:r(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:r(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:r(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:r(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:r(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:r(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:r(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:r(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:r(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:r(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:r(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:r(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:r(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:r(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:r(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:r(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:r(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:r(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:r(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:r(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:r(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.")};function wt(e){return e>=80}function og(e){return e===32||wt(e)}var rf={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},cg=new Map(Object.entries(rf)),Fm=new Map(Object.entries({...rf,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),zm=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),lg=new Map([[1,Zs.RegularExpressionFlagsHasIndices],[16,Zs.RegularExpressionFlagsDotAll],[32,Zs.RegularExpressionFlagsUnicode],[64,Zs.RegularExpressionFlagsUnicodeSets],[128,Zs.RegularExpressionFlagsSticky]]),ug=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],pg=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],fg=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],dg=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],mg=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,hg=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,yg=/@(?:see|link)/i;function yl(e,t){if(e=2?yl(e,fg):yl(e,ug)}function bg(e,t){return t>=2?yl(e,dg):yl(e,pg)}function Vm(e){let t=[];return e.forEach((a,o)=>{t[a]=o}),t}var vg=Vm(Fm);function it(e){return vg[e]}function Wm(e){return Fm.get(e)}var p3=Vm(zm);function Nd(e){return zm.get(e)}function Gm(e){let t=[],a=0,o=0;for(;a127&&Pn(m)&&(t.push(o),o=a);break}}return t.push(o),t}function Tg(e,t,a,o,m){(t<0||t>=e.length)&&(m?t=t<0?0:t>=e.length?e.length-1:t:B.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${o!==void 0?Cy(e,Gm(o)):"unknown"}`));let v=e[t]+a;return m?v>e[t+1]?e[t+1]:typeof o=="string"&&v>o.length?o.length:v:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Pn(e){return e===10||e===13||e===8232||e===8233}function mi(e){return e>=48&&e<=57}function xp(e){return mi(e)||e>=65&&e<=70||e>=97&&e<=102}function af(e){return e>=65&&e<=90||e>=97&&e<=122}function Hm(e){return af(e)||mi(e)||e===95}function Sp(e){return e>=48&&e<=55}function Pr(e,t,a,o,m){if(y_(t))return t;let v=!1;for(;;){let E=e.charCodeAt(t);switch(E){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,a)return t;v=!!m;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(o)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&za(E)){t++;continue}break}return t}}var ul=7;function Hi(e,t){if(B.assert(t>=0),t===0||Pn(e.charCodeAt(t-1))){let a=e.charCodeAt(t);if(t+ul=0&&a127&&za(N)){y&&Pn(N)&&(h=!0),a++;continue}break e}}return y&&(x=m(C,c,W,h,v,x)),x}function Qm(e,t,a,o){return kl(!1,e,t,!1,a,o)}function Km(e,t,a,o){return kl(!1,e,t,!0,a,o)}function wg(e,t,a,o,m){return kl(!0,e,t,!1,a,o,m)}function kg(e,t,a,o,m){return kl(!0,e,t,!0,a,o,m)}function Zm(e,t,a,o,m,v=[]){return v.push({kind:a,pos:e,end:t,hasTrailingNewLine:o}),v}function jp(e,t){return wg(e,t,Zm,void 0,void 0)}function Eg(e,t){return kg(e,t,Zm,void 0,void 0)}function _f(e){let t=sf.exec(e);if(t)return t[0]}function tr(e,t){return af(e)||e===36||e===95||e>127&&gg(e,t)}function Dr(e,t,a){return Hm(e)||e===36||(a===1?e===45||e===58:!1)||e>127&&bg(e,t)}function Ag(e,t,a){let o=Xi(e,0);if(!tr(o,t))return!1;for(let m=zt(o);mh,getStartPos:()=>h,getTokenEnd:()=>c,getTextPos:()=>c,getToken:()=>g,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>C.substring(y,c),getTokenValue:()=>x,hasUnicodeEscape:()=>(N&1024)!==0,hasExtendedUnicodeEscape:()=>(N&8)!==0,hasPrecedingLineBreak:()=>(N&1)!==0,hasPrecedingJSDocComment:()=>(N&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(N&32768)!==0,isIdentifier:()=>g===80||g>118,isReservedWord:()=>g>=83&&g<=118,isUnterminated:()=>(N&4)!==0,getCommentDirectives:()=>te,getNumericLiteralFlags:()=>N&25584,getTokenFlags:()=>N,reScanGreaterToken:lt,reScanAsteriskEqualsToken:sr,reScanSlashToken:mt,reScanTemplateToken:Bt,reScanTemplateHeadOrNoSubstitutionTemplate:an,scanJsxIdentifier:Mr,scanJsxAttributeValue:Gn,reScanJsxAttributeValue:De,reScanJsxToken:_r,reScanLessThanToken:hr,reScanHashToken:yr,reScanQuestionToken:Vn,reScanInvalidIdentifier:Ut,scanJsxToken:Wn,scanJsDocToken:J,scanJSDocCommentTextToken:gr,scan:ct,getText:Ke,clearCommentDirectives:st,setText:Pt,setScriptTarget:ut,setLanguageVariant:Lr,setScriptKind:br,setJSDocParsingMode:Jn,setOnError:Tt,resetTokenState:Yn,setTextPos:Yn,setSkipJsDocLeadingAsterisks:Ei,tryScan:Xe,lookAhead:Te,scanRange:me};return B.isDebugging&&Object.defineProperty(M,"__debugShowCurrentPositionInText",{get:()=>{let R=M.getText();return R.slice(0,M.getTokenFullStart())+"\u2551"+R.slice(M.getTokenFullStart())}}),M;function ie(R){return Xi(C,R)}function Ce(R){return R>=0&&R=0&&R=65&&be<=70)be+=32;else if(!(be>=48&&be<=57||be>=97&&be<=102))break;xe.push(be),c++,we=!1}return xe.length=W){K+=C.substring(xe,c),N|=4,G(A.Unterminated_string_literal);break}let Se=V(c);if(Se===Q){K+=C.substring(xe,c),c++;break}if(Se===92&&!R){K+=C.substring(xe,c),K+=Mt(3),xe=c;continue}if((Se===10||Se===13)&&!R){K+=C.substring(xe,c),N|=4,G(A.Unterminated_string_literal);break}c++}return K}function Or(R){let Q=V(c)===96;c++;let K=c,xe="",Se;for(;;){if(c>=W){xe+=C.substring(K,c),N|=4,G(A.Unterminated_template_literal),Se=Q?15:18;break}let we=V(c);if(we===96){xe+=C.substring(K,c),c++,Se=Q?15:18;break}if(we===36&&c+1=W)return G(A.Unexpected_end_of_text),"";let K=V(c);switch(c++,K){case 48:if(c>=W||!mi(V(c)))return"\0";case 49:case 50:case 51:c=55296&&xe<=56319&&c+6=56320&&We<=57343)return c=be,Se+String.fromCharCode(We)}return Se;case 120:for(;c1114111&&(R&&G(A.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,K,c-K),we=!0),c>=W?(R&&G(A.Unexpected_end_of_text),we=!0):V(c)===125?c++:(R&&G(A.Unterminated_Unicode_escape_sequence),we=!0),we?(N|=2048,C.substring(Q,c)):(N|=8,Id(Se))}function Ln(){if(c+5=0&&Dr(K,e)){R+=Fn(!0),Q=c;continue}if(K=Ln(),!(K>=0&&Dr(K,e)))break;N|=1024,R+=C.substring(Q,c),R+=Id(K),c+=6,Q=c}else break}return R+=C.substring(Q,c),R}function Qe(){let R=x.length;if(R>=2&&R<=12){let Q=x.charCodeAt(0);if(Q>=97&&Q<=122){let K=cg.get(x);if(K!==void 0)return g=K}}return g=80}function zn(R){let Q="",K=!1,xe=!1;for(;;){let Se=V(c);if(Se===95){N|=512,K?(K=!1,xe=!0):G(xe?A.Multiple_consecutive_numeric_separators_are_not_permitted:A.Numeric_separators_are_not_allowed_here,c,1),c++;continue}if(K=!0,!mi(Se)||Se-48>=R)break;Q+=C[c],c++,xe=!1}return V(c-1)===95&&G(A.Numeric_separators_are_not_allowed_here,c-1,1),Q}function $t(){return V(c)===110?(x+="n",N&384&&(x=Rb(x)+"n"),c++,10):(x=""+(N&128?parseInt(x.slice(2),2):N&256?parseInt(x.slice(2),8):+x),9)}function ct(){for(h=c,N=0;;){if(y=c,c>=W)return g=1;let R=ie(c);if(c===0&&R===35&&Xm(C,c)){if(c=$m(C,c),t)continue;return g=6}switch(R){case 10:case 13:if(N|=1,t){c++;continue}else return R===13&&c+1=0&&tr(Q,e))return x=Fn(!0)+vt(),g=Qe();let K=Ln();return K>=0&&tr(K,e)?(c+=6,N|=1024,x=String.fromCharCode(K)+vt(),g=Qe()):(G(A.Invalid_character),c++,g=0);case 35:if(c!==0&&C[c+1]==="!")return G(A.can_only_be_used_at_the_start_of_a_file,c,2),c++,g=0;let xe=ie(c+1);if(xe===92){c++;let be=Lt();if(be>=0&&tr(be,e))return x="#"+Fn(!0)+vt(),g=81;let We=Ln();if(We>=0&&tr(We,e))return c+=6,N|=1024,x="#"+String.fromCharCode(We)+vt(),g=81;c--}return tr(xe,e)?(c++,Jt(xe,e)):(x="#",G(A.Invalid_character,c++,zt(R))),g=81;case 65533:return G(A.File_appears_to_be_binary,0,0),c=W,g=8;default:let Se=Jt(R,e);if(Se)return g=Se;if(a_(R)){c+=zt(R);continue}else if(Pn(R)){N|=1,c+=zt(R);continue}let we=zt(R);return G(A.Invalid_character,c,we),c+=we,g=0}}}function at(){switch(fe){case 0:return!0;case 1:return!1}return ye!==3&&ye!==4?!0:fe===3?!1:yg.test(C.slice(h,c))}function Ut(){B.assert(g===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),c=y=h,N=0;let R=ie(c),Q=Jt(R,99);return Q?g=Q:(c+=zt(R),g)}function Jt(R,Q){let K=R;if(tr(K,Q)){for(c+=zt(K);c=W)return g=1;let Q=V(c);if(Q===60)return V(c+1)===47?(c+=2,g=31):(c++,g=30);if(Q===123)return c++,g=19;let K=0;for(;c0)break;za(Q)||(K=c)}c++}return x=C.substring(h,c),K===-1?13:12}function Mr(){if(wt(g)){for(;c=W)return g=1;for(let Q=V(c);c=0&&a_(V(c-1))&&!(c+1=W)return g=1;let R=ie(c);switch(c+=zt(R),R){case 9:case 11:case 12:case 32:for(;c=0&&tr(Q,e))return x=Fn(!0)+vt(),g=Qe();let K=Ln();return K>=0&&tr(K,e)?(c+=6,N|=1024,x=String.fromCharCode(K)+vt(),g=Qe()):(c++,g=0)}if(tr(R,e)){let Q=R;for(;c=0),c=R,h=R,y=R,g=0,x=void 0,N=0}function Ei(R){ue+=R?1:-1}}function Xi(e,t){return e.codePointAt(t)}function zt(e){return e>=65536?2:e===-1?0:1}function Cg(e){if(B.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,a=(e-65536)%1024+56320;return String.fromCharCode(t,a)}var Dg=String.fromCodePoint?e=>String.fromCodePoint(e):Cg;function Id(e){return Dg(e)}var Od=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Md=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Ld=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ba={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};Ba.Script_Extensions=Ba.Script;function Ar(e){return e.start+e.length}function Pg(e){return e.length===0}function cf(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Ng(e,t){return cf(e,t-e)}function e_(e){return cf(e.span.start,e.newLength)}function Ig(e){return Pg(e.span)&&e.newLength===0}function e1(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var f3=e1(cf(0,0),0);function lf(e,t){for(;e;){let a=t(e);if(a==="quit")return;if(a)return e;e=e.parent}}function gl(e){return(e.flags&16)===0}function Og(e,t){if(e===void 0||gl(e))return e;for(e=e.original;e;){if(gl(e))return!t||t(e)?e:void 0;e=e.original}}function ja(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function f_(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function In(e){return f_(e.escapedText)}function El(e){let t=Wm(e.escapedText);return t?qy(t,hi):void 0}function Rp(e){return e.valueDeclaration&&t2(e.valueDeclaration)?In(e.valueDeclaration.name):f_(e.escapedName)}function t1(e){let t=e.parent.parent;if(t){if(Rd(t))return rl(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return rl(t.declarationList.declarations[0]);break;case 244:let a=t.expression;switch(a.kind===226&&a.operatorToken.kind===64&&(a=a.left),a.kind){case 211:return a.name;case 212:let o=a.argumentExpression;if(Ze(o))return o}break;case 217:return rl(t.expression);case 256:{if(Rd(t.statement)||d1(t.statement))return rl(t.statement);break}}}}function rl(e){let t=n1(e);return t&&Ze(t)?t:void 0}function Mg(e){return e.name||t1(e)}function Lg(e){return!!e.name}function uf(e){switch(e.kind){case 80:return e;case 348:case 341:{let{name:a}=e;if(a.kind===166)return a.right;break}case 213:case 226:{let a=e;switch(gf(a)){case 1:case 4:case 5:case 3:return bf(a.left);case 7:case 8:case 9:return a.arguments[1];default:return}}case 346:return Mg(e);case 340:return t1(e);case 277:{let{expression:a}=e;return Ze(a)?a:void 0}case 212:let t=e;if(T1(t))return t.argumentExpression}return e.name}function n1(e){if(e!==void 0)return uf(e)||(Lf(e)||Jf(e)||xl(e)?Jg(e):void 0)}function Jg(e){if(e.parent){if(ah(e.parent)||Y1(e.parent))return e.parent.name;if(ea(e.parent)&&e===e.parent.right){if(Ze(e.parent.left))return e.parent.left;if(A1(e.parent.left))return bf(e.parent.left)}else if(jf(e.parent)&&Ze(e.parent.name))return e.parent.name}else return}function pf(e){if(sb(e))return Xr(e.modifiers,Dl)}function r1(e){if(S_(e,98303))return Xr(e.modifiers,i2)}function i1(e,t){if(e.name)if(Ze(e.name)){let a=e.name.escapedText;return d_(e.parent,t).filter(o=>Wp(o)&&Ze(o.name)&&o.name.escapedText===a)}else{let a=e.parent.parameters.indexOf(e);B.assert(a>-1,"Parameters should always be in their parents' parameter list");let o=d_(e.parent,t).filter(Wp);if(auh(o)&&o.typeParameters.some(m=>m.name.escapedText===a))}function Ug(e){return a1(e,!1)}function Bg(e){return a1(e,!0)}function qg(e){return Ti(e,S6)}function Fg(e){return $g(e,I6)}function zg(e){return Ti(e,w6,!0)}function Vg(e){return Ti(e,k6,!0)}function Wg(e){return Ti(e,E6,!0)}function Gg(e){return Ti(e,A6,!0)}function Yg(e){return Ti(e,C6,!0)}function Hg(e){return Ti(e,P6,!0)}function Xg(e){let t=Ti(e,Vf);if(t&&t.typeExpression&&t.typeExpression.type)return t}function d_(e,t){var a;if(!vf(e))return bt;let o=(a=e.jsDoc)==null?void 0:a.jsDocCache;if(o===void 0||t){let m=V2(e,t);B.assert(m.length<2||m[0]!==m[1]),o=Cm(m,v=>lh(v)?v.tags:v),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=o)}return o}function s1(e){return d_(e,!1)}function Ti(e,t,a){return Em(d_(e,a),t)}function $g(e,t){return s1(e).filter(t)}function Up(e){return e.kind===80||e.kind===81}function Qg(e){return dr(e)&&!!(e.flags&64)}function Kg(e){return $a(e)&&!!(e.flags&64)}function Jd(e){return Mf(e)&&!!(e.flags&64)}function _1(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function ff(e){return Wf(e,8)}function Zg(e){return fl(e)&&!!(e.flags&64)}function df(e){return e>=166}function mf(e){return e>=0&&e<=165}function o1(e){return mf(e.kind)}function yi(e){return Nr(e,"pos")&&Nr(e,"end")}function e2(e){return 9<=e&&e<=15}function jd(e){return 15<=e&&e<=18}function qa(e){var t;return Ze(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function c1(e){var t;return vi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function t2(e){return(Ya(e)||_2(e))&&vi(e.name)}function Hr(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function n2(e){return!!(k1(e)&31)}function r2(e){return n2(e)||e===126||e===164||e===129}function i2(e){return Hr(e.kind)}function l1(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function hf(e){return!!e&&s2(e.kind)}function a2(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function s2(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return a2(e)}}function xi(e){return e&&(e.kind===263||e.kind===231)}function _2(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function o2(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function u1(e){return yb(e.kind)}function c2(e){if(e){let t=e.kind;return t===207||t===206}return!1}function l2(e){let t=e.kind;return t===209||t===210}function u2(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Va(e){return p1(ff(e).kind)}function p1(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function p2(e){return f1(ff(e).kind)}function f1(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return p1(e)}}function d1(e){return f2(ff(e).kind)}function f2(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 356:case 355:case 238:return!0;default:return f1(e)}}function d2(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===346||e===338||e===348||e===202}function m1(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function h1(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===353}function Rd(e){return e.kind===168?e.parent&&e.parent.kind!==345||ta(e):d2(e.kind)}function m2(e){let t=e.kind;return h1(t)||m1(t)||h2(e)}function h2(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!N2(e)}function y2(e){let t=e.kind;return h1(t)||m1(t)||t===241}function y1(e){return e.kind>=309&&e.kind<=351}function g2(e){return e.kind===320||e.kind===319||e.kind===321||T2(e)||b2(e)||x6(e)||Ol(e)}function b2(e){return e.kind>=327&&e.kind<=351}function il(e){return e.kind===178}function al(e){return e.kind===177}function $i(e){if(!vf(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function v2(e){return!!e.initializer}function Al(e){return e.kind===11||e.kind===15}function T2(e){return e.kind===324||e.kind===325||e.kind===326}function Ud(e){return(e.flags&33554432)!==0}var d3=x2();function x2(){var e="";let t=a=>e+=a;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(a,o)=>t(a),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&za(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Ga,decreaseIndent:Ga,clear:()=>e=""}}function S2(e,t){let a=e.entries();for(let[o,m]of a){let v=t(m,o);if(v)return v}}function w2(e){return e.end-e.pos}function g1(e){return k2(e),(e.flags&1048576)!==0}function k2(e){e.flags&2097152||(((e.flags&262144)!==0||Ht(e,g1))&&(e.flags|=1048576),e.flags|=2097152)}function gi(e){for(;e&&e.kind!==307;)e=e.parent;return e}function Qi(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Bp(e){return!Qi(e)}function bl(e,t,a){if(Qi(e))return e.pos;if(y1(e)||e.kind===12)return Pr((t??gi(e)).text,e.pos,!1,!0);if(a&&$i(e))return bl(e.jsDoc[0],t);if(e.kind===352){t??(t=gi(e));let o=$p(ph(e,t));if(o)return bl(o,t,a)}return Pr((t??gi(e)).text,e.pos,!1,!1,I2(e))}function Bd(e,t,a=!1){return s_(e.text,t,a)}function E2(e){return!!lf(e,_h)}function s_(e,t,a=!1){if(Qi(t))return"";let o=e.substring(a?t.pos:Pr(e,t.pos),t.end);return E2(t)&&(o=o.split(/\r\n|\n|\r/).map(m=>m.replace(/^\s*\*/,"").trimStart()).join(` -`)),o}function Wa(e){let t=e.emitNode;return t&&t.flags||0}function A2(e,t,a){B.assertGreaterThanOrEqual(t,0),B.assertGreaterThanOrEqual(a,0),B.assertLessThanOrEqual(t,e.length),B.assertLessThanOrEqual(t+a,e.length)}function pl(e){return e.kind===244&&e.expression.kind===11}function yf(e){return!!(Wa(e)&2097152)}function qd(e){return yf(e)&&Rf(e)}function C2(e){return Ze(e.name)&&!e.initializer}function Fd(e){return yf(e)&&Qa(e)&&Hp(e.declarationList.declarations,C2)}function D2(e,t){let a=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Xp(Eg(t,e.pos),jp(t,e.pos)):jp(t,e.pos);return Xr(a,o=>o.end<=e.end&&t.charCodeAt(o.pos+1)===42&&t.charCodeAt(o.pos+2)===42&&t.charCodeAt(o.pos+3)!==47)}function P2(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function N2(e){return e&&e.kind===241&&hf(e.parent)}function zd(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function ta(e){return!!e&&!!(e.flags&524288)}function I2(e){return!!e&&!!(e.flags&16777216)}function O2(e){for(;vl(e,!0);)e=e.right;return e}function M2(e){return Ze(e)&&e.escapedText==="exports"}function L2(e){return Ze(e)&&e.escapedText==="module"}function b1(e){return(dr(e)||v1(e))&&L2(e.expression)&&h_(e)==="exports"}function gf(e){let t=j2(e);return t===5||ta(e)?t:0}function J2(e){return r_(e.arguments)===3&&dr(e.expression)&&Ze(e.expression.expression)&&In(e.expression.expression)==="Object"&&In(e.expression.name)==="defineProperty"&&Cl(e.arguments[1])&&m_(e.arguments[0],!0)}function v1(e){return $a(e)&&Cl(e.argumentExpression)}function x_(e,t){return dr(e)&&(!t&&e.expression.kind===110||Ze(e.name)&&m_(e.expression,!0))||T1(e,t)}function T1(e,t){return v1(e)&&(!t&&e.expression.kind===110||Sf(e.expression)||x_(e.expression,!0))}function m_(e,t){return Sf(e)||x_(e,t)}function j2(e){if(Mf(e)){if(!J2(e))return 0;let t=e.arguments[0];return M2(t)||b1(t)?8:x_(t)&&h_(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!A1(e.left)||R2(O2(e))?0:m_(e.left.expression,!0)&&h_(e.left)==="prototype"&&Of(B2(e))?6:U2(e.left)}function R2(e){return h6(e)&&na(e.expression)&&e.expression.text==="0"}function bf(e){if(dr(e))return e.name;let t=Tf(e.argumentExpression);return na(t)||Al(t)?t:e}function h_(e){let t=bf(e);if(t){if(Ze(t))return t.escapedText;if(Al(t)||na(t))return ja(t.text)}}function U2(e){if(e.expression.kind===110)return 4;if(b1(e))return 2;if(m_(e.expression,!0)){if(mb(e.expression))return 3;let t=e;for(;!Ze(t.expression);)t=t.expression;let a=t.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&h_(t)==="exports")&&x_(e))return 1;if(m_(e,!0)||$a(e)&&eb(e))return 5}return 0}function B2(e){for(;ea(e.right);)e=e.right;return e.right}function q2(e){return Nl(e)&&ea(e.expression)&&gf(e.expression)!==0&&ea(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function F2(e){switch(e.kind){case 243:let t=qp(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function qp(e){return Qa(e)?$p(e.declarationList.declarations):void 0}function z2(e){return wi(e)&&e.body&&e.body.kind===267?e.body:void 0}function vf(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function V2(e,t){let a;P2(e)&&v2(e)&&$i(e.initializer)&&(a=Nn(a,Vd(e,e.initializer.jsDoc)));let o=e;for(;o&&o.parent;){if($i(o)&&(a=Nn(a,Vd(e,o.jsDoc))),o.kind===169){a=Nn(a,(t?Rg:jg)(o));break}if(o.kind===168){a=Nn(a,(t?Bg:Ug)(o));break}o=G2(o)}return a||bt}function Vd(e,t){let a=Iy(t);return Cm(t,o=>{if(o===a){let m=Xr(o.tags,v=>W2(e,v));return o.tags===m?[o]:m}else return Xr(o.tags,D6)})}function W2(e,t){return!(Vf(t)||O6(t))||!t.parent||!lh(t.parent)||!Pl(t.parent.parent)||t.parent.parent===e}function G2(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||z2(t)||vl(e))return t;if(t.parent&&(qp(t.parent)===e||vl(t)))return t.parent;if(t.parent&&t.parent.parent&&(qp(t.parent.parent)||F2(t.parent.parent)===e||q2(t.parent.parent)))return t.parent.parent}function Tf(e,t){return Wf(e,t?-2147483647:1)}function Y2(e){let t=H2(e);if(t&&ta(e)){let a=qg(e);if(a)return a.class}return t}function H2(e){let t=xf(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function X2(e){if(ta(e))return Fg(e).map(t=>t.class);{let t=xf(e.heritageClauses,119);return t==null?void 0:t.types}}function $2(e){return w_(e)?Q2(e)||bt:xi(e)&&Xp(Mp(Y2(e)),X2(e))||bt}function Q2(e){let t=xf(e.heritageClauses,96);return t?t.types:void 0}function xf(e,t){if(e){for(let a of e)if(a.token===t)return a}}function hi(e){return 83<=e&&e<=165}function K2(e){return 19<=e&&e<=79}function wp(e){return hi(e)||K2(e)}function Cl(e){return Al(e)||na(e)}function Z2(e){return $1(e)&&(e.operator===40||e.operator===41)&&na(e.operand)}function eb(e){if(!(e.kind===167||e.kind===212))return!1;let t=$a(e)?Tf(e.argumentExpression):e.expression;return!Cl(t)&&!Z2(t)}function tb(e){return Up(e)?In(e):ih(e)?Vb(e):e.text}function Ra(e){return y_(e.pos)||y_(e.end)}function kp(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Ep(e){return!!((e.templateFlags||0)&2048)}function nb(e){return e&&!!(O1(e)?Ep(e):Ep(e.head)||nn(e.templateSpans,t=>Ep(t.literal)))}var m3=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));var h3=new Map(Object.entries({'"':""","'":"'"}));function rb(e){return!!e&&e.kind===80&&ib(e)}function ib(e){return e.escapedText==="this"}function S_(e,t){return!!_b(e,t)}function ab(e){return S_(e,256)}function sb(e){return S_(e,32768)}function _b(e,t){return cb(e)&t}function ob(e,t,a){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=w1(e)|536870912),a||t&&ta(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=x1(e)|268435456),S1(e.modifierFlagsCache)):lb(e.modifierFlagsCache))}function cb(e){return ob(e,!1)}function x1(e){let t=0;return e.parent&&!g_(e)&&(ta(e)&&(zg(e)&&(t|=8388608),Vg(e)&&(t|=16777216),Wg(e)&&(t|=33554432),Gg(e)&&(t|=67108864),Yg(e)&&(t|=134217728)),Hg(e)&&(t|=65536)),t}function lb(e){return e&65535}function S1(e){return e&131071|(e&260046848)>>>23}function ub(e){return S1(x1(e))}function pb(e){return w1(e)|ub(e)}function w1(e){let t=Ml(e)?Bn(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Bn(e){let t=0;if(e)for(let a of e)t|=k1(a.kind);return t}function k1(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function fb(e){return e===76||e===77||e===78}function E1(e){return e>=64&&e<=79}function vl(e,t){return ea(e)&&(t?e.operatorToken.kind===64:E1(e.operatorToken.kind))&&Va(e.left)}function Sf(e){return e.kind===80||db(e)}function db(e){return dr(e)&&Ze(e.name)&&Sf(e.expression)}function mb(e){return x_(e)&&h_(e)==="prototype"}function Ap(e){return e.flags&3899393?e.objectFlags:0}function hb(e){let t;return Ht(e,a=>{Bp(a)&&(t=a)},a=>{for(let o=a.length-1;o>=0;o--)if(Bp(a[o])){t=a[o];break}}),t}function yb(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function A1(e){return e.kind===211||e.kind===212}function gb(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function bb(e,t){this.flags=t,(B.isDebugging||ll)&&(this.checker=e)}function vb(e,t){this.flags=t,B.isDebugging&&(this.checker=e)}function Cp(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Tb(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function xb(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Sb(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}var At={getNodeConstructor:()=>Cp,getTokenConstructor:()=>Tb,getIdentifierConstructor:()=>xb,getPrivateIdentifierConstructor:()=>Cp,getSourceFileConstructor:()=>Cp,getSymbolConstructor:()=>gb,getTypeConstructor:()=>bb,getSignatureConstructor:()=>vb,getSourceMapSourceConstructor:()=>Sb},wb=[];function kb(e){Object.assign(At,e),qn(wb,t=>t(At))}function Eb(e,t){return e.replace(/\{(\d+)\}/g,(a,o)=>""+B.checkDefined(t[+o]))}var Wd;function Ab(e){return Wd&&Wd[e.key]||e.message}function La(e,t,a,o,m,...v){a+o>t.length&&(o=t.length-a),A2(t,a,o);let E=Ab(m);return nn(v)&&(E=Eb(E,v)),{file:void 0,start:a,length:o,messageText:E,category:m.category,code:m.code,reportsUnnecessary:m.reportsUnnecessary,fileName:e}}function Cb(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function C1(e,t){let a=t.fileName||"",o=t.text.length;B.assertEqual(e.fileName,a),B.assertLessThanOrEqual(e.start,o),B.assertLessThanOrEqual(e.start+e.length,o);let m={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){m.relatedInformation=[];for(let v of e.relatedInformation)Cb(v)&&v.fileName===a?(B.assertLessThanOrEqual(v.start,o),B.assertLessThanOrEqual(v.start+v.length,o),m.relatedInformation.push(C1(v,t))):m.relatedInformation.push(v)}return m}function Wi(e,t){let a=[];for(let o of e)a.push(C1(o,t));return a}function Gd(e){return e===4||e===2||e===1||e===6?1:0}var ot={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:ot.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(ot.module.computeValue(e)){case 1:t=2;break;case 100:case 101:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(e.moduleDetection!==void 0)return e.moduleDetection;let t=ot.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(ot.module.computeValue(e)){case 100:case 101:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:ot.esModuleInterop.computeValue(e)||ot.module.computeValue(e)===4||ot.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=ot.moduleResolution.computeValue(e);if(!Yd(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=ot.moduleResolution.computeValue(e);if(!Yd(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:ot.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||ot.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&ot.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?ot.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Yr(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Yr(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Yr(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Yr(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Yr(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Yr(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Yr(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Yr(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Yr(e,"useUnknownInCatchVariables")}};var y3=ot.allowImportingTsExtensions.computeValue,g3=ot.target.computeValue,b3=ot.module.computeValue,v3=ot.moduleResolution.computeValue,T3=ot.moduleDetection.computeValue,x3=ot.isolatedModules.computeValue,S3=ot.esModuleInterop.computeValue,w3=ot.allowSyntheticDefaultImports.computeValue,k3=ot.resolvePackageJsonExports.computeValue,E3=ot.resolvePackageJsonImports.computeValue,A3=ot.resolveJsonModule.computeValue,C3=ot.declaration.computeValue,D3=ot.preserveConstEnums.computeValue,P3=ot.incremental.computeValue,N3=ot.declarationMap.computeValue,I3=ot.allowJs.computeValue,O3=ot.useDefineForClassFields.computeValue;function Yd(e){return e>=3&&e<=99||e===100}function Yr(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function Db(e){return S2(targetOptionDeclaration.type,(t,a)=>t===e?a:void 0)}var Pb=["node_modules","bower_components","jspm_packages"],D1=`(?!(${Pb.join("|")})(/|$))`,Nb={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${D1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>P1(e,Nb.singleAsteriskRegexFragment)},Ib={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${D1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>P1(e,Ib.singleAsteriskRegexFragment)};function P1(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function Ob(e,t){return t||Mb(e)||3}function Mb(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var N1=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],M3=Am(N1),L3=[...N1,[".json"]];var Lb=[[".js",".jsx"],[".mjs"],[".cjs"]],J3=Am(Lb),Jb=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],j3=[...Jb,[".json"]],jb=[".d.ts",".d.cts",".d.mts"];function y_(e){return!(e>=0)}function sl(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),B.assert(e.relatedInformation!==bt,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Rb(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let W=e.length-1,h=0;for(;e.charCodeAt(h)===48;)h++;return e.slice(h,W)||"0"}let a=2,o=e.length-1,m=(o-a)*t,v=new Uint16Array((m>>>4)+(m&15?1:0));for(let W=o-1,h=0;W>=a;W--,h+=t){let y=h>>>4,g=e.charCodeAt(W),N=(g<=57?g-48:10+g-(g<=70?65:97))<<(h&15);v[y]|=N;let te=N>>>16;te&&(v[y+1]|=te)}let E="",C=v.length-1,c=!0;for(;c;){let W=0;c=!1;for(let h=C;h>=0;h--){let y=W<<16|v[h],g=y/10|0;v[h]=g,W=y-g*10,g&&!c&&(C=h,c=!0)}E=W+E}return E}function Ub({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Fp(e,t){return e.pos=t,e}function Bb(e,t){return e.end=t,e}function bi(e,t,a){return Bb(Fp(e,t),a)}function Hd(e,t,a){return bi(e,t,t+a)}function wf(e,t){return e&&t&&(e.parent=t),e}function qb(e,t){if(!e)return e;return Tm(e,y1(e)?a:m),e;function a(v,E){if(t&&v.parent===E)return"skip";wf(v,E)}function o(v){if($i(v))for(let E of v.jsDoc)a(E,v),Tm(E,a)}function m(v,E){return a(v,E)||o(v)}}function Fb(e){return!!(e.flags&262144&&e.isThisType)}function zb(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function Vb(e){return`${In(e.namespace)}:${In(e.name)}`}var R3=String.prototype.replace;var zp=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],U3=new Set(zp),Wb=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),B3=new Set([...zp,...zp.map(e=>`node:${e}`),...Wb]);function Gb(){let e,t,a,o,m;return{createBaseSourceFileNode:v,createBaseIdentifierNode:E,createBasePrivateIdentifierNode:C,createBaseTokenNode:c,createBaseNode:W};function v(h){return new(m||(m=At.getSourceFileConstructor()))(h,-1,-1)}function E(h){return new(a||(a=At.getIdentifierConstructor()))(h,-1,-1)}function C(h){return new(o||(o=At.getPrivateIdentifierConstructor()))(h,-1,-1)}function c(h){return new(t||(t=At.getTokenConstructor()))(h,-1,-1)}function W(h){return new(e||(e=At.getNodeConstructor()))(h,-1,-1)}}var Yb={getParenthesizeLeftSideOfBinaryForOperator:e=>gt,getParenthesizeRightSideOfBinaryForOperator:e=>gt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,a)=>a,parenthesizeExpressionOfComputedPropertyName:gt,parenthesizeConditionOfConditionalExpression:gt,parenthesizeBranchOfConditionalExpression:gt,parenthesizeExpressionOfExportDefault:gt,parenthesizeExpressionOfNew:e=>Cr(e,Va),parenthesizeLeftSideOfAccess:e=>Cr(e,Va),parenthesizeOperandOfPostfixUnary:e=>Cr(e,Va),parenthesizeOperandOfPrefixUnary:e=>Cr(e,p2),parenthesizeExpressionsOfCommaDelimitedList:e=>Cr(e,yi),parenthesizeExpressionForDisallowedComma:gt,parenthesizeExpressionOfExpressionStatement:gt,parenthesizeConciseBodyOfArrowFunction:gt,parenthesizeCheckTypeOfConditionalType:gt,parenthesizeExtendsTypeOfConditionalType:gt,parenthesizeConstituentTypesOfUnionType:e=>Cr(e,yi),parenthesizeConstituentTypeOfUnionType:gt,parenthesizeConstituentTypesOfIntersectionType:e=>Cr(e,yi),parenthesizeConstituentTypeOfIntersectionType:gt,parenthesizeOperandOfTypeOperator:gt,parenthesizeOperandOfReadonlyTypeOperator:gt,parenthesizeNonArrayTypeOfPostfixType:gt,parenthesizeElementTypesOfTupleType:e=>Cr(e,yi),parenthesizeElementTypeOfTupleType:gt,parenthesizeTypeOfOptionalType:gt,parenthesizeTypeArguments:e=>e&&Cr(e,yi),parenthesizeLeadingTypeArgument:gt},_l=0;var Hb=[];function kf(e,t){let a=e&8?gt:Zb,o=kd(()=>e&1?Yb:createParenthesizerRules(ye)),m=kd(()=>e&2?nullNodeConverters:createNodeConverters(ye)),v=er(n=>(i,s)=>fa(i,n,s)),E=er(n=>i=>Br(n,i)),C=er(n=>i=>ii(i,n)),c=er(n=>()=>Ko(n)),W=er(n=>i=>Ps(n,i)),h=er(n=>(i,s)=>wu(n,i,s)),y=er(n=>(i,s)=>Zo(n,i,s)),g=er(n=>(i,s)=>Su(n,i,s)),x=er(n=>(i,s)=>yc(n,i,s)),N=er(n=>(i,s,l)=>Lu(n,i,s,l)),te=er(n=>(i,s,l)=>gc(n,i,s,l)),ue=er(n=>(i,s,l,f)=>Ju(n,i,s,l,f)),ye={get parenthesizer(){return o()},get converters(){return m()},baseFactory:t,flags:e,createNodeArray:fe,createNumericLiteral:V,createBigIntLiteral:oe,createStringLiteral:dt,createStringLiteralFromNode:rr,createRegularExpressionLiteral:vn,createLiteralLikeNode:ir,createIdentifier:Ge,createTempVariable:ar,createLoopVariable:Or,createUniqueName:Mt,getGeneratedNameForNode:Fn,createPrivateIdentifier:Lt,createUniquePrivateName:Qe,getGeneratedPrivateNameForNode:zn,createToken:ct,createSuper:at,createThis:Ut,createNull:Jt,createTrue:lt,createFalse:sr,createModifier:mt,createModifiersFromModifierFlags:xn,createQualifiedName:yt,updateQualifiedName:ln,createComputedPropertyName:nt,updateComputedPropertyName:Bt,createTypeParameterDeclaration:an,updateTypeParameterDeclaration:_r,createParameterDeclaration:hr,updateParameterDeclaration:yr,createDecorator:Vn,updateDecorator:Wn,createPropertySignature:Mr,updatePropertySignature:Gn,createPropertyDeclaration:gr,updatePropertyDeclaration:J,createMethodSignature:_e,updateMethodSignature:me,createMethodDeclaration:Te,updateMethodDeclaration:Xe,createConstructorDeclaration:ut,updateConstructorDeclaration:Lr,createGetAccessorDeclaration:Jn,updateGetAccessorDeclaration:Yn,createSetAccessorDeclaration:R,updateSetAccessorDeclaration:Q,createCallSignature:xe,updateCallSignature:Se,createConstructSignature:we,updateConstructSignature:be,createIndexSignature:We,updateIndexSignature:et,createClassStaticBlockDeclaration:st,updateClassStaticBlockDeclaration:Pt,createTemplateLiteralTypeSpan:Ye,updateTemplateLiteralTypeSpan:Ee,createKeywordTypeNode:Sn,createTypePredicateNode:rt,updateTypePredicateNode:un,createTypeReferenceNode:ti,updateTypeReferenceNode:L,createFunctionTypeNode:qe,updateFunctionTypeNode:u,createConstructorTypeNode:Me,updateConstructorTypeNode:sn,createTypeQueryNode:Nt,updateTypeQueryNode:kt,createTypeLiteralNode:It,updateTypeLiteralNode:qt,createArrayTypeNode:Hn,updateArrayTypeNode:Ai,createTupleTypeNode:pn,updateTupleTypeNode:Y,createNamedTupleMember:pe,updateNamedTupleMember:ze,createOptionalTypeNode:ve,updateOptionalTypeNode:j,createRestTypeNode:ht,updateRestTypeNode:xt,createUnionTypeNode:ql,updateUnionTypeNode:D_,createIntersectionTypeNode:Jr,updateIntersectionTypeNode:Le,createConditionalTypeNode:ft,updateConditionalTypeNode:Fl,createInferTypeNode:Xn,updateInferTypeNode:zl,createImportTypeNode:or,updateImportTypeNode:_a,createParenthesizedType:Qt,updateParenthesizedType:Ct,createThisTypeNode:P,createTypeOperatorNode:Gt,updateTypeOperatorNode:jr,createIndexedAccessTypeNode:cr,updateIndexedAccessTypeNode:es,createMappedTypeNode:St,updateMappedTypeNode:Rt,createLiteralTypeNode:ni,updateLiteralTypeNode:vr,createTemplateLiteralType:Wt,updateTemplateLiteralType:Vl,createObjectBindingPattern:P_,updateObjectBindingPattern:Wl,createArrayBindingPattern:Rr,updateArrayBindingPattern:Gl,createBindingElement:oa,updateBindingElement:ri,createArrayLiteralExpression:ts,updateArrayLiteralExpression:N_,createObjectLiteralExpression:Ci,updateObjectLiteralExpression:Yl,createPropertyAccessExpression:e&4?(n,i)=>setEmitFlags(lr(n,i),262144):lr,updatePropertyAccessExpression:Hl,createPropertyAccessChain:e&4?(n,i,s)=>setEmitFlags(Di(n,i,s),262144):Di,updatePropertyAccessChain:ca,createElementAccessExpression:Pi,updateElementAccessExpression:Xl,createElementAccessChain:M_,updateElementAccessChain:ns,createCallExpression:Ni,updateCallExpression:la,createCallChain:rs,updateCallChain:J_,createNewExpression:wn,updateNewExpression:is,createTaggedTemplateExpression:ua,updateTaggedTemplateExpression:j_,createTypeAssertion:R_,updateTypeAssertion:U_,createParenthesizedExpression:as,updateParenthesizedExpression:B_,createFunctionExpression:ss,updateFunctionExpression:q_,createArrowFunction:_s,updateArrowFunction:F_,createDeleteExpression:z_,updateDeleteExpression:V_,createTypeOfExpression:pa,updateTypeOfExpression:dn,createVoidExpression:os,updateVoidExpression:ur,createAwaitExpression:W_,updateAwaitExpression:Ur,createPrefixUnaryExpression:Br,updatePrefixUnaryExpression:$l,createPostfixUnaryExpression:ii,updatePostfixUnaryExpression:Ql,createBinaryExpression:fa,updateBinaryExpression:Kl,createConditionalExpression:Y_,updateConditionalExpression:H_,createTemplateExpression:X_,updateTemplateExpression:$n,createTemplateHead:Q_,createTemplateMiddle:da,createTemplateTail:cs,createNoSubstitutionTemplateLiteral:eu,createTemplateLiteralLikeNode:si,createYieldExpression:ls,updateYieldExpression:tu,createSpreadElement:K_,updateSpreadElement:nu,createClassExpression:Z_,updateClassExpression:us,createOmittedExpression:ps,createExpressionWithTypeArguments:eo,updateExpressionWithTypeArguments:to,createAsExpression:mn,updateAsExpression:ma,createNonNullExpression:no,updateNonNullExpression:ro,createSatisfiesExpression:fs,updateSatisfiesExpression:io,createNonNullChain:ds,updateNonNullChain:jn,createMetaProperty:ao,updateMetaProperty:ms,createTemplateSpan:Qn,updateTemplateSpan:ha,createSemicolonClassElement:so,createBlock:qr,updateBlock:ru,createVariableStatement:hs,updateVariableStatement:_o,createEmptyStatement:oo,createExpressionStatement:Oi,updateExpressionStatement:co,createIfStatement:lo,updateIfStatement:uo,createDoStatement:po,updateDoStatement:fo,createWhileStatement:mo,updateWhileStatement:iu,createForStatement:ho,updateForStatement:yo,createForInStatement:ys,updateForInStatement:au,createForOfStatement:go,updateForOfStatement:su,createContinueStatement:bo,updateContinueStatement:_u,createBreakStatement:gs,updateBreakStatement:vo,createReturnStatement:bs,updateReturnStatement:ou,createWithStatement:vs,updateWithStatement:To,createSwitchStatement:Ts,updateSwitchStatement:_i,createLabeledStatement:xo,updateLabeledStatement:So,createThrowStatement:wo,updateThrowStatement:cu,createTryStatement:ko,updateTryStatement:lu,createDebuggerStatement:Eo,createVariableDeclaration:ya,updateVariableDeclaration:Ao,createVariableDeclarationList:xs,updateVariableDeclarationList:uu,createFunctionDeclaration:Co,updateFunctionDeclaration:Ss,createClassDeclaration:Do,updateClassDeclaration:ga,createInterfaceDeclaration:Po,updateInterfaceDeclaration:No,createTypeAliasDeclaration:_t,updateTypeAliasDeclaration:Tr,createEnumDeclaration:ws,updateEnumDeclaration:xr,createModuleDeclaration:Io,updateModuleDeclaration:Et,createModuleBlock:Sr,updateModuleBlock:Ft,createCaseBlock:Oo,updateCaseBlock:fu,createNamespaceExportDeclaration:Mo,updateNamespaceExportDeclaration:Lo,createImportEqualsDeclaration:Jo,updateImportEqualsDeclaration:jo,createImportDeclaration:Ro,updateImportDeclaration:Uo,createImportClause:Bo,updateImportClause:qo,createAssertClause:ks,updateAssertClause:mu,createAssertEntry:Mi,updateAssertEntry:Fo,createImportTypeAssertionContainer:Es,updateImportTypeAssertionContainer:zo,createImportAttributes:Vo,updateImportAttributes:As,createImportAttribute:Wo,updateImportAttribute:Go,createNamespaceImport:Yo,updateNamespaceImport:hu,createNamespaceExport:Ho,updateNamespaceExport:yu,createNamedImports:Xo,updateNamedImports:$o,createImportSpecifier:wr,updateImportSpecifier:gu,createExportAssignment:ba,updateExportAssignment:Li,createExportDeclaration:va,updateExportDeclaration:Qo,createNamedExports:Cs,updateNamedExports:bu,createExportSpecifier:Ta,updateExportSpecifier:vu,createMissingDeclaration:Tu,createExternalModuleReference:Ds,updateExternalModuleReference:xu,get createJSDocAllType(){return c(312)},get createJSDocUnknownType(){return c(313)},get createJSDocNonNullableType(){return y(315)},get updateJSDocNonNullableType(){return g(315)},get createJSDocNullableType(){return y(314)},get updateJSDocNullableType(){return g(314)},get createJSDocOptionalType(){return W(316)},get updateJSDocOptionalType(){return h(316)},get createJSDocVariadicType(){return W(318)},get updateJSDocVariadicType(){return h(318)},get createJSDocNamepathType(){return W(319)},get updateJSDocNamepathType(){return h(319)},createJSDocFunctionType:ec,updateJSDocFunctionType:ku,createJSDocTypeLiteral:tc,updateJSDocTypeLiteral:Eu,createJSDocTypeExpression:nc,updateJSDocTypeExpression:Ns,createJSDocSignature:rc,updateJSDocSignature:Au,createJSDocTemplateTag:Is,updateJSDocTemplateTag:ic,createJSDocTypedefTag:xa,updateJSDocTypedefTag:Cu,createJSDocParameterTag:Os,updateJSDocParameterTag:Du,createJSDocPropertyTag:ac,updateJSDocPropertyTag:sc,createJSDocCallbackTag:_c,updateJSDocCallbackTag:oc,createJSDocOverloadTag:cc,updateJSDocOverloadTag:Ms,createJSDocAugmentsTag:Ls,updateJSDocAugmentsTag:ji,createJSDocImplementsTag:lc,updateJSDocImplementsTag:Mu,createJSDocSeeTag:zr,updateJSDocSeeTag:Sa,createJSDocImportTag:Tc,updateJSDocImportTag:xc,createJSDocNameReference:uc,updateJSDocNameReference:Pu,createJSDocMemberName:pc,updateJSDocMemberName:Nu,createJSDocLink:fc,updateJSDocLink:dc,createJSDocLinkCode:mc,updateJSDocLinkCode:Iu,createJSDocLinkPlain:hc,updateJSDocLinkPlain:Ou,get createJSDocTypeTag(){return te(344)},get updateJSDocTypeTag(){return ue(344)},get createJSDocReturnTag(){return te(342)},get updateJSDocReturnTag(){return ue(342)},get createJSDocThisTag(){return te(343)},get updateJSDocThisTag(){return ue(343)},get createJSDocAuthorTag(){return x(330)},get updateJSDocAuthorTag(){return N(330)},get createJSDocClassTag(){return x(332)},get updateJSDocClassTag(){return N(332)},get createJSDocPublicTag(){return x(333)},get updateJSDocPublicTag(){return N(333)},get createJSDocPrivateTag(){return x(334)},get updateJSDocPrivateTag(){return N(334)},get createJSDocProtectedTag(){return x(335)},get updateJSDocProtectedTag(){return N(335)},get createJSDocReadonlyTag(){return x(336)},get updateJSDocReadonlyTag(){return N(336)},get createJSDocOverrideTag(){return x(337)},get updateJSDocOverrideTag(){return N(337)},get createJSDocDeprecatedTag(){return x(331)},get updateJSDocDeprecatedTag(){return N(331)},get createJSDocThrowsTag(){return te(349)},get updateJSDocThrowsTag(){return ue(349)},get createJSDocSatisfiesTag(){return te(350)},get updateJSDocSatisfiesTag(){return ue(350)},createJSDocEnumTag:vc,updateJSDocEnumTag:Js,createJSDocUnknownTag:bc,updateJSDocUnknownTag:ju,createJSDocText:js,updateJSDocText:Ru,createJSDocComment:Ri,updateJSDocComment:Sc,createJsxElement:wc,updateJsxElement:Uu,createJsxSelfClosingElement:kc,updateJsxSelfClosingElement:Rs,createJsxOpeningElement:Us,updateJsxOpeningElement:Ec,createJsxClosingElement:wa,updateJsxClosingElement:Kt,createJsxFragment:Bs,createJsxText:ka,updateJsxText:Cc,createJsxOpeningFragment:Bu,createJsxJsxClosingFragment:qu,updateJsxFragment:Ac,createJsxAttribute:Dc,updateJsxAttribute:Ea,createJsxAttributes:Pc,updateJsxAttributes:Fu,createJsxSpreadAttribute:Nc,updateJsxSpreadAttribute:zu,createJsxExpression:Aa,updateJsxExpression:Ui,createJsxNamespacedName:Ic,updateJsxNamespacedName:qs,createCaseClause:Fs,updateCaseClause:Vu,createDefaultClause:oi,updateDefaultClause:Oc,createHeritageClause:Mc,updateHeritageClause:Wu,createCatchClause:zs,updateCatchClause:Lc,createPropertyAssignment:Ca,updatePropertyAssignment:Vr,createShorthandPropertyAssignment:Jc,updateShorthandPropertyAssignment:Yu,createSpreadAssignment:Vs,updateSpreadAssignment:jc,createEnumMember:En,updateEnumMember:Rc,createSourceFile:Xu,updateSourceFile:Ku,createRedirectedSourceFile:Uc,createBundle:Ws,updateBundle:Zu,createSyntheticExpression:ep,createSyntaxList:Pa,createNotEmittedStatement:qc,createNotEmittedTypeElement:tp,createPartiallyEmittedExpression:Fc,updatePartiallyEmittedExpression:zc,createCommaListExpression:Gs,updateCommaListExpression:Vc,createSyntheticReferenceExpression:Ys,updateSyntheticReferenceExpression:Wc,cloneNode:Hs,get createComma(){return v(28)},get createAssignment(){return v(64)},get createLogicalOr(){return v(57)},get createLogicalAnd(){return v(56)},get createBitwiseOr(){return v(52)},get createBitwiseXor(){return v(53)},get createBitwiseAnd(){return v(51)},get createStrictEquality(){return v(37)},get createStrictInequality(){return v(38)},get createEquality(){return v(35)},get createInequality(){return v(36)},get createLessThan(){return v(30)},get createLessThanEquals(){return v(33)},get createGreaterThan(){return v(32)},get createGreaterThanEquals(){return v(34)},get createLeftShift(){return v(48)},get createRightShift(){return v(49)},get createUnsignedRightShift(){return v(50)},get createAdd(){return v(40)},get createSubtract(){return v(41)},get createMultiply(){return v(42)},get createDivide(){return v(44)},get createModulo(){return v(45)},get createExponent(){return v(43)},get createPrefixPlus(){return E(40)},get createPrefixMinus(){return E(41)},get createPrefixIncrement(){return E(46)},get createPrefixDecrement(){return E(47)},get createBitwiseNot(){return E(55)},get createLogicalNot(){return E(54)},get createPostfixIncrement(){return C(46)},get createPostfixDecrement(){return C(47)},createImmediatelyInvokedFunctionExpression:ap,createImmediatelyInvokedArrowFunction:sp,createVoidZero:ci,createExportDefault:Hc,createExternalModuleExport:_p,createTypeCheck:Xs,createIsNotTypeCheck:op,createMethodCall:Wr,createGlobalMethodCall:Bi,createFunctionBindCall:cp,createFunctionCallCall:lp,createFunctionApplyCall:up,createArraySliceCall:qi,createArrayConcatCall:pp,createObjectDefinePropertyCall:$s,createObjectGetOwnPropertyDescriptorCall:li,createReflectGetCall:Xc,createReflectSetCall:fp,createPropertyDescriptor:$c,createCallBinding:Kc,createAssignmentTargetWrapper:_,inlineExpressions:p,getInternalName:b,getLocalName:w,getExportName:I,getDeclarationName:$,getNamespaceMemberName:se,getExternalModuleOrNamespaceExportName:Z,restoreOuterExpressions:Qc,restoreEnclosingLabel:Qs,createUseStrictPrologue:je,copyPrologue:ee,copyStandardPrologue:Re,copyCustomPrologue:Ae,ensureUseStrict:Yt,liftToBlock:hn,mergeLexicalEnvironment:pr,replaceModifiers:Rn,replaceDecoratorsAndModifiers:Gr,replacePropertyName:hp};return qn(Hb,n=>n(ye)),ye;function fe(n,i){if(n===void 0||n===bt)n=[];else if(yi(n)){if(i===void 0||n.hasTrailingComma===i)return n.transformFlags===void 0&&$d(n),B.attachNodeArrayDebugInfo(n),n;let f=n.slice();return f.pos=n.pos,f.end=n.end,f.hasTrailingComma=i,f.transformFlags=n.transformFlags,B.attachNodeArrayDebugInfo(f),f}let s=n.length,l=s>=1&&s<=4?n.slice():n;return l.pos=-1,l.end=-1,l.hasTrailingComma=!!i,l.transformFlags=0,$d(l),B.attachNodeArrayDebugInfo(l),l}function M(n){return t.createBaseNode(n)}function ie(n){let i=M(n);return i.symbol=void 0,i.localSymbol=void 0,i}function Ce(n,i){return n!==i&&(n.typeArguments=i.typeArguments),q(n,i)}function V(n,i=0){let s=typeof n=="number"?n+"":n;B.assert(s.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let l=ie(9);return l.text=s,l.numericLiteralFlags=i,i&384&&(l.transformFlags|=1024),l}function oe(n){let i=$t(10);return i.text=typeof n=="string"?n:Ub(n)+"n",i.transformFlags|=32,i}function G(n,i){let s=ie(11);return s.text=n,s.singleQuote=i,s}function dt(n,i,s){let l=G(n,i);return l.hasExtendedUnicodeEscape=s,s&&(l.transformFlags|=1024),l}function rr(n){let i=G(tb(n),void 0);return i.textSourceNode=n,i}function vn(n){let i=$t(14);return i.text=n,i}function ir(n,i){switch(n){case 9:return V(i,0);case 10:return oe(i);case 11:return dt(i,void 0);case 12:return ka(i,!1);case 13:return ka(i,!0);case 14:return vn(i);case 15:return si(n,i,void 0,0)}}function Tn(n){let i=t.createBaseIdentifierNode(80);return i.escapedText=n,i.jsDoc=void 0,i.flowNode=void 0,i.symbol=void 0,i}function Mn(n,i,s,l){let f=Tn(ja(n));return setIdentifierAutoGenerate(f,{flags:i,id:_l,prefix:s,suffix:l}),_l++,f}function Ge(n,i,s){i===void 0&&n&&(i=Wm(n)),i===80&&(i=void 0);let l=Tn(ja(n));return s&&(l.flags|=256),l.escapedText==="await"&&(l.transformFlags|=67108864),l.flags&256&&(l.transformFlags|=1024),l}function ar(n,i,s,l){let f=1;i&&(f|=8);let S=Mn("",f,s,l);return n&&n(S),S}function Or(n){let i=2;return n&&(i|=8),Mn("",i,void 0,void 0)}function Mt(n,i=0,s,l){return B.assert(!(i&7),"Argument out of range: flags"),B.assert((i&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Mn(n,3|i,s,l)}function Fn(n,i=0,s,l){B.assert(!(i&7),"Argument out of range: flags");let f=n?Up(n)?Gp(!1,s,n,l,In):`generated@${getNodeId(n)}`:"";(s||l)&&(i|=16);let S=Mn(f,4|i,s,l);return S.original=n,S}function Ln(n){let i=t.createBasePrivateIdentifierNode(81);return i.escapedText=n,i.transformFlags|=16777216,i}function Lt(n){return ml(n,"#")||B.fail("First character of private identifier must be #: "+n),Ln(ja(n))}function vt(n,i,s,l){let f=Ln(ja(n));return setIdentifierAutoGenerate(f,{flags:i,id:_l,prefix:s,suffix:l}),_l++,f}function Qe(n,i,s){n&&!ml(n,"#")&&B.fail("First character of private identifier must be #: "+n);let l=8|(n?3:1);return vt(n??"",l,i,s)}function zn(n,i,s){let l=Up(n)?Gp(!0,i,n,s,In):`#generated@${getNodeId(n)}`,S=vt(l,4|(i||s?16:0),i,s);return S.original=n,S}function $t(n){return t.createBaseTokenNode(n)}function ct(n){B.assert(n>=0&&n<=165,"Invalid token"),B.assert(n<=15||n>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),B.assert(n<=9||n>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),B.assert(n!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let i=$t(n),s=0;switch(n){case 134:s=384;break;case 160:s=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:s=1;break;case 108:s=134218752,i.flowNode=void 0;break;case 126:s=1024;break;case 129:s=16777216;break;case 110:s=16384,i.flowNode=void 0;break}return s&&(i.transformFlags|=s),i}function at(){return ct(108)}function Ut(){return ct(110)}function Jt(){return ct(106)}function lt(){return ct(112)}function sr(){return ct(97)}function mt(n){return ct(n)}function xn(n){let i=[];return n&32&&i.push(mt(95)),n&128&&i.push(mt(138)),n&2048&&i.push(mt(90)),n&4096&&i.push(mt(87)),n&1&&i.push(mt(125)),n&2&&i.push(mt(123)),n&4&&i.push(mt(124)),n&64&&i.push(mt(128)),n&256&&i.push(mt(126)),n&16&&i.push(mt(164)),n&8&&i.push(mt(148)),n&512&&i.push(mt(129)),n&1024&&i.push(mt(134)),n&8192&&i.push(mt(103)),n&16384&&i.push(mt(147)),i.length?i:void 0}function yt(n,i){let s=M(166);return s.left=n,s.right=tt(i),s.transformFlags|=F(s.left)|Ua(s.right),s.flowNode=void 0,s}function ln(n,i,s){return n.left!==i||n.right!==s?q(yt(i,s),n):n}function nt(n){let i=M(167);return i.expression=o().parenthesizeExpressionOfComputedPropertyName(n),i.transformFlags|=F(i.expression)|1024|131072,i}function Bt(n,i){return n.expression!==i?q(nt(i),n):n}function an(n,i,s,l){let f=ie(168);return f.modifiers=Pe(n),f.name=tt(i),f.constraint=s,f.default=l,f.transformFlags=1,f.expression=void 0,f.jsDoc=void 0,f}function _r(n,i,s,l,f){return n.modifiers!==i||n.name!==s||n.constraint!==l||n.default!==f?q(an(i,s,l,f),n):n}function hr(n,i,s,l,f,S){let z=ie(169);return z.modifiers=Pe(n),z.dotDotDotToken=i,z.name=tt(s),z.questionToken=l,z.type=f,z.initializer=Na(S),rb(z.name)?z.transformFlags=1:z.transformFlags=ke(z.modifiers)|F(z.dotDotDotToken)|Un(z.name)|F(z.questionToken)|F(z.initializer)|(z.questionToken??z.type?1:0)|(z.dotDotDotToken??z.initializer?1024:0)|(Bn(z.modifiers)&31?8192:0),z.jsDoc=void 0,z}function yr(n,i,s,l,f,S,z){return n.modifiers!==i||n.dotDotDotToken!==s||n.name!==l||n.questionToken!==f||n.type!==S||n.initializer!==z?q(hr(i,s,l,f,S,z),n):n}function Vn(n){let i=M(170);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=F(i.expression)|1|8192|33554432,i}function Wn(n,i){return n.expression!==i?q(Vn(i),n):n}function Mr(n,i,s,l){let f=ie(171);return f.modifiers=Pe(n),f.name=tt(i),f.type=l,f.questionToken=s,f.transformFlags=1,f.initializer=void 0,f.jsDoc=void 0,f}function Gn(n,i,s,l,f){return n.modifiers!==i||n.name!==s||n.questionToken!==l||n.type!==f?De(Mr(i,s,l,f),n):n}function De(n,i){return n!==i&&(n.initializer=i.initializer),q(n,i)}function gr(n,i,s,l,f){let S=ie(172);S.modifiers=Pe(n),S.name=tt(i),S.questionToken=s&&Kd(s)?s:void 0,S.exclamationToken=s&&Qd(s)?s:void 0,S.type=l,S.initializer=Na(f);let z=S.flags&33554432||Bn(S.modifiers)&128;return S.transformFlags=ke(S.modifiers)|Un(S.name)|F(S.initializer)|(z||S.questionToken||S.exclamationToken||S.type?1:0)|(Ef(S.name)||Bn(S.modifiers)&256&&S.initializer?8192:0)|16777216,S.jsDoc=void 0,S}function J(n,i,s,l,f,S){return n.modifiers!==i||n.name!==s||n.questionToken!==(l!==void 0&&Kd(l)?l:void 0)||n.exclamationToken!==(l!==void 0&&Qd(l)?l:void 0)||n.type!==f||n.initializer!==S?q(gr(i,s,l,f,S),n):n}function _e(n,i,s,l,f,S){let z=ie(173);return z.modifiers=Pe(n),z.name=tt(i),z.questionToken=s,z.typeParameters=Pe(l),z.parameters=Pe(f),z.type=S,z.transformFlags=1,z.jsDoc=void 0,z.locals=void 0,z.nextContainer=void 0,z.typeArguments=void 0,z}function me(n,i,s,l,f,S,z){return n.modifiers!==i||n.name!==s||n.questionToken!==l||n.typeParameters!==f||n.parameters!==S||n.type!==z?Ce(_e(i,s,l,f,S,z),n):n}function Te(n,i,s,l,f,S,z,de){let Ue=ie(174);if(Ue.modifiers=Pe(n),Ue.asteriskToken=i,Ue.name=tt(s),Ue.questionToken=l,Ue.exclamationToken=void 0,Ue.typeParameters=Pe(f),Ue.parameters=fe(S),Ue.type=z,Ue.body=de,!Ue.body)Ue.transformFlags=1;else{let en=Bn(Ue.modifiers)&1024,An=!!Ue.asteriskToken,Kn=en&&An;Ue.transformFlags=ke(Ue.modifiers)|F(Ue.asteriskToken)|Un(Ue.name)|F(Ue.questionToken)|ke(Ue.typeParameters)|ke(Ue.parameters)|F(Ue.type)|F(Ue.body)&-67108865|(Kn?128:en?256:An?2048:0)|(Ue.questionToken||Ue.typeParameters||Ue.type?1:0)|1024}return Ue.typeArguments=void 0,Ue.jsDoc=void 0,Ue.locals=void 0,Ue.nextContainer=void 0,Ue.flowNode=void 0,Ue.endFlowNode=void 0,Ue.returnFlowNode=void 0,Ue}function Xe(n,i,s,l,f,S,z,de,Ue){return n.modifiers!==i||n.asteriskToken!==s||n.name!==l||n.questionToken!==f||n.typeParameters!==S||n.parameters!==z||n.type!==de||n.body!==Ue?Ke(Te(i,s,l,f,S,z,de,Ue),n):n}function Ke(n,i){return n!==i&&(n.exclamationToken=i.exclamationToken),q(n,i)}function st(n){let i=ie(175);return i.body=n,i.transformFlags=F(n)|16777216,i.modifiers=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function Pt(n,i){return n.body!==i?Tt(st(i),n):n}function Tt(n,i){return n!==i&&(n.modifiers=i.modifiers),q(n,i)}function ut(n,i,s){let l=ie(176);return l.modifiers=Pe(n),l.parameters=fe(i),l.body=s,l.body?l.transformFlags=ke(l.modifiers)|ke(l.parameters)|F(l.body)&-67108865|1024:l.transformFlags=1,l.typeParameters=void 0,l.type=void 0,l.typeArguments=void 0,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.endFlowNode=void 0,l.returnFlowNode=void 0,l}function Lr(n,i,s,l){return n.modifiers!==i||n.parameters!==s||n.body!==l?br(ut(i,s,l),n):n}function br(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Ce(n,i)}function Jn(n,i,s,l,f){let S=ie(177);return S.modifiers=Pe(n),S.name=tt(i),S.parameters=fe(s),S.type=l,S.body=f,S.body?S.transformFlags=ke(S.modifiers)|Un(S.name)|ke(S.parameters)|F(S.type)|F(S.body)&-67108865|(S.type?1:0):S.transformFlags=1,S.typeArguments=void 0,S.typeParameters=void 0,S.jsDoc=void 0,S.locals=void 0,S.nextContainer=void 0,S.flowNode=void 0,S.endFlowNode=void 0,S.returnFlowNode=void 0,S}function Yn(n,i,s,l,f,S){return n.modifiers!==i||n.name!==s||n.parameters!==l||n.type!==f||n.body!==S?Ei(Jn(i,s,l,f,S),n):n}function Ei(n,i){return n!==i&&(n.typeParameters=i.typeParameters),Ce(n,i)}function R(n,i,s,l){let f=ie(178);return f.modifiers=Pe(n),f.name=tt(i),f.parameters=fe(s),f.body=l,f.body?f.transformFlags=ke(f.modifiers)|Un(f.name)|ke(f.parameters)|F(f.body)&-67108865|(f.type?1:0):f.transformFlags=1,f.typeArguments=void 0,f.typeParameters=void 0,f.type=void 0,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f.endFlowNode=void 0,f.returnFlowNode=void 0,f}function Q(n,i,s,l,f){return n.modifiers!==i||n.name!==s||n.parameters!==l||n.body!==f?K(R(i,s,l,f),n):n}function K(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Ce(n,i)}function xe(n,i,s){let l=ie(179);return l.typeParameters=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function Se(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?Ce(xe(i,s,l),n):n}function we(n,i,s){let l=ie(180);return l.typeParameters=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function be(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?Ce(we(i,s,l),n):n}function We(n,i,s){let l=ie(181);return l.modifiers=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function et(n,i,s,l){return n.parameters!==s||n.type!==l||n.modifiers!==i?Ce(We(i,s,l),n):n}function Ye(n,i){let s=M(204);return s.type=n,s.literal=i,s.transformFlags=1,s}function Ee(n,i,s){return n.type!==i||n.literal!==s?q(Ye(i,s),n):n}function Sn(n){return ct(n)}function rt(n,i,s){let l=M(182);return l.assertsModifier=n,l.parameterName=tt(i),l.type=s,l.transformFlags=1,l}function un(n,i,s,l){return n.assertsModifier!==i||n.parameterName!==s||n.type!==l?q(rt(i,s,l),n):n}function ti(n,i){let s=M(183);return s.typeName=tt(n),s.typeArguments=i&&o().parenthesizeTypeArguments(fe(i)),s.transformFlags=1,s}function L(n,i,s){return n.typeName!==i||n.typeArguments!==s?q(ti(i,s),n):n}function qe(n,i,s){let l=ie(184);return l.typeParameters=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.modifiers=void 0,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function u(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?Oe(qe(i,s,l),n):n}function Oe(n,i){return n!==i&&(n.modifiers=i.modifiers),Ce(n,i)}function Me(...n){return n.length===4?U(...n):n.length===3?Fe(...n):B.fail("Incorrect number of arguments specified.")}function U(n,i,s,l){let f=ie(185);return f.modifiers=Pe(n),f.typeParameters=Pe(i),f.parameters=Pe(s),f.type=l,f.transformFlags=1,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.typeArguments=void 0,f}function Fe(n,i,s){return U(void 0,n,i,s)}function sn(...n){return n.length===5?Ve(...n):n.length===4?$e(...n):B.fail("Incorrect number of arguments specified.")}function Ve(n,i,s,l,f){return n.modifiers!==i||n.typeParameters!==s||n.parameters!==l||n.type!==f?Ce(Me(i,s,l,f),n):n}function $e(n,i,s,l){return Ve(n,n.modifiers,i,s,l)}function Nt(n,i){let s=M(186);return s.exprName=n,s.typeArguments=i&&o().parenthesizeTypeArguments(i),s.transformFlags=1,s}function kt(n,i,s){return n.exprName!==i||n.typeArguments!==s?q(Nt(i,s),n):n}function It(n){let i=ie(187);return i.members=fe(n),i.transformFlags=1,i}function qt(n,i){return n.members!==i?q(It(i),n):n}function Hn(n){let i=M(188);return i.elementType=o().parenthesizeNonArrayTypeOfPostfixType(n),i.transformFlags=1,i}function Ai(n,i){return n.elementType!==i?q(Hn(i),n):n}function pn(n){let i=M(189);return i.elements=fe(o().parenthesizeElementTypesOfTupleType(n)),i.transformFlags=1,i}function Y(n,i){return n.elements!==i?q(pn(i),n):n}function pe(n,i,s,l){let f=ie(202);return f.dotDotDotToken=n,f.name=i,f.questionToken=s,f.type=l,f.transformFlags=1,f.jsDoc=void 0,f}function ze(n,i,s,l,f){return n.dotDotDotToken!==i||n.name!==s||n.questionToken!==l||n.type!==f?q(pe(i,s,l,f),n):n}function ve(n){let i=M(190);return i.type=o().parenthesizeTypeOfOptionalType(n),i.transformFlags=1,i}function j(n,i){return n.type!==i?q(ve(i),n):n}function ht(n){let i=M(191);return i.type=n,i.transformFlags=1,i}function xt(n,i){return n.type!==i?q(ht(i),n):n}function jt(n,i,s){let l=M(n);return l.types=ye.createNodeArray(s(i)),l.transformFlags=1,l}function fn(n,i,s){return n.types!==i?q(jt(n.kind,i,s),n):n}function ql(n){return jt(192,n,o().parenthesizeConstituentTypesOfUnionType)}function D_(n,i){return fn(n,i,o().parenthesizeConstituentTypesOfUnionType)}function Jr(n){return jt(193,n,o().parenthesizeConstituentTypesOfIntersectionType)}function Le(n,i){return fn(n,i,o().parenthesizeConstituentTypesOfIntersectionType)}function ft(n,i,s,l){let f=M(194);return f.checkType=o().parenthesizeCheckTypeOfConditionalType(n),f.extendsType=o().parenthesizeExtendsTypeOfConditionalType(i),f.trueType=s,f.falseType=l,f.transformFlags=1,f.locals=void 0,f.nextContainer=void 0,f}function Fl(n,i,s,l,f){return n.checkType!==i||n.extendsType!==s||n.trueType!==l||n.falseType!==f?q(ft(i,s,l,f),n):n}function Xn(n){let i=M(195);return i.typeParameter=n,i.transformFlags=1,i}function zl(n,i){return n.typeParameter!==i?q(Xn(i),n):n}function Wt(n,i){let s=M(203);return s.head=n,s.templateSpans=fe(i),s.transformFlags=1,s}function Vl(n,i,s){return n.head!==i||n.templateSpans!==s?q(Wt(i,s),n):n}function or(n,i,s,l,f=!1){let S=M(205);return S.argument=n,S.attributes=i,S.assertions&&S.assertions.assertClause&&S.attributes&&(S.assertions.assertClause=S.attributes),S.qualifier=s,S.typeArguments=l&&o().parenthesizeTypeArguments(l),S.isTypeOf=f,S.transformFlags=1,S}function _a(n,i,s,l,f,S=n.isTypeOf){return n.argument!==i||n.attributes!==s||n.qualifier!==l||n.typeArguments!==f||n.isTypeOf!==S?q(or(i,s,l,f,S),n):n}function Qt(n){let i=M(196);return i.type=n,i.transformFlags=1,i}function Ct(n,i){return n.type!==i?q(Qt(i),n):n}function P(){let n=M(197);return n.transformFlags=1,n}function Gt(n,i){let s=M(198);return s.operator=n,s.type=n===148?o().parenthesizeOperandOfReadonlyTypeOperator(i):o().parenthesizeOperandOfTypeOperator(i),s.transformFlags=1,s}function jr(n,i){return n.type!==i?q(Gt(n.operator,i),n):n}function cr(n,i){let s=M(199);return s.objectType=o().parenthesizeNonArrayTypeOfPostfixType(n),s.indexType=i,s.transformFlags=1,s}function es(n,i,s){return n.objectType!==i||n.indexType!==s?q(cr(i,s),n):n}function St(n,i,s,l,f,S){let z=ie(200);return z.readonlyToken=n,z.typeParameter=i,z.nameType=s,z.questionToken=l,z.type=f,z.members=S&&fe(S),z.transformFlags=1,z.locals=void 0,z.nextContainer=void 0,z}function Rt(n,i,s,l,f,S,z){return n.readonlyToken!==i||n.typeParameter!==s||n.nameType!==l||n.questionToken!==f||n.type!==S||n.members!==z?q(St(i,s,l,f,S,z),n):n}function ni(n){let i=M(201);return i.literal=n,i.transformFlags=1,i}function vr(n,i){return n.literal!==i?q(ni(i),n):n}function P_(n){let i=M(206);return i.elements=fe(n),i.transformFlags|=ke(i.elements)|1024|524288,i.transformFlags&32768&&(i.transformFlags|=65664),i}function Wl(n,i){return n.elements!==i?q(P_(i),n):n}function Rr(n){let i=M(207);return i.elements=fe(n),i.transformFlags|=ke(i.elements)|1024|524288,i}function Gl(n,i){return n.elements!==i?q(Rr(i),n):n}function oa(n,i,s,l){let f=ie(208);return f.dotDotDotToken=n,f.propertyName=tt(i),f.name=tt(s),f.initializer=Na(l),f.transformFlags|=F(f.dotDotDotToken)|Un(f.propertyName)|Un(f.name)|F(f.initializer)|(f.dotDotDotToken?32768:0)|1024,f.flowNode=void 0,f}function ri(n,i,s,l,f){return n.propertyName!==s||n.dotDotDotToken!==i||n.name!==l||n.initializer!==f?q(oa(i,s,l,f),n):n}function ts(n,i){let s=M(209),l=n&&Fa(n),f=fe(n,l&&K1(l)?!0:void 0);return s.elements=o().parenthesizeExpressionsOfCommaDelimitedList(f),s.multiLine=i,s.transformFlags|=ke(s.elements),s}function N_(n,i){return n.elements!==i?q(ts(i,n.multiLine),n):n}function Ci(n,i){let s=ie(210);return s.properties=fe(n),s.multiLine=i,s.transformFlags|=ke(s.properties),s.jsDoc=void 0,s}function Yl(n,i){return n.properties!==i?q(Ci(i,n.multiLine),n):n}function I_(n,i,s){let l=ie(211);return l.expression=n,l.questionDotToken=i,l.name=s,l.transformFlags=F(l.expression)|F(l.questionDotToken)|(Ze(l.name)?Ua(l.name):F(l.name)|536870912),l.jsDoc=void 0,l.flowNode=void 0,l}function lr(n,i){let s=I_(o().parenthesizeLeftSideOfAccess(n,!1),void 0,tt(i));return Dp(n)&&(s.transformFlags|=384),s}function Hl(n,i,s){return Qg(n)?ca(n,i,n.questionDotToken,Cr(s,Ze)):n.expression!==i||n.name!==s?q(lr(i,s),n):n}function Di(n,i,s){let l=I_(o().parenthesizeLeftSideOfAccess(n,!0),i,tt(s));return l.flags|=64,l.transformFlags|=32,l}function ca(n,i,s,l){return B.assert(!!(n.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==i||n.questionDotToken!==s||n.name!==l?q(Di(i,s,l),n):n}function O_(n,i,s){let l=ie(212);return l.expression=n,l.questionDotToken=i,l.argumentExpression=s,l.transformFlags|=F(l.expression)|F(l.questionDotToken)|F(l.argumentExpression),l.jsDoc=void 0,l.flowNode=void 0,l}function Pi(n,i){let s=O_(o().parenthesizeLeftSideOfAccess(n,!1),void 0,fr(i));return Dp(n)&&(s.transformFlags|=384),s}function Xl(n,i,s){return Kg(n)?ns(n,i,n.questionDotToken,s):n.expression!==i||n.argumentExpression!==s?q(Pi(i,s),n):n}function M_(n,i,s){let l=O_(o().parenthesizeLeftSideOfAccess(n,!0),i,fr(s));return l.flags|=64,l.transformFlags|=32,l}function ns(n,i,s,l){return B.assert(!!(n.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==i||n.questionDotToken!==s||n.argumentExpression!==l?q(M_(i,s,l),n):n}function L_(n,i,s,l){let f=ie(213);return f.expression=n,f.questionDotToken=i,f.typeArguments=s,f.arguments=l,f.transformFlags|=F(f.expression)|F(f.questionDotToken)|ke(f.typeArguments)|ke(f.arguments),f.typeArguments&&(f.transformFlags|=1),zd(f.expression)&&(f.transformFlags|=16384),f}function Ni(n,i,s){let l=L_(o().parenthesizeLeftSideOfAccess(n,!1),void 0,Pe(i),o().parenthesizeExpressionsOfCommaDelimitedList(fe(s)));return i6(l.expression)&&(l.transformFlags|=8388608),l}function la(n,i,s,l){return Jd(n)?J_(n,i,n.questionDotToken,s,l):n.expression!==i||n.typeArguments!==s||n.arguments!==l?q(Ni(i,s,l),n):n}function rs(n,i,s,l){let f=L_(o().parenthesizeLeftSideOfAccess(n,!0),i,Pe(s),o().parenthesizeExpressionsOfCommaDelimitedList(fe(l)));return f.flags|=64,f.transformFlags|=32,f}function J_(n,i,s,l,f){return B.assert(!!(n.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==i||n.questionDotToken!==s||n.typeArguments!==l||n.arguments!==f?q(rs(i,s,l,f),n):n}function wn(n,i,s){let l=ie(214);return l.expression=o().parenthesizeExpressionOfNew(n),l.typeArguments=Pe(i),l.arguments=s?o().parenthesizeExpressionsOfCommaDelimitedList(s):void 0,l.transformFlags|=F(l.expression)|ke(l.typeArguments)|ke(l.arguments)|32,l.typeArguments&&(l.transformFlags|=1),l}function is(n,i,s,l){return n.expression!==i||n.typeArguments!==s||n.arguments!==l?q(wn(i,s,l),n):n}function ua(n,i,s){let l=M(215);return l.tag=o().parenthesizeLeftSideOfAccess(n,!1),l.typeArguments=Pe(i),l.template=s,l.transformFlags|=F(l.tag)|ke(l.typeArguments)|F(l.template)|1024,l.typeArguments&&(l.transformFlags|=1),nb(l.template)&&(l.transformFlags|=128),l}function j_(n,i,s,l){return n.tag!==i||n.typeArguments!==s||n.template!==l?q(ua(i,s,l),n):n}function R_(n,i){let s=M(216);return s.expression=o().parenthesizeOperandOfPrefixUnary(i),s.type=n,s.transformFlags|=F(s.expression)|F(s.type)|1,s}function U_(n,i,s){return n.type!==i||n.expression!==s?q(R_(i,s),n):n}function as(n){let i=M(217);return i.expression=n,i.transformFlags=F(i.expression),i.jsDoc=void 0,i}function B_(n,i){return n.expression!==i?q(as(i),n):n}function ss(n,i,s,l,f,S,z){let de=ie(218);de.modifiers=Pe(n),de.asteriskToken=i,de.name=tt(s),de.typeParameters=Pe(l),de.parameters=fe(f),de.type=S,de.body=z;let Ue=Bn(de.modifiers)&1024,en=!!de.asteriskToken,An=Ue&&en;return de.transformFlags=ke(de.modifiers)|F(de.asteriskToken)|Un(de.name)|ke(de.typeParameters)|ke(de.parameters)|F(de.type)|F(de.body)&-67108865|(An?128:Ue?256:en?2048:0)|(de.typeParameters||de.type?1:0)|4194304,de.typeArguments=void 0,de.jsDoc=void 0,de.locals=void 0,de.nextContainer=void 0,de.flowNode=void 0,de.endFlowNode=void 0,de.returnFlowNode=void 0,de}function q_(n,i,s,l,f,S,z,de){return n.name!==l||n.modifiers!==i||n.asteriskToken!==s||n.typeParameters!==f||n.parameters!==S||n.type!==z||n.body!==de?Ce(ss(i,s,l,f,S,z,de),n):n}function _s(n,i,s,l,f,S){let z=ie(219);z.modifiers=Pe(n),z.typeParameters=Pe(i),z.parameters=fe(s),z.type=l,z.equalsGreaterThanToken=f??ct(39),z.body=o().parenthesizeConciseBodyOfArrowFunction(S);let de=Bn(z.modifiers)&1024;return z.transformFlags=ke(z.modifiers)|ke(z.typeParameters)|ke(z.parameters)|F(z.type)|F(z.equalsGreaterThanToken)|F(z.body)&-67108865|(z.typeParameters||z.type?1:0)|(de?16640:0)|1024,z.typeArguments=void 0,z.jsDoc=void 0,z.locals=void 0,z.nextContainer=void 0,z.flowNode=void 0,z.endFlowNode=void 0,z.returnFlowNode=void 0,z}function F_(n,i,s,l,f,S,z){return n.modifiers!==i||n.typeParameters!==s||n.parameters!==l||n.type!==f||n.equalsGreaterThanToken!==S||n.body!==z?Ce(_s(i,s,l,f,S,z),n):n}function z_(n){let i=M(220);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression),i}function V_(n,i){return n.expression!==i?q(z_(i),n):n}function pa(n){let i=M(221);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression),i}function dn(n,i){return n.expression!==i?q(pa(i),n):n}function os(n){let i=M(222);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression),i}function ur(n,i){return n.expression!==i?q(os(i),n):n}function W_(n){let i=M(223);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression)|256|128|2097152,i}function Ur(n,i){return n.expression!==i?q(W_(i),n):n}function Br(n,i){let s=M(224);return s.operator=n,s.operand=o().parenthesizeOperandOfPrefixUnary(i),s.transformFlags|=F(s.operand),(n===46||n===47)&&Ze(s.operand)&&!qa(s.operand)&&!em(s.operand)&&(s.transformFlags|=268435456),s}function $l(n,i){return n.operand!==i?q(Br(n.operator,i),n):n}function ii(n,i){let s=M(225);return s.operator=i,s.operand=o().parenthesizeOperandOfPostfixUnary(n),s.transformFlags|=F(s.operand),Ze(s.operand)&&!qa(s.operand)&&!em(s.operand)&&(s.transformFlags|=268435456),s}function Ql(n,i){return n.operand!==i?q(ii(i,n.operator),n):n}function fa(n,i,s){let l=ie(226),f=Zc(i),S=f.kind;return l.left=o().parenthesizeLeftSideOfBinary(S,n),l.operatorToken=f,l.right=o().parenthesizeRightSideOfBinary(S,l.left,s),l.transformFlags|=F(l.left)|F(l.operatorToken)|F(l.right),S===61?l.transformFlags|=32:S===64?Of(l.left)?l.transformFlags|=5248|G_(l.left):H1(l.left)&&(l.transformFlags|=5120|G_(l.left)):S===43||S===68?l.transformFlags|=512:fb(S)&&(l.transformFlags|=16),S===103&&vi(l.left)&&(l.transformFlags|=536870912),l.jsDoc=void 0,l}function G_(n){return dh(n)?65536:0}function Kl(n,i,s,l){return n.left!==i||n.operatorToken!==s||n.right!==l?q(fa(i,s,l),n):n}function Y_(n,i,s,l,f){let S=M(227);return S.condition=o().parenthesizeConditionOfConditionalExpression(n),S.questionToken=i??ct(58),S.whenTrue=o().parenthesizeBranchOfConditionalExpression(s),S.colonToken=l??ct(59),S.whenFalse=o().parenthesizeBranchOfConditionalExpression(f),S.transformFlags|=F(S.condition)|F(S.questionToken)|F(S.whenTrue)|F(S.colonToken)|F(S.whenFalse),S.flowNodeWhenFalse=void 0,S.flowNodeWhenTrue=void 0,S}function H_(n,i,s,l,f,S){return n.condition!==i||n.questionToken!==s||n.whenTrue!==l||n.colonToken!==f||n.whenFalse!==S?q(Y_(i,s,l,f,S),n):n}function X_(n,i){let s=M(228);return s.head=n,s.templateSpans=fe(i),s.transformFlags|=F(s.head)|ke(s.templateSpans)|1024,s}function $n(n,i,s){return n.head!==i||n.templateSpans!==s?q(X_(i,s),n):n}function Ii(n,i,s,l=0){B.assert(!(l&-7177),"Unsupported template flags.");let f;if(s!==void 0&&s!==i&&(f=Xb(n,s),typeof f=="object"))return B.fail("Invalid raw text");if(i===void 0){if(f===void 0)return B.fail("Arguments 'text' and 'rawText' may not both be undefined.");i=f}else f!==void 0&&B.assert(i===f,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return i}function $_(n){let i=1024;return n&&(i|=128),i}function Zl(n,i,s,l){let f=$t(n);return f.text=i,f.rawText=s,f.templateFlags=l&7176,f.transformFlags=$_(f.templateFlags),f}function ai(n,i,s,l){let f=ie(n);return f.text=i,f.rawText=s,f.templateFlags=l&7176,f.transformFlags=$_(f.templateFlags),f}function si(n,i,s,l){return n===15?ai(n,i,s,l):Zl(n,i,s,l)}function Q_(n,i,s){return n=Ii(16,n,i,s),si(16,n,i,s)}function da(n,i,s){return n=Ii(16,n,i,s),si(17,n,i,s)}function cs(n,i,s){return n=Ii(16,n,i,s),si(18,n,i,s)}function eu(n,i,s){return n=Ii(16,n,i,s),ai(15,n,i,s)}function ls(n,i){B.assert(!n||!!i,"A `YieldExpression` with an asteriskToken must have an expression.");let s=M(229);return s.expression=i&&o().parenthesizeExpressionForDisallowedComma(i),s.asteriskToken=n,s.transformFlags|=F(s.expression)|F(s.asteriskToken)|1024|128|1048576,s}function tu(n,i,s){return n.expression!==s||n.asteriskToken!==i?q(ls(i,s),n):n}function K_(n){let i=M(230);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=F(i.expression)|1024|32768,i}function nu(n,i){return n.expression!==i?q(K_(i),n):n}function Z_(n,i,s,l,f){let S=ie(231);return S.modifiers=Pe(n),S.name=tt(i),S.typeParameters=Pe(s),S.heritageClauses=Pe(l),S.members=fe(f),S.transformFlags|=ke(S.modifiers)|Un(S.name)|ke(S.typeParameters)|ke(S.heritageClauses)|ke(S.members)|(S.typeParameters?1:0)|1024,S.jsDoc=void 0,S}function us(n,i,s,l,f,S){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.heritageClauses!==f||n.members!==S?q(Z_(i,s,l,f,S),n):n}function ps(){return M(232)}function eo(n,i){let s=M(233);return s.expression=o().parenthesizeLeftSideOfAccess(n,!1),s.typeArguments=i&&o().parenthesizeTypeArguments(i),s.transformFlags|=F(s.expression)|ke(s.typeArguments)|1024,s}function to(n,i,s){return n.expression!==i||n.typeArguments!==s?q(eo(i,s),n):n}function mn(n,i){let s=M(234);return s.expression=n,s.type=i,s.transformFlags|=F(s.expression)|F(s.type)|1,s}function ma(n,i,s){return n.expression!==i||n.type!==s?q(mn(i,s),n):n}function no(n){let i=M(235);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=F(i.expression)|1,i}function ro(n,i){return Zg(n)?jn(n,i):n.expression!==i?q(no(i),n):n}function fs(n,i){let s=M(238);return s.expression=n,s.type=i,s.transformFlags|=F(s.expression)|F(s.type)|1,s}function io(n,i,s){return n.expression!==i||n.type!==s?q(fs(i,s),n):n}function ds(n){let i=M(235);return i.flags|=64,i.expression=o().parenthesizeLeftSideOfAccess(n,!0),i.transformFlags|=F(i.expression)|1,i}function jn(n,i){return B.assert(!!(n.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==i?q(ds(i),n):n}function ao(n,i){let s=M(236);switch(s.keywordToken=n,s.name=i,s.transformFlags|=F(s.name),n){case 105:s.transformFlags|=1024;break;case 102:s.transformFlags|=32;break;default:return B.assertNever(n)}return s.flowNode=void 0,s}function ms(n,i){return n.name!==i?q(ao(n.keywordToken,i),n):n}function Qn(n,i){let s=M(239);return s.expression=n,s.literal=i,s.transformFlags|=F(s.expression)|F(s.literal)|1024,s}function ha(n,i,s){return n.expression!==i||n.literal!==s?q(Qn(i,s),n):n}function so(){let n=M(240);return n.transformFlags|=1024,n}function qr(n,i){let s=M(241);return s.statements=fe(n),s.multiLine=i,s.transformFlags|=ke(s.statements),s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s}function ru(n,i){return n.statements!==i?q(qr(i,n.multiLine),n):n}function hs(n,i){let s=M(243);return s.modifiers=Pe(n),s.declarationList=Qr(i)?xs(i):i,s.transformFlags|=ke(s.modifiers)|F(s.declarationList),Bn(s.modifiers)&128&&(s.transformFlags=1),s.jsDoc=void 0,s.flowNode=void 0,s}function _o(n,i,s){return n.modifiers!==i||n.declarationList!==s?q(hs(i,s),n):n}function oo(){let n=M(242);return n.jsDoc=void 0,n}function Oi(n){let i=M(244);return i.expression=o().parenthesizeExpressionOfExpressionStatement(n),i.transformFlags|=F(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function co(n,i){return n.expression!==i?q(Oi(i),n):n}function lo(n,i,s){let l=M(245);return l.expression=n,l.thenStatement=Ot(i),l.elseStatement=Ot(s),l.transformFlags|=F(l.expression)|F(l.thenStatement)|F(l.elseStatement),l.jsDoc=void 0,l.flowNode=void 0,l}function uo(n,i,s,l){return n.expression!==i||n.thenStatement!==s||n.elseStatement!==l?q(lo(i,s,l),n):n}function po(n,i){let s=M(246);return s.statement=Ot(n),s.expression=i,s.transformFlags|=F(s.statement)|F(s.expression),s.jsDoc=void 0,s.flowNode=void 0,s}function fo(n,i,s){return n.statement!==i||n.expression!==s?q(po(i,s),n):n}function mo(n,i){let s=M(247);return s.expression=n,s.statement=Ot(i),s.transformFlags|=F(s.expression)|F(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function iu(n,i,s){return n.expression!==i||n.statement!==s?q(mo(i,s),n):n}function ho(n,i,s,l){let f=M(248);return f.initializer=n,f.condition=i,f.incrementor=s,f.statement=Ot(l),f.transformFlags|=F(f.initializer)|F(f.condition)|F(f.incrementor)|F(f.statement),f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f}function yo(n,i,s,l,f){return n.initializer!==i||n.condition!==s||n.incrementor!==l||n.statement!==f?q(ho(i,s,l,f),n):n}function ys(n,i,s){let l=M(249);return l.initializer=n,l.expression=i,l.statement=Ot(s),l.transformFlags|=F(l.initializer)|F(l.expression)|F(l.statement),l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.flowNode=void 0,l}function au(n,i,s,l){return n.initializer!==i||n.expression!==s||n.statement!==l?q(ys(i,s,l),n):n}function go(n,i,s,l){let f=M(250);return f.awaitModifier=n,f.initializer=i,f.expression=o().parenthesizeExpressionForDisallowedComma(s),f.statement=Ot(l),f.transformFlags|=F(f.awaitModifier)|F(f.initializer)|F(f.expression)|F(f.statement)|1024,n&&(f.transformFlags|=128),f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f}function su(n,i,s,l,f){return n.awaitModifier!==i||n.initializer!==s||n.expression!==l||n.statement!==f?q(go(i,s,l,f),n):n}function bo(n){let i=M(251);return i.label=tt(n),i.transformFlags|=F(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function _u(n,i){return n.label!==i?q(bo(i),n):n}function gs(n){let i=M(252);return i.label=tt(n),i.transformFlags|=F(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function vo(n,i){return n.label!==i?q(gs(i),n):n}function bs(n){let i=M(253);return i.expression=n,i.transformFlags|=F(i.expression)|128|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function ou(n,i){return n.expression!==i?q(bs(i),n):n}function vs(n,i){let s=M(254);return s.expression=n,s.statement=Ot(i),s.transformFlags|=F(s.expression)|F(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function To(n,i,s){return n.expression!==i||n.statement!==s?q(vs(i,s),n):n}function Ts(n,i){let s=M(255);return s.expression=o().parenthesizeExpressionForDisallowedComma(n),s.caseBlock=i,s.transformFlags|=F(s.expression)|F(s.caseBlock),s.jsDoc=void 0,s.flowNode=void 0,s.possiblyExhaustive=!1,s}function _i(n,i,s){return n.expression!==i||n.caseBlock!==s?q(Ts(i,s),n):n}function xo(n,i){let s=M(256);return s.label=tt(n),s.statement=Ot(i),s.transformFlags|=F(s.label)|F(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function So(n,i,s){return n.label!==i||n.statement!==s?q(xo(i,s),n):n}function wo(n){let i=M(257);return i.expression=n,i.transformFlags|=F(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function cu(n,i){return n.expression!==i?q(wo(i),n):n}function ko(n,i,s){let l=M(258);return l.tryBlock=n,l.catchClause=i,l.finallyBlock=s,l.transformFlags|=F(l.tryBlock)|F(l.catchClause)|F(l.finallyBlock),l.jsDoc=void 0,l.flowNode=void 0,l}function lu(n,i,s,l){return n.tryBlock!==i||n.catchClause!==s||n.finallyBlock!==l?q(ko(i,s,l),n):n}function Eo(){let n=M(259);return n.jsDoc=void 0,n.flowNode=void 0,n}function ya(n,i,s,l){let f=ie(260);return f.name=tt(n),f.exclamationToken=i,f.type=s,f.initializer=Na(l),f.transformFlags|=Un(f.name)|F(f.initializer)|(f.exclamationToken??f.type?1:0),f.jsDoc=void 0,f}function Ao(n,i,s,l,f){return n.name!==i||n.type!==l||n.exclamationToken!==s||n.initializer!==f?q(ya(i,s,l,f),n):n}function xs(n,i=0){let s=M(261);return s.flags|=i&7,s.declarations=fe(n),s.transformFlags|=ke(s.declarations)|4194304,i&7&&(s.transformFlags|=263168),i&4&&(s.transformFlags|=4),s}function uu(n,i){return n.declarations!==i?q(xs(i,n.flags),n):n}function Co(n,i,s,l,f,S,z){let de=ie(262);if(de.modifiers=Pe(n),de.asteriskToken=i,de.name=tt(s),de.typeParameters=Pe(l),de.parameters=fe(f),de.type=S,de.body=z,!de.body||Bn(de.modifiers)&128)de.transformFlags=1;else{let Ue=Bn(de.modifiers)&1024,en=!!de.asteriskToken,An=Ue&&en;de.transformFlags=ke(de.modifiers)|F(de.asteriskToken)|Un(de.name)|ke(de.typeParameters)|ke(de.parameters)|F(de.type)|F(de.body)&-67108865|(An?128:Ue?256:en?2048:0)|(de.typeParameters||de.type?1:0)|4194304}return de.typeArguments=void 0,de.jsDoc=void 0,de.locals=void 0,de.nextContainer=void 0,de.endFlowNode=void 0,de.returnFlowNode=void 0,de}function Ss(n,i,s,l,f,S,z,de){return n.modifiers!==i||n.asteriskToken!==s||n.name!==l||n.typeParameters!==f||n.parameters!==S||n.type!==z||n.body!==de?pu(Co(i,s,l,f,S,z,de),n):n}function pu(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),Ce(n,i)}function Do(n,i,s,l,f){let S=ie(263);return S.modifiers=Pe(n),S.name=tt(i),S.typeParameters=Pe(s),S.heritageClauses=Pe(l),S.members=fe(f),Bn(S.modifiers)&128?S.transformFlags=1:(S.transformFlags|=ke(S.modifiers)|Un(S.name)|ke(S.typeParameters)|ke(S.heritageClauses)|ke(S.members)|(S.typeParameters?1:0)|1024,S.transformFlags&8192&&(S.transformFlags|=1)),S.jsDoc=void 0,S}function ga(n,i,s,l,f,S){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.heritageClauses!==f||n.members!==S?q(Do(i,s,l,f,S),n):n}function Po(n,i,s,l,f){let S=ie(264);return S.modifiers=Pe(n),S.name=tt(i),S.typeParameters=Pe(s),S.heritageClauses=Pe(l),S.members=fe(f),S.transformFlags=1,S.jsDoc=void 0,S}function No(n,i,s,l,f,S){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.heritageClauses!==f||n.members!==S?q(Po(i,s,l,f,S),n):n}function _t(n,i,s,l){let f=ie(265);return f.modifiers=Pe(n),f.name=tt(i),f.typeParameters=Pe(s),f.type=l,f.transformFlags=1,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f}function Tr(n,i,s,l,f){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.type!==f?q(_t(i,s,l,f),n):n}function ws(n,i,s){let l=ie(266);return l.modifiers=Pe(n),l.name=tt(i),l.members=fe(s),l.transformFlags|=ke(l.modifiers)|F(l.name)|ke(l.members)|1,l.transformFlags&=-67108865,l.jsDoc=void 0,l}function xr(n,i,s,l){return n.modifiers!==i||n.name!==s||n.members!==l?q(ws(i,s,l),n):n}function Io(n,i,s,l=0){let f=ie(267);return f.modifiers=Pe(n),f.flags|=l&2088,f.name=i,f.body=s,Bn(f.modifiers)&128?f.transformFlags=1:f.transformFlags|=ke(f.modifiers)|F(f.name)|F(f.body)|1,f.transformFlags&=-67108865,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f}function Et(n,i,s,l){return n.modifiers!==i||n.name!==s||n.body!==l?q(Io(i,s,l,n.flags),n):n}function Sr(n){let i=M(268);return i.statements=fe(n),i.transformFlags|=ke(i.statements),i.jsDoc=void 0,i}function Ft(n,i){return n.statements!==i?q(Sr(i),n):n}function Oo(n){let i=M(269);return i.clauses=fe(n),i.transformFlags|=ke(i.clauses),i.locals=void 0,i.nextContainer=void 0,i}function fu(n,i){return n.clauses!==i?q(Oo(i),n):n}function Mo(n){let i=ie(270);return i.name=tt(n),i.transformFlags|=Ua(i.name)|1,i.modifiers=void 0,i.jsDoc=void 0,i}function Lo(n,i){return n.name!==i?du(Mo(i),n):n}function du(n,i){return n!==i&&(n.modifiers=i.modifiers),q(n,i)}function Jo(n,i,s,l){let f=ie(271);return f.modifiers=Pe(n),f.name=tt(s),f.isTypeOnly=i,f.moduleReference=l,f.transformFlags|=ke(f.modifiers)|Ua(f.name)|F(f.moduleReference),zf(f.moduleReference)||(f.transformFlags|=1),f.transformFlags&=-67108865,f.jsDoc=void 0,f}function jo(n,i,s,l,f){return n.modifiers!==i||n.isTypeOnly!==s||n.name!==l||n.moduleReference!==f?q(Jo(i,s,l,f),n):n}function Ro(n,i,s,l){let f=M(272);return f.modifiers=Pe(n),f.importClause=i,f.moduleSpecifier=s,f.attributes=f.assertClause=l,f.transformFlags|=F(f.importClause)|F(f.moduleSpecifier),f.transformFlags&=-67108865,f.jsDoc=void 0,f}function Uo(n,i,s,l,f){return n.modifiers!==i||n.importClause!==s||n.moduleSpecifier!==l||n.attributes!==f?q(Ro(i,s,l,f),n):n}function Bo(n,i,s){let l=ie(273);return l.isTypeOnly=n,l.name=i,l.namedBindings=s,l.transformFlags|=F(l.name)|F(l.namedBindings),n&&(l.transformFlags|=1),l.transformFlags&=-67108865,l}function qo(n,i,s,l){return n.isTypeOnly!==i||n.name!==s||n.namedBindings!==l?q(Bo(i,s,l),n):n}function ks(n,i){let s=M(300);return s.elements=fe(n),s.multiLine=i,s.token=132,s.transformFlags|=4,s}function mu(n,i,s){return n.elements!==i||n.multiLine!==s?q(ks(i,s),n):n}function Mi(n,i){let s=M(301);return s.name=n,s.value=i,s.transformFlags|=4,s}function Fo(n,i,s){return n.name!==i||n.value!==s?q(Mi(i,s),n):n}function Es(n,i){let s=M(302);return s.assertClause=n,s.multiLine=i,s}function zo(n,i,s){return n.assertClause!==i||n.multiLine!==s?q(Es(i,s),n):n}function Vo(n,i,s){let l=M(300);return l.token=s??118,l.elements=fe(n),l.multiLine=i,l.transformFlags|=4,l}function As(n,i,s){return n.elements!==i||n.multiLine!==s?q(Vo(i,s,n.token),n):n}function Wo(n,i){let s=M(301);return s.name=n,s.value=i,s.transformFlags|=4,s}function Go(n,i,s){return n.name!==i||n.value!==s?q(Wo(i,s),n):n}function Yo(n){let i=ie(274);return i.name=n,i.transformFlags|=F(i.name),i.transformFlags&=-67108865,i}function hu(n,i){return n.name!==i?q(Yo(i),n):n}function Ho(n){let i=ie(280);return i.name=n,i.transformFlags|=F(i.name)|32,i.transformFlags&=-67108865,i}function yu(n,i){return n.name!==i?q(Ho(i),n):n}function Xo(n){let i=M(275);return i.elements=fe(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function $o(n,i){return n.elements!==i?q(Xo(i),n):n}function wr(n,i,s){let l=ie(276);return l.isTypeOnly=n,l.propertyName=i,l.name=s,l.transformFlags|=F(l.propertyName)|F(l.name),l.transformFlags&=-67108865,l}function gu(n,i,s,l){return n.isTypeOnly!==i||n.propertyName!==s||n.name!==l?q(wr(i,s,l),n):n}function ba(n,i,s){let l=ie(277);return l.modifiers=Pe(n),l.isExportEquals=i,l.expression=i?o().parenthesizeRightSideOfBinary(64,void 0,s):o().parenthesizeExpressionOfExportDefault(s),l.transformFlags|=ke(l.modifiers)|F(l.expression),l.transformFlags&=-67108865,l.jsDoc=void 0,l}function Li(n,i,s){return n.modifiers!==i||n.expression!==s?q(ba(i,n.isExportEquals,s),n):n}function va(n,i,s,l,f){let S=ie(278);return S.modifiers=Pe(n),S.isTypeOnly=i,S.exportClause=s,S.moduleSpecifier=l,S.attributes=S.assertClause=f,S.transformFlags|=ke(S.modifiers)|F(S.exportClause)|F(S.moduleSpecifier),S.transformFlags&=-67108865,S.jsDoc=void 0,S}function Qo(n,i,s,l,f,S){return n.modifiers!==i||n.isTypeOnly!==s||n.exportClause!==l||n.moduleSpecifier!==f||n.attributes!==S?Ji(va(i,s,l,f,S),n):n}function Ji(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),q(n,i)}function Cs(n){let i=M(279);return i.elements=fe(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function bu(n,i){return n.elements!==i?q(Cs(i),n):n}function Ta(n,i,s){let l=M(281);return l.isTypeOnly=n,l.propertyName=tt(i),l.name=tt(s),l.transformFlags|=F(l.propertyName)|F(l.name),l.transformFlags&=-67108865,l.jsDoc=void 0,l}function vu(n,i,s,l){return n.isTypeOnly!==i||n.propertyName!==s||n.name!==l?q(Ta(i,s,l),n):n}function Tu(){let n=ie(282);return n.jsDoc=void 0,n}function Ds(n){let i=M(283);return i.expression=n,i.transformFlags|=F(i.expression),i.transformFlags&=-67108865,i}function xu(n,i){return n.expression!==i?q(Ds(i),n):n}function Ko(n){return M(n)}function Zo(n,i,s=!1){let l=Ps(n,s?i&&o().parenthesizeNonArrayTypeOfPostfixType(i):i);return l.postfix=s,l}function Ps(n,i){let s=M(n);return s.type=i,s}function Su(n,i,s){return i.type!==s?q(Zo(n,s,i.postfix),i):i}function wu(n,i,s){return i.type!==s?q(Ps(n,s),i):i}function ec(n,i){let s=ie(317);return s.parameters=Pe(n),s.type=i,s.transformFlags=ke(s.parameters)|(s.type?1:0),s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.typeArguments=void 0,s}function ku(n,i,s){return n.parameters!==i||n.type!==s?q(ec(i,s),n):n}function tc(n,i=!1){let s=ie(322);return s.jsDocPropertyTags=Pe(n),s.isArrayType=i,s}function Eu(n,i,s){return n.jsDocPropertyTags!==i||n.isArrayType!==s?q(tc(i,s),n):n}function nc(n){let i=M(309);return i.type=n,i}function Ns(n,i){return n.type!==i?q(nc(i),n):n}function rc(n,i,s){let l=ie(323);return l.typeParameters=Pe(n),l.parameters=fe(i),l.type=s,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l}function Au(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?q(rc(i,s,l),n):n}function _n(n){let i=ol(n.kind);return n.tagName.escapedText===ja(i)?n.tagName:Ge(i)}function kn(n,i,s){let l=M(n);return l.tagName=i,l.comment=s,l}function Fr(n,i,s){let l=ie(n);return l.tagName=i,l.comment=s,l}function Is(n,i,s,l){let f=kn(345,n??Ge("template"),l);return f.constraint=i,f.typeParameters=fe(s),f}function ic(n,i=_n(n),s,l,f){return n.tagName!==i||n.constraint!==s||n.typeParameters!==l||n.comment!==f?q(Is(i,s,l,f),n):n}function xa(n,i,s,l){let f=Fr(346,n??Ge("typedef"),l);return f.typeExpression=i,f.fullName=s,f.name=tm(s),f.locals=void 0,f.nextContainer=void 0,f}function Cu(n,i=_n(n),s,l,f){return n.tagName!==i||n.typeExpression!==s||n.fullName!==l||n.comment!==f?q(xa(i,s,l,f),n):n}function Os(n,i,s,l,f,S){let z=Fr(341,n??Ge("param"),S);return z.typeExpression=l,z.name=i,z.isNameFirst=!!f,z.isBracketed=s,z}function Du(n,i=_n(n),s,l,f,S,z){return n.tagName!==i||n.name!==s||n.isBracketed!==l||n.typeExpression!==f||n.isNameFirst!==S||n.comment!==z?q(Os(i,s,l,f,S,z),n):n}function ac(n,i,s,l,f,S){let z=Fr(348,n??Ge("prop"),S);return z.typeExpression=l,z.name=i,z.isNameFirst=!!f,z.isBracketed=s,z}function sc(n,i=_n(n),s,l,f,S,z){return n.tagName!==i||n.name!==s||n.isBracketed!==l||n.typeExpression!==f||n.isNameFirst!==S||n.comment!==z?q(ac(i,s,l,f,S,z),n):n}function _c(n,i,s,l){let f=Fr(338,n??Ge("callback"),l);return f.typeExpression=i,f.fullName=s,f.name=tm(s),f.locals=void 0,f.nextContainer=void 0,f}function oc(n,i=_n(n),s,l,f){return n.tagName!==i||n.typeExpression!==s||n.fullName!==l||n.comment!==f?q(_c(i,s,l,f),n):n}function cc(n,i,s){let l=kn(339,n??Ge("overload"),s);return l.typeExpression=i,l}function Ms(n,i=_n(n),s,l){return n.tagName!==i||n.typeExpression!==s||n.comment!==l?q(cc(i,s,l),n):n}function Ls(n,i,s){let l=kn(328,n??Ge("augments"),s);return l.class=i,l}function ji(n,i=_n(n),s,l){return n.tagName!==i||n.class!==s||n.comment!==l?q(Ls(i,s,l),n):n}function lc(n,i,s){let l=kn(329,n??Ge("implements"),s);return l.class=i,l}function zr(n,i,s){let l=kn(347,n??Ge("see"),s);return l.name=i,l}function Sa(n,i,s,l){return n.tagName!==i||n.name!==s||n.comment!==l?q(zr(i,s,l),n):n}function uc(n){let i=M(310);return i.name=n,i}function Pu(n,i){return n.name!==i?q(uc(i),n):n}function pc(n,i){let s=M(311);return s.left=n,s.right=i,s.transformFlags|=F(s.left)|F(s.right),s}function Nu(n,i,s){return n.left!==i||n.right!==s?q(pc(i,s),n):n}function fc(n,i){let s=M(324);return s.name=n,s.text=i,s}function dc(n,i,s){return n.name!==i?q(fc(i,s),n):n}function mc(n,i){let s=M(325);return s.name=n,s.text=i,s}function Iu(n,i,s){return n.name!==i?q(mc(i,s),n):n}function hc(n,i){let s=M(326);return s.name=n,s.text=i,s}function Ou(n,i,s){return n.name!==i?q(hc(i,s),n):n}function Mu(n,i=_n(n),s,l){return n.tagName!==i||n.class!==s||n.comment!==l?q(lc(i,s,l),n):n}function yc(n,i,s){return kn(n,i??Ge(ol(n)),s)}function Lu(n,i,s=_n(i),l){return i.tagName!==s||i.comment!==l?q(yc(n,s,l),i):i}function gc(n,i,s,l){let f=kn(n,i??Ge(ol(n)),l);return f.typeExpression=s,f}function Ju(n,i,s=_n(i),l,f){return i.tagName!==s||i.typeExpression!==l||i.comment!==f?q(gc(n,s,l,f),i):i}function bc(n,i){return kn(327,n,i)}function ju(n,i,s){return n.tagName!==i||n.comment!==s?q(bc(i,s),n):n}function vc(n,i,s){let l=Fr(340,n??Ge(ol(340)),s);return l.typeExpression=i,l.locals=void 0,l.nextContainer=void 0,l}function Js(n,i=_n(n),s,l){return n.tagName!==i||n.typeExpression!==s||n.comment!==l?q(vc(i,s,l),n):n}function Tc(n,i,s,l,f){let S=kn(351,n??Ge("import"),f);return S.importClause=i,S.moduleSpecifier=s,S.attributes=l,S.comment=f,S}function xc(n,i,s,l,f,S){return n.tagName!==i||n.comment!==S||n.importClause!==s||n.moduleSpecifier!==l||n.attributes!==f?q(Tc(i,s,l,f,S),n):n}function js(n){let i=M(321);return i.text=n,i}function Ru(n,i){return n.text!==i?q(js(i),n):n}function Ri(n,i){let s=M(320);return s.comment=n,s.tags=Pe(i),s}function Sc(n,i,s){return n.comment!==i||n.tags!==s?q(Ri(i,s),n):n}function wc(n,i,s){let l=M(284);return l.openingElement=n,l.children=fe(i),l.closingElement=s,l.transformFlags|=F(l.openingElement)|ke(l.children)|F(l.closingElement)|2,l}function Uu(n,i,s,l){return n.openingElement!==i||n.children!==s||n.closingElement!==l?q(wc(i,s,l),n):n}function kc(n,i,s){let l=M(285);return l.tagName=n,l.typeArguments=Pe(i),l.attributes=s,l.transformFlags|=F(l.tagName)|ke(l.typeArguments)|F(l.attributes)|2,l.typeArguments&&(l.transformFlags|=1),l}function Rs(n,i,s,l){return n.tagName!==i||n.typeArguments!==s||n.attributes!==l?q(kc(i,s,l),n):n}function Us(n,i,s){let l=M(286);return l.tagName=n,l.typeArguments=Pe(i),l.attributes=s,l.transformFlags|=F(l.tagName)|ke(l.typeArguments)|F(l.attributes)|2,i&&(l.transformFlags|=1),l}function Ec(n,i,s,l){return n.tagName!==i||n.typeArguments!==s||n.attributes!==l?q(Us(i,s,l),n):n}function wa(n){let i=M(287);return i.tagName=n,i.transformFlags|=F(i.tagName)|2,i}function Kt(n,i){return n.tagName!==i?q(wa(i),n):n}function Bs(n,i,s){let l=M(288);return l.openingFragment=n,l.children=fe(i),l.closingFragment=s,l.transformFlags|=F(l.openingFragment)|ke(l.children)|F(l.closingFragment)|2,l}function Ac(n,i,s,l){return n.openingFragment!==i||n.children!==s||n.closingFragment!==l?q(Bs(i,s,l),n):n}function ka(n,i){let s=M(12);return s.text=n,s.containsOnlyTriviaWhiteSpaces=!!i,s.transformFlags|=2,s}function Cc(n,i,s){return n.text!==i||n.containsOnlyTriviaWhiteSpaces!==s?q(ka(i,s),n):n}function Bu(){let n=M(289);return n.transformFlags|=2,n}function qu(){let n=M(290);return n.transformFlags|=2,n}function Dc(n,i){let s=ie(291);return s.name=n,s.initializer=i,s.transformFlags|=F(s.name)|F(s.initializer)|2,s}function Ea(n,i,s){return n.name!==i||n.initializer!==s?q(Dc(i,s),n):n}function Pc(n){let i=ie(292);return i.properties=fe(n),i.transformFlags|=ke(i.properties)|2,i}function Fu(n,i){return n.properties!==i?q(Pc(i),n):n}function Nc(n){let i=M(293);return i.expression=n,i.transformFlags|=F(i.expression)|2,i}function zu(n,i){return n.expression!==i?q(Nc(i),n):n}function Aa(n,i){let s=M(294);return s.dotDotDotToken=n,s.expression=i,s.transformFlags|=F(s.dotDotDotToken)|F(s.expression)|2,s}function Ui(n,i){return n.expression!==i?q(Aa(n.dotDotDotToken,i),n):n}function Ic(n,i){let s=M(295);return s.namespace=n,s.name=i,s.transformFlags|=F(s.namespace)|F(s.name)|2,s}function qs(n,i,s){return n.namespace!==i||n.name!==s?q(Ic(i,s),n):n}function Fs(n,i){let s=M(296);return s.expression=o().parenthesizeExpressionForDisallowedComma(n),s.statements=fe(i),s.transformFlags|=F(s.expression)|ke(s.statements),s.jsDoc=void 0,s}function Vu(n,i,s){return n.expression!==i||n.statements!==s?q(Fs(i,s),n):n}function oi(n){let i=M(297);return i.statements=fe(n),i.transformFlags=ke(i.statements),i}function Oc(n,i){return n.statements!==i?q(oi(i),n):n}function Mc(n,i){let s=M(298);switch(s.token=n,s.types=fe(i),s.transformFlags|=ke(s.types),n){case 96:s.transformFlags|=1024;break;case 119:s.transformFlags|=1;break;default:return B.assertNever(n)}return s}function Wu(n,i){return n.types!==i?q(Mc(n.token,i),n):n}function zs(n,i){let s=M(299);return s.variableDeclaration=kr(n),s.block=i,s.transformFlags|=F(s.variableDeclaration)|F(s.block)|(n?0:64),s.locals=void 0,s.nextContainer=void 0,s}function Lc(n,i,s){return n.variableDeclaration!==i||n.block!==s?q(zs(i,s),n):n}function Ca(n,i){let s=ie(303);return s.name=tt(n),s.initializer=o().parenthesizeExpressionForDisallowedComma(i),s.transformFlags|=Un(s.name)|F(s.initializer),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0,s.jsDoc=void 0,s}function Vr(n,i,s){return n.name!==i||n.initializer!==s?Gu(Ca(i,s),n):n}function Gu(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken),q(n,i)}function Jc(n,i){let s=ie(304);return s.name=tt(n),s.objectAssignmentInitializer=i&&o().parenthesizeExpressionForDisallowedComma(i),s.transformFlags|=Ua(s.name)|F(s.objectAssignmentInitializer)|1024,s.equalsToken=void 0,s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0,s.jsDoc=void 0,s}function Yu(n,i,s){return n.name!==i||n.objectAssignmentInitializer!==s?Hu(Jc(i,s),n):n}function Hu(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken,n.equalsToken=i.equalsToken),q(n,i)}function Vs(n){let i=ie(305);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=F(i.expression)|128|65536,i.jsDoc=void 0,i}function jc(n,i){return n.expression!==i?q(Vs(i),n):n}function En(n,i){let s=ie(306);return s.name=tt(n),s.initializer=i&&o().parenthesizeExpressionForDisallowedComma(i),s.transformFlags|=F(s.name)|F(s.initializer)|1,s.jsDoc=void 0,s}function Rc(n,i,s){return n.name!==i||n.initializer!==s?q(En(i,s),n):n}function Xu(n,i,s){let l=t.createBaseSourceFileNode(307);return l.statements=fe(n),l.endOfFileToken=i,l.flags|=s,l.text="",l.fileName="",l.path="",l.resolvedPath="",l.originalFileName="",l.languageVersion=1,l.languageVariant=0,l.scriptKind=0,l.isDeclarationFile=!1,l.hasNoDefaultLib=!1,l.transformFlags|=ke(l.statements)|F(l.endOfFileToken),l.locals=void 0,l.nextContainer=void 0,l.endFlowNode=void 0,l.nodeCount=0,l.identifierCount=0,l.symbolCount=0,l.parseDiagnostics=void 0,l.bindDiagnostics=void 0,l.bindSuggestionDiagnostics=void 0,l.lineMap=void 0,l.externalModuleIndicator=void 0,l.setExternalModuleIndicator=void 0,l.pragmas=void 0,l.checkJsDirective=void 0,l.referencedFiles=void 0,l.typeReferenceDirectives=void 0,l.libReferenceDirectives=void 0,l.amdDependencies=void 0,l.commentDirectives=void 0,l.identifiers=void 0,l.packageJsonLocations=void 0,l.packageJsonScope=void 0,l.imports=void 0,l.moduleAugmentations=void 0,l.ambientModuleNames=void 0,l.classifiableNames=void 0,l.impliedNodeFormat=void 0,l}function Uc(n){let i=Object.create(n.redirectTarget);return Object.defineProperties(i,{id:{get(){return this.redirectInfo.redirectTarget.id},set(s){this.redirectInfo.redirectTarget.id=s}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(s){this.redirectInfo.redirectTarget.symbol=s}}}),i.redirectInfo=n,i}function $u(n){let i=Uc(n.redirectInfo);return i.flags|=n.flags&-17,i.fileName=n.fileName,i.path=n.path,i.resolvedPath=n.resolvedPath,i.originalFileName=n.originalFileName,i.packageJsonLocations=n.packageJsonLocations,i.packageJsonScope=n.packageJsonScope,i.emitNode=void 0,i}function Bc(n){let i=t.createBaseSourceFileNode(307);i.flags|=n.flags&-17;for(let s in n)if(!(Nr(i,s)||!Nr(n,s))){if(s==="emitNode"){i.emitNode=void 0;continue}i[s]=n[s]}return i}function Da(n){let i=n.redirectInfo?$u(n):Bc(n);return a(i,n),i}function Qu(n,i,s,l,f,S,z){let de=Da(n);return de.statements=fe(i),de.isDeclarationFile=s,de.referencedFiles=l,de.typeReferenceDirectives=f,de.hasNoDefaultLib=S,de.libReferenceDirectives=z,de.transformFlags=ke(de.statements)|F(de.endOfFileToken),de}function Ku(n,i,s=n.isDeclarationFile,l=n.referencedFiles,f=n.typeReferenceDirectives,S=n.hasNoDefaultLib,z=n.libReferenceDirectives){return n.statements!==i||n.isDeclarationFile!==s||n.referencedFiles!==l||n.typeReferenceDirectives!==f||n.hasNoDefaultLib!==S||n.libReferenceDirectives!==z?q(Qu(n,i,s,l,f,S,z),n):n}function Ws(n){let i=M(308);return i.sourceFiles=n,i.syntheticFileReferences=void 0,i.syntheticTypeReferences=void 0,i.syntheticLibReferences=void 0,i.hasNoDefaultLib=void 0,i}function Zu(n,i){return n.sourceFiles!==i?q(Ws(i),n):n}function ep(n,i=!1,s){let l=M(237);return l.type=n,l.isSpread=i,l.tupleNameSource=s,l}function Pa(n){let i=M(352);return i._children=n,i}function qc(n){let i=M(353);return i.original=n,gn(i,n),i}function Fc(n,i){let s=M(355);return s.expression=n,s.original=i,s.transformFlags|=F(s.expression)|1,gn(s,i),s}function zc(n,i){return n.expression!==i?q(Fc(i,n.original),n):n}function tp(){return M(354)}function np(n){if(Ra(n)&&!gl(n)&&!n.original&&!n.emitNode&&!n.id){if(g6(n))return n.elements;if(ea(n)&&n6(n.operatorToken))return[n.left,n.right]}return n}function Gs(n){let i=M(356);return i.elements=fe(Ey(n,np)),i.transformFlags|=ke(i.elements),i}function Vc(n,i){return n.elements!==i?q(Gs(i),n):n}function Ys(n,i){let s=M(357);return s.expression=n,s.thisArg=i,s.transformFlags|=F(s.expression)|F(s.thisArg),s}function Wc(n,i,s){return n.expression!==i||n.thisArg!==s?q(Ys(i,s),n):n}function rp(n){let i=Tn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function ip(n){let i=Tn(n.escapedText);i.flags|=n.flags&-17,i.jsDoc=n.jsDoc,i.flowNode=n.flowNode,i.symbol=n.symbol,i.transformFlags=n.transformFlags,a(i,n);let s=getIdentifierTypeArguments(n);return s&&setIdentifierTypeArguments(i,s),i}function Gc(n){let i=Ln(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function Yc(n){let i=Ln(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),i}function Hs(n){if(n===void 0)return n;if(sh(n))return Da(n);if(qa(n))return rp(n);if(Ze(n))return ip(n);if(c1(n))return Gc(n);if(vi(n))return Yc(n);let i=df(n.kind)?t.createBaseNode(n.kind):t.createBaseTokenNode(n.kind);i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n);for(let s in n)Nr(i,s)||!Nr(n,s)||(i[s]=n[s]);return i}function ap(n,i,s){return Ni(ss(void 0,void 0,void 0,void 0,i?[i]:[],void 0,qr(n,!0)),void 0,s?[s]:[])}function sp(n,i,s){return Ni(_s(void 0,void 0,i?[i]:[],void 0,void 0,qr(n,!0)),void 0,s?[s]:[])}function ci(){return os(V("0"))}function Hc(n){return ba(void 0,!1,n)}function _p(n){return va(void 0,!1,Cs([Ta(!1,void 0,n)]))}function Xs(n,i){return i==="null"?ye.createStrictEquality(n,Jt()):i==="undefined"?ye.createStrictEquality(n,ci()):ye.createStrictEquality(pa(n),dt(i))}function op(n,i){return i==="null"?ye.createStrictInequality(n,Jt()):i==="undefined"?ye.createStrictInequality(n,ci()):ye.createStrictInequality(pa(n),dt(i))}function Wr(n,i,s){return Jd(n)?rs(Di(n,void 0,i),void 0,void 0,s):Ni(lr(n,i),void 0,s)}function cp(n,i,s){return Wr(n,"bind",[i,...s])}function lp(n,i,s){return Wr(n,"call",[i,...s])}function up(n,i,s){return Wr(n,"apply",[i,s])}function Bi(n,i,s){return Wr(Ge(n),i,s)}function qi(n,i){return Wr(n,"slice",i===void 0?[]:[fr(i)])}function pp(n,i){return Wr(n,"concat",i)}function $s(n,i,s){return Bi("Object","defineProperty",[n,fr(i),s])}function li(n,i){return Bi("Object","getOwnPropertyDescriptor",[n,fr(i)])}function Xc(n,i,s){return Bi("Reflect","get",s?[n,i,s]:[n,i])}function fp(n,i,s,l){return Bi("Reflect","set",l?[n,i,s,l]:[n,i,s])}function ui(n,i,s){return s?(n.push(Ca(i,s)),!0):!1}function $c(n,i){let s=[];ui(s,"enumerable",fr(n.enumerable)),ui(s,"configurable",fr(n.configurable));let l=ui(s,"writable",fr(n.writable));l=ui(s,"value",n.value)||l;let f=ui(s,"get",n.get);return f=ui(s,"set",n.set)||f,B.assert(!(l&&f),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ci(s,!i)}function dp(n,i){switch(n.kind){case 217:return B_(n,i);case 216:return U_(n,n.type,i);case 234:return ma(n,i,n.type);case 238:return io(n,i,n.type);case 235:return ro(n,i);case 233:return to(n,i,n.typeArguments);case 355:return zc(n,i)}}function mp(n){return Pl(n)&&Ra(n)&&Ra(getSourceMapRange(n))&&Ra(getCommentRange(n))&&!nn(getSyntheticLeadingComments(n))&&!nn(getSyntheticTrailingComments(n))}function Qc(n,i,s=63){return n&&fh(n,s)&&!mp(n)?dp(n,Qc(n.expression,i)):i}function Qs(n,i,s){if(!i)return n;let l=So(i,i.label,eh(i.statement)?Qs(n,i.statement):n);return s&&s(i),l}function Ks(n,i){let s=Tf(n);switch(s.kind){case 80:return i;case 110:case 9:case 10:case 11:return!1;case 209:return s.elements.length!==0;case 210:return s.properties.length>0;default:return!0}}function Kc(n,i,s,l=!1){let f=Wf(n,63),S,z;return zd(f)?(S=Ut(),z=f):Dp(f)?(S=Ut(),z=s!==void 0&&s<2?gn(Ge("_super"),f):f):Wa(f)&8192?(S=ci(),z=o().parenthesizeLeftSideOfAccess(f,!1)):dr(f)?Ks(f.expression,l)?(S=ar(i),z=lr(gn(ye.createAssignment(S,f.expression),f.expression),f.name),gn(z,f)):(S=f.expression,z=f):$a(f)?Ks(f.expression,l)?(S=ar(i),z=Pi(gn(ye.createAssignment(S,f.expression),f.expression),f.argumentExpression),gn(z,f)):(S=f.expression,z=f):(S=ci(),z=o().parenthesizeLeftSideOfAccess(n,!1)),{target:z,thisArg:S}}function _(n,i){return lr(as(Ci([R(void 0,"value",[hr(void 0,void 0,n,void 0,void 0,void 0)],qr([Oi(i)]))])),"value")}function p(n){return n.length>10?Gs(n):Jy(n,ye.createComma)}function d(n,i,s,l=0,f){let S=f?n&&uf(n):n1(n);if(S&&Ze(S)&&!qa(S)){let z=wf(gn(Hs(S),S),S.parent);return l|=Wa(S),s||(l|=96),i||(l|=3072),l&&setEmitFlags(z,l),z}return Fn(n)}function b(n,i,s){return d(n,i,s,98304)}function w(n,i,s,l){return d(n,i,s,32768,l)}function I(n,i,s){return d(n,i,s,16384)}function $(n,i,s){return d(n,i,s)}function se(n,i,s,l){let f=lr(n,Ra(i)?i:Hs(i));gn(f,i);let S=0;return l||(S|=96),s||(S|=3072),S&&setEmitFlags(f,S),f}function Z(n,i,s,l){return n&&S_(i,32)?se(n,d(i),s,l):I(i,s,l)}function ee(n,i,s,l){let f=Re(n,i,0,s);return Ae(n,i,f,l)}function ce(n){return Si(n.expression)&&n.expression.text==="use strict"}function je(){return U6(Oi(dt("use strict")))}function Re(n,i,s=0,l){B.assert(i.length===0,"Prologue directives should be at the first statement in the target statements array");let f=!1,S=n.length;for(;sde&&en.splice(f,0,...i.slice(de,Ue)),de>z&&en.splice(l,0,...i.slice(z,de)),z>S&&en.splice(s,0,...i.slice(S,z)),S>0)if(s===0)en.splice(0,0,...i.slice(0,S));else{let An=new Map;for(let Kn=0;Kn=0;Kn--){let Ia=i[Kn];An.has(Ia.expression.text)||en.unshift(Ia)}}return yi(n)?gn(fe(en,n.hasTrailingComma),n):n}function Rn(n,i){let s;return typeof i=="number"?s=xn(i):s=i,Af(n)?_r(n,s,n.name,n.constraint,n.default):g_(n)?yr(n,s,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):If(n)?Ve(n,s,n.typeParameters,n.parameters,n.type):L1(n)?Gn(n,s,n.name,n.questionToken,n.type):Ya(n)?J(n,s,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):J1(n)?me(n,s,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):b_(n)?Xe(n,s,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):Cf(n)?Lr(n,s,n.parameters,n.body):Tl(n)?Yn(n,s,n.name,n.parameters,n.type,n.body):v_(n)?Q(n,s,n.name,n.parameters,n.body):Df(n)?et(n,s,n.parameters,n.type):Lf(n)?q_(n,s,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Jf(n)?F_(n,s,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):xl(n)?us(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):Qa(n)?_o(n,s,n.declarationList):Rf(n)?Ss(n,s,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Ha(n)?ga(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):w_(n)?No(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):Il(n)?Tr(n,s,n.name,n.typeParameters,n.type):nh(n)?xr(n,s,n.name,n.members):wi(n)?Et(n,s,n.name,n.body):Uf(n)?jo(n,s,n.isTypeOnly,n.name,n.moduleReference):Bf(n)?Uo(n,s,n.importClause,n.moduleSpecifier,n.attributes):qf(n)?Li(n,s,n.expression):Ff(n)?Qo(n,s,n.isTypeOnly,n.exportClause,n.moduleSpecifier,n.attributes):B.assertNever(n)}function Gr(n,i){return g_(n)?yr(n,i,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Ya(n)?J(n,i,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):b_(n)?Xe(n,i,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):Tl(n)?Yn(n,i,n.name,n.parameters,n.type,n.body):v_(n)?Q(n,i,n.name,n.parameters,n.body):xl(n)?us(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):Ha(n)?ga(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):B.assertNever(n)}function hp(n,i){switch(n.kind){case 177:return Yn(n,n.modifiers,i,n.parameters,n.type,n.body);case 178:return Q(n,n.modifiers,i,n.parameters,n.body);case 174:return Xe(n,n.modifiers,n.asteriskToken,i,n.questionToken,n.typeParameters,n.parameters,n.type,n.body);case 173:return me(n,n.modifiers,i,n.questionToken,n.typeParameters,n.parameters,n.type);case 172:return J(n,n.modifiers,i,n.questionToken??n.exclamationToken,n.type,n.initializer);case 171:return Gn(n,n.modifiers,i,n.questionToken,n.type);case 303:return Vr(n,i,n.initializer)}}function Pe(n){return n?fe(n):void 0}function tt(n){return typeof n=="string"?Ge(n):n}function fr(n){return typeof n=="string"?dt(n):typeof n=="number"?V(n):typeof n=="boolean"?n?lt():sr():n}function Na(n){return n&&o().parenthesizeExpressionForDisallowedComma(n)}function Zc(n){return typeof n=="number"?ct(n):n}function Ot(n){return n&&b6(n)?gn(a(oo(),n),n):n}function kr(n){return typeof n=="string"||n&&!jf(n)?ya(n,void 0,void 0,void 0):n}function q(n,i){return n!==i&&(a(n,i),gn(n,i)),n}}function ol(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return B.fail(`Unsupported kind: ${B.formatSyntaxKind(e)}`)}}var Cn,Xd={};function Xb(e,t){switch(Cn||(Cn=of(99,!1,0)),e){case 15:Cn.setText("`"+t+"`");break;case 16:Cn.setText("`"+t+"${");break;case 17:Cn.setText("}"+t+"${");break;case 18:Cn.setText("}"+t+"`");break}let a=Cn.scan();if(a===20&&(a=Cn.reScanTemplateToken(!1)),Cn.isUnterminated())return Cn.setText(void 0),Xd;let o;switch(a){case 15:case 16:case 17:case 18:o=Cn.getTokenValue();break}return o===void 0||Cn.scan()!==1?(Cn.setText(void 0),Xd):(Cn.setText(void 0),o)}function Un(e){return e&&Ze(e)?Ua(e):F(e)}function Ua(e){return F(e)&-67108865}function $b(e,t){return t|e.transformFlags&134234112}function F(e){if(!e)return 0;let t=e.transformFlags&~Qb(e.kind);return Lg(e)&&l1(e.name)?$b(e.name,t):t}function ke(e){return e?e.transformFlags:0}function $d(e){let t=0;for(let a of e)t|=F(a);e.transformFlags=t}function Qb(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 355:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}var t_=Gb();function n_(e){return e.flags|=16,e}var Kb={createBaseSourceFileNode:e=>n_(t_.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>n_(t_.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>n_(t_.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>n_(t_.createBaseTokenNode(e)),createBaseNode:e=>n_(t_.createBaseNode(e))},q3=kf(4,Kb);function Zb(e,t){if(e.original!==t&&(e.original=t,t)){let a=t.emitNode;a&&(e.emitNode=e6(a,e.emitNode))}return e}function e6(e,t){let{flags:a,internalFlags:o,leadingComments:m,trailingComments:v,commentRange:E,sourceMapRange:C,tokenSourceMapRanges:c,constantValue:W,helpers:h,startsOnNewLine:y,snippetElement:g,classThis:x,assignedName:N}=e;if(t||(t={}),a&&(t.flags=a),o&&(t.internalFlags=o&-9),m&&(t.leadingComments=Nn(m.slice(),t.leadingComments)),v&&(t.trailingComments=Nn(v.slice(),t.trailingComments)),E&&(t.commentRange=E),C&&(t.sourceMapRange=C),c&&(t.tokenSourceMapRanges=t6(c,t.tokenSourceMapRanges)),W!==void 0&&(t.constantValue=W),h)for(let te of h)t.helpers=Py(t.helpers,te);return y!==void 0&&(t.startsOnNewLine=y),g!==void 0&&(t.snippetElement=g),x&&(t.classThis=x),N&&(t.assignedName=N),t}function t6(e,t){t||(t=[]);for(let a in e)t[a]=e[a];return t}function na(e){return e.kind===9}function I1(e){return e.kind===10}function Si(e){return e.kind===11}function O1(e){return e.kind===15}function n6(e){return e.kind===28}function Qd(e){return e.kind===54}function Kd(e){return e.kind===58}function Ze(e){return e.kind===80}function vi(e){return e.kind===81}function r6(e){return e.kind===95}function cl(e){return e.kind===134}function Dp(e){return e.kind===108}function i6(e){return e.kind===102}function M1(e){return e.kind===166}function Ef(e){return e.kind===167}function Af(e){return e.kind===168}function g_(e){return e.kind===169}function Dl(e){return e.kind===170}function L1(e){return e.kind===171}function Ya(e){return e.kind===172}function J1(e){return e.kind===173}function b_(e){return e.kind===174}function Cf(e){return e.kind===176}function Tl(e){return e.kind===177}function v_(e){return e.kind===178}function j1(e){return e.kind===179}function R1(e){return e.kind===180}function Df(e){return e.kind===181}function U1(e){return e.kind===182}function Pf(e){return e.kind===183}function Nf(e){return e.kind===184}function If(e){return e.kind===185}function a6(e){return e.kind===186}function B1(e){return e.kind===187}function s6(e){return e.kind===188}function _6(e){return e.kind===189}function q1(e){return e.kind===202}function o6(e){return e.kind===190}function c6(e){return e.kind===191}function F1(e){return e.kind===192}function z1(e){return e.kind===193}function l6(e){return e.kind===194}function u6(e){return e.kind===195}function V1(e){return e.kind===196}function p6(e){return e.kind===197}function W1(e){return e.kind===198}function f6(e){return e.kind===199}function G1(e){return e.kind===200}function d6(e){return e.kind===201}function m6(e){return e.kind===205}function Y1(e){return e.kind===208}function H1(e){return e.kind===209}function Of(e){return e.kind===210}function dr(e){return e.kind===211}function $a(e){return e.kind===212}function Mf(e){return e.kind===213}function X1(e){return e.kind===215}function Pl(e){return e.kind===217}function Lf(e){return e.kind===218}function Jf(e){return e.kind===219}function h6(e){return e.kind===222}function $1(e){return e.kind===224}function ea(e){return e.kind===226}function Q1(e){return e.kind===230}function xl(e){return e.kind===231}function K1(e){return e.kind===232}function Z1(e){return e.kind===233}function fl(e){return e.kind===235}function y6(e){return e.kind===236}function g6(e){return e.kind===356}function Qa(e){return e.kind===243}function Nl(e){return e.kind===244}function eh(e){return e.kind===256}function jf(e){return e.kind===260}function th(e){return e.kind===261}function Rf(e){return e.kind===262}function Ha(e){return e.kind===263}function w_(e){return e.kind===264}function Il(e){return e.kind===265}function nh(e){return e.kind===266}function wi(e){return e.kind===267}function Uf(e){return e.kind===271}function Bf(e){return e.kind===272}function qf(e){return e.kind===277}function Ff(e){return e.kind===278}function rh(e){return e.kind===279}function b6(e){return e.kind===353}function zf(e){return e.kind===283}function Vp(e){return e.kind===286}function v6(e){return e.kind===289}function ih(e){return e.kind===295}function T6(e){return e.kind===297}function ah(e){return e.kind===303}function sh(e){return e.kind===307}function _h(e){return e.kind===309}function oh(e){return e.kind===314}function ch(e){return e.kind===317}function lh(e){return e.kind===320}function x6(e){return e.kind===322}function Ol(e){return e.kind===323}function S6(e){return e.kind===328}function w6(e){return e.kind===333}function k6(e){return e.kind===334}function E6(e){return e.kind===335}function A6(e){return e.kind===336}function C6(e){return e.kind===337}function D6(e){return e.kind===339}function P6(e){return e.kind===331}function Wp(e){return e.kind===341}function N6(e){return e.kind===342}function Vf(e){return e.kind===344}function uh(e){return e.kind===345}function I6(e){return e.kind===329}function O6(e){return e.kind===350}var Ki=new WeakMap;function ph(e,t){var a;let o=e.kind;return df(o)?o===352?e._children:(a=Ki.get(t))==null?void 0:a.get(e):bt}function M6(e,t,a){e.kind===352&&B.fail("Should not need to re-set the children of a SyntaxList.");let o=Ki.get(t);return o===void 0&&(o=new WeakMap,Ki.set(t,o)),o.set(e,a),a}function Zd(e,t){var a;e.kind===352&&B.fail("Did not expect to unset the children of a SyntaxList."),(a=Ki.get(t))==null||a.delete(e)}function L6(e,t){let a=Ki.get(e);a!==void 0&&(Ki.delete(e),Ki.set(t,a))}function em(e){return(Wa(e)&32768)!==0}function J6(e){return Si(e.expression)&&e.expression.text==="use strict"}function j6(e){for(let t of e)if(pl(t)){if(J6(t))return t}else break}function R6(e){return Pl(e)&&ta(e)&&!!Xg(e)}function fh(e,t=63){switch(e.kind){case 217:return t&-2147483648&&R6(e)?!1:(t&1)!==0;case 216:case 234:return(t&2)!==0;case 238:return(t&34)!==0;case 233:return(t&16)!==0;case 235:return(t&4)!==0;case 355:return(t&8)!==0}return!1}function Wf(e,t=63){for(;fh(e,t);)e=e.expression;return e}function U6(e){return setStartsOnNewLine(e,!0)}function __(e){if(u2(e))return e.name;if(o2(e)){switch(e.kind){case 303:return __(e.initializer);case 304:return e.name;case 305:return __(e.expression)}return}return vl(e,!0)?__(e.left):Q1(e)?__(e.expression):e}function B6(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function tm(e){if(e){let t=e;for(;;){if(Ze(t)||!t.body)return Ze(t)?t:t.name;t=t.body}}}var nm;(e=>{function t(h,y,g,x,N,te,ue){let ye=y>0?N[y-1]:void 0;return B.assertEqual(g[y],t),N[y]=h.onEnter(x[y],ye,ue),g[y]=C(h,t),y}e.enter=t;function a(h,y,g,x,N,te,ue){B.assertEqual(g[y],a),B.assertIsDefined(h.onLeft),g[y]=C(h,a);let ye=h.onLeft(x[y].left,N[y],x[y]);return ye?(W(y,x,ye),c(y,g,x,N,ye)):y}e.left=a;function o(h,y,g,x,N,te,ue){return B.assertEqual(g[y],o),B.assertIsDefined(h.onOperator),g[y]=C(h,o),h.onOperator(x[y].operatorToken,N[y],x[y]),y}e.operator=o;function m(h,y,g,x,N,te,ue){B.assertEqual(g[y],m),B.assertIsDefined(h.onRight),g[y]=C(h,m);let ye=h.onRight(x[y].right,N[y],x[y]);return ye?(W(y,x,ye),c(y,g,x,N,ye)):y}e.right=m;function v(h,y,g,x,N,te,ue){B.assertEqual(g[y],v),g[y]=C(h,v);let ye=h.onExit(x[y],N[y]);if(y>0){if(y--,h.foldState){let fe=g[y]===v?"right":"left";N[y]=h.foldState(N[y],ye,fe)}}else te.value=ye;return y}e.exit=v;function E(h,y,g,x,N,te,ue){return B.assertEqual(g[y],E),y}e.done=E;function C(h,y){switch(y){case t:if(h.onLeft)return a;case a:if(h.onOperator)return o;case o:if(h.onRight)return m;case m:return v;case v:return E;case E:return E;default:B.fail("Invalid state")}}e.nextState=C;function c(h,y,g,x,N){return h++,y[h]=t,g[h]=N,x[h]=void 0,h}function W(h,y,g){if(B.shouldAssert(2))for(;h>=0;)B.assert(y[h]!==g,"Circular traversal detected."),h--}})(nm||(nm={}));function rm(e,t){return typeof e=="object"?Gp(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function q6(e,t){return typeof e=="string"?e:F6(e,B.checkDefined(t))}function F6(e,t){return c1(e)?t(e).slice(1):qa(e)?t(e):vi(e)?e.escapedText.slice(1):In(e)}function Gp(e,t,a,o,m){return t=rm(t,m),o=rm(o,m),a=q6(a,m),`${e?"#":""}${t}${a}${o}`}function dh(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of B6(e)){let a=__(t);if(a&&l2(a)&&(a.transformFlags&65536||a.transformFlags&128&&dh(a)))return!0}return!1}function gn(e,t){return t?bi(e,t.pos,t.end):e}function Ml(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function Gf(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var im,am,sm,_m,om,z6={createBaseSourceFileNode:e=>new(om||(om=At.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(sm||(sm=At.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(_m||(_m=At.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(am||(am=At.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(im||(im=At.getNodeConstructor()))(e,-1,-1)},F3=kf(1,z6);function k(e,t){return t&&e(t)}function ae(e,t,a){if(a){if(t)return t(a);for(let o of a){let m=e(o);if(m)return m}}}function V6(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function W6(e){return qn(e.statements,G6)||Y6(e)}function G6(e){return Ml(e)&&H6(e,95)||Uf(e)&&zf(e.moduleReference)||Bf(e)||qf(e)||Ff(e)?e:void 0}function Y6(e){return e.flags&8388608?mh(e):void 0}function mh(e){return X6(e)?e:Ht(e,mh)}function H6(e,t){return nn(e.modifiers,a=>a.kind===t)}function X6(e){return y6(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var $6={166:function(t,a,o){return k(a,t.left)||k(a,t.right)},168:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.constraint)||k(a,t.default)||k(a,t.expression)},304:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.equalsToken)||k(a,t.objectAssignmentInitializer)},305:function(t,a,o){return k(a,t.expression)},169:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.dotDotDotToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)||k(a,t.initializer)},172:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.type)||k(a,t.initializer)},171:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)||k(a,t.initializer)},303:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.initializer)},260:function(t,a,o){return k(a,t.name)||k(a,t.exclamationToken)||k(a,t.type)||k(a,t.initializer)},208:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.propertyName)||k(a,t.name)||k(a,t.initializer)},181:function(t,a,o){return ae(a,o,t.modifiers)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)},185:function(t,a,o){return ae(a,o,t.modifiers)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)},184:function(t,a,o){return ae(a,o,t.modifiers)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)},179:cm,180:cm,174:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},173:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)},176:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},177:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},178:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},262:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},218:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},219:function(t,a,o){return ae(a,o,t.modifiers)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.equalsGreaterThanToken)||k(a,t.body)},175:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.body)},183:function(t,a,o){return k(a,t.typeName)||ae(a,o,t.typeArguments)},182:function(t,a,o){return k(a,t.assertsModifier)||k(a,t.parameterName)||k(a,t.type)},186:function(t,a,o){return k(a,t.exprName)||ae(a,o,t.typeArguments)},187:function(t,a,o){return ae(a,o,t.members)},188:function(t,a,o){return k(a,t.elementType)},189:function(t,a,o){return ae(a,o,t.elements)},192:lm,193:lm,194:function(t,a,o){return k(a,t.checkType)||k(a,t.extendsType)||k(a,t.trueType)||k(a,t.falseType)},195:function(t,a,o){return k(a,t.typeParameter)},205:function(t,a,o){return k(a,t.argument)||k(a,t.attributes)||k(a,t.qualifier)||ae(a,o,t.typeArguments)},302:function(t,a,o){return k(a,t.assertClause)},196:um,198:um,199:function(t,a,o){return k(a,t.objectType)||k(a,t.indexType)},200:function(t,a,o){return k(a,t.readonlyToken)||k(a,t.typeParameter)||k(a,t.nameType)||k(a,t.questionToken)||k(a,t.type)||ae(a,o,t.members)},201:function(t,a,o){return k(a,t.literal)},202:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)},206:pm,207:pm,209:function(t,a,o){return ae(a,o,t.elements)},210:function(t,a,o){return ae(a,o,t.properties)},211:function(t,a,o){return k(a,t.expression)||k(a,t.questionDotToken)||k(a,t.name)},212:function(t,a,o){return k(a,t.expression)||k(a,t.questionDotToken)||k(a,t.argumentExpression)},213:fm,214:fm,215:function(t,a,o){return k(a,t.tag)||k(a,t.questionDotToken)||ae(a,o,t.typeArguments)||k(a,t.template)},216:function(t,a,o){return k(a,t.type)||k(a,t.expression)},217:function(t,a,o){return k(a,t.expression)},220:function(t,a,o){return k(a,t.expression)},221:function(t,a,o){return k(a,t.expression)},222:function(t,a,o){return k(a,t.expression)},224:function(t,a,o){return k(a,t.operand)},229:function(t,a,o){return k(a,t.asteriskToken)||k(a,t.expression)},223:function(t,a,o){return k(a,t.expression)},225:function(t,a,o){return k(a,t.operand)},226:function(t,a,o){return k(a,t.left)||k(a,t.operatorToken)||k(a,t.right)},234:function(t,a,o){return k(a,t.expression)||k(a,t.type)},235:function(t,a,o){return k(a,t.expression)},238:function(t,a,o){return k(a,t.expression)||k(a,t.type)},236:function(t,a,o){return k(a,t.name)},227:function(t,a,o){return k(a,t.condition)||k(a,t.questionToken)||k(a,t.whenTrue)||k(a,t.colonToken)||k(a,t.whenFalse)},230:function(t,a,o){return k(a,t.expression)},241:dm,268:dm,307:function(t,a,o){return ae(a,o,t.statements)||k(a,t.endOfFileToken)},243:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.declarationList)},261:function(t,a,o){return ae(a,o,t.declarations)},244:function(t,a,o){return k(a,t.expression)},245:function(t,a,o){return k(a,t.expression)||k(a,t.thenStatement)||k(a,t.elseStatement)},246:function(t,a,o){return k(a,t.statement)||k(a,t.expression)},247:function(t,a,o){return k(a,t.expression)||k(a,t.statement)},248:function(t,a,o){return k(a,t.initializer)||k(a,t.condition)||k(a,t.incrementor)||k(a,t.statement)},249:function(t,a,o){return k(a,t.initializer)||k(a,t.expression)||k(a,t.statement)},250:function(t,a,o){return k(a,t.awaitModifier)||k(a,t.initializer)||k(a,t.expression)||k(a,t.statement)},251:mm,252:mm,253:function(t,a,o){return k(a,t.expression)},254:function(t,a,o){return k(a,t.expression)||k(a,t.statement)},255:function(t,a,o){return k(a,t.expression)||k(a,t.caseBlock)},269:function(t,a,o){return ae(a,o,t.clauses)},296:function(t,a,o){return k(a,t.expression)||ae(a,o,t.statements)},297:function(t,a,o){return ae(a,o,t.statements)},256:function(t,a,o){return k(a,t.label)||k(a,t.statement)},257:function(t,a,o){return k(a,t.expression)},258:function(t,a,o){return k(a,t.tryBlock)||k(a,t.catchClause)||k(a,t.finallyBlock)},299:function(t,a,o){return k(a,t.variableDeclaration)||k(a,t.block)},170:function(t,a,o){return k(a,t.expression)},263:hm,231:hm,264:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||ae(a,o,t.typeParameters)||ae(a,o,t.heritageClauses)||ae(a,o,t.members)},265:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||ae(a,o,t.typeParameters)||k(a,t.type)},266:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||ae(a,o,t.members)},306:function(t,a,o){return k(a,t.name)||k(a,t.initializer)},267:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.body)},271:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.moduleReference)},272:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.importClause)||k(a,t.moduleSpecifier)||k(a,t.attributes)},273:function(t,a,o){return k(a,t.name)||k(a,t.namedBindings)},300:function(t,a,o){return ae(a,o,t.elements)},301:function(t,a,o){return k(a,t.name)||k(a,t.value)},270:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)},274:function(t,a,o){return k(a,t.name)},280:function(t,a,o){return k(a,t.name)},275:ym,279:ym,278:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.exportClause)||k(a,t.moduleSpecifier)||k(a,t.attributes)},276:gm,281:gm,277:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.expression)},228:function(t,a,o){return k(a,t.head)||ae(a,o,t.templateSpans)},239:function(t,a,o){return k(a,t.expression)||k(a,t.literal)},203:function(t,a,o){return k(a,t.head)||ae(a,o,t.templateSpans)},204:function(t,a,o){return k(a,t.type)||k(a,t.literal)},167:function(t,a,o){return k(a,t.expression)},298:function(t,a,o){return ae(a,o,t.types)},233:function(t,a,o){return k(a,t.expression)||ae(a,o,t.typeArguments)},283:function(t,a,o){return k(a,t.expression)},282:function(t,a,o){return ae(a,o,t.modifiers)},356:function(t,a,o){return ae(a,o,t.elements)},284:function(t,a,o){return k(a,t.openingElement)||ae(a,o,t.children)||k(a,t.closingElement)},288:function(t,a,o){return k(a,t.openingFragment)||ae(a,o,t.children)||k(a,t.closingFragment)},285:bm,286:bm,292:function(t,a,o){return ae(a,o,t.properties)},291:function(t,a,o){return k(a,t.name)||k(a,t.initializer)},293:function(t,a,o){return k(a,t.expression)},294:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.expression)},287:function(t,a,o){return k(a,t.tagName)},295:function(t,a,o){return k(a,t.namespace)||k(a,t.name)},190:Gi,191:Gi,309:Gi,315:Gi,314:Gi,316:Gi,318:Gi,317:function(t,a,o){return ae(a,o,t.parameters)||k(a,t.type)},320:function(t,a,o){return(typeof t.comment=="string"?void 0:ae(a,o,t.comment))||ae(a,o,t.tags)},347:function(t,a,o){return k(a,t.tagName)||k(a,t.name)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment))},310:function(t,a,o){return k(a,t.name)},311:function(t,a,o){return k(a,t.left)||k(a,t.right)},341:vm,348:vm,330:function(t,a,o){return k(a,t.tagName)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment))},329:function(t,a,o){return k(a,t.tagName)||k(a,t.class)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment))},328:function(t,a,o){return k(a,t.tagName)||k(a,t.class)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment))},345:function(t,a,o){return k(a,t.tagName)||k(a,t.constraint)||ae(a,o,t.typeParameters)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment))},346:function(t,a,o){return k(a,t.tagName)||(t.typeExpression&&t.typeExpression.kind===309?k(a,t.typeExpression)||k(a,t.fullName)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment)):k(a,t.fullName)||k(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment)))},338:function(t,a,o){return k(a,t.tagName)||k(a,t.fullName)||k(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment))},342:Yi,344:Yi,343:Yi,340:Yi,350:Yi,349:Yi,339:Yi,323:function(t,a,o){return qn(t.typeParameters,a)||qn(t.parameters,a)||k(a,t.type)},324:Pp,325:Pp,326:Pp,322:function(t,a,o){return qn(t.jsDocPropertyTags,a)},327:fi,332:fi,333:fi,334:fi,335:fi,336:fi,331:fi,337:fi,351:Q6,355:K6};function cm(e,t,a){return ae(t,a,e.typeParameters)||ae(t,a,e.parameters)||k(t,e.type)}function lm(e,t,a){return ae(t,a,e.types)}function um(e,t,a){return k(t,e.type)}function pm(e,t,a){return ae(t,a,e.elements)}function fm(e,t,a){return k(t,e.expression)||k(t,e.questionDotToken)||ae(t,a,e.typeArguments)||ae(t,a,e.arguments)}function dm(e,t,a){return ae(t,a,e.statements)}function mm(e,t,a){return k(t,e.label)}function hm(e,t,a){return ae(t,a,e.modifiers)||k(t,e.name)||ae(t,a,e.typeParameters)||ae(t,a,e.heritageClauses)||ae(t,a,e.members)}function ym(e,t,a){return ae(t,a,e.elements)}function gm(e,t,a){return k(t,e.propertyName)||k(t,e.name)}function bm(e,t,a){return k(t,e.tagName)||ae(t,a,e.typeArguments)||k(t,e.attributes)}function Gi(e,t,a){return k(t,e.type)}function vm(e,t,a){return k(t,e.tagName)||(e.isNameFirst?k(t,e.name)||k(t,e.typeExpression):k(t,e.typeExpression)||k(t,e.name))||(typeof e.comment=="string"?void 0:ae(t,a,e.comment))}function Yi(e,t,a){return k(t,e.tagName)||k(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ae(t,a,e.comment))}function Pp(e,t,a){return k(t,e.name)}function fi(e,t,a){return k(t,e.tagName)||(typeof e.comment=="string"?void 0:ae(t,a,e.comment))}function Q6(e,t,a){return k(t,e.tagName)||k(t,e.importClause)||k(t,e.moduleSpecifier)||k(t,e.attributes)||(typeof e.comment=="string"?void 0:ae(t,a,e.comment))}function K6(e,t,a){return k(t,e.expression)}function Ht(e,t,a){if(e===void 0||e.kind<=165)return;let o=$6[e.kind];return o===void 0?void 0:o(e,t,a)}function Tm(e,t,a){let o=xm(e),m=[];for(;m.length=0;--C)o.push(v[C]),m.push(E)}else{let C=t(v,E);if(C){if(C==="skip")continue;return C}if(v.kind>=166)for(let c of xm(v))o.push(c),m.push(v)}}}function xm(e){let t=[];return Ht(e,a,a),t;function a(o){t.unshift(o)}}function hh(e){e.externalModuleIndicator=W6(e)}function yh(e,t,a,o=!1,m){var v,E;(v=ll)==null||v.push(ll.Phase.Parse,"createSourceFile",{path:e},!0),Ed("beforeParse");let C,{languageVersion:c,setExternalModuleIndicator:W,impliedNodeFormat:h,jsDocParsingMode:y}=typeof a=="object"?a:{languageVersion:a};if(c===100)C=Zi.parseSourceFile(e,t,c,void 0,o,6,Ga,y);else{let g=h===void 0?W:x=>(x.impliedNodeFormat=h,(W||hh)(x));C=Zi.parseSourceFile(e,t,c,void 0,o,m,g,y)}return Ed("afterParse"),Qy("Parse","beforeParse","afterParse"),(E=ll)==null||E.pop(),C}function gh(e){return e.externalModuleIndicator!==void 0}function Z6(e,t,a,o=!1){let m=Sl.updateSourceFile(e,t,a,o);return m.flags|=e.flags&12582912,m}var Zi;(e=>{var t=of(99,!0),a=40960,o,m,v,E,C;function c(_){return sr++,_}var W={createBaseSourceFileNode:_=>c(new C(_,0,0)),createBaseIdentifierNode:_=>c(new v(_,0,0)),createBasePrivateIdentifierNode:_=>c(new E(_,0,0)),createBaseTokenNode:_=>c(new m(_,0,0)),createBaseNode:_=>c(new o(_,0,0))},h=kf(11,W),{createNodeArray:y,createNumericLiteral:g,createStringLiteral:x,createLiteralLikeNode:N,createIdentifier:te,createPrivateIdentifier:ue,createToken:ye,createArrayLiteralExpression:fe,createObjectLiteralExpression:M,createPropertyAccessExpression:ie,createPropertyAccessChain:Ce,createElementAccessExpression:V,createElementAccessChain:oe,createCallExpression:G,createCallChain:dt,createNewExpression:rr,createParenthesizedExpression:vn,createBlock:ir,createVariableStatement:Tn,createExpressionStatement:Mn,createIfStatement:Ge,createWhileStatement:ar,createForStatement:Or,createForOfStatement:Mt,createVariableDeclaration:Fn,createVariableDeclarationList:Ln}=h,Lt,vt,Qe,zn,$t,ct,at,Ut,Jt,lt,sr,mt,xn,yt,ln,nt,Bt=!0,an=!1;function _r(_,p,d,b,w=!1,I,$,se=0){var Z;if(I=Ob(_,I),I===6){let ce=yr(_,p,d,b,w);return convertToJson(ce,(Z=ce.statements[0])==null?void 0:Z.expression,ce.parseDiagnostics,!1,void 0),ce.referencedFiles=bt,ce.typeReferenceDirectives=bt,ce.libReferenceDirectives=bt,ce.amdDependencies=bt,ce.hasNoDefaultLib=!1,ce.pragmas=Sy,ce}Vn(_,p,d,b,I,se);let ee=Mr(d,w,I,$||hh,se);return Wn(),ee}e.parseSourceFile=_r;function hr(_,p){Vn("",_,p,void 0,1,0),U();let d=Br(!0),b=u()===1&&!at.length;return Wn(),b?d:void 0}e.parseIsolatedEntityName=hr;function yr(_,p,d=2,b,w=!1){Vn(_,p,d,b,6,0),vt=nt,U();let I=L(),$,se;if(u()===1)$=Ct([],I,I),se=Wt();else{let ce;for(;u()!==1;){let Ae;switch(u()){case 23:Ae=oc();break;case 112:case 97:case 106:Ae=Wt();break;case 41:Y(()=>U()===9&&U()!==59)?Ae=Go():Ae=Ms();break;case 9:case 11:if(Y(()=>U()!==59)){Ae=$n();break}default:Ae=Ms();break}ce&&Qr(ce)?ce.push(Ae):ce?ce=[ce,Ae]:(ce=Ae,u()!==1&&Ee(A.Unexpected_token))}let je=Qr(ce)?P(fe(ce),I):B.checkDefined(ce),Re=Mn(je);P(Re,I),$=Ct([Re],I),se=Xn(1,A.Unexpected_token)}let Z=_e(_,2,6,!1,$,se,vt,Ga);w&&J(Z),Z.nodeCount=sr,Z.identifierCount=xn,Z.identifiers=mt,Z.parseDiagnostics=Wi(at,Z),Ut&&(Z.jsDocDiagnostics=Wi(Ut,Z));let ee=Z;return Wn(),ee}e.parseJsonText=yr;function Vn(_,p,d,b,w,I){switch(o=At.getNodeConstructor(),m=At.getTokenConstructor(),v=At.getIdentifierConstructor(),E=At.getPrivateIdentifierConstructor(),C=At.getSourceFileConstructor(),Lt=_g(_),Qe=p,zn=d,Jt=b,$t=w,ct=Gd(w),at=[],yt=0,mt=new Map,xn=0,sr=0,vt=0,Bt=!0,$t){case 1:case 2:nt=524288;break;case 6:nt=134742016;break;default:nt=0;break}an=!1,t.setText(Qe),t.setOnError(ti),t.setScriptTarget(zn),t.setLanguageVariant(ct),t.setScriptKind($t),t.setJSDocParsingMode(I)}function Wn(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Qe=void 0,zn=void 0,Jt=void 0,$t=void 0,ct=void 0,vt=0,at=void 0,Ut=void 0,yt=0,mt=void 0,ln=void 0,Bt=!0}function Mr(_,p,d,b,w){let I=nv(Lt);I&&(nt|=33554432),vt=nt,U();let $=wn(0,Kt);B.assert(u()===1);let se=qe(),Z=De(Wt(),se),ee=_e(Lt,_,d,I,$,Z,vt,b);return av(ee,Qe),sv(ee,ce),ee.commentDirectives=t.getCommentDirectives(),ee.nodeCount=sr,ee.identifierCount=xn,ee.identifiers=mt,ee.parseDiagnostics=Wi(at,ee),ee.jsDocParsingMode=w,Ut&&(ee.jsDocDiagnostics=Wi(Ut,ee)),p&&J(ee),ee;function ce(je,Re,Ae){at.push(La(Lt,Qe,je,Re,Ae))}}let Gn=!1;function De(_,p){if(!p)return _;B.assert(!_.jsDoc);let d=Ay(D2(_,Qe),b=>Kc.parseJSDocComment(_,b.pos,b.end-b.pos));return d.length&&(_.jsDoc=d),Gn&&(Gn=!1,_.flags|=536870912),_}function gr(_){let p=Jt,d=Sl.createSyntaxCursor(_);Jt={currentNode:ce};let b=[],w=at;at=[];let I=0,$=Z(_.statements,0);for(;$!==-1;){let je=_.statements[I],Re=_.statements[$];Nn(b,_.statements,I,$),I=ee(_.statements,$);let Ae=vp(w,hn=>hn.start>=je.pos),Yt=Ae>=0?vp(w,hn=>hn.start>=Re.pos,Ae):-1;Ae>=0&&Nn(at,w,Ae,Yt>=0?Yt:void 0),pn(()=>{let hn=nt;for(nt|=65536,t.resetTokenState(Re.pos),U();u()!==1;){let Zt=t.getTokenFullStart(),pr=is(0,Kt);if(b.push(pr),Zt===t.getTokenFullStart()&&U(),I>=0){let Rn=_.statements[I];if(pr.end===Rn.pos)break;pr.end>Rn.pos&&(I=ee(_.statements,I+1))}}nt=hn},2),$=I>=0?Z(_.statements,I):-1}if(I>=0){let je=_.statements[I];Nn(b,_.statements,I);let Re=vp(w,Ae=>Ae.start>=je.pos);Re>=0&&Nn(at,w,Re)}return Jt=p,h.updateSourceFile(_,gn(y(b),_.statements));function se(je){return!(je.flags&65536)&&!!(je.transformFlags&67108864)}function Z(je,Re){for(let Ae=Re;Ae118}function ve(){return u()===80?!0:u()===127&&we()||u()===135&&Ye()?!1:u()>118}function j(_,p,d=!0){return u()===_?(d&&U(),!0):(p?Ee(p):Ee(A._0_expected,it(_)),!1)}let ht=Object.keys(rf).filter(_=>_.length>2);function xt(_){if(X1(_)){rt(Pr(Qe,_.template.pos),_.template.end,A.Module_declaration_names_may_only_use_or_quoted_strings);return}let p=Ze(_)?In(_):void 0;if(!p||!Ag(p,zn)){Ee(A._0_expected,it(27));return}let d=Pr(Qe,_.pos);switch(p){case"const":case"let":case"var":rt(d,_.end,A.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":jt(A.Interface_name_cannot_be_0,A.Interface_must_be_given_a_name,19);return;case"is":rt(d,t.getTokenStart(),A.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":jt(A.Namespace_name_cannot_be_0,A.Namespace_must_be_given_a_name,19);return;case"type":jt(A.Type_alias_name_cannot_be_0,A.Type_alias_must_be_given_a_name,64);return}let b=i_(p,ht,gt)??fn(p);if(b){rt(d,_.end,A.Unknown_keyword_or_identifier_Did_you_mean_0,b);return}u()!==0&&rt(d,_.end,A.Unexpected_keyword_or_identifier)}function jt(_,p,d){u()===d?Ee(p):Ee(_,t.getTokenValue())}function fn(_){for(let p of ht)if(_.length>p.length+2&&ml(_,p))return`${p} ${_.slice(p.length)}`}function ql(_,p,d){if(u()===60&&!t.hasPrecedingLineBreak()){Ee(A.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(u()===21){Ee(A.Cannot_start_a_function_call_in_a_type_annotation),U();return}if(p&&!or()){d?Ee(A._0_expected,it(27)):Ee(A.Expected_for_property_initializer);return}if(!_a()){if(d){Ee(A._0_expected,it(27));return}xt(_)}}function D_(_){return u()===_?(Fe(),!0):(B.assert(wp(_)),Ee(A._0_expected,it(_)),!1)}function Jr(_,p,d,b){if(u()===p){U();return}let w=Ee(A._0_expected,it(p));d&&w&&sl(w,La(Lt,Qe,b,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,it(_),it(p)))}function Le(_){return u()===_?(U(),!0):!1}function ft(_){if(u()===_)return Wt()}function Fl(_){if(u()===_)return Vl()}function Xn(_,p,d){return ft(_)||Gt(_,!1,p||A._0_expected,d||it(_))}function zl(_){let p=Fl(_);return p||(B.assert(wp(_)),Gt(_,!1,A._0_expected,it(_)))}function Wt(){let _=L(),p=u();return U(),P(ye(p),_)}function Vl(){let _=L(),p=u();return Fe(),P(ye(p),_)}function or(){return u()===27?!0:u()===20||u()===1||t.hasPrecedingLineBreak()}function _a(){return or()?(u()===27&&U(),!0):!1}function Qt(){return _a()||j(27)}function Ct(_,p,d,b){let w=y(_,b);return bi(w,p,d??t.getTokenFullStart()),w}function P(_,p,d){return bi(_,p,d??t.getTokenFullStart()),nt&&(_.flags|=nt),an&&(an=!1,_.flags|=262144),_}function Gt(_,p,d,...b){p?Sn(t.getTokenFullStart(),0,d,...b):d&&Ee(d,...b);let w=L(),I=_===80?te("",void 0):jd(_)?h.createTemplateLiteralLikeNode(_,"","",void 0):_===9?g("",void 0):_===11?x("",void 0):_===282?h.createMissingDeclaration():ye(_);return P(I,w)}function jr(_){let p=mt.get(_);return p===void 0&&mt.set(_,p=_),p}function cr(_,p,d){if(_){xn++;let se=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():L(),Z=u(),ee=jr(t.getTokenValue()),ce=t.hasExtendedUnicodeEscape();return Oe(),P(te(ee,Z,ce),se)}if(u()===81)return Ee(d||A.Private_identifiers_are_not_allowed_outside_class_bodies),cr(!0);if(u()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return cr(!0);xn++;let b=u()===1,w=t.isReservedWord(),I=t.getTokenText(),$=w?A.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:A.Identifier_expected;return Gt(80,b,p||$,I)}function es(_){return cr(ze(),void 0,_)}function St(_,p){return cr(ve(),_,p)}function Rt(_){return cr(wt(u()),_)}function ni(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ee(A.Unicode_escape_sequence_cannot_appear_here),cr(wt(u()))}function vr(){return wt(u())||u()===11||u()===9||u()===10}function P_(){return wt(u())||u()===11}function Wl(_){if(u()===11||u()===9||u()===10){let p=$n();return p.text=jr(p.text),p}return _&&u()===23?Gl():u()===81?oa():Rt()}function Rr(){return Wl(!0)}function Gl(){let _=L();j(23);let p=ut(Et);return j(24),P(h.createComputedPropertyName(p),_)}function oa(){let _=L(),p=ue(jr(t.getTokenValue()));return U(),P(p,_)}function ri(_){return u()===_&&pe(N_)}function ts(){return U(),t.hasPrecedingLineBreak()?!1:lr()}function N_(){switch(u()){case 87:return U()===94;case 95:return U(),u()===90?Y(Di):u()===156?Y(Yl):Ci();case 90:return Di();case 126:return U(),lr();case 139:case 153:return U(),Hl();default:return ts()}}function Ci(){return u()===60||u()!==42&&u()!==130&&u()!==19&&lr()}function Yl(){return U(),Ci()}function I_(){return Hr(u())&&pe(N_)}function lr(){return u()===23||u()===19||u()===42||u()===26||vr()}function Hl(){return u()===23||vr()}function Di(){return U(),u()===86||u()===100||u()===120||u()===60||u()===128&&Y(Tc)||u()===134&&Y(xc)}function ca(_,p){if(ua(_))return!0;switch(_){case 0:case 1:case 3:return!(u()===27&&p)&&Sc();case 2:return u()===84||u()===90;case 4:return Y(oo);case 5:return Y(Gu)||u()===27&&!p;case 6:return u()===23||vr();case 12:switch(u()){case 23:case 42:case 26:case 25:return!0;default:return vr()}case 18:return vr();case 9:return u()===23||u()===26||vr();case 24:return P_();case 7:return u()===19?Y(O_):p?ve()&&!ns():ws()&&!ns();case 8:return Aa();case 10:return u()===28||u()===26||Aa();case 19:return u()===103||u()===87||ve();case 15:switch(u()){case 28:case 25:return!0}case 11:return u()===26||xr();case 16:return ma(!1);case 17:return ma(!0);case 20:case 21:return u()===28||_i();case 22:return qc();case 23:return u()===161&&Y(Bu)?!1:u()===11?!0:wt(u());case 13:return wt(u())||u()===19;case 14:return!0;case 25:return!0;case 26:return B.fail("ParsingContext.Count used as a context");default:B.assertNever(_,"Non-exhaustive case in 'isListElement'.")}}function O_(){if(B.assert(u()===19),U()===20){let _=U();return _===28||_===19||_===96||_===119}return!0}function Pi(){return U(),ve()}function Xl(){return U(),wt(u())}function M_(){return U(),og(u())}function ns(){return u()===119||u()===96?Y(L_):!1}function L_(){return U(),xr()}function Ni(){return U(),_i()}function la(_){if(u()===1)return!0;switch(_){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return u()===20;case 3:return u()===20||u()===84||u()===90;case 7:return u()===19||u()===96||u()===119;case 8:return rs();case 19:return u()===32||u()===21||u()===19||u()===96||u()===119;case 11:return u()===22||u()===27;case 15:case 21:case 10:return u()===24;case 17:case 16:case 18:return u()===22||u()===24;case 20:return u()!==28;case 22:return u()===19||u()===20;case 13:return u()===32||u()===44;case 14:return u()===30&&Y(Hs);default:return!1}}function rs(){return!!(or()||Fo(u())||u()===39)}function J_(){B.assert(yt,"Missing parsing context");for(let _=0;_<26;_++)if(yt&1<<_&&(ca(_,!0)||la(_)))return!0;return!1}function wn(_,p){let d=yt;yt|=1<<_;let b=[],w=L();for(;!la(_);){if(ca(_,!1)){b.push(is(_,p));continue}if(V_(_))break}return yt=d,Ct(b,w)}function is(_,p){let d=ua(_);return d?j_(d):p()}function ua(_,p){var d;if(!Jt||!R_(_)||an)return;let b=Jt.currentNode(p??t.getTokenFullStart());if(!(Qi(b)||tv(b)||g1(b)||(b.flags&101441536)!==nt)&&U_(b,_))return vf(b)&&((d=b.jsDoc)!=null&&d.jsDocCache)&&(b.jsDoc.jsDocCache=void 0),b}function j_(_){return t.resetTokenState(_.end),U(),_}function R_(_){switch(_){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function U_(_,p){switch(p){case 5:return as(_);case 2:return B_(_);case 0:case 1:case 3:return ss(_);case 6:return q_(_);case 4:return _s(_);case 8:return F_(_);case 17:case 16:return z_(_)}return!1}function as(_){if(_)switch(_.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:let p=_;return!(p.name.kind===80&&p.name.escapedText==="constructor")}return!1}function B_(_){if(_)switch(_.kind){case 296:case 297:return!0}return!1}function ss(_){if(_)switch(_.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return!0}return!1}function q_(_){return _.kind===306}function _s(_){if(_)switch(_.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}function F_(_){return _.kind!==260?!1:_.initializer===void 0}function z_(_){return _.kind!==169?!1:_.initializer===void 0}function V_(_){return pa(_),J_()?!0:(U(),!1)}function pa(_){switch(_){case 0:return u()===90?Ee(A._0_expected,it(95)):Ee(A.Declaration_or_statement_expected);case 1:return Ee(A.Declaration_or_statement_expected);case 2:return Ee(A.case_or_default_expected);case 3:return Ee(A.Statement_expected);case 18:case 4:return Ee(A.Property_or_signature_expected);case 5:return Ee(A.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Ee(A.Enum_member_expected);case 7:return Ee(A.Expression_expected);case 8:return hi(u())?Ee(A._0_is_not_allowed_as_a_variable_declaration_name,it(u())):Ee(A.Variable_declaration_expected);case 9:return Ee(A.Property_destructuring_pattern_expected);case 10:return Ee(A.Array_element_destructuring_pattern_expected);case 11:return Ee(A.Argument_expression_expected);case 12:return Ee(A.Property_assignment_expected);case 15:return Ee(A.Expression_or_comma_expected);case 17:return Ee(A.Parameter_declaration_expected);case 16:return hi(u())?Ee(A._0_is_not_allowed_as_a_parameter_name,it(u())):Ee(A.Parameter_declaration_expected);case 19:return Ee(A.Type_parameter_declaration_expected);case 20:return Ee(A.Type_argument_expected);case 21:return Ee(A.Type_expected);case 22:return Ee(A.Unexpected_token_expected);case 23:return u()===161?Ee(A._0_expected,"}"):Ee(A.Identifier_expected);case 13:return Ee(A.Identifier_expected);case 14:return Ee(A.Identifier_expected);case 24:return Ee(A.Identifier_or_string_literal_expected);case 25:return Ee(A.Identifier_expected);case 26:return B.fail("ParsingContext.Count used as a context");default:B.assertNever(_)}}function dn(_,p,d){let b=yt;yt|=1<<_;let w=[],I=L(),$=-1;for(;;){if(ca(_,!1)){let se=t.getTokenFullStart(),Z=is(_,p);if(!Z){yt=b;return}if(w.push(Z),$=t.getTokenStart(),Le(28))continue;if($=-1,la(_))break;j(28,os(_)),d&&u()===27&&!t.hasPrecedingLineBreak()&&U(),se===t.getTokenFullStart()&&U();continue}if(la(_)||V_(_))break}return yt=b,Ct(w,I,void 0,$>=0)}function os(_){return _===6?A.An_enum_member_name_must_be_followed_by_a_or:void 0}function ur(){let _=Ct([],L());return _.isMissingList=!0,_}function W_(_){return!!_.isMissingList}function Ur(_,p,d,b){if(j(d)){let w=dn(_,p);return j(b),w}return ur()}function Br(_,p){let d=L(),b=_?Rt(p):St(p);for(;Le(25)&&u()!==30;)b=P(h.createQualifiedName(b,ii(_,!1,!0)),d);return b}function $l(_,p){return P(h.createQualifiedName(_,p),_.pos)}function ii(_,p,d){if(t.hasPrecedingLineBreak()&&wt(u())&&Y(Js))return Gt(80,!0,A.Identifier_expected);if(u()===81){let b=oa();return p?b:Gt(80,!0,A.Identifier_expected)}return _?d?Rt():ni():St()}function Ql(_){let p=L(),d=[],b;do b=X_(_),d.push(b);while(b.literal.kind===17);return Ct(d,p)}function fa(_){let p=L();return P(h.createTemplateExpression(Ii(_),Ql(_)),p)}function G_(){let _=L();return P(h.createTemplateLiteralType(Ii(!1),Kl()),_)}function Kl(){let _=L(),p=[],d;do d=Y_(),p.push(d);while(d.literal.kind===17);return Ct(p,_)}function Y_(){let _=L();return P(h.createTemplateLiteralTypeSpan(_t(),H_(!1)),_)}function H_(_){return u()===20?(Nt(_),$_()):Xn(18,A._0_expected,it(20))}function X_(_){let p=L();return P(h.createTemplateSpan(ut(Et),H_(_)),p)}function $n(){return ai(u())}function Ii(_){!_&&t.getTokenFlags()&26656&&Nt(!1);let p=ai(u());return B.assert(p.kind===16,"Template head has wrong token kind"),p}function $_(){let _=ai(u());return B.assert(_.kind===17||_.kind===18,"Template fragment has wrong token kind"),_}function Zl(_){let p=_===15||_===18,d=t.getTokenText();return d.substring(1,d.length-(t.isUnterminated()?0:p?1:2))}function ai(_){let p=L(),d=jd(_)?h.createTemplateLiteralLikeNode(_,t.getTokenValue(),Zl(_),t.getTokenFlags()&7176):_===9?g(t.getTokenValue(),t.getNumericLiteralFlags()):_===11?x(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):e2(_)?N(_,t.getTokenValue()):B.fail();return t.hasExtendedUnicodeEscape()&&(d.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(d.isUnterminated=!0),U(),P(d,p)}function si(){return Br(!0,A.Type_expected)}function Q_(){if(!t.hasPrecedingLineBreak()&&kt()===30)return Ur(20,_t,30,32)}function da(){let _=L();return P(h.createTypeReferenceNode(si(),Q_()),_)}function cs(_){switch(_.kind){case 183:return Qi(_.typeName);case 184:case 185:{let{parameters:p,type:d}=_;return W_(p)||cs(d)}case 196:return cs(_.type);default:return!1}}function eu(_){return U(),P(h.createTypePredicateNode(void 0,_,_t()),_.pos)}function ls(){let _=L();return U(),P(h.createThisTypeNode(),_)}function tu(){let _=L();return U(),P(h.createJSDocAllType(),_)}function K_(){let _=L();return U(),P(h.createJSDocNonNullableType(Ts(),!1),_)}function nu(){let _=L();return U(),u()===28||u()===20||u()===22||u()===32||u()===64||u()===52?P(h.createJSDocUnknownType(),_):P(h.createJSDocNullableType(_t(),!1),_)}function Z_(){let _=L(),p=qe();if(pe(Gc)){let d=Qn(36),b=jn(59,!1);return De(P(h.createJSDocFunctionType(d,b),_),p)}return P(h.createTypeReferenceNode(Rt(),void 0),_)}function us(){let _=L(),p;return(u()===110||u()===105)&&(p=Rt(),j(59)),P(h.createParameterDeclaration(void 0,void 0,p,void 0,ps(),void 0),_)}function ps(){t.setSkipJsDocLeadingAsterisks(!0);let _=L();if(Le(144)){let b=h.createJSDocNamepathType(void 0);e:for(;;)switch(u()){case 20:case 1:case 28:case 5:break e;default:Fe()}return t.setSkipJsDocLeadingAsterisks(!1),P(b,_)}let p=Le(26),d=ga();return t.setSkipJsDocLeadingAsterisks(!1),p&&(d=P(h.createJSDocVariadicType(d),_)),u()===64?(U(),P(h.createJSDocOptionalType(d),_)):d}function eo(){let _=L();j(114);let p=Br(!0),d=t.hasPrecedingLineBreak()?void 0:Pa();return P(h.createTypeQueryNode(p,d),_)}function to(){let _=L(),p=En(!1,!0),d=St(),b,w;Le(96)&&(_i()||!xr()?b=_t():w=$o());let I=Le(64)?_t():void 0,$=h.createTypeParameterDeclaration(p,d,b,I);return $.expression=w,P($,_)}function mn(){if(u()===30)return Ur(19,to,30,32)}function ma(_){return u()===26||Aa()||Hr(u())||u()===60||_i(!_)}function no(_){let p=Ui(A.Private_identifiers_cannot_be_used_as_parameters);return w2(p)===0&&!nn(_)&&Hr(u())&&U(),p}function ro(){return ze()||u()===23||u()===19}function fs(_){return ds(_)}function io(_){return ds(_,!1)}function ds(_,p=!0){let d=L(),b=qe(),w=_?R(()=>En(!0)):Q(()=>En(!0));if(u()===110){let Z=h.createParameterDeclaration(w,void 0,cr(!0),void 0,Tr(),void 0),ee=$p(w);return ee&&un(ee,A.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),De(P(Z,d),b)}let I=Bt;Bt=!1;let $=ft(26);if(!p&&!ro())return;let se=De(P(h.createParameterDeclaration(w,$,no(w),ft(58),Tr(),Sr()),d),b);return Bt=I,se}function jn(_,p){if(ao(_,p))return br(ga)}function ao(_,p){return _===39?(j(_),!0):Le(59)?!0:p&&u()===39?(Ee(A._0_expected,it(59)),U(),!0):!1}function ms(_,p){let d=we(),b=Ye();Xe(!!(_&1)),st(!!(_&2));let w=_&32?dn(17,us):dn(16,()=>p?fs(b):io(b));return Xe(d),st(b),w}function Qn(_){if(!j(21))return ur();let p=ms(_,!0);return j(22),p}function ha(){Le(28)||Qt()}function so(_){let p=L(),d=qe();_===180&&j(105);let b=mn(),w=Qn(4),I=jn(59,!0);ha();let $=_===179?h.createCallSignature(b,w,I):h.createConstructSignature(b,w,I);return De(P($,p),d)}function qr(){return u()===23&&Y(ru)}function ru(){if(U(),u()===26||u()===24)return!0;if(Hr(u())){if(U(),ve())return!0}else if(ve())U();else return!1;return u()===59||u()===28?!0:u()!==58?!1:(U(),u()===59||u()===28||u()===24)}function hs(_,p,d){let b=Ur(16,()=>fs(!1),23,24),w=Tr();ha();let I=h.createIndexSignature(d,b,w);return De(P(I,_),p)}function _o(_,p,d){let b=Rr(),w=ft(58),I;if(u()===21||u()===30){let $=mn(),se=Qn(4),Z=jn(59,!0);I=h.createMethodSignature(d,b,w,$,se,Z)}else{let $=Tr();I=h.createPropertySignature(d,b,w,$),u()===64&&(I.initializer=Sr())}return ha(),De(P(I,_),p)}function oo(){if(u()===21||u()===30||u()===139||u()===153)return!0;let _=!1;for(;Hr(u());)_=!0,U();return u()===23?!0:(vr()&&(_=!0,U()),_?u()===21||u()===30||u()===58||u()===59||u()===28||or():!1)}function Oi(){if(u()===21||u()===30)return so(179);if(u()===105&&Y(co))return so(180);let _=L(),p=qe(),d=En(!1);return ri(139)?Vr(_,p,d,177,4):ri(153)?Vr(_,p,d,178,4):qr()?hs(_,p,d):_o(_,p,d)}function co(){return U(),u()===21||u()===30}function lo(){return U()===25}function uo(){switch(U()){case 21:case 30:case 25:return!0}return!1}function po(){let _=L();return P(h.createTypeLiteralNode(fo()),_)}function fo(){let _;return j(19)?(_=wn(4,Oi),j(20)):_=ur(),_}function mo(){return U(),u()===40||u()===41?U()===148:(u()===148&&U(),u()===23&&Pi()&&U()===103)}function iu(){let _=L(),p=Rt();j(103);let d=_t();return P(h.createTypeParameterDeclaration(void 0,p,d,void 0),_)}function ho(){let _=L();j(19);let p;(u()===148||u()===40||u()===41)&&(p=Wt(),p.kind!==148&&j(148)),j(23);let d=iu(),b=Le(130)?_t():void 0;j(24);let w;(u()===58||u()===40||u()===41)&&(w=Wt(),w.kind!==58&&j(58));let I=Tr();Qt();let $=wn(4,Oi);return j(20),P(h.createMappedTypeNode(p,d,b,w,I,$),_)}function yo(){let _=L();if(Le(26))return P(h.createRestTypeNode(_t()),_);let p=_t();if(oh(p)&&p.pos===p.type.pos){let d=h.createOptionalTypeNode(p.type);return gn(d,p),d.flags=p.flags,d}return p}function ys(){return U()===59||u()===58&&U()===59}function au(){return u()===26?wt(U())&&ys():wt(u())&&ys()}function go(){if(Y(au)){let _=L(),p=qe(),d=ft(26),b=Rt(),w=ft(58);j(59);let I=yo(),$=h.createNamedTupleMember(d,b,w,I);return De(P($,_),p)}return yo()}function su(){let _=L();return P(h.createTupleTypeNode(Ur(21,go,23,24)),_)}function bo(){let _=L();j(21);let p=_t();return j(22),P(h.createParenthesizedType(p),_)}function _u(){let _;if(u()===128){let p=L();U();let d=P(ye(128),p);_=Ct([d],p)}return _}function gs(){let _=L(),p=qe(),d=_u(),b=Le(105);B.assert(!d||b,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let w=mn(),I=Qn(4),$=jn(39,!1),se=b?h.createConstructorTypeNode(d,w,I,$):h.createFunctionTypeNode(w,I,$);return De(P(se,_),p)}function vo(){let _=Wt();return u()===25?void 0:_}function bs(_){let p=L();_&&U();let d=u()===112||u()===97||u()===106?Wt():ai(u());return _&&(d=P(h.createPrefixUnaryExpression(41,d),p)),P(h.createLiteralTypeNode(d),p)}function ou(){return U(),u()===102}function vs(){vt|=4194304;let _=L(),p=Le(114);j(102),j(21);let d=_t(),b;if(Le(28)){let $=t.getTokenStart();j(19);let se=u();if(se===118||se===132?U():Ee(A._0_expected,it(118)),j(59),b=Xs(se,!0),!j(20)){let Z=Fa(at);Z&&Z.code===A._0_expected.code&&sl(Z,La(Lt,Qe,$,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}j(22);let w=Le(25)?si():void 0,I=Q_();return P(h.createImportTypeNode(d,b,w,I,p),_)}function To(){return U(),u()===9||u()===10}function Ts(){switch(u()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return pe(vo)||da();case 67:t.reScanAsteriskEqualsToken();case 42:return tu();case 61:t.reScanQuestionToken();case 58:return nu();case 100:return Z_();case 54:return K_();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return bs();case 41:return Y(To)?bs(!0):da();case 116:return Wt();case 110:{let _=ls();return u()===142&&!t.hasPrecedingLineBreak()?eu(_):_}case 114:return Y(ou)?vs():eo();case 19:return Y(mo)?ho():po();case 23:return su();case 21:return bo();case 102:return vs();case 131:return Y(Js)?No():da();case 16:return G_();default:return da()}}function _i(_){switch(u()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!_;case 41:return!_&&Y(To);case 21:return!_&&Y(xo);default:return ve()}}function xo(){return U(),u()===22||ma(!1)||_i()}function So(){let _=L(),p=Ts();for(;!t.hasPrecedingLineBreak();)switch(u()){case 54:U(),p=P(h.createJSDocNonNullableType(p,!0),_);break;case 58:if(Y(Ni))return p;U(),p=P(h.createJSDocNullableType(p,!0),_);break;case 23:if(j(23),_i()){let d=_t();j(24),p=P(h.createIndexedAccessTypeNode(p,d),_)}else j(24),p=P(h.createArrayTypeNode(p),_);break;default:return p}return p}function wo(_){let p=L();return j(_),P(h.createTypeOperatorNode(_,Eo()),p)}function cu(){if(Le(96)){let _=Jn(_t);if(We()||u()!==58)return _}}function ko(){let _=L(),p=St(),d=pe(cu),b=h.createTypeParameterDeclaration(void 0,p,d);return P(b,_)}function lu(){let _=L();return j(140),P(h.createInferTypeNode(ko()),_)}function Eo(){let _=u();switch(_){case 143:case 158:case 148:return wo(_);case 140:return lu()}return br(So)}function ya(_){if(Ss()){let p=gs(),d;return Nf(p)?d=_?A.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:A.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:d=_?A.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:A.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,un(p,d),p}}function Ao(_,p,d){let b=L(),w=_===52,I=Le(_),$=I&&ya(w)||p();if(u()===_||I){let se=[$];for(;Le(_);)se.push(ya(w)||p());$=P(d(Ct(se,b)),b)}return $}function xs(){return Ao(51,Eo,h.createIntersectionTypeNode)}function uu(){return Ao(52,xs,h.createUnionTypeNode)}function Co(){return U(),u()===105}function Ss(){return u()===30||u()===21&&Y(Do)?!0:u()===105||u()===128&&Y(Co)}function pu(){if(Hr(u())&&En(!1),ve()||u()===110)return U(),!0;if(u()===23||u()===19){let _=at.length;return Ui(),_===at.length}return!1}function Do(){return U(),!!(u()===22||u()===26||pu()&&(u()===59||u()===28||u()===58||u()===64||u()===22&&(U(),u()===39)))}function ga(){let _=L(),p=ve()&&pe(Po),d=_t();return p?P(h.createTypePredicateNode(void 0,p,d),_):d}function Po(){let _=St();if(u()===142&&!t.hasPrecedingLineBreak())return U(),_}function No(){let _=L(),p=Xn(131),d=u()===110?ls():St(),b=Le(142)?_t():void 0;return P(h.createTypePredicateNode(p,d,b),_)}function _t(){if(nt&81920)return Pt(81920,_t);if(Ss())return gs();let _=L(),p=uu();if(!We()&&!t.hasPrecedingLineBreak()&&Le(96)){let d=Jn(_t);j(58);let b=br(_t);j(59);let w=br(_t);return P(h.createConditionalTypeNode(p,d,b,w),_)}return p}function Tr(){return Le(59)?_t():void 0}function ws(){switch(u()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Y(uo);default:return ve()}}function xr(){if(ws())return!0;switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return zo()?!0:ve()}}function Io(){return u()!==19&&u()!==100&&u()!==86&&u()!==60&&xr()}function Et(){let _=et();_&&Ke(!1);let p=L(),d=Ft(!0),b;for(;b=ft(28);)d=As(d,b,Ft(!0),p);return _&&Ke(!0),d}function Sr(){return Le(64)?Ft(!0):void 0}function Ft(_){if(Oo())return Mo();let p=du(_)||Uo(_);if(p)return p;let d=L(),b=qe(),w=Mi(0);return w.kind===80&&u()===39?Lo(d,w,_,b,void 0):Va(w)&&E1(Ve())?As(w,Wt(),Ft(_),d):mu(w,d,_)}function Oo(){return u()===127?we()?!0:Y(js):!1}function fu(){return U(),!t.hasPrecedingLineBreak()&&ve()}function Mo(){let _=L();return U(),!t.hasPrecedingLineBreak()&&(u()===42||xr())?P(h.createYieldExpression(ft(42),Ft(!0)),_):P(h.createYieldExpression(void 0,void 0),_)}function Lo(_,p,d,b,w){B.assert(u()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let I=h.createParameterDeclaration(void 0,void 0,p,void 0,void 0,void 0);P(I,p.pos);let $=Ct([I],I.pos,I.end),se=Xn(39),Z=ks(!!w,d),ee=h.createArrowFunction(w,void 0,$,void 0,se,Z);return De(P(ee,_),b)}function du(_){let p=Jo();if(p!==0)return p===1?qo(!0,!0):pe(()=>Ro(_))}function Jo(){return u()===21||u()===30||u()===134?Y(jo):u()===39?1:0}function jo(){if(u()===134&&(U(),t.hasPrecedingLineBreak()||u()!==21&&u()!==30))return 0;let _=u(),p=U();if(_===21){if(p===22)switch(U()){case 39:case 59:case 19:return 1;default:return 0}if(p===23||p===19)return 2;if(p===26)return 1;if(Hr(p)&&p!==134&&Y(Pi))return U()===130?0:1;if(!ve()&&p!==110)return 0;switch(U()){case 59:return 1;case 58:return U(),u()===59||u()===28||u()===64||u()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return B.assert(_===30),!ve()&&u()!==87?0:ct===1?Y(()=>{Le(87);let b=U();if(b===96)switch(U()){case 64:case 32:case 44:return!1;default:return!0}else if(b===28||b===64)return!0;return!1})?1:0:2}function Ro(_){let p=t.getTokenStart();if(ln!=null&&ln.has(p))return;let d=qo(!1,_);return d||(ln||(ln=new Set)).add(p),d}function Uo(_){if(u()===134&&Y(Bo)===1){let p=L(),d=qe(),b=Rc(),w=Mi(0);return Lo(p,w,_,d,b)}}function Bo(){if(u()===134){if(U(),t.hasPrecedingLineBreak()||u()===39)return 0;let _=Mi(0);if(!t.hasPrecedingLineBreak()&&_.kind===80&&u()===39)return 1}return 0}function qo(_,p){let d=L(),b=qe(),w=Rc(),I=nn(w,cl)?2:0,$=mn(),se;if(j(21)){if(_)se=ms(I,_);else{let Zt=ms(I,_);if(!Zt)return;se=Zt}if(!j(22)&&!_)return}else{if(!_)return;se=ur()}let Z=u()===59,ee=jn(59,!1);if(ee&&!_&&cs(ee))return;let ce=ee;for(;(ce==null?void 0:ce.kind)===196;)ce=ce.type;let je=ce&&ch(ce);if(!_&&u()!==39&&(je||u()!==19))return;let Re=u(),Ae=Xn(39),Yt=Re===39||Re===19?ks(nn(w,cl),p):St();if(!p&&Z&&u()!==59)return;let hn=h.createArrowFunction(w,$,se,ee,Ae,Yt);return De(P(hn,d),b)}function ks(_,p){if(u()===19)return Sa(_?2:0);if(u()!==27&&u()!==100&&u()!==86&&Sc()&&!Io())return Sa(16|(_?2:0));let d=Bt;Bt=!1;let b=_?R(()=>Ft(p)):Q(()=>Ft(p));return Bt=d,b}function mu(_,p,d){let b=ft(58);if(!b)return _;let w;return P(h.createConditionalExpression(_,b,Pt(a,()=>Ft(!1)),w=Xn(59),Bp(w)?Ft(d):Gt(80,!1,A._0_expected,it(59))),p)}function Mi(_){let p=L(),d=$o();return Es(_,d,p)}function Fo(_){return _===103||_===165}function Es(_,p,d){for(;;){Ve();let b=kp(u());if(!(u()===43?b>=_:b>_)||u()===103&&be())break;if(u()===130||u()===152){if(t.hasPrecedingLineBreak())break;{let I=u();U(),p=I===152?Vo(p,_t()):Wo(p,_t())}}else p=As(p,Wt(),Mi(b),d)}return p}function zo(){return be()&&u()===103?!1:kp(u())>0}function Vo(_,p){return P(h.createSatisfiesExpression(_,p),_.pos)}function As(_,p,d,b){return P(h.createBinaryExpression(_,p,d),b)}function Wo(_,p){return P(h.createAsExpression(_,p),_.pos)}function Go(){let _=L();return P(h.createPrefixUnaryExpression(u(),Me(wr)),_)}function Yo(){let _=L();return P(h.createDeleteExpression(Me(wr)),_)}function hu(){let _=L();return P(h.createTypeOfExpression(Me(wr)),_)}function Ho(){let _=L();return P(h.createVoidExpression(Me(wr)),_)}function yu(){return u()===135?Ye()?!0:Y(js):!1}function Xo(){let _=L();return P(h.createAwaitExpression(Me(wr)),_)}function $o(){if(gu()){let d=L(),b=ba();return u()===43?Es(kp(u()),b,d):b}let _=u(),p=wr();if(u()===43){let d=Pr(Qe,p.pos),{end:b}=p;p.kind===216?rt(d,b,A.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(B.assert(wp(_)),rt(d,b,A.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,it(_)))}return p}function wr(){switch(u()){case 40:case 41:case 55:case 54:return Go();case 91:return Yo();case 114:return hu();case 116:return Ho();case 30:return ct===1?Ji(!0,void 0,void 0,!0):tc();case 135:if(yu())return Xo();default:return ba()}}function gu(){switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ct!==1)return!1;default:return!0}}function ba(){if(u()===46||u()===47){let p=L();return P(h.createPrefixUnaryExpression(u(),Me(Li)),p)}else if(ct===1&&u()===30&&Y(M_))return Ji(!0);let _=Li();if(B.assert(Va(_)),(u()===46||u()===47)&&!t.hasPrecedingLineBreak()){let p=u();return U(),P(h.createPostfixUnaryExpression(_,p),_.pos)}return _}function Li(){let _=L(),p;return u()===102?Y(co)?(vt|=4194304,p=Wt()):Y(lo)?(U(),U(),p=P(h.createMetaProperty(102,Rt()),_),vt|=8388608):p=va():p=u()===108?Qo():va(),Is(_,p)}function va(){let _=L(),p=Os();return _n(_,p,!0)}function Qo(){let _=L(),p=Wt();if(u()===30){let d=L(),b=pe(xa);b!==void 0&&(rt(d,L(),A.super_may_not_use_type_arguments),kn()||(p=h.createExpressionWithTypeArguments(p,b)))}return u()===21||u()===25||u()===23?p:(Xn(25,A.super_must_be_followed_by_an_argument_list_or_member_access),P(ie(p,ii(!0,!0,!0)),_))}function Ji(_,p,d,b=!1){let w=L(),I=Tu(_),$;if(I.kind===286){let se=Ta(I),Z,ee=se[se.length-1];if((ee==null?void 0:ee.kind)===284&&!di(ee.openingElement.tagName,ee.closingElement.tagName)&&di(I.tagName,ee.closingElement.tagName)){let ce=ee.children.end,je=P(h.createJsxElement(ee.openingElement,ee.children,P(h.createJsxClosingElement(P(te(""),ce,ce)),ce,ce)),ee.openingElement.pos,ce);se=Ct([...se.slice(0,se.length-1),je],se.pos,ce),Z=ee.closingElement}else Z=ec(I,_),di(I.tagName,Z.tagName)||(d&&Vp(d)&&di(Z.tagName,d.tagName)?un(I.tagName,A.JSX_element_0_has_no_corresponding_closing_tag,s_(Qe,I.tagName)):un(Z.tagName,A.Expected_corresponding_JSX_closing_tag_for_0,s_(Qe,I.tagName)));$=P(h.createJsxElement(I,se,Z),w)}else I.kind===289?$=P(h.createJsxFragment(I,Ta(I),ku(_)),w):(B.assert(I.kind===285),$=I);if(!b&&_&&u()===30){let se=typeof p>"u"?$.pos:p,Z=pe(()=>Ji(!0,se));if(Z){let ee=Gt(28,!1);return Hd(ee,Z.pos,0),rt(Pr(Qe,se),Z.end,A.JSX_expressions_must_have_one_parent_element),P(h.createBinaryExpression($,ee,Z),w)}}return $}function Cs(){let _=L(),p=h.createJsxText(t.getTokenValue(),lt===13);return lt=t.scanJsxToken(),P(p,_)}function bu(_,p){switch(p){case 1:if(v6(_))un(_,A.JSX_fragment_has_no_corresponding_closing_tag);else{let d=_.tagName,b=Math.min(Pr(Qe,d.pos),d.end);rt(b,d.end,A.JSX_element_0_has_no_corresponding_closing_tag,s_(Qe,_.tagName))}return;case 31:case 7:return;case 12:case 13:return Cs();case 19:return Ko(!1);case 30:return Ji(!1,void 0,_);default:return B.assertNever(p)}}function Ta(_){let p=[],d=L(),b=yt;for(yt|=16384;;){let w=bu(_,lt=t.reScanJsxToken());if(!w||(p.push(w),Vp(_)&&(w==null?void 0:w.kind)===284&&!di(w.openingElement.tagName,w.closingElement.tagName)&&di(_.tagName,w.closingElement.tagName)))break}return yt=b,Ct(p,d)}function vu(){let _=L();return P(h.createJsxAttributes(wn(13,Zo)),_)}function Tu(_){let p=L();if(j(30),u()===32)return Hn(),P(h.createJsxOpeningFragment(),p);let d=Ds(),b=(nt&524288)===0?Pa():void 0,w=vu(),I;return u()===32?(Hn(),I=h.createJsxOpeningElement(d,b,w)):(j(44),j(32,void 0,!1)&&(_?U():Hn()),I=h.createJsxSelfClosingElement(d,b,w)),P(I,p)}function Ds(){let _=L(),p=xu();if(ih(p))return p;let d=p;for(;Le(25);)d=P(ie(d,ii(!0,!1,!1)),_);return d}function xu(){let _=L();qt();let p=u()===110,d=ni();return Le(59)?(qt(),P(h.createJsxNamespacedName(d,ni()),_)):p?P(h.createToken(110),_):d}function Ko(_){let p=L();if(!j(19))return;let d,b;return u()!==20&&(_||(d=ft(26)),b=Et()),_?j(20):j(20,void 0,!1)&&Hn(),P(h.createJsxExpression(d,b),p)}function Zo(){if(u()===19)return wu();let _=L();return P(h.createJsxAttribute(Su(),Ps()),_)}function Ps(){if(u()===64){if(Ai()===11)return $n();if(u()===19)return Ko(!0);if(u()===30)return Ji(!0);Ee(A.or_JSX_element_expected)}}function Su(){let _=L();qt();let p=ni();return Le(59)?(qt(),P(h.createJsxNamespacedName(p,ni()),_)):p}function wu(){let _=L();j(19),j(26);let p=Et();return j(20),P(h.createJsxSpreadAttribute(p),_)}function ec(_,p){let d=L();j(31);let b=Ds();return j(32,void 0,!1)&&(p||!di(_.tagName,b)?U():Hn()),P(h.createJsxClosingElement(b),d)}function ku(_){let p=L();return j(31),j(32,A.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(_?U():Hn()),P(h.createJsxJsxClosingFragment(),p)}function tc(){B.assert(ct!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let _=L();j(30);let p=_t();j(32);let d=wr();return P(h.createTypeAssertion(p,d),_)}function Eu(){return U(),wt(u())||u()===23||kn()}function nc(){return u()===29&&Y(Eu)}function Ns(_){if(_.flags&64)return!0;if(fl(_)){let p=_.expression;for(;fl(p)&&!(p.flags&64);)p=p.expression;if(p.flags&64){for(;fl(_);)_.flags|=64,_=_.expression;return!0}}return!1}function rc(_,p,d){let b=ii(!0,!0,!0),w=d||Ns(p),I=w?Ce(p,d,b):ie(p,b);if(w&&vi(I.name)&&un(I.name,A.An_optional_chain_cannot_contain_private_identifiers),Z1(p)&&p.typeArguments){let $=p.typeArguments.pos-1,se=Pr(Qe,p.typeArguments.end)+1;rt($,se,A.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return P(I,_)}function Au(_,p,d){let b;if(u()===24)b=Gt(80,!0,A.An_element_access_expression_should_take_an_argument);else{let I=ut(Et);Cl(I)&&(I.text=jr(I.text)),b=I}j(24);let w=d||Ns(p)?oe(p,d,b):V(p,b);return P(w,_)}function _n(_,p,d){for(;;){let b,w=!1;if(d&&nc()?(b=Xn(29),w=wt(u())):w=Le(25),w){p=rc(_,p,b);continue}if((b||!et())&&Le(23)){p=Au(_,p,b);continue}if(kn()){p=!b&&p.kind===233?Fr(_,p.expression,b,p.typeArguments):Fr(_,p,b,void 0);continue}if(!b){if(u()===54&&!t.hasPrecedingLineBreak()){U(),p=P(h.createNonNullExpression(p),_);continue}let I=pe(xa);if(I){p=P(h.createExpressionWithTypeArguments(p,I),_);continue}}return p}}function kn(){return u()===15||u()===16}function Fr(_,p,d,b){let w=h.createTaggedTemplateExpression(p,b,u()===15?(Nt(!0),$n()):fa(!0));return(d||p.flags&64)&&(w.flags|=64),w.questionDotToken=d,P(w,_)}function Is(_,p){for(;;){p=_n(_,p,!0);let d,b=ft(29);if(b&&(d=pe(xa),kn())){p=Fr(_,p,b,d);continue}if(d||u()===21){!b&&p.kind===233&&(d=p.typeArguments,p=p.expression);let w=ic(),I=b||Ns(p)?dt(p,b,d,w):G(p,d,w);p=P(I,_);continue}if(b){let w=Gt(80,!1,A.Identifier_expected);p=P(Ce(p,b,w),_)}break}return p}function ic(){j(21);let _=dn(11,_c);return j(22),_}function xa(){if((nt&524288)!==0||kt()!==30)return;U();let _=dn(20,_t);if(Ve()===32)return U(),_&&Cu()?_:void 0}function Cu(){switch(u()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||zo()||!xr()}function Os(){switch(u()){case 15:t.getTokenFlags()&26656&&Nt(!1);case 9:case 10:case 11:return $n();case 110:case 108:case 106:case 112:case 97:return Wt();case 21:return Du();case 23:return oc();case 19:return Ms();case 134:if(!Y(xc))break;return Ls();case 60:return Uc();case 86:return $u();case 100:return Ls();case 105:return lc();case 44:case 69:if($e()===14)return $n();break;case 16:return fa(!1);case 81:return oa()}return St(A.Expression_expected)}function Du(){let _=L(),p=qe();j(21);let d=ut(Et);return j(22),De(P(vn(d),_),p)}function ac(){let _=L();j(26);let p=Ft(!0);return P(h.createSpreadElement(p),_)}function sc(){return u()===26?ac():u()===28?P(h.createOmittedExpression(),L()):Ft(!0)}function _c(){return Pt(a,sc)}function oc(){let _=L(),p=t.getTokenStart(),d=j(23),b=t.hasPrecedingLineBreak(),w=dn(15,sc);return Jr(23,24,d,p),P(fe(w,b),_)}function cc(){let _=L(),p=qe();if(ft(26)){let ce=Ft(!0);return De(P(h.createSpreadAssignment(ce),_),p)}let d=En(!0);if(ri(139))return Vr(_,p,d,177,0);if(ri(153))return Vr(_,p,d,178,0);let b=ft(42),w=ve(),I=Rr(),$=ft(58),se=ft(54);if(b||u()===21||u()===30)return zs(_,p,d,b,I,$,se);let Z;if(w&&u()!==59){let ce=ft(64),je=ce?ut(()=>Ft(!0)):void 0;Z=h.createShorthandPropertyAssignment(I,je),Z.equalsToken=ce}else{j(59);let ce=ut(()=>Ft(!0));Z=h.createPropertyAssignment(I,ce)}return Z.modifiers=d,Z.questionToken=$,Z.exclamationToken=se,De(P(Z,_),p)}function Ms(){let _=L(),p=t.getTokenStart(),d=j(19),b=t.hasPrecedingLineBreak(),w=dn(12,cc,!0);return Jr(19,20,d,p),P(M(w,b),_)}function Ls(){let _=et();Ke(!1);let p=L(),d=qe(),b=En(!1);j(100);let w=ft(42),I=w?1:0,$=nn(b,cl)?2:0,se=I&&$?K(ji):I?Yn(ji):$?R(ji):ji(),Z=mn(),ee=Qn(I|$),ce=jn(59,!1),je=Sa(I|$);Ke(_);let Re=h.createFunctionExpression(b,w,se,Z,ee,ce,je);return De(P(Re,p),d)}function ji(){return ze()?es():void 0}function lc(){let _=L();if(j(105),Le(25)){let I=Rt();return P(h.createMetaProperty(105,I),_)}let p=L(),d=_n(p,Os(),!1),b;d.kind===233&&(b=d.typeArguments,d=d.expression),u()===29&&Ee(A.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,s_(Qe,d));let w=u()===21?ic():void 0;return P(rr(d,b,w),_)}function zr(_,p){let d=L(),b=qe(),w=t.getTokenStart(),I=j(19,p);if(I||_){let $=t.hasPrecedingLineBreak(),se=wn(1,Kt);Jr(19,20,I,w);let Z=De(P(ir(se,$),d),b);return u()===64&&(Ee(A.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),U()),Z}else{let $=ur();return De(P(ir($,void 0),d),b)}}function Sa(_,p){let d=we();Xe(!!(_&1));let b=Ye();st(!!(_&2));let w=Bt;Bt=!1;let I=et();I&&Ke(!1);let $=zr(!!(_&16),p);return I&&Ke(!0),Bt=w,Xe(d),st(b),$}function uc(){let _=L(),p=qe();return j(27),De(P(h.createEmptyStatement(),_),p)}function Pu(){let _=L(),p=qe();j(101);let d=t.getTokenStart(),b=j(21),w=ut(Et);Jr(21,22,b,d);let I=Kt(),$=Le(93)?Kt():void 0;return De(P(Ge(w,I,$),_),p)}function pc(){let _=L(),p=qe();j(92);let d=Kt();j(117);let b=t.getTokenStart(),w=j(21),I=ut(Et);return Jr(21,22,w,b),Le(27),De(P(h.createDoStatement(d,I),_),p)}function Nu(){let _=L(),p=qe();j(117);let d=t.getTokenStart(),b=j(21),w=ut(Et);Jr(21,22,b,d);let I=Kt();return De(P(ar(w,I),_),p)}function fc(){let _=L(),p=qe();j(99);let d=ft(135);j(21);let b;u()!==27&&(u()===115||u()===121||u()===87||u()===160&&Y(kc)||u()===135&&Y(Ec)?b=Fs(!0):b=Lr(Et));let w;if(d?j(165):Le(165)){let I=ut(()=>Ft(!0));j(22),w=Mt(d,b,I,Kt())}else if(Le(103)){let I=ut(Et);j(22),w=h.createForInStatement(b,I,Kt())}else{j(27);let I=u()!==27&&u()!==22?ut(Et):void 0;j(27);let $=u()!==22?ut(Et):void 0;j(22),w=Or(b,I,$,Kt())}return De(P(w,_),p)}function dc(_){let p=L(),d=qe();j(_===252?83:88);let b=or()?void 0:St();Qt();let w=_===252?h.createBreakStatement(b):h.createContinueStatement(b);return De(P(w,p),d)}function mc(){let _=L(),p=qe();j(107);let d=or()?void 0:ut(Et);return Qt(),De(P(h.createReturnStatement(d),_),p)}function Iu(){let _=L(),p=qe();j(118);let d=t.getTokenStart(),b=j(21),w=ut(Et);Jr(21,22,b,d);let I=Tt(67108864,Kt);return De(P(h.createWithStatement(w,I),_),p)}function hc(){let _=L(),p=qe();j(84);let d=ut(Et);j(59);let b=wn(3,Kt);return De(P(h.createCaseClause(d,b),_),p)}function Ou(){let _=L();j(90),j(59);let p=wn(3,Kt);return P(h.createDefaultClause(p),_)}function Mu(){return u()===84?hc():Ou()}function yc(){let _=L();j(19);let p=wn(2,Mu);return j(20),P(h.createCaseBlock(p),_)}function Lu(){let _=L(),p=qe();j(109),j(21);let d=ut(Et);j(22);let b=yc();return De(P(h.createSwitchStatement(d,b),_),p)}function gc(){let _=L(),p=qe();j(111);let d=t.hasPrecedingLineBreak()?void 0:ut(Et);return d===void 0&&(xn++,d=P(te(""),L())),_a()||xt(d),De(P(h.createThrowStatement(d),_),p)}function Ju(){let _=L(),p=qe();j(113);let d=zr(!1),b=u()===85?bc():void 0,w;return(!b||u()===98)&&(j(98,A.catch_or_finally_expected),w=zr(!1)),De(P(h.createTryStatement(d,b,w),_),p)}function bc(){let _=L();j(85);let p;Le(21)?(p=qs(),j(22)):p=void 0;let d=zr(!1);return P(h.createCatchClause(p,d),_)}function ju(){let _=L(),p=qe();return j(89),Qt(),De(P(h.createDebuggerStatement(),_),p)}function vc(){let _=L(),p=qe(),d,b=u()===21,w=ut(Et);return Ze(w)&&Le(59)?d=h.createLabeledStatement(w,Kt()):(_a()||xt(w),d=Mn(w),b&&(p=!1)),De(P(d,_),p)}function Js(){return U(),wt(u())&&!t.hasPrecedingLineBreak()}function Tc(){return U(),u()===86&&!t.hasPrecedingLineBreak()}function xc(){return U(),u()===100&&!t.hasPrecedingLineBreak()}function js(){return U(),(wt(u())||u()===9||u()===10||u()===11)&&!t.hasPrecedingLineBreak()}function Ru(){for(;;)switch(u()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Us();case 135:return wa();case 120:case 156:return fu();case 144:case 145:return Dc();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let _=u();if(U(),t.hasPrecedingLineBreak())return!1;if(_===138&&u()===156)return!0;continue;case 162:return U(),u()===19||u()===80||u()===95;case 102:return U(),u()===11||u()===42||u()===19||wt(u());case 95:let p=U();if(p===156&&(p=Y(U)),p===64||p===42||p===19||p===90||p===130||p===60)return!0;continue;case 126:U();continue;default:return!1}}function Ri(){return Y(Ru)}function Sc(){switch(u()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Ri()||Y(uo);case 87:case 95:return Ri();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Ri()||!Y(Js);default:return xr()}}function wc(){return U(),ze()||u()===19||u()===23}function Uu(){return Y(wc)}function kc(){return Rs(!0)}function Rs(_){return U(),_&&u()===165?!1:(ze()||u()===19)&&!t.hasPrecedingLineBreak()}function Us(){return Y(Rs)}function Ec(_){return U()===160?Rs(_):!1}function wa(){return Y(Ec)}function Kt(){switch(u()){case 27:return uc();case 19:return zr(!1);case 115:return oi(L(),qe(),void 0);case 121:if(Uu())return oi(L(),qe(),void 0);break;case 135:if(wa())return oi(L(),qe(),void 0);break;case 160:if(Us())return oi(L(),qe(),void 0);break;case 100:return Oc(L(),qe(),void 0);case 86:return Bc(L(),qe(),void 0);case 101:return Pu();case 92:return pc();case 117:return Nu();case 99:return fc();case 88:return dc(251);case 83:return dc(252);case 107:return mc();case 118:return Iu();case 109:return Lu();case 111:return gc();case 113:case 85:case 98:return Ju();case 89:return ju();case 60:return Ac();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Ri())return Ac();break}return vc()}function Bs(_){return _.kind===138}function Ac(){let _=L(),p=qe(),d=En(!0);if(nn(d,Bs)){let w=ka(_);if(w)return w;for(let I of d)I.flags|=33554432;return Tt(33554432,()=>Cc(_,p,d))}else return Cc(_,p,d)}function ka(_){return Tt(33554432,()=>{let p=ua(yt,_);if(p)return j_(p)})}function Cc(_,p,d){switch(u()){case 115:case 121:case 87:case 160:case 135:return oi(_,p,d);case 100:return Oc(_,p,d);case 86:return Bc(_,p,d);case 120:return zc(_,p,d);case 156:return tp(_,p,d);case 94:return Gs(_,p,d);case 162:case 144:case 145:return rp(_,p,d);case 102:return sp(_,p,d);case 95:switch(U(),u()){case 90:case 64:return Qc(_,p,d);case 130:return ap(_,p,d);default:return mp(_,p,d)}default:if(d){let b=Gt(282,!0,A.Declaration_expected);return Fp(b,_),b.modifiers=d,b}return}}function Bu(){return U()===11}function qu(){return U(),u()===161||u()===64}function Dc(){return U(),!t.hasPrecedingLineBreak()&&(ve()||u()===11)}function Ea(_,p){if(u()!==19){if(_&4){ha();return}if(or()){Qt();return}}return Sa(_,p)}function Pc(){let _=L();if(u()===28)return P(h.createOmittedExpression(),_);let p=ft(26),d=Ui(),b=Sr();return P(h.createBindingElement(p,void 0,d,b),_)}function Fu(){let _=L(),p=ft(26),d=ze(),b=Rr(),w;d&&u()!==59?(w=b,b=void 0):(j(59),w=Ui());let I=Sr();return P(h.createBindingElement(p,b,w,I),_)}function Nc(){let _=L();j(19);let p=ut(()=>dn(9,Fu));return j(20),P(h.createObjectBindingPattern(p),_)}function zu(){let _=L();j(23);let p=ut(()=>dn(10,Pc));return j(24),P(h.createArrayBindingPattern(p),_)}function Aa(){return u()===19||u()===23||u()===81||ze()}function Ui(_){return u()===23?zu():u()===19?Nc():es(_)}function Ic(){return qs(!0)}function qs(_){let p=L(),d=qe(),b=Ui(A.Private_identifiers_are_not_allowed_in_variable_declarations),w;_&&b.kind===80&&u()===54&&!t.hasPrecedingLineBreak()&&(w=Wt());let I=Tr(),$=Fo(u())?void 0:Sr(),se=Fn(b,w,I,$);return De(P(se,p),d)}function Fs(_){let p=L(),d=0;switch(u()){case 115:break;case 121:d|=1;break;case 87:d|=2;break;case 160:d|=4;break;case 135:B.assert(wa()),d|=6,U();break;default:B.fail()}U();let b;if(u()===165&&Y(Vu))b=ur();else{let w=be();Te(_),b=dn(8,_?qs:Ic),Te(w)}return P(Ln(b,d),p)}function Vu(){return Pi()&&U()===22}function oi(_,p,d){let b=Fs(!1);Qt();let w=Tn(d,b);return De(P(w,_),p)}function Oc(_,p,d){let b=Ye(),w=Bn(d);j(100);let I=ft(42),$=w&2048?ji():es(),se=I?1:0,Z=w&1024?2:0,ee=mn();w&32&&st(!0);let ce=Qn(se|Z),je=jn(59,!1),Re=Ea(se|Z,A.or_expected);st(b);let Ae=h.createFunctionDeclaration(d,I,$,ee,ce,je,Re);return De(P(Ae,_),p)}function Mc(){if(u()===137)return j(137);if(u()===11&&Y(U)===21)return pe(()=>{let _=$n();return _.text==="constructor"?_:void 0})}function Wu(_,p,d){return pe(()=>{if(Mc()){let b=mn(),w=Qn(0),I=jn(59,!1),$=Ea(0,A.or_expected),se=h.createConstructorDeclaration(d,w,$);return se.typeParameters=b,se.type=I,De(P(se,_),p)}})}function zs(_,p,d,b,w,I,$,se){let Z=b?1:0,ee=nn(d,cl)?2:0,ce=mn(),je=Qn(Z|ee),Re=jn(59,!1),Ae=Ea(Z|ee,se),Yt=h.createMethodDeclaration(d,b,w,I,ce,je,Re,Ae);return Yt.exclamationToken=$,De(P(Yt,_),p)}function Lc(_,p,d,b,w){let I=!w&&!t.hasPrecedingLineBreak()?ft(54):void 0,$=Tr(),se=Pt(90112,Sr);ql(b,$,se);let Z=h.createPropertyDeclaration(d,b,w||I,$,se);return De(P(Z,_),p)}function Ca(_,p,d){let b=ft(42),w=Rr(),I=ft(58);return b||u()===21||u()===30?zs(_,p,d,b,w,I,void 0,A.or_expected):Lc(_,p,d,w,I)}function Vr(_,p,d,b,w){let I=Rr(),$=mn(),se=Qn(0),Z=jn(59,!1),ee=Ea(w),ce=b===177?h.createGetAccessorDeclaration(d,I,se,Z,ee):h.createSetAccessorDeclaration(d,I,se,ee);return ce.typeParameters=$,v_(ce)&&(ce.type=Z),De(P(ce,_),p)}function Gu(){let _;if(u()===60)return!0;for(;Hr(u());){if(_=u(),r2(_))return!0;U()}if(u()===42||(vr()&&(_=u(),U()),u()===23))return!0;if(_!==void 0){if(!hi(_)||_===153||_===139)return!0;switch(u()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return or()}}return!1}function Jc(_,p,d){Xn(126);let b=Yu(),w=De(P(h.createClassStaticBlockDeclaration(b),_),p);return w.modifiers=d,w}function Yu(){let _=we(),p=Ye();Xe(!1),st(!0);let d=zr(!1);return Xe(_),st(p),d}function Hu(){if(Ye()&&u()===135){let _=L(),p=St(A.Expression_expected);U();let d=_n(_,p,!0);return Is(_,d)}return Li()}function Vs(){let _=L();if(!Le(60))return;let p=Ei(Hu);return P(h.createDecorator(p),_)}function jc(_,p,d){let b=L(),w=u();if(u()===87&&p){if(!pe(ts))return}else{if(d&&u()===126&&Y(Yc))return;if(_&&u()===126)return;if(!I_())return}return P(ye(w),b)}function En(_,p,d){let b=L(),w,I,$,se=!1,Z=!1,ee=!1;if(_&&u()===60)for(;I=Vs();)w=Dn(w,I);for(;$=jc(se,p,d);)$.kind===126&&(se=!0),w=Dn(w,$),Z=!0;if(Z&&_&&u()===60)for(;I=Vs();)w=Dn(w,I),ee=!0;if(ee)for(;$=jc(se,p,d);)$.kind===126&&(se=!0),w=Dn(w,$);return w&&Ct(w,b)}function Rc(){let _;if(u()===134){let p=L();U();let d=P(ye(134),p);_=Ct([d],p)}return _}function Xu(){let _=L(),p=qe();if(u()===27)return U(),De(P(h.createSemicolonClassElement(),_),p);let d=En(!0,!0,!0);if(u()===126&&Y(Yc))return Jc(_,p,d);if(ri(139))return Vr(_,p,d,177,0);if(ri(153))return Vr(_,p,d,178,0);if(u()===137||u()===11){let b=Wu(_,p,d);if(b)return b}if(qr())return hs(_,p,d);if(wt(u())||u()===11||u()===9||u()===10||u()===42||u()===23)if(nn(d,Bs)){for(let w of d)w.flags|=33554432;return Tt(33554432,()=>Ca(_,p,d))}else return Ca(_,p,d);if(d){let b=Gt(80,!0,A.Declaration_expected);return Lc(_,p,d,b,void 0)}return B.fail("Should not have attempted to parse class member declaration.")}function Uc(){let _=L(),p=qe(),d=En(!0);if(u()===86)return Da(_,p,d,231);let b=Gt(282,!0,A.Expression_expected);return Fp(b,_),b.modifiers=d,b}function $u(){return Da(L(),qe(),void 0,231)}function Bc(_,p,d){return Da(_,p,d,263)}function Da(_,p,d,b){let w=Ye();j(86);let I=Qu(),$=mn();nn(d,r6)&&st(!0);let se=Ws(),Z;j(19)?(Z=Fc(),j(20)):Z=ur(),st(w);let ee=b===263?h.createClassDeclaration(d,I,$,se,Z):h.createClassExpression(d,I,$,se,Z);return De(P(ee,_),p)}function Qu(){return ze()&&!Ku()?cr(ze()):void 0}function Ku(){return u()===119&&Y(Xl)}function Ws(){if(qc())return wn(22,Zu)}function Zu(){let _=L(),p=u();B.assert(p===96||p===119),U();let d=dn(7,ep);return P(h.createHeritageClause(p,d),_)}function ep(){let _=L(),p=Li();if(p.kind===233)return p;let d=Pa();return P(h.createExpressionWithTypeArguments(p,d),_)}function Pa(){return u()===30?Ur(20,_t,30,32):void 0}function qc(){return u()===96||u()===119}function Fc(){return wn(5,Xu)}function zc(_,p,d){j(120);let b=St(),w=mn(),I=Ws(),$=fo(),se=h.createInterfaceDeclaration(d,b,w,I,$);return De(P(se,_),p)}function tp(_,p,d){j(156),t.hasPrecedingLineBreak()&&Ee(A.Line_break_not_permitted_here);let b=St(),w=mn();j(64);let I=u()===141&&pe(vo)||_t();Qt();let $=h.createTypeAliasDeclaration(d,b,w,I);return De(P($,_),p)}function np(){let _=L(),p=qe(),d=Rr(),b=ut(Sr);return De(P(h.createEnumMember(d,b),_),p)}function Gs(_,p,d){j(94);let b=St(),w;j(19)?(w=xe(()=>dn(6,np)),j(20)):w=ur();let I=h.createEnumDeclaration(d,b,w);return De(P(I,_),p)}function Vc(){let _=L(),p;return j(19)?(p=wn(1,Kt),j(20)):p=ur(),P(h.createModuleBlock(p),_)}function Ys(_,p,d,b){let w=b&32,I=b&8?Rt():St(),$=Le(25)?Ys(L(),!1,void 0,8|w):Vc(),se=h.createModuleDeclaration(d,I,$,b);return De(P(se,_),p)}function Wc(_,p,d){let b=0,w;u()===162?(w=St(),b|=2048):(w=$n(),w.text=jr(w.text));let I;u()===19?I=Vc():Qt();let $=h.createModuleDeclaration(d,w,I,b);return De(P($,_),p)}function rp(_,p,d){let b=0;if(u()===162)return Wc(_,p,d);if(Le(145))b|=32;else if(j(144),u()===11)return Wc(_,p,d);return Ys(_,p,d,b)}function ip(){return u()===149&&Y(Gc)}function Gc(){return U()===21}function Yc(){return U()===19}function Hs(){return U()===44}function ap(_,p,d){j(130),j(145);let b=St();Qt();let w=h.createNamespaceExportDeclaration(b);return w.modifiers=d,De(P(w,_),p)}function sp(_,p,d){j(102);let b=t.getTokenFullStart(),w;ve()&&(w=St());let I=!1;if((w==null?void 0:w.escapedText)==="type"&&(u()!==161||ve()&&Y(qu))&&(ve()||op())&&(I=!0,w=ve()?St():void 0),w&&!Wr())return cp(_,p,d,w,I);let $=ci(w,b,I),se=qi(),Z=Hc();Qt();let ee=h.createImportDeclaration(d,$,se,Z);return De(P(ee,_),p)}function ci(_,p,d,b=!1){let w;return(_||u()===42||u()===19)&&(w=lp(_,p,d,b),j(161)),w}function Hc(){let _=u();if((_===118||_===132)&&!t.hasPrecedingLineBreak())return Xs(_)}function _p(){let _=L(),p=wt(u())?Rt():ai(11);j(59);let d=Ft(!0);return P(h.createImportAttribute(p,d),_)}function Xs(_,p){let d=L();p||j(_);let b=t.getTokenStart();if(j(19)){let w=t.hasPrecedingLineBreak(),I=dn(24,_p,!0);if(!j(20)){let $=Fa(at);$&&$.code===A._0_expected.code&&sl($,La(Lt,Qe,b,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return P(h.createImportAttributes(I,w,_),d)}else{let w=Ct([],L(),void 0,!1);return P(h.createImportAttributes(w,!1,_),d)}}function op(){return u()===42||u()===19}function Wr(){return u()===28||u()===161}function cp(_,p,d,b,w){j(64);let I=up();Qt();let $=h.createImportEqualsDeclaration(d,w,b,I);return De(P($,_),p)}function lp(_,p,d,b){let w;return(!_||Le(28))&&(b&&t.setSkipJsDocLeadingAsterisks(!0),w=u()===42?pp():Xc(275),b&&t.setSkipJsDocLeadingAsterisks(!1)),P(h.createImportClause(d,_,w),p)}function up(){return ip()?Bi():Br(!1)}function Bi(){let _=L();j(149),j(21);let p=qi();return j(22),P(h.createExternalModuleReference(p),_)}function qi(){if(u()===11){let _=$n();return _.text=jr(_.text),_}else return Et()}function pp(){let _=L();j(42),j(130);let p=St();return P(h.createNamespaceImport(p),_)}function $s(){return wt(u())||u()===11}function li(_){return u()===11?$n():_()}function Xc(_){let p=L(),d=_===275?h.createNamedImports(Ur(23,ui,19,20)):h.createNamedExports(Ur(23,fp,19,20));return P(d,p)}function fp(){let _=qe();return De($c(281),_)}function ui(){return $c(276)}function $c(_){let p=L(),d=hi(u())&&!ve(),b=t.getTokenStart(),w=t.getTokenEnd(),I=!1,$,se=!0,Z=li(Rt);if(Z.kind===80&&Z.escapedText==="type")if(u()===130){let je=Rt();if(u()===130){let Re=Rt();$s()?(I=!0,$=je,Z=li(ce),se=!1):($=Z,Z=Re,se=!1)}else $s()?($=Z,se=!1,Z=li(ce)):(I=!0,Z=je)}else $s()&&(I=!0,Z=li(ce));se&&u()===130&&($=Z,j(130),Z=li(ce)),_===276&&(Z.kind!==80?(rt(Pr(Qe,Z.pos),Z.end,A.Identifier_expected),Z=bi(Gt(80,!1),Z.pos,Z.pos)):d&&rt(b,w,A.Identifier_expected));let ee=_===276?h.createImportSpecifier(I,$,Z):h.createExportSpecifier(I,$,Z);return P(ee,p);function ce(){return d=hi(u())&&!ve(),b=t.getTokenStart(),w=t.getTokenEnd(),Rt()}}function dp(_){return P(h.createNamespaceExport(li(Rt)),_)}function mp(_,p,d){let b=Ye();st(!0);let w,I,$,se=Le(156),Z=L();Le(42)?(Le(130)&&(w=dp(Z)),j(161),I=qi()):(w=Xc(279),(u()===161||u()===11&&!t.hasPrecedingLineBreak())&&(j(161),I=qi()));let ee=u();I&&(ee===118||ee===132)&&!t.hasPrecedingLineBreak()&&($=Xs(ee)),Qt(),st(b);let ce=h.createExportDeclaration(d,se,w,I,$);return De(P(ce,_),p)}function Qc(_,p,d){let b=Ye();st(!0);let w;Le(64)?w=!0:j(90);let I=Ft(!0);Qt(),st(b);let $=h.createExportAssignment(d,w,I);return De(P($,_),p)}let Qs;(_=>{_[_.SourceElements=0]="SourceElements",_[_.BlockStatements=1]="BlockStatements",_[_.SwitchClauses=2]="SwitchClauses",_[_.SwitchClauseStatements=3]="SwitchClauseStatements",_[_.TypeMembers=4]="TypeMembers",_[_.ClassMembers=5]="ClassMembers",_[_.EnumMembers=6]="EnumMembers",_[_.HeritageClauseElement=7]="HeritageClauseElement",_[_.VariableDeclarations=8]="VariableDeclarations",_[_.ObjectBindingElements=9]="ObjectBindingElements",_[_.ArrayBindingElements=10]="ArrayBindingElements",_[_.ArgumentExpressions=11]="ArgumentExpressions",_[_.ObjectLiteralMembers=12]="ObjectLiteralMembers",_[_.JsxAttributes=13]="JsxAttributes",_[_.JsxChildren=14]="JsxChildren",_[_.ArrayLiteralMembers=15]="ArrayLiteralMembers",_[_.Parameters=16]="Parameters",_[_.JSDocParameters=17]="JSDocParameters",_[_.RestProperties=18]="RestProperties",_[_.TypeParameters=19]="TypeParameters",_[_.TypeArguments=20]="TypeArguments",_[_.TupleElementTypes=21]="TupleElementTypes",_[_.HeritageClauses=22]="HeritageClauses",_[_.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",_[_.ImportAttributes=24]="ImportAttributes",_[_.JSDocComment=25]="JSDocComment",_[_.Count=26]="Count"})(Qs||(Qs={}));let Ks;(_=>{_[_.False=0]="False",_[_.True=1]="True",_[_.Unknown=2]="Unknown"})(Ks||(Ks={}));let Kc;(_=>{function p(ee,ce,je){Vn("file.js",ee,99,void 0,1,0),t.setText(ee,ce,je),lt=t.scan();let Re=d(),Ae=_e("file.js",99,1,!1,[],ye(1),0,Ga),Yt=Wi(at,Ae);return Ut&&(Ae.jsDocDiagnostics=Wi(Ut,Ae)),Wn(),Re?{jsDocTypeExpression:Re,diagnostics:Yt}:void 0}_.parseJSDocTypeExpressionForTests=p;function d(ee){let ce=L(),je=(ee?Le:j)(19),Re=Tt(16777216,ps);(!ee||je)&&D_(20);let Ae=h.createJSDocTypeExpression(Re);return J(Ae),P(Ae,ce)}_.parseJSDocTypeExpression=d;function b(){let ee=L(),ce=Le(19),je=L(),Re=Br(!1);for(;u()===81;)It(),Fe(),Re=P(h.createJSDocMemberName(Re,St()),je);ce&&D_(20);let Ae=h.createJSDocNameReference(Re);return J(Ae),P(Ae,ee)}_.parseJSDocNameReference=b;function w(ee,ce,je){Vn("",ee,99,void 0,1,0);let Re=Tt(16777216,()=>Z(ce,je)),Yt=Wi(at,{languageVariant:0,text:ee});return Wn(),Re?{jsDoc:Re,diagnostics:Yt}:void 0}_.parseIsolatedJSDocComment=w;function I(ee,ce,je){let Re=lt,Ae=at.length,Yt=an,hn=Tt(16777216,()=>Z(ce,je));return wf(hn,ee),nt&524288&&(Ut||(Ut=[]),Nn(Ut,at,Ae)),lt=Re,at.length=Ae,an=Yt,hn}_.parseJSDocComment=I;let $;(ee=>{ee[ee.BeginningOfLine=0]="BeginningOfLine",ee[ee.SawAsterisk=1]="SawAsterisk",ee[ee.SavingComments=2]="SavingComments",ee[ee.SavingBackticks=3]="SavingBackticks"})($||($={}));let se;(ee=>{ee[ee.Property=1]="Property",ee[ee.Parameter=2]="Parameter",ee[ee.CallbackParameter=4]="CallbackParameter"})(se||(se={}));function Z(ee=0,ce){let je=Qe,Re=ce===void 0?je.length:ee+ce;if(ce=Re-ee,B.assert(ee>=0),B.assert(ee<=Re),B.assert(Re<=je.length),!V6(je,ee))return;let Ae,Yt,hn,Zt,pr,Rn=[],Gr=[],hp=yt;yt|=1<<25;let Pe=t.scanRange(ee+3,ce-5,tt);return yt=hp,Pe;function tt(){let O=1,H,X=ee-(je.lastIndexOf(` -`,ee)+1)+4;function ne(Be){H||(H=X),Rn.push(Be),X+=Be.length}for(Fe();zi(5););zi(4)&&(O=0,X=0);e:for(;;){switch(u()){case 60:Na(Rn),pr||(pr=L()),de(q(X)),O=0,H=void 0;break;case 4:Rn.push(t.getTokenText()),O=0,X=0;break;case 42:let Be=t.getTokenText();O===1?(O=2,ne(Be)):(B.assert(O===0),O=1,X+=Be.length);break;case 5:B.assert(O!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let pt=t.getTokenText();H!==void 0&&X+pt.length>H&&Rn.push(pt.slice(H-X)),X+=pt.length;break;case 1:break e;case 82:O=2,ne(t.getTokenValue());break;case 19:O=2;let yn=t.getTokenFullStart(),on=t.getTokenEnd()-1,tn=s(on);if(tn){Zt||fr(Rn),Gr.push(P(h.createJSDocText(Rn.join("")),Zt??ee,yn)),Gr.push(tn),Rn=[],Zt=t.getTokenEnd();break}default:O=2,ne(t.getTokenText());break}O===2?sn(!1):Fe()}let re=Rn.join("").trimEnd();Gr.length&&re.length&&Gr.push(P(h.createJSDocText(re),Zt??ee,pr)),Gr.length&&Ae&&B.assertIsDefined(pr,"having parsed tags implies that the end of the comment span should be set");let Ne=Ae&&Ct(Ae,Yt,hn);return P(h.createJSDocComment(Gr.length?Ct(Gr,ee,pr):re.length?re:void 0,Ne),ee,Re)}function fr(O){for(;O.length&&(O[0]===` -`||O[0]==="\r");)O.shift()}function Na(O){for(;O.length;){let H=O[O.length-1].trimEnd();if(H==="")O.pop();else if(H.lengthpt&&(ne.push(Zn.slice(pt-O)),Be=2),O+=Zn.length;break;case 19:Be=2;let el=t.getTokenFullStart(),Oa=t.getTokenEnd()-1,tl=s(Oa);tl?(re.push(P(h.createJSDocText(ne.join("")),Ne??X,el)),re.push(tl),ne=[],Ne=t.getTokenEnd()):yn(t.getTokenText());break;case 62:Be===3?Be=2:Be=3,yn(t.getTokenText());break;case 82:Be!==3&&(Be=2),yn(t.getTokenValue());break;case 42:if(Be===0){Be=1,O+=1;break}default:Be!==3&&(Be=2),yn(t.getTokenText());break}Be===2||Be===3?on=sn(Be===3):on=Fe()}fr(ne);let tn=ne.join("").trimEnd();if(re.length)return tn.length&&re.push(P(h.createJSDocText(tn),Ne??X)),Ct(re,X,t.getTokenEnd());if(tn.length)return tn}function s(O){let H=pe(f);if(!H)return;Fe(),Ot();let X=l(),ne=[];for(;u()!==20&&u()!==4&&u()!==1;)ne.push(t.getTokenText()),Fe();let re=H==="link"?h.createJSDocLink:H==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return P(re(X,ne.join("")),O,t.getTokenEnd())}function l(){if(wt(u())){let O=L(),H=Rt();for(;Le(25);)H=P(h.createQualifiedName(H,u()===81?Gt(80,!1):Rt()),O);for(;u()===81;)It(),Fe(),H=P(h.createJSDocMemberName(H,St()),O);return H}}function f(){if(kr(),u()===19&&Fe()===60&&wt(Fe())){let O=t.getTokenValue();if(S(O))return O}}function S(O){return O==="link"||O==="linkcode"||O==="linkplain"}function z(O,H,X,ne){return P(h.createJSDocUnknownTag(H,n(O,L(),X,ne)),O)}function de(O){O&&(Ae?Ae.push(O):(Ae=[O],Yt=O.pos),hn=O.end)}function Ue(){return kr(),u()===19?d():void 0}function en(){let O=zi(23);O&&Ot();let H=zi(62),X=fy();return H&&zl(62),O&&(Ot(),ft(64)&&Et(),j(24)),{name:X,isBracketed:O}}function An(O){switch(O.kind){case 151:return!0;case 188:return An(O.elementType);default:return Pf(O)&&Ze(O.typeName)&&O.typeName.escapedText==="Object"&&!O.typeArguments}}function Kn(O,H,X,ne){let re=Ue(),Ne=!re;kr();let{name:Be,isBracketed:pt}=en(),yn=kr();Ne&&!Y(f)&&(re=Ue());let on=n(O,L(),ne,yn),tn=Ia(re,Be,X,ne);tn&&(re=tn,Ne=!0);let Zn=X===1?h.createJSDocPropertyTag(H,Be,pt,re,Ne,on):h.createJSDocParameterTag(H,Be,pt,re,Ne,on);return P(Zn,O)}function Ia(O,H,X,ne){if(O&&An(O.type)){let re=L(),Ne,Be;for(;Ne=pe(()=>gp(X,ne,H));)Ne.kind===341||Ne.kind===348?Be=Dn(Be,Ne):Ne.kind===345&&un(Ne.tagName,A.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Be){let pt=P(h.createJSDocTypeLiteral(Be,O.type.kind===188),re);return P(h.createJSDocTypeExpression(pt),re)}}}function Y0(O,H,X,ne){nn(Ae,N6)&&rt(H.pos,t.getTokenStart(),A._0_tag_already_specified,f_(H.escapedText));let re=Ue();return P(h.createJSDocReturnTag(H,re,n(O,L(),X,ne)),O)}function yd(O,H,X,ne){nn(Ae,Vf)&&rt(H.pos,t.getTokenStart(),A._0_tag_already_specified,f_(H.escapedText));let re=d(!0),Ne=X!==void 0&&ne!==void 0?n(O,L(),X,ne):void 0;return P(h.createJSDocTypeTag(H,re,Ne),O)}function H0(O,H,X,ne){let Ne=u()===23||Y(()=>Fe()===60&&wt(Fe())&&S(t.getTokenValue()))?void 0:b(),Be=X!==void 0&&ne!==void 0?n(O,L(),X,ne):void 0;return P(h.createJSDocSeeTag(H,Ne,Be),O)}function X0(O,H,X,ne){let re=Ue(),Ne=n(O,L(),X,ne);return P(h.createJSDocThrowsTag(H,re,Ne),O)}function $0(O,H,X,ne){let re=L(),Ne=Q0(),Be=t.getTokenFullStart(),pt=n(O,Be,X,ne);pt||(Be=t.getTokenFullStart());let yn=typeof pt!="string"?Ct(Xp([P(Ne,re,Be)],pt),re):Ne.text+pt;return P(h.createJSDocAuthorTag(H,yn),O)}function Q0(){let O=[],H=!1,X=t.getToken();for(;X!==1&&X!==4;){if(X===30)H=!0;else{if(X===60&&!H)break;if(X===32&&H){O.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}O.push(t.getTokenText()),X=Fe()}return h.createJSDocText(O.join(""))}function K0(O,H,X,ne){let re=gd();return P(h.createJSDocImplementsTag(H,re,n(O,L(),X,ne)),O)}function Z0(O,H,X,ne){let re=gd();return P(h.createJSDocAugmentsTag(H,re,n(O,L(),X,ne)),O)}function ey(O,H,X,ne){let re=d(!1),Ne=X!==void 0&&ne!==void 0?n(O,L(),X,ne):void 0;return P(h.createJSDocSatisfiesTag(H,re,Ne),O)}function ty(O,H,X,ne){let re=t.getTokenFullStart(),Ne;ve()&&(Ne=St());let Be=ci(Ne,re,!0,!0),pt=qi(),yn=Hc(),on=X!==void 0&&ne!==void 0?n(O,L(),X,ne):void 0;return P(h.createJSDocImportTag(H,Be,pt,yn,on),O)}function gd(){let O=Le(19),H=L(),X=ny();t.setSkipJsDocLeadingAsterisks(!0);let ne=Pa();t.setSkipJsDocLeadingAsterisks(!1);let re=h.createExpressionWithTypeArguments(X,ne),Ne=P(re,H);return O&&(Ot(),j(20)),Ne}function ny(){let O=L(),H=pi();for(;Le(25);){let X=pi();H=P(ie(H,X),O)}return H}function Fi(O,H,X,ne,re){return P(H(X,n(O,L(),ne,re)),O)}function bd(O,H,X,ne){let re=d(!0);return Ot(),P(h.createJSDocThisTag(H,re,n(O,L(),X,ne)),O)}function ry(O,H,X,ne){let re=d(!0);return Ot(),P(h.createJSDocEnumTag(H,re,n(O,L(),X,ne)),O)}function iy(O,H,X,ne){let re=Ue();kr();let Ne=yp();Ot();let Be=i(X),pt;if(!re||An(re.type)){let on,tn,Zn,el=!1;for(;(on=pe(()=>cy(X)))&&on.kind!==345;)if(el=!0,on.kind===344)if(tn){let Oa=Ee(A.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Oa&&sl(Oa,La(Lt,Qe,0,0,A.The_tag_was_first_specified_here));break}else tn=on;else Zn=Dn(Zn,on);if(el){let Oa=re&&re.type.kind===188,tl=h.createJSDocTypeLiteral(Zn,Oa);re=tn&&tn.typeExpression&&!An(tn.typeExpression.type)?tn.typeExpression:P(tl,O),pt=re.end}}pt=pt||Be!==void 0?L():(Ne??re??H).end,Be||(Be=n(O,pt,X,ne));let yn=h.createJSDocTypedefTag(H,re,Ne,Be);return P(yn,O,pt)}function yp(O){let H=t.getTokenStart();if(!wt(u()))return;let X=pi();if(Le(25)){let ne=yp(!0),re=h.createModuleDeclaration(void 0,X,ne,O?8:void 0);return P(re,H)}return O&&(X.flags|=4096),X}function ay(O){let H=L(),X,ne;for(;X=pe(()=>gp(4,O));){if(X.kind===345){un(X.tagName,A.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}ne=Dn(ne,X)}return Ct(ne||[],H)}function vd(O,H){let X=ay(H),ne=pe(()=>{if(zi(60)){let re=q(H);if(re&&re.kind===342)return re}});return P(h.createJSDocSignature(void 0,X,ne),O)}function sy(O,H,X,ne){let re=yp();Ot();let Ne=i(X),Be=vd(O,X);Ne||(Ne=n(O,L(),X,ne));let pt=Ne!==void 0?L():Be.end;return P(h.createJSDocCallbackTag(H,Be,re,Ne),O,pt)}function _y(O,H,X,ne){Ot();let re=i(X),Ne=vd(O,X);re||(re=n(O,L(),X,ne));let Be=re!==void 0?L():Ne.end;return P(h.createJSDocOverloadTag(H,Ne,re),O,Be)}function oy(O,H){for(;!Ze(O)||!Ze(H);)if(!Ze(O)&&!Ze(H)&&O.right.escapedText===H.right.escapedText)O=O.left,H=H.left;else return!1;return O.escapedText===H.escapedText}function cy(O){return gp(1,O)}function gp(O,H,X){let ne=!0,re=!1;for(;;)switch(Fe()){case 60:if(ne){let Ne=ly(O,H);return Ne&&(Ne.kind===341||Ne.kind===348)&&X&&(Ze(Ne.name)||!oy(X,Ne.name.left))?!1:Ne}re=!1;break;case 4:ne=!0,re=!1;break;case 42:re&&(ne=!1),re=!0;break;case 80:ne=!1;break;case 1:return!1}}function ly(O,H){B.assert(u()===60);let X=t.getTokenFullStart();Fe();let ne=pi(),re=kr(),Ne;switch(ne.escapedText){case"type":return O===1&&yd(X,ne);case"prop":case"property":Ne=1;break;case"arg":case"argument":case"param":Ne=6;break;case"template":return Td(X,ne,H,re);case"this":return bd(X,ne,H,re);default:return!1}return O&Ne?Kn(X,ne,O,H):!1}function uy(){let O=L(),H=zi(23);H&&Ot();let X=En(!1,!0),ne=pi(A.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),re;if(H&&(Ot(),j(64),re=Tt(16777216,ps),j(24)),!Qi(ne))return P(h.createTypeParameterDeclaration(X,ne,void 0,re),O)}function py(){let O=L(),H=[];do{Ot();let X=uy();X!==void 0&&H.push(X),kr()}while(zi(28));return Ct(H,O)}function Td(O,H,X,ne){let re=u()===19?d():void 0,Ne=py();return P(h.createJSDocTemplateTag(H,re,Ne,n(O,L(),X,ne)),O)}function zi(O){return u()===O?(Fe(),!0):!1}function fy(){let O=pi();for(Le(23)&&j(24);Le(25);){let H=pi();Le(23)&&j(24),O=$l(O,H)}return O}function pi(O){if(!wt(u()))return Gt(80,!O,O||A.Identifier_expected);xn++;let H=t.getTokenStart(),X=t.getTokenEnd(),ne=u(),re=jr(t.getTokenValue()),Ne=P(te(re,ne),H,X);return Fe(),Ne}}})(Kc=e.JSDocParser||(e.JSDocParser={}))})(Zi||(Zi={}));var Sm=new WeakSet;function ev(e){Sm.has(e)&&B.fail("Source file has already been incrementally parsed"),Sm.add(e)}var bh=new WeakSet;function tv(e){return bh.has(e)}function Yp(e){bh.add(e)}var Sl;(e=>{function t(x,N,te,ue){if(ue=ue||B.shouldAssert(2),h(x,N,te,ue),Ig(te))return x;if(x.statements.length===0)return Zi.parseSourceFile(x.fileName,N,x.languageVersion,void 0,!0,x.scriptKind,x.setExternalModuleIndicator,x.jsDocParsingMode);ev(x),Zi.fixupParentReferences(x);let ye=x.text,fe=y(x),M=c(x,te);h(x,N,M,ue),B.assert(M.span.start<=te.span.start),B.assert(Ar(M.span)===Ar(te.span)),B.assert(Ar(e_(M))===Ar(e_(te)));let ie=e_(M).length-M.span.length;C(x,M.span.start,Ar(M.span),Ar(e_(M)),ie,ye,N,ue);let Ce=Zi.parseSourceFile(x.fileName,N,x.languageVersion,fe,!0,x.scriptKind,x.setExternalModuleIndicator,x.jsDocParsingMode);return Ce.commentDirectives=a(x.commentDirectives,Ce.commentDirectives,M.span.start,Ar(M.span),ie,ye,N,ue),Ce.impliedNodeFormat=x.impliedNodeFormat,L6(x,Ce),Ce}e.updateSourceFile=t;function a(x,N,te,ue,ye,fe,M,ie){if(!x)return N;let Ce,V=!1;for(let G of x){let{range:dt,type:rr}=G;if(dt.endue){oe();let vn={range:{pos:dt.pos+ye,end:dt.end+ye},type:rr};Ce=Dn(Ce,vn),ie&&B.assert(fe.substring(dt.pos,dt.end)===M.substring(vn.range.pos,vn.range.end))}}return oe(),Ce;function oe(){V||(V=!0,Ce?N&&Ce.push(...N):Ce=N)}}function o(x,N,te,ue,ye,fe,M){te?Ce(x):ie(x);return;function ie(V){let oe="";if(M&&m(V)&&(oe=ye.substring(V.pos,V.end)),Zd(V,N),bi(V,V.pos+ue,V.end+ue),M&&m(V)&&B.assert(oe===fe.substring(V.pos,V.end)),Ht(V,ie,Ce),$i(V))for(let G of V.jsDoc)ie(G);E(V,M)}function Ce(V){bi(V,V.pos+ue,V.end+ue);for(let oe of V)ie(oe)}}function m(x){switch(x.kind){case 11:case 9:case 80:return!0}return!1}function v(x,N,te,ue,ye){B.assert(x.end>=N,"Adjusting an element that was entirely before the change range"),B.assert(x.pos<=te,"Adjusting an element that was entirely after the change range"),B.assert(x.pos<=x.end);let fe=Math.min(x.pos,ue),M=x.end>=te?x.end+ye:Math.min(x.end,ue);if(B.assert(fe<=M),x.parent){let ie=x.parent;B.assertGreaterThanOrEqual(fe,ie.pos),B.assertLessThanOrEqual(M,ie.end)}bi(x,fe,M)}function E(x,N){if(N){let te=x.pos,ue=ye=>{B.assert(ye.pos>=te),te=ye.end};if($i(x))for(let ye of x.jsDoc)ue(ye);Ht(x,ue),B.assert(te<=x.end)}}function C(x,N,te,ue,ye,fe,M,ie){Ce(x);return;function Ce(oe){if(B.assert(oe.pos<=oe.end),oe.pos>te){o(oe,x,!1,ye,fe,M,ie);return}let G=oe.end;if(G>=N){if(Yp(oe),Zd(oe,x),v(oe,N,te,ue,ye),Ht(oe,Ce,V),$i(oe))for(let dt of oe.jsDoc)Ce(dt);E(oe,ie);return}B.assert(Gte){o(oe,x,!0,ye,fe,M,ie);return}let G=oe.end;if(G>=N){Yp(oe),v(oe,N,te,ue,ye);for(let dt of oe)Ce(dt);return}B.assert(G0&&M<=1;M++){let ie=W(x,ue);B.assert(ie.pos<=ue);let Ce=ie.pos;ue=Math.max(0,Ce-1)}let ye=Ng(ue,Ar(N.span)),fe=N.newLength+(N.span.start-ue);return e1(ye,fe)}function W(x,N){let te=x,ue;if(Ht(x,fe),ue){let M=ye(ue);M.pos>te.pos&&(te=M)}return te;function ye(M){for(;;){let ie=hb(M);if(ie)M=ie;else return M}}function fe(M){if(!Qi(M))if(M.pos<=N){if(M.pos>=te.pos&&(te=M),NN),!0}}function h(x,N,te,ue){let ye=x.text;if(te&&(B.assert(ye.length-te.span.length+te.newLength===N.length),ue||B.shouldAssert(3))){let fe=ye.substr(0,te.span.start),M=N.substr(0,te.span.start);B.assert(fe===M);let ie=ye.substring(Ar(te.span),ye.length),Ce=N.substring(Ar(e_(te)),N.length);B.assert(ie===Ce)}}function y(x){let N=x.statements,te=0;B.assert(te=V.pos&&M=V.pos&&M{x[x.Value=-1]="Value"})(g||(g={}))})(Sl||(Sl={}));function nv(e){return rv(e)!==void 0}function rv(e){let t=Um(e,jb,!1);if(t)return t;if(tg(e,".ts")){let a=Rm(e),o=a.lastIndexOf(".d.");if(o>=0)return a.substring(o)}}function iv(e,t,a,o){if(e){if(e==="import")return 99;if(e==="require")return 1;o(t,a-t,A.resolution_mode_should_be_either_require_or_import)}}function av(e,t){let a=[];for(let o of jp(t,0)||bt){let m=t.substring(o.pos,o.end);lv(a,o,m)}e.pragmas=new Map;for(let o of a){if(e.pragmas.has(o.name)){let m=e.pragmas.get(o.name);m instanceof Array?m.push(o.args):e.pragmas.set(o.name,[m,o.args]);continue}e.pragmas.set(o.name,o.args)}}function sv(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((a,o)=>{switch(o){case"reference":{let m=e.referencedFiles,v=e.typeReferenceDirectives,E=e.libReferenceDirectives;qn(Tp(a),C=>{let{types:c,lib:W,path:h,["resolution-mode"]:y,preserve:g}=C.arguments,x=g==="true"?!0:void 0;if(C.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(c){let N=iv(y,c.pos,c.end,t);v.push({pos:c.pos,end:c.end,fileName:c.value,...N?{resolutionMode:N}:{},...x?{preserve:x}:{}})}else W?E.push({pos:W.pos,end:W.end,fileName:W.value,...x?{preserve:x}:{}}):h?m.push({pos:h.pos,end:h.end,fileName:h.value,...x?{preserve:x}:{}}):t(C.range.pos,C.range.end-C.range.pos,A.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Ip(Tp(a),m=>({name:m.arguments.name,path:m.arguments.path}));break}case"amd-module":{if(a instanceof Array)for(let m of a)e.moduleName&&t(m.range.pos,m.range.end-m.range.pos,A.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=m.arguments.name;else e.moduleName=a.arguments.name;break}case"ts-nocheck":case"ts-check":{qn(Tp(a),m=>{(!e.checkJsDirective||m.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:o==="ts-check",end:m.range.end,pos:m.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:B.fail("Unhandled pragma kind")}})}var Np=new Map;function _v(e){if(Np.has(e))return Np.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Np.set(e,t),t}var ov=/^\/\/\/\s*<(\S+)\s.*?\/>/m,cv=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function lv(e,t,a){let o=t.kind===2&&ov.exec(a);if(o){let v=o[1].toLowerCase(),E=jm[v];if(!E||!(E.kind&1))return;if(E.args){let C={};for(let c of E.args){let h=_v(c.name).exec(a);if(!h&&!c.optional)return;if(h){let y=h[2]||h[3];if(c.captureSpan){let g=t.pos+h.index+h[1].length+1;C[c.name]={value:y,pos:g,end:g+y.length}}else C[c.name]=y}}e.push({name:v,args:{arguments:C,range:t}})}else e.push({name:v,args:{arguments:{},range:t}});return}let m=t.kind===2&&cv.exec(a);if(m)return wm(e,t,2,m);if(t.kind===3){let v=/@(\S+)(\s+(?:\S.*)?)?$/gm,E;for(;E=v.exec(a);)wm(e,t,4,E)}}function wm(e,t,a,o){if(!o)return;let m=o[1].toLowerCase(),v=jm[m];if(!v||!(v.kind&a))return;let E=o[2],C=uv(v,E);C!=="fail"&&e.push({name:m,args:{arguments:C,range:t}})}function uv(e,t){if(!t)return{};if(!e.args)return{};let a=t.trim().split(/\s+/),o={};for(let m=0;mo.kind<309||o.kind>351);return a.kind<166?a:a.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),a=Fa(t);if(a)return a.kind<166?a:a.getLastToken(e)}forEachChild(e,t){return Ht(this,e,t)}};function pv(e,t){let a=[];if(g2(e))return e.forEachChild(E=>{a.push(E)}),a;c_.setText((t||e.getSourceFile()).text);let o=e.pos,m=E=>{l_(a,o,E.pos,e),a.push(E),o=E.end},v=E=>{l_(a,o,E.pos,e),a.push(fv(E,e)),o=E.end};return qn(e.jsDoc,m),o=e.pos,e.forEachChild(m,v),l_(a,o,e.end,e),c_.setText(void 0),a}function l_(e,t,a,o){for(c_.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function dl(e,t){if(!e)return bt;let a=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(a.length===0||e.some(wh))){let o=new Set;for(let m of e){let v=kh(t,m,E=>{var C;if(!o.has(E))return o.add(E),m.kind===177||m.kind===178?E.getContextualJsDocTags(m,t):((C=E.declarations)==null?void 0:C.length)===1?E.getJsDocTags(t):void 0});v&&(a=[...v,...a])}}return a}function o_(e,t){if(!e)return bt;let a=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(a.length===0||e.some(wh))){let o=new Set;for(let m of e){let v=kh(t,m,E=>{if(!o.has(E))return o.add(E),m.kind===177||m.kind===178?E.getContextualDocumentationComment(m,t):E.getDocumentationComment(t)});v&&(a=a.length===0?v.slice():v.concat(lineBreakPart(),a))}}return a}function kh(e,t,a){var o;let m=((o=t.parent)==null?void 0:o.kind)===176?t.parent.parent:t.parent;if(!m)return;let v=ab(t);return wy($2(m),E=>{let C=e.getTypeAtLocation(E),c=v&&C.symbol?e.getTypeOfSymbol(C.symbol):C,W=e.getPropertyOfType(c,t.symbol.name);return W?a(W):void 0})}var yv=class extends Yf{constructor(e,t,a){super(e,t,a)}update(e,t){return Z6(this,e,t)}getLineAndCharacterOfPosition(e){return Ym(this,e)}getLineStarts(){return Jp(this)}getPositionOfLineAndCharacter(e,t,a){return Tg(Jp(this),e,t,this.text,a)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),a=this.getLineStarts(),o;t+1>=a.length&&(o=this.getEnd()),o||(o=a[t+1]-1);let m=this.getFullText();return m[o]===` -`&&m[o-1]==="\r"?o-1:o}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=Ry();return this.forEachChild(m),e;function t(v){let E=o(v);E&&e.add(E,v)}function a(v){let E=e.get(v);return E||e.set(v,E=[]),E}function o(v){let E=uf(v);return E&&(Ef(E)&&dr(E.expression)?E.expression.name.text:l1(E)?getNameFromPropertyName(E):void 0)}function m(v){switch(v.kind){case 262:case 218:case 174:case 173:let E=v,C=o(E);if(C){let h=a(C),y=Fa(h);y&&E.parent===y.parent&&E.symbol===y.symbol?E.body&&!y.body&&(h[h.length-1]=E):h.push(E)}Ht(v,m);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(v),Ht(v,m);break;case 169:if(!S_(v,31))break;case 260:case 208:{let h=v;if(c2(h.name)){Ht(h.name,m);break}h.initializer&&m(h.initializer)}case 306:case 172:case 171:t(v);break;case 278:let c=v;c.exportClause&&(rh(c.exportClause)?qn(c.exportClause.elements,m):m(c.exportClause.name));break;case 272:let W=v.importClause;W&&(W.name&&t(W.name),W.namedBindings&&(W.namedBindings.kind===274?t(W.namedBindings):qn(W.namedBindings.elements,m)));break;case 226:gf(v)!==0&&t(v);default:Ht(v,m)}}}},gv=class{constructor(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}getLineAndCharacterOfPosition(e){return Ym(this,e)}};function bv(){return{getNodeConstructor:()=>Yf,getTokenConstructor:()=>Th,getIdentifierConstructor:()=>xh,getPrivateIdentifierConstructor:()=>Sh,getSourceFileConstructor:()=>yv,getSymbolConstructor:()=>dv,getTypeConstructor:()=>mv,getSignatureConstructor:()=>hv,getSourceMapSourceConstructor:()=>gv}}var vv=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],z3=[...vv,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];kb(bv());var Ll=new Proxy({},{get:()=>!0});var Ah=Ll["4.8"];function nr(e,t=!1){var a;if(e!=null){if(Ah){if(t||Ml(e)){let o=r1(e);return o?[...o]:void 0}return}return(a=e.modifiers)==null?void 0:a.filter(o=>!Dl(o))}}function ra(e,t=!1){var a;if(e!=null){if(Ah){if(t||Gf(e)){let o=pf(e);return o?[...o]:void 0}return}return(a=e.decorators)==null?void 0:a.filter(Dl)}}var Dh={};var Jl=new Proxy({},{get:(e,t)=>t});var Ph=Jl,Nh=Jl;var D=Ph,Dt=Nh;var Ih=Ll["5.0"],le=Ie,Sv=new Set([le.AmpersandAmpersandToken,le.BarBarToken,le.QuestionQuestionToken]),wv=new Set([Ie.AmpersandAmpersandEqualsToken,Ie.AmpersandEqualsToken,Ie.AsteriskAsteriskEqualsToken,Ie.AsteriskEqualsToken,Ie.BarBarEqualsToken,Ie.BarEqualsToken,Ie.CaretEqualsToken,Ie.EqualsToken,Ie.GreaterThanGreaterThanEqualsToken,Ie.GreaterThanGreaterThanGreaterThanEqualsToken,Ie.LessThanLessThanEqualsToken,Ie.MinusEqualsToken,Ie.PercentEqualsToken,Ie.PlusEqualsToken,Ie.QuestionQuestionEqualsToken,Ie.SlashEqualsToken]),kv=new Set([le.AmpersandAmpersandToken,le.AmpersandToken,le.AsteriskAsteriskToken,le.AsteriskToken,le.BarBarToken,le.BarToken,le.CaretToken,le.EqualsEqualsEqualsToken,le.EqualsEqualsToken,le.ExclamationEqualsEqualsToken,le.ExclamationEqualsToken,le.GreaterThanEqualsToken,le.GreaterThanGreaterThanGreaterThanToken,le.GreaterThanGreaterThanToken,le.GreaterThanToken,le.InKeyword,le.InstanceOfKeyword,le.LessThanEqualsToken,le.LessThanLessThanToken,le.LessThanToken,le.MinusToken,le.PercentToken,le.PlusToken,le.SlashToken]);function Ev(e){return wv.has(e.kind)}function Av(e){return Sv.has(e.kind)}function Cv(e){return kv.has(e.kind)}function Zr(e){return it(e)}function Oh(e){return e.kind!==le.SemicolonClassElement}function He(e,t){let a=nr(t);return(a==null?void 0:a.some(o=>o.kind===e))===!0}function Mh(e){let t=nr(e);return t==null?null:t[t.length-1]??null}function Lh(e){return e.kind===le.CommaToken}function Dv(e){return e.kind===le.SingleLineCommentTrivia||e.kind===le.MultiLineCommentTrivia}function Pv(e){return e.kind===le.JSDocComment}function Jh(e){if(Ev(e))return{type:D.AssignmentExpression,operator:Zr(e.kind)};if(Av(e))return{type:D.LogicalExpression,operator:Zr(e.kind)};if(Cv(e))return{type:D.BinaryExpression,operator:Zr(e.kind)};throw new Error(`Unexpected binary operator ${it(e.kind)}`)}function k_(e,t){let a=t.getLineAndCharacterOfPosition(e);return{column:a.character,line:a.line+1}}function ei(e,t){let[a,o]=e.map(m=>k_(m,t));return{end:o,start:a}}function jh(e){if(e.kind===Ie.Block)switch(e.parent.kind){case Ie.Constructor:case Ie.GetAccessor:case Ie.SetAccessor:case Ie.ArrowFunction:case Ie.FunctionExpression:case Ie.FunctionDeclaration:case Ie.MethodDeclaration:return!0;default:return!1}return!0}function ia(e,t){return[e.getStart(t),e.getEnd()]}function Nv(e){return e.kind>=le.FirstToken&&e.kind<=le.LastToken}function Rh(e){return e.kind>=le.JsxElement&&e.kind<=le.JsxAttribute}function jl(e){return e.flags&bn.Let?"let":(e.flags&bn.AwaitUsing)===bn.AwaitUsing?"await using":e.flags&bn.Const?"const":e.flags&bn.Using?"using":"var"}function ki(e){let t=nr(e);if(t!=null)for(let a of t)switch(a.kind){case le.PublicKeyword:return"public";case le.ProtectedKeyword:return"protected";case le.PrivateKeyword:return"private";default:break}}function mr(e,t,a){return o(t);function o(m){return o1(m)&&m.pos===e.end?m:jv(m.getChildren(a),v=>(v.pos<=e.pos&&v.end>e.end||v.pos===e.end)&&Jv(v,a)?o(v):void 0)}}function Iv(e,t){let a=e;for(;a;){if(t(a))return a;a=a.parent}}function Ov(e){return!!Iv(e,Rh)}function Kf(e){return Er(!1,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let a=t.slice(1,-1);if(a[0]==="#"){let o=a[1]==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return o>1114111?t:String.fromCodePoint(o)}return Dh[a]||t})}function aa(e){return e.kind===le.ComputedPropertyName}function Zf(e){return!!e.questionToken}function ed(e){return e.type===D.ChainExpression}function Uh(e,t){return ed(t)&&e.expression.kind!==Ie.ParenthesizedExpression}function Mv(e){if(e.kind===le.NullKeyword)return Dt.Null;let t;if(Ih&&e.kind===le.Identifier?t=El(e):"originalKeywordKind"in e&&(t=e.originalKeywordKind),t)return t===le.NullKeyword?Dt.Null:t>=le.FirstFutureReservedWord&&t<=le.LastKeyword?Dt.Identifier:Dt.Keyword;if(e.kind>=le.FirstKeyword&&e.kind<=le.LastFutureReservedWord)return e.kind===le.FalseKeyword||e.kind===le.TrueKeyword?Dt.Boolean:Dt.Keyword;if(e.kind>=le.FirstPunctuation&&e.kind<=le.LastPunctuation)return Dt.Punctuator;if(e.kind>=le.NoSubstitutionTemplateLiteral&&e.kind<=le.TemplateTail)return Dt.Template;switch(e.kind){case le.NumericLiteral:case le.BigIntLiteral:return Dt.Numeric;case le.PrivateIdentifier:return Dt.PrivateIdentifier;case le.JsxText:return Dt.JSXText;case le.StringLiteral:return e.parent.kind===le.JsxAttribute||e.parent.kind===le.JsxElement?Dt.JSXText:Dt.String;case le.RegularExpressionLiteral:return Dt.RegularExpression;case le.Identifier:case le.ConstructorKeyword:case le.GetKeyword:case le.SetKeyword:default:}if(e.kind===le.Identifier){if(Rh(e.parent))return Dt.JSXIdentifier;if(e.parent.kind===le.PropertyAccessExpression&&Ov(e))return Dt.JSXIdentifier}return Dt.Identifier}function Lv(e,t){let a=e.kind===le.JsxText?e.getFullStart():e.getStart(t),o=e.getEnd(),m=t.text.slice(a,o),v=Mv(e),E=[a,o],C=ei(E,t);return v===Dt.RegularExpression?{type:v,loc:C,range:E,regex:{flags:m.slice(m.lastIndexOf("/")+1),pattern:m.slice(1,m.lastIndexOf("/"))},value:m}:v===Dt.PrivateIdentifier?{type:v,loc:C,range:E,value:m.slice(1)}:{type:v,loc:C,range:E,value:m}}function Bh(e){let t=[];function a(o){Dv(o)||Pv(o)||(Nv(o)&&o.kind!==le.EndOfFileToken?t.push(Lv(o,e)):o.getChildren(e).forEach(a))}return a(e),t}var Qf=class extends Error{fileName;location;constructor(t,a,o){super(t),this.fileName=a,this.location=o,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function td(e,t,a,o=a){let[m,v]=[a,o].map(E=>{let{character:C,line:c}=t.getLineAndCharacterOfPosition(E);return{column:C,line:c+1,offset:E}});return new Qf(e,t.fileName,{end:v,start:m})}function qh(e){var t;return!!("illegalDecorators"in e&&((t=e.illegalDecorators)!=null&&t.length))}function Jv(e,t){return e.kind===le.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function jv(e,t){if(e!==void 0)for(let a=0;a=0&&e.kind!==le.EndOfFileToken}function nd(e){return!Uv(e)}function Vh(e){return lf(e.parent,hf)}function Bv(e){return He(le.AbstractKeyword,e)}function qv(e){if(e.parameters.length&&!Ol(e)){let t=e.parameters[0];if(Fv(t))return t}return null}function Fv(e){return Fh(e.name)}function Wh(e){switch(e.kind){case le.ClassDeclaration:return!0;case le.ClassExpression:return!0;case le.PropertyDeclaration:{let{parent:t}=e;return!!(Ha(t)||xi(t)&&!Bv(e))}case le.GetAccessor:case le.SetAccessor:case le.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(Ha(t)||xi(t))}case le.Parameter:{let{parent:t}=e,a=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===le.Constructor||t.kind===le.MethodDeclaration||t.kind===le.SetAccessor)&&qv(t)!==e&&!!a&&a.kind===le.ClassDeclaration}}return!1}function Rl(e){switch(e.kind){case le.Identifier:return!0;case le.PropertyAccessExpression:case le.ElementAccessExpression:return!(e.flags&bn.OptionalChain);case le.ParenthesizedExpression:case le.TypeAssertionExpression:case le.AsExpression:case le.SatisfiesExpression:case le.ExpressionWithTypeArguments:case le.NonNullExpression:return Rl(e.expression);default:return!1}}function Gh(e){let t=nr(e),a=e;for(;(!t||t.length===0)&&wi(a.parent);){let o=nr(a.parent);o!=null&&o.length&&(t=o),a=a.parent}return t}var T=Ie;function sd(e){return td("message"in e&&e.message||e.messageText,e.file,e.start)}function zv(e){return dr(e)&&Ze(e.name)&&Yh(e.expression)}function Yh(e){return e.kind===T.Identifier||zv(e)}var he,id,Hh,Je,Vt,Ka,ad,Ul=class{constructor(t,a){bp(this,he);Vi(this,"allowPattern",!1);Vi(this,"ast");Vi(this,"esTreeNodeToTSNodeMap",new WeakMap);Vi(this,"options");Vi(this,"tsNodeToESTreeNodeMap",new WeakMap);this.ast=t,this.options={...a}}assertModuleSpecifier(t,a){var o;!a&&t.moduleSpecifier==null&&ge(this,he,Vt).call(this,t,"Module specifier must be a string literal."),t.moduleSpecifier&&((o=t.moduleSpecifier)==null?void 0:o.kind)!==T.StringLiteral&&ge(this,he,Vt).call(this,t.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(t,a,o){let m=this.convertPattern(t);return a&&(m.typeAnnotation=this.convertTypeAnnotation(a,o),this.fixParentLocation(m,m.typeAnnotation.range)),m}convertBodyExpressions(t,a){let o=jh(a);return t.map(m=>{let v=this.convertChild(m);if(o){if(v!=null&&v.expression&&Nl(m)&&Si(m.expression)){let E=v.expression.raw;return v.directive=E.slice(1,-1),v}o=!1}return v}).filter(m=>m)}convertChainExpression(t,a){let{child:o,isOptional:m}=t.type===D.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===D.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1},v=Uh(a,o);if(!v&&!m)return t;if(v&&ed(o)){let E=o.expression;t.type===D.MemberExpression?t.object=E:t.type===D.CallExpression?t.callee=E:t.expression=E}return this.createNode(a,{type:D.ChainExpression,expression:t})}convertChild(t,a){return this.converter(t,a,!1)}convertPattern(t,a){return this.converter(t,a,!0)}convertTypeAnnotation(t,a){let o=(a==null?void 0:a.kind)===T.FunctionType||(a==null?void 0:a.kind)===T.ConstructorType?2:1,v=[t.getFullStart()-o,t.end],E=ei(v,this.ast);return{type:D.TSTypeAnnotation,loc:E,range:v,typeAnnotation:this.convertChild(t)}}convertTypeArgumentsToTypeParameterInstantiation(t,a){let o=mr(t,this.ast,this.ast);return this.createNode(a,{type:D.TSTypeParameterInstantiation,range:[t.pos-1,o.end],params:t.map(m=>this.convertChild(m))})}convertTSTypeParametersToTypeParametersDeclaration(t){let a=mr(t,this.ast,this.ast),o=[t.pos-1,a.end];return{type:D.TSTypeParameterDeclaration,loc:ei(o,this.ast),range:o,params:t.map(m=>this.convertChild(m))}}convertParameters(t){return t!=null&&t.length?t.map(a=>{var m;let o=this.convertChild(a);return o.decorators=((m=ra(a))==null?void 0:m.map(v=>this.convertChild(v)))??[],o}):[]}converter(t,a,o){if(!t)return null;ge(this,he,Hh).call(this,t);let m=this.allowPattern;o!=null&&(this.allowPattern=o);let v=this.convertNode(t,a??t.parent);return this.registerTSNodeInNodeMap(t,v),this.allowPattern=m,v}convertImportAttributes(t){return t==null?[]:t.elements.map(a=>this.convertChild(a))}convertJSXIdentifier(t){let a=this.createNode(t,{type:D.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,a),a}convertJSXNamespaceOrIdentifier(t){if(t.kind===Ie.JsxNamespacedName){let m=this.createNode(t,{type:D.JSXNamespacedName,name:this.createNode(t.name,{type:D.JSXIdentifier,name:t.name.text}),namespace:this.createNode(t.namespace,{type:D.JSXIdentifier,name:t.namespace.text})});return this.registerTSNodeInNodeMap(t,m),m}let a=t.getText(),o=a.indexOf(":");if(o>0){let m=ia(t,this.ast),v=this.createNode(t,{type:D.JSXNamespacedName,range:m,name:this.createNode(t,{type:D.JSXIdentifier,range:[m[0]+o+1,m[1]],name:a.slice(o+1)}),namespace:this.createNode(t,{type:D.JSXIdentifier,range:[m[0],m[0]+o],name:a.slice(0,o)})});return this.registerTSNodeInNodeMap(t,v),v}return this.convertJSXIdentifier(t)}convertJSXTagName(t,a){let o;switch(t.kind){case T.PropertyAccessExpression:t.name.kind===T.PrivateIdentifier&&ge(this,he,Je).call(this,t.name,"Non-private identifier expected."),o=this.createNode(t,{type:D.JSXMemberExpression,object:this.convertJSXTagName(t.expression,a),property:this.convertJSXIdentifier(t.name)});break;case T.ThisKeyword:case T.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,o),o}convertMethodSignature(t){return this.createNode(t,{type:D.TSMethodSignature,accessibility:ki(t),computed:aa(t.name),key:this.convertChild(t.name),kind:(()=>{switch(t.kind){case T.GetAccessor:return"get";case T.SetAccessor:return"set";case T.MethodSignature:return"method"}})(),optional:Zf(t),params:this.convertParameters(t.parameters),readonly:He(T.ReadonlyKeyword,t),returnType:t.type&&this.convertTypeAnnotation(t.type,t),static:He(T.StaticKeyword,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}fixParentLocation(t,a){a[0]t.range[1]&&(t.range[1]=a[1],t.loc.end=k_(t.range[1],this.ast))}convertNode(t,a){var o,m,v,E,C,c,W,h;switch(t.kind){case T.SourceFile:return this.createNode(t,{type:D.Program,range:[t.getStart(this.ast),t.endOfFileToken.end],body:this.convertBodyExpressions(t.statements,t),comments:void 0,sourceType:t.externalModuleIndicator?"module":"script",tokens:void 0});case T.Block:return this.createNode(t,{type:D.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case T.Identifier:return zh(t)?this.createNode(t,{type:D.ThisExpression}):this.createNode(t,{type:D.Identifier,decorators:[],name:t.text,optional:!1,typeAnnotation:void 0});case T.PrivateIdentifier:return this.createNode(t,{type:D.PrivateIdentifier,name:t.text.slice(1)});case T.WithStatement:return this.createNode(t,{type:D.WithStatement,body:this.convertChild(t.statement),object:this.convertChild(t.expression)});case T.ReturnStatement:return this.createNode(t,{type:D.ReturnStatement,argument:this.convertChild(t.expression)});case T.LabeledStatement:return this.createNode(t,{type:D.LabeledStatement,body:this.convertChild(t.statement),label:this.convertChild(t.label)});case T.ContinueStatement:return this.createNode(t,{type:D.ContinueStatement,label:this.convertChild(t.label)});case T.BreakStatement:return this.createNode(t,{type:D.BreakStatement,label:this.convertChild(t.label)});case T.IfStatement:return this.createNode(t,{type:D.IfStatement,alternate:this.convertChild(t.elseStatement),consequent:this.convertChild(t.thenStatement),test:this.convertChild(t.expression)});case T.SwitchStatement:return t.caseBlock.clauses.filter(y=>y.kind===T.DefaultClause).length>1&&ge(this,he,Je).call(this,t,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(t,{type:D.SwitchStatement,cases:t.caseBlock.clauses.map(y=>this.convertChild(y)),discriminant:this.convertChild(t.expression)});case T.CaseClause:case T.DefaultClause:return this.createNode(t,{type:D.SwitchCase,consequent:t.statements.map(y=>this.convertChild(y)),test:t.kind===T.CaseClause?this.convertChild(t.expression):null});case T.ThrowStatement:return t.expression.end===t.expression.pos&&ge(this,he,Vt).call(this,t,"A throw statement must throw an expression."),this.createNode(t,{type:D.ThrowStatement,argument:this.convertChild(t.expression)});case T.TryStatement:return this.createNode(t,{type:D.TryStatement,block:this.convertChild(t.tryBlock),finalizer:this.convertChild(t.finallyBlock),handler:this.convertChild(t.catchClause)});case T.CatchClause:return(o=t.variableDeclaration)!=null&&o.initializer&&ge(this,he,Je).call(this,t.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(t,{type:D.CatchClause,body:this.convertChild(t.block),param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null});case T.WhileStatement:return this.createNode(t,{type:D.WhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case T.DoStatement:return this.createNode(t,{type:D.DoWhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case T.ForStatement:return this.createNode(t,{type:D.ForStatement,body:this.convertChild(t.statement),init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor)});case T.ForInStatement:return ge(this,he,id).call(this,t.initializer,t.kind),this.createNode(t,{type:D.ForInStatement,body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case T.ForOfStatement:return ge(this,he,id).call(this,t.initializer,t.kind),this.createNode(t,{type:D.ForOfStatement,await:!!(t.awaitModifier&&t.awaitModifier.kind===T.AwaitKeyword),body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case T.FunctionDeclaration:{let y=He(T.DeclareKeyword,t),g=He(T.AsyncKeyword,t),x=!!t.asteriskToken;y?t.body?ge(this,he,Je).call(this,t,"An implementation cannot be declared in ambient contexts."):g?ge(this,he,Je).call(this,t,"'async' modifier cannot be used in an ambient context."):x&&ge(this,he,Je).call(this,t,"Generators are not allowed in an ambient context."):!t.body&&x&&ge(this,he,Je).call(this,t,"A function signature cannot be declared as a generator.");let N=this.createNode(t,{type:t.body?D.FunctionDeclaration:D.TSDeclareFunction,async:g,body:this.convertChild(t.body)||void 0,declare:y,expression:!1,generator:x,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,N)}case T.VariableDeclaration:{let y=!!t.exclamationToken,g=this.convertChild(t.initializer),x=this.convertBindingNameWithTypeAnnotation(t.name,t.type,t);return y&&(g?ge(this,he,Je).call(this,t,"Declarations with initializers cannot also have definite assignment assertions."):(x.type!==D.Identifier||!x.typeAnnotation)&&ge(this,he,Je).call(this,t,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(t,{type:D.VariableDeclarator,definite:y,id:x,init:g})}case T.VariableStatement:{let y=this.createNode(t,{type:D.VariableDeclaration,declarations:t.declarationList.declarations.map(g=>this.convertChild(g)),declare:He(T.DeclareKeyword,t),kind:jl(t.declarationList)});return y.declarations.length||ge(this,he,Vt).call(this,t,"A variable declaration list must have at least one variable declarator."),(y.kind==="using"||y.kind==="await using")&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].init==null&&ge(this,he,Je).call(this,g,`'${y.kind}' declarations must be initialized.`),y.declarations[x].id.type!==D.Identifier&&ge(this,he,Je).call(this,g.name,`'${y.kind}' declarations may not have binding patterns.`)}),(y.declare||["await using","const","using"].includes(y.kind))&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].definite&&ge(this,he,Je).call(this,g,"A definite assignment assertion '!' is not permitted in this context.")}),y.declare&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].init&&(["let","var"].includes(y.kind)||y.declarations[x].id.typeAnnotation)&&ge(this,he,Je).call(this,g,"Initializers are not permitted in ambient contexts.")}),this.fixExports(t,y)}case T.VariableDeclarationList:{let y=this.createNode(t,{type:D.VariableDeclaration,declarations:t.declarations.map(g=>this.convertChild(g)),declare:!1,kind:jl(t)});return(y.kind==="using"||y.kind==="await using")&&t.declarations.forEach((g,x)=>{y.declarations[x].init!=null&&ge(this,he,Je).call(this,g,`'${y.kind}' declarations may not be initialized in for statement.`),y.declarations[x].id.type!==D.Identifier&&ge(this,he,Je).call(this,g.name,`'${y.kind}' declarations may not have binding patterns.`)}),y}case T.ExpressionStatement:return this.createNode(t,{type:D.ExpressionStatement,directive:void 0,expression:this.convertChild(t.expression)});case T.ThisKeyword:return this.createNode(t,{type:D.ThisExpression});case T.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:D.ArrayPattern,decorators:[],elements:t.elements.map(y=>this.convertPattern(y)),optional:!1,typeAnnotation:void 0}):this.createNode(t,{type:D.ArrayExpression,elements:t.elements.map(y=>this.convertChild(y))});case T.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(t,{type:D.ObjectPattern,decorators:[],optional:!1,properties:t.properties.map(g=>this.convertPattern(g)),typeAnnotation:void 0});let y=[];for(let g of t.properties)(g.kind===T.GetAccessor||g.kind===T.SetAccessor||g.kind===T.MethodDeclaration)&&!g.body&&ge(this,he,Vt).call(this,g.end-1,"'{' expected."),y.push(this.convertChild(g));return this.createNode(t,{type:D.ObjectExpression,properties:y})}case T.PropertyAssignment:{let{exclamationToken:y,questionToken:g}=t;return g&&ge(this,he,Je).call(this,g,"A property assignment cannot have a question token."),y&&ge(this,he,Je).call(this,y,"A property assignment cannot have an exclamation token."),this.createNode(t,{type:D.Property,computed:aa(t.name),key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(t.initializer,t,this.allowPattern)})}case T.ShorthandPropertyAssignment:{let{exclamationToken:y,modifiers:g,questionToken:x}=t;return g&&ge(this,he,Je).call(this,g[0],"A shorthand property assignment cannot have modifiers."),x&&ge(this,he,Je).call(this,x,"A shorthand property assignment cannot have a question token."),y&&ge(this,he,Je).call(this,y,"A shorthand property assignment cannot have an exclamation token."),t.objectAssignmentInitializer?this.createNode(t,{type:D.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(t,{type:D.AssignmentPattern,decorators:[],left:this.convertPattern(t.name),optional:!1,right:this.convertChild(t.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(t,{type:D.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(t.name)})}case T.ComputedPropertyName:return this.convertChild(t.expression);case T.PropertyDeclaration:{let y=He(T.AbstractKeyword,t);y&&t.initializer&&ge(this,he,Je).call(this,t.initializer,"Abstract property cannot have an initializer.");let g=He(T.AccessorKeyword,t),x=g?y?D.TSAbstractAccessorProperty:D.AccessorProperty:y?D.TSAbstractPropertyDefinition:D.PropertyDefinition,N=this.convertChild(t.name);return this.createNode(t,{type:x,accessibility:ki(t),computed:aa(t.name),declare:He(T.DeclareKeyword,t),decorators:((m=ra(t))==null?void 0:m.map(te=>this.convertChild(te)))??[],definite:!!t.exclamationToken,key:N,optional:(N.type===D.Literal||t.name.kind===T.Identifier||t.name.kind===T.ComputedPropertyName||t.name.kind===T.PrivateIdentifier)&&!!t.questionToken,override:He(T.OverrideKeyword,t),readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t),value:y?null:this.convertChild(t.initializer)})}case T.GetAccessor:case T.SetAccessor:if(t.parent.kind===T.InterfaceDeclaration||t.parent.kind===T.TypeLiteral)return this.convertMethodSignature(t);case T.MethodDeclaration:{let y=this.createNode(t,{type:t.body?D.FunctionExpression:D.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:He(T.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:null,params:[],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});y.typeParameters&&this.fixParentLocation(y,y.typeParameters.range);let g;if(a.kind===T.ObjectLiteralExpression)y.params=t.parameters.map(x=>this.convertChild(x)),g=this.createNode(t,{type:D.Property,computed:aa(t.name),key:this.convertChild(t.name),kind:"init",method:t.kind===T.MethodDeclaration,optional:!!t.questionToken,shorthand:!1,value:y});else{y.params=this.convertParameters(t.parameters);let x=He(T.AbstractKeyword,t)?D.TSAbstractMethodDefinition:D.MethodDefinition;g=this.createNode(t,{type:x,accessibility:ki(t),computed:aa(t.name),decorators:((v=ra(t))==null?void 0:v.map(N=>this.convertChild(N)))??[],key:this.convertChild(t.name),kind:"method",optional:!!t.questionToken,override:He(T.OverrideKeyword,t),static:He(T.StaticKeyword,t),value:y})}return t.kind===T.GetAccessor?g.kind="get":t.kind===T.SetAccessor?g.kind="set":!g.static&&t.name.kind===T.StringLiteral&&t.name.text==="constructor"&&g.type!==D.Property&&(g.kind="constructor"),g}case T.Constructor:{let y=Mh(t),g=(y&&mr(y,t,this.ast))??t.getFirstToken(),x=this.createNode(t,{type:t.body?D.FunctionExpression:D.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:!1,body:this.convertChild(t.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});x.typeParameters&&this.fixParentLocation(x,x.typeParameters.range);let N=g.kind===T.StringLiteral?this.createNode(g,{type:D.Literal,raw:g.getText(),value:"constructor"}):this.createNode(t,{type:D.Identifier,range:[g.getStart(this.ast),g.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),te=He(T.StaticKeyword,t);return this.createNode(t,{type:He(T.AbstractKeyword,t)?D.TSAbstractMethodDefinition:D.MethodDefinition,accessibility:ki(t),computed:!1,decorators:[],key:N,kind:te?"method":"constructor",optional:!1,override:!1,static:te,value:x})}case T.FunctionExpression:return this.createNode(t,{type:D.FunctionExpression,async:He(T.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.SuperKeyword:return this.createNode(t,{type:D.Super});case T.ArrayBindingPattern:return this.createNode(t,{type:D.ArrayPattern,decorators:[],elements:t.elements.map(y=>this.convertPattern(y)),optional:!1,typeAnnotation:void 0});case T.OmittedExpression:return null;case T.ObjectBindingPattern:return this.createNode(t,{type:D.ObjectPattern,decorators:[],optional:!1,properties:t.elements.map(y=>this.convertPattern(y)),typeAnnotation:void 0});case T.BindingElement:{if(a.kind===T.ArrayBindingPattern){let g=this.convertChild(t.name,a);return t.initializer?this.createNode(t,{type:D.AssignmentPattern,decorators:[],left:g,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}):t.dotDotDotToken?this.createNode(t,{type:D.RestElement,argument:g,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):g}let y;return t.dotDotDotToken?y=this.createNode(t,{type:D.RestElement,argument:this.convertChild(t.propertyName??t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):y=this.createNode(t,{type:D.Property,computed:!!(t.propertyName&&t.propertyName.kind===T.ComputedPropertyName),key:this.convertChild(t.propertyName??t.name),kind:"init",method:!1,optional:!1,shorthand:!t.propertyName,value:this.convertChild(t.name)}),t.initializer&&(y.value=this.createNode(t,{type:D.AssignmentPattern,range:[t.name.getStart(this.ast),t.initializer.end],decorators:[],left:this.convertChild(t.name),optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0})),y}case T.ArrowFunction:return this.createNode(t,{type:D.ArrowFunctionExpression,async:He(T.AsyncKeyword,t),body:this.convertChild(t.body),expression:t.body.kind!==T.Block,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.YieldExpression:return this.createNode(t,{type:D.YieldExpression,argument:this.convertChild(t.expression),delegate:!!t.asteriskToken});case T.AwaitExpression:return this.createNode(t,{type:D.AwaitExpression,argument:this.convertChild(t.expression)});case T.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:D.TemplateLiteral,expressions:[],quasis:[this.createNode(t,{type:D.TemplateElement,tail:!0,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1)}})]});case T.TemplateExpression:{let y=this.createNode(t,{type:D.TemplateLiteral,expressions:[],quasis:[this.convertChild(t.head)]});return t.templateSpans.forEach(g=>{y.expressions.push(this.convertChild(g.expression)),y.quasis.push(this.convertChild(g.literal))}),y}case T.TaggedTemplateExpression:return this.createNode(t,{type:D.TaggedTemplateExpression,quasi:this.convertChild(t.template),tag:this.convertChild(t.tag),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.TemplateHead:case T.TemplateMiddle:case T.TemplateTail:{let y=t.kind===T.TemplateTail;return this.createNode(t,{type:D.TemplateElement,tail:y,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(y?1:2))}})}case T.SpreadAssignment:case T.SpreadElement:return this.allowPattern?this.createNode(t,{type:D.RestElement,argument:this.convertPattern(t.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(t,{type:D.SpreadElement,argument:this.convertChild(t.expression)});case T.Parameter:{let y,g;return t.dotDotDotToken?y=g=this.createNode(t,{type:D.RestElement,argument:this.convertChild(t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):t.initializer?(y=this.convertChild(t.name),g=this.createNode(t,{type:D.AssignmentPattern,range:[t.name.getStart(this.ast),t.initializer.end],decorators:[],left:y,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}),nr(t)&&(g.range[0]=y.range[0],g.loc=ei(g.range,this.ast))):y=g=this.convertChild(t.name,a),t.type&&(y.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(y,y.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>y.range[1]&&(y.range[1]=t.questionToken.end,y.loc.end=k_(y.range[1],this.ast)),y.optional=!0),nr(t)?this.createNode(t,{type:D.TSParameterProperty,accessibility:ki(t),decorators:[],override:He(T.OverrideKeyword,t),parameter:g,readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t)}):g}case T.ClassDeclaration:!t.name&&(!He(Ie.ExportKeyword,t)||!He(Ie.DefaultKeyword,t))&&ge(this,he,Vt).call(this,t,"A class declaration without the 'default' modifier must have a name.");case T.ClassExpression:{let y=t.heritageClauses??[],g=t.kind===T.ClassDeclaration?D.ClassDeclaration:D.ClassExpression,x,N;for(let ue of y){let{token:ye,types:fe}=ue;fe.length===0&&ge(this,he,Vt).call(this,ue,`'${it(ye)}' list cannot be empty.`),ye===T.ExtendsKeyword?(x&&ge(this,he,Vt).call(this,ue,"'extends' clause already seen."),N&&ge(this,he,Vt).call(this,ue,"'extends' clause must precede 'implements' clause."),fe.length>1&&ge(this,he,Vt).call(this,fe[1],"Classes can only extend a single class."),x??(x=ue)):ye===T.ImplementsKeyword&&(N&&ge(this,he,Vt).call(this,ue,"'implements' clause already seen."),N??(N=ue))}let te=this.createNode(t,{type:g,abstract:He(T.AbstractKeyword,t),body:this.createNode(t,{type:D.ClassBody,range:[t.members.pos-1,t.end],body:t.members.filter(Oh).map(ue=>this.convertChild(ue))}),declare:He(T.DeclareKeyword,t),decorators:((E=ra(t))==null?void 0:E.map(ue=>this.convertChild(ue)))??[],id:this.convertChild(t.name),implements:(N==null?void 0:N.types.map(ue=>this.convertChild(ue)))??[],superClass:x!=null&&x.types[0]?this.convertChild(x.types[0].expression):null,superTypeArguments:void 0,typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return(C=x==null?void 0:x.types[0])!=null&&C.typeArguments&&(te.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(x.types[0].typeArguments,x.types[0])),this.fixExports(t,te)}case T.ModuleBlock:return this.createNode(t,{type:D.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case T.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let y=this.createNode(t,ge(this,he,Ka).call(this,{type:D.ImportDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),importKind:"value",source:this.convertChild(t.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(t.importClause&&(t.importClause.isTypeOnly&&(y.importKind="type"),t.importClause.name&&y.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case T.NamespaceImport:y.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case T.NamedImports:y.specifiers.push(...t.importClause.namedBindings.elements.map(g=>this.convertChild(g)));break}return y}case T.NamespaceImport:return this.createNode(t,{type:D.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case T.ImportSpecifier:return this.createNode(t,{type:D.ImportSpecifier,imported:this.convertChild(t.propertyName??t.name),importKind:t.isTypeOnly?"type":"value",local:this.convertChild(t.name)});case T.ImportClause:{let y=this.convertChild(t.name);return this.createNode(t,{type:D.ImportDefaultSpecifier,range:y.range,local:y})}case T.ExportDeclaration:return((c=t.exportClause)==null?void 0:c.kind)===T.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,ge(this,he,Ka).call(this,{type:D.ExportNamedDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),declaration:null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier),specifiers:t.exportClause.elements.map(y=>this.convertChild(y,t))},"assertions","attributes",!0))):(this.assertModuleSpecifier(t,!1),this.createNode(t,ge(this,he,Ka).call(this,{type:D.ExportAllDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),exported:((W=t.exportClause)==null?void 0:W.kind)===T.NamespaceExport?this.convertChild(t.exportClause.name):null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier)},"assertions","attributes",!0)));case T.ExportSpecifier:{let y=t.propertyName??t.name;return y.kind===T.StringLiteral&&a.kind===T.ExportDeclaration&&((h=a.moduleSpecifier)==null?void 0:h.kind)!==T.StringLiteral&&ge(this,he,Je).call(this,y,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(t,{type:D.ExportSpecifier,exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value",local:this.convertChild(y)})}case T.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:D.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:D.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case T.PrefixUnaryExpression:case T.PostfixUnaryExpression:{let y=Zr(t.operator);return y==="++"||y==="--"?(Rl(t.operand)||ge(this,he,Vt).call(this,t.operand,"Invalid left-hand side expression in unary operation"),this.createNode(t,{type:D.UpdateExpression,argument:this.convertChild(t.operand),operator:y,prefix:t.kind===T.PrefixUnaryExpression})):this.createNode(t,{type:D.UnaryExpression,argument:this.convertChild(t.operand),operator:y,prefix:t.kind===T.PrefixUnaryExpression})}case T.DeleteExpression:return this.createNode(t,{type:D.UnaryExpression,argument:this.convertChild(t.expression),operator:"delete",prefix:!0});case T.VoidExpression:return this.createNode(t,{type:D.UnaryExpression,argument:this.convertChild(t.expression),operator:"void",prefix:!0});case T.TypeOfExpression:return this.createNode(t,{type:D.UnaryExpression,argument:this.convertChild(t.expression),operator:"typeof",prefix:!0});case T.TypeOperator:return this.createNode(t,{type:D.TSTypeOperator,operator:Zr(t.operator),typeAnnotation:this.convertChild(t.type)});case T.BinaryExpression:{if(Lh(t.operatorToken)){let g=this.createNode(t,{type:D.SequenceExpression,expressions:[]}),x=this.convertChild(t.left);return x.type===D.SequenceExpression&&t.left.kind!==T.ParenthesizedExpression?g.expressions.push(...x.expressions):g.expressions.push(x),g.expressions.push(this.convertChild(t.right)),g}let y=Jh(t.operatorToken);return this.allowPattern&&y.type===D.AssignmentExpression?this.createNode(t,{type:D.AssignmentPattern,decorators:[],left:this.convertPattern(t.left,t),optional:!1,right:this.convertChild(t.right),typeAnnotation:void 0}):this.createNode(t,{...y,left:this.converter(t.left,t,y.type===D.AssignmentExpression),right:this.convertChild(t.right)})}case T.PropertyAccessExpression:{let y=this.convertChild(t.expression),g=this.convertChild(t.name),N=this.createNode(t,{type:D.MemberExpression,computed:!1,object:y,optional:t.questionDotToken!=null,property:g});return this.convertChainExpression(N,t)}case T.ElementAccessExpression:{let y=this.convertChild(t.expression),g=this.convertChild(t.argumentExpression),N=this.createNode(t,{type:D.MemberExpression,computed:!0,object:y,optional:t.questionDotToken!=null,property:g});return this.convertChainExpression(N,t)}case T.CallExpression:{if(t.expression.kind===T.ImportKeyword)return t.arguments.length!==1&&t.arguments.length!==2&&ge(this,he,Vt).call(this,t.arguments[2]??t,"Dynamic import requires exactly one or two arguments."),this.createNode(t,ge(this,he,Ka).call(this,{type:D.ImportExpression,options:t.arguments[1]?this.convertChild(t.arguments[1]):null,source:this.convertChild(t.arguments[0])},"attributes","options",!0));let y=this.convertChild(t.expression),g=t.arguments.map(te=>this.convertChild(te)),x=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),N=this.createNode(t,{type:D.CallExpression,arguments:g,callee:y,optional:t.questionDotToken!=null,typeArguments:x});return this.convertChainExpression(N,t)}case T.NewExpression:{let y=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t);return this.createNode(t,{type:D.NewExpression,arguments:t.arguments?t.arguments.map(g=>this.convertChild(g)):[],callee:this.convertChild(t.expression),typeArguments:y})}case T.ConditionalExpression:return this.createNode(t,{type:D.ConditionalExpression,alternate:this.convertChild(t.whenFalse),consequent:this.convertChild(t.whenTrue),test:this.convertChild(t.condition)});case T.MetaProperty:return this.createNode(t,{type:D.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:D.Identifier,decorators:[],name:Zr(t.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(t.name)});case T.Decorator:return this.createNode(t,{type:D.Decorator,expression:this.convertChild(t.expression)});case T.StringLiteral:return this.createNode(t,{type:D.Literal,raw:t.getText(),value:a.kind===T.JsxAttribute?Kf(t.text):t.text});case T.NumericLiteral:return this.createNode(t,{type:D.Literal,raw:t.getText(),value:Number(t.text)});case T.BigIntLiteral:{let y=ia(t,this.ast),g=this.ast.text.slice(y[0],y[1]),x=Er(!1,g.slice(0,-1),"_",""),N=typeof BigInt<"u"?BigInt(x):null;return this.createNode(t,{type:D.Literal,range:y,bigint:N==null?x:String(N),raw:g,value:N})}case T.RegularExpressionLiteral:{let y=t.text.slice(1,t.text.lastIndexOf("/")),g=t.text.slice(t.text.lastIndexOf("/")+1),x=null;try{x=new RegExp(y,g)}catch{}return this.createNode(t,{type:D.Literal,raw:t.text,regex:{flags:g,pattern:y},value:x})}case T.TrueKeyword:return this.createNode(t,{type:D.Literal,raw:"true",value:!0});case T.FalseKeyword:return this.createNode(t,{type:D.Literal,raw:"false",value:!1});case T.NullKeyword:return this.createNode(t,{type:D.Literal,raw:"null",value:null});case T.EmptyStatement:return this.createNode(t,{type:D.EmptyStatement});case T.DebuggerStatement:return this.createNode(t,{type:D.DebuggerStatement});case T.JsxElement:return this.createNode(t,{type:D.JSXElement,children:t.children.map(y=>this.convertChild(y)),closingElement:this.convertChild(t.closingElement),openingElement:this.convertChild(t.openingElement)});case T.JsxFragment:return this.createNode(t,{type:D.JSXFragment,children:t.children.map(y=>this.convertChild(y)),closingFragment:this.convertChild(t.closingFragment),openingFragment:this.convertChild(t.openingFragment)});case T.JsxSelfClosingElement:return this.createNode(t,{type:D.JSXElement,children:[],closingElement:null,openingElement:this.createNode(t,{type:D.JSXOpeningElement,range:ia(t,this.ast),attributes:t.attributes.properties.map(y=>this.convertChild(y)),name:this.convertJSXTagName(t.tagName,t),selfClosing:!0,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):void 0})});case T.JsxOpeningElement:return this.createNode(t,{type:D.JSXOpeningElement,attributes:t.attributes.properties.map(y=>this.convertChild(y)),name:this.convertJSXTagName(t.tagName,t),selfClosing:!1,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.JsxClosingElement:return this.createNode(t,{type:D.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case T.JsxOpeningFragment:return this.createNode(t,{type:D.JSXOpeningFragment});case T.JsxClosingFragment:return this.createNode(t,{type:D.JSXClosingFragment});case T.JsxExpression:{let y=t.expression?this.convertChild(t.expression):this.createNode(t,{type:D.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:D.JSXSpreadChild,expression:y}):this.createNode(t,{type:D.JSXExpressionContainer,expression:y})}case T.JsxAttribute:return this.createNode(t,{type:D.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case T.JsxText:{let y=t.getFullStart(),g=t.getEnd(),x=this.ast.text.slice(y,g);return this.createNode(t,{type:D.JSXText,range:[y,g],raw:x,value:Kf(x)})}case T.JsxSpreadAttribute:return this.createNode(t,{type:D.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case T.QualifiedName:return this.createNode(t,{type:D.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case T.TypeReference:return this.createNode(t,{type:D.TSTypeReference,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),typeName:this.convertChild(t.typeName)});case T.TypeParameter:return this.createNode(t,{type:D.TSTypeParameter,const:He(T.ConstKeyword,t),constraint:t.constraint&&this.convertChild(t.constraint),default:t.default?this.convertChild(t.default):void 0,in:He(T.InKeyword,t),name:this.convertChild(t.name),out:He(T.OutKeyword,t)});case T.ThisType:return this.createNode(t,{type:D.TSThisType});case T.AnyKeyword:case T.BigIntKeyword:case T.BooleanKeyword:case T.NeverKeyword:case T.NumberKeyword:case T.ObjectKeyword:case T.StringKeyword:case T.SymbolKeyword:case T.UnknownKeyword:case T.VoidKeyword:case T.UndefinedKeyword:case T.IntrinsicKeyword:return this.createNode(t,{type:D[`TS${T[t.kind]}`]});case T.NonNullExpression:{let y=this.createNode(t,{type:D.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(y,t)}case T.TypeLiteral:return this.createNode(t,{type:D.TSTypeLiteral,members:t.members.map(y=>this.convertChild(y))});case T.ArrayType:return this.createNode(t,{type:D.TSArrayType,elementType:this.convertChild(t.elementType)});case T.IndexedAccessType:return this.createNode(t,{type:D.TSIndexedAccessType,indexType:this.convertChild(t.indexType),objectType:this.convertChild(t.objectType)});case T.ConditionalType:return this.createNode(t,{type:D.TSConditionalType,checkType:this.convertChild(t.checkType),extendsType:this.convertChild(t.extendsType),falseType:this.convertChild(t.falseType),trueType:this.convertChild(t.trueType)});case T.TypeQuery:return this.createNode(t,{type:D.TSTypeQuery,exprName:this.convertChild(t.exprName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.MappedType:return t.members&&t.members.length>0&&ge(this,he,Vt).call(this,t.members[0],"A mapped type may not declare properties or methods."),this.createNode(t,ge(this,he,ad).call(this,{type:D.TSMappedType,constraint:this.convertChild(t.typeParameter.constraint),key:this.convertChild(t.typeParameter.name),nameType:this.convertChild(t.nameType)??null,optional:t.questionToken?t.questionToken.kind===T.QuestionToken||Zr(t.questionToken.kind):!1,readonly:t.readonlyToken?t.readonlyToken.kind===T.ReadonlyKeyword||Zr(t.readonlyToken.kind):void 0,typeAnnotation:t.type&&this.convertChild(t.type)},"typeParameter","'constraint' and 'key'",this.convertChild(t.typeParameter)));case T.ParenthesizedExpression:return this.convertChild(t.expression,a);case T.TypeAliasDeclaration:{let y=this.createNode(t,{type:D.TSTypeAliasDeclaration,declare:He(T.DeclareKeyword,t),id:this.convertChild(t.name),typeAnnotation:this.convertChild(t.type),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,y)}case T.MethodSignature:return this.convertMethodSignature(t);case T.PropertySignature:{let{initializer:y}=t;return y&&ge(this,he,Je).call(this,y,"A property signature cannot have an initializer."),this.createNode(t,{type:D.TSPropertySignature,accessibility:ki(t),computed:aa(t.name),key:this.convertChild(t.name),optional:Zf(t),readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)})}case T.IndexSignature:return this.createNode(t,{type:D.TSIndexSignature,accessibility:ki(t),parameters:t.parameters.map(y=>this.convertChild(y)),readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)});case T.ConstructorType:return this.createNode(t,{type:D.TSConstructorType,abstract:He(T.AbstractKeyword,t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.FunctionType:{let{modifiers:y}=t;y&&ge(this,he,Je).call(this,y[0],"A function type cannot have modifiers.")}case T.ConstructSignature:case T.CallSignature:{let y=t.kind===T.ConstructSignature?D.TSConstructSignatureDeclaration:t.kind===T.CallSignature?D.TSCallSignatureDeclaration:D.TSFunctionType;return this.createNode(t,{type:y,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}case T.ExpressionWithTypeArguments:{let y=a.kind,g=y===T.InterfaceDeclaration?D.TSInterfaceHeritage:y===T.HeritageClause?D.TSClassImplements:D.TSInstantiationExpression;return this.createNode(t,{type:g,expression:this.convertChild(t.expression),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)})}case T.InterfaceDeclaration:{let y=t.heritageClauses??[],g=[],x=!1;for(let te of y){te.token!==T.ExtendsKeyword&&ge(this,he,Je).call(this,te,te.token===T.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token."),x&&ge(this,he,Je).call(this,te,"'extends' clause already seen."),x=!0;for(let ue of te.types)(!Yh(ue.expression)||_1(ue.expression))&&ge(this,he,Je).call(this,ue,"Interface declaration can only extend an identifier/qualified name with optional type arguments."),g.push(this.convertChild(ue,t))}let N=this.createNode(t,{type:D.TSInterfaceDeclaration,body:this.createNode(t,{type:D.TSInterfaceBody,range:[t.members.pos-1,t.end],body:t.members.map(te=>this.convertChild(te))}),declare:He(T.DeclareKeyword,t),extends:g,id:this.convertChild(t.name),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,N)}case T.TypePredicate:{let y=this.createNode(t,{type:D.TSTypePredicate,asserts:t.assertsModifier!=null,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(y.typeAnnotation=this.convertTypeAnnotation(t.type,t),y.typeAnnotation.loc=y.typeAnnotation.typeAnnotation.loc,y.typeAnnotation.range=y.typeAnnotation.typeAnnotation.range),y}case T.ImportType:{let y=ia(t,this.ast);if(t.isTypeOf){let N=mr(t.getFirstToken(),t,this.ast);y[0]=N.getStart(this.ast)}let g=null;if(t.attributes){let N=this.createNode(t.attributes,{type:D.ObjectExpression,properties:t.attributes.elements.map(Ce=>this.createNode(Ce,{type:D.Property,computed:!1,key:this.convertChild(Ce.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.convertChild(Ce.value)}))}),te=mr(t.argument,t,this.ast),ue=mr(te,t,this.ast),ye=mr(t.attributes,t,this.ast),fe=mr(ue,t,this.ast),M=ia(fe,this.ast),ie=fe.kind===Ie.AssertKeyword?"assert":"with";g=this.createNode(t,{type:D.ObjectExpression,range:[ue.getStart(this.ast),ye.end],properties:[this.createNode(t,{type:D.Property,range:[M[0],t.attributes.end],computed:!1,key:this.createNode(t,{type:D.Identifier,range:M,decorators:[],name:ie,optional:!1,typeAnnotation:void 0}),kind:"init",method:!1,optional:!1,shorthand:!1,value:N})]})}let x=this.createNode(t,{type:D.TSImportType,range:y,argument:this.convertChild(t.argument),options:g,qualifier:this.convertChild(t.qualifier),typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null});return t.isTypeOf?this.createNode(t,{type:D.TSTypeQuery,exprName:x,typeArguments:void 0}):x}case T.EnumDeclaration:{let y=t.members.map(x=>this.convertChild(x)),g=this.createNode(t,ge(this,he,ad).call(this,{type:D.TSEnumDeclaration,body:this.createNode(t,{type:D.TSEnumBody,range:[t.members.pos-1,t.end],members:y}),const:He(T.ConstKeyword,t),declare:He(T.DeclareKeyword,t),id:this.convertChild(t.name)},"members","'body.members'",t.members.map(x=>this.convertChild(x))));return this.fixExports(t,g)}case T.EnumMember:return this.createNode(t,{type:D.TSEnumMember,computed:t.name.kind===Ie.ComputedPropertyName,id:this.convertChild(t.name),initializer:t.initializer&&this.convertChild(t.initializer)});case T.ModuleDeclaration:{let y=He(T.DeclareKeyword,t),g=this.createNode(t,{type:D.TSModuleDeclaration,...(()=>{if(t.flags&bn.GlobalAugmentation){let N=this.convertChild(t.name),te=this.convertChild(t.body);return(te==null||te.type===D.TSModuleDeclaration)&&ge(this,he,Vt).call(this,t.body??t,"Expected a valid module body"),N.type!==D.Identifier&&ge(this,he,Vt).call(this,t.name,"global module augmentation must have an Identifier id"),{body:te,declare:!1,global:!1,id:N,kind:"global"}}if(Si(t.name)){let N=this.convertChild(t.body);return{kind:"module",...N!=null?{body:N}:{},declare:!1,global:!1,id:this.convertChild(t.name)}}t.body==null&&ge(this,he,Vt).call(this,t,"Expected a module body"),t.name.kind!==Ie.Identifier&&ge(this,he,Vt).call(this,t.name,"`namespace`s must have an Identifier id");let x=this.createNode(t.name,{type:D.Identifier,range:[t.name.getStart(this.ast),t.name.getEnd()],decorators:[],name:t.name.text,optional:!1,typeAnnotation:void 0});for(;t.body&&wi(t.body)&&t.body.name;){t=t.body,y||(y=He(T.DeclareKeyword,t));let N=t.name,te=this.createNode(N,{type:D.Identifier,range:[N.getStart(this.ast),N.getEnd()],decorators:[],name:N.text,optional:!1,typeAnnotation:void 0});x=this.createNode(N,{type:D.TSQualifiedName,range:[x.range[0],te.range[1]],left:x,right:te})}return{body:this.convertChild(t.body),declare:!1,global:!1,id:x,kind:t.flags&bn.Namespace?"namespace":"module"}})()});return g.declare=y,t.flags&bn.GlobalAugmentation&&(g.global=!0),this.fixExports(t,g)}case T.ParenthesizedType:return this.convertChild(t.type);case T.UnionType:return this.createNode(t,{type:D.TSUnionType,types:t.types.map(y=>this.convertChild(y))});case T.IntersectionType:return this.createNode(t,{type:D.TSIntersectionType,types:t.types.map(y=>this.convertChild(y))});case T.AsExpression:return this.createNode(t,{type:D.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case T.InferType:return this.createNode(t,{type:D.TSInferType,typeParameter:this.convertChild(t.typeParameter)});case T.LiteralType:return t.literal.kind===T.NullKeyword?this.createNode(t.literal,{type:D.TSNullKeyword}):this.createNode(t,{type:D.TSLiteralType,literal:this.convertChild(t.literal)});case T.TypeAssertionExpression:return this.createNode(t,{type:D.TSTypeAssertion,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case T.ImportEqualsDeclaration:return this.fixExports(t,this.createNode(t,{type:D.TSImportEqualsDeclaration,id:this.convertChild(t.name),importKind:t.isTypeOnly?"type":"value",moduleReference:this.convertChild(t.moduleReference)}));case T.ExternalModuleReference:return t.expression.kind!==T.StringLiteral&&ge(this,he,Je).call(this,t.expression,"String literal expected."),this.createNode(t,{type:D.TSExternalModuleReference,expression:this.convertChild(t.expression)});case T.NamespaceExportDeclaration:return this.createNode(t,{type:D.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case T.AbstractKeyword:return this.createNode(t,{type:D.TSAbstractKeyword});case T.TupleType:{let y=t.elements.map(g=>this.convertChild(g));return this.createNode(t,{type:D.TSTupleType,elementTypes:y})}case T.NamedTupleMember:{let y=this.createNode(t,{type:D.TSNamedTupleMember,elementType:this.convertChild(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(y.range[0]=y.label.range[0],y.loc.start=y.label.loc.start,this.createNode(t,{type:D.TSRestType,typeAnnotation:y})):y}case T.OptionalType:return this.createNode(t,{type:D.TSOptionalType,typeAnnotation:this.convertChild(t.type)});case T.RestType:return this.createNode(t,{type:D.TSRestType,typeAnnotation:this.convertChild(t.type)});case T.TemplateLiteralType:{let y=this.createNode(t,{type:D.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(g=>{y.types.push(this.convertChild(g.type)),y.quasis.push(this.convertChild(g.literal))}),y}case T.ClassStaticBlockDeclaration:return this.createNode(t,{type:D.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case T.AssertEntry:case T.ImportAttribute:return this.createNode(t,{type:D.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case T.SatisfiesExpression:return this.createNode(t,{type:D.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}createNode(t,a){let o=a;return o.range??(o.range=ia(t,this.ast)),o.loc??(o.loc=ei(o.range,this.ast)),o&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(o,t),o}convertProgram(){return this.converter(this.ast)}deeplyCopy(t){t.kind===Ie.JSDocFunctionType&&ge(this,he,Je).call(this,t,"JSDoc types can only be used inside documentation comments.");let a=`TS${T[t.kind]}`;if(this.options.errorOnUnknownASTType&&!D[a])throw new Error(`Unknown AST_NODE_TYPE: "${a}"`);let o=this.createNode(t,{type:a});"type"in t&&(o.typeAnnotation=t.type&&"kind"in t.type&&u1(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(o.typeArguments=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null),"typeParameters"in t&&(o.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let m=ra(t);m!=null&&m.length&&(o.decorators=m.map(E=>this.convertChild(E)));let v=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([E])=>!v.has(E)).forEach(([E,C])=>{Array.isArray(C)?o[E]=C.map(c=>this.convertChild(c)):C&&typeof C=="object"&&C.kind?o[E]=this.convertChild(C):o[E]=C}),o}fixExports(t,a){let m=wi(t)&&!Si(t.name)?Gh(t):nr(t);if((m==null?void 0:m[0].kind)===T.ExportKeyword){this.registerTSNodeInNodeMap(t,a);let v=m[0],E=m[1],C=(E==null?void 0:E.kind)===T.DefaultKeyword,c=C?mr(E,this.ast,this.ast):mr(v,this.ast,this.ast);if(a.range[0]=c.getStart(this.ast),a.loc=ei(a.range,this.ast),C)return this.createNode(t,{type:D.ExportDefaultDeclaration,range:[v.getStart(this.ast),a.range[1]],declaration:a,exportKind:"value"});let W=a.type===D.TSInterfaceDeclaration||a.type===D.TSTypeAliasDeclaration,h="declare"in a&&a.declare;return this.createNode(t,ge(this,he,Ka).call(this,{type:D.ExportNamedDeclaration,range:[v.getStart(this.ast),a.range[1]],attributes:[],declaration:a,exportKind:W||h?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return a}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(t,a){a&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(t)&&this.tsNodeToESTreeNodeMap.set(t,a)}};he=new WeakSet,id=function(t,a){let o=a===Ie.ForInStatement?"for...in":"for...of";if(th(t)){t.declarations.length!==1&&ge(this,he,Je).call(this,t,`Only a single variable declaration is allowed in a '${o}' statement.`);let m=t.declarations[0];m.initializer?ge(this,he,Je).call(this,m,`The variable declaration of a '${o}' statement cannot have an initializer.`):m.type&&ge(this,he,Je).call(this,m,`The variable declaration of a '${o}' statement cannot have a type annotation.`),a===Ie.ForInStatement&&t.flags&bn.Using&&ge(this,he,Je).call(this,t,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!Rl(t)&&t.kind!==Ie.ObjectLiteralExpression&&t.kind!==Ie.ArrayLiteralExpression&&ge(this,he,Je).call(this,t,`The left-hand side of a '${o}' statement must be a variable or a property access.`)},Hh=function(t){if(!this.options.allowInvalidAST){qh(t)&&ge(this,he,Je).call(this,t.illegalDecorators[0],"Decorators are not valid here.");for(let a of ra(t,!0)??[])Wh(t)||(b_(t)&&!nd(t.body)?ge(this,he,Je).call(this,a,"A decorator can only decorate a method implementation, not an overload."):ge(this,he,Je).call(this,a,"Decorators are not valid here."));for(let a of nr(t,!0)??[]){if(a.kind!==T.ReadonlyKeyword&&((t.kind===T.PropertySignature||t.kind===T.MethodSignature)&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier cannot appear on a type member`),t.kind===T.IndexSignature&&(a.kind!==T.StaticKeyword||!xi(t.parent))&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier cannot appear on an index signature`)),a.kind!==T.InKeyword&&a.kind!==T.OutKeyword&&a.kind!==T.ConstKeyword&&t.kind===T.TypeParameter&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier cannot appear on a type parameter`),(a.kind===T.InKeyword||a.kind===T.OutKeyword)&&(t.kind!==T.TypeParameter||!(w_(t.parent)||xi(t.parent)||Il(t.parent)))&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),a.kind===T.ReadonlyKeyword&&t.kind!==T.PropertyDeclaration&&t.kind!==T.PropertySignature&&t.kind!==T.IndexSignature&&t.kind!==T.Parameter&&ge(this,he,Je).call(this,a,"'readonly' modifier can only appear on a property declaration or index signature."),a.kind===T.DeclareKeyword&&xi(t.parent)&&!Ya(t)&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier cannot appear on class elements of this kind.`),a.kind===T.DeclareKeyword&&Qa(t)){let o=jl(t.declarationList);(o==="using"||o==="await using")&&ge(this,he,Je).call(this,a,`'declare' modifier cannot appear on a '${o}' declaration.`)}if(a.kind===T.AbstractKeyword&&t.kind!==T.ClassDeclaration&&t.kind!==T.ConstructorType&&t.kind!==T.MethodDeclaration&&t.kind!==T.PropertyDeclaration&&t.kind!==T.GetAccessor&&t.kind!==T.SetAccessor&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier can only appear on a class, method, or property declaration.`),(a.kind===T.StaticKeyword||a.kind===T.PublicKeyword||a.kind===T.ProtectedKeyword||a.kind===T.PrivateKeyword)&&(t.parent.kind===T.ModuleBlock||t.parent.kind===T.SourceFile)&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier cannot appear on a module or namespace element.`),a.kind===T.AccessorKeyword&&t.kind!==T.PropertyDeclaration&&ge(this,he,Je).call(this,a,"'accessor' modifier can only appear on a property declaration."),a.kind===T.AsyncKeyword&&t.kind!==T.MethodDeclaration&&t.kind!==T.FunctionDeclaration&&t.kind!==T.FunctionExpression&&t.kind!==T.ArrowFunction&&ge(this,he,Je).call(this,a,"'async' modifier cannot be used here."),t.kind===T.Parameter&&(a.kind===T.StaticKeyword||a.kind===T.ExportKeyword||a.kind===T.DeclareKeyword||a.kind===T.AsyncKeyword)&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier cannot appear on a parameter.`),a.kind===T.PublicKeyword||a.kind===T.ProtectedKeyword||a.kind===T.PrivateKeyword)for(let o of nr(t)??[])o!==a&&(o.kind===T.PublicKeyword||o.kind===T.ProtectedKeyword||o.kind===T.PrivateKeyword)&&ge(this,he,Je).call(this,o,"Accessibility modifier already seen.");if(t.kind===T.Parameter&&(a.kind===T.PublicKeyword||a.kind===T.PrivateKeyword||a.kind===T.ProtectedKeyword||a.kind===T.ReadonlyKeyword||a.kind===T.OverrideKeyword)){let o=Vh(t);o.kind===T.Constructor&&nd(o.body)||ge(this,he,Je).call(this,a,"A parameter property is only allowed in a constructor implementation.")}}}},Je=function(t,a){let o,m;throw typeof t=="number"?o=m=t:(o=t.getStart(this.ast),m=t.getEnd()),td(a,this.ast,o,m)},Vt=function(t,a){this.options.allowInvalidAST||ge(this,he,Je).call(this,t,a)},Ka=function(t,a,o,m=!1){let v=m;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>t[o]:()=>(v||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use '${o}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),v=!0),t[o]),set(E){Object.defineProperty(t,a,{enumerable:!0,value:E,writable:!0})}}),t},ad=function(t,a,o,m){let v=!1;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>m:()=>(v||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use ${o} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),v=!0),m),set(E){Object.defineProperty(t,a,{enumerable:!0,value:E,writable:!0})}}),t};function Vv(e,t,a=e.getSourceFile()){let o=[];for(;;){if(mf(e.kind))t(e);else{let m=e.getChildren(a);if(m.length===1){e=m[0];continue}for(let v=m.length-1;v>=0;--v)o.push(m[v])}if(o.length===0)break;e=o.pop()}}function $h(e,t,a=e.getSourceFile()){let o=a.text,m=a.languageVariant!==wl.JSX;return Vv(e,E=>{if(E.pos!==E.end&&(E.kind!==Ie.JsxText&&Qm(o,E.pos===0?(_f(o)??"").length:E.pos,v),m||Wv(E)))return Km(o,E.end,v)},a);function v(E,C,c){t(o,{end:C,kind:c,pos:E})}}function Wv(e){switch(e.kind){case Ie.CloseBraceToken:return e.parent.kind!==Ie.JsxExpression||!_d(e.parent.parent);case Ie.GreaterThanToken:switch(e.parent.kind){case Ie.JsxClosingElement:case Ie.JsxClosingFragment:return!_d(e.parent.parent.parent);case Ie.JsxOpeningElement:return e.end!==e.parent.end;case Ie.JsxOpeningFragment:return!1;case Ie.JsxSelfClosingElement:return e.end!==e.parent.end||!_d(e.parent.parent)}}return!0}function _d(e){return e.kind===Ie.JsxElement||e.kind===Ie.JsxFragment}var[yx,gx]=km.split(".").map(e=>Number.parseInt(e,10));var bx=rn.Intrinsic??rn.Any|rn.Unknown|rn.String|rn.Number|rn.BigInt|rn.Boolean|rn.BooleanLiteral|rn.ESSymbol|rn.Void|rn.Undefined|rn.Null|rn.Never|rn.NonPrimitive;function Qh(e,t){let a=[];return $h(e,(o,m)=>{let v=m.kind===Ie.SingleLineCommentTrivia?Dt.Line:Dt.Block,E=[m.pos,m.end],C=ei(E,e),c=E[0]+2,W=m.kind===Ie.SingleLineCommentTrivia?E[1]-c:E[1]-c-2;a.push({type:v,loc:C,range:E,value:t.slice(c,c+W)})},e),a}var Kh=()=>{};function Zh(e,t,a){let{parseDiagnostics:o}=e;if(o.length)throw sd(o[0]);let m=new Ul(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:a,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),v=m.convertProgram();return(!t.range||!t.loc)&&Kh(v,{enter:C=>{t.range||delete C.range,t.loc||delete C.loc}}),t.tokens&&(v.tokens=Bh(e)),t.comment&&(v.comments=Qh(e,t.codeFullText)),{astMaps:m.getASTMaps(),estree:v}}function Bl(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===Ie.SourceFile&&typeof t.getFullText=="function"}var Kv=function(e){return e&&e.__esModule?e:{default:e}};var Zv=Kv({extname:e=>"."+e.split(".").pop()});function t0(e,t){switch(Zv.default.extname(e).toLowerCase()){case On.Cjs:case On.Js:case On.Mjs:return Ir.JS;case On.Cts:case On.Mts:case On.Ts:return Ir.TS;case On.Json:return Ir.JSON;case On.Jsx:return Ir.JSX;case On.Tsx:return Ir.TSX;default:return t?Ir.TSX:Ir.TS}}var t4={default:Ma},n4=(0,t4.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");function n0(e){return n4("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),Bl(e.code)?e.code:yh(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:T_.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,t0(e.filePath,e.jsx))}var r0=e=>e;var i0=()=>{};var a0=class{};var _0=()=>!1;var o0=()=>{};var d4=function(e){return e&&e.__esModule?e:{default:e}};var m4={},od={default:Ma},h4=d4({extname:e=>"."+e.split(".").pop()}),y4=(0,od.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),g4,c0=null,l0,u0,p0,f0,E_={ParseAll:(l0=Xa)==null?void 0:l0.ParseAll,ParseForTypeErrors:(u0=Xa)==null?void 0:u0.ParseForTypeErrors,ParseForTypeInfo:(p0=Xa)==null?void 0:p0.ParseForTypeInfo,ParseNone:(f0=Xa)==null?void 0:f0.ParseNone};function d0(e,t={}){var h;let a=b4(e),o=_0(t),m=typeof t.tsconfigRootDir=="string"?t.tsconfigRootDir:"/prettier-security-dirname-placeholder",v=typeof t.loggerFn=="function",E=r0(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:v4(t.jsx),m),C=h4.default.extname(E).toLowerCase(),c=(()=>{switch(t.jsDocParsingMode){case"all":return E_.ParseAll;case"none":return E_.ParseNone;case"type-info":return E_.ParseForTypeInfo;default:return E_.ParseAll}})(),W={loc:t.loc===!0,range:t.range===!0,allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:a,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(y=>typeof y=="string")?t.extraFileExtensions:[],filePath:E,jsDocParsingMode:c,jsx:t.jsx===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?T4(t.projectService,{jsDocParsingMode:c,tsconfigRootDir:m}):void 0,setExternalModuleIndicator:t.sourceType==="module"||t.sourceType==null&&C===On.Mjs||t.sourceType==null&&C===On.Mts?y=>{y.externalModuleIndicator=!0}:void 0,singleRun:o,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:g4??(g4=new a0(o?"Infinity":((h=t.cacheLifetime)==null?void 0:h.glob)??void 0)),tsconfigRootDir:m};if(W.debugLevel.size>0){let y=[];W.debugLevel.has("typescript-eslint")&&y.push("typescript-eslint:*"),(W.debugLevel.has("eslint")||od.default.enabled("eslint:*,-eslint:code-path"))&&y.push("eslint:*,-eslint:code-path"),od.default.enable(y.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");y4("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!W.programs&&!W.projectService&&(W.projects=new Map),t.jsDocParsingMode==null&&W.projects.size===0&&W.programs==null&&W.projectService==null&&(W.jsDocParsingMode=E_.ParseNone),o0(W,v),W}function b4(e){return Bl(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function v4(e){return e?"estree.tsx":"estree.ts"}function T4(e,t){let a=typeof e=="object"?e:{};return i0(a.allowDefaultProject),c0??(c0=(0,m4.createProjectService)({options:a,...t})),c0}var k4={default:Ma},Lx=(0,k4.default)("typescript-eslint:typescript-estree:parser");function m0(e,t){let{ast:a}=E4(e,t,!1);return a}function E4(e,t,a){let o=d0(e,t);if(t!=null&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let m=n0(o),{astMaps:v,estree:E}=Zh(m,o,a);return{ast:E,esTreeNodeToTSNodeMap:v.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:v.tsNodeToESTreeNodeMap}}function A4(e,t){let a=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(a,t)}var h0=A4;function C4(e){let t=[];for(let a of e)try{return a()}catch(o){t.push(o)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var y0=C4;var D4=(e,t,a)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(a);for(let o=t.length-1;o>=0;o--){let m=t[o];if(a(m,o,t))return m}}},g0=D4;var P4=(e,t,a)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[a<0?t.length+a:a]:t.at(a)},b0=P4;var N4=new Proxy(()=>{},{get:()=>N4});function cn(e){var o,m,v;let t=((o=e.range)==null?void 0:o[0])??e.start,a=(v=((m=e.declaration)==null?void 0:m.decorators)??e.decorators)==null?void 0:v[0];return a?Math.min(cn(a),t):t}function Xt(e){var a;return((a=e.range)==null?void 0:a[1])??e.end}function I4(e){let t=new Set(e);return a=>t.has(a==null?void 0:a.type)}var Za=I4;function O4(e,t,a){let o=e.originalText.slice(t,a);for(let m of e[Symbol.for("comments")]){let v=cn(m);if(v>a)break;let E=Xt(m);if(E1&&t.every(a=>a.trimStart()[0]==="*")}var ud=new WeakMap;function R4(e){return ud.has(e)||ud.set(e,j4(e)),ud.get(e)}var pd=R4;function U4(e){if(e.length<2)return;let t;for(let a=e.length-1;a>=0;a--){let o=e[a];if(t&&Xt(o)===cn(t)&&pd(o)&&pd(t)&&(e.splice(a+1,1),o.value+="*//*"+t.value,o.range=[cn(o),Xt(t)]),!cd(o)&&!sa(o))throw new TypeError(`Unknown comment type: "${o.type}".`);t=o}}var x0=U4;var A_=null;function C_(e){if(A_!==null&&typeof A_.property){let t=A_;return A_=C_.prototype=null,t}return A_=C_.prototype=e??Object.create(null),new C_}var B4=10;for(let e=0;e<=B4;e++)C_();function fd(e){return C_(e)}function q4(e,t="type"){fd(e);function a(o){let m=o[t],v=e[m];if(!Array.isArray(v))throw Object.assign(new Error(`Missing visitor keys for '${m}'.`),{node:o});return v}return a}var S0=q4;var w0={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","typeParameters","typeArguments","arguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","typeParameters","typeArguments","arguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["decorators","key","value"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","typeParameters","typeArguments","arguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],ImportAttribute:["key","value"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["nameType","typeAnnotation","key","constraint"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","body"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:["body"],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGRoot:["node"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var F4=S0(w0),k0=F4;function dd(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let o=0;o{switch(c.type){case"ParenthesizedExpression":{let{expression:W}=c,h=cn(c);if(W.type==="TypeCastExpression")return W.range=[h,Xt(c)],W;let y=!1;if(!v){if(!E){E=[];for(let x of m)T0(x)&&E.push(Xt(x))}let g=g0(!1,E,x=>x<=h);y=g&&o.slice(g,h).trim().length===0}if(!y)return W.extra={...W.extra,parenthesized:!0},W;break}case"LogicalExpression":if(C0(c))return md(c);break;case"TemplateLiteral":if(c.expressions.length!==c.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(a==="flow"||a==="hermes"||a==="espree"||a==="typescript"||v){let W=cn(c)+1,h=Xt(c)-(c.tail?1:2);c.range=[W,h]}break;case"VariableDeclaration":{let W=b0(!1,c.declarations,-1);W!=null&&W.init&&o[Xt(W)]!==";"&&(c.range=[cn(c),Xt(W)]);break}case"TSParenthesizedType":return c.typeAnnotation;case"TSTypeParameter":A0(c);break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(c.types.length===1)return c.types[0];break;case"TSMappedType":if(!c.constraint&&!c.key){let{name:W,constraint:h}=A0(c.typeParameter);c.constraint=h,c.key=W,delete c.typeParameter}break;case"TSEnumDeclaration":if(!c.body){let W=Xt(c.id),{members:h}=c,y=v0({originalText:o,[Symbol.for("comments")]:m},W,h[0]?cn(h[0]):Xt(c)),g=W+y.indexOf("{");c.body={type:"TSEnumBody",members:h,range:[g,Xt(c)]},delete c.members}break;case"ImportExpression":a==="hermes"&&c.attributes&&!c.options&&(c.options=c.attributes);break}});let C=e.type==="File"?e.program:e;return C.interpreter&&(m.unshift(C.interpreter),delete C.interpreter),v&&e.hashbang&&(m.unshift(e.hashbang),delete e.hashbang),e.type==="Program"&&(e.range=[0,o.length]),e}function A0(e){if(e.type==="TSTypeParameter"&&typeof e.name=="string"){let t=cn(e);e.name={type:"Identifier",name:e.name,range:[t,t+e.name.length]}}return e}function C0(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function md(e){return C0(e)?md({type:"LogicalExpression",operator:e.operator,left:md({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[cn(e.left),Xt(e.right.left)]}),right:e.right.right,range:[cn(e),Xt(e)]}):e}var D0=z4;var V4=/\*\/$/,W4=/^\/\*\*?/,G4=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Y4=/(^|\s+)\/\/([^\n\r]*)/g,P0=/^(\r?\n)+/,H4=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,N0=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,X4=/(\r?\n|^) *\* ?/g,$4=[];function I0(e){let t=e.match(G4);return t?t[0].trimStart():""}function O0(e){let t=` -`;e=Er(!1,e.replace(W4,"").replace(V4,""),X4,"$1");let a="";for(;a!==e;)a=e,e=Er(!1,e,H4,`${t}$1 $2${t}`);e=e.replace(P0,"").trimEnd();let o=Object.create(null),m=Er(!1,e,N0,"").replace(P0,"").trimEnd(),v;for(;v=N0.exec(e);){let E=Er(!1,v[2],Y4,"");if(typeof o[v[1]]=="string"||Array.isArray(o[v[1]])){let C=o[v[1]];o[v[1]]=[...$4,...Array.isArray(C)?C:[C],E]}else o[v[1]]=E}return{comments:m,pragmas:o}}var M0=["noformat","noprettier"],L0=["format","prettier"];function Q4(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var J0=Q4;function j0(e){let t=J0(e);t&&(e=e.slice(t.length+1));let a=I0(e),{pragmas:o,comments:m}=O0(a);return{shebang:t,text:e,pragmas:o,comments:m}}function R0(e){let{pragmas:t}=j0(e);return L0.some(a=>Object.prototype.hasOwnProperty.call(t,a))}function U0(e){let{pragmas:t}=j0(e);return M0.some(a=>Object.prototype.hasOwnProperty.call(t,a))}function K4(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:R0,hasIgnorePragma:U0,locStart:cn,locEnd:Xt,...e}}var B0=K4;var q0=/^[^"'`]*<\/|^[^/]{2}.*\/>/mu;function Z4(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var F0=Z4;var z0="module",V0="script",W0=[z0,V0];function G0(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return z0;if(/\.(?:cjs|cts)$/iu.test(e))return V0}}var e3={loc:!0,range:!0,comment:!0,tokens:!1,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function t3(e){let{message:t,location:a}=e;if(!a)return e;let{start:o,end:m}=a;return h0(t,{loc:{start:{line:o.line,column:o.column+1},end:{line:m.line,column:m.column+1}},cause:e})}var n3=e=>e&&/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function r3(e,t){let a=[{...e3,filePath:t}],o=G0(t);if(o?a=a.map(v=>({...v,sourceType:o})):a=W0.flatMap(v=>a.map(E=>({...E,sourceType:v}))),n3(t))return a;let m=q0.test(e);return[m,!m].flatMap(v=>a.map(E=>({...E,jsx:v})))}function i3(e,t){let a=t==null?void 0:t.filepath;typeof a!="string"&&(a=void 0);let o=F0(e),m=r3(e,a),v;try{v=y0(m.map(E=>()=>m0(o,E)))}catch({errors:[E]}){throw t3(E)}return D0(v,{parser:"typescript",text:e})}var a3=B0(i3);return by(s3);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/typescript.mjs b/node_modules/prettier/plugins/typescript.mjs deleted file mode 100644 index cdf5e23..0000000 --- a/node_modules/prettier/plugins/typescript.mjs +++ /dev/null @@ -1,20 +0,0 @@ -var xd=Object.defineProperty;var Sd=e=>{throw TypeError(e)};var my=(e,t,a)=>t in e?xd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var wd=(e,t)=>{for(var a in t)xd(e,a,{get:t[a],enumerable:!0})};var Vi=(e,t,a)=>my(e,typeof t!="symbol"?t+"":t,a),hy=(e,t,a)=>t.has(e)||Sd("Cannot "+a);var gp=(e,t,a)=>t.has(e)?Sd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a);var ge=(e,t,a)=>(hy(e,t,"access private method"),a);var hd={};wd(hd,{parsers:()=>md});var md={};wd(md,{typescript:()=>t3});var yy=()=>()=>{},Ma=yy;var gy=(e,t,a,o)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(a,o):a.global?t.replace(a,o):t.split(a).join(o)},Er=gy;var Em="5.8";var bt=[],by=new Map;function r_(e){return e!==void 0?e.length:0}function qn(e,t){if(e!==void 0)for(let a=0;a0;return!1}function Hp(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function wy(e,t,a=$p){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let o=0;oe==null?void 0:e.at(t):(e,t)=>{if(e!==void 0&&(t=Ip(e,t),t>1),c=a(e[C],C);switch(o(c,t)){case-1:v=C+1;break;case 0:return C;case 1:E=C-1;break}}return~v}function Iy(e,t,a,o,m){if(e&&e.length>0){let v=e.length;if(v>0){let E=o===void 0||o<0?0:o,C=m===void 0||E+m>v-1?v-1:E+m,c;for(arguments.length<=2?(c=e[E],E++):c=a;E<=C;)c=t(c,e[E],E),E++;return c}}return a}var Pm=Object.prototype.hasOwnProperty;function Nr(e,t){return Pm.call(e,t)}function Oy(e){let t=[];for(let a in e)Pm.call(e,a)&&t.push(a);return t}function My(){let e=new Map;return e.add=Ly,e.remove=Jy,e}function Ly(e,t){let a=this.get(e);return a!==void 0?a.push(t):this.set(e,a=[t]),a}function Jy(e,t){let a=this.get(e);a!==void 0&&(Wy(a,t),a.length||this.delete(e))}function Qr(e){return Array.isArray(e)}function vp(e){return Qr(e)?e:[e]}function jy(e,t){return e!==void 0&&t(e)?e:void 0}function Cr(e,t){return e!==void 0&&t(e)?e:B.fail(`Invalid cast. The supplied value ${e} did not pass the test '${B.getFunctionName(t)}'.`)}function Ga(e){}function Ry(){return!0}function gt(e){return e}function Ed(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function er(e){let t=new Map;return a=>{let o=`${typeof a}:${a}`,m=t.get(o);return m===void 0&&!t.has(o)&&(m=e(a),t.set(o,m)),m}}function $p(e,t){return e===t}function Qp(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Uy(e,t){return $p(e,t)}function By(e,t){return e===t?0:e===void 0?-1:t===void 0?1:ea?C-a:1),h=Math.floor(t.length>a+C?a+C:t.length);m[0]=C;let y=C;for(let x=1;xa)return;let g=o;o=m,m=g}let E=o[t.length];return E>a?void 0:E}function zy(e,t,a){let o=e.length-t.length;return o>=0&&(a?Qp(e.slice(o),t):e.indexOf(t,o)===o)}function Vy(e,t){e[t]=e[e.length-1],e.pop()}function Wy(e,t){return Gy(e,a=>a===t)}function Gy(e,t){for(let a=0;a{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function a(J){return e.currentLogLevel<=J}e.shouldLog=a;function o(J,_e){e.loggingHost&&a(J)&&e.loggingHost.log(J,_e)}function m(J){o(3,J)}e.log=m,(J=>{function _e(Ke){o(1,Ke)}J.error=_e;function me(Ke){o(2,Ke)}J.warn=me;function Te(Ke){o(3,Ke)}J.log=Te;function Xe(Ke){o(4,Ke)}J.trace=Xe})(m=e.log||(e.log={}));let v={};function E(){return t}e.getAssertionLevel=E;function C(J){let _e=t;if(t=J,J>_e)for(let me of Oy(v)){let Te=v[me];Te!==void 0&&e[me]!==Te.assertion&&J>=Te.level&&(e[me]=Te,v[me]=void 0)}}e.setAssertionLevel=C;function c(J){return t>=J}e.shouldAssert=c;function W(J,_e){return c(J)?!0:(v[_e]={level:J,assertion:e[_e]},e[_e]=Ga,!1)}function h(J,_e){debugger;let me=new Error(J?`Debug Failure. ${J}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(me,_e||h),me}e.fail=h;function y(J,_e,me){return h(`${_e||"Unexpected node."}\r -Node ${Mt(J.kind)} was unexpected.`,me||y)}e.failBadSyntaxKind=y;function g(J,_e,me,Te){J||(_e=_e?`False expression: ${_e}`:"False expression.",me&&(_e+=`\r -Verbose Debug Information: `+(typeof me=="string"?me:me())),h(_e,Te||g))}e.assert=g;function x(J,_e,me,Te,Xe){if(J!==_e){let Ke=me?Te?`${me} ${Te}`:me:"";h(`Expected ${J} === ${_e}. ${Ke}`,Xe||x)}}e.assertEqual=x;function N(J,_e,me,Te){J>=_e&&h(`Expected ${J} < ${_e}. ${me||""}`,Te||N)}e.assertLessThan=N;function te(J,_e,me){J>_e&&h(`Expected ${J} <= ${_e}`,me||te)}e.assertLessThanOrEqual=te;function ue(J,_e,me){J<_e&&h(`Expected ${J} >= ${_e}`,me||ue)}e.assertGreaterThanOrEqual=ue;function ye(J,_e,me){J==null&&h(_e,me||ye)}e.assertIsDefined=ye;function fe(J,_e,me){return ye(J,_e,me||fe),J}e.checkDefined=fe;function M(J,_e,me){for(let Te of J)ye(Te,_e,me||M)}e.assertEachIsDefined=M;function ie(J,_e,me){return M(J,_e,me||ie),J}e.checkEachDefined=ie;function Ce(J,_e="Illegal value:",me){let Te=typeof J=="object"&&Nr(J,"kind")&&Nr(J,"pos")?"SyntaxKind: "+Mt(J.kind):JSON.stringify(J);return h(`${_e} ${Te}`,me||Ce)}e.assertNever=Ce;function V(J,_e,me,Te){W(1,"assertEachNode")&&g(_e===void 0||Yp(J,_e),me||"Unexpected node.",()=>`Node array did not pass test '${Tn(_e)}'.`,Te||V)}e.assertEachNode=V;function oe(J,_e,me,Te){W(1,"assertNode")&&g(J!==void 0&&(_e===void 0||_e(J)),me||"Unexpected node.",()=>`Node ${Mt(J==null?void 0:J.kind)} did not pass test '${Tn(_e)}'.`,Te||oe)}e.assertNode=oe;function G(J,_e,me,Te){W(1,"assertNotNode")&&g(J===void 0||_e===void 0||!_e(J),me||"Unexpected node.",()=>`Node ${Mt(J.kind)} should not have passed test '${Tn(_e)}'.`,Te||G)}e.assertNotNode=G;function dt(J,_e,me,Te){W(1,"assertOptionalNode")&&g(_e===void 0||J===void 0||_e(J),me||"Unexpected node.",()=>`Node ${Mt(J==null?void 0:J.kind)} did not pass test '${Tn(_e)}'.`,Te||dt)}e.assertOptionalNode=dt;function rr(J,_e,me,Te){W(1,"assertOptionalToken")&&g(_e===void 0||J===void 0||J.kind===_e,me||"Unexpected node.",()=>`Node ${Mt(J==null?void 0:J.kind)} was not a '${Mt(_e)}' token.`,Te||rr)}e.assertOptionalToken=rr;function vn(J,_e,me){W(1,"assertMissingNode")&&g(J===void 0,_e||"Unexpected node.",()=>`Node ${Mt(J.kind)} was unexpected'.`,me||vn)}e.assertMissingNode=vn;function ir(J){}e.type=ir;function Tn(J){if(typeof J!="function")return"";if(Nr(J,"name"))return J.name;{let _e=Function.prototype.toString.call(J),me=/^function\s+([\w$]+)\s*\(/.exec(_e);return me?me[1]:""}}e.getFunctionName=Tn;function Mn(J){return`{ name: ${f_(J.escapedName)}; flags: ${ct(J.flags)}; declarations: ${Np(J.declarations,_e=>Mt(_e.kind))} }`}e.formatSymbol=Mn;function Ge(J=0,_e,me){let Te=Or(_e);if(J===0)return Te.length>0&&Te[0][0]===0?Te[0][1]:"0";if(me){let Xe=[],Ke=J;for(let[st,Pt]of Te){if(st>J)break;st!==0&&st&J&&(Xe.push(Pt),Ke&=~st)}if(Ke===0)return Xe.join("|")}else for(let[Xe,Ke]of Te)if(Xe===J)return Ke;return J.toString()}e.formatEnum=Ge;let ar=new Map;function Or(J){let _e=ar.get(J);if(_e)return _e;let me=[];for(let Xe in J){let Ke=J[Xe];typeof Ke=="number"&&me.push([Ke,Xe])}let Te=Ay(me,(Xe,Ke)=>Nm(Xe[0],Ke[0]));return ar.set(J,Te),Te}function Mt(J){return Ge(J,Ie,!1)}e.formatSyntaxKind=Mt;function Fn(J){return Ge(J,Jm,!1)}e.formatSnippetKind=Fn;function Ln(J){return Ge(J,Ir,!1)}e.formatScriptKind=Ln;function Lt(J){return Ge(J,bn,!0)}e.formatNodeFlags=Lt;function vt(J){return Ge(J,Om,!0)}e.formatNodeCheckFlags=vt;function Qe(J){return Ge(J,Kp,!0)}e.formatModifierFlags=Qe;function zn(J){return Ge(J,Lm,!0)}e.formatTransformFlags=zn;function $t(J){return Ge(J,jm,!0)}e.formatEmitFlags=$t;function ct(J){return Ge(J,Zp,!0)}e.formatSymbolFlags=ct;function at(J){return Ge(J,rn,!0)}e.formatTypeFlags=at;function Ut(J){return Ge(J,Mm,!0)}e.formatSignatureFlags=Ut;function Jt(J){return Ge(J,ef,!0)}e.formatObjectFlags=Jt;function lt(J){return Ge(J,Mp,!0)}e.formatFlowFlags=lt;function sr(J){return Ge(J,Im,!0)}e.formatRelationComparisonResult=sr;function mt(J){return Ge(J,CheckMode,!0)}e.formatCheckMode=mt;function xn(J){return Ge(J,SignatureCheckMode,!0)}e.formatSignatureCheckMode=xn;function yt(J){return Ge(J,TypeFacts,!0)}e.formatTypeFacts=yt;let ln=!1,nt;function Bt(J){"__debugFlowFlags"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(){let _e=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",me=this.flags&-2048;return`${_e}${me?` (${lt(me)})`:""}`}},__debugFlowFlags:{get(){return Ge(this.flags,Mp,!0)}},__debugToString:{value(){return gr(this)}}})}function an(J){return ln&&(typeof Object.setPrototypeOf=="function"?(nt||(nt=Object.create(Object.prototype),Bt(nt)),Object.setPrototypeOf(J,nt)):Bt(J)),J}e.attachFlowNodeDebugInfo=an;let _r;function hr(J){"__tsDebuggerDisplay"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(_e){return _e=String(_e).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${_e}`}}})}function yr(J){ln&&(typeof Object.setPrototypeOf=="function"?(_r||(_r=Object.create(Array.prototype),hr(_r)),Object.setPrototypeOf(J,_r)):hr(J))}e.attachNodeArrayDebugInfo=yr;function Vn(){if(ln)return;let J=new WeakMap,_e=new WeakMap;Object.defineProperties(At.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&33554432?"TransientSymbol":"Symbol",Xe=this.flags&-33554433;return`${Te} '${jp(this)}'${Xe?` (${ct(Xe)})`:""}`}},__debugFlags:{get(){return ct(this.flags)}}}),Object.defineProperties(At.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Xe=this.flags&524288?this.objectFlags&-1344:0;return`${Te}${this.symbol?` '${jp(this.symbol)}'`:""}${Xe?` (${Jt(Xe)})`:""}`}},__debugFlags:{get(){return at(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Jt(this.objectFlags):""}},__debugTypeToString:{value(){let Te=J.get(this);return Te===void 0&&(Te=this.checker.typeToString(this),J.set(this,Te)),Te}}}),Object.defineProperties(At.getSignatureConstructor().prototype,{__debugFlags:{get(){return Ut(this.flags)}},__debugSignatureToString:{value(){var Te;return(Te=this.checker)==null?void 0:Te.signatureToString(this)}}});let me=[At.getNodeConstructor(),At.getIdentifierConstructor(),At.getTokenConstructor(),At.getSourceFileConstructor()];for(let Te of me)Nr(Te.prototype,"__debugKind")||Object.defineProperties(Te.prototype,{__tsDebuggerDisplay:{value(){return`${qa(this)?"GeneratedIdentifier":Ze(this)?`Identifier '${In(this)}'`:vi(this)?`PrivateIdentifier '${In(this)}'`:Si(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:na(this)?`NumericLiteral ${this.text}`:O1(this)?`BigIntLiteral ${this.text}n`:Ef(this)?"TypeParameterDeclaration":g_(this)?"ParameterDeclaration":Af(this)?"ConstructorDeclaration":vl(this)?"GetAccessorDeclaration":v_(this)?"SetAccessorDeclaration":R1(this)?"CallSignatureDeclaration":U1(this)?"ConstructSignatureDeclaration":Cf(this)?"IndexSignatureDeclaration":B1(this)?"TypePredicateNode":Df(this)?"TypeReferenceNode":Pf(this)?"FunctionTypeNode":Nf(this)?"ConstructorTypeNode":t6(this)?"TypeQueryNode":q1(this)?"TypeLiteralNode":n6(this)?"ArrayTypeNode":r6(this)?"TupleTypeNode":i6(this)?"OptionalTypeNode":a6(this)?"RestTypeNode":z1(this)?"UnionTypeNode":V1(this)?"IntersectionTypeNode":s6(this)?"ConditionalTypeNode":_6(this)?"InferTypeNode":W1(this)?"ParenthesizedTypeNode":o6(this)?"ThisTypeNode":G1(this)?"TypeOperatorNode":c6(this)?"IndexedAccessTypeNode":Y1(this)?"MappedTypeNode":l6(this)?"LiteralTypeNode":F1(this)?"NamedTupleMember":u6(this)?"ImportTypeNode":Mt(this.kind)}${this.flags?` (${Lt(this.flags)})`:""}`}},__debugKind:{get(){return Mt(this.kind)}},__debugNodeFlags:{get(){return Lt(this.flags)}},__debugModifierFlags:{get(){return Qe(ob(this))}},__debugTransformFlags:{get(){return zn(this.transformFlags)}},__debugIsParseTreeNode:{get(){return yl(this)}},__debugEmitFlags:{get(){return $t(Wa(this))}},__debugGetText:{value(Xe){if(Ra(this))return"";let Ke=_e.get(this);if(Ke===void 0){let st=Dg(this),Pt=st&&gi(st);Ke=Pt?qd(Pt,st,Xe):"",_e.set(this,Ke)}return Ke}}});ln=!0}e.enableDebugInfo=Vn;function Wn(J){let _e=J&7,me=_e===0?"in out":_e===3?"[bivariant]":_e===2?"in":_e===1?"out":_e===4?"[independent]":"";return J&8?me+=" (unmeasurable)":J&16&&(me+=" (unreliable)"),me}e.formatVariance=Wn;class Mr{__debugToString(){var _e;switch(this.kind){case 3:return((_e=this.debugInfo)==null?void 0:_e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return kd(this.sources,this.targets||Np(this.sources,()=>"any"),(me,Te)=>`${me.__debugTypeToString()} -> ${typeof Te=="string"?Te:Te.__debugTypeToString()}`).join(", ");case 2:return kd(this.sources,this.targets,(me,Te)=>`${me.__debugTypeToString()} -> ${Te().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` -`).join(` - `)} -m2: ${this.mapper2.__debugToString().split(` -`).join(` - `)}`;default:return Ce(this)}}}e.DebugTypeMapper=Mr;function Gn(J){return e.isDebugging?Object.setPrototypeOf(J,Mr.prototype):J}e.attachDebugPrototypeIfDebug=Gn;function De(J){return console.log(gr(J))}e.printControlFlowGraph=De;function gr(J){let _e=-1;function me(u){return u.id||(u.id=_e,_e--),u.id}let Te;(u=>{u.lr="\u2500",u.ud="\u2502",u.dr="\u256D",u.dl="\u256E",u.ul="\u256F",u.ur="\u2570",u.udr="\u251C",u.udl="\u2524",u.dlr="\u252C",u.ulr="\u2534",u.udlr="\u256B"})(Te||(Te={}));let Xe;(u=>{u[u.None=0]="None",u[u.Up=1]="Up",u[u.Down=2]="Down",u[u.Left=4]="Left",u[u.Right=8]="Right",u[u.UpDown=3]="UpDown",u[u.LeftRight=12]="LeftRight",u[u.UpLeft=5]="UpLeft",u[u.UpRight=9]="UpRight",u[u.DownLeft=6]="DownLeft",u[u.DownRight=10]="DownRight",u[u.UpDownLeft=7]="UpDownLeft",u[u.UpDownRight=11]="UpDownRight",u[u.UpLeftRight=13]="UpLeftRight",u[u.DownLeftRight=14]="DownLeftRight",u[u.UpDownLeftRight=15]="UpDownLeftRight",u[u.NoChildren=16]="NoChildren"})(Xe||(Xe={}));let Ke=2032,st=882,Pt=Object.create(null),Tt=[],ut=[],Lr=Se(J,new Set);for(let u of Tt)u.text=rt(u.flowNode,u.circular),be(u);let br=We(Lr),Jn=et(br);return Ye(Lr,0),un();function Yn(u){return!!(u.flags&128)}function Ei(u){return!!(u.flags&12)&&!!u.antecedent}function R(u){return!!(u.flags&Ke)}function Q(u){return!!(u.flags&st)}function K(u){let Oe=[];for(let Me of u.edges)Me.source===u&&Oe.push(Me.target);return Oe}function xe(u){let Oe=[];for(let Me of u.edges)Me.target===u&&Oe.push(Me.source);return Oe}function Se(u,Oe){let Me=me(u),U=Pt[Me];if(U&&Oe.has(u))return U.circular=!0,U={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tt.push(U),U;if(Oe.add(u),!U)if(Pt[Me]=U={id:Me,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tt.push(U),Ei(u))for(let Fe of u.antecedent)we(U,Fe,Oe);else R(u)&&we(U,u.antecedent,Oe);return Oe.delete(u),U}function we(u,Oe,Me){let U=Se(Oe,Me),Fe={source:u,target:U};ut.push(Fe),u.edges.push(Fe),U.edges.push(Fe)}function be(u){if(u.level!==-1)return u.level;let Oe=0;for(let Me of xe(u))Oe=Math.max(Oe,be(Me)+1);return u.level=Oe}function We(u){let Oe=0;for(let Me of K(u))Oe=Math.max(Oe,We(Me));return Oe+1}function et(u){let Oe=L(Array(u),0);for(let Me of Tt)Oe[Me.level]=Math.max(Oe[Me.level],Me.text.length);return Oe}function Ye(u,Oe){if(u.lane===-1){u.lane=Oe,u.endLane=Oe;let Me=K(u);for(let U=0;U0&&Oe++;let Fe=Me[U];Ye(Fe,Oe),Fe.endLane>u.endLane&&(Oe=Fe.endLane)}u.endLane=Oe}}function Ee(u){if(u&2)return"Start";if(u&4)return"Branch";if(u&8)return"Loop";if(u&16)return"Assignment";if(u&32)return"True";if(u&64)return"False";if(u&128)return"SwitchClause";if(u&256)return"ArrayMutation";if(u&512)return"Call";if(u&1024)return"ReduceLabel";if(u&1)return"Unreachable";throw new Error}function Sn(u){let Oe=gi(u);return qd(Oe,u,!1)}function rt(u,Oe){let Me=Ee(u.flags);if(Oe&&(Me=`${Me}#${me(u)}`),Yn(u)){let U=[],{switchStatement:Fe,clauseStart:sn,clauseEnd:Ve}=u.node;for(let $e=sn;$eVe.lane)+1,Me=L(Array(Oe),""),U=Jn.map(()=>Array(Oe)),Fe=Jn.map(()=>L(Array(Oe),0));for(let Ve of Tt){U[Ve.level][Ve.lane]=Ve;let $e=K(Ve);for(let kt=0;kt<$e.length;kt++){let It=$e[kt],qt=8;It.lane===Ve.lane&&(qt|=4),kt>0&&(qt|=1),kt<$e.length-1&&(qt|=2),Fe[Ve.level][It.lane]|=qt}$e.length===0&&(Fe[Ve.level][Ve.lane]|=16);let Nt=xe(Ve);for(let kt=0;kt0&&(qt|=1),kt0?Fe[Ve-1][$e]:0,kt=$e>0?Fe[Ve][$e-1]:0,It=Fe[Ve][$e];It||(Nt&8&&(It|=12),kt&2&&(It|=3),Fe[Ve][$e]=It)}for(let Ve=0;Ve0?u.repeat(Oe):"";let Me="";for(;Me.length{},Yy=()=>{},cl,Ie=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.NotEmittedTypeElement=354]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=355]="PartiallyEmittedExpression",e[e.CommaListExpression=356]="CommaListExpression",e[e.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",e[e.Count=358]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(Ie||{}),bn=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(bn||{}),Kp=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(Kp||{});var Im=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(Im||{});var Mp=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Mp||{});var Zp=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(Zp||{});var Om=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Om||{}),rn=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(rn||{}),ef=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(ef||{});var Mm=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Mm||{});var Ir=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(Ir||{}),T_=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(T_||{}),Sl=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Sl||{});var On=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(On||{}),Lm=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Lm||{}),Jm=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Jm||{}),jm=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(jm||{});var Zs={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99};var Rm={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Xa=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Xa||{});var $r="/",Hy="\\",Cd="://",Xy=/\\/g;function $y(e){return e===47||e===92}function Qy(e,t){return e.length>t.length&&zy(e,t)}function tf(e){return e.length>0&&$y(e.charCodeAt(e.length-1))}function Dd(e){return e>=97&&e<=122||e>=65&&e<=90}function Ky(e,t){let a=e.charCodeAt(t);if(a===58)return t+1;if(a===37&&e.charCodeAt(t+1)===51){let o=e.charCodeAt(t+2);if(o===97||o===65)return t+3}return-1}function Zy(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let o=e.indexOf(t===47?$r:Hy,2);return o<0?e.length:o+1}if(Dd(t)&&e.charCodeAt(1)===58){let o=e.charCodeAt(2);if(o===47||o===92)return 3;if(e.length===2)return 2}let a=e.indexOf(Cd);if(a!==-1){let o=a+Cd.length,m=e.indexOf($r,o);if(m!==-1){let v=e.slice(0,a),E=e.slice(o,m);if(v==="file"&&(E===""||E==="localhost")&&Dd(e.charCodeAt(m+1))){let C=Ky(e,m+2);if(C!==-1){if(e.charCodeAt(C)===47)return~(C+1);if(C===e.length)return~C}}return~(m+1)}return~e.length}return 0}function u_(e){let t=Zy(e);return t<0?~t:t}function Um(e,t,a){if(e=p_(e),u_(e)===e.length)return"";e=ml(e);let m=e.slice(Math.max(u_(e),e.lastIndexOf($r)+1)),v=t!==void 0&&a!==void 0?Bm(m,t,a):void 0;return v?m.slice(0,m.length-v.length):m}function Pd(e,t,a){if(dl(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let o=e.slice(e.length-t.length);if(a(o,t))return o}}function eg(e,t,a){if(typeof t=="string")return Pd(e,t,a)||"";for(let o of t){let m=Pd(e,o,a);if(m)return m}return""}function Bm(e,t,a){if(t)return eg(ml(e),t,a?Qp:Uy);let o=Um(e),m=o.lastIndexOf(".");return m>=0?o.substring(m):""}function p_(e){return e.includes("\\")?e.replace(Xy,$r):e}function tg(e,...t){e&&(e=p_(e));for(let a of t)a&&(a=p_(a),!e||u_(a)!==0?e=a:e=Fm(e)+a);return e}function ng(e,t){let a=u_(e);a===0&&t?(e=tg(t,e),a=u_(e)):e=p_(e);let o=qm(e);if(o!==void 0)return o.length>a?ml(o):o;let m=e.length,v=e.substring(0,a),E,C=a,c=C,W=C,h=a!==0;for(;Cc&&(E??(E=e.substring(0,c-1)),c=C);let g=e.indexOf($r,C+1);g===-1&&(g=m);let x=g-c;if(x===1&&e.charCodeAt(C)===46)E??(E=e.substring(0,W));else if(x===2&&e.charCodeAt(C)===46&&e.charCodeAt(C+1)===46)if(!h)E!==void 0?E+=E.length===a?"..":"/..":W=C+2;else if(E===void 0)W-2>=0?E=e.substring(0,Math.max(a,e.lastIndexOf($r,W-2))):E=e.substring(0,W);else{let N=E.lastIndexOf($r);N!==-1?E=E.substring(0,Math.max(a,N)):E=v,E.length===a&&(h=a!==0)}else E!==void 0?(E.length!==a&&(E+=$r),h=!0,E+=e.substring(c,g)):(h=!0,W=g);C=g+1}return E??(m>a?ml(e):e)}function rg(e){e=p_(e);let t=qm(e);return t!==void 0?t:(t=ng(e,""),t&&tf(e)?Fm(t):t)}function qm(e){if(!Nd.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!Nd.test(e)))return e}function ml(e){return tf(e)?e.substr(0,e.length-1):e}function Fm(e){return tf(e)?e:e+$r}var Nd=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function r(e,t,a,o,m,v,E){return{code:e,category:t,key:a,message:o,reportsUnnecessary:m,elidedInCompatabilityPyramid:v,reportsDeprecated:E}}var A={Unterminated_string_literal:r(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:r(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:r(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:r(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:r(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:r(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:r(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:r(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:r(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:r(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:r(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:r(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:r(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:r(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:r(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:r(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:r(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:r(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:r(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:r(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:r(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:r(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:r(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:r(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:r(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:r(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:r(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:r(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:r(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:r(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:r(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:r(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:r(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:r(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:r(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:r(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:r(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:r(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:r(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:r(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:r(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:r(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:r(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:r(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:r(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:r(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:r(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:r(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:r(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:r(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:r(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:r(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:r(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:r(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:r(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:r(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:r(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:r(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:r(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:r(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:r(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:r(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:r(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:r(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:r(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:r(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:r(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:r(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:r(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:r(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:r(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:r(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:r(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:r(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:r(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:r(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:r(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:r(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:r(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:r(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:r(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:r(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:r(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:r(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:r(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:r(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:r(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:r(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:r(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:r(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:r(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:r(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:r(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:r(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:r(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:r(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:r(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:r(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:r(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:r(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:r(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:r(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:r(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:r(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:r(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:r(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:r(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:r(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:r(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:r(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:r(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:r(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:r(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:r(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:r(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:r(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:r(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:r(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:r(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:r(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:r(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:r(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:r(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:r(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:r(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:r(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:r(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:r(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:r(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:r(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:r(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:r(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:r(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:r(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:r(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:r(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:r(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:r(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:r(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:r(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:r(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:r(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:r(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:r(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:r(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:r(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:r(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:r(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:r(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:r(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:r(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:r(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:r(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:r(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:r(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:r(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:r(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:r(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:r(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:r(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:r(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:r(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:r(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:r(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:r(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:r(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:r(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:r(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:r(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:r(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:r(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:r(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:r(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:r(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:r(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:r(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:r(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:r(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:r(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:r(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:r(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:r(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:r(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:r(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:r(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:r(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:r(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:r(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:r(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:r(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:r(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:r(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:r(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:r(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:r(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:r(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:r(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:r(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:r(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:r(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:r(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:r(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:r(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:r(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:r(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:r(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:r(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:r(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:r(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:r(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:r(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:r(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:r(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:r(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:r(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:r(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:r(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:r(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:r(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:r(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:r(1293,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:r(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:r(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:r(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:r(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:r(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:r(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:r(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:r(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:r(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:r(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:r(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext:r(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve:r(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:r(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:r(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:r(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:r(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:r(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:r(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:r(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:r(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:r(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:r(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:r(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:r(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:r(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:r(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:r(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:r(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext:r(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', or 'nodenext'."),A_label_is_not_allowed_here:r(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:r(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:r(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:r(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:r(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:r(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:r(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:r(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:r(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:r(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:r(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:r(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:r(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:r(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:r(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:r(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:r(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:r(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:r(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:r(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:r(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:r(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:r(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:r(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:r(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:r(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:r(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:r(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:r(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:r(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:r(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:r(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:r(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:r(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:r(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:r(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:r(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:r(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:r(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:r(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:r(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:r(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:r(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:r(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:r(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:r(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:r(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:r(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:r(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:r(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:r(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:r(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:r(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:r(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:r(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:r(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:r(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:r(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:r(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:r(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:r(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:r(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:r(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:r(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:r(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:r(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:r(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:r(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:r(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:r(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:r(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:r(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:r(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:r(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:r(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:r(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:r(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:r(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:r(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:r(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:r(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:r(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:r(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:r(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:r(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:r(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:r(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:r(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:r(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:r(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:r(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:r(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:r(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:r(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:r(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:r(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:r(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:r(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:r(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:r(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:r(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:r(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:r(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:r(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:r(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:r(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:r(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:r(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:r(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:r(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:r(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:r(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:r(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:r(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:r(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:r(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:r(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:r(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:r(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:r(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:r(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:r(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:r(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:r(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:r(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:r(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:r(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:r(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:r(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:r(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:r(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:r(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:r(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:r(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:r(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:r(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:r(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:r(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:r(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:r(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:r(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:r(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:r(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:r(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:r(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:r(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:r(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:r(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:r(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:r(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:r(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:r(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:r(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:r(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:r(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:r(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:r(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:r(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:r(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:r(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:r(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:r(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:r(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:r(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:r(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),The_types_of_0_are_incompatible_between_these_types:r(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:r(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:r(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:r(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:r(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:r(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:r(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:r(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:r(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:r(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:r(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:r(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:r(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:r(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:r(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:r(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:r(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:r(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:r(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:r(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:r(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:r(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:r(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:r(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:r(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:r(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:r(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:r(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:r(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:r(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:r(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:r(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:r(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:r(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:r(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:r(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:r(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:r(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:r(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:r(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:r(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:r(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:r(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:r(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:r(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:r(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:r(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:r(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:r(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:r(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:r(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:r(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:r(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:r(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:r(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:r(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:r(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:r(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:r(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:r(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:r(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:r(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:r(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:r(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:r(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:r(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:r(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:r(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:r(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:r(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:r(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:r(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:r(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:r(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:r(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:r(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:r(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:r(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:r(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:r(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:r(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:r(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:r(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:r(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:r(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:r(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:r(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:r(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:r(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:r(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:r(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:r(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:r(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:r(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:r(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:r(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:r(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:r(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:r(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:r(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:r(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:r(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:r(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:r(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:r(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:r(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:r(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:r(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:r(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:r(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:r(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:r(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:r(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:r(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:r(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:r(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:r(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:r(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:r(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:r(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:r(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:r(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:r(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:r(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:r(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:r(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:r(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:r(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:r(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:r(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:r(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:r(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:r(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:r(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:r(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:r(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:r(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:r(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:r(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:r(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:r(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:r(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:r(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:r(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:r(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:r(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:r(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:r(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:r(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:r(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:r(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:r(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:r(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:r(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:r(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:r(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:r(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:r(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:r(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:r(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:r(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:r(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:r(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:r(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:r(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:r(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:r(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:r(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:r(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:r(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:r(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:r(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:r(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:r(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:r(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:r(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:r(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:r(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:r(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:r(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:r(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:r(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:r(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:r(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:r(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:r(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:r(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:r(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:r(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:r(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:r(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:r(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:r(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:r(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:r(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:r(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:r(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:r(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:r(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:r(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:r(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:r(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:r(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:r(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:r(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:r(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:r(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:r(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:r(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:r(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:r(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:r(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:r(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:r(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:r(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:r(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:r(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:r(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:r(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:r(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:r(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:r(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:r(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:r(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:r(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:r(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:r(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:r(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:r(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:r(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:r(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:r(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:r(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:r(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:r(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:r(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:r(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:r(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:r(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:r(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:r(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:r(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:r(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:r(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:r(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:r(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:r(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:r(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:r(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:r(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:r(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:r(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:r(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:r(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:r(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:r(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:r(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:r(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:r(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:r(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:r(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:r(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:r(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:r(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:r(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:r(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:r(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:r(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:r(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:r(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:r(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:r(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:r(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:r(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:r(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:r(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:r(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:r(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:r(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:r(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:r(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:r(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:r(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:r(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:r(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:r(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:r(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:r(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:r(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:r(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:r(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:r(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:r(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:r(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:r(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:r(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:r(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:r(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:r(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:r(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:r(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:r(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:r(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:r(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:r(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:r(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:r(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:r(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:r(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:r(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:r(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:r(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:r(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:r(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:r(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:r(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:r(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:r(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:r(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:r(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:r(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:r(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:r(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:r(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:r(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:r(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:r(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:r(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:r(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:r(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:r(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:r(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:r(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:r(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:r(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:r(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:r(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:r(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:r(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:r(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:r(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:r(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:r(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:r(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:r(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:r(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:r(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:r(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:r(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:r(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:r(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:r(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:r(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:r(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:r(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:r(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:r(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:r(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:r(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:r(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:r(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:r(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:r(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:r(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:r(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:r(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:r(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:r(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:r(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:r(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:r(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:r(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:r(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:r(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:r(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:r(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:r(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:r(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:r(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:r(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:r(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:r(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:r(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:r(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:r(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:r(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:r(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:r(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:r(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:r(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:r(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:r(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:r(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:r(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:r(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:r(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:r(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:r(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:r(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:r(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:r(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:r(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:r(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:r(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:r(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:r(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:r(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:r(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:r(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:r(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:r(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:r(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:r(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:r(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:r(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:r(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:r(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:r(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:r(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:r(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:r(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:r(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:r(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:r(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:r(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:r(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:r(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:r(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:r(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:r(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:r(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:r(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:r(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:r(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:r(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:r(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:r(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:r(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:r(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:r(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:r(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:r(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:r(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:r(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:r(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:r(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:r(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:r(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:r(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:r(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:r(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:r(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:r(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:r(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:r(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:r(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:r(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:r(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:r(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:r(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:r(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:r(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:r(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve:r(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:r(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve:r(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:r(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:r(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:r(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:r(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:r(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:r(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:r(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:r(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:r(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:r(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:r(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:r(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:r(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:r(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:r(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:r(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:r(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:r(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:r(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:r(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:r(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:r(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:r(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:r(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:r(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:r(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:r(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:r(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:r(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:r(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:r(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:r(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:r(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:r(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:r(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:r(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:r(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:r(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),Import_declaration_0_is_using_private_name_1:r(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:r(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:r(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:r(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:r(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:r(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:r(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:r(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:r(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:r(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:r(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:r(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:r(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:r(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:r(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:r(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:r(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:r(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:r(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:r(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:r(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:r(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:r(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:r(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:r(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:r(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:r(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:r(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:r(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:r(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:r(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:r(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:r(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:r(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:r(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:r(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:r(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:r(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:r(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:r(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:r(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:r(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:r(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:r(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:r(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:r(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:r(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:r(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:r(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:r(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:r(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:r(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:r(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:r(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:r(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:r(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:r(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:r(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:r(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:r(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:r(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:r(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:r(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:r(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:r(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:r(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:r(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:r(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:r(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:r(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:r(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:r(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:r(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:r(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:r(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:r(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:r(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:r(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:r(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:r(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:r(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:r(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:r(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:r(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:r(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:r(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:r(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:r(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:r(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:r(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:r(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:r(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:r(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:r(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:r(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:r(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:r(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:r(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:r(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:r(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:r(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:r(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:r(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:r(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:r(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:r(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:r(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:r(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:r(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:r(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:r(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:r(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:r(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:r(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:r(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:r(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:r(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:r(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:r(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:r(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:r(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:r(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:r(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:r(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:r(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:r(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:r(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:r(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:r(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:r(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:r(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:r(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:r(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:r(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:r(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:r(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:r(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:r(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:r(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:r(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:r(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:r(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:r(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:r(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:r(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:r(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:r(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:r(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:r(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:r(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:r(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:r(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:r(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:r(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:r(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:r(6024,3,"options_6024","options"),file:r(6025,3,"file_6025","file"),Examples_Colon_0:r(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:r(6027,3,"Options_Colon_6027","Options:"),Version_0:r(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:r(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:r(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:r(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:r(6034,3,"KIND_6034","KIND"),FILE:r(6035,3,"FILE_6035","FILE"),VERSION:r(6036,3,"VERSION_6036","VERSION"),LOCATION:r(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:r(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:r(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:r(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:r(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:r(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:r(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:r(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:r(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:r(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:r(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:r(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:r(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:r(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:r(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:r(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:r(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:r(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:r(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:r(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:r(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:r(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:r(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:r(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:r(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:r(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:r(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:r(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:r(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:r(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:r(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:r(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:r(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:r(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:r(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:r(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:r(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:r(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:r(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:r(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:r(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:r(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:r(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:r(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:r(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:r(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:r(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:r(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:r(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:r(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:r(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:r(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:r(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:r(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:r(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:r(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:r(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:r(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:r(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:r(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:r(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:r(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:r(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:r(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:r(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:r(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:r(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:r(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:r(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:r(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:r(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:r(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:r(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:r(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:r(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:r(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:r(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:r(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:r(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:r(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:r(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:r(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:r(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:r(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:r(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:r(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:r(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:r(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:r(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:r(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:r(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:r(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:r(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:r(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:r(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:r(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:r(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:r(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:r(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:r(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:r(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:r(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:r(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:r(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:r(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:r(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:r(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:r(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:r(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:r(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:r(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:r(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:r(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:r(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:r(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:r(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:r(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:r(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:r(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:r(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:r(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:r(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:r(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:r(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:r(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:r(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:r(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:r(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:r(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:r(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:r(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:r(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:r(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:r(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:r(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:r(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:r(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:r(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:r(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:r(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:r(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:r(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:r(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:r(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:r(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:r(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:r(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:r(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:r(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:r(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:r(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:r(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:r(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:r(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:r(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:r(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:r(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:r(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:r(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:r(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:r(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:r(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:r(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:r(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:r(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:r(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:r(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:r(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:r(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:r(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:r(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:r(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:r(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:r(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:r(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:r(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:r(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:r(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:r(6244,3,"Modules_6244","Modules"),File_Management:r(6245,3,"File_Management_6245","File Management"),Emit:r(6246,3,"Emit_6246","Emit"),JavaScript_Support:r(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:r(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:r(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:r(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:r(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:r(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:r(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:r(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:r(6255,3,"Projects_6255","Projects"),Output_Formatting:r(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:r(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:r(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:r(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:r(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:r(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:r(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:r(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:r(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:r(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:r(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:r(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:r(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:r(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:r(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:r(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:r(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:r(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:r(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:r(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:r(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:r(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:r(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:r(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:r(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:r(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:r(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:r(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:r(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:r(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:r(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:r(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:r(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:r(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:r(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:r(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:r(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:r(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:r(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:r(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:r(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:r(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:r(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:r(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:r(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:r(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:r(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:r(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:r(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:r(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:r(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:r(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:r(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:r(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:r(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:r(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:r(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:r(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:r(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:r(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:r(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:r(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:r(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:r(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:r(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:r(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:r(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:r(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:r(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:r(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:r(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:r(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:r(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:r(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:r(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:r(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:r(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:r(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:r(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:r(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:r(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:r(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:r(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:r(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:r(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:r(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:r(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:r(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:r(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:r(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:r(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:r(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:r(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:r(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:r(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:r(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:r(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:r(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:r(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:r(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:r(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:r(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:r(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:r(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:r(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:r(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:r(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:r(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:r(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:r(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:r(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:r(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:r(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:r(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:r(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:r(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:r(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:r(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:r(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:r(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:r(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:r(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:r(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:r(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:r(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:r(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:r(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:r(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:r(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:r(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:r(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:r(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:r(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:r(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:r(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:r(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:r(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:r(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:r(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:r(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:r(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:r(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:r(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:r(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:r(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:r(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:r(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:r(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:r(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:r(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:r(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:r(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:r(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:r(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:r(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:r(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:r(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:r(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:r(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:r(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:r(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:r(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:r(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:r(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:r(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:r(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:r(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:r(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:r(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:r(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:r(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:r(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:r(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:r(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:r(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:r(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:r(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:r(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:r(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:r(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:r(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:r(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:r(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:r(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:r(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:r(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:r(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:r(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:r(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:r(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:r(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:r(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:r(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:r(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:r(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:r(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:r(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:r(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:r(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:r(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:r(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:r(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:r(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:r(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:r(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:r(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:r(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:r(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:r(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:r(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:r(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:r(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:r(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:r(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:r(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:r(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:r(6902,3,"type_Colon_6902","type:"),default_Colon:r(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:r(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:r(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:r(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:r(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:r(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:r(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:r(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:r(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:r(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:r(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:r(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:r(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:r(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:r(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:r(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:r(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:r(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:r(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:r(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:r(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:r(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:r(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:r(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:r(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:r(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:r(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:r(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:r(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:r(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:r(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:r(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:r(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:r(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:r(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:r(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:r(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:r(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:r(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:r(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:r(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:r(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:r(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:r(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:r(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:r(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:r(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:r(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:r(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:r(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:r(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:r(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:r(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:r(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:r(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:r(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:r(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:r(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:r(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:r(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:r(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:r(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:r(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:r(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:r(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:r(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:r(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:r(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:r(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:r(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:r(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:r(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:r(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:r(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:r(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:r(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:r(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:r(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:r(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:r(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:r(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:r(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:r(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:r(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:r(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:r(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:r(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:r(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:r(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:r(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:r(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:r(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:r(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:r(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:r(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:r(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:r(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:r(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:r(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:r(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:r(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:r(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:r(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:r(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:r(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:r(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:r(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:r(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:r(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:r(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:r(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:r(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:r(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:r(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:r(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:r(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:r(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:r(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:r(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:r(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:r(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:r(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:r(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:r(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:r(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:r(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:r(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:r(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:r(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:r(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:r(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:r(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:r(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:r(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:r(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:r(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:r(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:r(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:r(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:r(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:r(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:r(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:r(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:r(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:r(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:r(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:r(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:r(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:r(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:r(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:r(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:r(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:r(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:r(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:r(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:r(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:r(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:r(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:r(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:r(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:r(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:r(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:r(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:r(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:r(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:r(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:r(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:r(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:r(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:r(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:r(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:r(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:r(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:r(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:r(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:r(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:r(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:r(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:r(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:r(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:r(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:r(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:r(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:r(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:r(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:r(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:r(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:r(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:r(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:r(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:r(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:r(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:r(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:r(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:r(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:r(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:r(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:r(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:r(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:r(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:r(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:r(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:r(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:r(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:r(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:r(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:r(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:r(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:r(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:r(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:r(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:r(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:r(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:r(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:r(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:r(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:r(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:r(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:r(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:r(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:r(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:r(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:r(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:r(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:r(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:r(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:r(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:r(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:r(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:r(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:r(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:r(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:r(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:r(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:r(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:r(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:r(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:r(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:r(95005,3,"Extract_function_95005","Extract function"),Extract_constant:r(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:r(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:r(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:r(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:r(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:r(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:r(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:r(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:r(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:r(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:r(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:r(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:r(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:r(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:r(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:r(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:r(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:r(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:r(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:r(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:r(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:r(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:r(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:r(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:r(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:r(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:r(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:r(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:r(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:r(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:r(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:r(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:r(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:r(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:r(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:r(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:r(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:r(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:r(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:r(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:r(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:r(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:r(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:r(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:r(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:r(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:r(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:r(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:r(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:r(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:r(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:r(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:r(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:r(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:r(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:r(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:r(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:r(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:r(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:r(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:r(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:r(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:r(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:r(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:r(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:r(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:r(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:r(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:r(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:r(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:r(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:r(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:r(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:r(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:r(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:r(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:r(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:r(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:r(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:r(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:r(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:r(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:r(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:r(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:r(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:r(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:r(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:r(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:r(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:r(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:r(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:r(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:r(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:r(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:r(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:r(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:r(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:r(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:r(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:r(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:r(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:r(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:r(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:r(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:r(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:r(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:r(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:r(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:r(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:r(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:r(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:r(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:r(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:r(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:r(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:r(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:r(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:r(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:r(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:r(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:r(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:r(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:r(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:r(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:r(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:r(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:r(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:r(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:r(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:r(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:r(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:r(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:r(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:r(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:r(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:r(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:r(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:r(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:r(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:r(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:r(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:r(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:r(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:r(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:r(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:r(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:r(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:r(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:r(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:r(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:r(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:r(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:r(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:r(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:r(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:r(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:r(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:r(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:r(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:r(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:r(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:r(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:r(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:r(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:r(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:r(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:r(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:r(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:r(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:r(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:r(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:r(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:r(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:r(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:r(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:r(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:r(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:r(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:r(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:r(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:r(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:r(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:r(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:r(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:r(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:r(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:r(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:r(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:r(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:r(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:r(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:r(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:r(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:r(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:r(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:r(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:r(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:r(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:r(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:r(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:r(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:r(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:r(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:r(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:r(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:r(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:r(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:r(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:r(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:r(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:r(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:r(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:r(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:r(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:r(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:r(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:r(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:r(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:r(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:r(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:r(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:r(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:r(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:r(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:r(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:r(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:r(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:r(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:r(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:r(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:r(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.")};function wt(e){return e>=80}function ig(e){return e===32||wt(e)}var nf={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},ag=new Map(Object.entries(nf)),zm=new Map(Object.entries({...nf,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),Vm=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),sg=new Map([[1,Zs.RegularExpressionFlagsHasIndices],[16,Zs.RegularExpressionFlagsDotAll],[32,Zs.RegularExpressionFlagsUnicode],[64,Zs.RegularExpressionFlagsUnicodeSets],[128,Zs.RegularExpressionFlagsSticky]]),_g=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],og=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],cg=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],lg=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],ug=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,pg=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,fg=/@(?:see|link)/i;function hl(e,t){if(e=2?hl(e,cg):hl(e,_g)}function mg(e,t){return t>=2?hl(e,lg):hl(e,og)}function Wm(e){let t=[];return e.forEach((a,o)=>{t[a]=o}),t}var hg=Wm(zm);function it(e){return hg[e]}function Gm(e){return zm.get(e)}var _3=Wm(Vm);function Id(e){return Vm.get(e)}function Ym(e){let t=[],a=0,o=0;for(;a127&&Pn(m)&&(t.push(o),o=a);break}}return t.push(o),t}function yg(e,t,a,o,m){(t<0||t>=e.length)&&(m?t=t<0?0:t>=e.length?e.length-1:t:B.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${o!==void 0?wy(e,Ym(o)):"unknown"}`));let v=e[t]+a;return m?v>e[t+1]?e[t+1]:typeof o=="string"&&v>o.length?o.length:v:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Pn(e){return e===10||e===13||e===8232||e===8233}function mi(e){return e>=48&&e<=57}function Tp(e){return mi(e)||e>=65&&e<=70||e>=97&&e<=102}function rf(e){return e>=65&&e<=90||e>=97&&e<=122}function Xm(e){return rf(e)||mi(e)||e===95}function xp(e){return e>=48&&e<=55}function Pr(e,t,a,o,m){if(y_(t))return t;let v=!1;for(;;){let E=e.charCodeAt(t);switch(E){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,a)return t;v=!!m;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(o)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&za(E)){t++;continue}break}return t}}var ll=7;function Hi(e,t){if(B.assert(t>=0),t===0||Pn(e.charCodeAt(t-1))){let a=e.charCodeAt(t);if(t+ll=0&&a127&&za(N)){y&&Pn(N)&&(h=!0),a++;continue}break e}}return y&&(x=m(C,c,W,h,v,x)),x}function Km(e,t,a,o){return wl(!1,e,t,!1,a,o)}function Zm(e,t,a,o){return wl(!1,e,t,!0,a,o)}function vg(e,t,a,o,m){return wl(!0,e,t,!1,a,o,m)}function Tg(e,t,a,o,m){return wl(!0,e,t,!0,a,o,m)}function e1(e,t,a,o,m,v=[]){return v.push({kind:a,pos:e,end:t,hasTrailingNewLine:o}),v}function Jp(e,t){return vg(e,t,e1,void 0,void 0)}function xg(e,t){return Tg(e,t,e1,void 0,void 0)}function sf(e){let t=af.exec(e);if(t)return t[0]}function tr(e,t){return rf(e)||e===36||e===95||e>127&&dg(e,t)}function Dr(e,t,a){return Xm(e)||e===36||(a===1?e===45||e===58:!1)||e>127&&mg(e,t)}function Sg(e,t,a){let o=Xi(e,0);if(!tr(o,t))return!1;for(let m=zt(o);mh,getStartPos:()=>h,getTokenEnd:()=>c,getTextPos:()=>c,getToken:()=>g,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>C.substring(y,c),getTokenValue:()=>x,hasUnicodeEscape:()=>(N&1024)!==0,hasExtendedUnicodeEscape:()=>(N&8)!==0,hasPrecedingLineBreak:()=>(N&1)!==0,hasPrecedingJSDocComment:()=>(N&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(N&32768)!==0,isIdentifier:()=>g===80||g>118,isReservedWord:()=>g>=83&&g<=118,isUnterminated:()=>(N&4)!==0,getCommentDirectives:()=>te,getNumericLiteralFlags:()=>N&25584,getTokenFlags:()=>N,reScanGreaterToken:lt,reScanAsteriskEqualsToken:sr,reScanSlashToken:mt,reScanTemplateToken:Bt,reScanTemplateHeadOrNoSubstitutionTemplate:an,scanJsxIdentifier:Mr,scanJsxAttributeValue:Gn,reScanJsxAttributeValue:De,reScanJsxToken:_r,reScanLessThanToken:hr,reScanHashToken:yr,reScanQuestionToken:Vn,reScanInvalidIdentifier:Ut,scanJsxToken:Wn,scanJsDocToken:J,scanJSDocCommentTextToken:gr,scan:ct,getText:Ke,clearCommentDirectives:st,setText:Pt,setScriptTarget:ut,setLanguageVariant:Lr,setScriptKind:br,setJSDocParsingMode:Jn,setOnError:Tt,resetTokenState:Yn,setTextPos:Yn,setSkipJsDocLeadingAsterisks:Ei,tryScan:Xe,lookAhead:Te,scanRange:me};return B.isDebugging&&Object.defineProperty(M,"__debugShowCurrentPositionInText",{get:()=>{let R=M.getText();return R.slice(0,M.getTokenFullStart())+"\u2551"+R.slice(M.getTokenFullStart())}}),M;function ie(R){return Xi(C,R)}function Ce(R){return R>=0&&R=0&&R=65&&be<=70)be+=32;else if(!(be>=48&&be<=57||be>=97&&be<=102))break;xe.push(be),c++,we=!1}return xe.length=W){K+=C.substring(xe,c),N|=4,G(A.Unterminated_string_literal);break}let Se=V(c);if(Se===Q){K+=C.substring(xe,c),c++;break}if(Se===92&&!R){K+=C.substring(xe,c),K+=Mt(3),xe=c;continue}if((Se===10||Se===13)&&!R){K+=C.substring(xe,c),N|=4,G(A.Unterminated_string_literal);break}c++}return K}function Or(R){let Q=V(c)===96;c++;let K=c,xe="",Se;for(;;){if(c>=W){xe+=C.substring(K,c),N|=4,G(A.Unterminated_template_literal),Se=Q?15:18;break}let we=V(c);if(we===96){xe+=C.substring(K,c),c++,Se=Q?15:18;break}if(we===36&&c+1=W)return G(A.Unexpected_end_of_text),"";let K=V(c);switch(c++,K){case 48:if(c>=W||!mi(V(c)))return"\0";case 49:case 50:case 51:c=55296&&xe<=56319&&c+6=56320&&We<=57343)return c=be,Se+String.fromCharCode(We)}return Se;case 120:for(;c1114111&&(R&&G(A.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,K,c-K),we=!0),c>=W?(R&&G(A.Unexpected_end_of_text),we=!0):V(c)===125?c++:(R&&G(A.Unterminated_Unicode_escape_sequence),we=!0),we?(N|=2048,C.substring(Q,c)):(N|=8,Od(Se))}function Ln(){if(c+5=0&&Dr(K,e)){R+=Fn(!0),Q=c;continue}if(K=Ln(),!(K>=0&&Dr(K,e)))break;N|=1024,R+=C.substring(Q,c),R+=Od(K),c+=6,Q=c}else break}return R+=C.substring(Q,c),R}function Qe(){let R=x.length;if(R>=2&&R<=12){let Q=x.charCodeAt(0);if(Q>=97&&Q<=122){let K=ag.get(x);if(K!==void 0)return g=K}}return g=80}function zn(R){let Q="",K=!1,xe=!1;for(;;){let Se=V(c);if(Se===95){N|=512,K?(K=!1,xe=!0):G(xe?A.Multiple_consecutive_numeric_separators_are_not_permitted:A.Numeric_separators_are_not_allowed_here,c,1),c++;continue}if(K=!0,!mi(Se)||Se-48>=R)break;Q+=C[c],c++,xe=!1}return V(c-1)===95&&G(A.Numeric_separators_are_not_allowed_here,c-1,1),Q}function $t(){return V(c)===110?(x+="n",N&384&&(x=Mb(x)+"n"),c++,10):(x=""+(N&128?parseInt(x.slice(2),2):N&256?parseInt(x.slice(2),8):+x),9)}function ct(){for(h=c,N=0;;){if(y=c,c>=W)return g=1;let R=ie(c);if(c===0&&R===35&&$m(C,c)){if(c=Qm(C,c),t)continue;return g=6}switch(R){case 10:case 13:if(N|=1,t){c++;continue}else return R===13&&c+1=0&&tr(Q,e))return x=Fn(!0)+vt(),g=Qe();let K=Ln();return K>=0&&tr(K,e)?(c+=6,N|=1024,x=String.fromCharCode(K)+vt(),g=Qe()):(G(A.Invalid_character),c++,g=0);case 35:if(c!==0&&C[c+1]==="!")return G(A.can_only_be_used_at_the_start_of_a_file,c,2),c++,g=0;let xe=ie(c+1);if(xe===92){c++;let be=Lt();if(be>=0&&tr(be,e))return x="#"+Fn(!0)+vt(),g=81;let We=Ln();if(We>=0&&tr(We,e))return c+=6,N|=1024,x="#"+String.fromCharCode(We)+vt(),g=81;c--}return tr(xe,e)?(c++,Jt(xe,e)):(x="#",G(A.Invalid_character,c++,zt(R))),g=81;case 65533:return G(A.File_appears_to_be_binary,0,0),c=W,g=8;default:let Se=Jt(R,e);if(Se)return g=Se;if(a_(R)){c+=zt(R);continue}else if(Pn(R)){N|=1,c+=zt(R);continue}let we=zt(R);return G(A.Invalid_character,c,we),c+=we,g=0}}}function at(){switch(fe){case 0:return!0;case 1:return!1}return ye!==3&&ye!==4?!0:fe===3?!1:fg.test(C.slice(h,c))}function Ut(){B.assert(g===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),c=y=h,N=0;let R=ie(c),Q=Jt(R,99);return Q?g=Q:(c+=zt(R),g)}function Jt(R,Q){let K=R;if(tr(K,Q)){for(c+=zt(K);c=W)return g=1;let Q=V(c);if(Q===60)return V(c+1)===47?(c+=2,g=31):(c++,g=30);if(Q===123)return c++,g=19;let K=0;for(;c0)break;za(Q)||(K=c)}c++}return x=C.substring(h,c),K===-1?13:12}function Mr(){if(wt(g)){for(;c=W)return g=1;for(let Q=V(c);c=0&&a_(V(c-1))&&!(c+1=W)return g=1;let R=ie(c);switch(c+=zt(R),R){case 9:case 11:case 12:case 32:for(;c=0&&tr(Q,e))return x=Fn(!0)+vt(),g=Qe();let K=Ln();return K>=0&&tr(K,e)?(c+=6,N|=1024,x=String.fromCharCode(K)+vt(),g=Qe()):(c++,g=0)}if(tr(R,e)){let Q=R;for(;c=0),c=R,h=R,y=R,g=0,x=void 0,N=0}function Ei(R){ue+=R?1:-1}}function Xi(e,t){return e.codePointAt(t)}function zt(e){return e>=65536?2:e===-1?0:1}function wg(e){if(B.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,a=(e-65536)%1024+56320;return String.fromCharCode(t,a)}var kg=String.fromCodePoint?e=>String.fromCodePoint(e):wg;function Od(e){return kg(e)}var Md=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Ld=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Jd=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ba={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};Ba.Script_Extensions=Ba.Script;function Ar(e){return e.start+e.length}function Eg(e){return e.length===0}function of(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Ag(e,t){return of(e,t-e)}function e_(e){return of(e.span.start,e.newLength)}function Cg(e){return Eg(e.span)&&e.newLength===0}function t1(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var o3=t1(of(0,0),0);function cf(e,t){for(;e;){let a=t(e);if(a==="quit")return;if(a)return e;e=e.parent}}function yl(e){return(e.flags&16)===0}function Dg(e,t){if(e===void 0||yl(e))return e;for(e=e.original;e;){if(yl(e))return!t||t(e)?e:void 0;e=e.original}}function ja(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function f_(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function In(e){return f_(e.escapedText)}function kl(e){let t=Gm(e.escapedText);return t?jy(t,hi):void 0}function jp(e){return e.valueDeclaration&&Qg(e.valueDeclaration)?In(e.valueDeclaration.name):f_(e.escapedName)}function n1(e){let t=e.parent.parent;if(t){if(Ud(t))return nl(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return nl(t.declarationList.declarations[0]);break;case 244:let a=t.expression;switch(a.kind===226&&a.operatorToken.kind===64&&(a=a.left),a.kind){case 211:return a.name;case 212:let o=a.argumentExpression;if(Ze(o))return o}break;case 217:return nl(t.expression);case 256:{if(Ud(t.statement)||m1(t.statement))return nl(t.statement);break}}}}function nl(e){let t=r1(e);return t&&Ze(t)?t:void 0}function Pg(e){return e.name||n1(e)}function Ng(e){return!!e.name}function lf(e){switch(e.kind){case 80:return e;case 348:case 341:{let{name:a}=e;if(a.kind===166)return a.right;break}case 213:case 226:{let a=e;switch(yf(a)){case 1:case 4:case 5:case 3:return gf(a.left);case 7:case 8:case 9:return a.arguments[1];default:return}}case 346:return Pg(e);case 340:return n1(e);case 277:{let{expression:a}=e;return Ze(a)?a:void 0}case 212:let t=e;if(x1(t))return t.argumentExpression}return e.name}function r1(e){if(e!==void 0)return lf(e)||(Mf(e)||Lf(e)||Tl(e)?Ig(e):void 0)}function Ig(e){if(e.parent){if(sh(e.parent)||H1(e.parent))return e.parent.name;if(ea(e.parent)&&e===e.parent.right){if(Ze(e.parent.left))return e.parent.left;if(C1(e.parent.left))return gf(e.parent.left)}else if(Jf(e.parent)&&Ze(e.parent.name))return e.parent.name}else return}function uf(e){if(nb(e))return Xr(e.modifiers,Cl)}function i1(e){if(S_(e,98303))return Xr(e.modifiers,e2)}function a1(e,t){if(e.name)if(Ze(e.name)){let a=e.name.escapedText;return d_(e.parent,t).filter(o=>Vp(o)&&Ze(o.name)&&o.name.escapedText===a)}else{let a=e.parent.parameters.indexOf(e);B.assert(a>-1,"Parameters should always be in their parents' parameter list");let o=d_(e.parent,t).filter(Vp);if(aph(o)&&o.typeParameters.some(m=>m.name.escapedText===a))}function Lg(e){return s1(e,!1)}function Jg(e){return s1(e,!0)}function jg(e){return Ti(e,b6)}function Rg(e){return Gg(e,C6)}function Ug(e){return Ti(e,v6,!0)}function Bg(e){return Ti(e,T6,!0)}function qg(e){return Ti(e,x6,!0)}function Fg(e){return Ti(e,S6,!0)}function zg(e){return Ti(e,w6,!0)}function Vg(e){return Ti(e,E6,!0)}function Wg(e){let t=Ti(e,zf);if(t&&t.typeExpression&&t.typeExpression.type)return t}function d_(e,t){var a;if(!bf(e))return bt;let o=(a=e.jsDoc)==null?void 0:a.jsDocCache;if(o===void 0||t){let m=B2(e,t);B.assert(m.length<2||m[0]!==m[1]),o=Dm(m,v=>uh(v)?v.tags:v),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=o)}return o}function _1(e){return d_(e,!1)}function Ti(e,t,a){return Am(d_(e,a),t)}function Gg(e,t){return _1(e).filter(t)}function Rp(e){return e.kind===80||e.kind===81}function Yg(e){return dr(e)&&!!(e.flags&64)}function Hg(e){return $a(e)&&!!(e.flags&64)}function jd(e){return Of(e)&&!!(e.flags&64)}function o1(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function pf(e){return Vf(e,8)}function Xg(e){return pl(e)&&!!(e.flags&64)}function ff(e){return e>=166}function df(e){return e>=0&&e<=165}function c1(e){return df(e.kind)}function yi(e){return Nr(e,"pos")&&Nr(e,"end")}function $g(e){return 9<=e&&e<=15}function Rd(e){return 15<=e&&e<=18}function qa(e){var t;return Ze(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function l1(e){var t;return vi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Qg(e){return(Ya(e)||r2(e))&&vi(e.name)}function Hr(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function Kg(e){return!!(E1(e)&31)}function Zg(e){return Kg(e)||e===126||e===164||e===129}function e2(e){return Hr(e.kind)}function u1(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function mf(e){return!!e&&n2(e.kind)}function t2(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function n2(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return t2(e)}}function xi(e){return e&&(e.kind===263||e.kind===231)}function r2(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function i2(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function p1(e){return fb(e.kind)}function a2(e){if(e){let t=e.kind;return t===207||t===206}return!1}function s2(e){let t=e.kind;return t===209||t===210}function _2(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Va(e){return f1(pf(e).kind)}function f1(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function o2(e){return d1(pf(e).kind)}function d1(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return f1(e)}}function m1(e){return c2(pf(e).kind)}function c2(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 356:case 355:case 238:return!0;default:return d1(e)}}function l2(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===346||e===338||e===348||e===202}function h1(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function y1(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===353}function Ud(e){return e.kind===168?e.parent&&e.parent.kind!==345||ta(e):l2(e.kind)}function u2(e){let t=e.kind;return y1(t)||h1(t)||p2(e)}function p2(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!A2(e)}function f2(e){let t=e.kind;return y1(t)||h1(t)||t===241}function g1(e){return e.kind>=309&&e.kind<=351}function d2(e){return e.kind===320||e.kind===319||e.kind===321||y2(e)||m2(e)||g6(e)||Il(e)}function m2(e){return e.kind>=327&&e.kind<=351}function rl(e){return e.kind===178}function il(e){return e.kind===177}function $i(e){if(!bf(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function h2(e){return!!e.initializer}function El(e){return e.kind===11||e.kind===15}function y2(e){return e.kind===324||e.kind===325||e.kind===326}function Bd(e){return(e.flags&33554432)!==0}var c3=g2();function g2(){var e="";let t=a=>e+=a;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(a,o)=>t(a),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&za(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Ga,decreaseIndent:Ga,clear:()=>e=""}}function b2(e,t){let a=e.entries();for(let[o,m]of a){let v=t(m,o);if(v)return v}}function v2(e){return e.end-e.pos}function b1(e){return T2(e),(e.flags&1048576)!==0}function T2(e){e.flags&2097152||(((e.flags&262144)!==0||Ht(e,b1))&&(e.flags|=1048576),e.flags|=2097152)}function gi(e){for(;e&&e.kind!==307;)e=e.parent;return e}function Qi(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Up(e){return!Qi(e)}function gl(e,t,a){if(Qi(e))return e.pos;if(g1(e)||e.kind===12)return Pr((t??gi(e)).text,e.pos,!1,!0);if(a&&$i(e))return gl(e.jsDoc[0],t);if(e.kind===352){t??(t=gi(e));let o=Xp(fh(e,t));if(o)return gl(o,t,a)}return Pr((t??gi(e)).text,e.pos,!1,!1,C2(e))}function qd(e,t,a=!1){return s_(e.text,t,a)}function x2(e){return!!cf(e,oh)}function s_(e,t,a=!1){if(Qi(t))return"";let o=e.substring(a?t.pos:Pr(e,t.pos),t.end);return x2(t)&&(o=o.split(/\r\n|\n|\r/).map(m=>m.replace(/^\s*\*/,"").trimStart()).join(` -`)),o}function Wa(e){let t=e.emitNode;return t&&t.flags||0}function S2(e,t,a){B.assertGreaterThanOrEqual(t,0),B.assertGreaterThanOrEqual(a,0),B.assertLessThanOrEqual(t,e.length),B.assertLessThanOrEqual(t+a,e.length)}function ul(e){return e.kind===244&&e.expression.kind===11}function hf(e){return!!(Wa(e)&2097152)}function Fd(e){return hf(e)&&jf(e)}function w2(e){return Ze(e.name)&&!e.initializer}function zd(e){return hf(e)&&Qa(e)&&Yp(e.declarationList.declarations,w2)}function k2(e,t){let a=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Hp(xg(t,e.pos),Jp(t,e.pos)):Jp(t,e.pos);return Xr(a,o=>o.end<=e.end&&t.charCodeAt(o.pos+1)===42&&t.charCodeAt(o.pos+2)===42&&t.charCodeAt(o.pos+3)!==47)}function E2(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function A2(e){return e&&e.kind===241&&mf(e.parent)}function Vd(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function ta(e){return!!e&&!!(e.flags&524288)}function C2(e){return!!e&&!!(e.flags&16777216)}function D2(e){for(;bl(e,!0);)e=e.right;return e}function P2(e){return Ze(e)&&e.escapedText==="exports"}function N2(e){return Ze(e)&&e.escapedText==="module"}function v1(e){return(dr(e)||T1(e))&&N2(e.expression)&&h_(e)==="exports"}function yf(e){let t=O2(e);return t===5||ta(e)?t:0}function I2(e){return r_(e.arguments)===3&&dr(e.expression)&&Ze(e.expression.expression)&&In(e.expression.expression)==="Object"&&In(e.expression.name)==="defineProperty"&&Al(e.arguments[1])&&m_(e.arguments[0],!0)}function T1(e){return $a(e)&&Al(e.argumentExpression)}function x_(e,t){return dr(e)&&(!t&&e.expression.kind===110||Ze(e.name)&&m_(e.expression,!0))||x1(e,t)}function x1(e,t){return T1(e)&&(!t&&e.expression.kind===110||xf(e.expression)||x_(e.expression,!0))}function m_(e,t){return xf(e)||x_(e,t)}function O2(e){if(Of(e)){if(!I2(e))return 0;let t=e.arguments[0];return P2(t)||v1(t)?8:x_(t)&&h_(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!C1(e.left)||M2(D2(e))?0:m_(e.left.expression,!0)&&h_(e.left)==="prototype"&&If(J2(e))?6:L2(e.left)}function M2(e){return p6(e)&&na(e.expression)&&e.expression.text==="0"}function gf(e){if(dr(e))return e.name;let t=vf(e.argumentExpression);return na(t)||El(t)?t:e}function h_(e){let t=gf(e);if(t){if(Ze(t))return t.escapedText;if(El(t)||na(t))return ja(t.text)}}function L2(e){if(e.expression.kind===110)return 4;if(v1(e))return 2;if(m_(e.expression,!0)){if(ub(e.expression))return 3;let t=e;for(;!Ze(t.expression);)t=t.expression;let a=t.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&h_(t)==="exports")&&x_(e))return 1;if(m_(e,!0)||$a(e)&&$2(e))return 5}return 0}function J2(e){for(;ea(e.right);)e=e.right;return e.right}function j2(e){return Pl(e)&&ea(e.expression)&&yf(e.expression)!==0&&ea(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function R2(e){switch(e.kind){case 243:let t=Bp(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function Bp(e){return Qa(e)?Xp(e.declarationList.declarations):void 0}function U2(e){return wi(e)&&e.body&&e.body.kind===267?e.body:void 0}function bf(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function B2(e,t){let a;E2(e)&&h2(e)&&$i(e.initializer)&&(a=Nn(a,Wd(e,e.initializer.jsDoc)));let o=e;for(;o&&o.parent;){if($i(o)&&(a=Nn(a,Wd(e,o.jsDoc))),o.kind===169){a=Nn(a,(t?Mg:Og)(o));break}if(o.kind===168){a=Nn(a,(t?Jg:Lg)(o));break}o=F2(o)}return a||bt}function Wd(e,t){let a=Cy(t);return Dm(t,o=>{if(o===a){let m=Xr(o.tags,v=>q2(e,v));return o.tags===m?[o]:m}else return Xr(o.tags,k6)})}function q2(e,t){return!(zf(t)||D6(t))||!t.parent||!uh(t.parent)||!Dl(t.parent.parent)||t.parent.parent===e}function F2(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||U2(t)||bl(e))return t;if(t.parent&&(Bp(t.parent)===e||bl(t)))return t.parent;if(t.parent&&t.parent.parent&&(Bp(t.parent.parent)||R2(t.parent.parent)===e||j2(t.parent.parent)))return t.parent.parent}function vf(e,t){return Vf(e,t?-2147483647:1)}function z2(e){let t=V2(e);if(t&&ta(e)){let a=jg(e);if(a)return a.class}return t}function V2(e){let t=Tf(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function W2(e){if(ta(e))return Rg(e).map(t=>t.class);{let t=Tf(e.heritageClauses,119);return t==null?void 0:t.types}}function G2(e){return w_(e)?Y2(e)||bt:xi(e)&&Hp(Op(z2(e)),W2(e))||bt}function Y2(e){let t=Tf(e.heritageClauses,96);return t?t.types:void 0}function Tf(e,t){if(e){for(let a of e)if(a.token===t)return a}}function hi(e){return 83<=e&&e<=165}function H2(e){return 19<=e&&e<=79}function Sp(e){return hi(e)||H2(e)}function Al(e){return El(e)||na(e)}function X2(e){return Q1(e)&&(e.operator===40||e.operator===41)&&na(e.operand)}function $2(e){if(!(e.kind===167||e.kind===212))return!1;let t=$a(e)?vf(e.argumentExpression):e.expression;return!Al(t)&&!X2(t)}function Q2(e){return Rp(e)?In(e):ah(e)?Bb(e):e.text}function Ra(e){return y_(e.pos)||y_(e.end)}function wp(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function kp(e){return!!((e.templateFlags||0)&2048)}function K2(e){return e&&!!(M1(e)?kp(e):kp(e.head)||nn(e.templateSpans,t=>kp(t.literal)))}var l3=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));var u3=new Map(Object.entries({'"':""","'":"'"}));function Z2(e){return!!e&&e.kind===80&&eb(e)}function eb(e){return e.escapedText==="this"}function S_(e,t){return!!rb(e,t)}function tb(e){return S_(e,256)}function nb(e){return S_(e,32768)}function rb(e,t){return ab(e)&t}function ib(e,t,a){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=k1(e)|536870912),a||t&&ta(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=S1(e)|268435456),w1(e.modifierFlagsCache)):sb(e.modifierFlagsCache))}function ab(e){return ib(e,!1)}function S1(e){let t=0;return e.parent&&!g_(e)&&(ta(e)&&(Ug(e)&&(t|=8388608),Bg(e)&&(t|=16777216),qg(e)&&(t|=33554432),Fg(e)&&(t|=67108864),zg(e)&&(t|=134217728)),Vg(e)&&(t|=65536)),t}function sb(e){return e&65535}function w1(e){return e&131071|(e&260046848)>>>23}function _b(e){return w1(S1(e))}function ob(e){return k1(e)|_b(e)}function k1(e){let t=Ol(e)?Bn(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Bn(e){let t=0;if(e)for(let a of e)t|=E1(a.kind);return t}function E1(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function cb(e){return e===76||e===77||e===78}function A1(e){return e>=64&&e<=79}function bl(e,t){return ea(e)&&(t?e.operatorToken.kind===64:A1(e.operatorToken.kind))&&Va(e.left)}function xf(e){return e.kind===80||lb(e)}function lb(e){return dr(e)&&Ze(e.name)&&xf(e.expression)}function ub(e){return x_(e)&&h_(e)==="prototype"}function Ep(e){return e.flags&3899393?e.objectFlags:0}function pb(e){let t;return Ht(e,a=>{Up(a)&&(t=a)},a=>{for(let o=a.length-1;o>=0;o--)if(Up(a[o])){t=a[o];break}}),t}function fb(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function C1(e){return e.kind===211||e.kind===212}function db(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function mb(e,t){this.flags=t,(B.isDebugging||cl)&&(this.checker=e)}function hb(e,t){this.flags=t,B.isDebugging&&(this.checker=e)}function Ap(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function yb(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function gb(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function bb(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}var At={getNodeConstructor:()=>Ap,getTokenConstructor:()=>yb,getIdentifierConstructor:()=>gb,getPrivateIdentifierConstructor:()=>Ap,getSourceFileConstructor:()=>Ap,getSymbolConstructor:()=>db,getTypeConstructor:()=>mb,getSignatureConstructor:()=>hb,getSourceMapSourceConstructor:()=>bb},vb=[];function Tb(e){Object.assign(At,e),qn(vb,t=>t(At))}function xb(e,t){return e.replace(/\{(\d+)\}/g,(a,o)=>""+B.checkDefined(t[+o]))}var Gd;function Sb(e){return Gd&&Gd[e.key]||e.message}function La(e,t,a,o,m,...v){a+o>t.length&&(o=t.length-a),S2(t,a,o);let E=Sb(m);return nn(v)&&(E=xb(E,v)),{file:void 0,start:a,length:o,messageText:E,category:m.category,code:m.code,reportsUnnecessary:m.reportsUnnecessary,fileName:e}}function wb(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function D1(e,t){let a=t.fileName||"",o=t.text.length;B.assertEqual(e.fileName,a),B.assertLessThanOrEqual(e.start,o),B.assertLessThanOrEqual(e.start+e.length,o);let m={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){m.relatedInformation=[];for(let v of e.relatedInformation)wb(v)&&v.fileName===a?(B.assertLessThanOrEqual(v.start,o),B.assertLessThanOrEqual(v.start+v.length,o),m.relatedInformation.push(D1(v,t))):m.relatedInformation.push(v)}return m}function Wi(e,t){let a=[];for(let o of e)a.push(D1(o,t));return a}function Yd(e){return e===4||e===2||e===1||e===6?1:0}var ot={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:ot.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(ot.module.computeValue(e)){case 1:t=2;break;case 100:case 101:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(e.moduleDetection!==void 0)return e.moduleDetection;let t=ot.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(ot.module.computeValue(e)){case 100:case 101:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:ot.esModuleInterop.computeValue(e)||ot.module.computeValue(e)===4||ot.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=ot.moduleResolution.computeValue(e);if(!Hd(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=ot.moduleResolution.computeValue(e);if(!Hd(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:ot.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||ot.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&ot.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?ot.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Yr(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Yr(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Yr(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Yr(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Yr(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Yr(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Yr(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Yr(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Yr(e,"useUnknownInCatchVariables")}};var p3=ot.allowImportingTsExtensions.computeValue,f3=ot.target.computeValue,d3=ot.module.computeValue,m3=ot.moduleResolution.computeValue,h3=ot.moduleDetection.computeValue,y3=ot.isolatedModules.computeValue,g3=ot.esModuleInterop.computeValue,b3=ot.allowSyntheticDefaultImports.computeValue,v3=ot.resolvePackageJsonExports.computeValue,T3=ot.resolvePackageJsonImports.computeValue,x3=ot.resolveJsonModule.computeValue,S3=ot.declaration.computeValue,w3=ot.preserveConstEnums.computeValue,k3=ot.incremental.computeValue,E3=ot.declarationMap.computeValue,A3=ot.allowJs.computeValue,C3=ot.useDefineForClassFields.computeValue;function Hd(e){return e>=3&&e<=99||e===100}function Yr(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function kb(e){return b2(targetOptionDeclaration.type,(t,a)=>t===e?a:void 0)}var Eb=["node_modules","bower_components","jspm_packages"],P1=`(?!(${Eb.join("|")})(/|$))`,Ab={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${P1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>N1(e,Ab.singleAsteriskRegexFragment)},Cb={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${P1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>N1(e,Cb.singleAsteriskRegexFragment)};function N1(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function Db(e,t){return t||Pb(e)||3}function Pb(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var I1=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],D3=Cm(I1),P3=[...I1,[".json"]];var Nb=[[".js",".jsx"],[".mjs"],[".cjs"]],N3=Cm(Nb),Ib=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],I3=[...Ib,[".json"]],Ob=[".d.ts",".d.cts",".d.mts"];function y_(e){return!(e>=0)}function al(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),B.assert(e.relatedInformation!==bt,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Mb(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let W=e.length-1,h=0;for(;e.charCodeAt(h)===48;)h++;return e.slice(h,W)||"0"}let a=2,o=e.length-1,m=(o-a)*t,v=new Uint16Array((m>>>4)+(m&15?1:0));for(let W=o-1,h=0;W>=a;W--,h+=t){let y=h>>>4,g=e.charCodeAt(W),N=(g<=57?g-48:10+g-(g<=70?65:97))<<(h&15);v[y]|=N;let te=N>>>16;te&&(v[y+1]|=te)}let E="",C=v.length-1,c=!0;for(;c;){let W=0;c=!1;for(let h=C;h>=0;h--){let y=W<<16|v[h],g=y/10|0;v[h]=g,W=y-g*10,g&&!c&&(C=h,c=!0)}E=W+E}return E}function Lb({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function qp(e,t){return e.pos=t,e}function Jb(e,t){return e.end=t,e}function bi(e,t,a){return Jb(qp(e,t),a)}function Xd(e,t,a){return bi(e,t,t+a)}function Sf(e,t){return e&&t&&(e.parent=t),e}function jb(e,t){if(!e)return e;return xm(e,g1(e)?a:m),e;function a(v,E){if(t&&v.parent===E)return"skip";Sf(v,E)}function o(v){if($i(v))for(let E of v.jsDoc)a(E,v),xm(E,a)}function m(v,E){return a(v,E)||o(v)}}function Rb(e){return!!(e.flags&262144&&e.isThisType)}function Ub(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function Bb(e){return`${In(e.namespace)}:${In(e.name)}`}var O3=String.prototype.replace;var Fp=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],M3=new Set(Fp),qb=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),L3=new Set([...Fp,...Fp.map(e=>`node:${e}`),...qb]);function Fb(){let e,t,a,o,m;return{createBaseSourceFileNode:v,createBaseIdentifierNode:E,createBasePrivateIdentifierNode:C,createBaseTokenNode:c,createBaseNode:W};function v(h){return new(m||(m=At.getSourceFileConstructor()))(h,-1,-1)}function E(h){return new(a||(a=At.getIdentifierConstructor()))(h,-1,-1)}function C(h){return new(o||(o=At.getPrivateIdentifierConstructor()))(h,-1,-1)}function c(h){return new(t||(t=At.getTokenConstructor()))(h,-1,-1)}function W(h){return new(e||(e=At.getNodeConstructor()))(h,-1,-1)}}var zb={getParenthesizeLeftSideOfBinaryForOperator:e=>gt,getParenthesizeRightSideOfBinaryForOperator:e=>gt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,a)=>a,parenthesizeExpressionOfComputedPropertyName:gt,parenthesizeConditionOfConditionalExpression:gt,parenthesizeBranchOfConditionalExpression:gt,parenthesizeExpressionOfExportDefault:gt,parenthesizeExpressionOfNew:e=>Cr(e,Va),parenthesizeLeftSideOfAccess:e=>Cr(e,Va),parenthesizeOperandOfPostfixUnary:e=>Cr(e,Va),parenthesizeOperandOfPrefixUnary:e=>Cr(e,o2),parenthesizeExpressionsOfCommaDelimitedList:e=>Cr(e,yi),parenthesizeExpressionForDisallowedComma:gt,parenthesizeExpressionOfExpressionStatement:gt,parenthesizeConciseBodyOfArrowFunction:gt,parenthesizeCheckTypeOfConditionalType:gt,parenthesizeExtendsTypeOfConditionalType:gt,parenthesizeConstituentTypesOfUnionType:e=>Cr(e,yi),parenthesizeConstituentTypeOfUnionType:gt,parenthesizeConstituentTypesOfIntersectionType:e=>Cr(e,yi),parenthesizeConstituentTypeOfIntersectionType:gt,parenthesizeOperandOfTypeOperator:gt,parenthesizeOperandOfReadonlyTypeOperator:gt,parenthesizeNonArrayTypeOfPostfixType:gt,parenthesizeElementTypesOfTupleType:e=>Cr(e,yi),parenthesizeElementTypeOfTupleType:gt,parenthesizeTypeOfOptionalType:gt,parenthesizeTypeArguments:e=>e&&Cr(e,yi),parenthesizeLeadingTypeArgument:gt},sl=0;var Vb=[];function wf(e,t){let a=e&8?gt:Xb,o=Ed(()=>e&1?zb:createParenthesizerRules(ye)),m=Ed(()=>e&2?nullNodeConverters:createNodeConverters(ye)),v=er(n=>(i,s)=>fa(i,n,s)),E=er(n=>i=>Br(n,i)),C=er(n=>i=>ii(i,n)),c=er(n=>()=>Ko(n)),W=er(n=>i=>Ps(n,i)),h=er(n=>(i,s)=>Su(n,i,s)),y=er(n=>(i,s)=>Zo(n,i,s)),g=er(n=>(i,s)=>xu(n,i,s)),x=er(n=>(i,s)=>yc(n,i,s)),N=er(n=>(i,s,l)=>Mu(n,i,s,l)),te=er(n=>(i,s,l)=>gc(n,i,s,l)),ue=er(n=>(i,s,l,f)=>Lu(n,i,s,l,f)),ye={get parenthesizer(){return o()},get converters(){return m()},baseFactory:t,flags:e,createNodeArray:fe,createNumericLiteral:V,createBigIntLiteral:oe,createStringLiteral:dt,createStringLiteralFromNode:rr,createRegularExpressionLiteral:vn,createLiteralLikeNode:ir,createIdentifier:Ge,createTempVariable:ar,createLoopVariable:Or,createUniqueName:Mt,getGeneratedNameForNode:Fn,createPrivateIdentifier:Lt,createUniquePrivateName:Qe,getGeneratedPrivateNameForNode:zn,createToken:ct,createSuper:at,createThis:Ut,createNull:Jt,createTrue:lt,createFalse:sr,createModifier:mt,createModifiersFromModifierFlags:xn,createQualifiedName:yt,updateQualifiedName:ln,createComputedPropertyName:nt,updateComputedPropertyName:Bt,createTypeParameterDeclaration:an,updateTypeParameterDeclaration:_r,createParameterDeclaration:hr,updateParameterDeclaration:yr,createDecorator:Vn,updateDecorator:Wn,createPropertySignature:Mr,updatePropertySignature:Gn,createPropertyDeclaration:gr,updatePropertyDeclaration:J,createMethodSignature:_e,updateMethodSignature:me,createMethodDeclaration:Te,updateMethodDeclaration:Xe,createConstructorDeclaration:ut,updateConstructorDeclaration:Lr,createGetAccessorDeclaration:Jn,updateGetAccessorDeclaration:Yn,createSetAccessorDeclaration:R,updateSetAccessorDeclaration:Q,createCallSignature:xe,updateCallSignature:Se,createConstructSignature:we,updateConstructSignature:be,createIndexSignature:We,updateIndexSignature:et,createClassStaticBlockDeclaration:st,updateClassStaticBlockDeclaration:Pt,createTemplateLiteralTypeSpan:Ye,updateTemplateLiteralTypeSpan:Ee,createKeywordTypeNode:Sn,createTypePredicateNode:rt,updateTypePredicateNode:un,createTypeReferenceNode:ti,updateTypeReferenceNode:L,createFunctionTypeNode:qe,updateFunctionTypeNode:u,createConstructorTypeNode:Me,updateConstructorTypeNode:sn,createTypeQueryNode:Nt,updateTypeQueryNode:kt,createTypeLiteralNode:It,updateTypeLiteralNode:qt,createArrayTypeNode:Hn,updateArrayTypeNode:Ai,createTupleTypeNode:pn,updateTupleTypeNode:Y,createNamedTupleMember:pe,updateNamedTupleMember:ze,createOptionalTypeNode:ve,updateOptionalTypeNode:j,createRestTypeNode:ht,updateRestTypeNode:xt,createUnionTypeNode:Bl,updateUnionTypeNode:D_,createIntersectionTypeNode:Jr,updateIntersectionTypeNode:Le,createConditionalTypeNode:ft,updateConditionalTypeNode:ql,createInferTypeNode:Xn,updateInferTypeNode:Fl,createImportTypeNode:or,updateImportTypeNode:_a,createParenthesizedType:Qt,updateParenthesizedType:Ct,createThisTypeNode:P,createTypeOperatorNode:Gt,updateTypeOperatorNode:jr,createIndexedAccessTypeNode:cr,updateIndexedAccessTypeNode:es,createMappedTypeNode:St,updateMappedTypeNode:Rt,createLiteralTypeNode:ni,updateLiteralTypeNode:vr,createTemplateLiteralType:Wt,updateTemplateLiteralType:zl,createObjectBindingPattern:P_,updateObjectBindingPattern:Vl,createArrayBindingPattern:Rr,updateArrayBindingPattern:Wl,createBindingElement:oa,updateBindingElement:ri,createArrayLiteralExpression:ts,updateArrayLiteralExpression:N_,createObjectLiteralExpression:Ci,updateObjectLiteralExpression:Gl,createPropertyAccessExpression:e&4?(n,i)=>setEmitFlags(lr(n,i),262144):lr,updatePropertyAccessExpression:Yl,createPropertyAccessChain:e&4?(n,i,s)=>setEmitFlags(Di(n,i,s),262144):Di,updatePropertyAccessChain:ca,createElementAccessExpression:Pi,updateElementAccessExpression:Hl,createElementAccessChain:M_,updateElementAccessChain:ns,createCallExpression:Ni,updateCallExpression:la,createCallChain:rs,updateCallChain:J_,createNewExpression:wn,updateNewExpression:is,createTaggedTemplateExpression:ua,updateTaggedTemplateExpression:j_,createTypeAssertion:R_,updateTypeAssertion:U_,createParenthesizedExpression:as,updateParenthesizedExpression:B_,createFunctionExpression:ss,updateFunctionExpression:q_,createArrowFunction:_s,updateArrowFunction:F_,createDeleteExpression:z_,updateDeleteExpression:V_,createTypeOfExpression:pa,updateTypeOfExpression:dn,createVoidExpression:os,updateVoidExpression:ur,createAwaitExpression:W_,updateAwaitExpression:Ur,createPrefixUnaryExpression:Br,updatePrefixUnaryExpression:Xl,createPostfixUnaryExpression:ii,updatePostfixUnaryExpression:$l,createBinaryExpression:fa,updateBinaryExpression:Ql,createConditionalExpression:Y_,updateConditionalExpression:H_,createTemplateExpression:X_,updateTemplateExpression:$n,createTemplateHead:Q_,createTemplateMiddle:da,createTemplateTail:cs,createNoSubstitutionTemplateLiteral:Zl,createTemplateLiteralLikeNode:si,createYieldExpression:ls,updateYieldExpression:eu,createSpreadElement:K_,updateSpreadElement:tu,createClassExpression:Z_,updateClassExpression:us,createOmittedExpression:ps,createExpressionWithTypeArguments:eo,updateExpressionWithTypeArguments:to,createAsExpression:mn,updateAsExpression:ma,createNonNullExpression:no,updateNonNullExpression:ro,createSatisfiesExpression:fs,updateSatisfiesExpression:io,createNonNullChain:ds,updateNonNullChain:jn,createMetaProperty:ao,updateMetaProperty:ms,createTemplateSpan:Qn,updateTemplateSpan:ha,createSemicolonClassElement:so,createBlock:qr,updateBlock:nu,createVariableStatement:hs,updateVariableStatement:_o,createEmptyStatement:oo,createExpressionStatement:Oi,updateExpressionStatement:co,createIfStatement:lo,updateIfStatement:uo,createDoStatement:po,updateDoStatement:fo,createWhileStatement:mo,updateWhileStatement:ru,createForStatement:ho,updateForStatement:yo,createForInStatement:ys,updateForInStatement:iu,createForOfStatement:go,updateForOfStatement:au,createContinueStatement:bo,updateContinueStatement:su,createBreakStatement:gs,updateBreakStatement:vo,createReturnStatement:bs,updateReturnStatement:_u,createWithStatement:vs,updateWithStatement:To,createSwitchStatement:Ts,updateSwitchStatement:_i,createLabeledStatement:xo,updateLabeledStatement:So,createThrowStatement:wo,updateThrowStatement:ou,createTryStatement:ko,updateTryStatement:cu,createDebuggerStatement:Eo,createVariableDeclaration:ya,updateVariableDeclaration:Ao,createVariableDeclarationList:xs,updateVariableDeclarationList:lu,createFunctionDeclaration:Co,updateFunctionDeclaration:Ss,createClassDeclaration:Do,updateClassDeclaration:ga,createInterfaceDeclaration:Po,updateInterfaceDeclaration:No,createTypeAliasDeclaration:_t,updateTypeAliasDeclaration:Tr,createEnumDeclaration:ws,updateEnumDeclaration:xr,createModuleDeclaration:Io,updateModuleDeclaration:Et,createModuleBlock:Sr,updateModuleBlock:Ft,createCaseBlock:Oo,updateCaseBlock:pu,createNamespaceExportDeclaration:Mo,updateNamespaceExportDeclaration:Lo,createImportEqualsDeclaration:Jo,updateImportEqualsDeclaration:jo,createImportDeclaration:Ro,updateImportDeclaration:Uo,createImportClause:Bo,updateImportClause:qo,createAssertClause:ks,updateAssertClause:du,createAssertEntry:Mi,updateAssertEntry:Fo,createImportTypeAssertionContainer:Es,updateImportTypeAssertionContainer:zo,createImportAttributes:Vo,updateImportAttributes:As,createImportAttribute:Wo,updateImportAttribute:Go,createNamespaceImport:Yo,updateNamespaceImport:mu,createNamespaceExport:Ho,updateNamespaceExport:hu,createNamedImports:Xo,updateNamedImports:$o,createImportSpecifier:wr,updateImportSpecifier:yu,createExportAssignment:ba,updateExportAssignment:Li,createExportDeclaration:va,updateExportDeclaration:Qo,createNamedExports:Cs,updateNamedExports:gu,createExportSpecifier:Ta,updateExportSpecifier:bu,createMissingDeclaration:vu,createExternalModuleReference:Ds,updateExternalModuleReference:Tu,get createJSDocAllType(){return c(312)},get createJSDocUnknownType(){return c(313)},get createJSDocNonNullableType(){return y(315)},get updateJSDocNonNullableType(){return g(315)},get createJSDocNullableType(){return y(314)},get updateJSDocNullableType(){return g(314)},get createJSDocOptionalType(){return W(316)},get updateJSDocOptionalType(){return h(316)},get createJSDocVariadicType(){return W(318)},get updateJSDocVariadicType(){return h(318)},get createJSDocNamepathType(){return W(319)},get updateJSDocNamepathType(){return h(319)},createJSDocFunctionType:ec,updateJSDocFunctionType:wu,createJSDocTypeLiteral:tc,updateJSDocTypeLiteral:ku,createJSDocTypeExpression:nc,updateJSDocTypeExpression:Ns,createJSDocSignature:rc,updateJSDocSignature:Eu,createJSDocTemplateTag:Is,updateJSDocTemplateTag:ic,createJSDocTypedefTag:xa,updateJSDocTypedefTag:Au,createJSDocParameterTag:Os,updateJSDocParameterTag:Cu,createJSDocPropertyTag:ac,updateJSDocPropertyTag:sc,createJSDocCallbackTag:_c,updateJSDocCallbackTag:oc,createJSDocOverloadTag:cc,updateJSDocOverloadTag:Ms,createJSDocAugmentsTag:Ls,updateJSDocAugmentsTag:ji,createJSDocImplementsTag:lc,updateJSDocImplementsTag:Ou,createJSDocSeeTag:zr,updateJSDocSeeTag:Sa,createJSDocImportTag:Tc,updateJSDocImportTag:xc,createJSDocNameReference:uc,updateJSDocNameReference:Du,createJSDocMemberName:pc,updateJSDocMemberName:Pu,createJSDocLink:fc,updateJSDocLink:dc,createJSDocLinkCode:mc,updateJSDocLinkCode:Nu,createJSDocLinkPlain:hc,updateJSDocLinkPlain:Iu,get createJSDocTypeTag(){return te(344)},get updateJSDocTypeTag(){return ue(344)},get createJSDocReturnTag(){return te(342)},get updateJSDocReturnTag(){return ue(342)},get createJSDocThisTag(){return te(343)},get updateJSDocThisTag(){return ue(343)},get createJSDocAuthorTag(){return x(330)},get updateJSDocAuthorTag(){return N(330)},get createJSDocClassTag(){return x(332)},get updateJSDocClassTag(){return N(332)},get createJSDocPublicTag(){return x(333)},get updateJSDocPublicTag(){return N(333)},get createJSDocPrivateTag(){return x(334)},get updateJSDocPrivateTag(){return N(334)},get createJSDocProtectedTag(){return x(335)},get updateJSDocProtectedTag(){return N(335)},get createJSDocReadonlyTag(){return x(336)},get updateJSDocReadonlyTag(){return N(336)},get createJSDocOverrideTag(){return x(337)},get updateJSDocOverrideTag(){return N(337)},get createJSDocDeprecatedTag(){return x(331)},get updateJSDocDeprecatedTag(){return N(331)},get createJSDocThrowsTag(){return te(349)},get updateJSDocThrowsTag(){return ue(349)},get createJSDocSatisfiesTag(){return te(350)},get updateJSDocSatisfiesTag(){return ue(350)},createJSDocEnumTag:vc,updateJSDocEnumTag:Js,createJSDocUnknownTag:bc,updateJSDocUnknownTag:Ju,createJSDocText:js,updateJSDocText:ju,createJSDocComment:Ri,updateJSDocComment:Sc,createJsxElement:wc,updateJsxElement:Ru,createJsxSelfClosingElement:kc,updateJsxSelfClosingElement:Rs,createJsxOpeningElement:Us,updateJsxOpeningElement:Ec,createJsxClosingElement:wa,updateJsxClosingElement:Kt,createJsxFragment:Bs,createJsxText:ka,updateJsxText:Cc,createJsxOpeningFragment:Uu,createJsxJsxClosingFragment:Bu,updateJsxFragment:Ac,createJsxAttribute:Dc,updateJsxAttribute:Ea,createJsxAttributes:Pc,updateJsxAttributes:qu,createJsxSpreadAttribute:Nc,updateJsxSpreadAttribute:Fu,createJsxExpression:Aa,updateJsxExpression:Ui,createJsxNamespacedName:Ic,updateJsxNamespacedName:qs,createCaseClause:Fs,updateCaseClause:zu,createDefaultClause:oi,updateDefaultClause:Oc,createHeritageClause:Mc,updateHeritageClause:Vu,createCatchClause:zs,updateCatchClause:Lc,createPropertyAssignment:Ca,updatePropertyAssignment:Vr,createShorthandPropertyAssignment:Jc,updateShorthandPropertyAssignment:Gu,createSpreadAssignment:Vs,updateSpreadAssignment:jc,createEnumMember:En,updateEnumMember:Rc,createSourceFile:Hu,updateSourceFile:Qu,createRedirectedSourceFile:Uc,createBundle:Ws,updateBundle:Ku,createSyntheticExpression:Zu,createSyntaxList:Pa,createNotEmittedStatement:qc,createNotEmittedTypeElement:ep,createPartiallyEmittedExpression:Fc,updatePartiallyEmittedExpression:zc,createCommaListExpression:Gs,updateCommaListExpression:Vc,createSyntheticReferenceExpression:Ys,updateSyntheticReferenceExpression:Wc,cloneNode:Hs,get createComma(){return v(28)},get createAssignment(){return v(64)},get createLogicalOr(){return v(57)},get createLogicalAnd(){return v(56)},get createBitwiseOr(){return v(52)},get createBitwiseXor(){return v(53)},get createBitwiseAnd(){return v(51)},get createStrictEquality(){return v(37)},get createStrictInequality(){return v(38)},get createEquality(){return v(35)},get createInequality(){return v(36)},get createLessThan(){return v(30)},get createLessThanEquals(){return v(33)},get createGreaterThan(){return v(32)},get createGreaterThanEquals(){return v(34)},get createLeftShift(){return v(48)},get createRightShift(){return v(49)},get createUnsignedRightShift(){return v(50)},get createAdd(){return v(40)},get createSubtract(){return v(41)},get createMultiply(){return v(42)},get createDivide(){return v(44)},get createModulo(){return v(45)},get createExponent(){return v(43)},get createPrefixPlus(){return E(40)},get createPrefixMinus(){return E(41)},get createPrefixIncrement(){return E(46)},get createPrefixDecrement(){return E(47)},get createBitwiseNot(){return E(55)},get createLogicalNot(){return E(54)},get createPostfixIncrement(){return C(46)},get createPostfixDecrement(){return C(47)},createImmediatelyInvokedFunctionExpression:ip,createImmediatelyInvokedArrowFunction:ap,createVoidZero:ci,createExportDefault:Hc,createExternalModuleExport:sp,createTypeCheck:Xs,createIsNotTypeCheck:_p,createMethodCall:Wr,createGlobalMethodCall:Bi,createFunctionBindCall:op,createFunctionCallCall:cp,createFunctionApplyCall:lp,createArraySliceCall:qi,createArrayConcatCall:up,createObjectDefinePropertyCall:$s,createObjectGetOwnPropertyDescriptorCall:li,createReflectGetCall:Xc,createReflectSetCall:pp,createPropertyDescriptor:$c,createCallBinding:Kc,createAssignmentTargetWrapper:_,inlineExpressions:p,getInternalName:b,getLocalName:w,getExportName:I,getDeclarationName:$,getNamespaceMemberName:se,getExternalModuleOrNamespaceExportName:Z,restoreOuterExpressions:Qc,restoreEnclosingLabel:Qs,createUseStrictPrologue:je,copyPrologue:ee,copyStandardPrologue:Re,copyCustomPrologue:Ae,ensureUseStrict:Yt,liftToBlock:hn,mergeLexicalEnvironment:pr,replaceModifiers:Rn,replaceDecoratorsAndModifiers:Gr,replacePropertyName:mp};return qn(Vb,n=>n(ye)),ye;function fe(n,i){if(n===void 0||n===bt)n=[];else if(yi(n)){if(i===void 0||n.hasTrailingComma===i)return n.transformFlags===void 0&&Qd(n),B.attachNodeArrayDebugInfo(n),n;let f=n.slice();return f.pos=n.pos,f.end=n.end,f.hasTrailingComma=i,f.transformFlags=n.transformFlags,B.attachNodeArrayDebugInfo(f),f}let s=n.length,l=s>=1&&s<=4?n.slice():n;return l.pos=-1,l.end=-1,l.hasTrailingComma=!!i,l.transformFlags=0,Qd(l),B.attachNodeArrayDebugInfo(l),l}function M(n){return t.createBaseNode(n)}function ie(n){let i=M(n);return i.symbol=void 0,i.localSymbol=void 0,i}function Ce(n,i){return n!==i&&(n.typeArguments=i.typeArguments),q(n,i)}function V(n,i=0){let s=typeof n=="number"?n+"":n;B.assert(s.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let l=ie(9);return l.text=s,l.numericLiteralFlags=i,i&384&&(l.transformFlags|=1024),l}function oe(n){let i=$t(10);return i.text=typeof n=="string"?n:Lb(n)+"n",i.transformFlags|=32,i}function G(n,i){let s=ie(11);return s.text=n,s.singleQuote=i,s}function dt(n,i,s){let l=G(n,i);return l.hasExtendedUnicodeEscape=s,s&&(l.transformFlags|=1024),l}function rr(n){let i=G(Q2(n),void 0);return i.textSourceNode=n,i}function vn(n){let i=$t(14);return i.text=n,i}function ir(n,i){switch(n){case 9:return V(i,0);case 10:return oe(i);case 11:return dt(i,void 0);case 12:return ka(i,!1);case 13:return ka(i,!0);case 14:return vn(i);case 15:return si(n,i,void 0,0)}}function Tn(n){let i=t.createBaseIdentifierNode(80);return i.escapedText=n,i.jsDoc=void 0,i.flowNode=void 0,i.symbol=void 0,i}function Mn(n,i,s,l){let f=Tn(ja(n));return setIdentifierAutoGenerate(f,{flags:i,id:sl,prefix:s,suffix:l}),sl++,f}function Ge(n,i,s){i===void 0&&n&&(i=Gm(n)),i===80&&(i=void 0);let l=Tn(ja(n));return s&&(l.flags|=256),l.escapedText==="await"&&(l.transformFlags|=67108864),l.flags&256&&(l.transformFlags|=1024),l}function ar(n,i,s,l){let f=1;i&&(f|=8);let S=Mn("",f,s,l);return n&&n(S),S}function Or(n){let i=2;return n&&(i|=8),Mn("",i,void 0,void 0)}function Mt(n,i=0,s,l){return B.assert(!(i&7),"Argument out of range: flags"),B.assert((i&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Mn(n,3|i,s,l)}function Fn(n,i=0,s,l){B.assert(!(i&7),"Argument out of range: flags");let f=n?Rp(n)?Wp(!1,s,n,l,In):`generated@${getNodeId(n)}`:"";(s||l)&&(i|=16);let S=Mn(f,4|i,s,l);return S.original=n,S}function Ln(n){let i=t.createBasePrivateIdentifierNode(81);return i.escapedText=n,i.transformFlags|=16777216,i}function Lt(n){return dl(n,"#")||B.fail("First character of private identifier must be #: "+n),Ln(ja(n))}function vt(n,i,s,l){let f=Ln(ja(n));return setIdentifierAutoGenerate(f,{flags:i,id:sl,prefix:s,suffix:l}),sl++,f}function Qe(n,i,s){n&&!dl(n,"#")&&B.fail("First character of private identifier must be #: "+n);let l=8|(n?3:1);return vt(n??"",l,i,s)}function zn(n,i,s){let l=Rp(n)?Wp(!0,i,n,s,In):`#generated@${getNodeId(n)}`,S=vt(l,4|(i||s?16:0),i,s);return S.original=n,S}function $t(n){return t.createBaseTokenNode(n)}function ct(n){B.assert(n>=0&&n<=165,"Invalid token"),B.assert(n<=15||n>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),B.assert(n<=9||n>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),B.assert(n!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let i=$t(n),s=0;switch(n){case 134:s=384;break;case 160:s=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:s=1;break;case 108:s=134218752,i.flowNode=void 0;break;case 126:s=1024;break;case 129:s=16777216;break;case 110:s=16384,i.flowNode=void 0;break}return s&&(i.transformFlags|=s),i}function at(){return ct(108)}function Ut(){return ct(110)}function Jt(){return ct(106)}function lt(){return ct(112)}function sr(){return ct(97)}function mt(n){return ct(n)}function xn(n){let i=[];return n&32&&i.push(mt(95)),n&128&&i.push(mt(138)),n&2048&&i.push(mt(90)),n&4096&&i.push(mt(87)),n&1&&i.push(mt(125)),n&2&&i.push(mt(123)),n&4&&i.push(mt(124)),n&64&&i.push(mt(128)),n&256&&i.push(mt(126)),n&16&&i.push(mt(164)),n&8&&i.push(mt(148)),n&512&&i.push(mt(129)),n&1024&&i.push(mt(134)),n&8192&&i.push(mt(103)),n&16384&&i.push(mt(147)),i.length?i:void 0}function yt(n,i){let s=M(166);return s.left=n,s.right=tt(i),s.transformFlags|=F(s.left)|Ua(s.right),s.flowNode=void 0,s}function ln(n,i,s){return n.left!==i||n.right!==s?q(yt(i,s),n):n}function nt(n){let i=M(167);return i.expression=o().parenthesizeExpressionOfComputedPropertyName(n),i.transformFlags|=F(i.expression)|1024|131072,i}function Bt(n,i){return n.expression!==i?q(nt(i),n):n}function an(n,i,s,l){let f=ie(168);return f.modifiers=Pe(n),f.name=tt(i),f.constraint=s,f.default=l,f.transformFlags=1,f.expression=void 0,f.jsDoc=void 0,f}function _r(n,i,s,l,f){return n.modifiers!==i||n.name!==s||n.constraint!==l||n.default!==f?q(an(i,s,l,f),n):n}function hr(n,i,s,l,f,S){let z=ie(169);return z.modifiers=Pe(n),z.dotDotDotToken=i,z.name=tt(s),z.questionToken=l,z.type=f,z.initializer=Na(S),Z2(z.name)?z.transformFlags=1:z.transformFlags=ke(z.modifiers)|F(z.dotDotDotToken)|Un(z.name)|F(z.questionToken)|F(z.initializer)|(z.questionToken??z.type?1:0)|(z.dotDotDotToken??z.initializer?1024:0)|(Bn(z.modifiers)&31?8192:0),z.jsDoc=void 0,z}function yr(n,i,s,l,f,S,z){return n.modifiers!==i||n.dotDotDotToken!==s||n.name!==l||n.questionToken!==f||n.type!==S||n.initializer!==z?q(hr(i,s,l,f,S,z),n):n}function Vn(n){let i=M(170);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=F(i.expression)|1|8192|33554432,i}function Wn(n,i){return n.expression!==i?q(Vn(i),n):n}function Mr(n,i,s,l){let f=ie(171);return f.modifiers=Pe(n),f.name=tt(i),f.type=l,f.questionToken=s,f.transformFlags=1,f.initializer=void 0,f.jsDoc=void 0,f}function Gn(n,i,s,l,f){return n.modifiers!==i||n.name!==s||n.questionToken!==l||n.type!==f?De(Mr(i,s,l,f),n):n}function De(n,i){return n!==i&&(n.initializer=i.initializer),q(n,i)}function gr(n,i,s,l,f){let S=ie(172);S.modifiers=Pe(n),S.name=tt(i),S.questionToken=s&&Zd(s)?s:void 0,S.exclamationToken=s&&Kd(s)?s:void 0,S.type=l,S.initializer=Na(f);let z=S.flags&33554432||Bn(S.modifiers)&128;return S.transformFlags=ke(S.modifiers)|Un(S.name)|F(S.initializer)|(z||S.questionToken||S.exclamationToken||S.type?1:0)|(kf(S.name)||Bn(S.modifiers)&256&&S.initializer?8192:0)|16777216,S.jsDoc=void 0,S}function J(n,i,s,l,f,S){return n.modifiers!==i||n.name!==s||n.questionToken!==(l!==void 0&&Zd(l)?l:void 0)||n.exclamationToken!==(l!==void 0&&Kd(l)?l:void 0)||n.type!==f||n.initializer!==S?q(gr(i,s,l,f,S),n):n}function _e(n,i,s,l,f,S){let z=ie(173);return z.modifiers=Pe(n),z.name=tt(i),z.questionToken=s,z.typeParameters=Pe(l),z.parameters=Pe(f),z.type=S,z.transformFlags=1,z.jsDoc=void 0,z.locals=void 0,z.nextContainer=void 0,z.typeArguments=void 0,z}function me(n,i,s,l,f,S,z){return n.modifiers!==i||n.name!==s||n.questionToken!==l||n.typeParameters!==f||n.parameters!==S||n.type!==z?Ce(_e(i,s,l,f,S,z),n):n}function Te(n,i,s,l,f,S,z,de){let Ue=ie(174);if(Ue.modifiers=Pe(n),Ue.asteriskToken=i,Ue.name=tt(s),Ue.questionToken=l,Ue.exclamationToken=void 0,Ue.typeParameters=Pe(f),Ue.parameters=fe(S),Ue.type=z,Ue.body=de,!Ue.body)Ue.transformFlags=1;else{let en=Bn(Ue.modifiers)&1024,An=!!Ue.asteriskToken,Kn=en&&An;Ue.transformFlags=ke(Ue.modifiers)|F(Ue.asteriskToken)|Un(Ue.name)|F(Ue.questionToken)|ke(Ue.typeParameters)|ke(Ue.parameters)|F(Ue.type)|F(Ue.body)&-67108865|(Kn?128:en?256:An?2048:0)|(Ue.questionToken||Ue.typeParameters||Ue.type?1:0)|1024}return Ue.typeArguments=void 0,Ue.jsDoc=void 0,Ue.locals=void 0,Ue.nextContainer=void 0,Ue.flowNode=void 0,Ue.endFlowNode=void 0,Ue.returnFlowNode=void 0,Ue}function Xe(n,i,s,l,f,S,z,de,Ue){return n.modifiers!==i||n.asteriskToken!==s||n.name!==l||n.questionToken!==f||n.typeParameters!==S||n.parameters!==z||n.type!==de||n.body!==Ue?Ke(Te(i,s,l,f,S,z,de,Ue),n):n}function Ke(n,i){return n!==i&&(n.exclamationToken=i.exclamationToken),q(n,i)}function st(n){let i=ie(175);return i.body=n,i.transformFlags=F(n)|16777216,i.modifiers=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function Pt(n,i){return n.body!==i?Tt(st(i),n):n}function Tt(n,i){return n!==i&&(n.modifiers=i.modifiers),q(n,i)}function ut(n,i,s){let l=ie(176);return l.modifiers=Pe(n),l.parameters=fe(i),l.body=s,l.body?l.transformFlags=ke(l.modifiers)|ke(l.parameters)|F(l.body)&-67108865|1024:l.transformFlags=1,l.typeParameters=void 0,l.type=void 0,l.typeArguments=void 0,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.endFlowNode=void 0,l.returnFlowNode=void 0,l}function Lr(n,i,s,l){return n.modifiers!==i||n.parameters!==s||n.body!==l?br(ut(i,s,l),n):n}function br(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Ce(n,i)}function Jn(n,i,s,l,f){let S=ie(177);return S.modifiers=Pe(n),S.name=tt(i),S.parameters=fe(s),S.type=l,S.body=f,S.body?S.transformFlags=ke(S.modifiers)|Un(S.name)|ke(S.parameters)|F(S.type)|F(S.body)&-67108865|(S.type?1:0):S.transformFlags=1,S.typeArguments=void 0,S.typeParameters=void 0,S.jsDoc=void 0,S.locals=void 0,S.nextContainer=void 0,S.flowNode=void 0,S.endFlowNode=void 0,S.returnFlowNode=void 0,S}function Yn(n,i,s,l,f,S){return n.modifiers!==i||n.name!==s||n.parameters!==l||n.type!==f||n.body!==S?Ei(Jn(i,s,l,f,S),n):n}function Ei(n,i){return n!==i&&(n.typeParameters=i.typeParameters),Ce(n,i)}function R(n,i,s,l){let f=ie(178);return f.modifiers=Pe(n),f.name=tt(i),f.parameters=fe(s),f.body=l,f.body?f.transformFlags=ke(f.modifiers)|Un(f.name)|ke(f.parameters)|F(f.body)&-67108865|(f.type?1:0):f.transformFlags=1,f.typeArguments=void 0,f.typeParameters=void 0,f.type=void 0,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f.endFlowNode=void 0,f.returnFlowNode=void 0,f}function Q(n,i,s,l,f){return n.modifiers!==i||n.name!==s||n.parameters!==l||n.body!==f?K(R(i,s,l,f),n):n}function K(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Ce(n,i)}function xe(n,i,s){let l=ie(179);return l.typeParameters=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function Se(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?Ce(xe(i,s,l),n):n}function we(n,i,s){let l=ie(180);return l.typeParameters=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function be(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?Ce(we(i,s,l),n):n}function We(n,i,s){let l=ie(181);return l.modifiers=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function et(n,i,s,l){return n.parameters!==s||n.type!==l||n.modifiers!==i?Ce(We(i,s,l),n):n}function Ye(n,i){let s=M(204);return s.type=n,s.literal=i,s.transformFlags=1,s}function Ee(n,i,s){return n.type!==i||n.literal!==s?q(Ye(i,s),n):n}function Sn(n){return ct(n)}function rt(n,i,s){let l=M(182);return l.assertsModifier=n,l.parameterName=tt(i),l.type=s,l.transformFlags=1,l}function un(n,i,s,l){return n.assertsModifier!==i||n.parameterName!==s||n.type!==l?q(rt(i,s,l),n):n}function ti(n,i){let s=M(183);return s.typeName=tt(n),s.typeArguments=i&&o().parenthesizeTypeArguments(fe(i)),s.transformFlags=1,s}function L(n,i,s){return n.typeName!==i||n.typeArguments!==s?q(ti(i,s),n):n}function qe(n,i,s){let l=ie(184);return l.typeParameters=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.modifiers=void 0,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function u(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?Oe(qe(i,s,l),n):n}function Oe(n,i){return n!==i&&(n.modifiers=i.modifiers),Ce(n,i)}function Me(...n){return n.length===4?U(...n):n.length===3?Fe(...n):B.fail("Incorrect number of arguments specified.")}function U(n,i,s,l){let f=ie(185);return f.modifiers=Pe(n),f.typeParameters=Pe(i),f.parameters=Pe(s),f.type=l,f.transformFlags=1,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.typeArguments=void 0,f}function Fe(n,i,s){return U(void 0,n,i,s)}function sn(...n){return n.length===5?Ve(...n):n.length===4?$e(...n):B.fail("Incorrect number of arguments specified.")}function Ve(n,i,s,l,f){return n.modifiers!==i||n.typeParameters!==s||n.parameters!==l||n.type!==f?Ce(Me(i,s,l,f),n):n}function $e(n,i,s,l){return Ve(n,n.modifiers,i,s,l)}function Nt(n,i){let s=M(186);return s.exprName=n,s.typeArguments=i&&o().parenthesizeTypeArguments(i),s.transformFlags=1,s}function kt(n,i,s){return n.exprName!==i||n.typeArguments!==s?q(Nt(i,s),n):n}function It(n){let i=ie(187);return i.members=fe(n),i.transformFlags=1,i}function qt(n,i){return n.members!==i?q(It(i),n):n}function Hn(n){let i=M(188);return i.elementType=o().parenthesizeNonArrayTypeOfPostfixType(n),i.transformFlags=1,i}function Ai(n,i){return n.elementType!==i?q(Hn(i),n):n}function pn(n){let i=M(189);return i.elements=fe(o().parenthesizeElementTypesOfTupleType(n)),i.transformFlags=1,i}function Y(n,i){return n.elements!==i?q(pn(i),n):n}function pe(n,i,s,l){let f=ie(202);return f.dotDotDotToken=n,f.name=i,f.questionToken=s,f.type=l,f.transformFlags=1,f.jsDoc=void 0,f}function ze(n,i,s,l,f){return n.dotDotDotToken!==i||n.name!==s||n.questionToken!==l||n.type!==f?q(pe(i,s,l,f),n):n}function ve(n){let i=M(190);return i.type=o().parenthesizeTypeOfOptionalType(n),i.transformFlags=1,i}function j(n,i){return n.type!==i?q(ve(i),n):n}function ht(n){let i=M(191);return i.type=n,i.transformFlags=1,i}function xt(n,i){return n.type!==i?q(ht(i),n):n}function jt(n,i,s){let l=M(n);return l.types=ye.createNodeArray(s(i)),l.transformFlags=1,l}function fn(n,i,s){return n.types!==i?q(jt(n.kind,i,s),n):n}function Bl(n){return jt(192,n,o().parenthesizeConstituentTypesOfUnionType)}function D_(n,i){return fn(n,i,o().parenthesizeConstituentTypesOfUnionType)}function Jr(n){return jt(193,n,o().parenthesizeConstituentTypesOfIntersectionType)}function Le(n,i){return fn(n,i,o().parenthesizeConstituentTypesOfIntersectionType)}function ft(n,i,s,l){let f=M(194);return f.checkType=o().parenthesizeCheckTypeOfConditionalType(n),f.extendsType=o().parenthesizeExtendsTypeOfConditionalType(i),f.trueType=s,f.falseType=l,f.transformFlags=1,f.locals=void 0,f.nextContainer=void 0,f}function ql(n,i,s,l,f){return n.checkType!==i||n.extendsType!==s||n.trueType!==l||n.falseType!==f?q(ft(i,s,l,f),n):n}function Xn(n){let i=M(195);return i.typeParameter=n,i.transformFlags=1,i}function Fl(n,i){return n.typeParameter!==i?q(Xn(i),n):n}function Wt(n,i){let s=M(203);return s.head=n,s.templateSpans=fe(i),s.transformFlags=1,s}function zl(n,i,s){return n.head!==i||n.templateSpans!==s?q(Wt(i,s),n):n}function or(n,i,s,l,f=!1){let S=M(205);return S.argument=n,S.attributes=i,S.assertions&&S.assertions.assertClause&&S.attributes&&(S.assertions.assertClause=S.attributes),S.qualifier=s,S.typeArguments=l&&o().parenthesizeTypeArguments(l),S.isTypeOf=f,S.transformFlags=1,S}function _a(n,i,s,l,f,S=n.isTypeOf){return n.argument!==i||n.attributes!==s||n.qualifier!==l||n.typeArguments!==f||n.isTypeOf!==S?q(or(i,s,l,f,S),n):n}function Qt(n){let i=M(196);return i.type=n,i.transformFlags=1,i}function Ct(n,i){return n.type!==i?q(Qt(i),n):n}function P(){let n=M(197);return n.transformFlags=1,n}function Gt(n,i){let s=M(198);return s.operator=n,s.type=n===148?o().parenthesizeOperandOfReadonlyTypeOperator(i):o().parenthesizeOperandOfTypeOperator(i),s.transformFlags=1,s}function jr(n,i){return n.type!==i?q(Gt(n.operator,i),n):n}function cr(n,i){let s=M(199);return s.objectType=o().parenthesizeNonArrayTypeOfPostfixType(n),s.indexType=i,s.transformFlags=1,s}function es(n,i,s){return n.objectType!==i||n.indexType!==s?q(cr(i,s),n):n}function St(n,i,s,l,f,S){let z=ie(200);return z.readonlyToken=n,z.typeParameter=i,z.nameType=s,z.questionToken=l,z.type=f,z.members=S&&fe(S),z.transformFlags=1,z.locals=void 0,z.nextContainer=void 0,z}function Rt(n,i,s,l,f,S,z){return n.readonlyToken!==i||n.typeParameter!==s||n.nameType!==l||n.questionToken!==f||n.type!==S||n.members!==z?q(St(i,s,l,f,S,z),n):n}function ni(n){let i=M(201);return i.literal=n,i.transformFlags=1,i}function vr(n,i){return n.literal!==i?q(ni(i),n):n}function P_(n){let i=M(206);return i.elements=fe(n),i.transformFlags|=ke(i.elements)|1024|524288,i.transformFlags&32768&&(i.transformFlags|=65664),i}function Vl(n,i){return n.elements!==i?q(P_(i),n):n}function Rr(n){let i=M(207);return i.elements=fe(n),i.transformFlags|=ke(i.elements)|1024|524288,i}function Wl(n,i){return n.elements!==i?q(Rr(i),n):n}function oa(n,i,s,l){let f=ie(208);return f.dotDotDotToken=n,f.propertyName=tt(i),f.name=tt(s),f.initializer=Na(l),f.transformFlags|=F(f.dotDotDotToken)|Un(f.propertyName)|Un(f.name)|F(f.initializer)|(f.dotDotDotToken?32768:0)|1024,f.flowNode=void 0,f}function ri(n,i,s,l,f){return n.propertyName!==s||n.dotDotDotToken!==i||n.name!==l||n.initializer!==f?q(oa(i,s,l,f),n):n}function ts(n,i){let s=M(209),l=n&&Fa(n),f=fe(n,l&&Z1(l)?!0:void 0);return s.elements=o().parenthesizeExpressionsOfCommaDelimitedList(f),s.multiLine=i,s.transformFlags|=ke(s.elements),s}function N_(n,i){return n.elements!==i?q(ts(i,n.multiLine),n):n}function Ci(n,i){let s=ie(210);return s.properties=fe(n),s.multiLine=i,s.transformFlags|=ke(s.properties),s.jsDoc=void 0,s}function Gl(n,i){return n.properties!==i?q(Ci(i,n.multiLine),n):n}function I_(n,i,s){let l=ie(211);return l.expression=n,l.questionDotToken=i,l.name=s,l.transformFlags=F(l.expression)|F(l.questionDotToken)|(Ze(l.name)?Ua(l.name):F(l.name)|536870912),l.jsDoc=void 0,l.flowNode=void 0,l}function lr(n,i){let s=I_(o().parenthesizeLeftSideOfAccess(n,!1),void 0,tt(i));return Cp(n)&&(s.transformFlags|=384),s}function Yl(n,i,s){return Yg(n)?ca(n,i,n.questionDotToken,Cr(s,Ze)):n.expression!==i||n.name!==s?q(lr(i,s),n):n}function Di(n,i,s){let l=I_(o().parenthesizeLeftSideOfAccess(n,!0),i,tt(s));return l.flags|=64,l.transformFlags|=32,l}function ca(n,i,s,l){return B.assert(!!(n.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==i||n.questionDotToken!==s||n.name!==l?q(Di(i,s,l),n):n}function O_(n,i,s){let l=ie(212);return l.expression=n,l.questionDotToken=i,l.argumentExpression=s,l.transformFlags|=F(l.expression)|F(l.questionDotToken)|F(l.argumentExpression),l.jsDoc=void 0,l.flowNode=void 0,l}function Pi(n,i){let s=O_(o().parenthesizeLeftSideOfAccess(n,!1),void 0,fr(i));return Cp(n)&&(s.transformFlags|=384),s}function Hl(n,i,s){return Hg(n)?ns(n,i,n.questionDotToken,s):n.expression!==i||n.argumentExpression!==s?q(Pi(i,s),n):n}function M_(n,i,s){let l=O_(o().parenthesizeLeftSideOfAccess(n,!0),i,fr(s));return l.flags|=64,l.transformFlags|=32,l}function ns(n,i,s,l){return B.assert(!!(n.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==i||n.questionDotToken!==s||n.argumentExpression!==l?q(M_(i,s,l),n):n}function L_(n,i,s,l){let f=ie(213);return f.expression=n,f.questionDotToken=i,f.typeArguments=s,f.arguments=l,f.transformFlags|=F(f.expression)|F(f.questionDotToken)|ke(f.typeArguments)|ke(f.arguments),f.typeArguments&&(f.transformFlags|=1),Vd(f.expression)&&(f.transformFlags|=16384),f}function Ni(n,i,s){let l=L_(o().parenthesizeLeftSideOfAccess(n,!1),void 0,Pe(i),o().parenthesizeExpressionsOfCommaDelimitedList(fe(s)));return e6(l.expression)&&(l.transformFlags|=8388608),l}function la(n,i,s,l){return jd(n)?J_(n,i,n.questionDotToken,s,l):n.expression!==i||n.typeArguments!==s||n.arguments!==l?q(Ni(i,s,l),n):n}function rs(n,i,s,l){let f=L_(o().parenthesizeLeftSideOfAccess(n,!0),i,Pe(s),o().parenthesizeExpressionsOfCommaDelimitedList(fe(l)));return f.flags|=64,f.transformFlags|=32,f}function J_(n,i,s,l,f){return B.assert(!!(n.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==i||n.questionDotToken!==s||n.typeArguments!==l||n.arguments!==f?q(rs(i,s,l,f),n):n}function wn(n,i,s){let l=ie(214);return l.expression=o().parenthesizeExpressionOfNew(n),l.typeArguments=Pe(i),l.arguments=s?o().parenthesizeExpressionsOfCommaDelimitedList(s):void 0,l.transformFlags|=F(l.expression)|ke(l.typeArguments)|ke(l.arguments)|32,l.typeArguments&&(l.transformFlags|=1),l}function is(n,i,s,l){return n.expression!==i||n.typeArguments!==s||n.arguments!==l?q(wn(i,s,l),n):n}function ua(n,i,s){let l=M(215);return l.tag=o().parenthesizeLeftSideOfAccess(n,!1),l.typeArguments=Pe(i),l.template=s,l.transformFlags|=F(l.tag)|ke(l.typeArguments)|F(l.template)|1024,l.typeArguments&&(l.transformFlags|=1),K2(l.template)&&(l.transformFlags|=128),l}function j_(n,i,s,l){return n.tag!==i||n.typeArguments!==s||n.template!==l?q(ua(i,s,l),n):n}function R_(n,i){let s=M(216);return s.expression=o().parenthesizeOperandOfPrefixUnary(i),s.type=n,s.transformFlags|=F(s.expression)|F(s.type)|1,s}function U_(n,i,s){return n.type!==i||n.expression!==s?q(R_(i,s),n):n}function as(n){let i=M(217);return i.expression=n,i.transformFlags=F(i.expression),i.jsDoc=void 0,i}function B_(n,i){return n.expression!==i?q(as(i),n):n}function ss(n,i,s,l,f,S,z){let de=ie(218);de.modifiers=Pe(n),de.asteriskToken=i,de.name=tt(s),de.typeParameters=Pe(l),de.parameters=fe(f),de.type=S,de.body=z;let Ue=Bn(de.modifiers)&1024,en=!!de.asteriskToken,An=Ue&&en;return de.transformFlags=ke(de.modifiers)|F(de.asteriskToken)|Un(de.name)|ke(de.typeParameters)|ke(de.parameters)|F(de.type)|F(de.body)&-67108865|(An?128:Ue?256:en?2048:0)|(de.typeParameters||de.type?1:0)|4194304,de.typeArguments=void 0,de.jsDoc=void 0,de.locals=void 0,de.nextContainer=void 0,de.flowNode=void 0,de.endFlowNode=void 0,de.returnFlowNode=void 0,de}function q_(n,i,s,l,f,S,z,de){return n.name!==l||n.modifiers!==i||n.asteriskToken!==s||n.typeParameters!==f||n.parameters!==S||n.type!==z||n.body!==de?Ce(ss(i,s,l,f,S,z,de),n):n}function _s(n,i,s,l,f,S){let z=ie(219);z.modifiers=Pe(n),z.typeParameters=Pe(i),z.parameters=fe(s),z.type=l,z.equalsGreaterThanToken=f??ct(39),z.body=o().parenthesizeConciseBodyOfArrowFunction(S);let de=Bn(z.modifiers)&1024;return z.transformFlags=ke(z.modifiers)|ke(z.typeParameters)|ke(z.parameters)|F(z.type)|F(z.equalsGreaterThanToken)|F(z.body)&-67108865|(z.typeParameters||z.type?1:0)|(de?16640:0)|1024,z.typeArguments=void 0,z.jsDoc=void 0,z.locals=void 0,z.nextContainer=void 0,z.flowNode=void 0,z.endFlowNode=void 0,z.returnFlowNode=void 0,z}function F_(n,i,s,l,f,S,z){return n.modifiers!==i||n.typeParameters!==s||n.parameters!==l||n.type!==f||n.equalsGreaterThanToken!==S||n.body!==z?Ce(_s(i,s,l,f,S,z),n):n}function z_(n){let i=M(220);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression),i}function V_(n,i){return n.expression!==i?q(z_(i),n):n}function pa(n){let i=M(221);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression),i}function dn(n,i){return n.expression!==i?q(pa(i),n):n}function os(n){let i=M(222);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression),i}function ur(n,i){return n.expression!==i?q(os(i),n):n}function W_(n){let i=M(223);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression)|256|128|2097152,i}function Ur(n,i){return n.expression!==i?q(W_(i),n):n}function Br(n,i){let s=M(224);return s.operator=n,s.operand=o().parenthesizeOperandOfPrefixUnary(i),s.transformFlags|=F(s.operand),(n===46||n===47)&&Ze(s.operand)&&!qa(s.operand)&&!tm(s.operand)&&(s.transformFlags|=268435456),s}function Xl(n,i){return n.operand!==i?q(Br(n.operator,i),n):n}function ii(n,i){let s=M(225);return s.operator=i,s.operand=o().parenthesizeOperandOfPostfixUnary(n),s.transformFlags|=F(s.operand),Ze(s.operand)&&!qa(s.operand)&&!tm(s.operand)&&(s.transformFlags|=268435456),s}function $l(n,i){return n.operand!==i?q(ii(i,n.operator),n):n}function fa(n,i,s){let l=ie(226),f=Zc(i),S=f.kind;return l.left=o().parenthesizeLeftSideOfBinary(S,n),l.operatorToken=f,l.right=o().parenthesizeRightSideOfBinary(S,l.left,s),l.transformFlags|=F(l.left)|F(l.operatorToken)|F(l.right),S===61?l.transformFlags|=32:S===64?If(l.left)?l.transformFlags|=5248|G_(l.left):X1(l.left)&&(l.transformFlags|=5120|G_(l.left)):S===43||S===68?l.transformFlags|=512:cb(S)&&(l.transformFlags|=16),S===103&&vi(l.left)&&(l.transformFlags|=536870912),l.jsDoc=void 0,l}function G_(n){return mh(n)?65536:0}function Ql(n,i,s,l){return n.left!==i||n.operatorToken!==s||n.right!==l?q(fa(i,s,l),n):n}function Y_(n,i,s,l,f){let S=M(227);return S.condition=o().parenthesizeConditionOfConditionalExpression(n),S.questionToken=i??ct(58),S.whenTrue=o().parenthesizeBranchOfConditionalExpression(s),S.colonToken=l??ct(59),S.whenFalse=o().parenthesizeBranchOfConditionalExpression(f),S.transformFlags|=F(S.condition)|F(S.questionToken)|F(S.whenTrue)|F(S.colonToken)|F(S.whenFalse),S.flowNodeWhenFalse=void 0,S.flowNodeWhenTrue=void 0,S}function H_(n,i,s,l,f,S){return n.condition!==i||n.questionToken!==s||n.whenTrue!==l||n.colonToken!==f||n.whenFalse!==S?q(Y_(i,s,l,f,S),n):n}function X_(n,i){let s=M(228);return s.head=n,s.templateSpans=fe(i),s.transformFlags|=F(s.head)|ke(s.templateSpans)|1024,s}function $n(n,i,s){return n.head!==i||n.templateSpans!==s?q(X_(i,s),n):n}function Ii(n,i,s,l=0){B.assert(!(l&-7177),"Unsupported template flags.");let f;if(s!==void 0&&s!==i&&(f=Wb(n,s),typeof f=="object"))return B.fail("Invalid raw text");if(i===void 0){if(f===void 0)return B.fail("Arguments 'text' and 'rawText' may not both be undefined.");i=f}else f!==void 0&&B.assert(i===f,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return i}function $_(n){let i=1024;return n&&(i|=128),i}function Kl(n,i,s,l){let f=$t(n);return f.text=i,f.rawText=s,f.templateFlags=l&7176,f.transformFlags=$_(f.templateFlags),f}function ai(n,i,s,l){let f=ie(n);return f.text=i,f.rawText=s,f.templateFlags=l&7176,f.transformFlags=$_(f.templateFlags),f}function si(n,i,s,l){return n===15?ai(n,i,s,l):Kl(n,i,s,l)}function Q_(n,i,s){return n=Ii(16,n,i,s),si(16,n,i,s)}function da(n,i,s){return n=Ii(16,n,i,s),si(17,n,i,s)}function cs(n,i,s){return n=Ii(16,n,i,s),si(18,n,i,s)}function Zl(n,i,s){return n=Ii(16,n,i,s),ai(15,n,i,s)}function ls(n,i){B.assert(!n||!!i,"A `YieldExpression` with an asteriskToken must have an expression.");let s=M(229);return s.expression=i&&o().parenthesizeExpressionForDisallowedComma(i),s.asteriskToken=n,s.transformFlags|=F(s.expression)|F(s.asteriskToken)|1024|128|1048576,s}function eu(n,i,s){return n.expression!==s||n.asteriskToken!==i?q(ls(i,s),n):n}function K_(n){let i=M(230);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=F(i.expression)|1024|32768,i}function tu(n,i){return n.expression!==i?q(K_(i),n):n}function Z_(n,i,s,l,f){let S=ie(231);return S.modifiers=Pe(n),S.name=tt(i),S.typeParameters=Pe(s),S.heritageClauses=Pe(l),S.members=fe(f),S.transformFlags|=ke(S.modifiers)|Un(S.name)|ke(S.typeParameters)|ke(S.heritageClauses)|ke(S.members)|(S.typeParameters?1:0)|1024,S.jsDoc=void 0,S}function us(n,i,s,l,f,S){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.heritageClauses!==f||n.members!==S?q(Z_(i,s,l,f,S),n):n}function ps(){return M(232)}function eo(n,i){let s=M(233);return s.expression=o().parenthesizeLeftSideOfAccess(n,!1),s.typeArguments=i&&o().parenthesizeTypeArguments(i),s.transformFlags|=F(s.expression)|ke(s.typeArguments)|1024,s}function to(n,i,s){return n.expression!==i||n.typeArguments!==s?q(eo(i,s),n):n}function mn(n,i){let s=M(234);return s.expression=n,s.type=i,s.transformFlags|=F(s.expression)|F(s.type)|1,s}function ma(n,i,s){return n.expression!==i||n.type!==s?q(mn(i,s),n):n}function no(n){let i=M(235);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=F(i.expression)|1,i}function ro(n,i){return Xg(n)?jn(n,i):n.expression!==i?q(no(i),n):n}function fs(n,i){let s=M(238);return s.expression=n,s.type=i,s.transformFlags|=F(s.expression)|F(s.type)|1,s}function io(n,i,s){return n.expression!==i||n.type!==s?q(fs(i,s),n):n}function ds(n){let i=M(235);return i.flags|=64,i.expression=o().parenthesizeLeftSideOfAccess(n,!0),i.transformFlags|=F(i.expression)|1,i}function jn(n,i){return B.assert(!!(n.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==i?q(ds(i),n):n}function ao(n,i){let s=M(236);switch(s.keywordToken=n,s.name=i,s.transformFlags|=F(s.name),n){case 105:s.transformFlags|=1024;break;case 102:s.transformFlags|=32;break;default:return B.assertNever(n)}return s.flowNode=void 0,s}function ms(n,i){return n.name!==i?q(ao(n.keywordToken,i),n):n}function Qn(n,i){let s=M(239);return s.expression=n,s.literal=i,s.transformFlags|=F(s.expression)|F(s.literal)|1024,s}function ha(n,i,s){return n.expression!==i||n.literal!==s?q(Qn(i,s),n):n}function so(){let n=M(240);return n.transformFlags|=1024,n}function qr(n,i){let s=M(241);return s.statements=fe(n),s.multiLine=i,s.transformFlags|=ke(s.statements),s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s}function nu(n,i){return n.statements!==i?q(qr(i,n.multiLine),n):n}function hs(n,i){let s=M(243);return s.modifiers=Pe(n),s.declarationList=Qr(i)?xs(i):i,s.transformFlags|=ke(s.modifiers)|F(s.declarationList),Bn(s.modifiers)&128&&(s.transformFlags=1),s.jsDoc=void 0,s.flowNode=void 0,s}function _o(n,i,s){return n.modifiers!==i||n.declarationList!==s?q(hs(i,s),n):n}function oo(){let n=M(242);return n.jsDoc=void 0,n}function Oi(n){let i=M(244);return i.expression=o().parenthesizeExpressionOfExpressionStatement(n),i.transformFlags|=F(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function co(n,i){return n.expression!==i?q(Oi(i),n):n}function lo(n,i,s){let l=M(245);return l.expression=n,l.thenStatement=Ot(i),l.elseStatement=Ot(s),l.transformFlags|=F(l.expression)|F(l.thenStatement)|F(l.elseStatement),l.jsDoc=void 0,l.flowNode=void 0,l}function uo(n,i,s,l){return n.expression!==i||n.thenStatement!==s||n.elseStatement!==l?q(lo(i,s,l),n):n}function po(n,i){let s=M(246);return s.statement=Ot(n),s.expression=i,s.transformFlags|=F(s.statement)|F(s.expression),s.jsDoc=void 0,s.flowNode=void 0,s}function fo(n,i,s){return n.statement!==i||n.expression!==s?q(po(i,s),n):n}function mo(n,i){let s=M(247);return s.expression=n,s.statement=Ot(i),s.transformFlags|=F(s.expression)|F(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function ru(n,i,s){return n.expression!==i||n.statement!==s?q(mo(i,s),n):n}function ho(n,i,s,l){let f=M(248);return f.initializer=n,f.condition=i,f.incrementor=s,f.statement=Ot(l),f.transformFlags|=F(f.initializer)|F(f.condition)|F(f.incrementor)|F(f.statement),f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f}function yo(n,i,s,l,f){return n.initializer!==i||n.condition!==s||n.incrementor!==l||n.statement!==f?q(ho(i,s,l,f),n):n}function ys(n,i,s){let l=M(249);return l.initializer=n,l.expression=i,l.statement=Ot(s),l.transformFlags|=F(l.initializer)|F(l.expression)|F(l.statement),l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.flowNode=void 0,l}function iu(n,i,s,l){return n.initializer!==i||n.expression!==s||n.statement!==l?q(ys(i,s,l),n):n}function go(n,i,s,l){let f=M(250);return f.awaitModifier=n,f.initializer=i,f.expression=o().parenthesizeExpressionForDisallowedComma(s),f.statement=Ot(l),f.transformFlags|=F(f.awaitModifier)|F(f.initializer)|F(f.expression)|F(f.statement)|1024,n&&(f.transformFlags|=128),f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f}function au(n,i,s,l,f){return n.awaitModifier!==i||n.initializer!==s||n.expression!==l||n.statement!==f?q(go(i,s,l,f),n):n}function bo(n){let i=M(251);return i.label=tt(n),i.transformFlags|=F(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function su(n,i){return n.label!==i?q(bo(i),n):n}function gs(n){let i=M(252);return i.label=tt(n),i.transformFlags|=F(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function vo(n,i){return n.label!==i?q(gs(i),n):n}function bs(n){let i=M(253);return i.expression=n,i.transformFlags|=F(i.expression)|128|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function _u(n,i){return n.expression!==i?q(bs(i),n):n}function vs(n,i){let s=M(254);return s.expression=n,s.statement=Ot(i),s.transformFlags|=F(s.expression)|F(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function To(n,i,s){return n.expression!==i||n.statement!==s?q(vs(i,s),n):n}function Ts(n,i){let s=M(255);return s.expression=o().parenthesizeExpressionForDisallowedComma(n),s.caseBlock=i,s.transformFlags|=F(s.expression)|F(s.caseBlock),s.jsDoc=void 0,s.flowNode=void 0,s.possiblyExhaustive=!1,s}function _i(n,i,s){return n.expression!==i||n.caseBlock!==s?q(Ts(i,s),n):n}function xo(n,i){let s=M(256);return s.label=tt(n),s.statement=Ot(i),s.transformFlags|=F(s.label)|F(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function So(n,i,s){return n.label!==i||n.statement!==s?q(xo(i,s),n):n}function wo(n){let i=M(257);return i.expression=n,i.transformFlags|=F(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function ou(n,i){return n.expression!==i?q(wo(i),n):n}function ko(n,i,s){let l=M(258);return l.tryBlock=n,l.catchClause=i,l.finallyBlock=s,l.transformFlags|=F(l.tryBlock)|F(l.catchClause)|F(l.finallyBlock),l.jsDoc=void 0,l.flowNode=void 0,l}function cu(n,i,s,l){return n.tryBlock!==i||n.catchClause!==s||n.finallyBlock!==l?q(ko(i,s,l),n):n}function Eo(){let n=M(259);return n.jsDoc=void 0,n.flowNode=void 0,n}function ya(n,i,s,l){let f=ie(260);return f.name=tt(n),f.exclamationToken=i,f.type=s,f.initializer=Na(l),f.transformFlags|=Un(f.name)|F(f.initializer)|(f.exclamationToken??f.type?1:0),f.jsDoc=void 0,f}function Ao(n,i,s,l,f){return n.name!==i||n.type!==l||n.exclamationToken!==s||n.initializer!==f?q(ya(i,s,l,f),n):n}function xs(n,i=0){let s=M(261);return s.flags|=i&7,s.declarations=fe(n),s.transformFlags|=ke(s.declarations)|4194304,i&7&&(s.transformFlags|=263168),i&4&&(s.transformFlags|=4),s}function lu(n,i){return n.declarations!==i?q(xs(i,n.flags),n):n}function Co(n,i,s,l,f,S,z){let de=ie(262);if(de.modifiers=Pe(n),de.asteriskToken=i,de.name=tt(s),de.typeParameters=Pe(l),de.parameters=fe(f),de.type=S,de.body=z,!de.body||Bn(de.modifiers)&128)de.transformFlags=1;else{let Ue=Bn(de.modifiers)&1024,en=!!de.asteriskToken,An=Ue&&en;de.transformFlags=ke(de.modifiers)|F(de.asteriskToken)|Un(de.name)|ke(de.typeParameters)|ke(de.parameters)|F(de.type)|F(de.body)&-67108865|(An?128:Ue?256:en?2048:0)|(de.typeParameters||de.type?1:0)|4194304}return de.typeArguments=void 0,de.jsDoc=void 0,de.locals=void 0,de.nextContainer=void 0,de.endFlowNode=void 0,de.returnFlowNode=void 0,de}function Ss(n,i,s,l,f,S,z,de){return n.modifiers!==i||n.asteriskToken!==s||n.name!==l||n.typeParameters!==f||n.parameters!==S||n.type!==z||n.body!==de?uu(Co(i,s,l,f,S,z,de),n):n}function uu(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),Ce(n,i)}function Do(n,i,s,l,f){let S=ie(263);return S.modifiers=Pe(n),S.name=tt(i),S.typeParameters=Pe(s),S.heritageClauses=Pe(l),S.members=fe(f),Bn(S.modifiers)&128?S.transformFlags=1:(S.transformFlags|=ke(S.modifiers)|Un(S.name)|ke(S.typeParameters)|ke(S.heritageClauses)|ke(S.members)|(S.typeParameters?1:0)|1024,S.transformFlags&8192&&(S.transformFlags|=1)),S.jsDoc=void 0,S}function ga(n,i,s,l,f,S){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.heritageClauses!==f||n.members!==S?q(Do(i,s,l,f,S),n):n}function Po(n,i,s,l,f){let S=ie(264);return S.modifiers=Pe(n),S.name=tt(i),S.typeParameters=Pe(s),S.heritageClauses=Pe(l),S.members=fe(f),S.transformFlags=1,S.jsDoc=void 0,S}function No(n,i,s,l,f,S){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.heritageClauses!==f||n.members!==S?q(Po(i,s,l,f,S),n):n}function _t(n,i,s,l){let f=ie(265);return f.modifiers=Pe(n),f.name=tt(i),f.typeParameters=Pe(s),f.type=l,f.transformFlags=1,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f}function Tr(n,i,s,l,f){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.type!==f?q(_t(i,s,l,f),n):n}function ws(n,i,s){let l=ie(266);return l.modifiers=Pe(n),l.name=tt(i),l.members=fe(s),l.transformFlags|=ke(l.modifiers)|F(l.name)|ke(l.members)|1,l.transformFlags&=-67108865,l.jsDoc=void 0,l}function xr(n,i,s,l){return n.modifiers!==i||n.name!==s||n.members!==l?q(ws(i,s,l),n):n}function Io(n,i,s,l=0){let f=ie(267);return f.modifiers=Pe(n),f.flags|=l&2088,f.name=i,f.body=s,Bn(f.modifiers)&128?f.transformFlags=1:f.transformFlags|=ke(f.modifiers)|F(f.name)|F(f.body)|1,f.transformFlags&=-67108865,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f}function Et(n,i,s,l){return n.modifiers!==i||n.name!==s||n.body!==l?q(Io(i,s,l,n.flags),n):n}function Sr(n){let i=M(268);return i.statements=fe(n),i.transformFlags|=ke(i.statements),i.jsDoc=void 0,i}function Ft(n,i){return n.statements!==i?q(Sr(i),n):n}function Oo(n){let i=M(269);return i.clauses=fe(n),i.transformFlags|=ke(i.clauses),i.locals=void 0,i.nextContainer=void 0,i}function pu(n,i){return n.clauses!==i?q(Oo(i),n):n}function Mo(n){let i=ie(270);return i.name=tt(n),i.transformFlags|=Ua(i.name)|1,i.modifiers=void 0,i.jsDoc=void 0,i}function Lo(n,i){return n.name!==i?fu(Mo(i),n):n}function fu(n,i){return n!==i&&(n.modifiers=i.modifiers),q(n,i)}function Jo(n,i,s,l){let f=ie(271);return f.modifiers=Pe(n),f.name=tt(s),f.isTypeOnly=i,f.moduleReference=l,f.transformFlags|=ke(f.modifiers)|Ua(f.name)|F(f.moduleReference),Ff(f.moduleReference)||(f.transformFlags|=1),f.transformFlags&=-67108865,f.jsDoc=void 0,f}function jo(n,i,s,l,f){return n.modifiers!==i||n.isTypeOnly!==s||n.name!==l||n.moduleReference!==f?q(Jo(i,s,l,f),n):n}function Ro(n,i,s,l){let f=M(272);return f.modifiers=Pe(n),f.importClause=i,f.moduleSpecifier=s,f.attributes=f.assertClause=l,f.transformFlags|=F(f.importClause)|F(f.moduleSpecifier),f.transformFlags&=-67108865,f.jsDoc=void 0,f}function Uo(n,i,s,l,f){return n.modifiers!==i||n.importClause!==s||n.moduleSpecifier!==l||n.attributes!==f?q(Ro(i,s,l,f),n):n}function Bo(n,i,s){let l=ie(273);return l.isTypeOnly=n,l.name=i,l.namedBindings=s,l.transformFlags|=F(l.name)|F(l.namedBindings),n&&(l.transformFlags|=1),l.transformFlags&=-67108865,l}function qo(n,i,s,l){return n.isTypeOnly!==i||n.name!==s||n.namedBindings!==l?q(Bo(i,s,l),n):n}function ks(n,i){let s=M(300);return s.elements=fe(n),s.multiLine=i,s.token=132,s.transformFlags|=4,s}function du(n,i,s){return n.elements!==i||n.multiLine!==s?q(ks(i,s),n):n}function Mi(n,i){let s=M(301);return s.name=n,s.value=i,s.transformFlags|=4,s}function Fo(n,i,s){return n.name!==i||n.value!==s?q(Mi(i,s),n):n}function Es(n,i){let s=M(302);return s.assertClause=n,s.multiLine=i,s}function zo(n,i,s){return n.assertClause!==i||n.multiLine!==s?q(Es(i,s),n):n}function Vo(n,i,s){let l=M(300);return l.token=s??118,l.elements=fe(n),l.multiLine=i,l.transformFlags|=4,l}function As(n,i,s){return n.elements!==i||n.multiLine!==s?q(Vo(i,s,n.token),n):n}function Wo(n,i){let s=M(301);return s.name=n,s.value=i,s.transformFlags|=4,s}function Go(n,i,s){return n.name!==i||n.value!==s?q(Wo(i,s),n):n}function Yo(n){let i=ie(274);return i.name=n,i.transformFlags|=F(i.name),i.transformFlags&=-67108865,i}function mu(n,i){return n.name!==i?q(Yo(i),n):n}function Ho(n){let i=ie(280);return i.name=n,i.transformFlags|=F(i.name)|32,i.transformFlags&=-67108865,i}function hu(n,i){return n.name!==i?q(Ho(i),n):n}function Xo(n){let i=M(275);return i.elements=fe(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function $o(n,i){return n.elements!==i?q(Xo(i),n):n}function wr(n,i,s){let l=ie(276);return l.isTypeOnly=n,l.propertyName=i,l.name=s,l.transformFlags|=F(l.propertyName)|F(l.name),l.transformFlags&=-67108865,l}function yu(n,i,s,l){return n.isTypeOnly!==i||n.propertyName!==s||n.name!==l?q(wr(i,s,l),n):n}function ba(n,i,s){let l=ie(277);return l.modifiers=Pe(n),l.isExportEquals=i,l.expression=i?o().parenthesizeRightSideOfBinary(64,void 0,s):o().parenthesizeExpressionOfExportDefault(s),l.transformFlags|=ke(l.modifiers)|F(l.expression),l.transformFlags&=-67108865,l.jsDoc=void 0,l}function Li(n,i,s){return n.modifiers!==i||n.expression!==s?q(ba(i,n.isExportEquals,s),n):n}function va(n,i,s,l,f){let S=ie(278);return S.modifiers=Pe(n),S.isTypeOnly=i,S.exportClause=s,S.moduleSpecifier=l,S.attributes=S.assertClause=f,S.transformFlags|=ke(S.modifiers)|F(S.exportClause)|F(S.moduleSpecifier),S.transformFlags&=-67108865,S.jsDoc=void 0,S}function Qo(n,i,s,l,f,S){return n.modifiers!==i||n.isTypeOnly!==s||n.exportClause!==l||n.moduleSpecifier!==f||n.attributes!==S?Ji(va(i,s,l,f,S),n):n}function Ji(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),q(n,i)}function Cs(n){let i=M(279);return i.elements=fe(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function gu(n,i){return n.elements!==i?q(Cs(i),n):n}function Ta(n,i,s){let l=M(281);return l.isTypeOnly=n,l.propertyName=tt(i),l.name=tt(s),l.transformFlags|=F(l.propertyName)|F(l.name),l.transformFlags&=-67108865,l.jsDoc=void 0,l}function bu(n,i,s,l){return n.isTypeOnly!==i||n.propertyName!==s||n.name!==l?q(Ta(i,s,l),n):n}function vu(){let n=ie(282);return n.jsDoc=void 0,n}function Ds(n){let i=M(283);return i.expression=n,i.transformFlags|=F(i.expression),i.transformFlags&=-67108865,i}function Tu(n,i){return n.expression!==i?q(Ds(i),n):n}function Ko(n){return M(n)}function Zo(n,i,s=!1){let l=Ps(n,s?i&&o().parenthesizeNonArrayTypeOfPostfixType(i):i);return l.postfix=s,l}function Ps(n,i){let s=M(n);return s.type=i,s}function xu(n,i,s){return i.type!==s?q(Zo(n,s,i.postfix),i):i}function Su(n,i,s){return i.type!==s?q(Ps(n,s),i):i}function ec(n,i){let s=ie(317);return s.parameters=Pe(n),s.type=i,s.transformFlags=ke(s.parameters)|(s.type?1:0),s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.typeArguments=void 0,s}function wu(n,i,s){return n.parameters!==i||n.type!==s?q(ec(i,s),n):n}function tc(n,i=!1){let s=ie(322);return s.jsDocPropertyTags=Pe(n),s.isArrayType=i,s}function ku(n,i,s){return n.jsDocPropertyTags!==i||n.isArrayType!==s?q(tc(i,s),n):n}function nc(n){let i=M(309);return i.type=n,i}function Ns(n,i){return n.type!==i?q(nc(i),n):n}function rc(n,i,s){let l=ie(323);return l.typeParameters=Pe(n),l.parameters=fe(i),l.type=s,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l}function Eu(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?q(rc(i,s,l),n):n}function _n(n){let i=_l(n.kind);return n.tagName.escapedText===ja(i)?n.tagName:Ge(i)}function kn(n,i,s){let l=M(n);return l.tagName=i,l.comment=s,l}function Fr(n,i,s){let l=ie(n);return l.tagName=i,l.comment=s,l}function Is(n,i,s,l){let f=kn(345,n??Ge("template"),l);return f.constraint=i,f.typeParameters=fe(s),f}function ic(n,i=_n(n),s,l,f){return n.tagName!==i||n.constraint!==s||n.typeParameters!==l||n.comment!==f?q(Is(i,s,l,f),n):n}function xa(n,i,s,l){let f=Fr(346,n??Ge("typedef"),l);return f.typeExpression=i,f.fullName=s,f.name=nm(s),f.locals=void 0,f.nextContainer=void 0,f}function Au(n,i=_n(n),s,l,f){return n.tagName!==i||n.typeExpression!==s||n.fullName!==l||n.comment!==f?q(xa(i,s,l,f),n):n}function Os(n,i,s,l,f,S){let z=Fr(341,n??Ge("param"),S);return z.typeExpression=l,z.name=i,z.isNameFirst=!!f,z.isBracketed=s,z}function Cu(n,i=_n(n),s,l,f,S,z){return n.tagName!==i||n.name!==s||n.isBracketed!==l||n.typeExpression!==f||n.isNameFirst!==S||n.comment!==z?q(Os(i,s,l,f,S,z),n):n}function ac(n,i,s,l,f,S){let z=Fr(348,n??Ge("prop"),S);return z.typeExpression=l,z.name=i,z.isNameFirst=!!f,z.isBracketed=s,z}function sc(n,i=_n(n),s,l,f,S,z){return n.tagName!==i||n.name!==s||n.isBracketed!==l||n.typeExpression!==f||n.isNameFirst!==S||n.comment!==z?q(ac(i,s,l,f,S,z),n):n}function _c(n,i,s,l){let f=Fr(338,n??Ge("callback"),l);return f.typeExpression=i,f.fullName=s,f.name=nm(s),f.locals=void 0,f.nextContainer=void 0,f}function oc(n,i=_n(n),s,l,f){return n.tagName!==i||n.typeExpression!==s||n.fullName!==l||n.comment!==f?q(_c(i,s,l,f),n):n}function cc(n,i,s){let l=kn(339,n??Ge("overload"),s);return l.typeExpression=i,l}function Ms(n,i=_n(n),s,l){return n.tagName!==i||n.typeExpression!==s||n.comment!==l?q(cc(i,s,l),n):n}function Ls(n,i,s){let l=kn(328,n??Ge("augments"),s);return l.class=i,l}function ji(n,i=_n(n),s,l){return n.tagName!==i||n.class!==s||n.comment!==l?q(Ls(i,s,l),n):n}function lc(n,i,s){let l=kn(329,n??Ge("implements"),s);return l.class=i,l}function zr(n,i,s){let l=kn(347,n??Ge("see"),s);return l.name=i,l}function Sa(n,i,s,l){return n.tagName!==i||n.name!==s||n.comment!==l?q(zr(i,s,l),n):n}function uc(n){let i=M(310);return i.name=n,i}function Du(n,i){return n.name!==i?q(uc(i),n):n}function pc(n,i){let s=M(311);return s.left=n,s.right=i,s.transformFlags|=F(s.left)|F(s.right),s}function Pu(n,i,s){return n.left!==i||n.right!==s?q(pc(i,s),n):n}function fc(n,i){let s=M(324);return s.name=n,s.text=i,s}function dc(n,i,s){return n.name!==i?q(fc(i,s),n):n}function mc(n,i){let s=M(325);return s.name=n,s.text=i,s}function Nu(n,i,s){return n.name!==i?q(mc(i,s),n):n}function hc(n,i){let s=M(326);return s.name=n,s.text=i,s}function Iu(n,i,s){return n.name!==i?q(hc(i,s),n):n}function Ou(n,i=_n(n),s,l){return n.tagName!==i||n.class!==s||n.comment!==l?q(lc(i,s,l),n):n}function yc(n,i,s){return kn(n,i??Ge(_l(n)),s)}function Mu(n,i,s=_n(i),l){return i.tagName!==s||i.comment!==l?q(yc(n,s,l),i):i}function gc(n,i,s,l){let f=kn(n,i??Ge(_l(n)),l);return f.typeExpression=s,f}function Lu(n,i,s=_n(i),l,f){return i.tagName!==s||i.typeExpression!==l||i.comment!==f?q(gc(n,s,l,f),i):i}function bc(n,i){return kn(327,n,i)}function Ju(n,i,s){return n.tagName!==i||n.comment!==s?q(bc(i,s),n):n}function vc(n,i,s){let l=Fr(340,n??Ge(_l(340)),s);return l.typeExpression=i,l.locals=void 0,l.nextContainer=void 0,l}function Js(n,i=_n(n),s,l){return n.tagName!==i||n.typeExpression!==s||n.comment!==l?q(vc(i,s,l),n):n}function Tc(n,i,s,l,f){let S=kn(351,n??Ge("import"),f);return S.importClause=i,S.moduleSpecifier=s,S.attributes=l,S.comment=f,S}function xc(n,i,s,l,f,S){return n.tagName!==i||n.comment!==S||n.importClause!==s||n.moduleSpecifier!==l||n.attributes!==f?q(Tc(i,s,l,f,S),n):n}function js(n){let i=M(321);return i.text=n,i}function ju(n,i){return n.text!==i?q(js(i),n):n}function Ri(n,i){let s=M(320);return s.comment=n,s.tags=Pe(i),s}function Sc(n,i,s){return n.comment!==i||n.tags!==s?q(Ri(i,s),n):n}function wc(n,i,s){let l=M(284);return l.openingElement=n,l.children=fe(i),l.closingElement=s,l.transformFlags|=F(l.openingElement)|ke(l.children)|F(l.closingElement)|2,l}function Ru(n,i,s,l){return n.openingElement!==i||n.children!==s||n.closingElement!==l?q(wc(i,s,l),n):n}function kc(n,i,s){let l=M(285);return l.tagName=n,l.typeArguments=Pe(i),l.attributes=s,l.transformFlags|=F(l.tagName)|ke(l.typeArguments)|F(l.attributes)|2,l.typeArguments&&(l.transformFlags|=1),l}function Rs(n,i,s,l){return n.tagName!==i||n.typeArguments!==s||n.attributes!==l?q(kc(i,s,l),n):n}function Us(n,i,s){let l=M(286);return l.tagName=n,l.typeArguments=Pe(i),l.attributes=s,l.transformFlags|=F(l.tagName)|ke(l.typeArguments)|F(l.attributes)|2,i&&(l.transformFlags|=1),l}function Ec(n,i,s,l){return n.tagName!==i||n.typeArguments!==s||n.attributes!==l?q(Us(i,s,l),n):n}function wa(n){let i=M(287);return i.tagName=n,i.transformFlags|=F(i.tagName)|2,i}function Kt(n,i){return n.tagName!==i?q(wa(i),n):n}function Bs(n,i,s){let l=M(288);return l.openingFragment=n,l.children=fe(i),l.closingFragment=s,l.transformFlags|=F(l.openingFragment)|ke(l.children)|F(l.closingFragment)|2,l}function Ac(n,i,s,l){return n.openingFragment!==i||n.children!==s||n.closingFragment!==l?q(Bs(i,s,l),n):n}function ka(n,i){let s=M(12);return s.text=n,s.containsOnlyTriviaWhiteSpaces=!!i,s.transformFlags|=2,s}function Cc(n,i,s){return n.text!==i||n.containsOnlyTriviaWhiteSpaces!==s?q(ka(i,s),n):n}function Uu(){let n=M(289);return n.transformFlags|=2,n}function Bu(){let n=M(290);return n.transformFlags|=2,n}function Dc(n,i){let s=ie(291);return s.name=n,s.initializer=i,s.transformFlags|=F(s.name)|F(s.initializer)|2,s}function Ea(n,i,s){return n.name!==i||n.initializer!==s?q(Dc(i,s),n):n}function Pc(n){let i=ie(292);return i.properties=fe(n),i.transformFlags|=ke(i.properties)|2,i}function qu(n,i){return n.properties!==i?q(Pc(i),n):n}function Nc(n){let i=M(293);return i.expression=n,i.transformFlags|=F(i.expression)|2,i}function Fu(n,i){return n.expression!==i?q(Nc(i),n):n}function Aa(n,i){let s=M(294);return s.dotDotDotToken=n,s.expression=i,s.transformFlags|=F(s.dotDotDotToken)|F(s.expression)|2,s}function Ui(n,i){return n.expression!==i?q(Aa(n.dotDotDotToken,i),n):n}function Ic(n,i){let s=M(295);return s.namespace=n,s.name=i,s.transformFlags|=F(s.namespace)|F(s.name)|2,s}function qs(n,i,s){return n.namespace!==i||n.name!==s?q(Ic(i,s),n):n}function Fs(n,i){let s=M(296);return s.expression=o().parenthesizeExpressionForDisallowedComma(n),s.statements=fe(i),s.transformFlags|=F(s.expression)|ke(s.statements),s.jsDoc=void 0,s}function zu(n,i,s){return n.expression!==i||n.statements!==s?q(Fs(i,s),n):n}function oi(n){let i=M(297);return i.statements=fe(n),i.transformFlags=ke(i.statements),i}function Oc(n,i){return n.statements!==i?q(oi(i),n):n}function Mc(n,i){let s=M(298);switch(s.token=n,s.types=fe(i),s.transformFlags|=ke(s.types),n){case 96:s.transformFlags|=1024;break;case 119:s.transformFlags|=1;break;default:return B.assertNever(n)}return s}function Vu(n,i){return n.types!==i?q(Mc(n.token,i),n):n}function zs(n,i){let s=M(299);return s.variableDeclaration=kr(n),s.block=i,s.transformFlags|=F(s.variableDeclaration)|F(s.block)|(n?0:64),s.locals=void 0,s.nextContainer=void 0,s}function Lc(n,i,s){return n.variableDeclaration!==i||n.block!==s?q(zs(i,s),n):n}function Ca(n,i){let s=ie(303);return s.name=tt(n),s.initializer=o().parenthesizeExpressionForDisallowedComma(i),s.transformFlags|=Un(s.name)|F(s.initializer),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0,s.jsDoc=void 0,s}function Vr(n,i,s){return n.name!==i||n.initializer!==s?Wu(Ca(i,s),n):n}function Wu(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken),q(n,i)}function Jc(n,i){let s=ie(304);return s.name=tt(n),s.objectAssignmentInitializer=i&&o().parenthesizeExpressionForDisallowedComma(i),s.transformFlags|=Ua(s.name)|F(s.objectAssignmentInitializer)|1024,s.equalsToken=void 0,s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0,s.jsDoc=void 0,s}function Gu(n,i,s){return n.name!==i||n.objectAssignmentInitializer!==s?Yu(Jc(i,s),n):n}function Yu(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken,n.equalsToken=i.equalsToken),q(n,i)}function Vs(n){let i=ie(305);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=F(i.expression)|128|65536,i.jsDoc=void 0,i}function jc(n,i){return n.expression!==i?q(Vs(i),n):n}function En(n,i){let s=ie(306);return s.name=tt(n),s.initializer=i&&o().parenthesizeExpressionForDisallowedComma(i),s.transformFlags|=F(s.name)|F(s.initializer)|1,s.jsDoc=void 0,s}function Rc(n,i,s){return n.name!==i||n.initializer!==s?q(En(i,s),n):n}function Hu(n,i,s){let l=t.createBaseSourceFileNode(307);return l.statements=fe(n),l.endOfFileToken=i,l.flags|=s,l.text="",l.fileName="",l.path="",l.resolvedPath="",l.originalFileName="",l.languageVersion=1,l.languageVariant=0,l.scriptKind=0,l.isDeclarationFile=!1,l.hasNoDefaultLib=!1,l.transformFlags|=ke(l.statements)|F(l.endOfFileToken),l.locals=void 0,l.nextContainer=void 0,l.endFlowNode=void 0,l.nodeCount=0,l.identifierCount=0,l.symbolCount=0,l.parseDiagnostics=void 0,l.bindDiagnostics=void 0,l.bindSuggestionDiagnostics=void 0,l.lineMap=void 0,l.externalModuleIndicator=void 0,l.setExternalModuleIndicator=void 0,l.pragmas=void 0,l.checkJsDirective=void 0,l.referencedFiles=void 0,l.typeReferenceDirectives=void 0,l.libReferenceDirectives=void 0,l.amdDependencies=void 0,l.commentDirectives=void 0,l.identifiers=void 0,l.packageJsonLocations=void 0,l.packageJsonScope=void 0,l.imports=void 0,l.moduleAugmentations=void 0,l.ambientModuleNames=void 0,l.classifiableNames=void 0,l.impliedNodeFormat=void 0,l}function Uc(n){let i=Object.create(n.redirectTarget);return Object.defineProperties(i,{id:{get(){return this.redirectInfo.redirectTarget.id},set(s){this.redirectInfo.redirectTarget.id=s}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(s){this.redirectInfo.redirectTarget.symbol=s}}}),i.redirectInfo=n,i}function Xu(n){let i=Uc(n.redirectInfo);return i.flags|=n.flags&-17,i.fileName=n.fileName,i.path=n.path,i.resolvedPath=n.resolvedPath,i.originalFileName=n.originalFileName,i.packageJsonLocations=n.packageJsonLocations,i.packageJsonScope=n.packageJsonScope,i.emitNode=void 0,i}function Bc(n){let i=t.createBaseSourceFileNode(307);i.flags|=n.flags&-17;for(let s in n)if(!(Nr(i,s)||!Nr(n,s))){if(s==="emitNode"){i.emitNode=void 0;continue}i[s]=n[s]}return i}function Da(n){let i=n.redirectInfo?Xu(n):Bc(n);return a(i,n),i}function $u(n,i,s,l,f,S,z){let de=Da(n);return de.statements=fe(i),de.isDeclarationFile=s,de.referencedFiles=l,de.typeReferenceDirectives=f,de.hasNoDefaultLib=S,de.libReferenceDirectives=z,de.transformFlags=ke(de.statements)|F(de.endOfFileToken),de}function Qu(n,i,s=n.isDeclarationFile,l=n.referencedFiles,f=n.typeReferenceDirectives,S=n.hasNoDefaultLib,z=n.libReferenceDirectives){return n.statements!==i||n.isDeclarationFile!==s||n.referencedFiles!==l||n.typeReferenceDirectives!==f||n.hasNoDefaultLib!==S||n.libReferenceDirectives!==z?q($u(n,i,s,l,f,S,z),n):n}function Ws(n){let i=M(308);return i.sourceFiles=n,i.syntheticFileReferences=void 0,i.syntheticTypeReferences=void 0,i.syntheticLibReferences=void 0,i.hasNoDefaultLib=void 0,i}function Ku(n,i){return n.sourceFiles!==i?q(Ws(i),n):n}function Zu(n,i=!1,s){let l=M(237);return l.type=n,l.isSpread=i,l.tupleNameSource=s,l}function Pa(n){let i=M(352);return i._children=n,i}function qc(n){let i=M(353);return i.original=n,gn(i,n),i}function Fc(n,i){let s=M(355);return s.expression=n,s.original=i,s.transformFlags|=F(s.expression)|1,gn(s,i),s}function zc(n,i){return n.expression!==i?q(Fc(i,n.original),n):n}function ep(){return M(354)}function tp(n){if(Ra(n)&&!yl(n)&&!n.original&&!n.emitNode&&!n.id){if(d6(n))return n.elements;if(ea(n)&&Kb(n.operatorToken))return[n.left,n.right]}return n}function Gs(n){let i=M(356);return i.elements=fe(xy(n,tp)),i.transformFlags|=ke(i.elements),i}function Vc(n,i){return n.elements!==i?q(Gs(i),n):n}function Ys(n,i){let s=M(357);return s.expression=n,s.thisArg=i,s.transformFlags|=F(s.expression)|F(s.thisArg),s}function Wc(n,i,s){return n.expression!==i||n.thisArg!==s?q(Ys(i,s),n):n}function np(n){let i=Tn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function rp(n){let i=Tn(n.escapedText);i.flags|=n.flags&-17,i.jsDoc=n.jsDoc,i.flowNode=n.flowNode,i.symbol=n.symbol,i.transformFlags=n.transformFlags,a(i,n);let s=getIdentifierTypeArguments(n);return s&&setIdentifierTypeArguments(i,s),i}function Gc(n){let i=Ln(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function Yc(n){let i=Ln(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),i}function Hs(n){if(n===void 0)return n;if(_h(n))return Da(n);if(qa(n))return np(n);if(Ze(n))return rp(n);if(l1(n))return Gc(n);if(vi(n))return Yc(n);let i=ff(n.kind)?t.createBaseNode(n.kind):t.createBaseTokenNode(n.kind);i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n);for(let s in n)Nr(i,s)||!Nr(n,s)||(i[s]=n[s]);return i}function ip(n,i,s){return Ni(ss(void 0,void 0,void 0,void 0,i?[i]:[],void 0,qr(n,!0)),void 0,s?[s]:[])}function ap(n,i,s){return Ni(_s(void 0,void 0,i?[i]:[],void 0,void 0,qr(n,!0)),void 0,s?[s]:[])}function ci(){return os(V("0"))}function Hc(n){return ba(void 0,!1,n)}function sp(n){return va(void 0,!1,Cs([Ta(!1,void 0,n)]))}function Xs(n,i){return i==="null"?ye.createStrictEquality(n,Jt()):i==="undefined"?ye.createStrictEquality(n,ci()):ye.createStrictEquality(pa(n),dt(i))}function _p(n,i){return i==="null"?ye.createStrictInequality(n,Jt()):i==="undefined"?ye.createStrictInequality(n,ci()):ye.createStrictInequality(pa(n),dt(i))}function Wr(n,i,s){return jd(n)?rs(Di(n,void 0,i),void 0,void 0,s):Ni(lr(n,i),void 0,s)}function op(n,i,s){return Wr(n,"bind",[i,...s])}function cp(n,i,s){return Wr(n,"call",[i,...s])}function lp(n,i,s){return Wr(n,"apply",[i,s])}function Bi(n,i,s){return Wr(Ge(n),i,s)}function qi(n,i){return Wr(n,"slice",i===void 0?[]:[fr(i)])}function up(n,i){return Wr(n,"concat",i)}function $s(n,i,s){return Bi("Object","defineProperty",[n,fr(i),s])}function li(n,i){return Bi("Object","getOwnPropertyDescriptor",[n,fr(i)])}function Xc(n,i,s){return Bi("Reflect","get",s?[n,i,s]:[n,i])}function pp(n,i,s,l){return Bi("Reflect","set",l?[n,i,s,l]:[n,i,s])}function ui(n,i,s){return s?(n.push(Ca(i,s)),!0):!1}function $c(n,i){let s=[];ui(s,"enumerable",fr(n.enumerable)),ui(s,"configurable",fr(n.configurable));let l=ui(s,"writable",fr(n.writable));l=ui(s,"value",n.value)||l;let f=ui(s,"get",n.get);return f=ui(s,"set",n.set)||f,B.assert(!(l&&f),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ci(s,!i)}function fp(n,i){switch(n.kind){case 217:return B_(n,i);case 216:return U_(n,n.type,i);case 234:return ma(n,i,n.type);case 238:return io(n,i,n.type);case 235:return ro(n,i);case 233:return to(n,i,n.typeArguments);case 355:return zc(n,i)}}function dp(n){return Dl(n)&&Ra(n)&&Ra(getSourceMapRange(n))&&Ra(getCommentRange(n))&&!nn(getSyntheticLeadingComments(n))&&!nn(getSyntheticTrailingComments(n))}function Qc(n,i,s=63){return n&&dh(n,s)&&!dp(n)?fp(n,Qc(n.expression,i)):i}function Qs(n,i,s){if(!i)return n;let l=So(i,i.label,th(i.statement)?Qs(n,i.statement):n);return s&&s(i),l}function Ks(n,i){let s=vf(n);switch(s.kind){case 80:return i;case 110:case 9:case 10:case 11:return!1;case 209:return s.elements.length!==0;case 210:return s.properties.length>0;default:return!0}}function Kc(n,i,s,l=!1){let f=Vf(n,63),S,z;return Vd(f)?(S=Ut(),z=f):Cp(f)?(S=Ut(),z=s!==void 0&&s<2?gn(Ge("_super"),f):f):Wa(f)&8192?(S=ci(),z=o().parenthesizeLeftSideOfAccess(f,!1)):dr(f)?Ks(f.expression,l)?(S=ar(i),z=lr(gn(ye.createAssignment(S,f.expression),f.expression),f.name),gn(z,f)):(S=f.expression,z=f):$a(f)?Ks(f.expression,l)?(S=ar(i),z=Pi(gn(ye.createAssignment(S,f.expression),f.expression),f.argumentExpression),gn(z,f)):(S=f.expression,z=f):(S=ci(),z=o().parenthesizeLeftSideOfAccess(n,!1)),{target:z,thisArg:S}}function _(n,i){return lr(as(Ci([R(void 0,"value",[hr(void 0,void 0,n,void 0,void 0,void 0)],qr([Oi(i)]))])),"value")}function p(n){return n.length>10?Gs(n):Iy(n,ye.createComma)}function d(n,i,s,l=0,f){let S=f?n&&lf(n):r1(n);if(S&&Ze(S)&&!qa(S)){let z=Sf(gn(Hs(S),S),S.parent);return l|=Wa(S),s||(l|=96),i||(l|=3072),l&&setEmitFlags(z,l),z}return Fn(n)}function b(n,i,s){return d(n,i,s,98304)}function w(n,i,s,l){return d(n,i,s,32768,l)}function I(n,i,s){return d(n,i,s,16384)}function $(n,i,s){return d(n,i,s)}function se(n,i,s,l){let f=lr(n,Ra(i)?i:Hs(i));gn(f,i);let S=0;return l||(S|=96),s||(S|=3072),S&&setEmitFlags(f,S),f}function Z(n,i,s,l){return n&&S_(i,32)?se(n,d(i),s,l):I(i,s,l)}function ee(n,i,s,l){let f=Re(n,i,0,s);return Ae(n,i,f,l)}function ce(n){return Si(n.expression)&&n.expression.text==="use strict"}function je(){return L6(Oi(dt("use strict")))}function Re(n,i,s=0,l){B.assert(i.length===0,"Prologue directives should be at the first statement in the target statements array");let f=!1,S=n.length;for(;sde&&en.splice(f,0,...i.slice(de,Ue)),de>z&&en.splice(l,0,...i.slice(z,de)),z>S&&en.splice(s,0,...i.slice(S,z)),S>0)if(s===0)en.splice(0,0,...i.slice(0,S));else{let An=new Map;for(let Kn=0;Kn=0;Kn--){let Ia=i[Kn];An.has(Ia.expression.text)||en.unshift(Ia)}}return yi(n)?gn(fe(en,n.hasTrailingComma),n):n}function Rn(n,i){let s;return typeof i=="number"?s=xn(i):s=i,Ef(n)?_r(n,s,n.name,n.constraint,n.default):g_(n)?yr(n,s,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Nf(n)?Ve(n,s,n.typeParameters,n.parameters,n.type):J1(n)?Gn(n,s,n.name,n.questionToken,n.type):Ya(n)?J(n,s,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):j1(n)?me(n,s,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):b_(n)?Xe(n,s,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):Af(n)?Lr(n,s,n.parameters,n.body):vl(n)?Yn(n,s,n.name,n.parameters,n.type,n.body):v_(n)?Q(n,s,n.name,n.parameters,n.body):Cf(n)?et(n,s,n.parameters,n.type):Mf(n)?q_(n,s,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Lf(n)?F_(n,s,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):Tl(n)?us(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):Qa(n)?_o(n,s,n.declarationList):jf(n)?Ss(n,s,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Ha(n)?ga(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):w_(n)?No(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):Nl(n)?Tr(n,s,n.name,n.typeParameters,n.type):rh(n)?xr(n,s,n.name,n.members):wi(n)?Et(n,s,n.name,n.body):Rf(n)?jo(n,s,n.isTypeOnly,n.name,n.moduleReference):Uf(n)?Uo(n,s,n.importClause,n.moduleSpecifier,n.attributes):Bf(n)?Li(n,s,n.expression):qf(n)?Qo(n,s,n.isTypeOnly,n.exportClause,n.moduleSpecifier,n.attributes):B.assertNever(n)}function Gr(n,i){return g_(n)?yr(n,i,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Ya(n)?J(n,i,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):b_(n)?Xe(n,i,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):vl(n)?Yn(n,i,n.name,n.parameters,n.type,n.body):v_(n)?Q(n,i,n.name,n.parameters,n.body):Tl(n)?us(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):Ha(n)?ga(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):B.assertNever(n)}function mp(n,i){switch(n.kind){case 177:return Yn(n,n.modifiers,i,n.parameters,n.type,n.body);case 178:return Q(n,n.modifiers,i,n.parameters,n.body);case 174:return Xe(n,n.modifiers,n.asteriskToken,i,n.questionToken,n.typeParameters,n.parameters,n.type,n.body);case 173:return me(n,n.modifiers,i,n.questionToken,n.typeParameters,n.parameters,n.type);case 172:return J(n,n.modifiers,i,n.questionToken??n.exclamationToken,n.type,n.initializer);case 171:return Gn(n,n.modifiers,i,n.questionToken,n.type);case 303:return Vr(n,i,n.initializer)}}function Pe(n){return n?fe(n):void 0}function tt(n){return typeof n=="string"?Ge(n):n}function fr(n){return typeof n=="string"?dt(n):typeof n=="number"?V(n):typeof n=="boolean"?n?lt():sr():n}function Na(n){return n&&o().parenthesizeExpressionForDisallowedComma(n)}function Zc(n){return typeof n=="number"?ct(n):n}function Ot(n){return n&&m6(n)?gn(a(oo(),n),n):n}function kr(n){return typeof n=="string"||n&&!Jf(n)?ya(n,void 0,void 0,void 0):n}function q(n,i){return n!==i&&(a(n,i),gn(n,i)),n}}function _l(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return B.fail(`Unsupported kind: ${B.formatSyntaxKind(e)}`)}}var Cn,$d={};function Wb(e,t){switch(Cn||(Cn=_f(99,!1,0)),e){case 15:Cn.setText("`"+t+"`");break;case 16:Cn.setText("`"+t+"${");break;case 17:Cn.setText("}"+t+"${");break;case 18:Cn.setText("}"+t+"`");break}let a=Cn.scan();if(a===20&&(a=Cn.reScanTemplateToken(!1)),Cn.isUnterminated())return Cn.setText(void 0),$d;let o;switch(a){case 15:case 16:case 17:case 18:o=Cn.getTokenValue();break}return o===void 0||Cn.scan()!==1?(Cn.setText(void 0),$d):(Cn.setText(void 0),o)}function Un(e){return e&&Ze(e)?Ua(e):F(e)}function Ua(e){return F(e)&-67108865}function Gb(e,t){return t|e.transformFlags&134234112}function F(e){if(!e)return 0;let t=e.transformFlags&~Yb(e.kind);return Ng(e)&&u1(e.name)?Gb(e.name,t):t}function ke(e){return e?e.transformFlags:0}function Qd(e){let t=0;for(let a of e)t|=F(a);e.transformFlags=t}function Yb(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 355:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}var t_=Fb();function n_(e){return e.flags|=16,e}var Hb={createBaseSourceFileNode:e=>n_(t_.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>n_(t_.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>n_(t_.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>n_(t_.createBaseTokenNode(e)),createBaseNode:e=>n_(t_.createBaseNode(e))},J3=wf(4,Hb);function Xb(e,t){if(e.original!==t&&(e.original=t,t)){let a=t.emitNode;a&&(e.emitNode=$b(a,e.emitNode))}return e}function $b(e,t){let{flags:a,internalFlags:o,leadingComments:m,trailingComments:v,commentRange:E,sourceMapRange:C,tokenSourceMapRanges:c,constantValue:W,helpers:h,startsOnNewLine:y,snippetElement:g,classThis:x,assignedName:N}=e;if(t||(t={}),a&&(t.flags=a),o&&(t.internalFlags=o&-9),m&&(t.leadingComments=Nn(m.slice(),t.leadingComments)),v&&(t.trailingComments=Nn(v.slice(),t.trailingComments)),E&&(t.commentRange=E),C&&(t.sourceMapRange=C),c&&(t.tokenSourceMapRanges=Qb(c,t.tokenSourceMapRanges)),W!==void 0&&(t.constantValue=W),h)for(let te of h)t.helpers=Ey(t.helpers,te);return y!==void 0&&(t.startsOnNewLine=y),g!==void 0&&(t.snippetElement=g),x&&(t.classThis=x),N&&(t.assignedName=N),t}function Qb(e,t){t||(t=[]);for(let a in e)t[a]=e[a];return t}function na(e){return e.kind===9}function O1(e){return e.kind===10}function Si(e){return e.kind===11}function M1(e){return e.kind===15}function Kb(e){return e.kind===28}function Kd(e){return e.kind===54}function Zd(e){return e.kind===58}function Ze(e){return e.kind===80}function vi(e){return e.kind===81}function Zb(e){return e.kind===95}function ol(e){return e.kind===134}function Cp(e){return e.kind===108}function e6(e){return e.kind===102}function L1(e){return e.kind===166}function kf(e){return e.kind===167}function Ef(e){return e.kind===168}function g_(e){return e.kind===169}function Cl(e){return e.kind===170}function J1(e){return e.kind===171}function Ya(e){return e.kind===172}function j1(e){return e.kind===173}function b_(e){return e.kind===174}function Af(e){return e.kind===176}function vl(e){return e.kind===177}function v_(e){return e.kind===178}function R1(e){return e.kind===179}function U1(e){return e.kind===180}function Cf(e){return e.kind===181}function B1(e){return e.kind===182}function Df(e){return e.kind===183}function Pf(e){return e.kind===184}function Nf(e){return e.kind===185}function t6(e){return e.kind===186}function q1(e){return e.kind===187}function n6(e){return e.kind===188}function r6(e){return e.kind===189}function F1(e){return e.kind===202}function i6(e){return e.kind===190}function a6(e){return e.kind===191}function z1(e){return e.kind===192}function V1(e){return e.kind===193}function s6(e){return e.kind===194}function _6(e){return e.kind===195}function W1(e){return e.kind===196}function o6(e){return e.kind===197}function G1(e){return e.kind===198}function c6(e){return e.kind===199}function Y1(e){return e.kind===200}function l6(e){return e.kind===201}function u6(e){return e.kind===205}function H1(e){return e.kind===208}function X1(e){return e.kind===209}function If(e){return e.kind===210}function dr(e){return e.kind===211}function $a(e){return e.kind===212}function Of(e){return e.kind===213}function $1(e){return e.kind===215}function Dl(e){return e.kind===217}function Mf(e){return e.kind===218}function Lf(e){return e.kind===219}function p6(e){return e.kind===222}function Q1(e){return e.kind===224}function ea(e){return e.kind===226}function K1(e){return e.kind===230}function Tl(e){return e.kind===231}function Z1(e){return e.kind===232}function eh(e){return e.kind===233}function pl(e){return e.kind===235}function f6(e){return e.kind===236}function d6(e){return e.kind===356}function Qa(e){return e.kind===243}function Pl(e){return e.kind===244}function th(e){return e.kind===256}function Jf(e){return e.kind===260}function nh(e){return e.kind===261}function jf(e){return e.kind===262}function Ha(e){return e.kind===263}function w_(e){return e.kind===264}function Nl(e){return e.kind===265}function rh(e){return e.kind===266}function wi(e){return e.kind===267}function Rf(e){return e.kind===271}function Uf(e){return e.kind===272}function Bf(e){return e.kind===277}function qf(e){return e.kind===278}function ih(e){return e.kind===279}function m6(e){return e.kind===353}function Ff(e){return e.kind===283}function zp(e){return e.kind===286}function h6(e){return e.kind===289}function ah(e){return e.kind===295}function y6(e){return e.kind===297}function sh(e){return e.kind===303}function _h(e){return e.kind===307}function oh(e){return e.kind===309}function ch(e){return e.kind===314}function lh(e){return e.kind===317}function uh(e){return e.kind===320}function g6(e){return e.kind===322}function Il(e){return e.kind===323}function b6(e){return e.kind===328}function v6(e){return e.kind===333}function T6(e){return e.kind===334}function x6(e){return e.kind===335}function S6(e){return e.kind===336}function w6(e){return e.kind===337}function k6(e){return e.kind===339}function E6(e){return e.kind===331}function Vp(e){return e.kind===341}function A6(e){return e.kind===342}function zf(e){return e.kind===344}function ph(e){return e.kind===345}function C6(e){return e.kind===329}function D6(e){return e.kind===350}var Ki=new WeakMap;function fh(e,t){var a;let o=e.kind;return ff(o)?o===352?e._children:(a=Ki.get(t))==null?void 0:a.get(e):bt}function P6(e,t,a){e.kind===352&&B.fail("Should not need to re-set the children of a SyntaxList.");let o=Ki.get(t);return o===void 0&&(o=new WeakMap,Ki.set(t,o)),o.set(e,a),a}function em(e,t){var a;e.kind===352&&B.fail("Did not expect to unset the children of a SyntaxList."),(a=Ki.get(t))==null||a.delete(e)}function N6(e,t){let a=Ki.get(e);a!==void 0&&(Ki.delete(e),Ki.set(t,a))}function tm(e){return(Wa(e)&32768)!==0}function I6(e){return Si(e.expression)&&e.expression.text==="use strict"}function O6(e){for(let t of e)if(ul(t)){if(I6(t))return t}else break}function M6(e){return Dl(e)&&ta(e)&&!!Wg(e)}function dh(e,t=63){switch(e.kind){case 217:return t&-2147483648&&M6(e)?!1:(t&1)!==0;case 216:case 234:return(t&2)!==0;case 238:return(t&34)!==0;case 233:return(t&16)!==0;case 235:return(t&4)!==0;case 355:return(t&8)!==0}return!1}function Vf(e,t=63){for(;dh(e,t);)e=e.expression;return e}function L6(e){return setStartsOnNewLine(e,!0)}function __(e){if(_2(e))return e.name;if(i2(e)){switch(e.kind){case 303:return __(e.initializer);case 304:return e.name;case 305:return __(e.expression)}return}return bl(e,!0)?__(e.left):K1(e)?__(e.expression):e}function J6(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function nm(e){if(e){let t=e;for(;;){if(Ze(t)||!t.body)return Ze(t)?t:t.name;t=t.body}}}var rm;(e=>{function t(h,y,g,x,N,te,ue){let ye=y>0?N[y-1]:void 0;return B.assertEqual(g[y],t),N[y]=h.onEnter(x[y],ye,ue),g[y]=C(h,t),y}e.enter=t;function a(h,y,g,x,N,te,ue){B.assertEqual(g[y],a),B.assertIsDefined(h.onLeft),g[y]=C(h,a);let ye=h.onLeft(x[y].left,N[y],x[y]);return ye?(W(y,x,ye),c(y,g,x,N,ye)):y}e.left=a;function o(h,y,g,x,N,te,ue){return B.assertEqual(g[y],o),B.assertIsDefined(h.onOperator),g[y]=C(h,o),h.onOperator(x[y].operatorToken,N[y],x[y]),y}e.operator=o;function m(h,y,g,x,N,te,ue){B.assertEqual(g[y],m),B.assertIsDefined(h.onRight),g[y]=C(h,m);let ye=h.onRight(x[y].right,N[y],x[y]);return ye?(W(y,x,ye),c(y,g,x,N,ye)):y}e.right=m;function v(h,y,g,x,N,te,ue){B.assertEqual(g[y],v),g[y]=C(h,v);let ye=h.onExit(x[y],N[y]);if(y>0){if(y--,h.foldState){let fe=g[y]===v?"right":"left";N[y]=h.foldState(N[y],ye,fe)}}else te.value=ye;return y}e.exit=v;function E(h,y,g,x,N,te,ue){return B.assertEqual(g[y],E),y}e.done=E;function C(h,y){switch(y){case t:if(h.onLeft)return a;case a:if(h.onOperator)return o;case o:if(h.onRight)return m;case m:return v;case v:return E;case E:return E;default:B.fail("Invalid state")}}e.nextState=C;function c(h,y,g,x,N){return h++,y[h]=t,g[h]=N,x[h]=void 0,h}function W(h,y,g){if(B.shouldAssert(2))for(;h>=0;)B.assert(y[h]!==g,"Circular traversal detected."),h--}})(rm||(rm={}));function im(e,t){return typeof e=="object"?Wp(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function j6(e,t){return typeof e=="string"?e:R6(e,B.checkDefined(t))}function R6(e,t){return l1(e)?t(e).slice(1):qa(e)?t(e):vi(e)?e.escapedText.slice(1):In(e)}function Wp(e,t,a,o,m){return t=im(t,m),o=im(o,m),a=j6(a,m),`${e?"#":""}${t}${a}${o}`}function mh(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of J6(e)){let a=__(t);if(a&&s2(a)&&(a.transformFlags&65536||a.transformFlags&128&&mh(a)))return!0}return!1}function gn(e,t){return t?bi(e,t.pos,t.end):e}function Ol(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function Wf(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var am,sm,_m,om,cm,U6={createBaseSourceFileNode:e=>new(cm||(cm=At.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(_m||(_m=At.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(om||(om=At.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(sm||(sm=At.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(am||(am=At.getNodeConstructor()))(e,-1,-1)},j3=wf(1,U6);function k(e,t){return t&&e(t)}function ae(e,t,a){if(a){if(t)return t(a);for(let o of a){let m=e(o);if(m)return m}}}function B6(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function q6(e){return qn(e.statements,F6)||z6(e)}function F6(e){return Ol(e)&&V6(e,95)||Rf(e)&&Ff(e.moduleReference)||Uf(e)||Bf(e)||qf(e)?e:void 0}function z6(e){return e.flags&8388608?hh(e):void 0}function hh(e){return W6(e)?e:Ht(e,hh)}function V6(e,t){return nn(e.modifiers,a=>a.kind===t)}function W6(e){return f6(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var G6={166:function(t,a,o){return k(a,t.left)||k(a,t.right)},168:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.constraint)||k(a,t.default)||k(a,t.expression)},304:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.equalsToken)||k(a,t.objectAssignmentInitializer)},305:function(t,a,o){return k(a,t.expression)},169:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.dotDotDotToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)||k(a,t.initializer)},172:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.type)||k(a,t.initializer)},171:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)||k(a,t.initializer)},303:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.initializer)},260:function(t,a,o){return k(a,t.name)||k(a,t.exclamationToken)||k(a,t.type)||k(a,t.initializer)},208:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.propertyName)||k(a,t.name)||k(a,t.initializer)},181:function(t,a,o){return ae(a,o,t.modifiers)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)},185:function(t,a,o){return ae(a,o,t.modifiers)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)},184:function(t,a,o){return ae(a,o,t.modifiers)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)},179:lm,180:lm,174:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},173:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)},176:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},177:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},178:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},262:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},218:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},219:function(t,a,o){return ae(a,o,t.modifiers)||ae(a,o,t.typeParameters)||ae(a,o,t.parameters)||k(a,t.type)||k(a,t.equalsGreaterThanToken)||k(a,t.body)},175:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.body)},183:function(t,a,o){return k(a,t.typeName)||ae(a,o,t.typeArguments)},182:function(t,a,o){return k(a,t.assertsModifier)||k(a,t.parameterName)||k(a,t.type)},186:function(t,a,o){return k(a,t.exprName)||ae(a,o,t.typeArguments)},187:function(t,a,o){return ae(a,o,t.members)},188:function(t,a,o){return k(a,t.elementType)},189:function(t,a,o){return ae(a,o,t.elements)},192:um,193:um,194:function(t,a,o){return k(a,t.checkType)||k(a,t.extendsType)||k(a,t.trueType)||k(a,t.falseType)},195:function(t,a,o){return k(a,t.typeParameter)},205:function(t,a,o){return k(a,t.argument)||k(a,t.attributes)||k(a,t.qualifier)||ae(a,o,t.typeArguments)},302:function(t,a,o){return k(a,t.assertClause)},196:pm,198:pm,199:function(t,a,o){return k(a,t.objectType)||k(a,t.indexType)},200:function(t,a,o){return k(a,t.readonlyToken)||k(a,t.typeParameter)||k(a,t.nameType)||k(a,t.questionToken)||k(a,t.type)||ae(a,o,t.members)},201:function(t,a,o){return k(a,t.literal)},202:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)},206:fm,207:fm,209:function(t,a,o){return ae(a,o,t.elements)},210:function(t,a,o){return ae(a,o,t.properties)},211:function(t,a,o){return k(a,t.expression)||k(a,t.questionDotToken)||k(a,t.name)},212:function(t,a,o){return k(a,t.expression)||k(a,t.questionDotToken)||k(a,t.argumentExpression)},213:dm,214:dm,215:function(t,a,o){return k(a,t.tag)||k(a,t.questionDotToken)||ae(a,o,t.typeArguments)||k(a,t.template)},216:function(t,a,o){return k(a,t.type)||k(a,t.expression)},217:function(t,a,o){return k(a,t.expression)},220:function(t,a,o){return k(a,t.expression)},221:function(t,a,o){return k(a,t.expression)},222:function(t,a,o){return k(a,t.expression)},224:function(t,a,o){return k(a,t.operand)},229:function(t,a,o){return k(a,t.asteriskToken)||k(a,t.expression)},223:function(t,a,o){return k(a,t.expression)},225:function(t,a,o){return k(a,t.operand)},226:function(t,a,o){return k(a,t.left)||k(a,t.operatorToken)||k(a,t.right)},234:function(t,a,o){return k(a,t.expression)||k(a,t.type)},235:function(t,a,o){return k(a,t.expression)},238:function(t,a,o){return k(a,t.expression)||k(a,t.type)},236:function(t,a,o){return k(a,t.name)},227:function(t,a,o){return k(a,t.condition)||k(a,t.questionToken)||k(a,t.whenTrue)||k(a,t.colonToken)||k(a,t.whenFalse)},230:function(t,a,o){return k(a,t.expression)},241:mm,268:mm,307:function(t,a,o){return ae(a,o,t.statements)||k(a,t.endOfFileToken)},243:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.declarationList)},261:function(t,a,o){return ae(a,o,t.declarations)},244:function(t,a,o){return k(a,t.expression)},245:function(t,a,o){return k(a,t.expression)||k(a,t.thenStatement)||k(a,t.elseStatement)},246:function(t,a,o){return k(a,t.statement)||k(a,t.expression)},247:function(t,a,o){return k(a,t.expression)||k(a,t.statement)},248:function(t,a,o){return k(a,t.initializer)||k(a,t.condition)||k(a,t.incrementor)||k(a,t.statement)},249:function(t,a,o){return k(a,t.initializer)||k(a,t.expression)||k(a,t.statement)},250:function(t,a,o){return k(a,t.awaitModifier)||k(a,t.initializer)||k(a,t.expression)||k(a,t.statement)},251:hm,252:hm,253:function(t,a,o){return k(a,t.expression)},254:function(t,a,o){return k(a,t.expression)||k(a,t.statement)},255:function(t,a,o){return k(a,t.expression)||k(a,t.caseBlock)},269:function(t,a,o){return ae(a,o,t.clauses)},296:function(t,a,o){return k(a,t.expression)||ae(a,o,t.statements)},297:function(t,a,o){return ae(a,o,t.statements)},256:function(t,a,o){return k(a,t.label)||k(a,t.statement)},257:function(t,a,o){return k(a,t.expression)},258:function(t,a,o){return k(a,t.tryBlock)||k(a,t.catchClause)||k(a,t.finallyBlock)},299:function(t,a,o){return k(a,t.variableDeclaration)||k(a,t.block)},170:function(t,a,o){return k(a,t.expression)},263:ym,231:ym,264:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||ae(a,o,t.typeParameters)||ae(a,o,t.heritageClauses)||ae(a,o,t.members)},265:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||ae(a,o,t.typeParameters)||k(a,t.type)},266:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||ae(a,o,t.members)},306:function(t,a,o){return k(a,t.name)||k(a,t.initializer)},267:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.body)},271:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)||k(a,t.moduleReference)},272:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.importClause)||k(a,t.moduleSpecifier)||k(a,t.attributes)},273:function(t,a,o){return k(a,t.name)||k(a,t.namedBindings)},300:function(t,a,o){return ae(a,o,t.elements)},301:function(t,a,o){return k(a,t.name)||k(a,t.value)},270:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.name)},274:function(t,a,o){return k(a,t.name)},280:function(t,a,o){return k(a,t.name)},275:gm,279:gm,278:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.exportClause)||k(a,t.moduleSpecifier)||k(a,t.attributes)},276:bm,281:bm,277:function(t,a,o){return ae(a,o,t.modifiers)||k(a,t.expression)},228:function(t,a,o){return k(a,t.head)||ae(a,o,t.templateSpans)},239:function(t,a,o){return k(a,t.expression)||k(a,t.literal)},203:function(t,a,o){return k(a,t.head)||ae(a,o,t.templateSpans)},204:function(t,a,o){return k(a,t.type)||k(a,t.literal)},167:function(t,a,o){return k(a,t.expression)},298:function(t,a,o){return ae(a,o,t.types)},233:function(t,a,o){return k(a,t.expression)||ae(a,o,t.typeArguments)},283:function(t,a,o){return k(a,t.expression)},282:function(t,a,o){return ae(a,o,t.modifiers)},356:function(t,a,o){return ae(a,o,t.elements)},284:function(t,a,o){return k(a,t.openingElement)||ae(a,o,t.children)||k(a,t.closingElement)},288:function(t,a,o){return k(a,t.openingFragment)||ae(a,o,t.children)||k(a,t.closingFragment)},285:vm,286:vm,292:function(t,a,o){return ae(a,o,t.properties)},291:function(t,a,o){return k(a,t.name)||k(a,t.initializer)},293:function(t,a,o){return k(a,t.expression)},294:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.expression)},287:function(t,a,o){return k(a,t.tagName)},295:function(t,a,o){return k(a,t.namespace)||k(a,t.name)},190:Gi,191:Gi,309:Gi,315:Gi,314:Gi,316:Gi,318:Gi,317:function(t,a,o){return ae(a,o,t.parameters)||k(a,t.type)},320:function(t,a,o){return(typeof t.comment=="string"?void 0:ae(a,o,t.comment))||ae(a,o,t.tags)},347:function(t,a,o){return k(a,t.tagName)||k(a,t.name)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment))},310:function(t,a,o){return k(a,t.name)},311:function(t,a,o){return k(a,t.left)||k(a,t.right)},341:Tm,348:Tm,330:function(t,a,o){return k(a,t.tagName)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment))},329:function(t,a,o){return k(a,t.tagName)||k(a,t.class)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment))},328:function(t,a,o){return k(a,t.tagName)||k(a,t.class)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment))},345:function(t,a,o){return k(a,t.tagName)||k(a,t.constraint)||ae(a,o,t.typeParameters)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment))},346:function(t,a,o){return k(a,t.tagName)||(t.typeExpression&&t.typeExpression.kind===309?k(a,t.typeExpression)||k(a,t.fullName)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment)):k(a,t.fullName)||k(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment)))},338:function(t,a,o){return k(a,t.tagName)||k(a,t.fullName)||k(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ae(a,o,t.comment))},342:Yi,344:Yi,343:Yi,340:Yi,350:Yi,349:Yi,339:Yi,323:function(t,a,o){return qn(t.typeParameters,a)||qn(t.parameters,a)||k(a,t.type)},324:Dp,325:Dp,326:Dp,322:function(t,a,o){return qn(t.jsDocPropertyTags,a)},327:fi,332:fi,333:fi,334:fi,335:fi,336:fi,331:fi,337:fi,351:Y6,355:H6};function lm(e,t,a){return ae(t,a,e.typeParameters)||ae(t,a,e.parameters)||k(t,e.type)}function um(e,t,a){return ae(t,a,e.types)}function pm(e,t,a){return k(t,e.type)}function fm(e,t,a){return ae(t,a,e.elements)}function dm(e,t,a){return k(t,e.expression)||k(t,e.questionDotToken)||ae(t,a,e.typeArguments)||ae(t,a,e.arguments)}function mm(e,t,a){return ae(t,a,e.statements)}function hm(e,t,a){return k(t,e.label)}function ym(e,t,a){return ae(t,a,e.modifiers)||k(t,e.name)||ae(t,a,e.typeParameters)||ae(t,a,e.heritageClauses)||ae(t,a,e.members)}function gm(e,t,a){return ae(t,a,e.elements)}function bm(e,t,a){return k(t,e.propertyName)||k(t,e.name)}function vm(e,t,a){return k(t,e.tagName)||ae(t,a,e.typeArguments)||k(t,e.attributes)}function Gi(e,t,a){return k(t,e.type)}function Tm(e,t,a){return k(t,e.tagName)||(e.isNameFirst?k(t,e.name)||k(t,e.typeExpression):k(t,e.typeExpression)||k(t,e.name))||(typeof e.comment=="string"?void 0:ae(t,a,e.comment))}function Yi(e,t,a){return k(t,e.tagName)||k(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ae(t,a,e.comment))}function Dp(e,t,a){return k(t,e.name)}function fi(e,t,a){return k(t,e.tagName)||(typeof e.comment=="string"?void 0:ae(t,a,e.comment))}function Y6(e,t,a){return k(t,e.tagName)||k(t,e.importClause)||k(t,e.moduleSpecifier)||k(t,e.attributes)||(typeof e.comment=="string"?void 0:ae(t,a,e.comment))}function H6(e,t,a){return k(t,e.expression)}function Ht(e,t,a){if(e===void 0||e.kind<=165)return;let o=G6[e.kind];return o===void 0?void 0:o(e,t,a)}function xm(e,t,a){let o=Sm(e),m=[];for(;m.length=0;--C)o.push(v[C]),m.push(E)}else{let C=t(v,E);if(C){if(C==="skip")continue;return C}if(v.kind>=166)for(let c of Sm(v))o.push(c),m.push(v)}}}function Sm(e){let t=[];return Ht(e,a,a),t;function a(o){t.unshift(o)}}function yh(e){e.externalModuleIndicator=q6(e)}function gh(e,t,a,o=!1,m){var v,E;(v=cl)==null||v.push(cl.Phase.Parse,"createSourceFile",{path:e},!0),Ad("beforeParse");let C,{languageVersion:c,setExternalModuleIndicator:W,impliedNodeFormat:h,jsDocParsingMode:y}=typeof a=="object"?a:{languageVersion:a};if(c===100)C=Zi.parseSourceFile(e,t,c,void 0,o,6,Ga,y);else{let g=h===void 0?W:x=>(x.impliedNodeFormat=h,(W||yh)(x));C=Zi.parseSourceFile(e,t,c,void 0,o,m,g,y)}return Ad("afterParse"),Yy("Parse","beforeParse","afterParse"),(E=cl)==null||E.pop(),C}function bh(e){return e.externalModuleIndicator!==void 0}function X6(e,t,a,o=!1){let m=xl.updateSourceFile(e,t,a,o);return m.flags|=e.flags&12582912,m}var Zi;(e=>{var t=_f(99,!0),a=40960,o,m,v,E,C;function c(_){return sr++,_}var W={createBaseSourceFileNode:_=>c(new C(_,0,0)),createBaseIdentifierNode:_=>c(new v(_,0,0)),createBasePrivateIdentifierNode:_=>c(new E(_,0,0)),createBaseTokenNode:_=>c(new m(_,0,0)),createBaseNode:_=>c(new o(_,0,0))},h=wf(11,W),{createNodeArray:y,createNumericLiteral:g,createStringLiteral:x,createLiteralLikeNode:N,createIdentifier:te,createPrivateIdentifier:ue,createToken:ye,createArrayLiteralExpression:fe,createObjectLiteralExpression:M,createPropertyAccessExpression:ie,createPropertyAccessChain:Ce,createElementAccessExpression:V,createElementAccessChain:oe,createCallExpression:G,createCallChain:dt,createNewExpression:rr,createParenthesizedExpression:vn,createBlock:ir,createVariableStatement:Tn,createExpressionStatement:Mn,createIfStatement:Ge,createWhileStatement:ar,createForStatement:Or,createForOfStatement:Mt,createVariableDeclaration:Fn,createVariableDeclarationList:Ln}=h,Lt,vt,Qe,zn,$t,ct,at,Ut,Jt,lt,sr,mt,xn,yt,ln,nt,Bt=!0,an=!1;function _r(_,p,d,b,w=!1,I,$,se=0){var Z;if(I=Db(_,I),I===6){let ce=yr(_,p,d,b,w);return convertToJson(ce,(Z=ce.statements[0])==null?void 0:Z.expression,ce.parseDiagnostics,!1,void 0),ce.referencedFiles=bt,ce.typeReferenceDirectives=bt,ce.libReferenceDirectives=bt,ce.amdDependencies=bt,ce.hasNoDefaultLib=!1,ce.pragmas=by,ce}Vn(_,p,d,b,I,se);let ee=Mr(d,w,I,$||yh,se);return Wn(),ee}e.parseSourceFile=_r;function hr(_,p){Vn("",_,p,void 0,1,0),U();let d=Br(!0),b=u()===1&&!at.length;return Wn(),b?d:void 0}e.parseIsolatedEntityName=hr;function yr(_,p,d=2,b,w=!1){Vn(_,p,d,b,6,0),vt=nt,U();let I=L(),$,se;if(u()===1)$=Ct([],I,I),se=Wt();else{let ce;for(;u()!==1;){let Ae;switch(u()){case 23:Ae=oc();break;case 112:case 97:case 106:Ae=Wt();break;case 41:Y(()=>U()===9&&U()!==59)?Ae=Go():Ae=Ms();break;case 9:case 11:if(Y(()=>U()!==59)){Ae=$n();break}default:Ae=Ms();break}ce&&Qr(ce)?ce.push(Ae):ce?ce=[ce,Ae]:(ce=Ae,u()!==1&&Ee(A.Unexpected_token))}let je=Qr(ce)?P(fe(ce),I):B.checkDefined(ce),Re=Mn(je);P(Re,I),$=Ct([Re],I),se=Xn(1,A.Unexpected_token)}let Z=_e(_,2,6,!1,$,se,vt,Ga);w&&J(Z),Z.nodeCount=sr,Z.identifierCount=xn,Z.identifiers=mt,Z.parseDiagnostics=Wi(at,Z),Ut&&(Z.jsDocDiagnostics=Wi(Ut,Z));let ee=Z;return Wn(),ee}e.parseJsonText=yr;function Vn(_,p,d,b,w,I){switch(o=At.getNodeConstructor(),m=At.getTokenConstructor(),v=At.getIdentifierConstructor(),E=At.getPrivateIdentifierConstructor(),C=At.getSourceFileConstructor(),Lt=rg(_),Qe=p,zn=d,Jt=b,$t=w,ct=Yd(w),at=[],yt=0,mt=new Map,xn=0,sr=0,vt=0,Bt=!0,$t){case 1:case 2:nt=524288;break;case 6:nt=134742016;break;default:nt=0;break}an=!1,t.setText(Qe),t.setOnError(ti),t.setScriptTarget(zn),t.setLanguageVariant(ct),t.setScriptKind($t),t.setJSDocParsingMode(I)}function Wn(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Qe=void 0,zn=void 0,Jt=void 0,$t=void 0,ct=void 0,vt=0,at=void 0,Ut=void 0,yt=0,mt=void 0,ln=void 0,Bt=!0}function Mr(_,p,d,b,w){let I=K6(Lt);I&&(nt|=33554432),vt=nt,U();let $=wn(0,Kt);B.assert(u()===1);let se=qe(),Z=De(Wt(),se),ee=_e(Lt,_,d,I,$,Z,vt,b);return tv(ee,Qe),nv(ee,ce),ee.commentDirectives=t.getCommentDirectives(),ee.nodeCount=sr,ee.identifierCount=xn,ee.identifiers=mt,ee.parseDiagnostics=Wi(at,ee),ee.jsDocParsingMode=w,Ut&&(ee.jsDocDiagnostics=Wi(Ut,ee)),p&&J(ee),ee;function ce(je,Re,Ae){at.push(La(Lt,Qe,je,Re,Ae))}}let Gn=!1;function De(_,p){if(!p)return _;B.assert(!_.jsDoc);let d=Sy(k2(_,Qe),b=>Kc.parseJSDocComment(_,b.pos,b.end-b.pos));return d.length&&(_.jsDoc=d),Gn&&(Gn=!1,_.flags|=536870912),_}function gr(_){let p=Jt,d=xl.createSyntaxCursor(_);Jt={currentNode:ce};let b=[],w=at;at=[];let I=0,$=Z(_.statements,0);for(;$!==-1;){let je=_.statements[I],Re=_.statements[$];Nn(b,_.statements,I,$),I=ee(_.statements,$);let Ae=bp(w,hn=>hn.start>=je.pos),Yt=Ae>=0?bp(w,hn=>hn.start>=Re.pos,Ae):-1;Ae>=0&&Nn(at,w,Ae,Yt>=0?Yt:void 0),pn(()=>{let hn=nt;for(nt|=65536,t.resetTokenState(Re.pos),U();u()!==1;){let Zt=t.getTokenFullStart(),pr=is(0,Kt);if(b.push(pr),Zt===t.getTokenFullStart()&&U(),I>=0){let Rn=_.statements[I];if(pr.end===Rn.pos)break;pr.end>Rn.pos&&(I=ee(_.statements,I+1))}}nt=hn},2),$=I>=0?Z(_.statements,I):-1}if(I>=0){let je=_.statements[I];Nn(b,_.statements,I);let Re=bp(w,Ae=>Ae.start>=je.pos);Re>=0&&Nn(at,w,Re)}return Jt=p,h.updateSourceFile(_,gn(y(b),_.statements));function se(je){return!(je.flags&65536)&&!!(je.transformFlags&67108864)}function Z(je,Re){for(let Ae=Re;Ae118}function ve(){return u()===80?!0:u()===127&&we()||u()===135&&Ye()?!1:u()>118}function j(_,p,d=!0){return u()===_?(d&&U(),!0):(p?Ee(p):Ee(A._0_expected,it(_)),!1)}let ht=Object.keys(nf).filter(_=>_.length>2);function xt(_){if($1(_)){rt(Pr(Qe,_.template.pos),_.template.end,A.Module_declaration_names_may_only_use_or_quoted_strings);return}let p=Ze(_)?In(_):void 0;if(!p||!Sg(p,zn)){Ee(A._0_expected,it(27));return}let d=Pr(Qe,_.pos);switch(p){case"const":case"let":case"var":rt(d,_.end,A.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":jt(A.Interface_name_cannot_be_0,A.Interface_must_be_given_a_name,19);return;case"is":rt(d,t.getTokenStart(),A.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":jt(A.Namespace_name_cannot_be_0,A.Namespace_must_be_given_a_name,19);return;case"type":jt(A.Type_alias_name_cannot_be_0,A.Type_alias_must_be_given_a_name,64);return}let b=i_(p,ht,gt)??fn(p);if(b){rt(d,_.end,A.Unknown_keyword_or_identifier_Did_you_mean_0,b);return}u()!==0&&rt(d,_.end,A.Unexpected_keyword_or_identifier)}function jt(_,p,d){u()===d?Ee(p):Ee(_,t.getTokenValue())}function fn(_){for(let p of ht)if(_.length>p.length+2&&dl(_,p))return`${p} ${_.slice(p.length)}`}function Bl(_,p,d){if(u()===60&&!t.hasPrecedingLineBreak()){Ee(A.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(u()===21){Ee(A.Cannot_start_a_function_call_in_a_type_annotation),U();return}if(p&&!or()){d?Ee(A._0_expected,it(27)):Ee(A.Expected_for_property_initializer);return}if(!_a()){if(d){Ee(A._0_expected,it(27));return}xt(_)}}function D_(_){return u()===_?(Fe(),!0):(B.assert(Sp(_)),Ee(A._0_expected,it(_)),!1)}function Jr(_,p,d,b){if(u()===p){U();return}let w=Ee(A._0_expected,it(p));d&&w&&al(w,La(Lt,Qe,b,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,it(_),it(p)))}function Le(_){return u()===_?(U(),!0):!1}function ft(_){if(u()===_)return Wt()}function ql(_){if(u()===_)return zl()}function Xn(_,p,d){return ft(_)||Gt(_,!1,p||A._0_expected,d||it(_))}function Fl(_){let p=ql(_);return p||(B.assert(Sp(_)),Gt(_,!1,A._0_expected,it(_)))}function Wt(){let _=L(),p=u();return U(),P(ye(p),_)}function zl(){let _=L(),p=u();return Fe(),P(ye(p),_)}function or(){return u()===27?!0:u()===20||u()===1||t.hasPrecedingLineBreak()}function _a(){return or()?(u()===27&&U(),!0):!1}function Qt(){return _a()||j(27)}function Ct(_,p,d,b){let w=y(_,b);return bi(w,p,d??t.getTokenFullStart()),w}function P(_,p,d){return bi(_,p,d??t.getTokenFullStart()),nt&&(_.flags|=nt),an&&(an=!1,_.flags|=262144),_}function Gt(_,p,d,...b){p?Sn(t.getTokenFullStart(),0,d,...b):d&&Ee(d,...b);let w=L(),I=_===80?te("",void 0):Rd(_)?h.createTemplateLiteralLikeNode(_,"","",void 0):_===9?g("",void 0):_===11?x("",void 0):_===282?h.createMissingDeclaration():ye(_);return P(I,w)}function jr(_){let p=mt.get(_);return p===void 0&&mt.set(_,p=_),p}function cr(_,p,d){if(_){xn++;let se=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():L(),Z=u(),ee=jr(t.getTokenValue()),ce=t.hasExtendedUnicodeEscape();return Oe(),P(te(ee,Z,ce),se)}if(u()===81)return Ee(d||A.Private_identifiers_are_not_allowed_outside_class_bodies),cr(!0);if(u()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return cr(!0);xn++;let b=u()===1,w=t.isReservedWord(),I=t.getTokenText(),$=w?A.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:A.Identifier_expected;return Gt(80,b,p||$,I)}function es(_){return cr(ze(),void 0,_)}function St(_,p){return cr(ve(),_,p)}function Rt(_){return cr(wt(u()),_)}function ni(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ee(A.Unicode_escape_sequence_cannot_appear_here),cr(wt(u()))}function vr(){return wt(u())||u()===11||u()===9||u()===10}function P_(){return wt(u())||u()===11}function Vl(_){if(u()===11||u()===9||u()===10){let p=$n();return p.text=jr(p.text),p}return _&&u()===23?Wl():u()===81?oa():Rt()}function Rr(){return Vl(!0)}function Wl(){let _=L();j(23);let p=ut(Et);return j(24),P(h.createComputedPropertyName(p),_)}function oa(){let _=L(),p=ue(jr(t.getTokenValue()));return U(),P(p,_)}function ri(_){return u()===_&&pe(N_)}function ts(){return U(),t.hasPrecedingLineBreak()?!1:lr()}function N_(){switch(u()){case 87:return U()===94;case 95:return U(),u()===90?Y(Di):u()===156?Y(Gl):Ci();case 90:return Di();case 126:return U(),lr();case 139:case 153:return U(),Yl();default:return ts()}}function Ci(){return u()===60||u()!==42&&u()!==130&&u()!==19&&lr()}function Gl(){return U(),Ci()}function I_(){return Hr(u())&&pe(N_)}function lr(){return u()===23||u()===19||u()===42||u()===26||vr()}function Yl(){return u()===23||vr()}function Di(){return U(),u()===86||u()===100||u()===120||u()===60||u()===128&&Y(Tc)||u()===134&&Y(xc)}function ca(_,p){if(ua(_))return!0;switch(_){case 0:case 1:case 3:return!(u()===27&&p)&&Sc();case 2:return u()===84||u()===90;case 4:return Y(oo);case 5:return Y(Wu)||u()===27&&!p;case 6:return u()===23||vr();case 12:switch(u()){case 23:case 42:case 26:case 25:return!0;default:return vr()}case 18:return vr();case 9:return u()===23||u()===26||vr();case 24:return P_();case 7:return u()===19?Y(O_):p?ve()&&!ns():ws()&&!ns();case 8:return Aa();case 10:return u()===28||u()===26||Aa();case 19:return u()===103||u()===87||ve();case 15:switch(u()){case 28:case 25:return!0}case 11:return u()===26||xr();case 16:return ma(!1);case 17:return ma(!0);case 20:case 21:return u()===28||_i();case 22:return qc();case 23:return u()===161&&Y(Uu)?!1:u()===11?!0:wt(u());case 13:return wt(u())||u()===19;case 14:return!0;case 25:return!0;case 26:return B.fail("ParsingContext.Count used as a context");default:B.assertNever(_,"Non-exhaustive case in 'isListElement'.")}}function O_(){if(B.assert(u()===19),U()===20){let _=U();return _===28||_===19||_===96||_===119}return!0}function Pi(){return U(),ve()}function Hl(){return U(),wt(u())}function M_(){return U(),ig(u())}function ns(){return u()===119||u()===96?Y(L_):!1}function L_(){return U(),xr()}function Ni(){return U(),_i()}function la(_){if(u()===1)return!0;switch(_){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return u()===20;case 3:return u()===20||u()===84||u()===90;case 7:return u()===19||u()===96||u()===119;case 8:return rs();case 19:return u()===32||u()===21||u()===19||u()===96||u()===119;case 11:return u()===22||u()===27;case 15:case 21:case 10:return u()===24;case 17:case 16:case 18:return u()===22||u()===24;case 20:return u()!==28;case 22:return u()===19||u()===20;case 13:return u()===32||u()===44;case 14:return u()===30&&Y(Hs);default:return!1}}function rs(){return!!(or()||Fo(u())||u()===39)}function J_(){B.assert(yt,"Missing parsing context");for(let _=0;_<26;_++)if(yt&1<<_&&(ca(_,!0)||la(_)))return!0;return!1}function wn(_,p){let d=yt;yt|=1<<_;let b=[],w=L();for(;!la(_);){if(ca(_,!1)){b.push(is(_,p));continue}if(V_(_))break}return yt=d,Ct(b,w)}function is(_,p){let d=ua(_);return d?j_(d):p()}function ua(_,p){var d;if(!Jt||!R_(_)||an)return;let b=Jt.currentNode(p??t.getTokenFullStart());if(!(Qi(b)||Q6(b)||b1(b)||(b.flags&101441536)!==nt)&&U_(b,_))return bf(b)&&((d=b.jsDoc)!=null&&d.jsDocCache)&&(b.jsDoc.jsDocCache=void 0),b}function j_(_){return t.resetTokenState(_.end),U(),_}function R_(_){switch(_){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function U_(_,p){switch(p){case 5:return as(_);case 2:return B_(_);case 0:case 1:case 3:return ss(_);case 6:return q_(_);case 4:return _s(_);case 8:return F_(_);case 17:case 16:return z_(_)}return!1}function as(_){if(_)switch(_.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:let p=_;return!(p.name.kind===80&&p.name.escapedText==="constructor")}return!1}function B_(_){if(_)switch(_.kind){case 296:case 297:return!0}return!1}function ss(_){if(_)switch(_.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return!0}return!1}function q_(_){return _.kind===306}function _s(_){if(_)switch(_.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}function F_(_){return _.kind!==260?!1:_.initializer===void 0}function z_(_){return _.kind!==169?!1:_.initializer===void 0}function V_(_){return pa(_),J_()?!0:(U(),!1)}function pa(_){switch(_){case 0:return u()===90?Ee(A._0_expected,it(95)):Ee(A.Declaration_or_statement_expected);case 1:return Ee(A.Declaration_or_statement_expected);case 2:return Ee(A.case_or_default_expected);case 3:return Ee(A.Statement_expected);case 18:case 4:return Ee(A.Property_or_signature_expected);case 5:return Ee(A.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Ee(A.Enum_member_expected);case 7:return Ee(A.Expression_expected);case 8:return hi(u())?Ee(A._0_is_not_allowed_as_a_variable_declaration_name,it(u())):Ee(A.Variable_declaration_expected);case 9:return Ee(A.Property_destructuring_pattern_expected);case 10:return Ee(A.Array_element_destructuring_pattern_expected);case 11:return Ee(A.Argument_expression_expected);case 12:return Ee(A.Property_assignment_expected);case 15:return Ee(A.Expression_or_comma_expected);case 17:return Ee(A.Parameter_declaration_expected);case 16:return hi(u())?Ee(A._0_is_not_allowed_as_a_parameter_name,it(u())):Ee(A.Parameter_declaration_expected);case 19:return Ee(A.Type_parameter_declaration_expected);case 20:return Ee(A.Type_argument_expected);case 21:return Ee(A.Type_expected);case 22:return Ee(A.Unexpected_token_expected);case 23:return u()===161?Ee(A._0_expected,"}"):Ee(A.Identifier_expected);case 13:return Ee(A.Identifier_expected);case 14:return Ee(A.Identifier_expected);case 24:return Ee(A.Identifier_or_string_literal_expected);case 25:return Ee(A.Identifier_expected);case 26:return B.fail("ParsingContext.Count used as a context");default:B.assertNever(_)}}function dn(_,p,d){let b=yt;yt|=1<<_;let w=[],I=L(),$=-1;for(;;){if(ca(_,!1)){let se=t.getTokenFullStart(),Z=is(_,p);if(!Z){yt=b;return}if(w.push(Z),$=t.getTokenStart(),Le(28))continue;if($=-1,la(_))break;j(28,os(_)),d&&u()===27&&!t.hasPrecedingLineBreak()&&U(),se===t.getTokenFullStart()&&U();continue}if(la(_)||V_(_))break}return yt=b,Ct(w,I,void 0,$>=0)}function os(_){return _===6?A.An_enum_member_name_must_be_followed_by_a_or:void 0}function ur(){let _=Ct([],L());return _.isMissingList=!0,_}function W_(_){return!!_.isMissingList}function Ur(_,p,d,b){if(j(d)){let w=dn(_,p);return j(b),w}return ur()}function Br(_,p){let d=L(),b=_?Rt(p):St(p);for(;Le(25)&&u()!==30;)b=P(h.createQualifiedName(b,ii(_,!1,!0)),d);return b}function Xl(_,p){return P(h.createQualifiedName(_,p),_.pos)}function ii(_,p,d){if(t.hasPrecedingLineBreak()&&wt(u())&&Y(Js))return Gt(80,!0,A.Identifier_expected);if(u()===81){let b=oa();return p?b:Gt(80,!0,A.Identifier_expected)}return _?d?Rt():ni():St()}function $l(_){let p=L(),d=[],b;do b=X_(_),d.push(b);while(b.literal.kind===17);return Ct(d,p)}function fa(_){let p=L();return P(h.createTemplateExpression(Ii(_),$l(_)),p)}function G_(){let _=L();return P(h.createTemplateLiteralType(Ii(!1),Ql()),_)}function Ql(){let _=L(),p=[],d;do d=Y_(),p.push(d);while(d.literal.kind===17);return Ct(p,_)}function Y_(){let _=L();return P(h.createTemplateLiteralTypeSpan(_t(),H_(!1)),_)}function H_(_){return u()===20?(Nt(_),$_()):Xn(18,A._0_expected,it(20))}function X_(_){let p=L();return P(h.createTemplateSpan(ut(Et),H_(_)),p)}function $n(){return ai(u())}function Ii(_){!_&&t.getTokenFlags()&26656&&Nt(!1);let p=ai(u());return B.assert(p.kind===16,"Template head has wrong token kind"),p}function $_(){let _=ai(u());return B.assert(_.kind===17||_.kind===18,"Template fragment has wrong token kind"),_}function Kl(_){let p=_===15||_===18,d=t.getTokenText();return d.substring(1,d.length-(t.isUnterminated()?0:p?1:2))}function ai(_){let p=L(),d=Rd(_)?h.createTemplateLiteralLikeNode(_,t.getTokenValue(),Kl(_),t.getTokenFlags()&7176):_===9?g(t.getTokenValue(),t.getNumericLiteralFlags()):_===11?x(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):$g(_)?N(_,t.getTokenValue()):B.fail();return t.hasExtendedUnicodeEscape()&&(d.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(d.isUnterminated=!0),U(),P(d,p)}function si(){return Br(!0,A.Type_expected)}function Q_(){if(!t.hasPrecedingLineBreak()&&kt()===30)return Ur(20,_t,30,32)}function da(){let _=L();return P(h.createTypeReferenceNode(si(),Q_()),_)}function cs(_){switch(_.kind){case 183:return Qi(_.typeName);case 184:case 185:{let{parameters:p,type:d}=_;return W_(p)||cs(d)}case 196:return cs(_.type);default:return!1}}function Zl(_){return U(),P(h.createTypePredicateNode(void 0,_,_t()),_.pos)}function ls(){let _=L();return U(),P(h.createThisTypeNode(),_)}function eu(){let _=L();return U(),P(h.createJSDocAllType(),_)}function K_(){let _=L();return U(),P(h.createJSDocNonNullableType(Ts(),!1),_)}function tu(){let _=L();return U(),u()===28||u()===20||u()===22||u()===32||u()===64||u()===52?P(h.createJSDocUnknownType(),_):P(h.createJSDocNullableType(_t(),!1),_)}function Z_(){let _=L(),p=qe();if(pe(Gc)){let d=Qn(36),b=jn(59,!1);return De(P(h.createJSDocFunctionType(d,b),_),p)}return P(h.createTypeReferenceNode(Rt(),void 0),_)}function us(){let _=L(),p;return(u()===110||u()===105)&&(p=Rt(),j(59)),P(h.createParameterDeclaration(void 0,void 0,p,void 0,ps(),void 0),_)}function ps(){t.setSkipJsDocLeadingAsterisks(!0);let _=L();if(Le(144)){let b=h.createJSDocNamepathType(void 0);e:for(;;)switch(u()){case 20:case 1:case 28:case 5:break e;default:Fe()}return t.setSkipJsDocLeadingAsterisks(!1),P(b,_)}let p=Le(26),d=ga();return t.setSkipJsDocLeadingAsterisks(!1),p&&(d=P(h.createJSDocVariadicType(d),_)),u()===64?(U(),P(h.createJSDocOptionalType(d),_)):d}function eo(){let _=L();j(114);let p=Br(!0),d=t.hasPrecedingLineBreak()?void 0:Pa();return P(h.createTypeQueryNode(p,d),_)}function to(){let _=L(),p=En(!1,!0),d=St(),b,w;Le(96)&&(_i()||!xr()?b=_t():w=$o());let I=Le(64)?_t():void 0,$=h.createTypeParameterDeclaration(p,d,b,I);return $.expression=w,P($,_)}function mn(){if(u()===30)return Ur(19,to,30,32)}function ma(_){return u()===26||Aa()||Hr(u())||u()===60||_i(!_)}function no(_){let p=Ui(A.Private_identifiers_cannot_be_used_as_parameters);return v2(p)===0&&!nn(_)&&Hr(u())&&U(),p}function ro(){return ze()||u()===23||u()===19}function fs(_){return ds(_)}function io(_){return ds(_,!1)}function ds(_,p=!0){let d=L(),b=qe(),w=_?R(()=>En(!0)):Q(()=>En(!0));if(u()===110){let Z=h.createParameterDeclaration(w,void 0,cr(!0),void 0,Tr(),void 0),ee=Xp(w);return ee&&un(ee,A.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),De(P(Z,d),b)}let I=Bt;Bt=!1;let $=ft(26);if(!p&&!ro())return;let se=De(P(h.createParameterDeclaration(w,$,no(w),ft(58),Tr(),Sr()),d),b);return Bt=I,se}function jn(_,p){if(ao(_,p))return br(ga)}function ao(_,p){return _===39?(j(_),!0):Le(59)?!0:p&&u()===39?(Ee(A._0_expected,it(59)),U(),!0):!1}function ms(_,p){let d=we(),b=Ye();Xe(!!(_&1)),st(!!(_&2));let w=_&32?dn(17,us):dn(16,()=>p?fs(b):io(b));return Xe(d),st(b),w}function Qn(_){if(!j(21))return ur();let p=ms(_,!0);return j(22),p}function ha(){Le(28)||Qt()}function so(_){let p=L(),d=qe();_===180&&j(105);let b=mn(),w=Qn(4),I=jn(59,!0);ha();let $=_===179?h.createCallSignature(b,w,I):h.createConstructSignature(b,w,I);return De(P($,p),d)}function qr(){return u()===23&&Y(nu)}function nu(){if(U(),u()===26||u()===24)return!0;if(Hr(u())){if(U(),ve())return!0}else if(ve())U();else return!1;return u()===59||u()===28?!0:u()!==58?!1:(U(),u()===59||u()===28||u()===24)}function hs(_,p,d){let b=Ur(16,()=>fs(!1),23,24),w=Tr();ha();let I=h.createIndexSignature(d,b,w);return De(P(I,_),p)}function _o(_,p,d){let b=Rr(),w=ft(58),I;if(u()===21||u()===30){let $=mn(),se=Qn(4),Z=jn(59,!0);I=h.createMethodSignature(d,b,w,$,se,Z)}else{let $=Tr();I=h.createPropertySignature(d,b,w,$),u()===64&&(I.initializer=Sr())}return ha(),De(P(I,_),p)}function oo(){if(u()===21||u()===30||u()===139||u()===153)return!0;let _=!1;for(;Hr(u());)_=!0,U();return u()===23?!0:(vr()&&(_=!0,U()),_?u()===21||u()===30||u()===58||u()===59||u()===28||or():!1)}function Oi(){if(u()===21||u()===30)return so(179);if(u()===105&&Y(co))return so(180);let _=L(),p=qe(),d=En(!1);return ri(139)?Vr(_,p,d,177,4):ri(153)?Vr(_,p,d,178,4):qr()?hs(_,p,d):_o(_,p,d)}function co(){return U(),u()===21||u()===30}function lo(){return U()===25}function uo(){switch(U()){case 21:case 30:case 25:return!0}return!1}function po(){let _=L();return P(h.createTypeLiteralNode(fo()),_)}function fo(){let _;return j(19)?(_=wn(4,Oi),j(20)):_=ur(),_}function mo(){return U(),u()===40||u()===41?U()===148:(u()===148&&U(),u()===23&&Pi()&&U()===103)}function ru(){let _=L(),p=Rt();j(103);let d=_t();return P(h.createTypeParameterDeclaration(void 0,p,d,void 0),_)}function ho(){let _=L();j(19);let p;(u()===148||u()===40||u()===41)&&(p=Wt(),p.kind!==148&&j(148)),j(23);let d=ru(),b=Le(130)?_t():void 0;j(24);let w;(u()===58||u()===40||u()===41)&&(w=Wt(),w.kind!==58&&j(58));let I=Tr();Qt();let $=wn(4,Oi);return j(20),P(h.createMappedTypeNode(p,d,b,w,I,$),_)}function yo(){let _=L();if(Le(26))return P(h.createRestTypeNode(_t()),_);let p=_t();if(ch(p)&&p.pos===p.type.pos){let d=h.createOptionalTypeNode(p.type);return gn(d,p),d.flags=p.flags,d}return p}function ys(){return U()===59||u()===58&&U()===59}function iu(){return u()===26?wt(U())&&ys():wt(u())&&ys()}function go(){if(Y(iu)){let _=L(),p=qe(),d=ft(26),b=Rt(),w=ft(58);j(59);let I=yo(),$=h.createNamedTupleMember(d,b,w,I);return De(P($,_),p)}return yo()}function au(){let _=L();return P(h.createTupleTypeNode(Ur(21,go,23,24)),_)}function bo(){let _=L();j(21);let p=_t();return j(22),P(h.createParenthesizedType(p),_)}function su(){let _;if(u()===128){let p=L();U();let d=P(ye(128),p);_=Ct([d],p)}return _}function gs(){let _=L(),p=qe(),d=su(),b=Le(105);B.assert(!d||b,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let w=mn(),I=Qn(4),$=jn(39,!1),se=b?h.createConstructorTypeNode(d,w,I,$):h.createFunctionTypeNode(w,I,$);return De(P(se,_),p)}function vo(){let _=Wt();return u()===25?void 0:_}function bs(_){let p=L();_&&U();let d=u()===112||u()===97||u()===106?Wt():ai(u());return _&&(d=P(h.createPrefixUnaryExpression(41,d),p)),P(h.createLiteralTypeNode(d),p)}function _u(){return U(),u()===102}function vs(){vt|=4194304;let _=L(),p=Le(114);j(102),j(21);let d=_t(),b;if(Le(28)){let $=t.getTokenStart();j(19);let se=u();if(se===118||se===132?U():Ee(A._0_expected,it(118)),j(59),b=Xs(se,!0),!j(20)){let Z=Fa(at);Z&&Z.code===A._0_expected.code&&al(Z,La(Lt,Qe,$,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}j(22);let w=Le(25)?si():void 0,I=Q_();return P(h.createImportTypeNode(d,b,w,I,p),_)}function To(){return U(),u()===9||u()===10}function Ts(){switch(u()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return pe(vo)||da();case 67:t.reScanAsteriskEqualsToken();case 42:return eu();case 61:t.reScanQuestionToken();case 58:return tu();case 100:return Z_();case 54:return K_();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return bs();case 41:return Y(To)?bs(!0):da();case 116:return Wt();case 110:{let _=ls();return u()===142&&!t.hasPrecedingLineBreak()?Zl(_):_}case 114:return Y(_u)?vs():eo();case 19:return Y(mo)?ho():po();case 23:return au();case 21:return bo();case 102:return vs();case 131:return Y(Js)?No():da();case 16:return G_();default:return da()}}function _i(_){switch(u()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!_;case 41:return!_&&Y(To);case 21:return!_&&Y(xo);default:return ve()}}function xo(){return U(),u()===22||ma(!1)||_i()}function So(){let _=L(),p=Ts();for(;!t.hasPrecedingLineBreak();)switch(u()){case 54:U(),p=P(h.createJSDocNonNullableType(p,!0),_);break;case 58:if(Y(Ni))return p;U(),p=P(h.createJSDocNullableType(p,!0),_);break;case 23:if(j(23),_i()){let d=_t();j(24),p=P(h.createIndexedAccessTypeNode(p,d),_)}else j(24),p=P(h.createArrayTypeNode(p),_);break;default:return p}return p}function wo(_){let p=L();return j(_),P(h.createTypeOperatorNode(_,Eo()),p)}function ou(){if(Le(96)){let _=Jn(_t);if(We()||u()!==58)return _}}function ko(){let _=L(),p=St(),d=pe(ou),b=h.createTypeParameterDeclaration(void 0,p,d);return P(b,_)}function cu(){let _=L();return j(140),P(h.createInferTypeNode(ko()),_)}function Eo(){let _=u();switch(_){case 143:case 158:case 148:return wo(_);case 140:return cu()}return br(So)}function ya(_){if(Ss()){let p=gs(),d;return Pf(p)?d=_?A.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:A.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:d=_?A.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:A.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,un(p,d),p}}function Ao(_,p,d){let b=L(),w=_===52,I=Le(_),$=I&&ya(w)||p();if(u()===_||I){let se=[$];for(;Le(_);)se.push(ya(w)||p());$=P(d(Ct(se,b)),b)}return $}function xs(){return Ao(51,Eo,h.createIntersectionTypeNode)}function lu(){return Ao(52,xs,h.createUnionTypeNode)}function Co(){return U(),u()===105}function Ss(){return u()===30||u()===21&&Y(Do)?!0:u()===105||u()===128&&Y(Co)}function uu(){if(Hr(u())&&En(!1),ve()||u()===110)return U(),!0;if(u()===23||u()===19){let _=at.length;return Ui(),_===at.length}return!1}function Do(){return U(),!!(u()===22||u()===26||uu()&&(u()===59||u()===28||u()===58||u()===64||u()===22&&(U(),u()===39)))}function ga(){let _=L(),p=ve()&&pe(Po),d=_t();return p?P(h.createTypePredicateNode(void 0,p,d),_):d}function Po(){let _=St();if(u()===142&&!t.hasPrecedingLineBreak())return U(),_}function No(){let _=L(),p=Xn(131),d=u()===110?ls():St(),b=Le(142)?_t():void 0;return P(h.createTypePredicateNode(p,d,b),_)}function _t(){if(nt&81920)return Pt(81920,_t);if(Ss())return gs();let _=L(),p=lu();if(!We()&&!t.hasPrecedingLineBreak()&&Le(96)){let d=Jn(_t);j(58);let b=br(_t);j(59);let w=br(_t);return P(h.createConditionalTypeNode(p,d,b,w),_)}return p}function Tr(){return Le(59)?_t():void 0}function ws(){switch(u()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Y(uo);default:return ve()}}function xr(){if(ws())return!0;switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return zo()?!0:ve()}}function Io(){return u()!==19&&u()!==100&&u()!==86&&u()!==60&&xr()}function Et(){let _=et();_&&Ke(!1);let p=L(),d=Ft(!0),b;for(;b=ft(28);)d=As(d,b,Ft(!0),p);return _&&Ke(!0),d}function Sr(){return Le(64)?Ft(!0):void 0}function Ft(_){if(Oo())return Mo();let p=fu(_)||Uo(_);if(p)return p;let d=L(),b=qe(),w=Mi(0);return w.kind===80&&u()===39?Lo(d,w,_,b,void 0):Va(w)&&A1(Ve())?As(w,Wt(),Ft(_),d):du(w,d,_)}function Oo(){return u()===127?we()?!0:Y(js):!1}function pu(){return U(),!t.hasPrecedingLineBreak()&&ve()}function Mo(){let _=L();return U(),!t.hasPrecedingLineBreak()&&(u()===42||xr())?P(h.createYieldExpression(ft(42),Ft(!0)),_):P(h.createYieldExpression(void 0,void 0),_)}function Lo(_,p,d,b,w){B.assert(u()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let I=h.createParameterDeclaration(void 0,void 0,p,void 0,void 0,void 0);P(I,p.pos);let $=Ct([I],I.pos,I.end),se=Xn(39),Z=ks(!!w,d),ee=h.createArrowFunction(w,void 0,$,void 0,se,Z);return De(P(ee,_),b)}function fu(_){let p=Jo();if(p!==0)return p===1?qo(!0,!0):pe(()=>Ro(_))}function Jo(){return u()===21||u()===30||u()===134?Y(jo):u()===39?1:0}function jo(){if(u()===134&&(U(),t.hasPrecedingLineBreak()||u()!==21&&u()!==30))return 0;let _=u(),p=U();if(_===21){if(p===22)switch(U()){case 39:case 59:case 19:return 1;default:return 0}if(p===23||p===19)return 2;if(p===26)return 1;if(Hr(p)&&p!==134&&Y(Pi))return U()===130?0:1;if(!ve()&&p!==110)return 0;switch(U()){case 59:return 1;case 58:return U(),u()===59||u()===28||u()===64||u()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return B.assert(_===30),!ve()&&u()!==87?0:ct===1?Y(()=>{Le(87);let b=U();if(b===96)switch(U()){case 64:case 32:case 44:return!1;default:return!0}else if(b===28||b===64)return!0;return!1})?1:0:2}function Ro(_){let p=t.getTokenStart();if(ln!=null&&ln.has(p))return;let d=qo(!1,_);return d||(ln||(ln=new Set)).add(p),d}function Uo(_){if(u()===134&&Y(Bo)===1){let p=L(),d=qe(),b=Rc(),w=Mi(0);return Lo(p,w,_,d,b)}}function Bo(){if(u()===134){if(U(),t.hasPrecedingLineBreak()||u()===39)return 0;let _=Mi(0);if(!t.hasPrecedingLineBreak()&&_.kind===80&&u()===39)return 1}return 0}function qo(_,p){let d=L(),b=qe(),w=Rc(),I=nn(w,ol)?2:0,$=mn(),se;if(j(21)){if(_)se=ms(I,_);else{let Zt=ms(I,_);if(!Zt)return;se=Zt}if(!j(22)&&!_)return}else{if(!_)return;se=ur()}let Z=u()===59,ee=jn(59,!1);if(ee&&!_&&cs(ee))return;let ce=ee;for(;(ce==null?void 0:ce.kind)===196;)ce=ce.type;let je=ce&&lh(ce);if(!_&&u()!==39&&(je||u()!==19))return;let Re=u(),Ae=Xn(39),Yt=Re===39||Re===19?ks(nn(w,ol),p):St();if(!p&&Z&&u()!==59)return;let hn=h.createArrowFunction(w,$,se,ee,Ae,Yt);return De(P(hn,d),b)}function ks(_,p){if(u()===19)return Sa(_?2:0);if(u()!==27&&u()!==100&&u()!==86&&Sc()&&!Io())return Sa(16|(_?2:0));let d=Bt;Bt=!1;let b=_?R(()=>Ft(p)):Q(()=>Ft(p));return Bt=d,b}function du(_,p,d){let b=ft(58);if(!b)return _;let w;return P(h.createConditionalExpression(_,b,Pt(a,()=>Ft(!1)),w=Xn(59),Up(w)?Ft(d):Gt(80,!1,A._0_expected,it(59))),p)}function Mi(_){let p=L(),d=$o();return Es(_,d,p)}function Fo(_){return _===103||_===165}function Es(_,p,d){for(;;){Ve();let b=wp(u());if(!(u()===43?b>=_:b>_)||u()===103&&be())break;if(u()===130||u()===152){if(t.hasPrecedingLineBreak())break;{let I=u();U(),p=I===152?Vo(p,_t()):Wo(p,_t())}}else p=As(p,Wt(),Mi(b),d)}return p}function zo(){return be()&&u()===103?!1:wp(u())>0}function Vo(_,p){return P(h.createSatisfiesExpression(_,p),_.pos)}function As(_,p,d,b){return P(h.createBinaryExpression(_,p,d),b)}function Wo(_,p){return P(h.createAsExpression(_,p),_.pos)}function Go(){let _=L();return P(h.createPrefixUnaryExpression(u(),Me(wr)),_)}function Yo(){let _=L();return P(h.createDeleteExpression(Me(wr)),_)}function mu(){let _=L();return P(h.createTypeOfExpression(Me(wr)),_)}function Ho(){let _=L();return P(h.createVoidExpression(Me(wr)),_)}function hu(){return u()===135?Ye()?!0:Y(js):!1}function Xo(){let _=L();return P(h.createAwaitExpression(Me(wr)),_)}function $o(){if(yu()){let d=L(),b=ba();return u()===43?Es(wp(u()),b,d):b}let _=u(),p=wr();if(u()===43){let d=Pr(Qe,p.pos),{end:b}=p;p.kind===216?rt(d,b,A.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(B.assert(Sp(_)),rt(d,b,A.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,it(_)))}return p}function wr(){switch(u()){case 40:case 41:case 55:case 54:return Go();case 91:return Yo();case 114:return mu();case 116:return Ho();case 30:return ct===1?Ji(!0,void 0,void 0,!0):tc();case 135:if(hu())return Xo();default:return ba()}}function yu(){switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ct!==1)return!1;default:return!0}}function ba(){if(u()===46||u()===47){let p=L();return P(h.createPrefixUnaryExpression(u(),Me(Li)),p)}else if(ct===1&&u()===30&&Y(M_))return Ji(!0);let _=Li();if(B.assert(Va(_)),(u()===46||u()===47)&&!t.hasPrecedingLineBreak()){let p=u();return U(),P(h.createPostfixUnaryExpression(_,p),_.pos)}return _}function Li(){let _=L(),p;return u()===102?Y(co)?(vt|=4194304,p=Wt()):Y(lo)?(U(),U(),p=P(h.createMetaProperty(102,Rt()),_),vt|=8388608):p=va():p=u()===108?Qo():va(),Is(_,p)}function va(){let _=L(),p=Os();return _n(_,p,!0)}function Qo(){let _=L(),p=Wt();if(u()===30){let d=L(),b=pe(xa);b!==void 0&&(rt(d,L(),A.super_may_not_use_type_arguments),kn()||(p=h.createExpressionWithTypeArguments(p,b)))}return u()===21||u()===25||u()===23?p:(Xn(25,A.super_must_be_followed_by_an_argument_list_or_member_access),P(ie(p,ii(!0,!0,!0)),_))}function Ji(_,p,d,b=!1){let w=L(),I=vu(_),$;if(I.kind===286){let se=Ta(I),Z,ee=se[se.length-1];if((ee==null?void 0:ee.kind)===284&&!di(ee.openingElement.tagName,ee.closingElement.tagName)&&di(I.tagName,ee.closingElement.tagName)){let ce=ee.children.end,je=P(h.createJsxElement(ee.openingElement,ee.children,P(h.createJsxClosingElement(P(te(""),ce,ce)),ce,ce)),ee.openingElement.pos,ce);se=Ct([...se.slice(0,se.length-1),je],se.pos,ce),Z=ee.closingElement}else Z=ec(I,_),di(I.tagName,Z.tagName)||(d&&zp(d)&&di(Z.tagName,d.tagName)?un(I.tagName,A.JSX_element_0_has_no_corresponding_closing_tag,s_(Qe,I.tagName)):un(Z.tagName,A.Expected_corresponding_JSX_closing_tag_for_0,s_(Qe,I.tagName)));$=P(h.createJsxElement(I,se,Z),w)}else I.kind===289?$=P(h.createJsxFragment(I,Ta(I),wu(_)),w):(B.assert(I.kind===285),$=I);if(!b&&_&&u()===30){let se=typeof p>"u"?$.pos:p,Z=pe(()=>Ji(!0,se));if(Z){let ee=Gt(28,!1);return Xd(ee,Z.pos,0),rt(Pr(Qe,se),Z.end,A.JSX_expressions_must_have_one_parent_element),P(h.createBinaryExpression($,ee,Z),w)}}return $}function Cs(){let _=L(),p=h.createJsxText(t.getTokenValue(),lt===13);return lt=t.scanJsxToken(),P(p,_)}function gu(_,p){switch(p){case 1:if(h6(_))un(_,A.JSX_fragment_has_no_corresponding_closing_tag);else{let d=_.tagName,b=Math.min(Pr(Qe,d.pos),d.end);rt(b,d.end,A.JSX_element_0_has_no_corresponding_closing_tag,s_(Qe,_.tagName))}return;case 31:case 7:return;case 12:case 13:return Cs();case 19:return Ko(!1);case 30:return Ji(!1,void 0,_);default:return B.assertNever(p)}}function Ta(_){let p=[],d=L(),b=yt;for(yt|=16384;;){let w=gu(_,lt=t.reScanJsxToken());if(!w||(p.push(w),zp(_)&&(w==null?void 0:w.kind)===284&&!di(w.openingElement.tagName,w.closingElement.tagName)&&di(_.tagName,w.closingElement.tagName)))break}return yt=b,Ct(p,d)}function bu(){let _=L();return P(h.createJsxAttributes(wn(13,Zo)),_)}function vu(_){let p=L();if(j(30),u()===32)return Hn(),P(h.createJsxOpeningFragment(),p);let d=Ds(),b=(nt&524288)===0?Pa():void 0,w=bu(),I;return u()===32?(Hn(),I=h.createJsxOpeningElement(d,b,w)):(j(44),j(32,void 0,!1)&&(_?U():Hn()),I=h.createJsxSelfClosingElement(d,b,w)),P(I,p)}function Ds(){let _=L(),p=Tu();if(ah(p))return p;let d=p;for(;Le(25);)d=P(ie(d,ii(!0,!1,!1)),_);return d}function Tu(){let _=L();qt();let p=u()===110,d=ni();return Le(59)?(qt(),P(h.createJsxNamespacedName(d,ni()),_)):p?P(h.createToken(110),_):d}function Ko(_){let p=L();if(!j(19))return;let d,b;return u()!==20&&(_||(d=ft(26)),b=Et()),_?j(20):j(20,void 0,!1)&&Hn(),P(h.createJsxExpression(d,b),p)}function Zo(){if(u()===19)return Su();let _=L();return P(h.createJsxAttribute(xu(),Ps()),_)}function Ps(){if(u()===64){if(Ai()===11)return $n();if(u()===19)return Ko(!0);if(u()===30)return Ji(!0);Ee(A.or_JSX_element_expected)}}function xu(){let _=L();qt();let p=ni();return Le(59)?(qt(),P(h.createJsxNamespacedName(p,ni()),_)):p}function Su(){let _=L();j(19),j(26);let p=Et();return j(20),P(h.createJsxSpreadAttribute(p),_)}function ec(_,p){let d=L();j(31);let b=Ds();return j(32,void 0,!1)&&(p||!di(_.tagName,b)?U():Hn()),P(h.createJsxClosingElement(b),d)}function wu(_){let p=L();return j(31),j(32,A.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(_?U():Hn()),P(h.createJsxJsxClosingFragment(),p)}function tc(){B.assert(ct!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let _=L();j(30);let p=_t();j(32);let d=wr();return P(h.createTypeAssertion(p,d),_)}function ku(){return U(),wt(u())||u()===23||kn()}function nc(){return u()===29&&Y(ku)}function Ns(_){if(_.flags&64)return!0;if(pl(_)){let p=_.expression;for(;pl(p)&&!(p.flags&64);)p=p.expression;if(p.flags&64){for(;pl(_);)_.flags|=64,_=_.expression;return!0}}return!1}function rc(_,p,d){let b=ii(!0,!0,!0),w=d||Ns(p),I=w?Ce(p,d,b):ie(p,b);if(w&&vi(I.name)&&un(I.name,A.An_optional_chain_cannot_contain_private_identifiers),eh(p)&&p.typeArguments){let $=p.typeArguments.pos-1,se=Pr(Qe,p.typeArguments.end)+1;rt($,se,A.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return P(I,_)}function Eu(_,p,d){let b;if(u()===24)b=Gt(80,!0,A.An_element_access_expression_should_take_an_argument);else{let I=ut(Et);Al(I)&&(I.text=jr(I.text)),b=I}j(24);let w=d||Ns(p)?oe(p,d,b):V(p,b);return P(w,_)}function _n(_,p,d){for(;;){let b,w=!1;if(d&&nc()?(b=Xn(29),w=wt(u())):w=Le(25),w){p=rc(_,p,b);continue}if((b||!et())&&Le(23)){p=Eu(_,p,b);continue}if(kn()){p=!b&&p.kind===233?Fr(_,p.expression,b,p.typeArguments):Fr(_,p,b,void 0);continue}if(!b){if(u()===54&&!t.hasPrecedingLineBreak()){U(),p=P(h.createNonNullExpression(p),_);continue}let I=pe(xa);if(I){p=P(h.createExpressionWithTypeArguments(p,I),_);continue}}return p}}function kn(){return u()===15||u()===16}function Fr(_,p,d,b){let w=h.createTaggedTemplateExpression(p,b,u()===15?(Nt(!0),$n()):fa(!0));return(d||p.flags&64)&&(w.flags|=64),w.questionDotToken=d,P(w,_)}function Is(_,p){for(;;){p=_n(_,p,!0);let d,b=ft(29);if(b&&(d=pe(xa),kn())){p=Fr(_,p,b,d);continue}if(d||u()===21){!b&&p.kind===233&&(d=p.typeArguments,p=p.expression);let w=ic(),I=b||Ns(p)?dt(p,b,d,w):G(p,d,w);p=P(I,_);continue}if(b){let w=Gt(80,!1,A.Identifier_expected);p=P(Ce(p,b,w),_)}break}return p}function ic(){j(21);let _=dn(11,_c);return j(22),_}function xa(){if((nt&524288)!==0||kt()!==30)return;U();let _=dn(20,_t);if(Ve()===32)return U(),_&&Au()?_:void 0}function Au(){switch(u()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||zo()||!xr()}function Os(){switch(u()){case 15:t.getTokenFlags()&26656&&Nt(!1);case 9:case 10:case 11:return $n();case 110:case 108:case 106:case 112:case 97:return Wt();case 21:return Cu();case 23:return oc();case 19:return Ms();case 134:if(!Y(xc))break;return Ls();case 60:return Uc();case 86:return Xu();case 100:return Ls();case 105:return lc();case 44:case 69:if($e()===14)return $n();break;case 16:return fa(!1);case 81:return oa()}return St(A.Expression_expected)}function Cu(){let _=L(),p=qe();j(21);let d=ut(Et);return j(22),De(P(vn(d),_),p)}function ac(){let _=L();j(26);let p=Ft(!0);return P(h.createSpreadElement(p),_)}function sc(){return u()===26?ac():u()===28?P(h.createOmittedExpression(),L()):Ft(!0)}function _c(){return Pt(a,sc)}function oc(){let _=L(),p=t.getTokenStart(),d=j(23),b=t.hasPrecedingLineBreak(),w=dn(15,sc);return Jr(23,24,d,p),P(fe(w,b),_)}function cc(){let _=L(),p=qe();if(ft(26)){let ce=Ft(!0);return De(P(h.createSpreadAssignment(ce),_),p)}let d=En(!0);if(ri(139))return Vr(_,p,d,177,0);if(ri(153))return Vr(_,p,d,178,0);let b=ft(42),w=ve(),I=Rr(),$=ft(58),se=ft(54);if(b||u()===21||u()===30)return zs(_,p,d,b,I,$,se);let Z;if(w&&u()!==59){let ce=ft(64),je=ce?ut(()=>Ft(!0)):void 0;Z=h.createShorthandPropertyAssignment(I,je),Z.equalsToken=ce}else{j(59);let ce=ut(()=>Ft(!0));Z=h.createPropertyAssignment(I,ce)}return Z.modifiers=d,Z.questionToken=$,Z.exclamationToken=se,De(P(Z,_),p)}function Ms(){let _=L(),p=t.getTokenStart(),d=j(19),b=t.hasPrecedingLineBreak(),w=dn(12,cc,!0);return Jr(19,20,d,p),P(M(w,b),_)}function Ls(){let _=et();Ke(!1);let p=L(),d=qe(),b=En(!1);j(100);let w=ft(42),I=w?1:0,$=nn(b,ol)?2:0,se=I&&$?K(ji):I?Yn(ji):$?R(ji):ji(),Z=mn(),ee=Qn(I|$),ce=jn(59,!1),je=Sa(I|$);Ke(_);let Re=h.createFunctionExpression(b,w,se,Z,ee,ce,je);return De(P(Re,p),d)}function ji(){return ze()?es():void 0}function lc(){let _=L();if(j(105),Le(25)){let I=Rt();return P(h.createMetaProperty(105,I),_)}let p=L(),d=_n(p,Os(),!1),b;d.kind===233&&(b=d.typeArguments,d=d.expression),u()===29&&Ee(A.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,s_(Qe,d));let w=u()===21?ic():void 0;return P(rr(d,b,w),_)}function zr(_,p){let d=L(),b=qe(),w=t.getTokenStart(),I=j(19,p);if(I||_){let $=t.hasPrecedingLineBreak(),se=wn(1,Kt);Jr(19,20,I,w);let Z=De(P(ir(se,$),d),b);return u()===64&&(Ee(A.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),U()),Z}else{let $=ur();return De(P(ir($,void 0),d),b)}}function Sa(_,p){let d=we();Xe(!!(_&1));let b=Ye();st(!!(_&2));let w=Bt;Bt=!1;let I=et();I&&Ke(!1);let $=zr(!!(_&16),p);return I&&Ke(!0),Bt=w,Xe(d),st(b),$}function uc(){let _=L(),p=qe();return j(27),De(P(h.createEmptyStatement(),_),p)}function Du(){let _=L(),p=qe();j(101);let d=t.getTokenStart(),b=j(21),w=ut(Et);Jr(21,22,b,d);let I=Kt(),$=Le(93)?Kt():void 0;return De(P(Ge(w,I,$),_),p)}function pc(){let _=L(),p=qe();j(92);let d=Kt();j(117);let b=t.getTokenStart(),w=j(21),I=ut(Et);return Jr(21,22,w,b),Le(27),De(P(h.createDoStatement(d,I),_),p)}function Pu(){let _=L(),p=qe();j(117);let d=t.getTokenStart(),b=j(21),w=ut(Et);Jr(21,22,b,d);let I=Kt();return De(P(ar(w,I),_),p)}function fc(){let _=L(),p=qe();j(99);let d=ft(135);j(21);let b;u()!==27&&(u()===115||u()===121||u()===87||u()===160&&Y(kc)||u()===135&&Y(Ec)?b=Fs(!0):b=Lr(Et));let w;if(d?j(165):Le(165)){let I=ut(()=>Ft(!0));j(22),w=Mt(d,b,I,Kt())}else if(Le(103)){let I=ut(Et);j(22),w=h.createForInStatement(b,I,Kt())}else{j(27);let I=u()!==27&&u()!==22?ut(Et):void 0;j(27);let $=u()!==22?ut(Et):void 0;j(22),w=Or(b,I,$,Kt())}return De(P(w,_),p)}function dc(_){let p=L(),d=qe();j(_===252?83:88);let b=or()?void 0:St();Qt();let w=_===252?h.createBreakStatement(b):h.createContinueStatement(b);return De(P(w,p),d)}function mc(){let _=L(),p=qe();j(107);let d=or()?void 0:ut(Et);return Qt(),De(P(h.createReturnStatement(d),_),p)}function Nu(){let _=L(),p=qe();j(118);let d=t.getTokenStart(),b=j(21),w=ut(Et);Jr(21,22,b,d);let I=Tt(67108864,Kt);return De(P(h.createWithStatement(w,I),_),p)}function hc(){let _=L(),p=qe();j(84);let d=ut(Et);j(59);let b=wn(3,Kt);return De(P(h.createCaseClause(d,b),_),p)}function Iu(){let _=L();j(90),j(59);let p=wn(3,Kt);return P(h.createDefaultClause(p),_)}function Ou(){return u()===84?hc():Iu()}function yc(){let _=L();j(19);let p=wn(2,Ou);return j(20),P(h.createCaseBlock(p),_)}function Mu(){let _=L(),p=qe();j(109),j(21);let d=ut(Et);j(22);let b=yc();return De(P(h.createSwitchStatement(d,b),_),p)}function gc(){let _=L(),p=qe();j(111);let d=t.hasPrecedingLineBreak()?void 0:ut(Et);return d===void 0&&(xn++,d=P(te(""),L())),_a()||xt(d),De(P(h.createThrowStatement(d),_),p)}function Lu(){let _=L(),p=qe();j(113);let d=zr(!1),b=u()===85?bc():void 0,w;return(!b||u()===98)&&(j(98,A.catch_or_finally_expected),w=zr(!1)),De(P(h.createTryStatement(d,b,w),_),p)}function bc(){let _=L();j(85);let p;Le(21)?(p=qs(),j(22)):p=void 0;let d=zr(!1);return P(h.createCatchClause(p,d),_)}function Ju(){let _=L(),p=qe();return j(89),Qt(),De(P(h.createDebuggerStatement(),_),p)}function vc(){let _=L(),p=qe(),d,b=u()===21,w=ut(Et);return Ze(w)&&Le(59)?d=h.createLabeledStatement(w,Kt()):(_a()||xt(w),d=Mn(w),b&&(p=!1)),De(P(d,_),p)}function Js(){return U(),wt(u())&&!t.hasPrecedingLineBreak()}function Tc(){return U(),u()===86&&!t.hasPrecedingLineBreak()}function xc(){return U(),u()===100&&!t.hasPrecedingLineBreak()}function js(){return U(),(wt(u())||u()===9||u()===10||u()===11)&&!t.hasPrecedingLineBreak()}function ju(){for(;;)switch(u()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Us();case 135:return wa();case 120:case 156:return pu();case 144:case 145:return Dc();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let _=u();if(U(),t.hasPrecedingLineBreak())return!1;if(_===138&&u()===156)return!0;continue;case 162:return U(),u()===19||u()===80||u()===95;case 102:return U(),u()===11||u()===42||u()===19||wt(u());case 95:let p=U();if(p===156&&(p=Y(U)),p===64||p===42||p===19||p===90||p===130||p===60)return!0;continue;case 126:U();continue;default:return!1}}function Ri(){return Y(ju)}function Sc(){switch(u()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Ri()||Y(uo);case 87:case 95:return Ri();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Ri()||!Y(Js);default:return xr()}}function wc(){return U(),ze()||u()===19||u()===23}function Ru(){return Y(wc)}function kc(){return Rs(!0)}function Rs(_){return U(),_&&u()===165?!1:(ze()||u()===19)&&!t.hasPrecedingLineBreak()}function Us(){return Y(Rs)}function Ec(_){return U()===160?Rs(_):!1}function wa(){return Y(Ec)}function Kt(){switch(u()){case 27:return uc();case 19:return zr(!1);case 115:return oi(L(),qe(),void 0);case 121:if(Ru())return oi(L(),qe(),void 0);break;case 135:if(wa())return oi(L(),qe(),void 0);break;case 160:if(Us())return oi(L(),qe(),void 0);break;case 100:return Oc(L(),qe(),void 0);case 86:return Bc(L(),qe(),void 0);case 101:return Du();case 92:return pc();case 117:return Pu();case 99:return fc();case 88:return dc(251);case 83:return dc(252);case 107:return mc();case 118:return Nu();case 109:return Mu();case 111:return gc();case 113:case 85:case 98:return Lu();case 89:return Ju();case 60:return Ac();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Ri())return Ac();break}return vc()}function Bs(_){return _.kind===138}function Ac(){let _=L(),p=qe(),d=En(!0);if(nn(d,Bs)){let w=ka(_);if(w)return w;for(let I of d)I.flags|=33554432;return Tt(33554432,()=>Cc(_,p,d))}else return Cc(_,p,d)}function ka(_){return Tt(33554432,()=>{let p=ua(yt,_);if(p)return j_(p)})}function Cc(_,p,d){switch(u()){case 115:case 121:case 87:case 160:case 135:return oi(_,p,d);case 100:return Oc(_,p,d);case 86:return Bc(_,p,d);case 120:return zc(_,p,d);case 156:return ep(_,p,d);case 94:return Gs(_,p,d);case 162:case 144:case 145:return np(_,p,d);case 102:return ap(_,p,d);case 95:switch(U(),u()){case 90:case 64:return Qc(_,p,d);case 130:return ip(_,p,d);default:return dp(_,p,d)}default:if(d){let b=Gt(282,!0,A.Declaration_expected);return qp(b,_),b.modifiers=d,b}return}}function Uu(){return U()===11}function Bu(){return U(),u()===161||u()===64}function Dc(){return U(),!t.hasPrecedingLineBreak()&&(ve()||u()===11)}function Ea(_,p){if(u()!==19){if(_&4){ha();return}if(or()){Qt();return}}return Sa(_,p)}function Pc(){let _=L();if(u()===28)return P(h.createOmittedExpression(),_);let p=ft(26),d=Ui(),b=Sr();return P(h.createBindingElement(p,void 0,d,b),_)}function qu(){let _=L(),p=ft(26),d=ze(),b=Rr(),w;d&&u()!==59?(w=b,b=void 0):(j(59),w=Ui());let I=Sr();return P(h.createBindingElement(p,b,w,I),_)}function Nc(){let _=L();j(19);let p=ut(()=>dn(9,qu));return j(20),P(h.createObjectBindingPattern(p),_)}function Fu(){let _=L();j(23);let p=ut(()=>dn(10,Pc));return j(24),P(h.createArrayBindingPattern(p),_)}function Aa(){return u()===19||u()===23||u()===81||ze()}function Ui(_){return u()===23?Fu():u()===19?Nc():es(_)}function Ic(){return qs(!0)}function qs(_){let p=L(),d=qe(),b=Ui(A.Private_identifiers_are_not_allowed_in_variable_declarations),w;_&&b.kind===80&&u()===54&&!t.hasPrecedingLineBreak()&&(w=Wt());let I=Tr(),$=Fo(u())?void 0:Sr(),se=Fn(b,w,I,$);return De(P(se,p),d)}function Fs(_){let p=L(),d=0;switch(u()){case 115:break;case 121:d|=1;break;case 87:d|=2;break;case 160:d|=4;break;case 135:B.assert(wa()),d|=6,U();break;default:B.fail()}U();let b;if(u()===165&&Y(zu))b=ur();else{let w=be();Te(_),b=dn(8,_?qs:Ic),Te(w)}return P(Ln(b,d),p)}function zu(){return Pi()&&U()===22}function oi(_,p,d){let b=Fs(!1);Qt();let w=Tn(d,b);return De(P(w,_),p)}function Oc(_,p,d){let b=Ye(),w=Bn(d);j(100);let I=ft(42),$=w&2048?ji():es(),se=I?1:0,Z=w&1024?2:0,ee=mn();w&32&&st(!0);let ce=Qn(se|Z),je=jn(59,!1),Re=Ea(se|Z,A.or_expected);st(b);let Ae=h.createFunctionDeclaration(d,I,$,ee,ce,je,Re);return De(P(Ae,_),p)}function Mc(){if(u()===137)return j(137);if(u()===11&&Y(U)===21)return pe(()=>{let _=$n();return _.text==="constructor"?_:void 0})}function Vu(_,p,d){return pe(()=>{if(Mc()){let b=mn(),w=Qn(0),I=jn(59,!1),$=Ea(0,A.or_expected),se=h.createConstructorDeclaration(d,w,$);return se.typeParameters=b,se.type=I,De(P(se,_),p)}})}function zs(_,p,d,b,w,I,$,se){let Z=b?1:0,ee=nn(d,ol)?2:0,ce=mn(),je=Qn(Z|ee),Re=jn(59,!1),Ae=Ea(Z|ee,se),Yt=h.createMethodDeclaration(d,b,w,I,ce,je,Re,Ae);return Yt.exclamationToken=$,De(P(Yt,_),p)}function Lc(_,p,d,b,w){let I=!w&&!t.hasPrecedingLineBreak()?ft(54):void 0,$=Tr(),se=Pt(90112,Sr);Bl(b,$,se);let Z=h.createPropertyDeclaration(d,b,w||I,$,se);return De(P(Z,_),p)}function Ca(_,p,d){let b=ft(42),w=Rr(),I=ft(58);return b||u()===21||u()===30?zs(_,p,d,b,w,I,void 0,A.or_expected):Lc(_,p,d,w,I)}function Vr(_,p,d,b,w){let I=Rr(),$=mn(),se=Qn(0),Z=jn(59,!1),ee=Ea(w),ce=b===177?h.createGetAccessorDeclaration(d,I,se,Z,ee):h.createSetAccessorDeclaration(d,I,se,ee);return ce.typeParameters=$,v_(ce)&&(ce.type=Z),De(P(ce,_),p)}function Wu(){let _;if(u()===60)return!0;for(;Hr(u());){if(_=u(),Zg(_))return!0;U()}if(u()===42||(vr()&&(_=u(),U()),u()===23))return!0;if(_!==void 0){if(!hi(_)||_===153||_===139)return!0;switch(u()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return or()}}return!1}function Jc(_,p,d){Xn(126);let b=Gu(),w=De(P(h.createClassStaticBlockDeclaration(b),_),p);return w.modifiers=d,w}function Gu(){let _=we(),p=Ye();Xe(!1),st(!0);let d=zr(!1);return Xe(_),st(p),d}function Yu(){if(Ye()&&u()===135){let _=L(),p=St(A.Expression_expected);U();let d=_n(_,p,!0);return Is(_,d)}return Li()}function Vs(){let _=L();if(!Le(60))return;let p=Ei(Yu);return P(h.createDecorator(p),_)}function jc(_,p,d){let b=L(),w=u();if(u()===87&&p){if(!pe(ts))return}else{if(d&&u()===126&&Y(Yc))return;if(_&&u()===126)return;if(!I_())return}return P(ye(w),b)}function En(_,p,d){let b=L(),w,I,$,se=!1,Z=!1,ee=!1;if(_&&u()===60)for(;I=Vs();)w=Dn(w,I);for(;$=jc(se,p,d);)$.kind===126&&(se=!0),w=Dn(w,$),Z=!0;if(Z&&_&&u()===60)for(;I=Vs();)w=Dn(w,I),ee=!0;if(ee)for(;$=jc(se,p,d);)$.kind===126&&(se=!0),w=Dn(w,$);return w&&Ct(w,b)}function Rc(){let _;if(u()===134){let p=L();U();let d=P(ye(134),p);_=Ct([d],p)}return _}function Hu(){let _=L(),p=qe();if(u()===27)return U(),De(P(h.createSemicolonClassElement(),_),p);let d=En(!0,!0,!0);if(u()===126&&Y(Yc))return Jc(_,p,d);if(ri(139))return Vr(_,p,d,177,0);if(ri(153))return Vr(_,p,d,178,0);if(u()===137||u()===11){let b=Vu(_,p,d);if(b)return b}if(qr())return hs(_,p,d);if(wt(u())||u()===11||u()===9||u()===10||u()===42||u()===23)if(nn(d,Bs)){for(let w of d)w.flags|=33554432;return Tt(33554432,()=>Ca(_,p,d))}else return Ca(_,p,d);if(d){let b=Gt(80,!0,A.Declaration_expected);return Lc(_,p,d,b,void 0)}return B.fail("Should not have attempted to parse class member declaration.")}function Uc(){let _=L(),p=qe(),d=En(!0);if(u()===86)return Da(_,p,d,231);let b=Gt(282,!0,A.Expression_expected);return qp(b,_),b.modifiers=d,b}function Xu(){return Da(L(),qe(),void 0,231)}function Bc(_,p,d){return Da(_,p,d,263)}function Da(_,p,d,b){let w=Ye();j(86);let I=$u(),$=mn();nn(d,Zb)&&st(!0);let se=Ws(),Z;j(19)?(Z=Fc(),j(20)):Z=ur(),st(w);let ee=b===263?h.createClassDeclaration(d,I,$,se,Z):h.createClassExpression(d,I,$,se,Z);return De(P(ee,_),p)}function $u(){return ze()&&!Qu()?cr(ze()):void 0}function Qu(){return u()===119&&Y(Hl)}function Ws(){if(qc())return wn(22,Ku)}function Ku(){let _=L(),p=u();B.assert(p===96||p===119),U();let d=dn(7,Zu);return P(h.createHeritageClause(p,d),_)}function Zu(){let _=L(),p=Li();if(p.kind===233)return p;let d=Pa();return P(h.createExpressionWithTypeArguments(p,d),_)}function Pa(){return u()===30?Ur(20,_t,30,32):void 0}function qc(){return u()===96||u()===119}function Fc(){return wn(5,Hu)}function zc(_,p,d){j(120);let b=St(),w=mn(),I=Ws(),$=fo(),se=h.createInterfaceDeclaration(d,b,w,I,$);return De(P(se,_),p)}function ep(_,p,d){j(156),t.hasPrecedingLineBreak()&&Ee(A.Line_break_not_permitted_here);let b=St(),w=mn();j(64);let I=u()===141&&pe(vo)||_t();Qt();let $=h.createTypeAliasDeclaration(d,b,w,I);return De(P($,_),p)}function tp(){let _=L(),p=qe(),d=Rr(),b=ut(Sr);return De(P(h.createEnumMember(d,b),_),p)}function Gs(_,p,d){j(94);let b=St(),w;j(19)?(w=xe(()=>dn(6,tp)),j(20)):w=ur();let I=h.createEnumDeclaration(d,b,w);return De(P(I,_),p)}function Vc(){let _=L(),p;return j(19)?(p=wn(1,Kt),j(20)):p=ur(),P(h.createModuleBlock(p),_)}function Ys(_,p,d,b){let w=b&32,I=b&8?Rt():St(),$=Le(25)?Ys(L(),!1,void 0,8|w):Vc(),se=h.createModuleDeclaration(d,I,$,b);return De(P(se,_),p)}function Wc(_,p,d){let b=0,w;u()===162?(w=St(),b|=2048):(w=$n(),w.text=jr(w.text));let I;u()===19?I=Vc():Qt();let $=h.createModuleDeclaration(d,w,I,b);return De(P($,_),p)}function np(_,p,d){let b=0;if(u()===162)return Wc(_,p,d);if(Le(145))b|=32;else if(j(144),u()===11)return Wc(_,p,d);return Ys(_,p,d,b)}function rp(){return u()===149&&Y(Gc)}function Gc(){return U()===21}function Yc(){return U()===19}function Hs(){return U()===44}function ip(_,p,d){j(130),j(145);let b=St();Qt();let w=h.createNamespaceExportDeclaration(b);return w.modifiers=d,De(P(w,_),p)}function ap(_,p,d){j(102);let b=t.getTokenFullStart(),w;ve()&&(w=St());let I=!1;if((w==null?void 0:w.escapedText)==="type"&&(u()!==161||ve()&&Y(Bu))&&(ve()||_p())&&(I=!0,w=ve()?St():void 0),w&&!Wr())return op(_,p,d,w,I);let $=ci(w,b,I),se=qi(),Z=Hc();Qt();let ee=h.createImportDeclaration(d,$,se,Z);return De(P(ee,_),p)}function ci(_,p,d,b=!1){let w;return(_||u()===42||u()===19)&&(w=cp(_,p,d,b),j(161)),w}function Hc(){let _=u();if((_===118||_===132)&&!t.hasPrecedingLineBreak())return Xs(_)}function sp(){let _=L(),p=wt(u())?Rt():ai(11);j(59);let d=Ft(!0);return P(h.createImportAttribute(p,d),_)}function Xs(_,p){let d=L();p||j(_);let b=t.getTokenStart();if(j(19)){let w=t.hasPrecedingLineBreak(),I=dn(24,sp,!0);if(!j(20)){let $=Fa(at);$&&$.code===A._0_expected.code&&al($,La(Lt,Qe,b,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return P(h.createImportAttributes(I,w,_),d)}else{let w=Ct([],L(),void 0,!1);return P(h.createImportAttributes(w,!1,_),d)}}function _p(){return u()===42||u()===19}function Wr(){return u()===28||u()===161}function op(_,p,d,b,w){j(64);let I=lp();Qt();let $=h.createImportEqualsDeclaration(d,w,b,I);return De(P($,_),p)}function cp(_,p,d,b){let w;return(!_||Le(28))&&(b&&t.setSkipJsDocLeadingAsterisks(!0),w=u()===42?up():Xc(275),b&&t.setSkipJsDocLeadingAsterisks(!1)),P(h.createImportClause(d,_,w),p)}function lp(){return rp()?Bi():Br(!1)}function Bi(){let _=L();j(149),j(21);let p=qi();return j(22),P(h.createExternalModuleReference(p),_)}function qi(){if(u()===11){let _=$n();return _.text=jr(_.text),_}else return Et()}function up(){let _=L();j(42),j(130);let p=St();return P(h.createNamespaceImport(p),_)}function $s(){return wt(u())||u()===11}function li(_){return u()===11?$n():_()}function Xc(_){let p=L(),d=_===275?h.createNamedImports(Ur(23,ui,19,20)):h.createNamedExports(Ur(23,pp,19,20));return P(d,p)}function pp(){let _=qe();return De($c(281),_)}function ui(){return $c(276)}function $c(_){let p=L(),d=hi(u())&&!ve(),b=t.getTokenStart(),w=t.getTokenEnd(),I=!1,$,se=!0,Z=li(Rt);if(Z.kind===80&&Z.escapedText==="type")if(u()===130){let je=Rt();if(u()===130){let Re=Rt();$s()?(I=!0,$=je,Z=li(ce),se=!1):($=Z,Z=Re,se=!1)}else $s()?($=Z,se=!1,Z=li(ce)):(I=!0,Z=je)}else $s()&&(I=!0,Z=li(ce));se&&u()===130&&($=Z,j(130),Z=li(ce)),_===276&&(Z.kind!==80?(rt(Pr(Qe,Z.pos),Z.end,A.Identifier_expected),Z=bi(Gt(80,!1),Z.pos,Z.pos)):d&&rt(b,w,A.Identifier_expected));let ee=_===276?h.createImportSpecifier(I,$,Z):h.createExportSpecifier(I,$,Z);return P(ee,p);function ce(){return d=hi(u())&&!ve(),b=t.getTokenStart(),w=t.getTokenEnd(),Rt()}}function fp(_){return P(h.createNamespaceExport(li(Rt)),_)}function dp(_,p,d){let b=Ye();st(!0);let w,I,$,se=Le(156),Z=L();Le(42)?(Le(130)&&(w=fp(Z)),j(161),I=qi()):(w=Xc(279),(u()===161||u()===11&&!t.hasPrecedingLineBreak())&&(j(161),I=qi()));let ee=u();I&&(ee===118||ee===132)&&!t.hasPrecedingLineBreak()&&($=Xs(ee)),Qt(),st(b);let ce=h.createExportDeclaration(d,se,w,I,$);return De(P(ce,_),p)}function Qc(_,p,d){let b=Ye();st(!0);let w;Le(64)?w=!0:j(90);let I=Ft(!0);Qt(),st(b);let $=h.createExportAssignment(d,w,I);return De(P($,_),p)}let Qs;(_=>{_[_.SourceElements=0]="SourceElements",_[_.BlockStatements=1]="BlockStatements",_[_.SwitchClauses=2]="SwitchClauses",_[_.SwitchClauseStatements=3]="SwitchClauseStatements",_[_.TypeMembers=4]="TypeMembers",_[_.ClassMembers=5]="ClassMembers",_[_.EnumMembers=6]="EnumMembers",_[_.HeritageClauseElement=7]="HeritageClauseElement",_[_.VariableDeclarations=8]="VariableDeclarations",_[_.ObjectBindingElements=9]="ObjectBindingElements",_[_.ArrayBindingElements=10]="ArrayBindingElements",_[_.ArgumentExpressions=11]="ArgumentExpressions",_[_.ObjectLiteralMembers=12]="ObjectLiteralMembers",_[_.JsxAttributes=13]="JsxAttributes",_[_.JsxChildren=14]="JsxChildren",_[_.ArrayLiteralMembers=15]="ArrayLiteralMembers",_[_.Parameters=16]="Parameters",_[_.JSDocParameters=17]="JSDocParameters",_[_.RestProperties=18]="RestProperties",_[_.TypeParameters=19]="TypeParameters",_[_.TypeArguments=20]="TypeArguments",_[_.TupleElementTypes=21]="TupleElementTypes",_[_.HeritageClauses=22]="HeritageClauses",_[_.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",_[_.ImportAttributes=24]="ImportAttributes",_[_.JSDocComment=25]="JSDocComment",_[_.Count=26]="Count"})(Qs||(Qs={}));let Ks;(_=>{_[_.False=0]="False",_[_.True=1]="True",_[_.Unknown=2]="Unknown"})(Ks||(Ks={}));let Kc;(_=>{function p(ee,ce,je){Vn("file.js",ee,99,void 0,1,0),t.setText(ee,ce,je),lt=t.scan();let Re=d(),Ae=_e("file.js",99,1,!1,[],ye(1),0,Ga),Yt=Wi(at,Ae);return Ut&&(Ae.jsDocDiagnostics=Wi(Ut,Ae)),Wn(),Re?{jsDocTypeExpression:Re,diagnostics:Yt}:void 0}_.parseJSDocTypeExpressionForTests=p;function d(ee){let ce=L(),je=(ee?Le:j)(19),Re=Tt(16777216,ps);(!ee||je)&&D_(20);let Ae=h.createJSDocTypeExpression(Re);return J(Ae),P(Ae,ce)}_.parseJSDocTypeExpression=d;function b(){let ee=L(),ce=Le(19),je=L(),Re=Br(!1);for(;u()===81;)It(),Fe(),Re=P(h.createJSDocMemberName(Re,St()),je);ce&&D_(20);let Ae=h.createJSDocNameReference(Re);return J(Ae),P(Ae,ee)}_.parseJSDocNameReference=b;function w(ee,ce,je){Vn("",ee,99,void 0,1,0);let Re=Tt(16777216,()=>Z(ce,je)),Yt=Wi(at,{languageVariant:0,text:ee});return Wn(),Re?{jsDoc:Re,diagnostics:Yt}:void 0}_.parseIsolatedJSDocComment=w;function I(ee,ce,je){let Re=lt,Ae=at.length,Yt=an,hn=Tt(16777216,()=>Z(ce,je));return Sf(hn,ee),nt&524288&&(Ut||(Ut=[]),Nn(Ut,at,Ae)),lt=Re,at.length=Ae,an=Yt,hn}_.parseJSDocComment=I;let $;(ee=>{ee[ee.BeginningOfLine=0]="BeginningOfLine",ee[ee.SawAsterisk=1]="SawAsterisk",ee[ee.SavingComments=2]="SavingComments",ee[ee.SavingBackticks=3]="SavingBackticks"})($||($={}));let se;(ee=>{ee[ee.Property=1]="Property",ee[ee.Parameter=2]="Parameter",ee[ee.CallbackParameter=4]="CallbackParameter"})(se||(se={}));function Z(ee=0,ce){let je=Qe,Re=ce===void 0?je.length:ee+ce;if(ce=Re-ee,B.assert(ee>=0),B.assert(ee<=Re),B.assert(Re<=je.length),!B6(je,ee))return;let Ae,Yt,hn,Zt,pr,Rn=[],Gr=[],mp=yt;yt|=1<<25;let Pe=t.scanRange(ee+3,ce-5,tt);return yt=mp,Pe;function tt(){let O=1,H,X=ee-(je.lastIndexOf(` -`,ee)+1)+4;function ne(Be){H||(H=X),Rn.push(Be),X+=Be.length}for(Fe();zi(5););zi(4)&&(O=0,X=0);e:for(;;){switch(u()){case 60:Na(Rn),pr||(pr=L()),de(q(X)),O=0,H=void 0;break;case 4:Rn.push(t.getTokenText()),O=0,X=0;break;case 42:let Be=t.getTokenText();O===1?(O=2,ne(Be)):(B.assert(O===0),O=1,X+=Be.length);break;case 5:B.assert(O!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let pt=t.getTokenText();H!==void 0&&X+pt.length>H&&Rn.push(pt.slice(H-X)),X+=pt.length;break;case 1:break e;case 82:O=2,ne(t.getTokenValue());break;case 19:O=2;let yn=t.getTokenFullStart(),on=t.getTokenEnd()-1,tn=s(on);if(tn){Zt||fr(Rn),Gr.push(P(h.createJSDocText(Rn.join("")),Zt??ee,yn)),Gr.push(tn),Rn=[],Zt=t.getTokenEnd();break}default:O=2,ne(t.getTokenText());break}O===2?sn(!1):Fe()}let re=Rn.join("").trimEnd();Gr.length&&re.length&&Gr.push(P(h.createJSDocText(re),Zt??ee,pr)),Gr.length&&Ae&&B.assertIsDefined(pr,"having parsed tags implies that the end of the comment span should be set");let Ne=Ae&&Ct(Ae,Yt,hn);return P(h.createJSDocComment(Gr.length?Ct(Gr,ee,pr):re.length?re:void 0,Ne),ee,Re)}function fr(O){for(;O.length&&(O[0]===` -`||O[0]==="\r");)O.shift()}function Na(O){for(;O.length;){let H=O[O.length-1].trimEnd();if(H==="")O.pop();else if(H.lengthpt&&(ne.push(Zn.slice(pt-O)),Be=2),O+=Zn.length;break;case 19:Be=2;let el=t.getTokenFullStart(),Oa=t.getTokenEnd()-1,tl=s(Oa);tl?(re.push(P(h.createJSDocText(ne.join("")),Ne??X,el)),re.push(tl),ne=[],Ne=t.getTokenEnd()):yn(t.getTokenText());break;case 62:Be===3?Be=2:Be=3,yn(t.getTokenText());break;case 82:Be!==3&&(Be=2),yn(t.getTokenValue());break;case 42:if(Be===0){Be=1,O+=1;break}default:Be!==3&&(Be=2),yn(t.getTokenText());break}Be===2||Be===3?on=sn(Be===3):on=Fe()}fr(ne);let tn=ne.join("").trimEnd();if(re.length)return tn.length&&re.push(P(h.createJSDocText(tn),Ne??X)),Ct(re,X,t.getTokenEnd());if(tn.length)return tn}function s(O){let H=pe(f);if(!H)return;Fe(),Ot();let X=l(),ne=[];for(;u()!==20&&u()!==4&&u()!==1;)ne.push(t.getTokenText()),Fe();let re=H==="link"?h.createJSDocLink:H==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return P(re(X,ne.join("")),O,t.getTokenEnd())}function l(){if(wt(u())){let O=L(),H=Rt();for(;Le(25);)H=P(h.createQualifiedName(H,u()===81?Gt(80,!1):Rt()),O);for(;u()===81;)It(),Fe(),H=P(h.createJSDocMemberName(H,St()),O);return H}}function f(){if(kr(),u()===19&&Fe()===60&&wt(Fe())){let O=t.getTokenValue();if(S(O))return O}}function S(O){return O==="link"||O==="linkcode"||O==="linkplain"}function z(O,H,X,ne){return P(h.createJSDocUnknownTag(H,n(O,L(),X,ne)),O)}function de(O){O&&(Ae?Ae.push(O):(Ae=[O],Yt=O.pos),hn=O.end)}function Ue(){return kr(),u()===19?d():void 0}function en(){let O=zi(23);O&&Ot();let H=zi(62),X=dy();return H&&Fl(62),O&&(Ot(),ft(64)&&Et(),j(24)),{name:X,isBracketed:O}}function An(O){switch(O.kind){case 151:return!0;case 188:return An(O.elementType);default:return Df(O)&&Ze(O.typeName)&&O.typeName.escapedText==="Object"&&!O.typeArguments}}function Kn(O,H,X,ne){let re=Ue(),Ne=!re;kr();let{name:Be,isBracketed:pt}=en(),yn=kr();Ne&&!Y(f)&&(re=Ue());let on=n(O,L(),ne,yn),tn=Ia(re,Be,X,ne);tn&&(re=tn,Ne=!0);let Zn=X===1?h.createJSDocPropertyTag(H,Be,pt,re,Ne,on):h.createJSDocParameterTag(H,Be,pt,re,Ne,on);return P(Zn,O)}function Ia(O,H,X,ne){if(O&&An(O.type)){let re=L(),Ne,Be;for(;Ne=pe(()=>yp(X,ne,H));)Ne.kind===341||Ne.kind===348?Be=Dn(Be,Ne):Ne.kind===345&&un(Ne.tagName,A.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Be){let pt=P(h.createJSDocTypeLiteral(Be,O.type.kind===188),re);return P(h.createJSDocTypeExpression(pt),re)}}}function H0(O,H,X,ne){nn(Ae,A6)&&rt(H.pos,t.getTokenStart(),A._0_tag_already_specified,f_(H.escapedText));let re=Ue();return P(h.createJSDocReturnTag(H,re,n(O,L(),X,ne)),O)}function yd(O,H,X,ne){nn(Ae,zf)&&rt(H.pos,t.getTokenStart(),A._0_tag_already_specified,f_(H.escapedText));let re=d(!0),Ne=X!==void 0&&ne!==void 0?n(O,L(),X,ne):void 0;return P(h.createJSDocTypeTag(H,re,Ne),O)}function X0(O,H,X,ne){let Ne=u()===23||Y(()=>Fe()===60&&wt(Fe())&&S(t.getTokenValue()))?void 0:b(),Be=X!==void 0&&ne!==void 0?n(O,L(),X,ne):void 0;return P(h.createJSDocSeeTag(H,Ne,Be),O)}function $0(O,H,X,ne){let re=Ue(),Ne=n(O,L(),X,ne);return P(h.createJSDocThrowsTag(H,re,Ne),O)}function Q0(O,H,X,ne){let re=L(),Ne=K0(),Be=t.getTokenFullStart(),pt=n(O,Be,X,ne);pt||(Be=t.getTokenFullStart());let yn=typeof pt!="string"?Ct(Hp([P(Ne,re,Be)],pt),re):Ne.text+pt;return P(h.createJSDocAuthorTag(H,yn),O)}function K0(){let O=[],H=!1,X=t.getToken();for(;X!==1&&X!==4;){if(X===30)H=!0;else{if(X===60&&!H)break;if(X===32&&H){O.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}O.push(t.getTokenText()),X=Fe()}return h.createJSDocText(O.join(""))}function Z0(O,H,X,ne){let re=gd();return P(h.createJSDocImplementsTag(H,re,n(O,L(),X,ne)),O)}function ey(O,H,X,ne){let re=gd();return P(h.createJSDocAugmentsTag(H,re,n(O,L(),X,ne)),O)}function ty(O,H,X,ne){let re=d(!1),Ne=X!==void 0&&ne!==void 0?n(O,L(),X,ne):void 0;return P(h.createJSDocSatisfiesTag(H,re,Ne),O)}function ny(O,H,X,ne){let re=t.getTokenFullStart(),Ne;ve()&&(Ne=St());let Be=ci(Ne,re,!0,!0),pt=qi(),yn=Hc(),on=X!==void 0&&ne!==void 0?n(O,L(),X,ne):void 0;return P(h.createJSDocImportTag(H,Be,pt,yn,on),O)}function gd(){let O=Le(19),H=L(),X=ry();t.setSkipJsDocLeadingAsterisks(!0);let ne=Pa();t.setSkipJsDocLeadingAsterisks(!1);let re=h.createExpressionWithTypeArguments(X,ne),Ne=P(re,H);return O&&(Ot(),j(20)),Ne}function ry(){let O=L(),H=pi();for(;Le(25);){let X=pi();H=P(ie(H,X),O)}return H}function Fi(O,H,X,ne,re){return P(H(X,n(O,L(),ne,re)),O)}function bd(O,H,X,ne){let re=d(!0);return Ot(),P(h.createJSDocThisTag(H,re,n(O,L(),X,ne)),O)}function iy(O,H,X,ne){let re=d(!0);return Ot(),P(h.createJSDocEnumTag(H,re,n(O,L(),X,ne)),O)}function ay(O,H,X,ne){let re=Ue();kr();let Ne=hp();Ot();let Be=i(X),pt;if(!re||An(re.type)){let on,tn,Zn,el=!1;for(;(on=pe(()=>ly(X)))&&on.kind!==345;)if(el=!0,on.kind===344)if(tn){let Oa=Ee(A.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Oa&&al(Oa,La(Lt,Qe,0,0,A.The_tag_was_first_specified_here));break}else tn=on;else Zn=Dn(Zn,on);if(el){let Oa=re&&re.type.kind===188,tl=h.createJSDocTypeLiteral(Zn,Oa);re=tn&&tn.typeExpression&&!An(tn.typeExpression.type)?tn.typeExpression:P(tl,O),pt=re.end}}pt=pt||Be!==void 0?L():(Ne??re??H).end,Be||(Be=n(O,pt,X,ne));let yn=h.createJSDocTypedefTag(H,re,Ne,Be);return P(yn,O,pt)}function hp(O){let H=t.getTokenStart();if(!wt(u()))return;let X=pi();if(Le(25)){let ne=hp(!0),re=h.createModuleDeclaration(void 0,X,ne,O?8:void 0);return P(re,H)}return O&&(X.flags|=4096),X}function sy(O){let H=L(),X,ne;for(;X=pe(()=>yp(4,O));){if(X.kind===345){un(X.tagName,A.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}ne=Dn(ne,X)}return Ct(ne||[],H)}function vd(O,H){let X=sy(H),ne=pe(()=>{if(zi(60)){let re=q(H);if(re&&re.kind===342)return re}});return P(h.createJSDocSignature(void 0,X,ne),O)}function _y(O,H,X,ne){let re=hp();Ot();let Ne=i(X),Be=vd(O,X);Ne||(Ne=n(O,L(),X,ne));let pt=Ne!==void 0?L():Be.end;return P(h.createJSDocCallbackTag(H,Be,re,Ne),O,pt)}function oy(O,H,X,ne){Ot();let re=i(X),Ne=vd(O,X);re||(re=n(O,L(),X,ne));let Be=re!==void 0?L():Ne.end;return P(h.createJSDocOverloadTag(H,Ne,re),O,Be)}function cy(O,H){for(;!Ze(O)||!Ze(H);)if(!Ze(O)&&!Ze(H)&&O.right.escapedText===H.right.escapedText)O=O.left,H=H.left;else return!1;return O.escapedText===H.escapedText}function ly(O){return yp(1,O)}function yp(O,H,X){let ne=!0,re=!1;for(;;)switch(Fe()){case 60:if(ne){let Ne=uy(O,H);return Ne&&(Ne.kind===341||Ne.kind===348)&&X&&(Ze(Ne.name)||!cy(X,Ne.name.left))?!1:Ne}re=!1;break;case 4:ne=!0,re=!1;break;case 42:re&&(ne=!1),re=!0;break;case 80:ne=!1;break;case 1:return!1}}function uy(O,H){B.assert(u()===60);let X=t.getTokenFullStart();Fe();let ne=pi(),re=kr(),Ne;switch(ne.escapedText){case"type":return O===1&&yd(X,ne);case"prop":case"property":Ne=1;break;case"arg":case"argument":case"param":Ne=6;break;case"template":return Td(X,ne,H,re);case"this":return bd(X,ne,H,re);default:return!1}return O&Ne?Kn(X,ne,O,H):!1}function py(){let O=L(),H=zi(23);H&&Ot();let X=En(!1,!0),ne=pi(A.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),re;if(H&&(Ot(),j(64),re=Tt(16777216,ps),j(24)),!Qi(ne))return P(h.createTypeParameterDeclaration(X,ne,void 0,re),O)}function fy(){let O=L(),H=[];do{Ot();let X=py();X!==void 0&&H.push(X),kr()}while(zi(28));return Ct(H,O)}function Td(O,H,X,ne){let re=u()===19?d():void 0,Ne=fy();return P(h.createJSDocTemplateTag(H,re,Ne,n(O,L(),X,ne)),O)}function zi(O){return u()===O?(Fe(),!0):!1}function dy(){let O=pi();for(Le(23)&&j(24);Le(25);){let H=pi();Le(23)&&j(24),O=Xl(O,H)}return O}function pi(O){if(!wt(u()))return Gt(80,!O,O||A.Identifier_expected);xn++;let H=t.getTokenStart(),X=t.getTokenEnd(),ne=u(),re=jr(t.getTokenValue()),Ne=P(te(re,ne),H,X);return Fe(),Ne}}})(Kc=e.JSDocParser||(e.JSDocParser={}))})(Zi||(Zi={}));var wm=new WeakSet;function $6(e){wm.has(e)&&B.fail("Source file has already been incrementally parsed"),wm.add(e)}var vh=new WeakSet;function Q6(e){return vh.has(e)}function Gp(e){vh.add(e)}var xl;(e=>{function t(x,N,te,ue){if(ue=ue||B.shouldAssert(2),h(x,N,te,ue),Cg(te))return x;if(x.statements.length===0)return Zi.parseSourceFile(x.fileName,N,x.languageVersion,void 0,!0,x.scriptKind,x.setExternalModuleIndicator,x.jsDocParsingMode);$6(x),Zi.fixupParentReferences(x);let ye=x.text,fe=y(x),M=c(x,te);h(x,N,M,ue),B.assert(M.span.start<=te.span.start),B.assert(Ar(M.span)===Ar(te.span)),B.assert(Ar(e_(M))===Ar(e_(te)));let ie=e_(M).length-M.span.length;C(x,M.span.start,Ar(M.span),Ar(e_(M)),ie,ye,N,ue);let Ce=Zi.parseSourceFile(x.fileName,N,x.languageVersion,fe,!0,x.scriptKind,x.setExternalModuleIndicator,x.jsDocParsingMode);return Ce.commentDirectives=a(x.commentDirectives,Ce.commentDirectives,M.span.start,Ar(M.span),ie,ye,N,ue),Ce.impliedNodeFormat=x.impliedNodeFormat,N6(x,Ce),Ce}e.updateSourceFile=t;function a(x,N,te,ue,ye,fe,M,ie){if(!x)return N;let Ce,V=!1;for(let G of x){let{range:dt,type:rr}=G;if(dt.endue){oe();let vn={range:{pos:dt.pos+ye,end:dt.end+ye},type:rr};Ce=Dn(Ce,vn),ie&&B.assert(fe.substring(dt.pos,dt.end)===M.substring(vn.range.pos,vn.range.end))}}return oe(),Ce;function oe(){V||(V=!0,Ce?N&&Ce.push(...N):Ce=N)}}function o(x,N,te,ue,ye,fe,M){te?Ce(x):ie(x);return;function ie(V){let oe="";if(M&&m(V)&&(oe=ye.substring(V.pos,V.end)),em(V,N),bi(V,V.pos+ue,V.end+ue),M&&m(V)&&B.assert(oe===fe.substring(V.pos,V.end)),Ht(V,ie,Ce),$i(V))for(let G of V.jsDoc)ie(G);E(V,M)}function Ce(V){bi(V,V.pos+ue,V.end+ue);for(let oe of V)ie(oe)}}function m(x){switch(x.kind){case 11:case 9:case 80:return!0}return!1}function v(x,N,te,ue,ye){B.assert(x.end>=N,"Adjusting an element that was entirely before the change range"),B.assert(x.pos<=te,"Adjusting an element that was entirely after the change range"),B.assert(x.pos<=x.end);let fe=Math.min(x.pos,ue),M=x.end>=te?x.end+ye:Math.min(x.end,ue);if(B.assert(fe<=M),x.parent){let ie=x.parent;B.assertGreaterThanOrEqual(fe,ie.pos),B.assertLessThanOrEqual(M,ie.end)}bi(x,fe,M)}function E(x,N){if(N){let te=x.pos,ue=ye=>{B.assert(ye.pos>=te),te=ye.end};if($i(x))for(let ye of x.jsDoc)ue(ye);Ht(x,ue),B.assert(te<=x.end)}}function C(x,N,te,ue,ye,fe,M,ie){Ce(x);return;function Ce(oe){if(B.assert(oe.pos<=oe.end),oe.pos>te){o(oe,x,!1,ye,fe,M,ie);return}let G=oe.end;if(G>=N){if(Gp(oe),em(oe,x),v(oe,N,te,ue,ye),Ht(oe,Ce,V),$i(oe))for(let dt of oe.jsDoc)Ce(dt);E(oe,ie);return}B.assert(Gte){o(oe,x,!0,ye,fe,M,ie);return}let G=oe.end;if(G>=N){Gp(oe),v(oe,N,te,ue,ye);for(let dt of oe)Ce(dt);return}B.assert(G0&&M<=1;M++){let ie=W(x,ue);B.assert(ie.pos<=ue);let Ce=ie.pos;ue=Math.max(0,Ce-1)}let ye=Ag(ue,Ar(N.span)),fe=N.newLength+(N.span.start-ue);return t1(ye,fe)}function W(x,N){let te=x,ue;if(Ht(x,fe),ue){let M=ye(ue);M.pos>te.pos&&(te=M)}return te;function ye(M){for(;;){let ie=pb(M);if(ie)M=ie;else return M}}function fe(M){if(!Qi(M))if(M.pos<=N){if(M.pos>=te.pos&&(te=M),NN),!0}}function h(x,N,te,ue){let ye=x.text;if(te&&(B.assert(ye.length-te.span.length+te.newLength===N.length),ue||B.shouldAssert(3))){let fe=ye.substr(0,te.span.start),M=N.substr(0,te.span.start);B.assert(fe===M);let ie=ye.substring(Ar(te.span),ye.length),Ce=N.substring(Ar(e_(te)),N.length);B.assert(ie===Ce)}}function y(x){let N=x.statements,te=0;B.assert(te=V.pos&&M=V.pos&&M{x[x.Value=-1]="Value"})(g||(g={}))})(xl||(xl={}));function K6(e){return Z6(e)!==void 0}function Z6(e){let t=Bm(e,Ob,!1);if(t)return t;if(Qy(e,".ts")){let a=Um(e),o=a.lastIndexOf(".d.");if(o>=0)return a.substring(o)}}function ev(e,t,a,o){if(e){if(e==="import")return 99;if(e==="require")return 1;o(t,a-t,A.resolution_mode_should_be_either_require_or_import)}}function tv(e,t){let a=[];for(let o of Jp(t,0)||bt){let m=t.substring(o.pos,o.end);sv(a,o,m)}e.pragmas=new Map;for(let o of a){if(e.pragmas.has(o.name)){let m=e.pragmas.get(o.name);m instanceof Array?m.push(o.args):e.pragmas.set(o.name,[m,o.args]);continue}e.pragmas.set(o.name,o.args)}}function nv(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((a,o)=>{switch(o){case"reference":{let m=e.referencedFiles,v=e.typeReferenceDirectives,E=e.libReferenceDirectives;qn(vp(a),C=>{let{types:c,lib:W,path:h,["resolution-mode"]:y,preserve:g}=C.arguments,x=g==="true"?!0:void 0;if(C.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(c){let N=ev(y,c.pos,c.end,t);v.push({pos:c.pos,end:c.end,fileName:c.value,...N?{resolutionMode:N}:{},...x?{preserve:x}:{}})}else W?E.push({pos:W.pos,end:W.end,fileName:W.value,...x?{preserve:x}:{}}):h?m.push({pos:h.pos,end:h.end,fileName:h.value,...x?{preserve:x}:{}}):t(C.range.pos,C.range.end-C.range.pos,A.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Np(vp(a),m=>({name:m.arguments.name,path:m.arguments.path}));break}case"amd-module":{if(a instanceof Array)for(let m of a)e.moduleName&&t(m.range.pos,m.range.end-m.range.pos,A.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=m.arguments.name;else e.moduleName=a.arguments.name;break}case"ts-nocheck":case"ts-check":{qn(vp(a),m=>{(!e.checkJsDirective||m.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:o==="ts-check",end:m.range.end,pos:m.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:B.fail("Unhandled pragma kind")}})}var Pp=new Map;function rv(e){if(Pp.has(e))return Pp.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Pp.set(e,t),t}var iv=/^\/\/\/\s*<(\S+)\s.*?\/>/m,av=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function sv(e,t,a){let o=t.kind===2&&iv.exec(a);if(o){let v=o[1].toLowerCase(),E=Rm[v];if(!E||!(E.kind&1))return;if(E.args){let C={};for(let c of E.args){let h=rv(c.name).exec(a);if(!h&&!c.optional)return;if(h){let y=h[2]||h[3];if(c.captureSpan){let g=t.pos+h.index+h[1].length+1;C[c.name]={value:y,pos:g,end:g+y.length}}else C[c.name]=y}}e.push({name:v,args:{arguments:C,range:t}})}else e.push({name:v,args:{arguments:{},range:t}});return}let m=t.kind===2&&av.exec(a);if(m)return km(e,t,2,m);if(t.kind===3){let v=/@(\S+)(\s+(?:\S.*)?)?$/gm,E;for(;E=v.exec(a);)km(e,t,4,E)}}function km(e,t,a,o){if(!o)return;let m=o[1].toLowerCase(),v=Rm[m];if(!v||!(v.kind&a))return;let E=o[2],C=_v(v,E);C!=="fail"&&e.push({name:m,args:{arguments:C,range:t}})}function _v(e,t){if(!t)return{};if(!e.args)return{};let a=t.trim().split(/\s+/),o={};for(let m=0;mo.kind<309||o.kind>351);return a.kind<166?a:a.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),a=Fa(t);if(a)return a.kind<166?a:a.getLastToken(e)}forEachChild(e,t){return Ht(this,e,t)}};function ov(e,t){let a=[];if(d2(e))return e.forEachChild(E=>{a.push(E)}),a;c_.setText((t||e.getSourceFile()).text);let o=e.pos,m=E=>{l_(a,o,E.pos,e),a.push(E),o=E.end},v=E=>{l_(a,o,E.pos,e),a.push(cv(E,e)),o=E.end};return qn(e.jsDoc,m),o=e.pos,e.forEachChild(m,v),l_(a,o,e.end,e),c_.setText(void 0),a}function l_(e,t,a,o){for(c_.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function fl(e,t){if(!e)return bt;let a=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(a.length===0||e.some(kh))){let o=new Set;for(let m of e){let v=Eh(t,m,E=>{var C;if(!o.has(E))return o.add(E),m.kind===177||m.kind===178?E.getContextualJsDocTags(m,t):((C=E.declarations)==null?void 0:C.length)===1?E.getJsDocTags(t):void 0});v&&(a=[...v,...a])}}return a}function o_(e,t){if(!e)return bt;let a=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(a.length===0||e.some(kh))){let o=new Set;for(let m of e){let v=Eh(t,m,E=>{if(!o.has(E))return o.add(E),m.kind===177||m.kind===178?E.getContextualDocumentationComment(m,t):E.getDocumentationComment(t)});v&&(a=a.length===0?v.slice():v.concat(lineBreakPart(),a))}}return a}function Eh(e,t,a){var o;let m=((o=t.parent)==null?void 0:o.kind)===176?t.parent.parent:t.parent;if(!m)return;let v=tb(t);return vy(G2(m),E=>{let C=e.getTypeAtLocation(E),c=v&&C.symbol?e.getTypeOfSymbol(C.symbol):C,W=e.getPropertyOfType(c,t.symbol.name);return W?a(W):void 0})}var fv=class extends Gf{constructor(e,t,a){super(e,t,a)}update(e,t){return X6(this,e,t)}getLineAndCharacterOfPosition(e){return Hm(this,e)}getLineStarts(){return Lp(this)}getPositionOfLineAndCharacter(e,t,a){return yg(Lp(this),e,t,this.text,a)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),a=this.getLineStarts(),o;t+1>=a.length&&(o=this.getEnd()),o||(o=a[t+1]-1);let m=this.getFullText();return m[o]===` -`&&m[o-1]==="\r"?o-1:o}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=My();return this.forEachChild(m),e;function t(v){let E=o(v);E&&e.add(E,v)}function a(v){let E=e.get(v);return E||e.set(v,E=[]),E}function o(v){let E=lf(v);return E&&(kf(E)&&dr(E.expression)?E.expression.name.text:u1(E)?getNameFromPropertyName(E):void 0)}function m(v){switch(v.kind){case 262:case 218:case 174:case 173:let E=v,C=o(E);if(C){let h=a(C),y=Fa(h);y&&E.parent===y.parent&&E.symbol===y.symbol?E.body&&!y.body&&(h[h.length-1]=E):h.push(E)}Ht(v,m);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(v),Ht(v,m);break;case 169:if(!S_(v,31))break;case 260:case 208:{let h=v;if(a2(h.name)){Ht(h.name,m);break}h.initializer&&m(h.initializer)}case 306:case 172:case 171:t(v);break;case 278:let c=v;c.exportClause&&(ih(c.exportClause)?qn(c.exportClause.elements,m):m(c.exportClause.name));break;case 272:let W=v.importClause;W&&(W.name&&t(W.name),W.namedBindings&&(W.namedBindings.kind===274?t(W.namedBindings):qn(W.namedBindings.elements,m)));break;case 226:yf(v)!==0&&t(v);default:Ht(v,m)}}}},dv=class{constructor(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}getLineAndCharacterOfPosition(e){return Hm(this,e)}};function mv(){return{getNodeConstructor:()=>Gf,getTokenConstructor:()=>xh,getIdentifierConstructor:()=>Sh,getPrivateIdentifierConstructor:()=>wh,getSourceFileConstructor:()=>fv,getSymbolConstructor:()=>lv,getTypeConstructor:()=>uv,getSignatureConstructor:()=>pv,getSourceMapSourceConstructor:()=>dv}}var hv=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],R3=[...hv,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];Tb(mv());var Ml=new Proxy({},{get:()=>!0});var Ch=Ml["4.8"];function nr(e,t=!1){var a;if(e!=null){if(Ch){if(t||Ol(e)){let o=i1(e);return o?[...o]:void 0}return}return(a=e.modifiers)==null?void 0:a.filter(o=>!Cl(o))}}function ra(e,t=!1){var a;if(e!=null){if(Ch){if(t||Wf(e)){let o=uf(e);return o?[...o]:void 0}return}return(a=e.decorators)==null?void 0:a.filter(Cl)}}var Ph={};var Ll=new Proxy({},{get:(e,t)=>t});var Nh=Ll,Ih=Ll;var D=Nh,Dt=Ih;var Oh=Ml["5.0"],le=Ie,bv=new Set([le.AmpersandAmpersandToken,le.BarBarToken,le.QuestionQuestionToken]),vv=new Set([Ie.AmpersandAmpersandEqualsToken,Ie.AmpersandEqualsToken,Ie.AsteriskAsteriskEqualsToken,Ie.AsteriskEqualsToken,Ie.BarBarEqualsToken,Ie.BarEqualsToken,Ie.CaretEqualsToken,Ie.EqualsToken,Ie.GreaterThanGreaterThanEqualsToken,Ie.GreaterThanGreaterThanGreaterThanEqualsToken,Ie.LessThanLessThanEqualsToken,Ie.MinusEqualsToken,Ie.PercentEqualsToken,Ie.PlusEqualsToken,Ie.QuestionQuestionEqualsToken,Ie.SlashEqualsToken]),Tv=new Set([le.AmpersandAmpersandToken,le.AmpersandToken,le.AsteriskAsteriskToken,le.AsteriskToken,le.BarBarToken,le.BarToken,le.CaretToken,le.EqualsEqualsEqualsToken,le.EqualsEqualsToken,le.ExclamationEqualsEqualsToken,le.ExclamationEqualsToken,le.GreaterThanEqualsToken,le.GreaterThanGreaterThanGreaterThanToken,le.GreaterThanGreaterThanToken,le.GreaterThanToken,le.InKeyword,le.InstanceOfKeyword,le.LessThanEqualsToken,le.LessThanLessThanToken,le.LessThanToken,le.MinusToken,le.PercentToken,le.PlusToken,le.SlashToken]);function xv(e){return vv.has(e.kind)}function Sv(e){return bv.has(e.kind)}function wv(e){return Tv.has(e.kind)}function Zr(e){return it(e)}function Mh(e){return e.kind!==le.SemicolonClassElement}function He(e,t){let a=nr(t);return(a==null?void 0:a.some(o=>o.kind===e))===!0}function Lh(e){let t=nr(e);return t==null?null:t[t.length-1]??null}function Jh(e){return e.kind===le.CommaToken}function kv(e){return e.kind===le.SingleLineCommentTrivia||e.kind===le.MultiLineCommentTrivia}function Ev(e){return e.kind===le.JSDocComment}function jh(e){if(xv(e))return{type:D.AssignmentExpression,operator:Zr(e.kind)};if(Sv(e))return{type:D.LogicalExpression,operator:Zr(e.kind)};if(wv(e))return{type:D.BinaryExpression,operator:Zr(e.kind)};throw new Error(`Unexpected binary operator ${it(e.kind)}`)}function k_(e,t){let a=t.getLineAndCharacterOfPosition(e);return{column:a.character,line:a.line+1}}function ei(e,t){let[a,o]=e.map(m=>k_(m,t));return{end:o,start:a}}function Rh(e){if(e.kind===Ie.Block)switch(e.parent.kind){case Ie.Constructor:case Ie.GetAccessor:case Ie.SetAccessor:case Ie.ArrowFunction:case Ie.FunctionExpression:case Ie.FunctionDeclaration:case Ie.MethodDeclaration:return!0;default:return!1}return!0}function ia(e,t){return[e.getStart(t),e.getEnd()]}function Av(e){return e.kind>=le.FirstToken&&e.kind<=le.LastToken}function Uh(e){return e.kind>=le.JsxElement&&e.kind<=le.JsxAttribute}function Jl(e){return e.flags&bn.Let?"let":(e.flags&bn.AwaitUsing)===bn.AwaitUsing?"await using":e.flags&bn.Const?"const":e.flags&bn.Using?"using":"var"}function ki(e){let t=nr(e);if(t!=null)for(let a of t)switch(a.kind){case le.PublicKeyword:return"public";case le.ProtectedKeyword:return"protected";case le.PrivateKeyword:return"private";default:break}}function mr(e,t,a){return o(t);function o(m){return c1(m)&&m.pos===e.end?m:Ov(m.getChildren(a),v=>(v.pos<=e.pos&&v.end>e.end||v.pos===e.end)&&Iv(v,a)?o(v):void 0)}}function Cv(e,t){let a=e;for(;a;){if(t(a))return a;a=a.parent}}function Dv(e){return!!Cv(e,Uh)}function Qf(e){return Er(!1,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let a=t.slice(1,-1);if(a[0]==="#"){let o=a[1]==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return o>1114111?t:String.fromCodePoint(o)}return Ph[a]||t})}function aa(e){return e.kind===le.ComputedPropertyName}function Kf(e){return!!e.questionToken}function Zf(e){return e.type===D.ChainExpression}function Bh(e,t){return Zf(t)&&e.expression.kind!==Ie.ParenthesizedExpression}function Pv(e){if(e.kind===le.NullKeyword)return Dt.Null;let t;if(Oh&&e.kind===le.Identifier?t=kl(e):"originalKeywordKind"in e&&(t=e.originalKeywordKind),t)return t===le.NullKeyword?Dt.Null:t>=le.FirstFutureReservedWord&&t<=le.LastKeyword?Dt.Identifier:Dt.Keyword;if(e.kind>=le.FirstKeyword&&e.kind<=le.LastFutureReservedWord)return e.kind===le.FalseKeyword||e.kind===le.TrueKeyword?Dt.Boolean:Dt.Keyword;if(e.kind>=le.FirstPunctuation&&e.kind<=le.LastPunctuation)return Dt.Punctuator;if(e.kind>=le.NoSubstitutionTemplateLiteral&&e.kind<=le.TemplateTail)return Dt.Template;switch(e.kind){case le.NumericLiteral:case le.BigIntLiteral:return Dt.Numeric;case le.PrivateIdentifier:return Dt.PrivateIdentifier;case le.JsxText:return Dt.JSXText;case le.StringLiteral:return e.parent.kind===le.JsxAttribute||e.parent.kind===le.JsxElement?Dt.JSXText:Dt.String;case le.RegularExpressionLiteral:return Dt.RegularExpression;case le.Identifier:case le.ConstructorKeyword:case le.GetKeyword:case le.SetKeyword:default:}if(e.kind===le.Identifier){if(Uh(e.parent))return Dt.JSXIdentifier;if(e.parent.kind===le.PropertyAccessExpression&&Dv(e))return Dt.JSXIdentifier}return Dt.Identifier}function Nv(e,t){let a=e.kind===le.JsxText?e.getFullStart():e.getStart(t),o=e.getEnd(),m=t.text.slice(a,o),v=Pv(e),E=[a,o],C=ei(E,t);return v===Dt.RegularExpression?{type:v,loc:C,range:E,regex:{flags:m.slice(m.lastIndexOf("/")+1),pattern:m.slice(1,m.lastIndexOf("/"))},value:m}:v===Dt.PrivateIdentifier?{type:v,loc:C,range:E,value:m.slice(1)}:{type:v,loc:C,range:E,value:m}}function qh(e){let t=[];function a(o){kv(o)||Ev(o)||(Av(o)&&o.kind!==le.EndOfFileToken?t.push(Nv(o,e)):o.getChildren(e).forEach(a))}return a(e),t}var $f=class extends Error{fileName;location;constructor(t,a,o){super(t),this.fileName=a,this.location=o,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function ed(e,t,a,o=a){let[m,v]=[a,o].map(E=>{let{character:C,line:c}=t.getLineAndCharacterOfPosition(E);return{column:C,line:c+1,offset:E}});return new $f(e,t.fileName,{end:v,start:m})}function Fh(e){var t;return!!("illegalDecorators"in e&&((t=e.illegalDecorators)!=null&&t.length))}function Iv(e,t){return e.kind===le.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function Ov(e,t){if(e!==void 0)for(let a=0;a=0&&e.kind!==le.EndOfFileToken}function td(e){return!Lv(e)}function Wh(e){return cf(e.parent,mf)}function Jv(e){return He(le.AbstractKeyword,e)}function jv(e){if(e.parameters.length&&!Il(e)){let t=e.parameters[0];if(Rv(t))return t}return null}function Rv(e){return zh(e.name)}function Gh(e){switch(e.kind){case le.ClassDeclaration:return!0;case le.ClassExpression:return!0;case le.PropertyDeclaration:{let{parent:t}=e;return!!(Ha(t)||xi(t)&&!Jv(e))}case le.GetAccessor:case le.SetAccessor:case le.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(Ha(t)||xi(t))}case le.Parameter:{let{parent:t}=e,a=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===le.Constructor||t.kind===le.MethodDeclaration||t.kind===le.SetAccessor)&&jv(t)!==e&&!!a&&a.kind===le.ClassDeclaration}}return!1}function jl(e){switch(e.kind){case le.Identifier:return!0;case le.PropertyAccessExpression:case le.ElementAccessExpression:return!(e.flags&bn.OptionalChain);case le.ParenthesizedExpression:case le.TypeAssertionExpression:case le.AsExpression:case le.SatisfiesExpression:case le.ExpressionWithTypeArguments:case le.NonNullExpression:return jl(e.expression);default:return!1}}function Yh(e){let t=nr(e),a=e;for(;(!t||t.length===0)&&wi(a.parent);){let o=nr(a.parent);o!=null&&o.length&&(t=o),a=a.parent}return t}var T=Ie;function ad(e){return ed("message"in e&&e.message||e.messageText,e.file,e.start)}function Uv(e){return dr(e)&&Ze(e.name)&&Hh(e.expression)}function Hh(e){return e.kind===T.Identifier||Uv(e)}var he,rd,Xh,Je,Vt,Ka,id,Rl=class{constructor(t,a){gp(this,he);Vi(this,"allowPattern",!1);Vi(this,"ast");Vi(this,"esTreeNodeToTSNodeMap",new WeakMap);Vi(this,"options");Vi(this,"tsNodeToESTreeNodeMap",new WeakMap);this.ast=t,this.options={...a}}assertModuleSpecifier(t,a){var o;!a&&t.moduleSpecifier==null&&ge(this,he,Vt).call(this,t,"Module specifier must be a string literal."),t.moduleSpecifier&&((o=t.moduleSpecifier)==null?void 0:o.kind)!==T.StringLiteral&&ge(this,he,Vt).call(this,t.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(t,a,o){let m=this.convertPattern(t);return a&&(m.typeAnnotation=this.convertTypeAnnotation(a,o),this.fixParentLocation(m,m.typeAnnotation.range)),m}convertBodyExpressions(t,a){let o=Rh(a);return t.map(m=>{let v=this.convertChild(m);if(o){if(v!=null&&v.expression&&Pl(m)&&Si(m.expression)){let E=v.expression.raw;return v.directive=E.slice(1,-1),v}o=!1}return v}).filter(m=>m)}convertChainExpression(t,a){let{child:o,isOptional:m}=t.type===D.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===D.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1},v=Bh(a,o);if(!v&&!m)return t;if(v&&Zf(o)){let E=o.expression;t.type===D.MemberExpression?t.object=E:t.type===D.CallExpression?t.callee=E:t.expression=E}return this.createNode(a,{type:D.ChainExpression,expression:t})}convertChild(t,a){return this.converter(t,a,!1)}convertPattern(t,a){return this.converter(t,a,!0)}convertTypeAnnotation(t,a){let o=(a==null?void 0:a.kind)===T.FunctionType||(a==null?void 0:a.kind)===T.ConstructorType?2:1,v=[t.getFullStart()-o,t.end],E=ei(v,this.ast);return{type:D.TSTypeAnnotation,loc:E,range:v,typeAnnotation:this.convertChild(t)}}convertTypeArgumentsToTypeParameterInstantiation(t,a){let o=mr(t,this.ast,this.ast);return this.createNode(a,{type:D.TSTypeParameterInstantiation,range:[t.pos-1,o.end],params:t.map(m=>this.convertChild(m))})}convertTSTypeParametersToTypeParametersDeclaration(t){let a=mr(t,this.ast,this.ast),o=[t.pos-1,a.end];return{type:D.TSTypeParameterDeclaration,loc:ei(o,this.ast),range:o,params:t.map(m=>this.convertChild(m))}}convertParameters(t){return t!=null&&t.length?t.map(a=>{var m;let o=this.convertChild(a);return o.decorators=((m=ra(a))==null?void 0:m.map(v=>this.convertChild(v)))??[],o}):[]}converter(t,a,o){if(!t)return null;ge(this,he,Xh).call(this,t);let m=this.allowPattern;o!=null&&(this.allowPattern=o);let v=this.convertNode(t,a??t.parent);return this.registerTSNodeInNodeMap(t,v),this.allowPattern=m,v}convertImportAttributes(t){return t==null?[]:t.elements.map(a=>this.convertChild(a))}convertJSXIdentifier(t){let a=this.createNode(t,{type:D.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,a),a}convertJSXNamespaceOrIdentifier(t){if(t.kind===Ie.JsxNamespacedName){let m=this.createNode(t,{type:D.JSXNamespacedName,name:this.createNode(t.name,{type:D.JSXIdentifier,name:t.name.text}),namespace:this.createNode(t.namespace,{type:D.JSXIdentifier,name:t.namespace.text})});return this.registerTSNodeInNodeMap(t,m),m}let a=t.getText(),o=a.indexOf(":");if(o>0){let m=ia(t,this.ast),v=this.createNode(t,{type:D.JSXNamespacedName,range:m,name:this.createNode(t,{type:D.JSXIdentifier,range:[m[0]+o+1,m[1]],name:a.slice(o+1)}),namespace:this.createNode(t,{type:D.JSXIdentifier,range:[m[0],m[0]+o],name:a.slice(0,o)})});return this.registerTSNodeInNodeMap(t,v),v}return this.convertJSXIdentifier(t)}convertJSXTagName(t,a){let o;switch(t.kind){case T.PropertyAccessExpression:t.name.kind===T.PrivateIdentifier&&ge(this,he,Je).call(this,t.name,"Non-private identifier expected."),o=this.createNode(t,{type:D.JSXMemberExpression,object:this.convertJSXTagName(t.expression,a),property:this.convertJSXIdentifier(t.name)});break;case T.ThisKeyword:case T.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,o),o}convertMethodSignature(t){return this.createNode(t,{type:D.TSMethodSignature,accessibility:ki(t),computed:aa(t.name),key:this.convertChild(t.name),kind:(()=>{switch(t.kind){case T.GetAccessor:return"get";case T.SetAccessor:return"set";case T.MethodSignature:return"method"}})(),optional:Kf(t),params:this.convertParameters(t.parameters),readonly:He(T.ReadonlyKeyword,t),returnType:t.type&&this.convertTypeAnnotation(t.type,t),static:He(T.StaticKeyword,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}fixParentLocation(t,a){a[0]t.range[1]&&(t.range[1]=a[1],t.loc.end=k_(t.range[1],this.ast))}convertNode(t,a){var o,m,v,E,C,c,W,h;switch(t.kind){case T.SourceFile:return this.createNode(t,{type:D.Program,range:[t.getStart(this.ast),t.endOfFileToken.end],body:this.convertBodyExpressions(t.statements,t),comments:void 0,sourceType:t.externalModuleIndicator?"module":"script",tokens:void 0});case T.Block:return this.createNode(t,{type:D.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case T.Identifier:return Vh(t)?this.createNode(t,{type:D.ThisExpression}):this.createNode(t,{type:D.Identifier,decorators:[],name:t.text,optional:!1,typeAnnotation:void 0});case T.PrivateIdentifier:return this.createNode(t,{type:D.PrivateIdentifier,name:t.text.slice(1)});case T.WithStatement:return this.createNode(t,{type:D.WithStatement,body:this.convertChild(t.statement),object:this.convertChild(t.expression)});case T.ReturnStatement:return this.createNode(t,{type:D.ReturnStatement,argument:this.convertChild(t.expression)});case T.LabeledStatement:return this.createNode(t,{type:D.LabeledStatement,body:this.convertChild(t.statement),label:this.convertChild(t.label)});case T.ContinueStatement:return this.createNode(t,{type:D.ContinueStatement,label:this.convertChild(t.label)});case T.BreakStatement:return this.createNode(t,{type:D.BreakStatement,label:this.convertChild(t.label)});case T.IfStatement:return this.createNode(t,{type:D.IfStatement,alternate:this.convertChild(t.elseStatement),consequent:this.convertChild(t.thenStatement),test:this.convertChild(t.expression)});case T.SwitchStatement:return t.caseBlock.clauses.filter(y=>y.kind===T.DefaultClause).length>1&&ge(this,he,Je).call(this,t,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(t,{type:D.SwitchStatement,cases:t.caseBlock.clauses.map(y=>this.convertChild(y)),discriminant:this.convertChild(t.expression)});case T.CaseClause:case T.DefaultClause:return this.createNode(t,{type:D.SwitchCase,consequent:t.statements.map(y=>this.convertChild(y)),test:t.kind===T.CaseClause?this.convertChild(t.expression):null});case T.ThrowStatement:return t.expression.end===t.expression.pos&&ge(this,he,Vt).call(this,t,"A throw statement must throw an expression."),this.createNode(t,{type:D.ThrowStatement,argument:this.convertChild(t.expression)});case T.TryStatement:return this.createNode(t,{type:D.TryStatement,block:this.convertChild(t.tryBlock),finalizer:this.convertChild(t.finallyBlock),handler:this.convertChild(t.catchClause)});case T.CatchClause:return(o=t.variableDeclaration)!=null&&o.initializer&&ge(this,he,Je).call(this,t.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(t,{type:D.CatchClause,body:this.convertChild(t.block),param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null});case T.WhileStatement:return this.createNode(t,{type:D.WhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case T.DoStatement:return this.createNode(t,{type:D.DoWhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case T.ForStatement:return this.createNode(t,{type:D.ForStatement,body:this.convertChild(t.statement),init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor)});case T.ForInStatement:return ge(this,he,rd).call(this,t.initializer,t.kind),this.createNode(t,{type:D.ForInStatement,body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case T.ForOfStatement:return ge(this,he,rd).call(this,t.initializer,t.kind),this.createNode(t,{type:D.ForOfStatement,await:!!(t.awaitModifier&&t.awaitModifier.kind===T.AwaitKeyword),body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case T.FunctionDeclaration:{let y=He(T.DeclareKeyword,t),g=He(T.AsyncKeyword,t),x=!!t.asteriskToken;y?t.body?ge(this,he,Je).call(this,t,"An implementation cannot be declared in ambient contexts."):g?ge(this,he,Je).call(this,t,"'async' modifier cannot be used in an ambient context."):x&&ge(this,he,Je).call(this,t,"Generators are not allowed in an ambient context."):!t.body&&x&&ge(this,he,Je).call(this,t,"A function signature cannot be declared as a generator.");let N=this.createNode(t,{type:t.body?D.FunctionDeclaration:D.TSDeclareFunction,async:g,body:this.convertChild(t.body)||void 0,declare:y,expression:!1,generator:x,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,N)}case T.VariableDeclaration:{let y=!!t.exclamationToken,g=this.convertChild(t.initializer),x=this.convertBindingNameWithTypeAnnotation(t.name,t.type,t);return y&&(g?ge(this,he,Je).call(this,t,"Declarations with initializers cannot also have definite assignment assertions."):(x.type!==D.Identifier||!x.typeAnnotation)&&ge(this,he,Je).call(this,t,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(t,{type:D.VariableDeclarator,definite:y,id:x,init:g})}case T.VariableStatement:{let y=this.createNode(t,{type:D.VariableDeclaration,declarations:t.declarationList.declarations.map(g=>this.convertChild(g)),declare:He(T.DeclareKeyword,t),kind:Jl(t.declarationList)});return y.declarations.length||ge(this,he,Vt).call(this,t,"A variable declaration list must have at least one variable declarator."),(y.kind==="using"||y.kind==="await using")&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].init==null&&ge(this,he,Je).call(this,g,`'${y.kind}' declarations must be initialized.`),y.declarations[x].id.type!==D.Identifier&&ge(this,he,Je).call(this,g.name,`'${y.kind}' declarations may not have binding patterns.`)}),(y.declare||["await using","const","using"].includes(y.kind))&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].definite&&ge(this,he,Je).call(this,g,"A definite assignment assertion '!' is not permitted in this context.")}),y.declare&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].init&&(["let","var"].includes(y.kind)||y.declarations[x].id.typeAnnotation)&&ge(this,he,Je).call(this,g,"Initializers are not permitted in ambient contexts.")}),this.fixExports(t,y)}case T.VariableDeclarationList:{let y=this.createNode(t,{type:D.VariableDeclaration,declarations:t.declarations.map(g=>this.convertChild(g)),declare:!1,kind:Jl(t)});return(y.kind==="using"||y.kind==="await using")&&t.declarations.forEach((g,x)=>{y.declarations[x].init!=null&&ge(this,he,Je).call(this,g,`'${y.kind}' declarations may not be initialized in for statement.`),y.declarations[x].id.type!==D.Identifier&&ge(this,he,Je).call(this,g.name,`'${y.kind}' declarations may not have binding patterns.`)}),y}case T.ExpressionStatement:return this.createNode(t,{type:D.ExpressionStatement,directive:void 0,expression:this.convertChild(t.expression)});case T.ThisKeyword:return this.createNode(t,{type:D.ThisExpression});case T.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:D.ArrayPattern,decorators:[],elements:t.elements.map(y=>this.convertPattern(y)),optional:!1,typeAnnotation:void 0}):this.createNode(t,{type:D.ArrayExpression,elements:t.elements.map(y=>this.convertChild(y))});case T.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(t,{type:D.ObjectPattern,decorators:[],optional:!1,properties:t.properties.map(g=>this.convertPattern(g)),typeAnnotation:void 0});let y=[];for(let g of t.properties)(g.kind===T.GetAccessor||g.kind===T.SetAccessor||g.kind===T.MethodDeclaration)&&!g.body&&ge(this,he,Vt).call(this,g.end-1,"'{' expected."),y.push(this.convertChild(g));return this.createNode(t,{type:D.ObjectExpression,properties:y})}case T.PropertyAssignment:{let{exclamationToken:y,questionToken:g}=t;return g&&ge(this,he,Je).call(this,g,"A property assignment cannot have a question token."),y&&ge(this,he,Je).call(this,y,"A property assignment cannot have an exclamation token."),this.createNode(t,{type:D.Property,computed:aa(t.name),key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(t.initializer,t,this.allowPattern)})}case T.ShorthandPropertyAssignment:{let{exclamationToken:y,modifiers:g,questionToken:x}=t;return g&&ge(this,he,Je).call(this,g[0],"A shorthand property assignment cannot have modifiers."),x&&ge(this,he,Je).call(this,x,"A shorthand property assignment cannot have a question token."),y&&ge(this,he,Je).call(this,y,"A shorthand property assignment cannot have an exclamation token."),t.objectAssignmentInitializer?this.createNode(t,{type:D.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(t,{type:D.AssignmentPattern,decorators:[],left:this.convertPattern(t.name),optional:!1,right:this.convertChild(t.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(t,{type:D.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(t.name)})}case T.ComputedPropertyName:return this.convertChild(t.expression);case T.PropertyDeclaration:{let y=He(T.AbstractKeyword,t);y&&t.initializer&&ge(this,he,Je).call(this,t.initializer,"Abstract property cannot have an initializer.");let g=He(T.AccessorKeyword,t),x=g?y?D.TSAbstractAccessorProperty:D.AccessorProperty:y?D.TSAbstractPropertyDefinition:D.PropertyDefinition,N=this.convertChild(t.name);return this.createNode(t,{type:x,accessibility:ki(t),computed:aa(t.name),declare:He(T.DeclareKeyword,t),decorators:((m=ra(t))==null?void 0:m.map(te=>this.convertChild(te)))??[],definite:!!t.exclamationToken,key:N,optional:(N.type===D.Literal||t.name.kind===T.Identifier||t.name.kind===T.ComputedPropertyName||t.name.kind===T.PrivateIdentifier)&&!!t.questionToken,override:He(T.OverrideKeyword,t),readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t),value:y?null:this.convertChild(t.initializer)})}case T.GetAccessor:case T.SetAccessor:if(t.parent.kind===T.InterfaceDeclaration||t.parent.kind===T.TypeLiteral)return this.convertMethodSignature(t);case T.MethodDeclaration:{let y=this.createNode(t,{type:t.body?D.FunctionExpression:D.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:He(T.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:null,params:[],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});y.typeParameters&&this.fixParentLocation(y,y.typeParameters.range);let g;if(a.kind===T.ObjectLiteralExpression)y.params=t.parameters.map(x=>this.convertChild(x)),g=this.createNode(t,{type:D.Property,computed:aa(t.name),key:this.convertChild(t.name),kind:"init",method:t.kind===T.MethodDeclaration,optional:!!t.questionToken,shorthand:!1,value:y});else{y.params=this.convertParameters(t.parameters);let x=He(T.AbstractKeyword,t)?D.TSAbstractMethodDefinition:D.MethodDefinition;g=this.createNode(t,{type:x,accessibility:ki(t),computed:aa(t.name),decorators:((v=ra(t))==null?void 0:v.map(N=>this.convertChild(N)))??[],key:this.convertChild(t.name),kind:"method",optional:!!t.questionToken,override:He(T.OverrideKeyword,t),static:He(T.StaticKeyword,t),value:y})}return t.kind===T.GetAccessor?g.kind="get":t.kind===T.SetAccessor?g.kind="set":!g.static&&t.name.kind===T.StringLiteral&&t.name.text==="constructor"&&g.type!==D.Property&&(g.kind="constructor"),g}case T.Constructor:{let y=Lh(t),g=(y&&mr(y,t,this.ast))??t.getFirstToken(),x=this.createNode(t,{type:t.body?D.FunctionExpression:D.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:!1,body:this.convertChild(t.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});x.typeParameters&&this.fixParentLocation(x,x.typeParameters.range);let N=g.kind===T.StringLiteral?this.createNode(g,{type:D.Literal,raw:g.getText(),value:"constructor"}):this.createNode(t,{type:D.Identifier,range:[g.getStart(this.ast),g.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),te=He(T.StaticKeyword,t);return this.createNode(t,{type:He(T.AbstractKeyword,t)?D.TSAbstractMethodDefinition:D.MethodDefinition,accessibility:ki(t),computed:!1,decorators:[],key:N,kind:te?"method":"constructor",optional:!1,override:!1,static:te,value:x})}case T.FunctionExpression:return this.createNode(t,{type:D.FunctionExpression,async:He(T.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.SuperKeyword:return this.createNode(t,{type:D.Super});case T.ArrayBindingPattern:return this.createNode(t,{type:D.ArrayPattern,decorators:[],elements:t.elements.map(y=>this.convertPattern(y)),optional:!1,typeAnnotation:void 0});case T.OmittedExpression:return null;case T.ObjectBindingPattern:return this.createNode(t,{type:D.ObjectPattern,decorators:[],optional:!1,properties:t.elements.map(y=>this.convertPattern(y)),typeAnnotation:void 0});case T.BindingElement:{if(a.kind===T.ArrayBindingPattern){let g=this.convertChild(t.name,a);return t.initializer?this.createNode(t,{type:D.AssignmentPattern,decorators:[],left:g,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}):t.dotDotDotToken?this.createNode(t,{type:D.RestElement,argument:g,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):g}let y;return t.dotDotDotToken?y=this.createNode(t,{type:D.RestElement,argument:this.convertChild(t.propertyName??t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):y=this.createNode(t,{type:D.Property,computed:!!(t.propertyName&&t.propertyName.kind===T.ComputedPropertyName),key:this.convertChild(t.propertyName??t.name),kind:"init",method:!1,optional:!1,shorthand:!t.propertyName,value:this.convertChild(t.name)}),t.initializer&&(y.value=this.createNode(t,{type:D.AssignmentPattern,range:[t.name.getStart(this.ast),t.initializer.end],decorators:[],left:this.convertChild(t.name),optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0})),y}case T.ArrowFunction:return this.createNode(t,{type:D.ArrowFunctionExpression,async:He(T.AsyncKeyword,t),body:this.convertChild(t.body),expression:t.body.kind!==T.Block,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.YieldExpression:return this.createNode(t,{type:D.YieldExpression,argument:this.convertChild(t.expression),delegate:!!t.asteriskToken});case T.AwaitExpression:return this.createNode(t,{type:D.AwaitExpression,argument:this.convertChild(t.expression)});case T.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:D.TemplateLiteral,expressions:[],quasis:[this.createNode(t,{type:D.TemplateElement,tail:!0,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1)}})]});case T.TemplateExpression:{let y=this.createNode(t,{type:D.TemplateLiteral,expressions:[],quasis:[this.convertChild(t.head)]});return t.templateSpans.forEach(g=>{y.expressions.push(this.convertChild(g.expression)),y.quasis.push(this.convertChild(g.literal))}),y}case T.TaggedTemplateExpression:return this.createNode(t,{type:D.TaggedTemplateExpression,quasi:this.convertChild(t.template),tag:this.convertChild(t.tag),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.TemplateHead:case T.TemplateMiddle:case T.TemplateTail:{let y=t.kind===T.TemplateTail;return this.createNode(t,{type:D.TemplateElement,tail:y,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(y?1:2))}})}case T.SpreadAssignment:case T.SpreadElement:return this.allowPattern?this.createNode(t,{type:D.RestElement,argument:this.convertPattern(t.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(t,{type:D.SpreadElement,argument:this.convertChild(t.expression)});case T.Parameter:{let y,g;return t.dotDotDotToken?y=g=this.createNode(t,{type:D.RestElement,argument:this.convertChild(t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):t.initializer?(y=this.convertChild(t.name),g=this.createNode(t,{type:D.AssignmentPattern,range:[t.name.getStart(this.ast),t.initializer.end],decorators:[],left:y,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}),nr(t)&&(g.range[0]=y.range[0],g.loc=ei(g.range,this.ast))):y=g=this.convertChild(t.name,a),t.type&&(y.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(y,y.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>y.range[1]&&(y.range[1]=t.questionToken.end,y.loc.end=k_(y.range[1],this.ast)),y.optional=!0),nr(t)?this.createNode(t,{type:D.TSParameterProperty,accessibility:ki(t),decorators:[],override:He(T.OverrideKeyword,t),parameter:g,readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t)}):g}case T.ClassDeclaration:!t.name&&(!He(Ie.ExportKeyword,t)||!He(Ie.DefaultKeyword,t))&&ge(this,he,Vt).call(this,t,"A class declaration without the 'default' modifier must have a name.");case T.ClassExpression:{let y=t.heritageClauses??[],g=t.kind===T.ClassDeclaration?D.ClassDeclaration:D.ClassExpression,x,N;for(let ue of y){let{token:ye,types:fe}=ue;fe.length===0&&ge(this,he,Vt).call(this,ue,`'${it(ye)}' list cannot be empty.`),ye===T.ExtendsKeyword?(x&&ge(this,he,Vt).call(this,ue,"'extends' clause already seen."),N&&ge(this,he,Vt).call(this,ue,"'extends' clause must precede 'implements' clause."),fe.length>1&&ge(this,he,Vt).call(this,fe[1],"Classes can only extend a single class."),x??(x=ue)):ye===T.ImplementsKeyword&&(N&&ge(this,he,Vt).call(this,ue,"'implements' clause already seen."),N??(N=ue))}let te=this.createNode(t,{type:g,abstract:He(T.AbstractKeyword,t),body:this.createNode(t,{type:D.ClassBody,range:[t.members.pos-1,t.end],body:t.members.filter(Mh).map(ue=>this.convertChild(ue))}),declare:He(T.DeclareKeyword,t),decorators:((E=ra(t))==null?void 0:E.map(ue=>this.convertChild(ue)))??[],id:this.convertChild(t.name),implements:(N==null?void 0:N.types.map(ue=>this.convertChild(ue)))??[],superClass:x!=null&&x.types[0]?this.convertChild(x.types[0].expression):null,superTypeArguments:void 0,typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return(C=x==null?void 0:x.types[0])!=null&&C.typeArguments&&(te.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(x.types[0].typeArguments,x.types[0])),this.fixExports(t,te)}case T.ModuleBlock:return this.createNode(t,{type:D.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case T.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let y=this.createNode(t,ge(this,he,Ka).call(this,{type:D.ImportDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),importKind:"value",source:this.convertChild(t.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(t.importClause&&(t.importClause.isTypeOnly&&(y.importKind="type"),t.importClause.name&&y.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case T.NamespaceImport:y.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case T.NamedImports:y.specifiers.push(...t.importClause.namedBindings.elements.map(g=>this.convertChild(g)));break}return y}case T.NamespaceImport:return this.createNode(t,{type:D.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case T.ImportSpecifier:return this.createNode(t,{type:D.ImportSpecifier,imported:this.convertChild(t.propertyName??t.name),importKind:t.isTypeOnly?"type":"value",local:this.convertChild(t.name)});case T.ImportClause:{let y=this.convertChild(t.name);return this.createNode(t,{type:D.ImportDefaultSpecifier,range:y.range,local:y})}case T.ExportDeclaration:return((c=t.exportClause)==null?void 0:c.kind)===T.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,ge(this,he,Ka).call(this,{type:D.ExportNamedDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),declaration:null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier),specifiers:t.exportClause.elements.map(y=>this.convertChild(y,t))},"assertions","attributes",!0))):(this.assertModuleSpecifier(t,!1),this.createNode(t,ge(this,he,Ka).call(this,{type:D.ExportAllDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),exported:((W=t.exportClause)==null?void 0:W.kind)===T.NamespaceExport?this.convertChild(t.exportClause.name):null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier)},"assertions","attributes",!0)));case T.ExportSpecifier:{let y=t.propertyName??t.name;return y.kind===T.StringLiteral&&a.kind===T.ExportDeclaration&&((h=a.moduleSpecifier)==null?void 0:h.kind)!==T.StringLiteral&&ge(this,he,Je).call(this,y,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(t,{type:D.ExportSpecifier,exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value",local:this.convertChild(y)})}case T.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:D.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:D.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case T.PrefixUnaryExpression:case T.PostfixUnaryExpression:{let y=Zr(t.operator);return y==="++"||y==="--"?(jl(t.operand)||ge(this,he,Vt).call(this,t.operand,"Invalid left-hand side expression in unary operation"),this.createNode(t,{type:D.UpdateExpression,argument:this.convertChild(t.operand),operator:y,prefix:t.kind===T.PrefixUnaryExpression})):this.createNode(t,{type:D.UnaryExpression,argument:this.convertChild(t.operand),operator:y,prefix:t.kind===T.PrefixUnaryExpression})}case T.DeleteExpression:return this.createNode(t,{type:D.UnaryExpression,argument:this.convertChild(t.expression),operator:"delete",prefix:!0});case T.VoidExpression:return this.createNode(t,{type:D.UnaryExpression,argument:this.convertChild(t.expression),operator:"void",prefix:!0});case T.TypeOfExpression:return this.createNode(t,{type:D.UnaryExpression,argument:this.convertChild(t.expression),operator:"typeof",prefix:!0});case T.TypeOperator:return this.createNode(t,{type:D.TSTypeOperator,operator:Zr(t.operator),typeAnnotation:this.convertChild(t.type)});case T.BinaryExpression:{if(Jh(t.operatorToken)){let g=this.createNode(t,{type:D.SequenceExpression,expressions:[]}),x=this.convertChild(t.left);return x.type===D.SequenceExpression&&t.left.kind!==T.ParenthesizedExpression?g.expressions.push(...x.expressions):g.expressions.push(x),g.expressions.push(this.convertChild(t.right)),g}let y=jh(t.operatorToken);return this.allowPattern&&y.type===D.AssignmentExpression?this.createNode(t,{type:D.AssignmentPattern,decorators:[],left:this.convertPattern(t.left,t),optional:!1,right:this.convertChild(t.right),typeAnnotation:void 0}):this.createNode(t,{...y,left:this.converter(t.left,t,y.type===D.AssignmentExpression),right:this.convertChild(t.right)})}case T.PropertyAccessExpression:{let y=this.convertChild(t.expression),g=this.convertChild(t.name),N=this.createNode(t,{type:D.MemberExpression,computed:!1,object:y,optional:t.questionDotToken!=null,property:g});return this.convertChainExpression(N,t)}case T.ElementAccessExpression:{let y=this.convertChild(t.expression),g=this.convertChild(t.argumentExpression),N=this.createNode(t,{type:D.MemberExpression,computed:!0,object:y,optional:t.questionDotToken!=null,property:g});return this.convertChainExpression(N,t)}case T.CallExpression:{if(t.expression.kind===T.ImportKeyword)return t.arguments.length!==1&&t.arguments.length!==2&&ge(this,he,Vt).call(this,t.arguments[2]??t,"Dynamic import requires exactly one or two arguments."),this.createNode(t,ge(this,he,Ka).call(this,{type:D.ImportExpression,options:t.arguments[1]?this.convertChild(t.arguments[1]):null,source:this.convertChild(t.arguments[0])},"attributes","options",!0));let y=this.convertChild(t.expression),g=t.arguments.map(te=>this.convertChild(te)),x=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),N=this.createNode(t,{type:D.CallExpression,arguments:g,callee:y,optional:t.questionDotToken!=null,typeArguments:x});return this.convertChainExpression(N,t)}case T.NewExpression:{let y=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t);return this.createNode(t,{type:D.NewExpression,arguments:t.arguments?t.arguments.map(g=>this.convertChild(g)):[],callee:this.convertChild(t.expression),typeArguments:y})}case T.ConditionalExpression:return this.createNode(t,{type:D.ConditionalExpression,alternate:this.convertChild(t.whenFalse),consequent:this.convertChild(t.whenTrue),test:this.convertChild(t.condition)});case T.MetaProperty:return this.createNode(t,{type:D.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:D.Identifier,decorators:[],name:Zr(t.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(t.name)});case T.Decorator:return this.createNode(t,{type:D.Decorator,expression:this.convertChild(t.expression)});case T.StringLiteral:return this.createNode(t,{type:D.Literal,raw:t.getText(),value:a.kind===T.JsxAttribute?Qf(t.text):t.text});case T.NumericLiteral:return this.createNode(t,{type:D.Literal,raw:t.getText(),value:Number(t.text)});case T.BigIntLiteral:{let y=ia(t,this.ast),g=this.ast.text.slice(y[0],y[1]),x=Er(!1,g.slice(0,-1),"_",""),N=typeof BigInt<"u"?BigInt(x):null;return this.createNode(t,{type:D.Literal,range:y,bigint:N==null?x:String(N),raw:g,value:N})}case T.RegularExpressionLiteral:{let y=t.text.slice(1,t.text.lastIndexOf("/")),g=t.text.slice(t.text.lastIndexOf("/")+1),x=null;try{x=new RegExp(y,g)}catch{}return this.createNode(t,{type:D.Literal,raw:t.text,regex:{flags:g,pattern:y},value:x})}case T.TrueKeyword:return this.createNode(t,{type:D.Literal,raw:"true",value:!0});case T.FalseKeyword:return this.createNode(t,{type:D.Literal,raw:"false",value:!1});case T.NullKeyword:return this.createNode(t,{type:D.Literal,raw:"null",value:null});case T.EmptyStatement:return this.createNode(t,{type:D.EmptyStatement});case T.DebuggerStatement:return this.createNode(t,{type:D.DebuggerStatement});case T.JsxElement:return this.createNode(t,{type:D.JSXElement,children:t.children.map(y=>this.convertChild(y)),closingElement:this.convertChild(t.closingElement),openingElement:this.convertChild(t.openingElement)});case T.JsxFragment:return this.createNode(t,{type:D.JSXFragment,children:t.children.map(y=>this.convertChild(y)),closingFragment:this.convertChild(t.closingFragment),openingFragment:this.convertChild(t.openingFragment)});case T.JsxSelfClosingElement:return this.createNode(t,{type:D.JSXElement,children:[],closingElement:null,openingElement:this.createNode(t,{type:D.JSXOpeningElement,range:ia(t,this.ast),attributes:t.attributes.properties.map(y=>this.convertChild(y)),name:this.convertJSXTagName(t.tagName,t),selfClosing:!0,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):void 0})});case T.JsxOpeningElement:return this.createNode(t,{type:D.JSXOpeningElement,attributes:t.attributes.properties.map(y=>this.convertChild(y)),name:this.convertJSXTagName(t.tagName,t),selfClosing:!1,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.JsxClosingElement:return this.createNode(t,{type:D.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case T.JsxOpeningFragment:return this.createNode(t,{type:D.JSXOpeningFragment});case T.JsxClosingFragment:return this.createNode(t,{type:D.JSXClosingFragment});case T.JsxExpression:{let y=t.expression?this.convertChild(t.expression):this.createNode(t,{type:D.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:D.JSXSpreadChild,expression:y}):this.createNode(t,{type:D.JSXExpressionContainer,expression:y})}case T.JsxAttribute:return this.createNode(t,{type:D.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case T.JsxText:{let y=t.getFullStart(),g=t.getEnd(),x=this.ast.text.slice(y,g);return this.createNode(t,{type:D.JSXText,range:[y,g],raw:x,value:Qf(x)})}case T.JsxSpreadAttribute:return this.createNode(t,{type:D.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case T.QualifiedName:return this.createNode(t,{type:D.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case T.TypeReference:return this.createNode(t,{type:D.TSTypeReference,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),typeName:this.convertChild(t.typeName)});case T.TypeParameter:return this.createNode(t,{type:D.TSTypeParameter,const:He(T.ConstKeyword,t),constraint:t.constraint&&this.convertChild(t.constraint),default:t.default?this.convertChild(t.default):void 0,in:He(T.InKeyword,t),name:this.convertChild(t.name),out:He(T.OutKeyword,t)});case T.ThisType:return this.createNode(t,{type:D.TSThisType});case T.AnyKeyword:case T.BigIntKeyword:case T.BooleanKeyword:case T.NeverKeyword:case T.NumberKeyword:case T.ObjectKeyword:case T.StringKeyword:case T.SymbolKeyword:case T.UnknownKeyword:case T.VoidKeyword:case T.UndefinedKeyword:case T.IntrinsicKeyword:return this.createNode(t,{type:D[`TS${T[t.kind]}`]});case T.NonNullExpression:{let y=this.createNode(t,{type:D.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(y,t)}case T.TypeLiteral:return this.createNode(t,{type:D.TSTypeLiteral,members:t.members.map(y=>this.convertChild(y))});case T.ArrayType:return this.createNode(t,{type:D.TSArrayType,elementType:this.convertChild(t.elementType)});case T.IndexedAccessType:return this.createNode(t,{type:D.TSIndexedAccessType,indexType:this.convertChild(t.indexType),objectType:this.convertChild(t.objectType)});case T.ConditionalType:return this.createNode(t,{type:D.TSConditionalType,checkType:this.convertChild(t.checkType),extendsType:this.convertChild(t.extendsType),falseType:this.convertChild(t.falseType),trueType:this.convertChild(t.trueType)});case T.TypeQuery:return this.createNode(t,{type:D.TSTypeQuery,exprName:this.convertChild(t.exprName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.MappedType:return t.members&&t.members.length>0&&ge(this,he,Vt).call(this,t.members[0],"A mapped type may not declare properties or methods."),this.createNode(t,ge(this,he,id).call(this,{type:D.TSMappedType,constraint:this.convertChild(t.typeParameter.constraint),key:this.convertChild(t.typeParameter.name),nameType:this.convertChild(t.nameType)??null,optional:t.questionToken?t.questionToken.kind===T.QuestionToken||Zr(t.questionToken.kind):!1,readonly:t.readonlyToken?t.readonlyToken.kind===T.ReadonlyKeyword||Zr(t.readonlyToken.kind):void 0,typeAnnotation:t.type&&this.convertChild(t.type)},"typeParameter","'constraint' and 'key'",this.convertChild(t.typeParameter)));case T.ParenthesizedExpression:return this.convertChild(t.expression,a);case T.TypeAliasDeclaration:{let y=this.createNode(t,{type:D.TSTypeAliasDeclaration,declare:He(T.DeclareKeyword,t),id:this.convertChild(t.name),typeAnnotation:this.convertChild(t.type),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,y)}case T.MethodSignature:return this.convertMethodSignature(t);case T.PropertySignature:{let{initializer:y}=t;return y&&ge(this,he,Je).call(this,y,"A property signature cannot have an initializer."),this.createNode(t,{type:D.TSPropertySignature,accessibility:ki(t),computed:aa(t.name),key:this.convertChild(t.name),optional:Kf(t),readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)})}case T.IndexSignature:return this.createNode(t,{type:D.TSIndexSignature,accessibility:ki(t),parameters:t.parameters.map(y=>this.convertChild(y)),readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)});case T.ConstructorType:return this.createNode(t,{type:D.TSConstructorType,abstract:He(T.AbstractKeyword,t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.FunctionType:{let{modifiers:y}=t;y&&ge(this,he,Je).call(this,y[0],"A function type cannot have modifiers.")}case T.ConstructSignature:case T.CallSignature:{let y=t.kind===T.ConstructSignature?D.TSConstructSignatureDeclaration:t.kind===T.CallSignature?D.TSCallSignatureDeclaration:D.TSFunctionType;return this.createNode(t,{type:y,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}case T.ExpressionWithTypeArguments:{let y=a.kind,g=y===T.InterfaceDeclaration?D.TSInterfaceHeritage:y===T.HeritageClause?D.TSClassImplements:D.TSInstantiationExpression;return this.createNode(t,{type:g,expression:this.convertChild(t.expression),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)})}case T.InterfaceDeclaration:{let y=t.heritageClauses??[],g=[],x=!1;for(let te of y){te.token!==T.ExtendsKeyword&&ge(this,he,Je).call(this,te,te.token===T.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token."),x&&ge(this,he,Je).call(this,te,"'extends' clause already seen."),x=!0;for(let ue of te.types)(!Hh(ue.expression)||o1(ue.expression))&&ge(this,he,Je).call(this,ue,"Interface declaration can only extend an identifier/qualified name with optional type arguments."),g.push(this.convertChild(ue,t))}let N=this.createNode(t,{type:D.TSInterfaceDeclaration,body:this.createNode(t,{type:D.TSInterfaceBody,range:[t.members.pos-1,t.end],body:t.members.map(te=>this.convertChild(te))}),declare:He(T.DeclareKeyword,t),extends:g,id:this.convertChild(t.name),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,N)}case T.TypePredicate:{let y=this.createNode(t,{type:D.TSTypePredicate,asserts:t.assertsModifier!=null,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(y.typeAnnotation=this.convertTypeAnnotation(t.type,t),y.typeAnnotation.loc=y.typeAnnotation.typeAnnotation.loc,y.typeAnnotation.range=y.typeAnnotation.typeAnnotation.range),y}case T.ImportType:{let y=ia(t,this.ast);if(t.isTypeOf){let N=mr(t.getFirstToken(),t,this.ast);y[0]=N.getStart(this.ast)}let g=null;if(t.attributes){let N=this.createNode(t.attributes,{type:D.ObjectExpression,properties:t.attributes.elements.map(Ce=>this.createNode(Ce,{type:D.Property,computed:!1,key:this.convertChild(Ce.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.convertChild(Ce.value)}))}),te=mr(t.argument,t,this.ast),ue=mr(te,t,this.ast),ye=mr(t.attributes,t,this.ast),fe=mr(ue,t,this.ast),M=ia(fe,this.ast),ie=fe.kind===Ie.AssertKeyword?"assert":"with";g=this.createNode(t,{type:D.ObjectExpression,range:[ue.getStart(this.ast),ye.end],properties:[this.createNode(t,{type:D.Property,range:[M[0],t.attributes.end],computed:!1,key:this.createNode(t,{type:D.Identifier,range:M,decorators:[],name:ie,optional:!1,typeAnnotation:void 0}),kind:"init",method:!1,optional:!1,shorthand:!1,value:N})]})}let x=this.createNode(t,{type:D.TSImportType,range:y,argument:this.convertChild(t.argument),options:g,qualifier:this.convertChild(t.qualifier),typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null});return t.isTypeOf?this.createNode(t,{type:D.TSTypeQuery,exprName:x,typeArguments:void 0}):x}case T.EnumDeclaration:{let y=t.members.map(x=>this.convertChild(x)),g=this.createNode(t,ge(this,he,id).call(this,{type:D.TSEnumDeclaration,body:this.createNode(t,{type:D.TSEnumBody,range:[t.members.pos-1,t.end],members:y}),const:He(T.ConstKeyword,t),declare:He(T.DeclareKeyword,t),id:this.convertChild(t.name)},"members","'body.members'",t.members.map(x=>this.convertChild(x))));return this.fixExports(t,g)}case T.EnumMember:return this.createNode(t,{type:D.TSEnumMember,computed:t.name.kind===Ie.ComputedPropertyName,id:this.convertChild(t.name),initializer:t.initializer&&this.convertChild(t.initializer)});case T.ModuleDeclaration:{let y=He(T.DeclareKeyword,t),g=this.createNode(t,{type:D.TSModuleDeclaration,...(()=>{if(t.flags&bn.GlobalAugmentation){let N=this.convertChild(t.name),te=this.convertChild(t.body);return(te==null||te.type===D.TSModuleDeclaration)&&ge(this,he,Vt).call(this,t.body??t,"Expected a valid module body"),N.type!==D.Identifier&&ge(this,he,Vt).call(this,t.name,"global module augmentation must have an Identifier id"),{body:te,declare:!1,global:!1,id:N,kind:"global"}}if(Si(t.name)){let N=this.convertChild(t.body);return{kind:"module",...N!=null?{body:N}:{},declare:!1,global:!1,id:this.convertChild(t.name)}}t.body==null&&ge(this,he,Vt).call(this,t,"Expected a module body"),t.name.kind!==Ie.Identifier&&ge(this,he,Vt).call(this,t.name,"`namespace`s must have an Identifier id");let x=this.createNode(t.name,{type:D.Identifier,range:[t.name.getStart(this.ast),t.name.getEnd()],decorators:[],name:t.name.text,optional:!1,typeAnnotation:void 0});for(;t.body&&wi(t.body)&&t.body.name;){t=t.body,y||(y=He(T.DeclareKeyword,t));let N=t.name,te=this.createNode(N,{type:D.Identifier,range:[N.getStart(this.ast),N.getEnd()],decorators:[],name:N.text,optional:!1,typeAnnotation:void 0});x=this.createNode(N,{type:D.TSQualifiedName,range:[x.range[0],te.range[1]],left:x,right:te})}return{body:this.convertChild(t.body),declare:!1,global:!1,id:x,kind:t.flags&bn.Namespace?"namespace":"module"}})()});return g.declare=y,t.flags&bn.GlobalAugmentation&&(g.global=!0),this.fixExports(t,g)}case T.ParenthesizedType:return this.convertChild(t.type);case T.UnionType:return this.createNode(t,{type:D.TSUnionType,types:t.types.map(y=>this.convertChild(y))});case T.IntersectionType:return this.createNode(t,{type:D.TSIntersectionType,types:t.types.map(y=>this.convertChild(y))});case T.AsExpression:return this.createNode(t,{type:D.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case T.InferType:return this.createNode(t,{type:D.TSInferType,typeParameter:this.convertChild(t.typeParameter)});case T.LiteralType:return t.literal.kind===T.NullKeyword?this.createNode(t.literal,{type:D.TSNullKeyword}):this.createNode(t,{type:D.TSLiteralType,literal:this.convertChild(t.literal)});case T.TypeAssertionExpression:return this.createNode(t,{type:D.TSTypeAssertion,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case T.ImportEqualsDeclaration:return this.fixExports(t,this.createNode(t,{type:D.TSImportEqualsDeclaration,id:this.convertChild(t.name),importKind:t.isTypeOnly?"type":"value",moduleReference:this.convertChild(t.moduleReference)}));case T.ExternalModuleReference:return t.expression.kind!==T.StringLiteral&&ge(this,he,Je).call(this,t.expression,"String literal expected."),this.createNode(t,{type:D.TSExternalModuleReference,expression:this.convertChild(t.expression)});case T.NamespaceExportDeclaration:return this.createNode(t,{type:D.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case T.AbstractKeyword:return this.createNode(t,{type:D.TSAbstractKeyword});case T.TupleType:{let y=t.elements.map(g=>this.convertChild(g));return this.createNode(t,{type:D.TSTupleType,elementTypes:y})}case T.NamedTupleMember:{let y=this.createNode(t,{type:D.TSNamedTupleMember,elementType:this.convertChild(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(y.range[0]=y.label.range[0],y.loc.start=y.label.loc.start,this.createNode(t,{type:D.TSRestType,typeAnnotation:y})):y}case T.OptionalType:return this.createNode(t,{type:D.TSOptionalType,typeAnnotation:this.convertChild(t.type)});case T.RestType:return this.createNode(t,{type:D.TSRestType,typeAnnotation:this.convertChild(t.type)});case T.TemplateLiteralType:{let y=this.createNode(t,{type:D.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(g=>{y.types.push(this.convertChild(g.type)),y.quasis.push(this.convertChild(g.literal))}),y}case T.ClassStaticBlockDeclaration:return this.createNode(t,{type:D.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case T.AssertEntry:case T.ImportAttribute:return this.createNode(t,{type:D.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case T.SatisfiesExpression:return this.createNode(t,{type:D.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}createNode(t,a){let o=a;return o.range??(o.range=ia(t,this.ast)),o.loc??(o.loc=ei(o.range,this.ast)),o&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(o,t),o}convertProgram(){return this.converter(this.ast)}deeplyCopy(t){t.kind===Ie.JSDocFunctionType&&ge(this,he,Je).call(this,t,"JSDoc types can only be used inside documentation comments.");let a=`TS${T[t.kind]}`;if(this.options.errorOnUnknownASTType&&!D[a])throw new Error(`Unknown AST_NODE_TYPE: "${a}"`);let o=this.createNode(t,{type:a});"type"in t&&(o.typeAnnotation=t.type&&"kind"in t.type&&p1(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(o.typeArguments=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null),"typeParameters"in t&&(o.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let m=ra(t);m!=null&&m.length&&(o.decorators=m.map(E=>this.convertChild(E)));let v=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([E])=>!v.has(E)).forEach(([E,C])=>{Array.isArray(C)?o[E]=C.map(c=>this.convertChild(c)):C&&typeof C=="object"&&C.kind?o[E]=this.convertChild(C):o[E]=C}),o}fixExports(t,a){let m=wi(t)&&!Si(t.name)?Yh(t):nr(t);if((m==null?void 0:m[0].kind)===T.ExportKeyword){this.registerTSNodeInNodeMap(t,a);let v=m[0],E=m[1],C=(E==null?void 0:E.kind)===T.DefaultKeyword,c=C?mr(E,this.ast,this.ast):mr(v,this.ast,this.ast);if(a.range[0]=c.getStart(this.ast),a.loc=ei(a.range,this.ast),C)return this.createNode(t,{type:D.ExportDefaultDeclaration,range:[v.getStart(this.ast),a.range[1]],declaration:a,exportKind:"value"});let W=a.type===D.TSInterfaceDeclaration||a.type===D.TSTypeAliasDeclaration,h="declare"in a&&a.declare;return this.createNode(t,ge(this,he,Ka).call(this,{type:D.ExportNamedDeclaration,range:[v.getStart(this.ast),a.range[1]],attributes:[],declaration:a,exportKind:W||h?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return a}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(t,a){a&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(t)&&this.tsNodeToESTreeNodeMap.set(t,a)}};he=new WeakSet,rd=function(t,a){let o=a===Ie.ForInStatement?"for...in":"for...of";if(nh(t)){t.declarations.length!==1&&ge(this,he,Je).call(this,t,`Only a single variable declaration is allowed in a '${o}' statement.`);let m=t.declarations[0];m.initializer?ge(this,he,Je).call(this,m,`The variable declaration of a '${o}' statement cannot have an initializer.`):m.type&&ge(this,he,Je).call(this,m,`The variable declaration of a '${o}' statement cannot have a type annotation.`),a===Ie.ForInStatement&&t.flags&bn.Using&&ge(this,he,Je).call(this,t,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!jl(t)&&t.kind!==Ie.ObjectLiteralExpression&&t.kind!==Ie.ArrayLiteralExpression&&ge(this,he,Je).call(this,t,`The left-hand side of a '${o}' statement must be a variable or a property access.`)},Xh=function(t){if(!this.options.allowInvalidAST){Fh(t)&&ge(this,he,Je).call(this,t.illegalDecorators[0],"Decorators are not valid here.");for(let a of ra(t,!0)??[])Gh(t)||(b_(t)&&!td(t.body)?ge(this,he,Je).call(this,a,"A decorator can only decorate a method implementation, not an overload."):ge(this,he,Je).call(this,a,"Decorators are not valid here."));for(let a of nr(t,!0)??[]){if(a.kind!==T.ReadonlyKeyword&&((t.kind===T.PropertySignature||t.kind===T.MethodSignature)&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier cannot appear on a type member`),t.kind===T.IndexSignature&&(a.kind!==T.StaticKeyword||!xi(t.parent))&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier cannot appear on an index signature`)),a.kind!==T.InKeyword&&a.kind!==T.OutKeyword&&a.kind!==T.ConstKeyword&&t.kind===T.TypeParameter&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier cannot appear on a type parameter`),(a.kind===T.InKeyword||a.kind===T.OutKeyword)&&(t.kind!==T.TypeParameter||!(w_(t.parent)||xi(t.parent)||Nl(t.parent)))&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),a.kind===T.ReadonlyKeyword&&t.kind!==T.PropertyDeclaration&&t.kind!==T.PropertySignature&&t.kind!==T.IndexSignature&&t.kind!==T.Parameter&&ge(this,he,Je).call(this,a,"'readonly' modifier can only appear on a property declaration or index signature."),a.kind===T.DeclareKeyword&&xi(t.parent)&&!Ya(t)&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier cannot appear on class elements of this kind.`),a.kind===T.DeclareKeyword&&Qa(t)){let o=Jl(t.declarationList);(o==="using"||o==="await using")&&ge(this,he,Je).call(this,a,`'declare' modifier cannot appear on a '${o}' declaration.`)}if(a.kind===T.AbstractKeyword&&t.kind!==T.ClassDeclaration&&t.kind!==T.ConstructorType&&t.kind!==T.MethodDeclaration&&t.kind!==T.PropertyDeclaration&&t.kind!==T.GetAccessor&&t.kind!==T.SetAccessor&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier can only appear on a class, method, or property declaration.`),(a.kind===T.StaticKeyword||a.kind===T.PublicKeyword||a.kind===T.ProtectedKeyword||a.kind===T.PrivateKeyword)&&(t.parent.kind===T.ModuleBlock||t.parent.kind===T.SourceFile)&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier cannot appear on a module or namespace element.`),a.kind===T.AccessorKeyword&&t.kind!==T.PropertyDeclaration&&ge(this,he,Je).call(this,a,"'accessor' modifier can only appear on a property declaration."),a.kind===T.AsyncKeyword&&t.kind!==T.MethodDeclaration&&t.kind!==T.FunctionDeclaration&&t.kind!==T.FunctionExpression&&t.kind!==T.ArrowFunction&&ge(this,he,Je).call(this,a,"'async' modifier cannot be used here."),t.kind===T.Parameter&&(a.kind===T.StaticKeyword||a.kind===T.ExportKeyword||a.kind===T.DeclareKeyword||a.kind===T.AsyncKeyword)&&ge(this,he,Je).call(this,a,`'${it(a.kind)}' modifier cannot appear on a parameter.`),a.kind===T.PublicKeyword||a.kind===T.ProtectedKeyword||a.kind===T.PrivateKeyword)for(let o of nr(t)??[])o!==a&&(o.kind===T.PublicKeyword||o.kind===T.ProtectedKeyword||o.kind===T.PrivateKeyword)&&ge(this,he,Je).call(this,o,"Accessibility modifier already seen.");if(t.kind===T.Parameter&&(a.kind===T.PublicKeyword||a.kind===T.PrivateKeyword||a.kind===T.ProtectedKeyword||a.kind===T.ReadonlyKeyword||a.kind===T.OverrideKeyword)){let o=Wh(t);o.kind===T.Constructor&&td(o.body)||ge(this,he,Je).call(this,a,"A parameter property is only allowed in a constructor implementation.")}}}},Je=function(t,a){let o,m;throw typeof t=="number"?o=m=t:(o=t.getStart(this.ast),m=t.getEnd()),ed(a,this.ast,o,m)},Vt=function(t,a){this.options.allowInvalidAST||ge(this,he,Je).call(this,t,a)},Ka=function(t,a,o,m=!1){let v=m;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>t[o]:()=>(v||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use '${o}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),v=!0),t[o]),set(E){Object.defineProperty(t,a,{enumerable:!0,value:E,writable:!0})}}),t},id=function(t,a,o,m){let v=!1;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>m:()=>(v||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use ${o} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),v=!0),m),set(E){Object.defineProperty(t,a,{enumerable:!0,value:E,writable:!0})}}),t};function Bv(e,t,a=e.getSourceFile()){let o=[];for(;;){if(df(e.kind))t(e);else{let m=e.getChildren(a);if(m.length===1){e=m[0];continue}for(let v=m.length-1;v>=0;--v)o.push(m[v])}if(o.length===0)break;e=o.pop()}}function Qh(e,t,a=e.getSourceFile()){let o=a.text,m=a.languageVariant!==Sl.JSX;return Bv(e,E=>{if(E.pos!==E.end&&(E.kind!==Ie.JsxText&&Km(o,E.pos===0?(sf(o)??"").length:E.pos,v),m||qv(E)))return Zm(o,E.end,v)},a);function v(E,C,c){t(o,{end:C,kind:c,pos:E})}}function qv(e){switch(e.kind){case Ie.CloseBraceToken:return e.parent.kind!==Ie.JsxExpression||!sd(e.parent.parent);case Ie.GreaterThanToken:switch(e.parent.kind){case Ie.JsxClosingElement:case Ie.JsxClosingFragment:return!sd(e.parent.parent.parent);case Ie.JsxOpeningElement:return e.end!==e.parent.end;case Ie.JsxOpeningFragment:return!1;case Ie.JsxSelfClosingElement:return e.end!==e.parent.end||!sd(e.parent.parent)}}return!0}function sd(e){return e.kind===Ie.JsxElement||e.kind===Ie.JsxFragment}var[px,fx]=Em.split(".").map(e=>Number.parseInt(e,10));var dx=rn.Intrinsic??rn.Any|rn.Unknown|rn.String|rn.Number|rn.BigInt|rn.Boolean|rn.BooleanLiteral|rn.ESSymbol|rn.Void|rn.Undefined|rn.Null|rn.Never|rn.NonPrimitive;function Kh(e,t){let a=[];return Qh(e,(o,m)=>{let v=m.kind===Ie.SingleLineCommentTrivia?Dt.Line:Dt.Block,E=[m.pos,m.end],C=ei(E,e),c=E[0]+2,W=m.kind===Ie.SingleLineCommentTrivia?E[1]-c:E[1]-c-2;a.push({type:v,loc:C,range:E,value:t.slice(c,c+W)})},e),a}var Zh=()=>{};function e0(e,t,a){let{parseDiagnostics:o}=e;if(o.length)throw ad(o[0]);let m=new Rl(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:a,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),v=m.convertProgram();return(!t.range||!t.loc)&&Zh(v,{enter:C=>{t.range||delete C.range,t.loc||delete C.loc}}),t.tokens&&(v.tokens=qh(e)),t.comment&&(v.comments=Kh(e,t.codeFullText)),{astMaps:m.getASTMaps(),estree:v}}function Ul(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===Ie.SourceFile&&typeof t.getFullText=="function"}var Hv=function(e){return e&&e.__esModule?e:{default:e}};var Xv=Hv({extname:e=>"."+e.split(".").pop()});function n0(e,t){switch(Xv.default.extname(e).toLowerCase()){case On.Cjs:case On.Js:case On.Mjs:return Ir.JS;case On.Cts:case On.Mts:case On.Ts:return Ir.TS;case On.Json:return Ir.JSON;case On.Jsx:return Ir.JSX;case On.Tsx:return Ir.TSX;default:return t?Ir.TSX:Ir.TS}}var Qv={default:Ma},Kv=(0,Qv.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");function r0(e){return Kv("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),Ul(e.code)?e.code:gh(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:T_.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,n0(e.filePath,e.jsx))}var i0=e=>e;var a0=()=>{};var s0=class{};var o0=()=>!1;var c0=()=>{};var l4=function(e){return e&&e.__esModule?e:{default:e}};var u4={},_d={default:Ma},p4=l4({extname:e=>"."+e.split(".").pop()}),f4=(0,_d.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),d4,l0=null,u0,p0,f0,d0,E_={ParseAll:(u0=Xa)==null?void 0:u0.ParseAll,ParseForTypeErrors:(p0=Xa)==null?void 0:p0.ParseForTypeErrors,ParseForTypeInfo:(f0=Xa)==null?void 0:f0.ParseForTypeInfo,ParseNone:(d0=Xa)==null?void 0:d0.ParseNone};function m0(e,t={}){var h;let a=m4(e),o=o0(t),m=typeof t.tsconfigRootDir=="string"?t.tsconfigRootDir:"/prettier-security-dirname-placeholder",v=typeof t.loggerFn=="function",E=i0(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:h4(t.jsx),m),C=p4.default.extname(E).toLowerCase(),c=(()=>{switch(t.jsDocParsingMode){case"all":return E_.ParseAll;case"none":return E_.ParseNone;case"type-info":return E_.ParseForTypeInfo;default:return E_.ParseAll}})(),W={loc:t.loc===!0,range:t.range===!0,allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:a,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(y=>typeof y=="string")?t.extraFileExtensions:[],filePath:E,jsDocParsingMode:c,jsx:t.jsx===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?y4(t.projectService,{jsDocParsingMode:c,tsconfigRootDir:m}):void 0,setExternalModuleIndicator:t.sourceType==="module"||t.sourceType==null&&C===On.Mjs||t.sourceType==null&&C===On.Mts?y=>{y.externalModuleIndicator=!0}:void 0,singleRun:o,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:d4??(d4=new s0(o?"Infinity":((h=t.cacheLifetime)==null?void 0:h.glob)??void 0)),tsconfigRootDir:m};if(W.debugLevel.size>0){let y=[];W.debugLevel.has("typescript-eslint")&&y.push("typescript-eslint:*"),(W.debugLevel.has("eslint")||_d.default.enabled("eslint:*,-eslint:code-path"))&&y.push("eslint:*,-eslint:code-path"),_d.default.enable(y.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");f4("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!W.programs&&!W.projectService&&(W.projects=new Map),t.jsDocParsingMode==null&&W.projects.size===0&&W.programs==null&&W.projectService==null&&(W.jsDocParsingMode=E_.ParseNone),c0(W,v),W}function m4(e){return Ul(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function h4(e){return e?"estree.tsx":"estree.ts"}function y4(e,t){let a=typeof e=="object"?e:{};return a0(a.allowDefaultProject),l0??(l0=(0,u4.createProjectService)({options:a,...t})),l0}var T4={default:Ma},Px=(0,T4.default)("typescript-eslint:typescript-estree:parser");function h0(e,t){let{ast:a}=x4(e,t,!1);return a}function x4(e,t,a){let o=m0(e,t);if(t!=null&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let m=r0(o),{astMaps:v,estree:E}=e0(m,o,a);return{ast:E,esTreeNodeToTSNodeMap:v.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:v.tsNodeToESTreeNodeMap}}function S4(e,t){let a=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(a,t)}var y0=S4;function w4(e){let t=[];for(let a of e)try{return a()}catch(o){t.push(o)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var g0=w4;var k4=(e,t,a)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(a);for(let o=t.length-1;o>=0;o--){let m=t[o];if(a(m,o,t))return m}}},b0=k4;var E4=(e,t,a)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[a<0?t.length+a:a]:t.at(a)},v0=E4;var A4=new Proxy(()=>{},{get:()=>A4});function cn(e){var o,m,v;let t=((o=e.range)==null?void 0:o[0])??e.start,a=(v=((m=e.declaration)==null?void 0:m.decorators)??e.decorators)==null?void 0:v[0];return a?Math.min(cn(a),t):t}function Xt(e){var a;return((a=e.range)==null?void 0:a[1])??e.end}function C4(e){let t=new Set(e);return a=>t.has(a==null?void 0:a.type)}var Za=C4;function D4(e,t,a){let o=e.originalText.slice(t,a);for(let m of e[Symbol.for("comments")]){let v=cn(m);if(v>a)break;let E=Xt(m);if(E1&&t.every(a=>a.trimStart()[0]==="*")}var ld=new WeakMap;function M4(e){return ld.has(e)||ld.set(e,O4(e)),ld.get(e)}var ud=M4;function L4(e){if(e.length<2)return;let t;for(let a=e.length-1;a>=0;a--){let o=e[a];if(t&&Xt(o)===cn(t)&&ud(o)&&ud(t)&&(e.splice(a+1,1),o.value+="*//*"+t.value,o.range=[cn(o),Xt(t)]),!od(o)&&!sa(o))throw new TypeError(`Unknown comment type: "${o.type}".`);t=o}}var S0=L4;var A_=null;function C_(e){if(A_!==null&&typeof A_.property){let t=A_;return A_=C_.prototype=null,t}return A_=C_.prototype=e??Object.create(null),new C_}var J4=10;for(let e=0;e<=J4;e++)C_();function pd(e){return C_(e)}function j4(e,t="type"){pd(e);function a(o){let m=o[t],v=e[m];if(!Array.isArray(v))throw Object.assign(new Error(`Missing visitor keys for '${m}'.`),{node:o});return v}return a}var w0=j4;var k0={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","typeParameters","typeArguments","arguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","typeParameters","typeArguments","arguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["decorators","key","value"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","typeParameters","typeArguments","arguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],ImportAttribute:["key","value"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["nameType","typeAnnotation","key","constraint"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","body"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:["body"],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGRoot:["node"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var R4=w0(k0),E0=R4;function fd(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let o=0;o{switch(c.type){case"ParenthesizedExpression":{let{expression:W}=c,h=cn(c);if(W.type==="TypeCastExpression")return W.range=[h,Xt(c)],W;let y=!1;if(!v){if(!E){E=[];for(let x of m)x0(x)&&E.push(Xt(x))}let g=b0(!1,E,x=>x<=h);y=g&&o.slice(g,h).trim().length===0}if(!y)return W.extra={...W.extra,parenthesized:!0},W;break}case"LogicalExpression":if(D0(c))return dd(c);break;case"TemplateLiteral":if(c.expressions.length!==c.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(a==="flow"||a==="hermes"||a==="espree"||a==="typescript"||v){let W=cn(c)+1,h=Xt(c)-(c.tail?1:2);c.range=[W,h]}break;case"VariableDeclaration":{let W=v0(!1,c.declarations,-1);W!=null&&W.init&&o[Xt(W)]!==";"&&(c.range=[cn(c),Xt(W)]);break}case"TSParenthesizedType":return c.typeAnnotation;case"TSTypeParameter":C0(c);break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(c.types.length===1)return c.types[0];break;case"TSMappedType":if(!c.constraint&&!c.key){let{name:W,constraint:h}=C0(c.typeParameter);c.constraint=h,c.key=W,delete c.typeParameter}break;case"TSEnumDeclaration":if(!c.body){let W=Xt(c.id),{members:h}=c,y=T0({originalText:o,[Symbol.for("comments")]:m},W,h[0]?cn(h[0]):Xt(c)),g=W+y.indexOf("{");c.body={type:"TSEnumBody",members:h,range:[g,Xt(c)]},delete c.members}break;case"ImportExpression":a==="hermes"&&c.attributes&&!c.options&&(c.options=c.attributes);break}});let C=e.type==="File"?e.program:e;return C.interpreter&&(m.unshift(C.interpreter),delete C.interpreter),v&&e.hashbang&&(m.unshift(e.hashbang),delete e.hashbang),e.type==="Program"&&(e.range=[0,o.length]),e}function C0(e){if(e.type==="TSTypeParameter"&&typeof e.name=="string"){let t=cn(e);e.name={type:"Identifier",name:e.name,range:[t,t+e.name.length]}}return e}function D0(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function dd(e){return D0(e)?dd({type:"LogicalExpression",operator:e.operator,left:dd({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[cn(e.left),Xt(e.right.left)]}),right:e.right.right,range:[cn(e),Xt(e)]}):e}var P0=U4;var B4=/\*\/$/,q4=/^\/\*\*?/,F4=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,z4=/(^|\s+)\/\/([^\n\r]*)/g,N0=/^(\r?\n)+/,V4=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,I0=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,W4=/(\r?\n|^) *\* ?/g,G4=[];function O0(e){let t=e.match(F4);return t?t[0].trimStart():""}function M0(e){let t=` -`;e=Er(!1,e.replace(q4,"").replace(B4,""),W4,"$1");let a="";for(;a!==e;)a=e,e=Er(!1,e,V4,`${t}$1 $2${t}`);e=e.replace(N0,"").trimEnd();let o=Object.create(null),m=Er(!1,e,I0,"").replace(N0,"").trimEnd(),v;for(;v=I0.exec(e);){let E=Er(!1,v[2],z4,"");if(typeof o[v[1]]=="string"||Array.isArray(o[v[1]])){let C=o[v[1]];o[v[1]]=[...G4,...Array.isArray(C)?C:[C],E]}else o[v[1]]=E}return{comments:m,pragmas:o}}var L0=["noformat","noprettier"],J0=["format","prettier"];function Y4(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var j0=Y4;function R0(e){let t=j0(e);t&&(e=e.slice(t.length+1));let a=O0(e),{pragmas:o,comments:m}=M0(a);return{shebang:t,text:e,pragmas:o,comments:m}}function U0(e){let{pragmas:t}=R0(e);return J0.some(a=>Object.prototype.hasOwnProperty.call(t,a))}function B0(e){let{pragmas:t}=R0(e);return L0.some(a=>Object.prototype.hasOwnProperty.call(t,a))}function H4(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:U0,hasIgnorePragma:B0,locStart:cn,locEnd:Xt,...e}}var q0=H4;var F0=/^[^"'`]*<\/|^[^/]{2}.*\/>/mu;function X4(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var z0=X4;var V0="module",W0="script",G0=[V0,W0];function Y0(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return V0;if(/\.(?:cjs|cts)$/iu.test(e))return W0}}var $4={loc:!0,range:!0,comment:!0,tokens:!1,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function Q4(e){let{message:t,location:a}=e;if(!a)return e;let{start:o,end:m}=a;return y0(t,{loc:{start:{line:o.line,column:o.column+1},end:{line:m.line,column:m.column+1}},cause:e})}var K4=e=>e&&/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function Z4(e,t){let a=[{...$4,filePath:t}],o=Y0(t);if(o?a=a.map(v=>({...v,sourceType:o})):a=G0.flatMap(v=>a.map(E=>({...E,sourceType:v}))),K4(t))return a;let m=F0.test(e);return[m,!m].flatMap(v=>a.map(E=>({...E,jsx:v})))}function e3(e,t){let a=t==null?void 0:t.filepath;typeof a!="string"&&(a=void 0);let o=z0(e),m=Z4(e,a),v;try{v=g0(m.map(E=>()=>h0(o,E)))}catch({errors:[E]}){throw Q4(E)}return P0(v,{parser:"typescript",text:e})}var t3=q0(e3);var r9=hd;export{r9 as default,md as parsers}; diff --git a/node_modules/prettier/plugins/yaml.d.ts b/node_modules/prettier/plugins/yaml.d.ts deleted file mode 100644 index a0110d4..0000000 --- a/node_modules/prettier/plugins/yaml.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Parser } from "../index.js"; - -export declare const parsers: { - yaml: Parser; -}; diff --git a/node_modules/prettier/plugins/yaml.js b/node_modules/prettier/plugins/yaml.js deleted file mode 100644 index 468ce68..0000000 --- a/node_modules/prettier/plugins/yaml.js +++ /dev/null @@ -1,160 +0,0 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.yaml=e()}})(function(){"use strict";var Di=Object.create;var Xe=Object.defineProperty;var Yi=Object.getOwnPropertyDescriptor;var $i=Object.getOwnPropertyNames;var Bi=Object.getPrototypeOf,Fi=Object.prototype.hasOwnProperty;var mr=t=>{throw TypeError(t)};var qi=(t,e,n)=>e in t?Xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var te=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),hr=(t,e)=>{for(var n in e)Xe(t,n,{get:e[n],enumerable:!0})},gr=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of $i(e))!Fi.call(t,s)&&s!==n&&Xe(t,s,{get:()=>e[s],enumerable:!(r=Yi(e,s))||r.enumerable});return t};var dr=(t,e,n)=>(n=t!=null?Di(Bi(t)):{},gr(e||!t||!t.__esModule?Xe(n,"default",{value:t,enumerable:!0}):n,t)),Ui=t=>gr(Xe({},"__esModule",{value:!0}),t);var cn=(t,e,n)=>qi(t,typeof e!="symbol"?e+"":e,n),ln=(t,e,n)=>e.has(t)||mr("Cannot "+n);var Te=(t,e,n)=>(ln(t,e,"read from private field"),n?n.call(t):e.get(t)),Ot=(t,e,n)=>e.has(t)?mr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),fn=(t,e,n,r)=>(ln(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),ze=(t,e,n)=>(ln(t,e,"access private method"),n);var oe=te($=>{"use strict";var re={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},mt={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},wo="tag:yaml.org,2002:",bo={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function zr(t){let e=[0],n=t.indexOf(` -`);for(;n!==-1;)n+=1,e.push(n),n=t.indexOf(` -`,n);return e}function Zr(t){let e,n;return typeof t=="string"?(e=zr(t),n=t):(Array.isArray(t)&&(t=t[0]),t&&t.context&&(t.lineStarts||(t.lineStarts=zr(t.context.src)),e=t.lineStarts,n=t.context.src)),{lineStarts:e,src:n}}function Tn(t,e){if(typeof t!="number"||t<0)return null;let{lineStarts:n,src:r}=Zr(e);if(!n||!r||t>r.length)return null;for(let i=0;i=1)||t>n.length)return null;let s=n[t-1],i=n[t];for(;i&&i>s&&r[i-1]===` -`;)--i;return r.slice(s,i)}function Oo({start:t,end:e},n,r=80){let s=No(t.line,n);if(!s)return null;let{col:i}=t;if(s.length>r)if(i<=r-10)s=s.substr(0,r-1)+"\u2026";else{let f=Math.round(r/2);s.length>i+f&&(s=s.substr(0,i+f-1)+"\u2026"),i-=s.length-r,s="\u2026"+s.substr(1-r)}let o=1,a="";e&&(e.line===t.line&&i+(e.col-t.col)<=r+1?o=e.col-t.col:(o=Math.min(s.length+1,r)-i,a="\u2026"));let c=i>1?" ".repeat(i-1):"",l="^".repeat(o);return`${s} -${c}${l}${a}`}var Be=class t{static copy(e){return new t(e.start,e.end)}constructor(e,n){this.start=e,this.end=n||e}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(e,n){let{start:r,end:s}=this;if(e.length===0||s<=e[0])return this.origStart=r,this.origEnd=s,n;let i=n;for(;ir);)++i;this.origStart=r+i;let o=i;for(;i=s);)++i;return this.origEnd=s+i,o}},se=class t{static addStringTerminator(e,n,r){if(r[r.length-1]===` -`)return r;let s=t.endOfWhiteSpace(e,n);return s>=e.length||e[s]===` -`?r+` -`:r}static atDocumentBoundary(e,n,r){let s=e[n];if(!s)return!0;let i=e[n-1];if(i&&i!==` -`)return!1;if(r){if(s!==r)return!1}else if(s!==re.DIRECTIVES_END&&s!==re.DOCUMENT_END)return!1;let o=e[n+1],a=e[n+2];if(o!==s||a!==s)return!1;let c=e[n+3];return!c||c===` -`||c===" "||c===" "}static endOfIdentifier(e,n){let r=e[n],s=r==="<",i=s?[` -`," "," ",">"]:[` -`," "," ","[","]","{","}",","];for(;r&&i.indexOf(r)===-1;)r=e[n+=1];return s&&r===">"&&(n+=1),n}static endOfIndent(e,n){let r=e[n];for(;r===" ";)r=e[n+=1];return n}static endOfLine(e,n){let r=e[n];for(;r&&r!==` -`;)r=e[n+=1];return n}static endOfWhiteSpace(e,n){let r=e[n];for(;r===" "||r===" ";)r=e[n+=1];return n}static startOfLine(e,n){let r=e[n-1];if(r===` -`)return n;for(;r&&r!==` -`;)r=e[n-=1];return n+1}static endOfBlockIndent(e,n,r){let s=t.endOfIndent(e,r);if(s>r+n)return s;{let i=t.endOfWhiteSpace(e,s),o=e[i];if(!o||o===` -`)return i}return null}static atBlank(e,n,r){let s=e[n];return s===` -`||s===" "||s===" "||r&&!s}static nextNodeIsIndented(e,n,r){return!e||n<0?!1:n>0?!0:r&&e==="-"}static normalizeOffset(e,n){let r=e[n];return r?r!==` -`&&e[n-1]===` -`?n-1:t.endOfWhiteSpace(e,n):n}static foldNewline(e,n,r){let s=0,i=!1,o="",a=e[n+1];for(;a===" "||a===" "||a===` -`;){switch(a){case` -`:s=0,n+=1,o+=` -`;break;case" ":s<=r&&(i=!0),n=t.endOfWhiteSpace(e,n+2)-1;break;case" ":s+=1,n+=1;break}a=e[n+1]}return o||(o=" "),a&&s<=r&&(i=!0),{fold:o,offset:n,error:i}}constructor(e,n,r){Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=e,this.value=null}getPropValue(e,n,r){if(!this.context)return null;let{src:s}=this.context,i=this.props[e];return i&&s[i.start]===n?s.slice(i.start+(r?1:0),i.end):null}get anchor(){for(let e=0;e0?e.join(` -`):null}commentHasRequiredWhitespace(e){let{src:n}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:r}=this.valueRange;return e!==r||t.atBlank(n,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;nr.setOrigRange(e,n)),n}toString(){let{context:{src:e},range:n,value:r}=this;if(r!=null)return r;let s=e.slice(n.start,n.end);return t.addStringTerminator(e,n.end,s)}},ye=class extends Error{constructor(e,n,r){if(!r||!(n instanceof se))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=r,this.source=n}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Be(this.offset,this.offset+1);let n=e&&Tn(this.offset,e);if(n){let r={line:n.line,col:n.col+1};this.linePos={start:n,end:r}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:n,col:r}=this.linePos.start;this.message+=` at line ${n}, column ${r}`;let s=e&&Oo(this.linePos,e);s&&(this.message+=`: - -${s} -`)}delete this.source}},Mn=class extends ye{constructor(e,n){super("YAMLReferenceError",e,n)}},ht=class extends ye{constructor(e,n){super("YAMLSemanticError",e,n)}},Cn=class extends ye{constructor(e,n){super("YAMLSyntaxError",e,n)}},kn=class extends ye{constructor(e,n){super("YAMLWarning",e,n)}};function Ao(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pn=class t extends se{static endOfLine(e,n,r){let s=e[n],i=n;for(;s&&s!==` -`&&!(r&&(s==="["||s==="]"||s==="{"||s==="}"||s===","));){let o=e[i+1];if(s===":"&&(!o||o===` -`||o===" "||o===" "||r&&o===",")||(s===" "||s===" ")&&o==="#")break;i+=1,s=o}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{src:r}=this.context,s=r[n-1];for(;el?r.slice(l,a+1):c)}else i+=c}let o=r[e];switch(o){case" ":{let a="Plain value cannot start with a tab character";return{errors:[new ht(this,a)],str:i}}case"@":case"`":{let a=`Plain value cannot start with reserved character ${o}`;return{errors:[new ht(this,a)],str:i}}default:return i}}parseBlockValue(e){let{indent:n,inFlow:r,src:s}=this.context,i=e,o=e;for(let a=s[i];a===` -`&&!se.atDocumentBoundary(s,i+1);a=s[i]){let c=se.endOfBlockIndent(s,n,i+1);if(c===null||s[c]==="#")break;s[c]===` -`?i=c:(o=t.endOfLine(s,c,r),i=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,n){this.context=e;let{inFlow:r,src:s}=e,i=n,o=s[i];return o&&o!=="#"&&o!==` -`&&(i=t.endOfLine(s,n,r)),this.valueRange=new Be(n,i),i=se.endOfWhiteSpace(s,i),i=this.parseComment(i),(!this.hasComment||this.valueRange.isEmpty())&&(i=this.parseBlockValue(i)),i}};$.Char=re;$.Node=se;$.PlainValue=Pn;$.Range=Be;$.Type=mt;$.YAMLError=ye;$.YAMLReferenceError=Mn;$.YAMLSemanticError=ht;$.YAMLSyntaxError=Cn;$.YAMLWarning=kn;$._defineProperty=Ao;$.defaultTagPrefix=wo;$.defaultTags=bo});var ts=te(es=>{"use strict";var u=oe(),Se=class extends u.Node{constructor(){super(u.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new u.Range(n,n+1),n+1}},gt=class extends u.Node{constructor(e,n){super(e,n),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{atLineStart:i,lineStart:o}=e;!i&&this.type===u.Type.SEQ_ITEM&&(this.error=new u.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let a=i?n-o:e.indent,c=u.Node.endOfWhiteSpace(s,n+1),l=s[c],f=l==="#",m=[],d=null;for(;l===` -`||l==="#";){if(l==="#"){let h=u.Node.endOfLine(s,c+1);m.push(new u.Range(c,h)),c=h}else{i=!0,o=c+1;let h=u.Node.endOfWhiteSpace(s,o);s[h]===` -`&&m.length===0&&(d=new Se,o=d.parse({src:s},o)),c=u.Node.endOfIndent(s,o)}l=s[c]}if(u.Node.nextNodeIsIndented(l,c-(o+a),this.type!==u.Type.SEQ_ITEM)?this.node=r({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},c):l&&o>n+1&&(c=o-1),this.node){if(d){let h=e.parent.items||e.parent.contents;h&&h.push(d)}m.length&&Array.prototype.push.apply(this.props,m),c=this.node.range.end}else if(f){let h=m[0];this.props.push(h),c=h.end}else c=u.Node.endOfLine(s,n+1);let y=this.node?this.node.valueRange.end:c;return this.valueRange=new u.Range(n,y),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.node?this.node.setOrigRanges(e,n):n}toString(){let{context:{src:e},node:n,range:r,value:s}=this;if(s!=null)return s;let i=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return u.Node.addStringTerminator(e,r.end,i)}},Ee=class extends u.Node{constructor(){super(u.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new u.Range(n,r),r}};function In(t){let e=t;for(;e instanceof gt;)e=e.node;if(!(e instanceof xt))return null;let n=e.items.length,r=-1;for(let o=n-1;o>=0;--o){let a=e.items[o];if(a.type===u.Type.COMMENT){let{indent:c,lineStart:l}=a.context;if(c>0&&a.range.start>=l+c)break;r=o}else if(a.type===u.Type.BLANK_LINE)r=o;else break}if(r===-1)return null;let s=e.items.splice(r,n-r),i=s[0].range.start;for(;e.range.end=i,e.valueRange&&e.valueRange.end>i&&(e.valueRange.end=i),e!==t;)e=e.context.parent;return s}var xt=class t extends u.Node{static nextContentHasIndent(e,n,r){let s=u.Node.endOfLine(e,n)+1;n=u.Node.endOfWhiteSpace(e,s);let i=e[n];return i?n>=s+r?!0:i!=="#"&&i!==` -`?!1:t.nextContentHasIndent(e,n,r):!1}constructor(e){super(e.type===u.Type.SEQ_ITEM?u.Type.SEQ:u.Type.MAP);for(let r=e.props.length-1;r>=0;--r)if(e.props[r].start0}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,i=u.Node.startOfLine(s,n),o=this.items[0];o.context.parent=this,this.valueRange=u.Range.copy(o.valueRange);let a=o.range.start-o.context.lineStart,c=n;c=u.Node.normalizeOffset(s,c);let l=s[c],f=u.Node.endOfWhiteSpace(s,i)===c,m=!1;for(;l;){for(;l===` -`||l==="#";){if(f&&l===` -`&&!m){let h=new Se;if(c=h.parse({src:s},c),this.valueRange.end=c,c>=s.length){l=null;break}this.items.push(h),c-=1}else if(l==="#"){if(c=s.length){l=null;break}}if(i=c+1,c=u.Node.endOfIndent(s,i),u.Node.atBlank(s,c)){let h=u.Node.endOfWhiteSpace(s,c),g=s[h];(!g||g===` -`||g==="#")&&(c=h)}l=s[c],f=!0}if(!l)break;if(c!==i+a&&(f||l!==":")){if(cn&&(c=i);break}else if(!this.error){let h="All collection items must start at the same column";this.error=new u.YAMLSyntaxError(this,h)}}if(o.type===u.Type.SEQ_ITEM){if(l!=="-"){i>n&&(c=i);break}}else if(l==="-"&&!this.error){let h=s[c+1];if(!h||h===` -`||h===" "||h===" "){let g="A collection cannot be both a mapping and a sequence";this.error=new u.YAMLSyntaxError(this,g)}}let d=r({atLineStart:f,inCollection:!0,indent:a,lineStart:i,parent:this},c);if(!d)return c;if(this.items.push(d),this.valueRange.end=d.valueRange.end,c=u.Node.normalizeOffset(s,d.range.end),l=s[c],f=!1,m=d.includesTrailingLines,l){let h=c-1,g=s[h];for(;g===" "||g===" ";)g=s[--h];g===` -`&&(i=h+1,f=!0)}let y=In(d);y&&Array.prototype.push.apply(this.items,y)}return c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach(r=>{n=r.setOrigRanges(e,n)}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=e.slice(r.start,n[0].range.start)+String(n[0]);for(let o=1;o0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new u.Range(i,i+3),i+3):(s?this.error=new u.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(e){let{parseNode:n,src:r}=this.context;this.contents||(this.contents=[]);let s=e;for(;r[s-1]==="-";)s-=1;let i=u.Node.endOfWhiteSpace(r,e),o=s===e;for(this.valueRange=new u.Range(i);!u.Node.atDocumentBoundary(r,i,u.Char.DOCUMENT_END);){switch(r[i]){case` -`:if(o){let a=new Se;i=a.parse({src:r},i),i{n=r.setOrigRanges(e,n)}),this.directivesEndMarker&&(n=this.directivesEndMarker.setOrigRange(e,n)),this.contents.forEach(r=>{n=r.setOrigRanges(e,n)}),this.documentEndMarker&&(n=this.documentEndMarker.setOrigRange(e,n)),n}toString(){let{contents:e,directives:n,value:r}=this;if(r!=null)return r;let s=n.join("");return e.length>0&&((n.length>0||e[0].type===u.Type.COMMENT)&&(s+=`--- -`),s+=e.join("")),s[s.length-1]!==` -`&&(s+=` -`),s}},Rn=class extends u.Node{parse(e,n){this.context=e;let{src:r}=e,s=u.Node.endOfIdentifier(r,n+1);return this.valueRange=new u.Range(n+1,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},ae={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},xn=class extends u.Node{constructor(e,n){super(e,n),this.blockIndent=null,this.chomping=ae.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===ae.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null,o=s[n-1];for(;o===` -`||o===" "||o===" ";){if(n-=1,n<=e){if(this.chomping===ae.KEEP)break;return""}o===` -`&&(i=n),o=s[n-1]}let a=n+1;i&&(this.chomping===ae.KEEP?(a=i,n=this.valueRange.end):n=i);let c=r+this.blockIndent,l=this.type===u.Type.BLOCK_FOLDED,f=!0,m="",d="",y=!1;for(let h=e;ha&&(a=m);r[l]===` -`?i=l:i=o=u.Node.endOfLine(r,l)}return this.chomping!==ae.KEEP&&(i=r[o]?o+1:o),this.valueRange=new u.Range(e+1,i),i}parse(e,n){this.context=e;let{src:r}=e,s=this.parseBlockHeader(n);return s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s=this.parseBlockValue(s),s}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.header?this.header.setOrigRange(e,n):n}},Dn=class extends u.Node{constructor(e,n){super(e,n),this.items=null}prevNodeIsJsonLike(e=this.items.length){let n=this.items[e-1];return!!n&&(n.jsonLike||n.type===u.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{indent:i,lineStart:o}=e,a=s[n];this.items=[{char:a,offset:n}];let c=u.Node.endOfWhiteSpace(s,n+1);for(a=s[c];a&&a!=="]"&&a!=="}";){switch(a){case` -`:{o=c+1;let l=u.Node.endOfWhiteSpace(s,o);if(s[l]===` -`){let f=new Se;o=f.parse({src:s},o),this.items.push(f)}if(c=u.Node.endOfIndent(s,o),c<=o+i&&(a=s[c],c{if(r instanceof u.Node)n=r.setOrigRanges(e,n);else if(e.length===0)r.origOffset=r.offset;else{let s=n;for(;sr.offset);)++s;r.origOffset=r.offset+s,n=s}}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=n.filter(c=>c instanceof u.Node),o="",a=r.start;return i.forEach(c=>{let l=e.slice(a,c.range.start);a=c.range.end,o+=l+String(c),o[o.length-1]===` -`&&e[a-1]!==` -`&&e[a]===` -`&&(a+=1)}),o+=e.slice(a,r.end),u.Node.addStringTerminator(e,r.end,o)}},Yn=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r&&r!=='"';)n+=r==="\\"?2:1,r=e[n];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=='"'&&e.push(new u.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:s}=this.context,i=s.substr(e,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(a)?(r.push(new u.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,n+2)}`)),s.substr(e-2,n+2)):String.fromCodePoint(a)}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},$n=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r;)if(r==="'"){if(e[n+1]!=="'")break;r=e[n+=2]}else r=e[n+=1];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=="'"&&e.push(new u.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}};function Lo(t,e){switch(t){case u.Type.ALIAS:return new Rn(t,e);case u.Type.BLOCK_FOLDED:case u.Type.BLOCK_LITERAL:return new xn(t,e);case u.Type.FLOW_MAP:case u.Type.FLOW_SEQ:return new Dn(t,e);case u.Type.MAP_KEY:case u.Type.MAP_VALUE:case u.Type.SEQ_ITEM:return new gt(t,e);case u.Type.COMMENT:case u.Type.PLAIN:return new u.PlainValue(t,e);case u.Type.QUOTE_DOUBLE:return new Yn(t,e);case u.Type.QUOTE_SINGLE:return new $n(t,e);default:return null}}var Bn=class t{static parseType(e,n,r){switch(e[n]){case"*":return u.Type.ALIAS;case">":return u.Type.BLOCK_FOLDED;case"|":return u.Type.BLOCK_LITERAL;case"{":return u.Type.FLOW_MAP;case"[":return u.Type.FLOW_SEQ;case"?":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_KEY:u.Type.PLAIN;case":":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_VALUE:u.Type.PLAIN;case"-":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.SEQ_ITEM:u.Type.PLAIN;case'"':return u.Type.QUOTE_DOUBLE;case"'":return u.Type.QUOTE_SINGLE;default:return u.Type.PLAIN}}constructor(e={},{atLineStart:n,inCollection:r,inFlow:s,indent:i,lineStart:o,parent:a}={}){u._defineProperty(this,"parseNode",(c,l)=>{if(u.Node.atDocumentBoundary(this.src,l))return null;let f=new t(this,c),{props:m,type:d,valueStart:y}=f.parseProps(l),h=Lo(d,m),g=h.parse(f,y);if(h.range=new u.Range(l,g),g<=l&&(h.error=new Error("Node#parse consumed no characters"),h.error.parseEnd=g,h.error.source=h,h.range.end=l+1),f.nodeStartsCollection(h)){!h.error&&!f.atLineStart&&f.parent.type===u.Type.DOCUMENT&&(h.error=new u.YAMLSyntaxError(h,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let w=new xt(h);return g=w.parse(new t(f),g),w.range=new u.Range(l,g),w}return h}),this.atLineStart=n??(e.atLineStart||!1),this.inCollection=r??(e.inCollection||!1),this.inFlow=s??(e.inFlow||!1),this.indent=i??e.indent,this.lineStart=o??e.lineStart,this.parent=a??(e.parent||{}),this.root=e.root,this.src=e.src}nodeStartsCollection(e){let{inCollection:n,inFlow:r,src:s}=this;if(n||r)return!1;if(e instanceof gt)return!0;let i=e.range.end;return s[i]===` -`||s[i-1]===` -`?!1:(i=u.Node.endOfWhiteSpace(s,i),s[i]===":")}parseProps(e){let{inFlow:n,parent:r,src:s}=this,i=[],o=!1;e=this.atLineStart?u.Node.endOfIndent(s,e):u.Node.endOfWhiteSpace(s,e);let a=s[e];for(;a===u.Char.ANCHOR||a===u.Char.COMMENT||a===u.Char.TAG||a===` -`;){if(a===` -`){let l=e,f;do f=l+1,l=u.Node.endOfIndent(s,f);while(s[l]===` -`);let m=l-(f+this.indent),d=r.type===u.Type.SEQ_ITEM&&r.context.atLineStart;if(s[l]!=="#"&&!u.Node.nextNodeIsIndented(s[l],m,!d))break;this.atLineStart=!0,this.lineStart=f,o=!1,e=l}else if(a===u.Char.COMMENT){let l=u.Node.endOfLine(s,e+1);i.push(new u.Range(e,l)),e=l}else{let l=u.Node.endOfIdentifier(s,e+1);a===u.Char.TAG&&s[l]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e+1,l+13))&&(l=u.Node.endOfIdentifier(s,l+5)),i.push(new u.Range(e,l)),o=!0,e=u.Node.endOfWhiteSpace(s,l)}a=s[e]}o&&a===":"&&u.Node.atBlank(s,e+1,!0)&&(e-=1);let c=t.parseType(s,e,n);return{props:i,type:c,valueStart:e}}};function To(t){let e=[];t.indexOf("\r")!==-1&&(t=t.replace(/\r\n?/g,(s,i)=>(s.length>1&&e.push(i),` -`)));let n=[],r=0;do{let s=new _n,i=new Bn({src:t});r=s.parse(i,r),n.push(s)}while(r{if(e.length===0)return!1;for(let i=1;in.join(`... -`),n}es.parse=To});var qe=te(k=>{"use strict";var p=oe();function Mo(t,e,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${e}#`)} -${e}${t}`:t}function Fe(t,e,n){return n?n.indexOf(` -`)===-1?`${t} #${n}`:`${t} -`+n.replace(/^/gm,`${e||""}#`):t}var j=class{};function ce(t,e,n){if(Array.isArray(t))return t.map((r,s)=>ce(r,String(s),n));if(t&&typeof t.toJSON=="function"){let r=n&&n.anchors&&n.anchors.get(t);r&&(n.onCreate=i=>{r.res=i,delete n.onCreate});let s=t.toJSON(e,n);return r&&n.onCreate&&n.onCreate(s),s}return(!n||!n.keep)&&typeof t=="bigint"?Number(t):t}var _=class extends j{constructor(e){super(),this.value=e}toJSON(e,n){return n&&n.keep?this.value:ce(this.value,e,n)}toString(){return String(this.value)}};function ns(t,e,n){let r=n;for(let s=e.length-1;s>=0;--s){let i=e[s];if(Number.isInteger(i)&&i>=0){let o=[];o[i]=r,r=o}else{let o={};Object.defineProperty(o,i,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=o}}return t.createNode(r,!1)}var is=t=>t==null||typeof t=="object"&&t[Symbol.iterator]().next().done,W=class t extends j{constructor(e){super(),p._defineProperty(this,"items",[]),this.schema=e}addIn(e,n){if(is(e))this.add(n);else{let[r,...s]=e,i=this.get(r,!0);if(i instanceof t)i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,ns(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn([e,...n]){if(n.length===0)return this.delete(e);let r=this.get(e,!0);if(r instanceof t)return r.deleteIn(n);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}getIn([e,...n],r){let s=this.get(e,!0);return n.length===0?!r&&s instanceof _?s.value:s:s instanceof t?s.getIn(n,r):void 0}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return!1;let n=e.value;return n==null||n instanceof _&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn([e,...n]){if(n.length===0)return this.has(e);let r=this.get(e,!0);return r instanceof t?r.hasIn(n):!1}setIn([e,...n],r){if(n.length===0)this.set(e,r);else{let s=this.get(e,!0);if(s instanceof t)s.setIn(n,r);else if(s===void 0&&this.schema)this.set(e,ns(this.schema,n,r));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}}toJSON(){return null}toString(e,{blockItem:n,flowChars:r,isMap:s,itemIndent:i},o,a){let{indent:c,indentStep:l,stringify:f}=e,m=this.type===p.Type.FLOW_MAP||this.type===p.Type.FLOW_SEQ||e.inFlow;m&&(i+=l);let d=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:d,indent:i,inFlow:m,type:null});let y=!1,h=!1,g=this.items.reduce((M,A,C)=>{let L;A&&(!y&&A.spaceBefore&&M.push({type:"comment",str:""}),A.commentBefore&&A.commentBefore.match(/^.*$/gm).forEach(xi=>{M.push({type:"comment",str:`#${xi}`})}),A.comment&&(L=A.comment),m&&(!y&&A.spaceBefore||A.commentBefore||A.comment||A.key&&(A.key.commentBefore||A.key.comment)||A.value&&(A.value.commentBefore||A.value.comment))&&(h=!0)),y=!1;let R=f(A,e,()=>L=null,()=>y=!0);return m&&!h&&R.includes(` -`)&&(h=!0),m&&CL.str);if(h||C.reduce((L,R)=>L+R.length+2,2)>t.maxFlowStringSingleLineLength){w=M;for(let L of C)w+=L?` -${l}${c}${L}`:` -`;w+=` -${c}${A}`}else w=`${M} ${C.join(" ")} ${A}`}else{let M=g.map(n);w=M.shift();for(let A of M)w+=A?` -${c}${A}`:` -`}return this.comment?(w+=` -`+this.comment.replace(/^/gm,`${c}#`),o&&o()):y&&a&&a(),w}};p._defineProperty(W,"maxFlowStringSingleLineLength",60);function Dt(t){let e=t instanceof _?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),Number.isInteger(e)&&e>=0?e:null}var le=class extends W{add(e){this.items.push(e)}delete(e){let n=Dt(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){let r=Dt(e);if(typeof r!="number")return;let s=this.items[r];return!n&&s instanceof _?s.value:s}has(e){let n=Dt(e);return typeof n=="number"&&ns.type==="comment"?s.str:`- ${s.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},n,r):JSON.stringify(this)}},Co=(t,e,n)=>e===null?"":typeof e!="object"?String(e):t instanceof j&&n&&n.doc?t.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(e),T=class t extends j{constructor(e,n=null){super(),this.key=e,this.value=n,this.type=t.Type.PAIR}get commentBefore(){return this.key instanceof j?this.key.commentBefore:void 0}set commentBefore(e){if(this.key==null&&(this.key=new _(null)),this.key instanceof j)this.key.commentBefore=e;else{let n="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(n)}}addToJSMap(e,n){let r=ce(this.key,"",e);if(n instanceof Map){let s=ce(this.value,r,e);n.set(r,s)}else if(n instanceof Set)n.add(r);else{let s=Co(this.key,r,e),i=ce(this.value,s,e);s in n?Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):n[s]=i}return n}toJSON(e,n){let r=n&&n.mapAsMap?new Map:{};return this.addToJSMap(n,r)}toString(e,n,r){if(!e||!e.doc)return JSON.stringify(this);let{indent:s,indentSeq:i,simpleKeys:o}=e.doc.options,{key:a,value:c}=this,l=a instanceof j&&a.comment;if(o){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(a instanceof W){let R="With simple keys, collection cannot be used as a key value";throw new Error(R)}}let f=!o&&(!a||l||(a instanceof j?a instanceof W||a.type===p.Type.BLOCK_FOLDED||a.type===p.Type.BLOCK_LITERAL:typeof a=="object")),{doc:m,indent:d,indentStep:y,stringify:h}=e;e=Object.assign({},e,{implicitKey:!f,indent:d+y});let g=!1,w=h(a,e,()=>l=null,()=>g=!0);if(w=Fe(w,e.indent,l),!f&&w.length>1024){if(o)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(e.allNullValues&&!o)return this.comment?(w=Fe(w,e.indent,this.comment),n&&n()):g&&!l&&r&&r(),e.inFlow&&!f?w:`? ${w}`;w=f?`? ${w} -${d}:`:`${w}:`,this.comment&&(w=Fe(w,e.indent,this.comment),n&&n());let M="",A=null;if(c instanceof j){if(c.spaceBefore&&(M=` -`),c.commentBefore){let R=c.commentBefore.replace(/^/gm,`${e.indent}#`);M+=` -${R}`}A=c.comment}else c&&typeof c=="object"&&(c=m.schema.createNode(c,!0));e.implicitKey=!1,!f&&!this.comment&&c instanceof _&&(e.indentAtStart=w.length+1),g=!1,!i&&s>=2&&!e.inFlow&&!f&&c instanceof le&&c.type!==p.Type.FLOW_SEQ&&!c.tag&&!m.anchors.getName(c)&&(e.indent=e.indent.substr(2));let C=h(c,e,()=>A=null,()=>g=!0),L=" ";return M||this.comment?L=`${M} -${e.indent}`:!f&&c instanceof W?(!(C[0]==="["||C[0]==="{")||C.includes(` -`))&&(L=` -${e.indent}`):C[0]===` -`&&(L=""),g&&!A&&r&&r(),Fe(w+L+C,e.indent,A)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Yt=(t,e)=>{if(t instanceof be){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof W){let n=0;for(let r of t.items){let s=Yt(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=Yt(t.key,e),r=Yt(t.value,e);return Math.max(n,r)}return 1},be=class t extends j{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return ce(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=Yt(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(be,"default",!0);function dt(t,e){let n=e instanceof _?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var yt=class extends W{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=dt(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=dt(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=dt(this.items,e),s=r&&r.value;return!n&&s instanceof _?s.value:s}has(e){return!!dt(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},os="<<",Ft=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof le||(n=new le,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new _(os),new le);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof yt))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},ko={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},Po={trueStr:"true",falseStr:"false"},Io={asBigInt:!1},vo={nullStr:"null"},Ne={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function qn(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof _||(a=new _(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new _(t)}var as="flow",Fn="block",$t="quoted",rs=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==` -`);n=t[e+1]}return e};function qt(t,e,n,{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}){if(!s||s<0)return t;let c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;let l=[],f={},m=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?l.push(0):m=s-r);let d,y,h=!1,g=-1,w=-1,M=-1;n===Fn&&(g=rs(t,g),g!==-1&&(m=g+c));for(let C;C=t[g+=1];){if(n===$t&&C==="\\"){switch(w=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}M=g}if(C===` -`)n===Fn&&(g=rs(t,g)),m=g+c,d=void 0;else{if(C===" "&&y&&y!==" "&&y!==` -`&&y!==" "){let L=t[g+1];L&&L!==" "&&L!==` -`&&L!==" "&&(d=g)}if(g>=m)if(d)l.push(d),m=d+c,d=void 0;else if(n===$t){for(;y===" "||y===" ";)y=C,C=t[g+=1],h=!0;let L=g>M+1?g-2:w-1;if(f[L])return t;l.push(L),f[L]=!0,m=L+c,d=void 0}else h=!0}y=C}if(h&&a&&a(),l.length===0)return t;o&&o();let A=t.slice(0,l[0]);for(let C=0;Ct?Object.assign({indentAtStart:t},Ne.fold):Ne.fold,Ut=t=>/^(%|---|\.\.\.)/m.test(t);function _o(t,e,n){if(!e||e<0)return!1;let r=e-n,s=t.length;if(s<=r)return!1;for(let i=0,o=0;ir)return!0;if(o=i+1,s-o<=r)return!1}return!0}function we(t,e){let{implicitKey:n}=e,{jsonEncoding:r,minMultiLineLength:s}=Ne.doubleQuoted,i=JSON.stringify(t);if(r)return i;let o=e.indent||(Ut(t)?" ":""),a="",c=0;for(let l=0,f=i[l];f;f=i[++l])if(f===" "&&i[l+1]==="\\"&&i[l+2]==="n"&&(a+=i.slice(c,l)+"\\ ",l+=1,c=l,f="\\"),f==="\\")switch(i[l+1]){case"u":{a+=i.slice(c,l);let m=i.substr(l+2,4);switch(m){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:m.substr(0,2)==="00"?a+="\\x"+m.substr(2):a+=i.substr(l,6)}l+=5,c=l+1}break;case"n":if(n||i[l+2]==='"'||i.length";if(!n)return l+` -`;let f="",m="";if(n=n.replace(/[\n\t ]*$/,y=>{let h=y.indexOf(` -`);return h===-1?l+="-":(n===y||h!==y.length-1)&&(l+="+",i&&i()),m=y.replace(/\n$/,""),""}).replace(/^[\n ]*/,y=>{y.indexOf(" ")!==-1&&(l+=a);let h=y.match(/ +$/);return h?(f=y.slice(0,-h[0].length),h[0]):(f=y,"")}),m&&(m=m.replace(/\n+(?!\n|$)/g,`$&${o}`)),f&&(f=f.replace(/\n+/g,`$&${o}`)),t&&(l+=" #"+t.replace(/ ?[\r\n]+/g," "),s&&s()),!n)return`${l}${a} -${o}${m}`;if(c)return n=n.replace(/\n+/g,`$&${o}`),`${l} -${o}${f}${n}${m}`;n=n.replace(/\n+/g,` -$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);let d=qt(`${f}${n}${m}`,o,Fn,Ne.fold);return`${l} -${o}${d}`}function Ro(t,e,n,r){let{comment:s,type:i,value:o}=t,{actualString:a,implicitKey:c,indent:l,inFlow:f}=e;if(c&&/[\n[\]{},]/.test(o)||f&&/[[\]{},]/.test(o))return we(o,e);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return c||f||o.indexOf(` -`)===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?cs(o,e):we(o,e):Bt(t,e,n,r);if(!c&&!f&&i!==p.Type.PLAIN&&o.indexOf(` -`)!==-1)return Bt(t,e,n,r);if(l===""&&Ut(o))return e.forceBlockIndent=!0,Bt(t,e,n,r);let m=o.replace(/\n+/g,`$& -${l}`);if(a){let{tags:y}=e.doc.schema;if(typeof qn(m,y,y.scalarFallback).value!="string")return we(o,e)}let d=c?m:qt(m,l,as,Un(e));return s&&!f&&(d.indexOf(` -`)!==-1||s.indexOf(` -`)!==-1)?(n&&n(),Mo(d,l,s)):d}function xo(t,e,n,r){let{defaultType:s}=Ne,{implicitKey:i,inFlow:o}=e,{type:a,value:c}=t;typeof c!="string"&&(c=String(c),t=Object.assign({},t,{value:c}));let l=m=>{switch(m){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:return Bt(t,e,n,r);case p.Type.QUOTE_DOUBLE:return we(c,e);case p.Type.QUOTE_SINGLE:return cs(c,e);case p.Type.PLAIN:return Ro(t,e,n,r);default:return null}};(a!==p.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)||(i||o)&&(a===p.Type.BLOCK_FOLDED||a===p.Type.BLOCK_LITERAL))&&(a=p.Type.QUOTE_DOUBLE);let f=l(a);if(f===null&&(f=l(s),f===null))throw new Error(`Unsupported default string type ${s}`);return f}function Do({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let o=e-(s.length-i-1);for(;o-- >0;)s+="0"}return s}function ls(t,e){let n,r;switch(e.type){case p.Type.FLOW_MAP:n="}",r="flow map";break;case p.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:t.push(new p.YAMLSemanticError(e,"Not a flow collection!?"));return}let s;for(let i=e.items.length-1;i>=0;--i){let o=e.items[i];if(!o||o.type!==p.Type.COMMENT){s=o;break}}if(s&&s.char!==n){let i=`Expected ${r} to end with ${n}`,o;typeof s.offset=="number"?(o=new p.YAMLSemanticError(e,i),o.offset=s.offset+1):(o=new p.YAMLSemanticError(s,i),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),t.push(o)}}function fs(t,e){let n=e.context.src[e.range.start-1];if(n!==` -`&&n!==" "&&n!==" "){let r="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,r))}}function us(t,e){let n=String(e),r=n.substr(0,8)+"..."+n.substr(-8);return new p.YAMLSemanticError(t,`The "${r}" key is too long`)}function ps(t,e){for(let{afterKey:n,before:r,comment:s}of e){let i=t.items[r];i?(n&&i.value&&(i=i.value),s===void 0?(n||!i.commentBefore)&&(i.spaceBefore=!0):i.commentBefore?i.commentBefore+=` -`+s:i.commentBefore=s):s!==void 0&&(t.comment?t.comment+=` -`+s:t.comment=s)}}function Kn(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function Yo(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function $o(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return Yo(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function ss(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof W?a:new _(a)}let i=Kn(t,e);return typeof i=="string"&&s.length>0?qn(i,s,r.scalarFallback):null}function Bo({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function Fo(t,e,n){try{let r=ss(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=Bo(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=ss(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var qo=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Uo(t,e){let n={before:[],after:[]},r=!1,s=!1,i=qo(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function Ko(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new be(a);return n._cstAliases.push(c),c}let i=$o(t,e);if(i)return Fo(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=Kn(t,e);return qn(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function fe(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Uo(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=Ko(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(` -`);o&&(i.commentBefore=i.commentBefore?`${i.commentBefore} -${o}`:o);let a=n.after.join(` -`);a&&(i.comment=i.comment?`${i.comment} -${a}`:a)}return e.resolved=i}function Vo(t,e){if(e.type!==p.Type.MAP&&e.type!==p.Type.FLOW_MAP){let o=`A ${e.type} node cannot be resolved as a mapping`;return t.errors.push(new p.YAMLSyntaxError(e,o)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_MAP?Go(t,e):Qo(t,e),s=new yt;s.items=r,ps(s,n);let i=!1;for(let o=0;o{if(f instanceof be){let{type:m}=f.source;return m===p.Type.MAP||m===p.Type.FLOW_MAP?!1:l="Merge nodes aliases can only point to maps"}return l="Merge nodes can only have Alias nodes as values"}),l&&t.errors.push(new p.YAMLSemanticError(e,l))}else for(let c=o+1;c{if(r.length===0)return!1;let{start:s}=r[0];if(e&&s>e.valueRange.start||n[s]!==p.Char.COMMENT)return!1;for(let i=t;i0){c=new p.PlainValue(p.Type.PLAIN,[]),c.context={parent:a,src:a.context.src};let f=a.range.start+1;if(c.range={start:f,end:f},c.valueRange={start:f,end:f},typeof a.range.origStart=="number"){let m=a.range.origStart+1;c.range.origStart=c.range.origEnd=m,c.valueRange.origStart=c.valueRange.origEnd=m}}let l=new T(s,fe(t,c));Wo(a,l),r.push(l),s&&typeof i=="number"&&a.range.start>i+1024&&t.errors.push(us(e,s)),s=void 0,i=null}break;default:s!==void 0&&r.push(new T(s)),s=fe(t,a),i=a.range.start,a.error&&t.errors.push(a.error);e:for(let c=o+1;;++c){let l=e.items[c];switch(l&&l.type){case p.Type.BLANK_LINE:case p.Type.COMMENT:continue e;case p.Type.MAP_VALUE:break e;default:{let f="Implicit map keys need to be followed by map values";t.errors.push(new p.YAMLSemanticError(a,f));break e}}}if(a.valueRangeContainsNewline){let c="Implicit map keys need to be on a single line";t.errors.push(new p.YAMLSemanticError(a,c))}}}return s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function Go(t,e){let n=[],r=[],s,i=!1,o="{";for(let a=0;ai instanceof T&&i.key instanceof W)){let i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,i))}return e.resolved=s,s}function Jo(t,e){let n=[],r=[];for(let s=0;so+1024&&t.errors.push(us(e,i));let{src:h}=c.context;for(let g=o;g{"use strict";var Q=oe(),O=qe(),zo={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c1){let o="Each pair must have its own sequence indicator";throw new Q.YAMLSemanticError(e,o)}let i=s.items[0]||new O.Pair;s.commentBefore&&(i.commentBefore=i.commentBefore?`${s.commentBefore} -${i.commentBefore}`:s.commentBefore),s.comment&&(i.comment=i.comment?`${s.comment} -${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function gs(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var Zo={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:hs,createNode:gs},Ue=class t extends O.YAMLSeq{constructor(){super(),Q._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),Q._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),Q._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),Q._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),Q._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};Q._defineProperty(Ue,"tag","tag:yaml.org,2002:omap");function ea(t,e){let n=hs(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new Q.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new Ue,n)}function ta(t,e,n){let r=gs(t,e,n),s=new Ue;return s.items=r.items,s}var na={identify:t=>t instanceof Map,nodeClass:Ue,default:!1,tag:"tag:yaml.org,2002:omap",resolve:ea,createNode:ta},Ke=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};Q._defineProperty(Ke,"tag","tag:yaml.org,2002:set");function ra(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new Q.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new Ke,n)}function sa(t,e,n){let r=new Ke;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var ia={identify:t=>t instanceof Set,nodeClass:Ke,default:!1,tag:"tag:yaml.org,2002:set",resolve:ra,createNode:sa},Vn=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},ds=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},oa={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>Vn(e,n.replace(/_/g,"")),stringify:ds},aa={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>Vn(e,n.replace(/_/g,"")),stringify:ds},ca={identify:t=>t 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:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=Vn(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function jn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function Wn(t,e){jn(!1)&&console.warn(e?`${e}: ${t}`:t)}function la(t){if(jn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");Wn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var ms={};function fa(t,e){if(!ms[t]&&jn(!0)){ms[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",Wn(n,"DeprecationWarning")}}z.binary=zo;z.floatTime=aa;z.intTime=oa;z.omap=na;z.pairs=Zo;z.set=ia;z.timestamp=ca;z.warn=Wn;z.warnFileDeprecation=la;z.warnOptionDeprecation=fa});var Xn=te(ks=>{"use strict";var jt=oe(),E=qe(),D=Qn();function ua(t,e,n){let r=new E.YAMLMap(t);if(e instanceof Map)for(let[s,i]of e)r.items.push(t.createPair(s,i,n));else if(e&&typeof e=="object")for(let s of Object.keys(e))r.items.push(t.createPair(s,e[s],n));return typeof t.sortMapEntries=="function"&&r.items.sort(t.sortMapEntries),r}var St={createNode:ua,default:!0,nodeClass:E.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:E.resolveMap};function pa(t,e,n){let r=new E.YAMLSeq(t);if(e&&e[Symbol.iterator])for(let s of e){let i=t.createNode(s,n.wrapScalars,null,n);r.items.push(i)}return r}var Wt={createNode:pa,default:!0,nodeClass:E.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:E.resolveSeq},ma={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),E.stringifyString(t,e,n,r)},options:E.strOptions},Hn=[St,Wt,ma],Qt=t=>typeof t=="bigint"||Number.isInteger(t),Jn=(t,e,n)=>E.intOptions.asBigInt?BigInt(t):parseInt(e,n);function Ss(t,e,n){let{value:r}=t;return Qt(r)&&r>=0?n+r.toString(e):E.stringifyNumber(t)}var ws={identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},bs={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>t[0]==="t"||t[0]==="T",options:E.boolOptions,stringify:({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr},Ns={identify:t=>Qt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(t,e)=>Jn(t,e,8),options:E.intOptions,stringify:t=>Ss(t,8,"0o")},Os={identify:Qt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:t=>Jn(t,t,10),options:E.intOptions,stringify:E.stringifyNumber},As={identify:t=>Qt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(t,e)=>Jn(t,e,16),options:E.intOptions,stringify:t=>Ss(t,16,"0x")},Ls={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},Ts={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify:({value:t})=>Number(t).toExponential()},Ms={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(t,e,n){let r=e||n,s=new E.Scalar(parseFloat(t));return r&&r[r.length-1]==="0"&&(s.minFractionDigits=r.length),s},stringify:E.stringifyNumber},ha=Hn.concat([ws,bs,Ns,Os,As,Ls,Ts,Ms]),ys=t=>typeof t=="bigint"||Number.isInteger(t),Kt=({value:t})=>JSON.stringify(t),Cs=[St,Wt,{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify:Kt},{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Kt},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:Kt},{identify:ys,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:t=>E.intOptions.asBigInt?BigInt(t):parseInt(t,10),stringify:({value:t})=>ys(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Kt}];Cs.scalarFallback=t=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`)};var Es=({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr,Et=t=>typeof t=="bigint"||Number.isInteger(t);function Vt(t,e,n){let r=e.replace(/_/g,"");if(E.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}let i=BigInt(r);return t==="-"?BigInt(-1)*i:i}let s=parseInt(r,n);return t==="-"?-1*s:s}function Gn(t,e,n){let{value:r}=t;if(Et(r)){let s=r.toString(e);return r<0?"-"+n+s.substr(1):n+s}return E.stringifyNumber(t)}var ga=Hn.concat([{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:E.boolOptions,stringify:Es},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:E.boolOptions,stringify:Es},{identify:Et,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(t,e,n)=>Vt(e,n,2),stringify:t=>Gn(t,2,"0b")},{identify:Et,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(t,e,n)=>Vt(e,n,8),stringify:t=>Gn(t,8,"0")},{identify:Et,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(t,e,n)=>Vt(e,n,10),stringify:E.stringifyNumber},{identify:Et,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(t,e,n)=>Vt(e,n,16),stringify:t=>Gn(t,16,"0x")},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify:({value:t})=>Number(t).toExponential()},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(t,e){let n=new E.Scalar(parseFloat(t.replace(/_/g,"")));if(e){let r=e.replace(/_/g,"");r[r.length-1]==="0"&&(n.minFractionDigits=r.length)}return n},stringify:E.stringifyNumber}],D.binary,D.omap,D.pairs,D.set,D.intTime,D.floatTime,D.timestamp),da={core:ha,failsafe:Hn,json:Cs,yaml11:ga},ya={binary:D.binary,bool:bs,float:Ms,floatExp:Ts,floatNaN:Ls,floatTime:D.floatTime,int:Os,intHex:As,intOct:Ns,intTime:D.intTime,map:St,null:ws,omap:D.omap,pairs:D.pairs,seq:Wt,set:D.set,timestamp:D.timestamp};function Ea(t,e,n){if(e){let r=n.filter(i=>i.tag===e),s=r.find(i=>!i.format)||r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return n.find(r=>(r.identify&&r.identify(t)||r.class&&t instanceof r.class)&&!r.format)}function Sa(t,e,n){if(t instanceof E.Node)return t;let{defaultPrefix:r,onTagObj:s,prevObjects:i,schema:o,wrapScalars:a}=n;e&&e.startsWith("!!")&&(e=r+e.slice(2));let c=Ea(t,e,o.tags);if(!c){if(typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object")return a?new E.Scalar(t):t;c=t instanceof Map?St:t[Symbol.iterator]?Wt:St}s&&(s(c),delete n.onTagObj);let l={value:void 0,node:void 0};if(t&&typeof t=="object"&&i){let f=i.get(t);if(f){let m=new E.Alias(f);return n.aliasNodes.push(m),m}l.value=t,i.set(t,l)}return l.node=c.createNode?c.createNode(n.schema,t,n):a?new E.Scalar(t):t,e&&l.node instanceof E.Node&&(l.node.tag=e),l.node}function wa(t,e,n,r){let s=t[r.replace(/\W/g,"")];if(!s){let i=Object.keys(t).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${i}`)}if(Array.isArray(n))for(let i of n)s=s.concat(i);else typeof n=="function"&&(s=n(s.slice()));for(let i=0;iJSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${o}"; use one of ${c}`)}s[i]=a}}return s}var ba=(t,e)=>t.keye.key?1:0,wt=class t{constructor({customTags:e,merge:n,schema:r,sortMapEntries:s,tags:i}){this.merge=!!n,this.name=r,this.sortMapEntries=s===!0?ba:s||null,!e&&i&&D.warnOptionDeprecation("tags","customTags"),this.tags=wa(da,ya,e||i,r)}createNode(e,n,r,s){let i={defaultPrefix:t.defaultPrefix,schema:this,wrapScalars:n},o=s?Object.assign(s,i):i;return Sa(e,r,o)}createPair(e,n,r){r||(r={wrapScalars:!0});let s=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new E.Pair(s,i)}};jt._defineProperty(wt,"defaultPrefix",jt.defaultTagPrefix);jt._defineProperty(wt,"defaultTags",jt.defaultTags);ks.Schema=wt});var _s=te(Xt=>{"use strict";var Y=oe(),S=qe(),Ps=Xn(),Na={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Oa={get binary(){return S.binaryOptions},set binary(t){Object.assign(S.binaryOptions,t)},get bool(){return S.boolOptions},set bool(t){Object.assign(S.boolOptions,t)},get int(){return S.intOptions},set int(t){Object.assign(S.intOptions,t)},get null(){return S.nullOptions},set null(t){Object.assign(S.nullOptions,t)},get str(){return S.strOptions},set str(t){Object.assign(S.strOptions,t)}},vs={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Y.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]}};function Is(t,e){if((t.version||t.options.version)==="1.0"){let s=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(s)return"!"+s[1];let i=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return i?`!${i[1]}/${i[2]}`:`!${e.replace(/^tag:/,"")}`}let n=t.tagPrefixes.find(s=>e.indexOf(s.prefix)===0);if(!n){let s=t.getDefaults().tagPrefixes;n=s&&s.find(i=>e.indexOf(i.prefix)===0)}if(!n)return e[0]==="!"?e:`!<${e}>`;let r=e.substr(n.prefix.length).replace(/[!,[\]{}]/g,s=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[s]);return n.handle+r}function Aa(t,e){if(e instanceof S.Alias)return S.Alias;if(e.tag){let s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)||s[0]}let n,r;if(e instanceof S.Scalar){r=e.value;let s=t.filter(i=>i.identify&&i.identify(r)||i.class&&r instanceof i.class);n=s.find(i=>i.format===e.format)||s.find(i=>!i.format)}else r=e,n=t.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){let s=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function La(t,e,{anchors:n,doc:r}){let s=[],i=r.anchors.getName(t);return i&&(n[i]=t,s.push(`&${i}`)),t.tag?s.push(Is(r,t.tag)):e.default||s.push(Is(r,e.tag)),s.join(" ")}function Gt(t,e,n,r){let{anchors:s,schema:i}=e.doc,o;if(!(t instanceof S.Node)){let l={aliasNodes:[],onTagObj:f=>o=f,prevObjects:new Map};t=i.createNode(t,!0,null,l);for(let f of l.aliasNodes){f.source=f.source.node;let m=s.getName(f.source);m||(m=s.newName(),s.map[m]=f.source)}}if(t instanceof S.Pair)return t.toString(e,n,r);o||(o=Aa(i.tags,t));let a=La(t,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let c=typeof o.stringify=="function"?o.stringify(t,e,n,r):t instanceof S.Scalar?S.stringifyString(t,e,n,r):t.toString(e,n,r);return a?t instanceof S.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a} -${e.indent}${c}`:c}var zn=class t{static validAnchorNode(e){return e instanceof S.Scalar||e instanceof S.YAMLSeq||e instanceof S.YAMLMap}constructor(e){Y._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,n){return this.setAnchor(e,n),new S.Alias(e)}createMergePair(...e){let n=new S.Merge;return n.value.items=e.map(r=>{if(r instanceof S.Alias){if(r.source instanceof S.YAMLMap)return r}else if(r instanceof S.YAMLMap)return this.createAlias(r);throw new Error("Merge sources must be Map nodes or their Aliases")}),n}getName(e){let{map:n}=this;return Object.keys(n).find(r=>n[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let n=Object.keys(this.map);for(let r=1;;++r){let s=`${e}${r}`;if(!n.includes(s))return s}}resolveNodes(){let{map:e,_cstAliases:n}=this;Object.keys(e).forEach(r=>{e[r]=e[r].resolved}),n.forEach(r=>{r.source=r.source.resolved}),delete this._cstAliases}setAnchor(e,n){if(e!=null&&!t.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,s=e&&Object.keys(r).find(i=>r[i]===e);if(s)if(n)s!==n&&(delete r[s],r[n]=e);else return s;else{if(!n){if(!e)return null;n=this.newName()}r[n]=e}return n}},Ht=(t,e)=>{if(t&&typeof t=="object"){let{tag:n}=t;t instanceof S.Collection?(n&&(e[n]=!0),t.items.forEach(r=>Ht(r,e))):t instanceof S.Pair?(Ht(t.key,e),Ht(t.value,e)):t instanceof S.Scalar&&n&&(e[n]=!0)}return e},Ta=t=>Object.keys(Ht(t,{}));function Ma(t,e){let n={before:[],after:[]},r,s=!1;for(let i of e)if(i.valueRange){if(r!==void 0){let a="Document contains trailing content not separated by a ... or --- line";t.errors.push(new Y.YAMLSyntaxError(i,a));break}let o=S.resolveNode(t,i);s&&(o.spaceBefore=!0,s=!1),r=o}else i.comment!==null?(r===void 0?n.before:n.after).push(i.comment):i.type===Y.Type.BLANK_LINE&&(s=!0,r===void 0&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join(` -`),n.before=[]));if(t.contents=r||null,!r)t.comment=n.before.concat(n.after).join(` -`)||null;else{let i=n.before.join(` -`);if(i){let o=r instanceof S.Collection&&r.items[0]?r.items[0]:r;o.commentBefore=o.commentBefore?`${i} -${o.commentBefore}`:i}t.comment=n.after.join(` -`)||null}}function Ca({tagPrefixes:t},e){let[n,r]=e.parameters;if(!n||!r){let s="Insufficient parameters given for %TAG directive";throw new Y.YAMLSemanticError(e,s)}if(t.some(s=>s.handle===n)){let s="The %TAG directive must only be given at most once per handle in the same document.";throw new Y.YAMLSemanticError(e,s)}return{handle:n,prefix:r}}function ka(t,e){let[n]=e.parameters;if(e.name==="YAML:1.0"&&(n="1.0"),!n){let r="Insufficient parameters given for %YAML directive";throw new Y.YAMLSemanticError(e,r)}if(!vs[n]){let s=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${n}`;t.warnings.push(new Y.YAMLWarning(e,s))}return n}function Pa(t,e,n){let r=[],s=!1;for(let i of e){let{comment:o,name:a}=i;switch(a){case"TAG":try{t.tagPrefixes.push(Ca(t,i))}catch(c){t.errors.push(c)}s=!0;break;case"YAML":case"YAML:1.0":if(t.version){let c="The %YAML directive must only be given at most once per document.";t.errors.push(new Y.YAMLSemanticError(i,c))}try{t.version=ka(t,i)}catch(c){t.errors.push(c)}s=!0;break;default:if(a){let c=`YAML only supports %TAG and %YAML directives, and not %${a}`;t.warnings.push(new Y.YAMLWarning(i,c))}}o&&r.push(o)}if(n&&!s&&(t.version||n.version||t.options.version)==="1.1"){let i=({handle:o,prefix:a})=>({handle:o,prefix:a});t.tagPrefixes=n.tagPrefixes.map(i),t.version=n.version}t.commentBefore=r.join(` -`)||null}function Ve(t){if(t instanceof S.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Jt=class t{constructor(e){this.anchors=new zn(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Ve(this.contents),this.contents.add(e)}addIn(e,n){Ve(this.contents),this.contents.addIn(e,n)}delete(e){return Ve(this.contents),this.contents.delete(e)}deleteIn(e){return S.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):(Ve(this.contents),this.contents.deleteIn(e))}getDefaults(){return t.defaults[this.version]||t.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof S.Collection?this.contents.get(e,n):void 0}getIn(e,n){return S.isEmptyPath(e)?!n&&this.contents instanceof S.Scalar?this.contents.value:this.contents:this.contents instanceof S.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof S.Collection?this.contents.has(e):!1}hasIn(e){return S.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof S.Collection?this.contents.hasIn(e):!1}set(e,n){Ve(this.contents),this.contents.set(e,n)}setIn(e,n){S.isEmptyPath(e)?this.contents=n:(Ve(this.contents),this.contents.setIn(e,n))}setSchema(e,n){if(!e&&!n&&this.schema)return;typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(n)&&(this.options.customTags=n);let r=Object.assign({},this.getDefaults(),this.options);this.schema=new Ps.Schema(r)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:s=[],directivesEndMarker:i,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),Pa(this,r,n),i&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],Ma(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let c of this.errors)c instanceof Y.YAMLError&&c.makePretty();for(let c of this.warnings)c instanceof Y.YAMLError&&c.makePretty()}return this}listNonDefaultTags(){return Ta(this.contents).filter(e=>e.indexOf(Ps.Schema.defaultPrefix)!==0)}setTagPrefix(e,n){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(n){let r=this.tagPrefixes.find(s=>s.handle===e);r?r.prefix=n:this.tagPrefixes.push({handle:e,prefix:n})}else this.tagPrefixes=this.tagPrefixes.filter(r=>r.handle!==e)}toJSON(e,n){let{keepBlobsInJSON:r,mapAsMap:s,maxAliasCount:i}=this.options,o=r&&(typeof e!="string"||!(this.contents instanceof S.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!s,maxAliasCount:i,stringify:Gt},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map(f=>[this.anchors.map[f],{alias:[],aliasCount:0,count:1}])));let l=S.toJSON(this.contents,e,a);if(typeof n=="function"&&a.anchors)for(let{count:f,res:m}of a.anchors.values())n(m,f);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let c=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();let n=[],r=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),n.push(c),r=!0}let s=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:l})=>{s.some(f=>f.indexOf(l)===0)&&(n.push(`%TAG ${c} ${l}`),r=!0)}),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:Gt},o=!1,a=null;if(this.contents){this.contents instanceof S.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,a=this.contents.comment);let c=a?null:()=>o=!0,l=Gt(this.contents,i,()=>a=null,c);n.push(S.addComment(l,"",a))}else this.contents!==void 0&&n.push(Gt(this.contents,i));return this.comment&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join(` -`)+` -`}};Y._defineProperty(Jt,"defaults",vs);Xt.Document=Jt;Xt.defaultOptions=Na;Xt.scalarOptions=Oa});var Ds=te(xs=>{"use strict";var Zn=ts(),Oe=_s(),Ia=Xn(),va=oe(),_a=Qn();qe();function Ra(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Oe.Document.defaults[Oe.defaultOptions.version],Oe.defaultOptions);return new Ia.Schema(r).createNode(t,e,n)}var je=class extends Oe.Document{constructor(e){super(Object.assign({},Oe.defaultOptions,e))}};function xa(t,e){let n=[],r;for(let s of Zn.parse(t)){let i=new je(e);i.parse(s,r),n.push(i),r=i}return n}function Rs(t,e){let n=Zn.parse(t),r=new je(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new va.YAMLSemanticError(n[1],s))}return r}function Da(t,e){let n=Rs(t,e);if(n.warnings.forEach(r=>_a.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function Ya(t,e){let n=new je(e);return n.contents=t,String(n)}var $a={createNode:Ra,defaultOptions:Oe.defaultOptions,Document:je,parse:Da,parseAllDocuments:xa,parseCST:Zn.parse,parseDocument:Rs,scalarOptions:Oe.scalarOptions,stringify:Ya};xs.YAML=$a});var $s=te((tf,Ys)=>{Ys.exports=Ds().YAML});var Bs=te(G=>{"use strict";var We=qe(),Qe=oe();G.findPair=We.findPair;G.parseMap=We.resolveMap;G.parseSeq=We.resolveSeq;G.stringifyNumber=We.stringifyNumber;G.stringifyString=We.stringifyString;G.toJSON=We.toJSON;G.Type=Qe.Type;G.YAMLError=Qe.YAMLError;G.YAMLReferenceError=Qe.YAMLReferenceError;G.YAMLSemanticError=Qe.YAMLSemanticError;G.YAMLSyntaxError=Qe.YAMLSyntaxError;G.YAMLWarning=Qe.YAMLWarning});var rc={};hr(rc,{languages:()=>Jr,options:()=>Xr,parsers:()=>pr,printers:()=>nc});var Ki=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},At=Ki;var Me="string",Ze="array",et="cursor",tt="indent",Ce="align",nt="trim",ke="group",Pe="fill",ge="if-break",rt="indent-if-break",Ie="line-suffix",st="line-suffix-boundary",Z="line",it="label",ve="break-parent",Lt=new Set([et,tt,Ce,nt,ke,Pe,ge,rt,Ie,st,Z,it,ve]);var Vi=(t,e,n)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},x=Vi;function ji(t){if(typeof t=="string")return Me;if(Array.isArray(t))return Ze;if(!t)return;let{type:e}=t;if(Lt.has(e))return e}var _e=ji;var Wi=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Qi(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(_e(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=Wi([...Lt].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${r}.`}var un=class extends Error{name="InvalidDocError";constructor(e){super(Qi(e)),this.doc=e}},pn=un;function Hi(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(_e(i)){case Ze:return e(i.map(r));case Pe:return e({...i,parts:i.parts.map(r)});case ge:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case ke:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case Ce:case tt:case rt:case it:case Ie:return e({...i,contents:r(i.contents)});case Me:case et:case nt:case st:case Z:case ve:return e(i);default:throw new pn(i)}}}function yr(t,e=ot){return Hi(t,n=>typeof n=="string"?P(e,n.split(` -`)):n)}var mn=()=>{},de=mn,hn=mn,Er=mn;function at(t,e){return de(e),{type:Ce,contents:e,n:t}}function Re(t,e={}){return de(t),hn(e.expandedStates,!0),{type:ke,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function gn(t){return at(Number.NEGATIVE_INFINITY,t)}function Sr(t){return at({type:"root"},t)}function wr(t){return at(-1,t)}function dn(t,e){return Re(t[0],{...e,expandedStates:t})}function Tt(t){return Er(t),{type:Pe,parts:t}}function ct(t,e="",n={}){return de(t),e!==""&&de(e),{type:ge,breakContents:t,flatContents:e,groupId:n.groupId}}function br(t){return de(t),{type:Ie,contents:t}}var Mt={type:ve};var Ji={type:Z,hard:!0},Xi={type:Z,hard:!0,literal:!0},ne={type:Z},Ct={type:Z,soft:!0},N=[Ji,Mt],ot=[Xi,Mt];function P(t,e){de(t),hn(e);let n=[];for(let r=0;r{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&o{let s=await r(e.originalText,{parser:"json"});return s?[s,N]:void 0}}Ar.getVisitorKeys=()=>[];var Lr=Ar;var lt=null;function ft(t){if(lt!==null&&typeof lt.property){let e=lt;return lt=ft.prototype=null,e}return lt=ft.prototype=t??Object.create(null),new ft}var eo=10;for(let t=0;t<=eo;t++)ft();function wn(t){return ft(t)}function to(t,e="type"){wn(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var Tr=to;var no=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([t,e])=>[t,[...e,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),Mr=no;var ro=Tr(Mr),Cr=ro;function xe(t){return t.position.start.offset}function kr(t){return t.position.end.offset}var Pr="format";var Ir=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*?(?:\n|$)/u,vr=/^\s*#[^\S\n]*@(?:format|prettier)\s*?(?:\n|$)/u,_r=/^\s*@(?:format|prettier)\s*$/u;function Rr(t){return _r.test(t)}function xr(t){return vr.test(t)}function Dr(t){return Ir.test(t)}function Yr(t){return`# @${Pr} - -${t}`}function so(t){return Array.isArray(t)&&t.length>0}var De=so;function K(t,e){return typeof(t==null?void 0:t.type)=="string"&&(!e||e.includes(t.type))}function bn(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>bn(r,e,t))}:t,n)}function Ye(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function Br(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;si===0&&i===o.length-1?s:i!==0&&i!==o.length-1?s.trim():i===0?s.trimEnd():s.trimStart());return n.proseWrap==="preserve"?r.map(s=>s.length===0?[]:[s]):r.map(s=>s.length===0?[]:qr(s)).reduce((s,i,o)=>o!==0&&r[o-1].length>0&&i.length>0&&!(t==="quoteDouble"&&x(!1,x(!1,s,-1),-1).endsWith("\\"))?[...s.slice(0,-1),[...x(!1,s,-1),...i]]:[...s,i],[]).map(s=>n.proseWrap==="never"?[s.join(" ")]:s)}function Kr(t,{parentIndent:e,isLastDescendant:n,options:r}){let s=t.position.start.line===t.position.end.line?"":r.originalText.slice(t.position.start.offset,t.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1],i;if(t.indent===null){let c=s.match(/^(? *)[^\n\r ]/mu);i=c?c.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else i=t.indent-1+e;let o=s.split(` -`).map(c=>c.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return a(o.map(c=>c.length===0?[]:[c]));return a(o.map(c=>c.length===0?[]:qr(c)).reduce((c,l,f)=>f!==0&&o[f-1].length>0&&l.length>0&&!/^\s/u.test(l[0])&&!/^\s|\s$/u.test(x(!1,c,-1))?[...c.slice(0,-1),[...x(!1,c,-1),...l]]:[...c,l],[]).map(c=>c.reduce((l,f)=>l.length>0&&/\s$/u.test(x(!1,l,-1))?[...l.slice(0,-1),x(!1,l,-1)+" "+f]:[...l,f],[])).map(c=>r.proseWrap==="never"?[c.join(" ")]:c));function a(c){if(t.chomping==="keep")return x(!1,c,-1).length===0?c.slice(0,-1):c;let l=0;for(let f=c.length-1;f>=0&&c[f].length===0;f--)l++;return l===0?c:l>=2&&!n?c.slice(0,-(l-1)):c.slice(0,-l)}}function ut(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var On=new WeakMap;function vt(t,e){let{node:n,root:r}=t,s;return On.has(r)?s=On.get(r):(s=new Set,On.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),Br(n,e)&&!An(t.parent))?Ct:""}function An(t){return I(t)&&!K(t,["documentHead","documentBody","flowMapping","flowSequence"])}function v(t,e){return at(" ".repeat(t),e)}function oo(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=Pt(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),Nn(r)&&o.push(" ",n("indicatorComment"));let a=Kr(r,{parentIndent:s,isLastDescendant:i,options:e}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(Tt(P(ne,f))),l!==a.length-1?c.push(f.length===0?N:Sr(ot)):r.chomping==="keep"&&i&&c.push(gn(f.length===0?N:ot));return r.indent===null?o.push(wr(v(e.tabWidth,c))):o.push(gn(v(r.indent-1+s,c))),o}var Vr=oo;function _t(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=Ct;s&&r.children.length>0&&e.bracketSpacing&&(a=ne);let c=x(!1,r.children,-1),l=(c==null?void 0:c.type)==="flowMappingItem"&&$e(c.key)&&$e(c.value);return[i,v(e.tabWidth,[a,ao(t,e,n),e.trailingComma==="none"?"":ct(","),I(r)?[N,P(N,t.map(n,"endComments"))]:""]),l?"":a,o]}function ao(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[n(),r?"":[",",ne,s.position.start.line!==i.position.start.line?vt(t,e.originalText):""]],"children")}function co(t,e,n){var M;let{node:r,parent:s}=t,{key:i,value:o}=r,a=$e(i),c=$e(o);if(a&&c)return": ";let l=n("key"),f=lo(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&Ln(i.content,e)&&!V(i.content)&&((M=s.tag)==null?void 0:M.value)!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",v(2,l)];let m=n("value");if(a)return[": ",v(2,m)];if(ee(o)||!ut(i.content))return["? ",v(2,l),N,...t.map(()=>[n(),N],"value","leadingComments"),": ",v(2,m)];if(fo(i.content)&&!ee(i.content)&&!ie(i.content)&&!V(i.content)&&!I(i)&&!ee(o.content)&&!ie(o.content)&&!I(o)&&Ln(o.content,e))return[l,f,": ",m];let d=Symbol("mappingKey"),y=Re([ct("? "),Re(v(2,l),{id:d})]),h=[N,": ",v(2,m)],g=[f,":"];I(o)&&o.content&&K(o.content,["flowMapping","flowSequence"])&&o.content.children.length===0?g.push(" "):ee(o.content)||I(o)&&o.content&&!K(o.content,["mapping","sequence"])||s.type==="mapping"&&V(i.content)&&ut(o.content)||K(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?g.push(N):o.content?g.push(ne):V(o)&&g.push(" "),g.push(m);let w=v(e.tabWidth,g);return Ln(i.content,e)&&!ee(i.content)&&!ie(i.content)&&!I(i)?dn([[l,w]]):dn([[y,ct(h,w,{groupId:d})]])}function Ln(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/mu.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` -`);case"always":return!/[\n ]/u.test(t.value);default:return!1}}function lo(t){var e;return((e=t.key.content)==null?void 0:e.type)==="alias"}function fo(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var jr=co;function uo(t){return bn(t,po)}function po(t){switch(t.type){case"document":Ye(t,"head",()=>t.children[0]),Ye(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Ye(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":Ye(t,"key",()=>t.children[0]),Ye(t,"value",()=>t.children[1]);break}return t}var Wr=uo;function mo(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&ee(r)&&s.push([P(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return K(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Pt(t)&&(a=vt(t,e.originalText)),(i||o)&&(K(r,["sequence","mapping"])&&!ie(r)?s.push(N):s.push(" ")),ie(r)&&s.push([r.middleComments.length===1?"":N,P(N,t.map(n,"middleComments")),N]),Fr(t)?s.push(yr(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(Re(ho(t,e,n))),V(r)&&!K(r,["document","documentHead"])&&s.push(br([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&ut(r)?"":Mt,n("trailingComment")])),An(r)&&s.push(v(r.type==="sequenceItem"?2:0,[N,P(N,t.map(({node:c})=>[Nr(e.originalText,xe(c))?N:"",n()],"endComments"))])),s.push(a),s}function ho(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=[];t.each(({node:o,next:a,isFirst:c})=>{c||s.push(N),s.push(n()),Qr(o,a)?(s.push(N,"..."),V(o)&&s.push(" ",n("trailingComment"))):a&&!V(a.head)&&s.push(N,"---")},"children");let i=It(r);return(!K(i,["blockLiteral","blockFolded"])||i.chomping!=="keep")&&s.push(N),s}case"document":{let s=[];return yo(t,e)==="head"&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),V(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),go(r)&&s.push(n("body")),P(N,s)}case"documentHead":return P(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=It(r);K(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(o=[N,N]):o=N}return[P(N,t.map(n,"children")),o,P(N,t.map(n,"endComments"))]}case"directive":return["%",P(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return pt(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let s="'",i='"',o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/u.test(o)){let c=r.type==="quoteDouble"?i:s;return[c,pt(r.type,o,e),c]}if(o.includes(i))return[s,pt(r.type,r.type==="quoteDouble"?At(!1,At(!1,o,String.raw`\"`,i),"'",s.repeat(2)):o,e),s];if(o.includes(s))return[i,pt(r.type,r.type==="quoteSingle"?At(!1,o,"''",s):o,e),i];let a=e.singleQuote?s:i;return[a,pt(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return Vr(t,e,n);case"mapping":case"sequence":return P(N,t.map(n,"children"));case"sequenceItem":return["- ",v(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return jr(t,e,n);case"flowMapping":return _t(t,e,n);case"flowSequence":return _t(t,e,n);case"flowSequenceItem":return n("content");default:throw new Or(r,"YAML")}}function go(t){return t.body.children.length>0||I(t.body)}function Qr(t,e){return V(t)||e&&(e.head.children.length>0||I(e.head))}function yo(t,e){let n=t.node;if(t.isFirst&&/---(?:\s|$)/u.test(e.originalText.slice(xe(n),xe(n)+4))||n.head.children.length>0||I(n.head)||V(n.head))return"head";let r=t.next;return Qr(n,r)?!1:r?"root":!1}function pt(t,e,n){let r=Ur(t,e,n);return P(N,r.map(s=>Tt(P(ne,s))))}function Gr(t,e){if(K(t))switch(t.type){case"comment":if(Rr(t.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break}}Gr.ignoredProperties=new Set(["position"]);var Eo={preprocess:Wr,embed:Lr,print:mo,massageAstNode:Gr,insertPragma:Yr,getVisitorKeys:Cr},Hr=Eo;var Jr=[{name:"YAML",type:"data",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],tmScope:"source.yaml",aceMode:"yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}];var Rt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var So={bracketSpacing:Rt.bracketSpacing,singleQuote:Rt.singleQuote,proseWrap:Rt.proseWrap},Xr=So;var pr={};hr(pr,{yaml:()=>tc});var ur=dr($s(),1);var H=dr(Bs(),1),rf=H.default.findPair,sf=H.default.toJSON,of=H.default.parseMap,af=H.default.parseSeq,cf=H.default.stringifyNumber,lf=H.default.stringifyString,ff=H.default.Type,uf=H.default.YAMLError,pf=H.default.YAMLReferenceError,Fs=H.default.YAMLSemanticError,mf=H.default.YAMLSyntaxError,hf=H.default.YAMLWarning;function B(t,e=null){"children"in t&&t.children.forEach(n=>B(n,t)),"anchor"in t&&t.anchor&&B(t.anchor,t),"tag"in t&&t.tag&&B(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>B(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>B(n,t)),"indicatorComment"in t&&t.indicatorComment&&B(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&B(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>B(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function Ae(t){return`${t.line}:${t.column}`}function qs(t){B(t);let e=Ba(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();Fa(r,e,n[0])})}function Ba(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return Us(e,t),e}function Us(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{Us(t,n)})}}function Fa(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${Ae(t.position.start)}`);B(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=Ks(l)?l:f}for(;;){if(qa(c,t)){B(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){B(t,a),a.leadingComments.push(t);return}}let i=n.children[1];B(t,i),i.endComments.push(t)}function qa(t,e){if(t.position.start.offsete.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offsett.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Ks(t));default:return!1}}function Ks(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function Vs(t,e,n){return{...b("root",t),children:e,comments:n}}function bt(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):bt(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):bt(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&bt(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function J(t,e){return{start:t,end:e}}function er(t){return{start:t,end:t}}var ue;(function(t){t.Tag="!",t.Anchor="&",t.Comment="#"})(ue||(ue={}));function js(t,e){return{...b("anchor",t),value:e}}function Ge(t,e){return{...b("comment",t),value:e}}function Ws(t,e,n){return{anchor:e,tag:t,middleComments:n}}function Qs(t,e){return{...b("tag",t),value:e}}function zt(t,e,n=()=>!1){let r=t.cstNode,s=[],i=null,o=null,a=null;for(let c of r.props){let l=e.text[c.origStart];switch(l){case ue.Tag:i=i||c,o=Qs(e.transformRange(c),t.tag);break;case ue.Anchor:i=i||c,a=js(e.transformRange(c),r.anchor);break;case ue.Comment:{let f=Ge(e.transformRange(c),e.text.slice(c.origStart+1,c.origEnd));e.comments.push(f),!n(f)&&i&&i.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&s.push(f);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(l)}`)}}return Ws(o,a,s)}function X(){return{leadingComments:[]}}function pe(t=null){return{trailingComment:t}}function F(){return{...X(),...pe()}}function Gs(t,e,n){return{...b("alias",t),...F(),...e,value:n}}function Hs(t,e){let n=t.cstNode;return Gs(e.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),e.transformContent(t),n.rawValue)}function Js(t){return{...t,type:"blockFolded"}}function Xs(t,e,n,r,s,i){return{...b("blockValue",t),...X(),...e,chomping:n,indent:r,value:s,indicatorComment:i}}var tr;(function(t){t.CLIP="clip",t.STRIP="strip",t.KEEP="keep"})(tr||(tr={}));function Zt(t,e){let n=t.cstNode,r=1,s=n.chomping==="CLIP"?0:1,o=n.header.origEnd-n.header.origStart-r-s!==0,a=e.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),c=null,l=zt(t,e,f=>{if(!(a.start.offset=0;c--){let l=t.contents[c];if(l.type==="COMMENT"){let f=e.transformNode(l);n&&n.line===f.position.start.line?o.unshift(f):a?r.unshift(f):f.position.start.offset>=t.valueRange.origEnd?i.unshift(f):r.unshift(f)}else a=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${Ae(i[1].position.start)}`);if(o.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${Ae(o[1].position.start)}`);return{comments:r,endComments:s,documentTrailingComment:U(i)||null,documentHeadTrailingComment:U(o)||null}}function Ka(t,e,n){let r=en(n.text.slice(t.valueRange.origEnd),/^\.\.\./),s=r===-1?t.valueRange.origEnd:Math.max(0,t.valueRange.origEnd-1);n.text[s-1]==="\r"&&s--;let i=n.transformRange({origStart:e!==null?e.position.start.offset:s,origEnd:s}),o=r===-1?i.end:n.transformOffset(t.valueRange.origEnd+3);return{position:i,documentEndPoint:o}}function ai(t,e,n,r){return{...b("documentHead",t),...q(n),...pe(r),children:e}}function ci(t,e){let n=t.cstNode,{directives:r,comments:s,endComments:i}=Va(n,e),{position:o,endMarkerPoint:a}=ja(n,r,e);return e.comments.push(...s,...i),{createDocumentHeadWithTrailingComment:l=>(l&&e.comments.push(l),ai(o,r,i,l)),documentHeadEndMarkerPoint:a}}function Va(t,e){let n=[],r=[],s=[],i=!1;for(let o=t.directives.length-1;o>=0;o--){let a=e.transformNode(t.directives[o]);a.type==="comment"?i?r.unshift(a):s.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:s}}function ja(t,e,n){let r=en(n.text.slice(0,t.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let s=r===-1?{origStart:t.valueRange.origStart,origEnd:t.valueRange.origStart}:{origStart:r,origEnd:r+3};return e.length!==0&&(s.origStart=e[0].position.start.offset),{position:n.transformRange(s),endMarkerPoint:r===-1?null:n.transformOffset(r)}}function li(t,e){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=ci(t,e),{documentBody:s,documentEndPoint:i,documentTrailingComment:o,documentHeadTrailingComment:a}=oi(t,e,r),c=n(a);return o&&e.comments.push(o),si(J(c.position.start,i),c,s,o)}function tn(t,e,n){return{...b("flowCollection",t),...F(),...q(),...e,children:n}}function fi(t,e,n){return{...tn(t,e,n),type:"flowMapping"}}function nn(t,e,n){return{...b("flowMappingItem",t),...X(),children:[e,n]}}function me(t,e){let n=[];for(let r of t)r&&"type"in r&&r.type==="COMMENT"?e.comments.push(e.transformNode(r)):n.push(r);return n}function rn(t){let[e,n]=["?",":"].map(r=>{let s=t.find(i=>"char"in i&&i.char===r);return s?{origStart:s.origOffset,origEnd:s.origOffset+1}:null});return{additionalKeyRange:e,additionalValueRange:n}}function sn(t,e){let n=e;return r=>t.slice(n,n=r)}function on(t){let e=[],n=sn(t,1),r=!1;for(let s=1;s{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=rn(l);return Je(a,e,nn,f,m)}),i=n[0],o=U(n);return fi(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function pi(t,e,n){return{...tn(t,e,n),type:"flowSequence"}}function mi(t,e){return{...b("flowSequenceItem",t),children:[e]}}function hi(t,e){let n=me(t.cstNode.items,e),r=on(n),s=t.items.map((a,c)=>{if(a.type!=="PAIR"){let l=e.transformNode(a);return mi(J(l.position.start,l.position.end),l)}else{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=rn(l);return Je(a,e,nn,f,m)}}),i=n[0],o=U(n);return pi(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function gi(t,e,n){return{...b("mapping",t),...X(),...e,children:n}}function di(t,e,n){return{...b("mappingItem",t),...X(),children:[e,n]}}function yi(t,e){let n=t.cstNode;n.items.filter(o=>o.type==="MAP_KEY"||o.type==="MAP_VALUE").forEach(o=>He(o,e));let r=me(n.items,e),s=Wa(r),i=t.items.map((o,a)=>{let c=s[a],[l,f]=c[0].type==="MAP_VALUE"?[null,c[0].range]:[c[0].range,c.length===1?null:c[1].range];return Je(o,e,di,l,f)});return gi(J(i[0].position.start,U(i).position.end),e.transformContent(t),i)}function Wa(t){let e=[],n=sn(t,0),r=!1;for(let s=0;s=0;r--)if(n.test(t[r]))return r;return-1}function wi(t,e){let n=t.cstNode;return Ei(e.transformRange({origStart:n.valueRange.origStart,origEnd:Si(e.text,n.valueRange.origEnd-1,/\S/)+1}),e.transformContent(t),n.strValue)}function bi(t){return{...t,type:"quoteDouble"}}function Ni(t,e,n){return{...b("quoteValue",t),...e,...F(),value:n}}function an(t,e){let n=t.cstNode;return Ni(e.transformRange(n.valueRange),e.transformContent(t),n.strValue)}function Oi(t,e){return bi(an(t,e))}function Ai(t){return{...t,type:"quoteSingle"}}function Li(t,e){return Ai(an(t,e))}function Ti(t,e,n){return{...b("sequence",t),...X(),...q(),...e,children:n}}function Mi(t,e){return{...b("sequenceItem",t),...F(),...q(),children:e?[e]:[]}}function Ci(t,e){let r=me(t.cstNode.items,e).map((s,i)=>{He(s,e);let o=e.transformNode(t.items[i]);return Mi(J(e.transformOffset(s.valueRange.origStart),o===null?e.transformOffset(s.valueRange.origStart+1):o.position.end),o)});return Ti(J(r[0].position.start,U(r).position.end),e.transformContent(t),r)}function ki(t,e){if(t===null||t.type===void 0&&t.value===null)return null;switch(t.type){case"ALIAS":return Hs(t,e);case"BLOCK_FOLDED":return zs(t,e);case"BLOCK_LITERAL":return ei(t,e);case"COMMENT":return ti(t,e);case"DIRECTIVE":return ri(t,e);case"DOCUMENT":return li(t,e);case"FLOW_MAP":return ui(t,e);case"FLOW_SEQ":return hi(t,e);case"MAP":return yi(t,e);case"PLAIN":return wi(t,e);case"QUOTE_DOUBLE":return Oi(t,e);case"QUOTE_SINGLE":return Li(t,e);case"SEQ":return Ci(t,e);default:throw new Error(`Unexpected node type ${t.type}`)}}var sr,Le,Nt,he,or,ar,ir=class{constructor(e,n){Ot(this,he);cn(this,"text");cn(this,"comments",[]);Ot(this,Le);Ot(this,Nt);this.text=n,fn(this,Le,e)}setOrigRanges(){if(!Te(this,Le).setOrigRanges())for(let e of Te(this,Le))e.setOrigRanges([],0)}transformOffset(e){return ze(this,he,or).call(this,{origStart:e,origEnd:e}).start}transformRange(e){let{start:n,end:r}=ze(this,he,or).call(this,e);return J(n,r)}transformNode(e){return ki(e,this)}transformContent(e){return zt(e,this)}};Le=new WeakMap,Nt=new WeakMap,he=new WeakSet,or=function(e){if(!sr){let[o]=Te(this,Le),a=Object.getPrototypeOf(Object.getPrototypeOf(o));sr=Object.getOwnPropertyDescriptor(a,"rangeAsLinePos").get}Te(this,Nt)??fn(this,Nt,{root:{context:{src:this.text}}});let{start:{line:n,col:r},end:{line:s,col:i}}=sr.call({range:{start:ze(this,he,ar).call(this,e.origStart),end:ze(this,he,ar).call(this,e.origEnd)},context:Te(this,Nt)});return{start:{offset:e.origStart,line:n,column:r},end:{offset:e.origEnd,line:s,column:i}}},ar=function(e){return e<0?0:e>this.text.length?this.text.length:e};var Pi=ir;function Ii(t,e,n){let r=new SyntaxError(t);return r.name="YAMLSyntaxError",r.source=e,r.position=n,r}function vi(t,e){let n=t.source.range||t.source.valueRange;return Ii(t.message,e.text,e.transformRange(n))}function cr(t){if("children"in t){if(t.children.length===1){let e=t.children[0];if(e.type==="plain"&&e.tag===null&&e.anchor===null&&e.value==="")return t.children.splice(0,1),t}t.children.forEach(cr)}return t}function lr(t,e,n,r){let s=e(t);return i=>{r(s,i)&&n(t,s=i)}}function fr(t){if(t===null||!("children"in t))return;let e=t.children;if(e.forEach(fr),t.type==="document"){let[i,o]=t.children;i.position.start.offset===i.position.end.offset?i.position.start=i.position.end=o.position.start:o.position.start.offset===o.position.end.offset&&(o.position.start=o.position.end=i.position.end)}let n=lr(t.position,Qa,Ga,Xa),r=lr(t.position,Ha,Ja,za);"endComments"in t&&t.endComments.length!==0&&(n(t.endComments[0].position.start),r(U(t.endComments).position.end));let s=e.filter(i=>i!==null);if(s.length!==0){let i=s[0],o=U(s);n(i.position.start),r(o.position.end),"leadingComments"in i&&i.leadingComments.length!==0&&n(i.leadingComments[0].position.start),"tag"in i&&i.tag&&n(i.tag.position.start),"anchor"in i&&i.anchor&&n(i.anchor.position.start),"trailingComment"in o&&o.trailingComment&&r(o.trailingComment.position.end)}}function Qa(t){return t.start}function Ga(t,e){t.start=e}function Ha(t){return t.end}function Ja(t,e){t.end=e}function Xa(t,e){return e.offsett.offset}function _i(t){let e=ur.default.parseCST(t),n=new Pi(e,t);n.setOrigRanges();let r=e.map(i=>new ur.default.Document({merge:!1,keepCstNodes:!0}).parse(i));for(let i of r)for(let o of i.errors)if(!(o instanceof Fs&&o.message==='Map keys must be unique; "<<" is repeated'))throw vi(o,n);r.forEach(i=>bt(i.cstNode));let s=Vs(n.transformRange({origStart:0,origEnd:t.length}),r.map(i=>n.transformNode(i)),n.comments);return qs(s),fr(s),cr(s),s}function Za(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var Ri=Za;function ec(t){try{let e=_i(t);return delete e.comments,e}catch(e){throw e!=null&&e.position?Ri(e.message,{loc:e.position,cause:e}):e}}var tc={astFormat:"yaml",parse:ec,hasPragma:xr,hasIgnorePragma:Dr,locStart:xe,locEnd:kr};var nc={yaml:Hr};return Ui(rc);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/yaml.mjs b/node_modules/prettier/plugins/yaml.mjs deleted file mode 100644 index 21a5996..0000000 --- a/node_modules/prettier/plugins/yaml.mjs +++ /dev/null @@ -1,160 +0,0 @@ -var Yi=Object.create;var Nt=Object.defineProperty;var $i=Object.getOwnPropertyDescriptor;var Bi=Object.getOwnPropertyNames;var Fi=Object.getPrototypeOf,qi=Object.prototype.hasOwnProperty;var dr=t=>{throw TypeError(t)};var Ui=(t,e,n)=>e in t?Nt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var te=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),yr=(t,e)=>{for(var n in e)Nt(t,n,{get:e[n],enumerable:!0})},Ki=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Bi(e))!qi.call(t,s)&&s!==n&&Nt(t,s,{get:()=>e[s],enumerable:!(r=$i(e,s))||r.enumerable});return t};var cn=(t,e,n)=>(n=t!=null?Yi(Fi(t)):{},Ki(e||!t||!t.__esModule?Nt(n,"default",{value:t,enumerable:!0}):n,t));var ln=(t,e,n)=>Ui(t,typeof e!="symbol"?e+"":e,n),fn=(t,e,n)=>e.has(t)||dr("Cannot "+n);var Te=(t,e,n)=>(fn(t,e,"read from private field"),n?n.call(t):e.get(t)),Ot=(t,e,n)=>e.has(t)?dr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),un=(t,e,n,r)=>(fn(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Xe=(t,e,n)=>(fn(t,e,"access private method"),n);var oe=te($=>{"use strict";var re={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},pt={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},bo="tag:yaml.org,2002:",No={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function Zr(t){let e=[0],n=t.indexOf(` -`);for(;n!==-1;)n+=1,e.push(n),n=t.indexOf(` -`,n);return e}function es(t){let e,n;return typeof t=="string"?(e=Zr(t),n=t):(Array.isArray(t)&&(t=t[0]),t&&t.context&&(t.lineStarts||(t.lineStarts=Zr(t.context.src)),e=t.lineStarts,n=t.context.src)),{lineStarts:e,src:n}}function Mn(t,e){if(typeof t!="number"||t<0)return null;let{lineStarts:n,src:r}=es(e);if(!n||!r||t>r.length)return null;for(let i=0;i=1)||t>n.length)return null;let s=n[t-1],i=n[t];for(;i&&i>s&&r[i-1]===` -`;)--i;return r.slice(s,i)}function Ao({start:t,end:e},n,r=80){let s=Oo(t.line,n);if(!s)return null;let{col:i}=t;if(s.length>r)if(i<=r-10)s=s.substr(0,r-1)+"\u2026";else{let f=Math.round(r/2);s.length>i+f&&(s=s.substr(0,i+f-1)+"\u2026"),i-=s.length-r,s="\u2026"+s.substr(1-r)}let o=1,a="";e&&(e.line===t.line&&i+(e.col-t.col)<=r+1?o=e.col-t.col:(o=Math.min(s.length+1,r)-i,a="\u2026"));let c=i>1?" ".repeat(i-1):"",l="^".repeat(o);return`${s} -${c}${l}${a}`}var Be=class t{static copy(e){return new t(e.start,e.end)}constructor(e,n){this.start=e,this.end=n||e}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(e,n){let{start:r,end:s}=this;if(e.length===0||s<=e[0])return this.origStart=r,this.origEnd=s,n;let i=n;for(;ir);)++i;this.origStart=r+i;let o=i;for(;i=s);)++i;return this.origEnd=s+i,o}},se=class t{static addStringTerminator(e,n,r){if(r[r.length-1]===` -`)return r;let s=t.endOfWhiteSpace(e,n);return s>=e.length||e[s]===` -`?r+` -`:r}static atDocumentBoundary(e,n,r){let s=e[n];if(!s)return!0;let i=e[n-1];if(i&&i!==` -`)return!1;if(r){if(s!==r)return!1}else if(s!==re.DIRECTIVES_END&&s!==re.DOCUMENT_END)return!1;let o=e[n+1],a=e[n+2];if(o!==s||a!==s)return!1;let c=e[n+3];return!c||c===` -`||c===" "||c===" "}static endOfIdentifier(e,n){let r=e[n],s=r==="<",i=s?[` -`," "," ",">"]:[` -`," "," ","[","]","{","}",","];for(;r&&i.indexOf(r)===-1;)r=e[n+=1];return s&&r===">"&&(n+=1),n}static endOfIndent(e,n){let r=e[n];for(;r===" ";)r=e[n+=1];return n}static endOfLine(e,n){let r=e[n];for(;r&&r!==` -`;)r=e[n+=1];return n}static endOfWhiteSpace(e,n){let r=e[n];for(;r===" "||r===" ";)r=e[n+=1];return n}static startOfLine(e,n){let r=e[n-1];if(r===` -`)return n;for(;r&&r!==` -`;)r=e[n-=1];return n+1}static endOfBlockIndent(e,n,r){let s=t.endOfIndent(e,r);if(s>r+n)return s;{let i=t.endOfWhiteSpace(e,s),o=e[i];if(!o||o===` -`)return i}return null}static atBlank(e,n,r){let s=e[n];return s===` -`||s===" "||s===" "||r&&!s}static nextNodeIsIndented(e,n,r){return!e||n<0?!1:n>0?!0:r&&e==="-"}static normalizeOffset(e,n){let r=e[n];return r?r!==` -`&&e[n-1]===` -`?n-1:t.endOfWhiteSpace(e,n):n}static foldNewline(e,n,r){let s=0,i=!1,o="",a=e[n+1];for(;a===" "||a===" "||a===` -`;){switch(a){case` -`:s=0,n+=1,o+=` -`;break;case" ":s<=r&&(i=!0),n=t.endOfWhiteSpace(e,n+2)-1;break;case" ":s+=1,n+=1;break}a=e[n+1]}return o||(o=" "),a&&s<=r&&(i=!0),{fold:o,offset:n,error:i}}constructor(e,n,r){Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=e,this.value=null}getPropValue(e,n,r){if(!this.context)return null;let{src:s}=this.context,i=this.props[e];return i&&s[i.start]===n?s.slice(i.start+(r?1:0),i.end):null}get anchor(){for(let e=0;e0?e.join(` -`):null}commentHasRequiredWhitespace(e){let{src:n}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:r}=this.valueRange;return e!==r||t.atBlank(n,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;nr.setOrigRange(e,n)),n}toString(){let{context:{src:e},range:n,value:r}=this;if(r!=null)return r;let s=e.slice(n.start,n.end);return t.addStringTerminator(e,n.end,s)}},ye=class extends Error{constructor(e,n,r){if(!r||!(n instanceof se))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=r,this.source=n}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Be(this.offset,this.offset+1);let n=e&&Mn(this.offset,e);if(n){let r={line:n.line,col:n.col+1};this.linePos={start:n,end:r}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:n,col:r}=this.linePos.start;this.message+=` at line ${n}, column ${r}`;let s=e&&Ao(this.linePos,e);s&&(this.message+=`: - -${s} -`)}delete this.source}},Cn=class extends ye{constructor(e,n){super("YAMLReferenceError",e,n)}},mt=class extends ye{constructor(e,n){super("YAMLSemanticError",e,n)}},kn=class extends ye{constructor(e,n){super("YAMLSyntaxError",e,n)}},Pn=class extends ye{constructor(e,n){super("YAMLWarning",e,n)}};function Lo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var In=class t extends se{static endOfLine(e,n,r){let s=e[n],i=n;for(;s&&s!==` -`&&!(r&&(s==="["||s==="]"||s==="{"||s==="}"||s===","));){let o=e[i+1];if(s===":"&&(!o||o===` -`||o===" "||o===" "||r&&o===",")||(s===" "||s===" ")&&o==="#")break;i+=1,s=o}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{src:r}=this.context,s=r[n-1];for(;el?r.slice(l,a+1):c)}else i+=c}let o=r[e];switch(o){case" ":{let a="Plain value cannot start with a tab character";return{errors:[new mt(this,a)],str:i}}case"@":case"`":{let a=`Plain value cannot start with reserved character ${o}`;return{errors:[new mt(this,a)],str:i}}default:return i}}parseBlockValue(e){let{indent:n,inFlow:r,src:s}=this.context,i=e,o=e;for(let a=s[i];a===` -`&&!se.atDocumentBoundary(s,i+1);a=s[i]){let c=se.endOfBlockIndent(s,n,i+1);if(c===null||s[c]==="#")break;s[c]===` -`?i=c:(o=t.endOfLine(s,c,r),i=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,n){this.context=e;let{inFlow:r,src:s}=e,i=n,o=s[i];return o&&o!=="#"&&o!==` -`&&(i=t.endOfLine(s,n,r)),this.valueRange=new Be(n,i),i=se.endOfWhiteSpace(s,i),i=this.parseComment(i),(!this.hasComment||this.valueRange.isEmpty())&&(i=this.parseBlockValue(i)),i}};$.Char=re;$.Node=se;$.PlainValue=In;$.Range=Be;$.Type=pt;$.YAMLError=ye;$.YAMLReferenceError=Cn;$.YAMLSemanticError=mt;$.YAMLSyntaxError=kn;$.YAMLWarning=Pn;$._defineProperty=Lo;$.defaultTagPrefix=bo;$.defaultTags=No});var ns=te(ts=>{"use strict";var u=oe(),Se=class extends u.Node{constructor(){super(u.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new u.Range(n,n+1),n+1}},ht=class extends u.Node{constructor(e,n){super(e,n),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{atLineStart:i,lineStart:o}=e;!i&&this.type===u.Type.SEQ_ITEM&&(this.error=new u.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let a=i?n-o:e.indent,c=u.Node.endOfWhiteSpace(s,n+1),l=s[c],f=l==="#",m=[],d=null;for(;l===` -`||l==="#";){if(l==="#"){let h=u.Node.endOfLine(s,c+1);m.push(new u.Range(c,h)),c=h}else{i=!0,o=c+1;let h=u.Node.endOfWhiteSpace(s,o);s[h]===` -`&&m.length===0&&(d=new Se,o=d.parse({src:s},o)),c=u.Node.endOfIndent(s,o)}l=s[c]}if(u.Node.nextNodeIsIndented(l,c-(o+a),this.type!==u.Type.SEQ_ITEM)?this.node=r({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},c):l&&o>n+1&&(c=o-1),this.node){if(d){let h=e.parent.items||e.parent.contents;h&&h.push(d)}m.length&&Array.prototype.push.apply(this.props,m),c=this.node.range.end}else if(f){let h=m[0];this.props.push(h),c=h.end}else c=u.Node.endOfLine(s,n+1);let y=this.node?this.node.valueRange.end:c;return this.valueRange=new u.Range(n,y),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.node?this.node.setOrigRanges(e,n):n}toString(){let{context:{src:e},node:n,range:r,value:s}=this;if(s!=null)return s;let i=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return u.Node.addStringTerminator(e,r.end,i)}},Ee=class extends u.Node{constructor(){super(u.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new u.Range(n,r),r}};function vn(t){let e=t;for(;e instanceof ht;)e=e.node;if(!(e instanceof xt))return null;let n=e.items.length,r=-1;for(let o=n-1;o>=0;--o){let a=e.items[o];if(a.type===u.Type.COMMENT){let{indent:c,lineStart:l}=a.context;if(c>0&&a.range.start>=l+c)break;r=o}else if(a.type===u.Type.BLANK_LINE)r=o;else break}if(r===-1)return null;let s=e.items.splice(r,n-r),i=s[0].range.start;for(;e.range.end=i,e.valueRange&&e.valueRange.end>i&&(e.valueRange.end=i),e!==t;)e=e.context.parent;return s}var xt=class t extends u.Node{static nextContentHasIndent(e,n,r){let s=u.Node.endOfLine(e,n)+1;n=u.Node.endOfWhiteSpace(e,s);let i=e[n];return i?n>=s+r?!0:i!=="#"&&i!==` -`?!1:t.nextContentHasIndent(e,n,r):!1}constructor(e){super(e.type===u.Type.SEQ_ITEM?u.Type.SEQ:u.Type.MAP);for(let r=e.props.length-1;r>=0;--r)if(e.props[r].start0}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,i=u.Node.startOfLine(s,n),o=this.items[0];o.context.parent=this,this.valueRange=u.Range.copy(o.valueRange);let a=o.range.start-o.context.lineStart,c=n;c=u.Node.normalizeOffset(s,c);let l=s[c],f=u.Node.endOfWhiteSpace(s,i)===c,m=!1;for(;l;){for(;l===` -`||l==="#";){if(f&&l===` -`&&!m){let h=new Se;if(c=h.parse({src:s},c),this.valueRange.end=c,c>=s.length){l=null;break}this.items.push(h),c-=1}else if(l==="#"){if(c=s.length){l=null;break}}if(i=c+1,c=u.Node.endOfIndent(s,i),u.Node.atBlank(s,c)){let h=u.Node.endOfWhiteSpace(s,c),g=s[h];(!g||g===` -`||g==="#")&&(c=h)}l=s[c],f=!0}if(!l)break;if(c!==i+a&&(f||l!==":")){if(cn&&(c=i);break}else if(!this.error){let h="All collection items must start at the same column";this.error=new u.YAMLSyntaxError(this,h)}}if(o.type===u.Type.SEQ_ITEM){if(l!=="-"){i>n&&(c=i);break}}else if(l==="-"&&!this.error){let h=s[c+1];if(!h||h===` -`||h===" "||h===" "){let g="A collection cannot be both a mapping and a sequence";this.error=new u.YAMLSyntaxError(this,g)}}let d=r({atLineStart:f,inCollection:!0,indent:a,lineStart:i,parent:this},c);if(!d)return c;if(this.items.push(d),this.valueRange.end=d.valueRange.end,c=u.Node.normalizeOffset(s,d.range.end),l=s[c],f=!1,m=d.includesTrailingLines,l){let h=c-1,g=s[h];for(;g===" "||g===" ";)g=s[--h];g===` -`&&(i=h+1,f=!0)}let y=vn(d);y&&Array.prototype.push.apply(this.items,y)}return c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach(r=>{n=r.setOrigRanges(e,n)}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=e.slice(r.start,n[0].range.start)+String(n[0]);for(let o=1;o0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new u.Range(i,i+3),i+3):(s?this.error=new u.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(e){let{parseNode:n,src:r}=this.context;this.contents||(this.contents=[]);let s=e;for(;r[s-1]==="-";)s-=1;let i=u.Node.endOfWhiteSpace(r,e),o=s===e;for(this.valueRange=new u.Range(i);!u.Node.atDocumentBoundary(r,i,u.Char.DOCUMENT_END);){switch(r[i]){case` -`:if(o){let a=new Se;i=a.parse({src:r},i),i{n=r.setOrigRanges(e,n)}),this.directivesEndMarker&&(n=this.directivesEndMarker.setOrigRange(e,n)),this.contents.forEach(r=>{n=r.setOrigRanges(e,n)}),this.documentEndMarker&&(n=this.documentEndMarker.setOrigRange(e,n)),n}toString(){let{contents:e,directives:n,value:r}=this;if(r!=null)return r;let s=n.join("");return e.length>0&&((n.length>0||e[0].type===u.Type.COMMENT)&&(s+=`--- -`),s+=e.join("")),s[s.length-1]!==` -`&&(s+=` -`),s}},xn=class extends u.Node{parse(e,n){this.context=e;let{src:r}=e,s=u.Node.endOfIdentifier(r,n+1);return this.valueRange=new u.Range(n+1,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},ae={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},Dn=class extends u.Node{constructor(e,n){super(e,n),this.blockIndent=null,this.chomping=ae.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===ae.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null,o=s[n-1];for(;o===` -`||o===" "||o===" ";){if(n-=1,n<=e){if(this.chomping===ae.KEEP)break;return""}o===` -`&&(i=n),o=s[n-1]}let a=n+1;i&&(this.chomping===ae.KEEP?(a=i,n=this.valueRange.end):n=i);let c=r+this.blockIndent,l=this.type===u.Type.BLOCK_FOLDED,f=!0,m="",d="",y=!1;for(let h=e;ha&&(a=m);r[l]===` -`?i=l:i=o=u.Node.endOfLine(r,l)}return this.chomping!==ae.KEEP&&(i=r[o]?o+1:o),this.valueRange=new u.Range(e+1,i),i}parse(e,n){this.context=e;let{src:r}=e,s=this.parseBlockHeader(n);return s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s=this.parseBlockValue(s),s}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.header?this.header.setOrigRange(e,n):n}},Yn=class extends u.Node{constructor(e,n){super(e,n),this.items=null}prevNodeIsJsonLike(e=this.items.length){let n=this.items[e-1];return!!n&&(n.jsonLike||n.type===u.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{indent:i,lineStart:o}=e,a=s[n];this.items=[{char:a,offset:n}];let c=u.Node.endOfWhiteSpace(s,n+1);for(a=s[c];a&&a!=="]"&&a!=="}";){switch(a){case` -`:{o=c+1;let l=u.Node.endOfWhiteSpace(s,o);if(s[l]===` -`){let f=new Se;o=f.parse({src:s},o),this.items.push(f)}if(c=u.Node.endOfIndent(s,o),c<=o+i&&(a=s[c],c{if(r instanceof u.Node)n=r.setOrigRanges(e,n);else if(e.length===0)r.origOffset=r.offset;else{let s=n;for(;sr.offset);)++s;r.origOffset=r.offset+s,n=s}}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=n.filter(c=>c instanceof u.Node),o="",a=r.start;return i.forEach(c=>{let l=e.slice(a,c.range.start);a=c.range.end,o+=l+String(c),o[o.length-1]===` -`&&e[a-1]!==` -`&&e[a]===` -`&&(a+=1)}),o+=e.slice(a,r.end),u.Node.addStringTerminator(e,r.end,o)}},$n=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r&&r!=='"';)n+=r==="\\"?2:1,r=e[n];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=='"'&&e.push(new u.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:s}=this.context,i=s.substr(e,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(a)?(r.push(new u.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,n+2)}`)),s.substr(e-2,n+2)):String.fromCodePoint(a)}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},Bn=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r;)if(r==="'"){if(e[n+1]!=="'")break;r=e[n+=2]}else r=e[n+=1];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=="'"&&e.push(new u.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}};function To(t,e){switch(t){case u.Type.ALIAS:return new xn(t,e);case u.Type.BLOCK_FOLDED:case u.Type.BLOCK_LITERAL:return new Dn(t,e);case u.Type.FLOW_MAP:case u.Type.FLOW_SEQ:return new Yn(t,e);case u.Type.MAP_KEY:case u.Type.MAP_VALUE:case u.Type.SEQ_ITEM:return new ht(t,e);case u.Type.COMMENT:case u.Type.PLAIN:return new u.PlainValue(t,e);case u.Type.QUOTE_DOUBLE:return new $n(t,e);case u.Type.QUOTE_SINGLE:return new Bn(t,e);default:return null}}var Fn=class t{static parseType(e,n,r){switch(e[n]){case"*":return u.Type.ALIAS;case">":return u.Type.BLOCK_FOLDED;case"|":return u.Type.BLOCK_LITERAL;case"{":return u.Type.FLOW_MAP;case"[":return u.Type.FLOW_SEQ;case"?":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_KEY:u.Type.PLAIN;case":":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_VALUE:u.Type.PLAIN;case"-":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.SEQ_ITEM:u.Type.PLAIN;case'"':return u.Type.QUOTE_DOUBLE;case"'":return u.Type.QUOTE_SINGLE;default:return u.Type.PLAIN}}constructor(e={},{atLineStart:n,inCollection:r,inFlow:s,indent:i,lineStart:o,parent:a}={}){u._defineProperty(this,"parseNode",(c,l)=>{if(u.Node.atDocumentBoundary(this.src,l))return null;let f=new t(this,c),{props:m,type:d,valueStart:y}=f.parseProps(l),h=To(d,m),g=h.parse(f,y);if(h.range=new u.Range(l,g),g<=l&&(h.error=new Error("Node#parse consumed no characters"),h.error.parseEnd=g,h.error.source=h,h.range.end=l+1),f.nodeStartsCollection(h)){!h.error&&!f.atLineStart&&f.parent.type===u.Type.DOCUMENT&&(h.error=new u.YAMLSyntaxError(h,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let w=new xt(h);return g=w.parse(new t(f),g),w.range=new u.Range(l,g),w}return h}),this.atLineStart=n??(e.atLineStart||!1),this.inCollection=r??(e.inCollection||!1),this.inFlow=s??(e.inFlow||!1),this.indent=i??e.indent,this.lineStart=o??e.lineStart,this.parent=a??(e.parent||{}),this.root=e.root,this.src=e.src}nodeStartsCollection(e){let{inCollection:n,inFlow:r,src:s}=this;if(n||r)return!1;if(e instanceof ht)return!0;let i=e.range.end;return s[i]===` -`||s[i-1]===` -`?!1:(i=u.Node.endOfWhiteSpace(s,i),s[i]===":")}parseProps(e){let{inFlow:n,parent:r,src:s}=this,i=[],o=!1;e=this.atLineStart?u.Node.endOfIndent(s,e):u.Node.endOfWhiteSpace(s,e);let a=s[e];for(;a===u.Char.ANCHOR||a===u.Char.COMMENT||a===u.Char.TAG||a===` -`;){if(a===` -`){let l=e,f;do f=l+1,l=u.Node.endOfIndent(s,f);while(s[l]===` -`);let m=l-(f+this.indent),d=r.type===u.Type.SEQ_ITEM&&r.context.atLineStart;if(s[l]!=="#"&&!u.Node.nextNodeIsIndented(s[l],m,!d))break;this.atLineStart=!0,this.lineStart=f,o=!1,e=l}else if(a===u.Char.COMMENT){let l=u.Node.endOfLine(s,e+1);i.push(new u.Range(e,l)),e=l}else{let l=u.Node.endOfIdentifier(s,e+1);a===u.Char.TAG&&s[l]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e+1,l+13))&&(l=u.Node.endOfIdentifier(s,l+5)),i.push(new u.Range(e,l)),o=!0,e=u.Node.endOfWhiteSpace(s,l)}a=s[e]}o&&a===":"&&u.Node.atBlank(s,e+1,!0)&&(e-=1);let c=t.parseType(s,e,n);return{props:i,type:c,valueStart:e}}};function Mo(t){let e=[];t.indexOf("\r")!==-1&&(t=t.replace(/\r\n?/g,(s,i)=>(s.length>1&&e.push(i),` -`)));let n=[],r=0;do{let s=new Rn,i=new Fn({src:t});r=s.parse(i,r),n.push(s)}while(r{if(e.length===0)return!1;for(let i=1;in.join(`... -`),n}ts.parse=Mo});var qe=te(k=>{"use strict";var p=oe();function Co(t,e,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${e}#`)} -${e}${t}`:t}function Fe(t,e,n){return n?n.indexOf(` -`)===-1?`${t} #${n}`:`${t} -`+n.replace(/^/gm,`${e||""}#`):t}var j=class{};function ce(t,e,n){if(Array.isArray(t))return t.map((r,s)=>ce(r,String(s),n));if(t&&typeof t.toJSON=="function"){let r=n&&n.anchors&&n.anchors.get(t);r&&(n.onCreate=i=>{r.res=i,delete n.onCreate});let s=t.toJSON(e,n);return r&&n.onCreate&&n.onCreate(s),s}return(!n||!n.keep)&&typeof t=="bigint"?Number(t):t}var _=class extends j{constructor(e){super(),this.value=e}toJSON(e,n){return n&&n.keep?this.value:ce(this.value,e,n)}toString(){return String(this.value)}};function rs(t,e,n){let r=n;for(let s=e.length-1;s>=0;--s){let i=e[s];if(Number.isInteger(i)&&i>=0){let o=[];o[i]=r,r=o}else{let o={};Object.defineProperty(o,i,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=o}}return t.createNode(r,!1)}var os=t=>t==null||typeof t=="object"&&t[Symbol.iterator]().next().done,W=class t extends j{constructor(e){super(),p._defineProperty(this,"items",[]),this.schema=e}addIn(e,n){if(os(e))this.add(n);else{let[r,...s]=e,i=this.get(r,!0);if(i instanceof t)i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,rs(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn([e,...n]){if(n.length===0)return this.delete(e);let r=this.get(e,!0);if(r instanceof t)return r.deleteIn(n);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}getIn([e,...n],r){let s=this.get(e,!0);return n.length===0?!r&&s instanceof _?s.value:s:s instanceof t?s.getIn(n,r):void 0}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return!1;let n=e.value;return n==null||n instanceof _&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn([e,...n]){if(n.length===0)return this.has(e);let r=this.get(e,!0);return r instanceof t?r.hasIn(n):!1}setIn([e,...n],r){if(n.length===0)this.set(e,r);else{let s=this.get(e,!0);if(s instanceof t)s.setIn(n,r);else if(s===void 0&&this.schema)this.set(e,rs(this.schema,n,r));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}}toJSON(){return null}toString(e,{blockItem:n,flowChars:r,isMap:s,itemIndent:i},o,a){let{indent:c,indentStep:l,stringify:f}=e,m=this.type===p.Type.FLOW_MAP||this.type===p.Type.FLOW_SEQ||e.inFlow;m&&(i+=l);let d=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:d,indent:i,inFlow:m,type:null});let y=!1,h=!1,g=this.items.reduce((M,A,C)=>{let L;A&&(!y&&A.spaceBefore&&M.push({type:"comment",str:""}),A.commentBefore&&A.commentBefore.match(/^.*$/gm).forEach(Di=>{M.push({type:"comment",str:`#${Di}`})}),A.comment&&(L=A.comment),m&&(!y&&A.spaceBefore||A.commentBefore||A.comment||A.key&&(A.key.commentBefore||A.key.comment)||A.value&&(A.value.commentBefore||A.value.comment))&&(h=!0)),y=!1;let R=f(A,e,()=>L=null,()=>y=!0);return m&&!h&&R.includes(` -`)&&(h=!0),m&&CL.str);if(h||C.reduce((L,R)=>L+R.length+2,2)>t.maxFlowStringSingleLineLength){w=M;for(let L of C)w+=L?` -${l}${c}${L}`:` -`;w+=` -${c}${A}`}else w=`${M} ${C.join(" ")} ${A}`}else{let M=g.map(n);w=M.shift();for(let A of M)w+=A?` -${c}${A}`:` -`}return this.comment?(w+=` -`+this.comment.replace(/^/gm,`${c}#`),o&&o()):y&&a&&a(),w}};p._defineProperty(W,"maxFlowStringSingleLineLength",60);function Dt(t){let e=t instanceof _?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),Number.isInteger(e)&&e>=0?e:null}var le=class extends W{add(e){this.items.push(e)}delete(e){let n=Dt(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){let r=Dt(e);if(typeof r!="number")return;let s=this.items[r];return!n&&s instanceof _?s.value:s}has(e){let n=Dt(e);return typeof n=="number"&&ns.type==="comment"?s.str:`- ${s.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},n,r):JSON.stringify(this)}},ko=(t,e,n)=>e===null?"":typeof e!="object"?String(e):t instanceof j&&n&&n.doc?t.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(e),T=class t extends j{constructor(e,n=null){super(),this.key=e,this.value=n,this.type=t.Type.PAIR}get commentBefore(){return this.key instanceof j?this.key.commentBefore:void 0}set commentBefore(e){if(this.key==null&&(this.key=new _(null)),this.key instanceof j)this.key.commentBefore=e;else{let n="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(n)}}addToJSMap(e,n){let r=ce(this.key,"",e);if(n instanceof Map){let s=ce(this.value,r,e);n.set(r,s)}else if(n instanceof Set)n.add(r);else{let s=ko(this.key,r,e),i=ce(this.value,s,e);s in n?Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):n[s]=i}return n}toJSON(e,n){let r=n&&n.mapAsMap?new Map:{};return this.addToJSMap(n,r)}toString(e,n,r){if(!e||!e.doc)return JSON.stringify(this);let{indent:s,indentSeq:i,simpleKeys:o}=e.doc.options,{key:a,value:c}=this,l=a instanceof j&&a.comment;if(o){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(a instanceof W){let R="With simple keys, collection cannot be used as a key value";throw new Error(R)}}let f=!o&&(!a||l||(a instanceof j?a instanceof W||a.type===p.Type.BLOCK_FOLDED||a.type===p.Type.BLOCK_LITERAL:typeof a=="object")),{doc:m,indent:d,indentStep:y,stringify:h}=e;e=Object.assign({},e,{implicitKey:!f,indent:d+y});let g=!1,w=h(a,e,()=>l=null,()=>g=!0);if(w=Fe(w,e.indent,l),!f&&w.length>1024){if(o)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(e.allNullValues&&!o)return this.comment?(w=Fe(w,e.indent,this.comment),n&&n()):g&&!l&&r&&r(),e.inFlow&&!f?w:`? ${w}`;w=f?`? ${w} -${d}:`:`${w}:`,this.comment&&(w=Fe(w,e.indent,this.comment),n&&n());let M="",A=null;if(c instanceof j){if(c.spaceBefore&&(M=` -`),c.commentBefore){let R=c.commentBefore.replace(/^/gm,`${e.indent}#`);M+=` -${R}`}A=c.comment}else c&&typeof c=="object"&&(c=m.schema.createNode(c,!0));e.implicitKey=!1,!f&&!this.comment&&c instanceof _&&(e.indentAtStart=w.length+1),g=!1,!i&&s>=2&&!e.inFlow&&!f&&c instanceof le&&c.type!==p.Type.FLOW_SEQ&&!c.tag&&!m.anchors.getName(c)&&(e.indent=e.indent.substr(2));let C=h(c,e,()=>A=null,()=>g=!0),L=" ";return M||this.comment?L=`${M} -${e.indent}`:!f&&c instanceof W?(!(C[0]==="["||C[0]==="{")||C.includes(` -`))&&(L=` -${e.indent}`):C[0]===` -`&&(L=""),g&&!A&&r&&r(),Fe(w+L+C,e.indent,A)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Yt=(t,e)=>{if(t instanceof be){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof W){let n=0;for(let r of t.items){let s=Yt(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=Yt(t.key,e),r=Yt(t.value,e);return Math.max(n,r)}return 1},be=class t extends j{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return ce(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=Yt(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(be,"default",!0);function gt(t,e){let n=e instanceof _?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var dt=class extends W{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=gt(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=gt(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=gt(this.items,e),s=r&&r.value;return!n&&s instanceof _?s.value:s}has(e){return!!gt(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},as="<<",Ft=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof le||(n=new le,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new _(as),new le);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof dt))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},Po={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},Io={trueStr:"true",falseStr:"false"},vo={asBigInt:!1},_o={nullStr:"null"},Ne={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Un(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof _||(a=new _(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new _(t)}var cs="flow",qn="block",$t="quoted",ss=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==` -`);n=t[e+1]}return e};function qt(t,e,n,{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}){if(!s||s<0)return t;let c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;let l=[],f={},m=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?l.push(0):m=s-r);let d,y,h=!1,g=-1,w=-1,M=-1;n===qn&&(g=ss(t,g),g!==-1&&(m=g+c));for(let C;C=t[g+=1];){if(n===$t&&C==="\\"){switch(w=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}M=g}if(C===` -`)n===qn&&(g=ss(t,g)),m=g+c,d=void 0;else{if(C===" "&&y&&y!==" "&&y!==` -`&&y!==" "){let L=t[g+1];L&&L!==" "&&L!==` -`&&L!==" "&&(d=g)}if(g>=m)if(d)l.push(d),m=d+c,d=void 0;else if(n===$t){for(;y===" "||y===" ";)y=C,C=t[g+=1],h=!0;let L=g>M+1?g-2:w-1;if(f[L])return t;l.push(L),f[L]=!0,m=L+c,d=void 0}else h=!0}y=C}if(h&&a&&a(),l.length===0)return t;o&&o();let A=t.slice(0,l[0]);for(let C=0;Ct?Object.assign({indentAtStart:t},Ne.fold):Ne.fold,Ut=t=>/^(%|---|\.\.\.)/m.test(t);function Ro(t,e,n){if(!e||e<0)return!1;let r=e-n,s=t.length;if(s<=r)return!1;for(let i=0,o=0;ir)return!0;if(o=i+1,s-o<=r)return!1}return!0}function we(t,e){let{implicitKey:n}=e,{jsonEncoding:r,minMultiLineLength:s}=Ne.doubleQuoted,i=JSON.stringify(t);if(r)return i;let o=e.indent||(Ut(t)?" ":""),a="",c=0;for(let l=0,f=i[l];f;f=i[++l])if(f===" "&&i[l+1]==="\\"&&i[l+2]==="n"&&(a+=i.slice(c,l)+"\\ ",l+=1,c=l,f="\\"),f==="\\")switch(i[l+1]){case"u":{a+=i.slice(c,l);let m=i.substr(l+2,4);switch(m){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:m.substr(0,2)==="00"?a+="\\x"+m.substr(2):a+=i.substr(l,6)}l+=5,c=l+1}break;case"n":if(n||i[l+2]==='"'||i.length";if(!n)return l+` -`;let f="",m="";if(n=n.replace(/[\n\t ]*$/,y=>{let h=y.indexOf(` -`);return h===-1?l+="-":(n===y||h!==y.length-1)&&(l+="+",i&&i()),m=y.replace(/\n$/,""),""}).replace(/^[\n ]*/,y=>{y.indexOf(" ")!==-1&&(l+=a);let h=y.match(/ +$/);return h?(f=y.slice(0,-h[0].length),h[0]):(f=y,"")}),m&&(m=m.replace(/\n+(?!\n|$)/g,`$&${o}`)),f&&(f=f.replace(/\n+/g,`$&${o}`)),t&&(l+=" #"+t.replace(/ ?[\r\n]+/g," "),s&&s()),!n)return`${l}${a} -${o}${m}`;if(c)return n=n.replace(/\n+/g,`$&${o}`),`${l} -${o}${f}${n}${m}`;n=n.replace(/\n+/g,` -$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);let d=qt(`${f}${n}${m}`,o,qn,Ne.fold);return`${l} -${o}${d}`}function xo(t,e,n,r){let{comment:s,type:i,value:o}=t,{actualString:a,implicitKey:c,indent:l,inFlow:f}=e;if(c&&/[\n[\]{},]/.test(o)||f&&/[[\]{},]/.test(o))return we(o,e);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return c||f||o.indexOf(` -`)===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?ls(o,e):we(o,e):Bt(t,e,n,r);if(!c&&!f&&i!==p.Type.PLAIN&&o.indexOf(` -`)!==-1)return Bt(t,e,n,r);if(l===""&&Ut(o))return e.forceBlockIndent=!0,Bt(t,e,n,r);let m=o.replace(/\n+/g,`$& -${l}`);if(a){let{tags:y}=e.doc.schema;if(typeof Un(m,y,y.scalarFallback).value!="string")return we(o,e)}let d=c?m:qt(m,l,cs,Kn(e));return s&&!f&&(d.indexOf(` -`)!==-1||s.indexOf(` -`)!==-1)?(n&&n(),Co(d,l,s)):d}function Do(t,e,n,r){let{defaultType:s}=Ne,{implicitKey:i,inFlow:o}=e,{type:a,value:c}=t;typeof c!="string"&&(c=String(c),t=Object.assign({},t,{value:c}));let l=m=>{switch(m){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:return Bt(t,e,n,r);case p.Type.QUOTE_DOUBLE:return we(c,e);case p.Type.QUOTE_SINGLE:return ls(c,e);case p.Type.PLAIN:return xo(t,e,n,r);default:return null}};(a!==p.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)||(i||o)&&(a===p.Type.BLOCK_FOLDED||a===p.Type.BLOCK_LITERAL))&&(a=p.Type.QUOTE_DOUBLE);let f=l(a);if(f===null&&(f=l(s),f===null))throw new Error(`Unsupported default string type ${s}`);return f}function Yo({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let o=e-(s.length-i-1);for(;o-- >0;)s+="0"}return s}function fs(t,e){let n,r;switch(e.type){case p.Type.FLOW_MAP:n="}",r="flow map";break;case p.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:t.push(new p.YAMLSemanticError(e,"Not a flow collection!?"));return}let s;for(let i=e.items.length-1;i>=0;--i){let o=e.items[i];if(!o||o.type!==p.Type.COMMENT){s=o;break}}if(s&&s.char!==n){let i=`Expected ${r} to end with ${n}`,o;typeof s.offset=="number"?(o=new p.YAMLSemanticError(e,i),o.offset=s.offset+1):(o=new p.YAMLSemanticError(s,i),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),t.push(o)}}function us(t,e){let n=e.context.src[e.range.start-1];if(n!==` -`&&n!==" "&&n!==" "){let r="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,r))}}function ps(t,e){let n=String(e),r=n.substr(0,8)+"..."+n.substr(-8);return new p.YAMLSemanticError(t,`The "${r}" key is too long`)}function ms(t,e){for(let{afterKey:n,before:r,comment:s}of e){let i=t.items[r];i?(n&&i.value&&(i=i.value),s===void 0?(n||!i.commentBefore)&&(i.spaceBefore=!0):i.commentBefore?i.commentBefore+=` -`+s:i.commentBefore=s):s!==void 0&&(t.comment?t.comment+=` -`+s:t.comment=s)}}function Vn(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function $o(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function Bo(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return $o(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function is(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof W?a:new _(a)}let i=Vn(t,e);return typeof i=="string"&&s.length>0?Un(i,s,r.scalarFallback):null}function Fo({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function qo(t,e,n){try{let r=is(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=Fo(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=is(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var Uo=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Ko(t,e){let n={before:[],after:[]},r=!1,s=!1,i=Uo(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function Vo(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new be(a);return n._cstAliases.push(c),c}let i=Bo(t,e);if(i)return qo(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=Vn(t,e);return Un(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function fe(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Ko(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=Vo(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(` -`);o&&(i.commentBefore=i.commentBefore?`${i.commentBefore} -${o}`:o);let a=n.after.join(` -`);a&&(i.comment=i.comment?`${i.comment} -${a}`:a)}return e.resolved=i}function jo(t,e){if(e.type!==p.Type.MAP&&e.type!==p.Type.FLOW_MAP){let o=`A ${e.type} node cannot be resolved as a mapping`;return t.errors.push(new p.YAMLSyntaxError(e,o)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_MAP?Ho(t,e):Go(t,e),s=new dt;s.items=r,ms(s,n);let i=!1;for(let o=0;o{if(f instanceof be){let{type:m}=f.source;return m===p.Type.MAP||m===p.Type.FLOW_MAP?!1:l="Merge nodes aliases can only point to maps"}return l="Merge nodes can only have Alias nodes as values"}),l&&t.errors.push(new p.YAMLSemanticError(e,l))}else for(let c=o+1;c{if(r.length===0)return!1;let{start:s}=r[0];if(e&&s>e.valueRange.start||n[s]!==p.Char.COMMENT)return!1;for(let i=t;i0){c=new p.PlainValue(p.Type.PLAIN,[]),c.context={parent:a,src:a.context.src};let f=a.range.start+1;if(c.range={start:f,end:f},c.valueRange={start:f,end:f},typeof a.range.origStart=="number"){let m=a.range.origStart+1;c.range.origStart=c.range.origEnd=m,c.valueRange.origStart=c.valueRange.origEnd=m}}let l=new T(s,fe(t,c));Qo(a,l),r.push(l),s&&typeof i=="number"&&a.range.start>i+1024&&t.errors.push(ps(e,s)),s=void 0,i=null}break;default:s!==void 0&&r.push(new T(s)),s=fe(t,a),i=a.range.start,a.error&&t.errors.push(a.error);e:for(let c=o+1;;++c){let l=e.items[c];switch(l&&l.type){case p.Type.BLANK_LINE:case p.Type.COMMENT:continue e;case p.Type.MAP_VALUE:break e;default:{let f="Implicit map keys need to be followed by map values";t.errors.push(new p.YAMLSemanticError(a,f));break e}}}if(a.valueRangeContainsNewline){let c="Implicit map keys need to be on a single line";t.errors.push(new p.YAMLSemanticError(a,c))}}}return s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function Ho(t,e){let n=[],r=[],s,i=!1,o="{";for(let a=0;ai instanceof T&&i.key instanceof W)){let i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,i))}return e.resolved=s,s}function Xo(t,e){let n=[],r=[];for(let s=0;so+1024&&t.errors.push(ps(e,i));let{src:h}=c.context;for(let g=o;g{"use strict";var Q=oe(),O=qe(),Zo={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c1){let o="Each pair must have its own sequence indicator";throw new Q.YAMLSemanticError(e,o)}let i=s.items[0]||new O.Pair;s.commentBefore&&(i.commentBefore=i.commentBefore?`${s.commentBefore} -${i.commentBefore}`:s.commentBefore),s.comment&&(i.comment=i.comment?`${s.comment} -${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function ds(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var ea={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:gs,createNode:ds},Ue=class t extends O.YAMLSeq{constructor(){super(),Q._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),Q._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),Q._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),Q._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),Q._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};Q._defineProperty(Ue,"tag","tag:yaml.org,2002:omap");function ta(t,e){let n=gs(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new Q.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new Ue,n)}function na(t,e,n){let r=ds(t,e,n),s=new Ue;return s.items=r.items,s}var ra={identify:t=>t instanceof Map,nodeClass:Ue,default:!1,tag:"tag:yaml.org,2002:omap",resolve:ta,createNode:na},Ke=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};Q._defineProperty(Ke,"tag","tag:yaml.org,2002:set");function sa(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new Q.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new Ke,n)}function ia(t,e,n){let r=new Ke;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var oa={identify:t=>t instanceof Set,nodeClass:Ke,default:!1,tag:"tag:yaml.org,2002:set",resolve:sa,createNode:ia},jn=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},ys=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},aa={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>jn(e,n.replace(/_/g,"")),stringify:ys},ca={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>jn(e,n.replace(/_/g,"")),stringify:ys},la={identify:t=>t 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:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=jn(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Wn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function Qn(t,e){Wn(!1)&&console.warn(e?`${e}: ${t}`:t)}function fa(t){if(Wn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");Qn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var hs={};function ua(t,e){if(!hs[t]&&Wn(!0)){hs[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",Qn(n,"DeprecationWarning")}}z.binary=Zo;z.floatTime=ca;z.intTime=aa;z.omap=ra;z.pairs=ea;z.set=oa;z.timestamp=la;z.warn=Qn;z.warnFileDeprecation=fa;z.warnOptionDeprecation=ua});var zn=te(Ps=>{"use strict";var jt=oe(),E=qe(),D=Gn();function pa(t,e,n){let r=new E.YAMLMap(t);if(e instanceof Map)for(let[s,i]of e)r.items.push(t.createPair(s,i,n));else if(e&&typeof e=="object")for(let s of Object.keys(e))r.items.push(t.createPair(s,e[s],n));return typeof t.sortMapEntries=="function"&&r.items.sort(t.sortMapEntries),r}var Et={createNode:pa,default:!0,nodeClass:E.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:E.resolveMap};function ma(t,e,n){let r=new E.YAMLSeq(t);if(e&&e[Symbol.iterator])for(let s of e){let i=t.createNode(s,n.wrapScalars,null,n);r.items.push(i)}return r}var Wt={createNode:ma,default:!0,nodeClass:E.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:E.resolveSeq},ha={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),E.stringifyString(t,e,n,r)},options:E.strOptions},Jn=[Et,Wt,ha],Qt=t=>typeof t=="bigint"||Number.isInteger(t),Xn=(t,e,n)=>E.intOptions.asBigInt?BigInt(t):parseInt(e,n);function ws(t,e,n){let{value:r}=t;return Qt(r)&&r>=0?n+r.toString(e):E.stringifyNumber(t)}var bs={identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},Ns={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>t[0]==="t"||t[0]==="T",options:E.boolOptions,stringify:({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr},Os={identify:t=>Qt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(t,e)=>Xn(t,e,8),options:E.intOptions,stringify:t=>ws(t,8,"0o")},As={identify:Qt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:t=>Xn(t,t,10),options:E.intOptions,stringify:E.stringifyNumber},Ls={identify:t=>Qt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(t,e)=>Xn(t,e,16),options:E.intOptions,stringify:t=>ws(t,16,"0x")},Ts={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},Ms={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify:({value:t})=>Number(t).toExponential()},Cs={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(t,e,n){let r=e||n,s=new E.Scalar(parseFloat(t));return r&&r[r.length-1]==="0"&&(s.minFractionDigits=r.length),s},stringify:E.stringifyNumber},ga=Jn.concat([bs,Ns,Os,As,Ls,Ts,Ms,Cs]),Es=t=>typeof t=="bigint"||Number.isInteger(t),Kt=({value:t})=>JSON.stringify(t),ks=[Et,Wt,{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify:Kt},{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Kt},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:Kt},{identify:Es,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:t=>E.intOptions.asBigInt?BigInt(t):parseInt(t,10),stringify:({value:t})=>Es(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Kt}];ks.scalarFallback=t=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`)};var Ss=({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr,yt=t=>typeof t=="bigint"||Number.isInteger(t);function Vt(t,e,n){let r=e.replace(/_/g,"");if(E.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}let i=BigInt(r);return t==="-"?BigInt(-1)*i:i}let s=parseInt(r,n);return t==="-"?-1*s:s}function Hn(t,e,n){let{value:r}=t;if(yt(r)){let s=r.toString(e);return r<0?"-"+n+s.substr(1):n+s}return E.stringifyNumber(t)}var da=Jn.concat([{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:E.boolOptions,stringify:Ss},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:E.boolOptions,stringify:Ss},{identify:yt,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(t,e,n)=>Vt(e,n,2),stringify:t=>Hn(t,2,"0b")},{identify:yt,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(t,e,n)=>Vt(e,n,8),stringify:t=>Hn(t,8,"0")},{identify:yt,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(t,e,n)=>Vt(e,n,10),stringify:E.stringifyNumber},{identify:yt,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(t,e,n)=>Vt(e,n,16),stringify:t=>Hn(t,16,"0x")},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify:({value:t})=>Number(t).toExponential()},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(t,e){let n=new E.Scalar(parseFloat(t.replace(/_/g,"")));if(e){let r=e.replace(/_/g,"");r[r.length-1]==="0"&&(n.minFractionDigits=r.length)}return n},stringify:E.stringifyNumber}],D.binary,D.omap,D.pairs,D.set,D.intTime,D.floatTime,D.timestamp),ya={core:ga,failsafe:Jn,json:ks,yaml11:da},Ea={binary:D.binary,bool:Ns,float:Cs,floatExp:Ms,floatNaN:Ts,floatTime:D.floatTime,int:As,intHex:Ls,intOct:Os,intTime:D.intTime,map:Et,null:bs,omap:D.omap,pairs:D.pairs,seq:Wt,set:D.set,timestamp:D.timestamp};function Sa(t,e,n){if(e){let r=n.filter(i=>i.tag===e),s=r.find(i=>!i.format)||r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return n.find(r=>(r.identify&&r.identify(t)||r.class&&t instanceof r.class)&&!r.format)}function wa(t,e,n){if(t instanceof E.Node)return t;let{defaultPrefix:r,onTagObj:s,prevObjects:i,schema:o,wrapScalars:a}=n;e&&e.startsWith("!!")&&(e=r+e.slice(2));let c=Sa(t,e,o.tags);if(!c){if(typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object")return a?new E.Scalar(t):t;c=t instanceof Map?Et:t[Symbol.iterator]?Wt:Et}s&&(s(c),delete n.onTagObj);let l={value:void 0,node:void 0};if(t&&typeof t=="object"&&i){let f=i.get(t);if(f){let m=new E.Alias(f);return n.aliasNodes.push(m),m}l.value=t,i.set(t,l)}return l.node=c.createNode?c.createNode(n.schema,t,n):a?new E.Scalar(t):t,e&&l.node instanceof E.Node&&(l.node.tag=e),l.node}function ba(t,e,n,r){let s=t[r.replace(/\W/g,"")];if(!s){let i=Object.keys(t).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${i}`)}if(Array.isArray(n))for(let i of n)s=s.concat(i);else typeof n=="function"&&(s=n(s.slice()));for(let i=0;iJSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${o}"; use one of ${c}`)}s[i]=a}}return s}var Na=(t,e)=>t.keye.key?1:0,St=class t{constructor({customTags:e,merge:n,schema:r,sortMapEntries:s,tags:i}){this.merge=!!n,this.name=r,this.sortMapEntries=s===!0?Na:s||null,!e&&i&&D.warnOptionDeprecation("tags","customTags"),this.tags=ba(ya,Ea,e||i,r)}createNode(e,n,r,s){let i={defaultPrefix:t.defaultPrefix,schema:this,wrapScalars:n},o=s?Object.assign(s,i):i;return wa(e,r,o)}createPair(e,n,r){r||(r={wrapScalars:!0});let s=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new E.Pair(s,i)}};jt._defineProperty(St,"defaultPrefix",jt.defaultTagPrefix);jt._defineProperty(St,"defaultTags",jt.defaultTags);Ps.Schema=St});var Rs=te(Xt=>{"use strict";var Y=oe(),S=qe(),Is=zn(),Oa={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Aa={get binary(){return S.binaryOptions},set binary(t){Object.assign(S.binaryOptions,t)},get bool(){return S.boolOptions},set bool(t){Object.assign(S.boolOptions,t)},get int(){return S.intOptions},set int(t){Object.assign(S.intOptions,t)},get null(){return S.nullOptions},set null(t){Object.assign(S.nullOptions,t)},get str(){return S.strOptions},set str(t){Object.assign(S.strOptions,t)}},_s={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Y.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]}};function vs(t,e){if((t.version||t.options.version)==="1.0"){let s=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(s)return"!"+s[1];let i=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return i?`!${i[1]}/${i[2]}`:`!${e.replace(/^tag:/,"")}`}let n=t.tagPrefixes.find(s=>e.indexOf(s.prefix)===0);if(!n){let s=t.getDefaults().tagPrefixes;n=s&&s.find(i=>e.indexOf(i.prefix)===0)}if(!n)return e[0]==="!"?e:`!<${e}>`;let r=e.substr(n.prefix.length).replace(/[!,[\]{}]/g,s=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[s]);return n.handle+r}function La(t,e){if(e instanceof S.Alias)return S.Alias;if(e.tag){let s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)||s[0]}let n,r;if(e instanceof S.Scalar){r=e.value;let s=t.filter(i=>i.identify&&i.identify(r)||i.class&&r instanceof i.class);n=s.find(i=>i.format===e.format)||s.find(i=>!i.format)}else r=e,n=t.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){let s=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function Ta(t,e,{anchors:n,doc:r}){let s=[],i=r.anchors.getName(t);return i&&(n[i]=t,s.push(`&${i}`)),t.tag?s.push(vs(r,t.tag)):e.default||s.push(vs(r,e.tag)),s.join(" ")}function Gt(t,e,n,r){let{anchors:s,schema:i}=e.doc,o;if(!(t instanceof S.Node)){let l={aliasNodes:[],onTagObj:f=>o=f,prevObjects:new Map};t=i.createNode(t,!0,null,l);for(let f of l.aliasNodes){f.source=f.source.node;let m=s.getName(f.source);m||(m=s.newName(),s.map[m]=f.source)}}if(t instanceof S.Pair)return t.toString(e,n,r);o||(o=La(i.tags,t));let a=Ta(t,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let c=typeof o.stringify=="function"?o.stringify(t,e,n,r):t instanceof S.Scalar?S.stringifyString(t,e,n,r):t.toString(e,n,r);return a?t instanceof S.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a} -${e.indent}${c}`:c}var Zn=class t{static validAnchorNode(e){return e instanceof S.Scalar||e instanceof S.YAMLSeq||e instanceof S.YAMLMap}constructor(e){Y._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,n){return this.setAnchor(e,n),new S.Alias(e)}createMergePair(...e){let n=new S.Merge;return n.value.items=e.map(r=>{if(r instanceof S.Alias){if(r.source instanceof S.YAMLMap)return r}else if(r instanceof S.YAMLMap)return this.createAlias(r);throw new Error("Merge sources must be Map nodes or their Aliases")}),n}getName(e){let{map:n}=this;return Object.keys(n).find(r=>n[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let n=Object.keys(this.map);for(let r=1;;++r){let s=`${e}${r}`;if(!n.includes(s))return s}}resolveNodes(){let{map:e,_cstAliases:n}=this;Object.keys(e).forEach(r=>{e[r]=e[r].resolved}),n.forEach(r=>{r.source=r.source.resolved}),delete this._cstAliases}setAnchor(e,n){if(e!=null&&!t.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,s=e&&Object.keys(r).find(i=>r[i]===e);if(s)if(n)s!==n&&(delete r[s],r[n]=e);else return s;else{if(!n){if(!e)return null;n=this.newName()}r[n]=e}return n}},Ht=(t,e)=>{if(t&&typeof t=="object"){let{tag:n}=t;t instanceof S.Collection?(n&&(e[n]=!0),t.items.forEach(r=>Ht(r,e))):t instanceof S.Pair?(Ht(t.key,e),Ht(t.value,e)):t instanceof S.Scalar&&n&&(e[n]=!0)}return e},Ma=t=>Object.keys(Ht(t,{}));function Ca(t,e){let n={before:[],after:[]},r,s=!1;for(let i of e)if(i.valueRange){if(r!==void 0){let a="Document contains trailing content not separated by a ... or --- line";t.errors.push(new Y.YAMLSyntaxError(i,a));break}let o=S.resolveNode(t,i);s&&(o.spaceBefore=!0,s=!1),r=o}else i.comment!==null?(r===void 0?n.before:n.after).push(i.comment):i.type===Y.Type.BLANK_LINE&&(s=!0,r===void 0&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join(` -`),n.before=[]));if(t.contents=r||null,!r)t.comment=n.before.concat(n.after).join(` -`)||null;else{let i=n.before.join(` -`);if(i){let o=r instanceof S.Collection&&r.items[0]?r.items[0]:r;o.commentBefore=o.commentBefore?`${i} -${o.commentBefore}`:i}t.comment=n.after.join(` -`)||null}}function ka({tagPrefixes:t},e){let[n,r]=e.parameters;if(!n||!r){let s="Insufficient parameters given for %TAG directive";throw new Y.YAMLSemanticError(e,s)}if(t.some(s=>s.handle===n)){let s="The %TAG directive must only be given at most once per handle in the same document.";throw new Y.YAMLSemanticError(e,s)}return{handle:n,prefix:r}}function Pa(t,e){let[n]=e.parameters;if(e.name==="YAML:1.0"&&(n="1.0"),!n){let r="Insufficient parameters given for %YAML directive";throw new Y.YAMLSemanticError(e,r)}if(!_s[n]){let s=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${n}`;t.warnings.push(new Y.YAMLWarning(e,s))}return n}function Ia(t,e,n){let r=[],s=!1;for(let i of e){let{comment:o,name:a}=i;switch(a){case"TAG":try{t.tagPrefixes.push(ka(t,i))}catch(c){t.errors.push(c)}s=!0;break;case"YAML":case"YAML:1.0":if(t.version){let c="The %YAML directive must only be given at most once per document.";t.errors.push(new Y.YAMLSemanticError(i,c))}try{t.version=Pa(t,i)}catch(c){t.errors.push(c)}s=!0;break;default:if(a){let c=`YAML only supports %TAG and %YAML directives, and not %${a}`;t.warnings.push(new Y.YAMLWarning(i,c))}}o&&r.push(o)}if(n&&!s&&(t.version||n.version||t.options.version)==="1.1"){let i=({handle:o,prefix:a})=>({handle:o,prefix:a});t.tagPrefixes=n.tagPrefixes.map(i),t.version=n.version}t.commentBefore=r.join(` -`)||null}function Ve(t){if(t instanceof S.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Jt=class t{constructor(e){this.anchors=new Zn(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Ve(this.contents),this.contents.add(e)}addIn(e,n){Ve(this.contents),this.contents.addIn(e,n)}delete(e){return Ve(this.contents),this.contents.delete(e)}deleteIn(e){return S.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):(Ve(this.contents),this.contents.deleteIn(e))}getDefaults(){return t.defaults[this.version]||t.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof S.Collection?this.contents.get(e,n):void 0}getIn(e,n){return S.isEmptyPath(e)?!n&&this.contents instanceof S.Scalar?this.contents.value:this.contents:this.contents instanceof S.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof S.Collection?this.contents.has(e):!1}hasIn(e){return S.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof S.Collection?this.contents.hasIn(e):!1}set(e,n){Ve(this.contents),this.contents.set(e,n)}setIn(e,n){S.isEmptyPath(e)?this.contents=n:(Ve(this.contents),this.contents.setIn(e,n))}setSchema(e,n){if(!e&&!n&&this.schema)return;typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(n)&&(this.options.customTags=n);let r=Object.assign({},this.getDefaults(),this.options);this.schema=new Is.Schema(r)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:s=[],directivesEndMarker:i,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),Ia(this,r,n),i&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],Ca(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let c of this.errors)c instanceof Y.YAMLError&&c.makePretty();for(let c of this.warnings)c instanceof Y.YAMLError&&c.makePretty()}return this}listNonDefaultTags(){return Ma(this.contents).filter(e=>e.indexOf(Is.Schema.defaultPrefix)!==0)}setTagPrefix(e,n){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(n){let r=this.tagPrefixes.find(s=>s.handle===e);r?r.prefix=n:this.tagPrefixes.push({handle:e,prefix:n})}else this.tagPrefixes=this.tagPrefixes.filter(r=>r.handle!==e)}toJSON(e,n){let{keepBlobsInJSON:r,mapAsMap:s,maxAliasCount:i}=this.options,o=r&&(typeof e!="string"||!(this.contents instanceof S.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!s,maxAliasCount:i,stringify:Gt},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map(f=>[this.anchors.map[f],{alias:[],aliasCount:0,count:1}])));let l=S.toJSON(this.contents,e,a);if(typeof n=="function"&&a.anchors)for(let{count:f,res:m}of a.anchors.values())n(m,f);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let c=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();let n=[],r=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),n.push(c),r=!0}let s=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:l})=>{s.some(f=>f.indexOf(l)===0)&&(n.push(`%TAG ${c} ${l}`),r=!0)}),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:Gt},o=!1,a=null;if(this.contents){this.contents instanceof S.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,a=this.contents.comment);let c=a?null:()=>o=!0,l=Gt(this.contents,i,()=>a=null,c);n.push(S.addComment(l,"",a))}else this.contents!==void 0&&n.push(Gt(this.contents,i));return this.comment&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join(` -`)+` -`}};Y._defineProperty(Jt,"defaults",_s);Xt.Document=Jt;Xt.defaultOptions=Oa;Xt.scalarOptions=Aa});var Ys=te(Ds=>{"use strict";var er=ns(),Oe=Rs(),va=zn(),_a=oe(),Ra=Gn();qe();function xa(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Oe.Document.defaults[Oe.defaultOptions.version],Oe.defaultOptions);return new va.Schema(r).createNode(t,e,n)}var je=class extends Oe.Document{constructor(e){super(Object.assign({},Oe.defaultOptions,e))}};function Da(t,e){let n=[],r;for(let s of er.parse(t)){let i=new je(e);i.parse(s,r),n.push(i),r=i}return n}function xs(t,e){let n=er.parse(t),r=new je(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new _a.YAMLSemanticError(n[1],s))}return r}function Ya(t,e){let n=xs(t,e);if(n.warnings.forEach(r=>Ra.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function $a(t,e){let n=new je(e);return n.contents=t,String(n)}var Ba={createNode:xa,defaultOptions:Oe.defaultOptions,Document:je,parse:Ya,parseAllDocuments:Da,parseCST:er.parse,parseDocument:xs,scalarOptions:Oe.scalarOptions,stringify:$a};Ds.YAML=Ba});var tr=te((nf,$s)=>{$s.exports=Ys().YAML});var Bs=te(G=>{"use strict";var We=qe(),Qe=oe();G.findPair=We.findPair;G.parseMap=We.resolveMap;G.parseSeq=We.resolveSeq;G.stringifyNumber=We.stringifyNumber;G.stringifyString=We.stringifyString;G.toJSON=We.toJSON;G.Type=Qe.Type;G.YAMLError=Qe.YAMLError;G.YAMLReferenceError=Qe.YAMLReferenceError;G.YAMLSemanticError=Qe.YAMLSemanticError;G.YAMLSyntaxError=Qe.YAMLSyntaxError;G.YAMLWarning=Qe.YAMLWarning});var gr={};yr(gr,{__parsePrettierYamlConfig:()=>sc,languages:()=>Xr,options:()=>zr,parsers:()=>hr,printers:()=>rc});var Vi=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},At=Vi;var Me="string",ze="array",Ze="cursor",et="indent",Ce="align",tt="trim",ke="group",Pe="fill",ge="if-break",nt="indent-if-break",Ie="line-suffix",rt="line-suffix-boundary",Z="line",st="label",ve="break-parent",Lt=new Set([Ze,et,Ce,tt,ke,Pe,ge,nt,Ie,rt,Z,st,ve]);var ji=(t,e,n)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},x=ji;function Wi(t){if(typeof t=="string")return Me;if(Array.isArray(t))return ze;if(!t)return;let{type:e}=t;if(Lt.has(e))return e}var _e=Wi;var Qi=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Gi(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(_e(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=Qi([...Lt].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${r}.`}var pn=class extends Error{name="InvalidDocError";constructor(e){super(Gi(e)),this.doc=e}},mn=pn;function Ji(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(_e(i)){case ze:return e(i.map(r));case Pe:return e({...i,parts:i.parts.map(r)});case ge:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case ke:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case Ce:case et:case nt:case st:case Ie:return e({...i,contents:r(i.contents)});case Me:case Ze:case tt:case rt:case Z:case ve:return e(i);default:throw new mn(i)}}}function Er(t,e=it){return Ji(t,n=>typeof n=="string"?P(e,n.split(` -`)):n)}var hn=()=>{},de=hn,gn=hn,Sr=hn;function ot(t,e){return de(e),{type:Ce,contents:e,n:t}}function Re(t,e={}){return de(t),gn(e.expandedStates,!0),{type:ke,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function dn(t){return ot(Number.NEGATIVE_INFINITY,t)}function wr(t){return ot({type:"root"},t)}function br(t){return ot(-1,t)}function yn(t,e){return Re(t[0],{...e,expandedStates:t})}function Tt(t){return Sr(t),{type:Pe,parts:t}}function at(t,e="",n={}){return de(t),e!==""&&de(e),{type:ge,breakContents:t,flatContents:e,groupId:n.groupId}}function Nr(t){return de(t),{type:Ie,contents:t}}var Mt={type:ve};var Xi={type:Z,hard:!0},zi={type:Z,hard:!0,literal:!0},ne={type:Z},Ct={type:Z,soft:!0},N=[Xi,Mt],it=[zi,Mt];function P(t,e){de(t),gn(e);let n=[];for(let r=0;r{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&o{let s=await r(e.originalText,{parser:"json"});return s?[s,N]:void 0}}Lr.getVisitorKeys=()=>[];var Tr=Lr;var ct=null;function lt(t){if(ct!==null&&typeof ct.property){let e=ct;return ct=lt.prototype=null,e}return ct=lt.prototype=t??Object.create(null),new lt}var to=10;for(let t=0;t<=to;t++)lt();function bn(t){return lt(t)}function no(t,e="type"){bn(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var Mr=no;var ro=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([t,e])=>[t,[...e,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),Cr=ro;var so=Mr(Cr),kr=so;function xe(t){return t.position.start.offset}function Pr(t){return t.position.end.offset}var Ir="format";var vr=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*?(?:\n|$)/u,_r=/^\s*#[^\S\n]*@(?:format|prettier)\s*?(?:\n|$)/u,Rr=/^\s*@(?:format|prettier)\s*$/u;function xr(t){return Rr.test(t)}function Dr(t){return _r.test(t)}function Yr(t){return vr.test(t)}function $r(t){return`# @${Ir} - -${t}`}function io(t){return Array.isArray(t)&&t.length>0}var De=io;function K(t,e){return typeof(t==null?void 0:t.type)=="string"&&(!e||e.includes(t.type))}function Nn(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>Nn(r,e,t))}:t,n)}function Ye(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function Fr(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;si===0&&i===o.length-1?s:i!==0&&i!==o.length-1?s.trim():i===0?s.trimEnd():s.trimStart());return n.proseWrap==="preserve"?r.map(s=>s.length===0?[]:[s]):r.map(s=>s.length===0?[]:Ur(s)).reduce((s,i,o)=>o!==0&&r[o-1].length>0&&i.length>0&&!(t==="quoteDouble"&&x(!1,x(!1,s,-1),-1).endsWith("\\"))?[...s.slice(0,-1),[...x(!1,s,-1),...i]]:[...s,i],[]).map(s=>n.proseWrap==="never"?[s.join(" ")]:s)}function Vr(t,{parentIndent:e,isLastDescendant:n,options:r}){let s=t.position.start.line===t.position.end.line?"":r.originalText.slice(t.position.start.offset,t.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1],i;if(t.indent===null){let c=s.match(/^(? *)[^\n\r ]/mu);i=c?c.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else i=t.indent-1+e;let o=s.split(` -`).map(c=>c.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return a(o.map(c=>c.length===0?[]:[c]));return a(o.map(c=>c.length===0?[]:Ur(c)).reduce((c,l,f)=>f!==0&&o[f-1].length>0&&l.length>0&&!/^\s/u.test(l[0])&&!/^\s|\s$/u.test(x(!1,c,-1))?[...c.slice(0,-1),[...x(!1,c,-1),...l]]:[...c,l],[]).map(c=>c.reduce((l,f)=>l.length>0&&/\s$/u.test(x(!1,l,-1))?[...l.slice(0,-1),x(!1,l,-1)+" "+f]:[...l,f],[])).map(c=>r.proseWrap==="never"?[c.join(" ")]:c));function a(c){if(t.chomping==="keep")return x(!1,c,-1).length===0?c.slice(0,-1):c;let l=0;for(let f=c.length-1;f>=0&&c[f].length===0;f--)l++;return l===0?c:l>=2&&!n?c.slice(0,-(l-1)):c.slice(0,-l)}}function ft(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var An=new WeakMap;function vt(t,e){let{node:n,root:r}=t,s;return An.has(r)?s=An.get(r):(s=new Set,An.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),Fr(n,e)&&!Ln(t.parent))?Ct:""}function Ln(t){return I(t)&&!K(t,["documentHead","documentBody","flowMapping","flowSequence"])}function v(t,e){return ot(" ".repeat(t),e)}function ao(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=Pt(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),On(r)&&o.push(" ",n("indicatorComment"));let a=Vr(r,{parentIndent:s,isLastDescendant:i,options:e}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(Tt(P(ne,f))),l!==a.length-1?c.push(f.length===0?N:wr(it)):r.chomping==="keep"&&i&&c.push(dn(f.length===0?N:it));return r.indent===null?o.push(br(v(e.tabWidth,c))):o.push(dn(v(r.indent-1+s,c))),o}var jr=ao;function _t(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=Ct;s&&r.children.length>0&&e.bracketSpacing&&(a=ne);let c=x(!1,r.children,-1),l=(c==null?void 0:c.type)==="flowMappingItem"&&$e(c.key)&&$e(c.value);return[i,v(e.tabWidth,[a,co(t,e,n),e.trailingComma==="none"?"":at(","),I(r)?[N,P(N,t.map(n,"endComments"))]:""]),l?"":a,o]}function co(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[n(),r?"":[",",ne,s.position.start.line!==i.position.start.line?vt(t,e.originalText):""]],"children")}function lo(t,e,n){var M;let{node:r,parent:s}=t,{key:i,value:o}=r,a=$e(i),c=$e(o);if(a&&c)return": ";let l=n("key"),f=fo(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&Tn(i.content,e)&&!V(i.content)&&((M=s.tag)==null?void 0:M.value)!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",v(2,l)];let m=n("value");if(a)return[": ",v(2,m)];if(ee(o)||!ft(i.content))return["? ",v(2,l),N,...t.map(()=>[n(),N],"value","leadingComments"),": ",v(2,m)];if(uo(i.content)&&!ee(i.content)&&!ie(i.content)&&!V(i.content)&&!I(i)&&!ee(o.content)&&!ie(o.content)&&!I(o)&&Tn(o.content,e))return[l,f,": ",m];let d=Symbol("mappingKey"),y=Re([at("? "),Re(v(2,l),{id:d})]),h=[N,": ",v(2,m)],g=[f,":"];I(o)&&o.content&&K(o.content,["flowMapping","flowSequence"])&&o.content.children.length===0?g.push(" "):ee(o.content)||I(o)&&o.content&&!K(o.content,["mapping","sequence"])||s.type==="mapping"&&V(i.content)&&ft(o.content)||K(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?g.push(N):o.content?g.push(ne):V(o)&&g.push(" "),g.push(m);let w=v(e.tabWidth,g);return Tn(i.content,e)&&!ee(i.content)&&!ie(i.content)&&!I(i)?yn([[l,w]]):yn([[y,at(h,w,{groupId:d})]])}function Tn(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/mu.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` -`);case"always":return!/[\n ]/u.test(t.value);default:return!1}}function fo(t){var e;return((e=t.key.content)==null?void 0:e.type)==="alias"}function uo(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var Wr=lo;function po(t){return Nn(t,mo)}function mo(t){switch(t.type){case"document":Ye(t,"head",()=>t.children[0]),Ye(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Ye(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":Ye(t,"key",()=>t.children[0]),Ye(t,"value",()=>t.children[1]);break}return t}var Qr=po;function ho(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&ee(r)&&s.push([P(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return K(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Pt(t)&&(a=vt(t,e.originalText)),(i||o)&&(K(r,["sequence","mapping"])&&!ie(r)?s.push(N):s.push(" ")),ie(r)&&s.push([r.middleComments.length===1?"":N,P(N,t.map(n,"middleComments")),N]),qr(t)?s.push(Er(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(Re(go(t,e,n))),V(r)&&!K(r,["document","documentHead"])&&s.push(Nr([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&ft(r)?"":Mt,n("trailingComment")])),Ln(r)&&s.push(v(r.type==="sequenceItem"?2:0,[N,P(N,t.map(({node:c})=>[Or(e.originalText,xe(c))?N:"",n()],"endComments"))])),s.push(a),s}function go(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=[];t.each(({node:o,next:a,isFirst:c})=>{c||s.push(N),s.push(n()),Gr(o,a)?(s.push(N,"..."),V(o)&&s.push(" ",n("trailingComment"))):a&&!V(a.head)&&s.push(N,"---")},"children");let i=It(r);return(!K(i,["blockLiteral","blockFolded"])||i.chomping!=="keep")&&s.push(N),s}case"document":{let s=[];return Eo(t,e)==="head"&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),V(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),yo(r)&&s.push(n("body")),P(N,s)}case"documentHead":return P(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=It(r);K(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(o=[N,N]):o=N}return[P(N,t.map(n,"children")),o,P(N,t.map(n,"endComments"))]}case"directive":return["%",P(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return ut(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let s="'",i='"',o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/u.test(o)){let c=r.type==="quoteDouble"?i:s;return[c,ut(r.type,o,e),c]}if(o.includes(i))return[s,ut(r.type,r.type==="quoteDouble"?At(!1,At(!1,o,String.raw`\"`,i),"'",s.repeat(2)):o,e),s];if(o.includes(s))return[i,ut(r.type,r.type==="quoteSingle"?At(!1,o,"''",s):o,e),i];let a=e.singleQuote?s:i;return[a,ut(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return jr(t,e,n);case"mapping":case"sequence":return P(N,t.map(n,"children"));case"sequenceItem":return["- ",v(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return Wr(t,e,n);case"flowMapping":return _t(t,e,n);case"flowSequence":return _t(t,e,n);case"flowSequenceItem":return n("content");default:throw new Ar(r,"YAML")}}function yo(t){return t.body.children.length>0||I(t.body)}function Gr(t,e){return V(t)||e&&(e.head.children.length>0||I(e.head))}function Eo(t,e){let n=t.node;if(t.isFirst&&/---(?:\s|$)/u.test(e.originalText.slice(xe(n),xe(n)+4))||n.head.children.length>0||I(n.head)||V(n.head))return"head";let r=t.next;return Gr(n,r)?!1:r?"root":!1}function ut(t,e,n){let r=Kr(t,e,n);return P(N,r.map(s=>Tt(P(ne,s))))}function Hr(t,e){if(K(t))switch(t.type){case"comment":if(xr(t.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break}}Hr.ignoredProperties=new Set(["position"]);var So={preprocess:Qr,embed:Tr,print:ho,massageAstNode:Hr,insertPragma:$r,getVisitorKeys:kr},Jr=So;var Xr=[{name:"YAML",type:"data",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],tmScope:"source.yaml",aceMode:"yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}];var Rt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var wo={bracketSpacing:Rt.bracketSpacing,singleQuote:Rt.singleQuote,proseWrap:Rt.proseWrap},zr=wo;var hr={};yr(hr,{yaml:()=>nc});var mr=cn(tr(),1);var H=cn(Bs(),1),sf=H.default.findPair,of=H.default.toJSON,af=H.default.parseMap,cf=H.default.parseSeq,lf=H.default.stringifyNumber,ff=H.default.stringifyString,uf=H.default.Type,pf=H.default.YAMLError,mf=H.default.YAMLReferenceError,Fs=H.default.YAMLSemanticError,hf=H.default.YAMLSyntaxError,gf=H.default.YAMLWarning;function B(t,e=null){"children"in t&&t.children.forEach(n=>B(n,t)),"anchor"in t&&t.anchor&&B(t.anchor,t),"tag"in t&&t.tag&&B(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>B(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>B(n,t)),"indicatorComment"in t&&t.indicatorComment&&B(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&B(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>B(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function Ae(t){return`${t.line}:${t.column}`}function qs(t){B(t);let e=Fa(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();qa(r,e,n[0])})}function Fa(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return Us(e,t),e}function Us(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{Us(t,n)})}}function qa(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${Ae(t.position.start)}`);B(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=Ks(l)?l:f}for(;;){if(Ua(c,t)){B(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){B(t,a),a.leadingComments.push(t);return}}let i=n.children[1];B(t,i),i.endComments.push(t)}function Ua(t,e){if(t.position.start.offsete.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offsett.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Ks(t));default:return!1}}function Ks(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function Vs(t,e,n){return{...b("root",t),children:e,comments:n}}function wt(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):wt(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):wt(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&wt(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function J(t,e){return{start:t,end:e}}function nr(t){return{start:t,end:t}}var ue;(function(t){t.Tag="!",t.Anchor="&",t.Comment="#"})(ue||(ue={}));function js(t,e){return{...b("anchor",t),value:e}}function Ge(t,e){return{...b("comment",t),value:e}}function Ws(t,e,n){return{anchor:e,tag:t,middleComments:n}}function Qs(t,e){return{...b("tag",t),value:e}}function zt(t,e,n=()=>!1){let r=t.cstNode,s=[],i=null,o=null,a=null;for(let c of r.props){let l=e.text[c.origStart];switch(l){case ue.Tag:i=i||c,o=Qs(e.transformRange(c),t.tag);break;case ue.Anchor:i=i||c,a=js(e.transformRange(c),r.anchor);break;case ue.Comment:{let f=Ge(e.transformRange(c),e.text.slice(c.origStart+1,c.origEnd));e.comments.push(f),!n(f)&&i&&i.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&s.push(f);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(l)}`)}}return Ws(o,a,s)}function X(){return{leadingComments:[]}}function pe(t=null){return{trailingComment:t}}function F(){return{...X(),...pe()}}function Gs(t,e,n){return{...b("alias",t),...F(),...e,value:n}}function Hs(t,e){let n=t.cstNode;return Gs(e.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),e.transformContent(t),n.rawValue)}function Js(t){return{...t,type:"blockFolded"}}function Xs(t,e,n,r,s,i){return{...b("blockValue",t),...X(),...e,chomping:n,indent:r,value:s,indicatorComment:i}}var rr;(function(t){t.CLIP="clip",t.STRIP="strip",t.KEEP="keep"})(rr||(rr={}));function Zt(t,e){let n=t.cstNode,r=1,s=n.chomping==="CLIP"?0:1,o=n.header.origEnd-n.header.origStart-r-s!==0,a=e.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),c=null,l=zt(t,e,f=>{if(!(a.start.offset=0;c--){let l=t.contents[c];if(l.type==="COMMENT"){let f=e.transformNode(l);n&&n.line===f.position.start.line?o.unshift(f):a?r.unshift(f):f.position.start.offset>=t.valueRange.origEnd?i.unshift(f):r.unshift(f)}else a=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${Ae(i[1].position.start)}`);if(o.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${Ae(o[1].position.start)}`);return{comments:r,endComments:s,documentTrailingComment:U(i)||null,documentHeadTrailingComment:U(o)||null}}function Va(t,e,n){let r=en(n.text.slice(t.valueRange.origEnd),/^\.\.\./),s=r===-1?t.valueRange.origEnd:Math.max(0,t.valueRange.origEnd-1);n.text[s-1]==="\r"&&s--;let i=n.transformRange({origStart:e!==null?e.position.start.offset:s,origEnd:s}),o=r===-1?i.end:n.transformOffset(t.valueRange.origEnd+3);return{position:i,documentEndPoint:o}}function ai(t,e,n,r){return{...b("documentHead",t),...q(n),...pe(r),children:e}}function ci(t,e){let n=t.cstNode,{directives:r,comments:s,endComments:i}=ja(n,e),{position:o,endMarkerPoint:a}=Wa(n,r,e);return e.comments.push(...s,...i),{createDocumentHeadWithTrailingComment:l=>(l&&e.comments.push(l),ai(o,r,i,l)),documentHeadEndMarkerPoint:a}}function ja(t,e){let n=[],r=[],s=[],i=!1;for(let o=t.directives.length-1;o>=0;o--){let a=e.transformNode(t.directives[o]);a.type==="comment"?i?r.unshift(a):s.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:s}}function Wa(t,e,n){let r=en(n.text.slice(0,t.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let s=r===-1?{origStart:t.valueRange.origStart,origEnd:t.valueRange.origStart}:{origStart:r,origEnd:r+3};return e.length!==0&&(s.origStart=e[0].position.start.offset),{position:n.transformRange(s),endMarkerPoint:r===-1?null:n.transformOffset(r)}}function li(t,e){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=ci(t,e),{documentBody:s,documentEndPoint:i,documentTrailingComment:o,documentHeadTrailingComment:a}=oi(t,e,r),c=n(a);return o&&e.comments.push(o),si(J(c.position.start,i),c,s,o)}function tn(t,e,n){return{...b("flowCollection",t),...F(),...q(),...e,children:n}}function fi(t,e,n){return{...tn(t,e,n),type:"flowMapping"}}function nn(t,e,n){return{...b("flowMappingItem",t),...X(),children:[e,n]}}function me(t,e){let n=[];for(let r of t)r&&"type"in r&&r.type==="COMMENT"?e.comments.push(e.transformNode(r)):n.push(r);return n}function rn(t){let[e,n]=["?",":"].map(r=>{let s=t.find(i=>"char"in i&&i.char===r);return s?{origStart:s.origOffset,origEnd:s.origOffset+1}:null});return{additionalKeyRange:e,additionalValueRange:n}}function sn(t,e){let n=e;return r=>t.slice(n,n=r)}function on(t){let e=[],n=sn(t,1),r=!1;for(let s=1;s{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=rn(l);return Je(a,e,nn,f,m)}),i=n[0],o=U(n);return fi(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function pi(t,e,n){return{...tn(t,e,n),type:"flowSequence"}}function mi(t,e){return{...b("flowSequenceItem",t),children:[e]}}function hi(t,e){let n=me(t.cstNode.items,e),r=on(n),s=t.items.map((a,c)=>{if(a.type!=="PAIR"){let l=e.transformNode(a);return mi(J(l.position.start,l.position.end),l)}else{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=rn(l);return Je(a,e,nn,f,m)}}),i=n[0],o=U(n);return pi(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function gi(t,e,n){return{...b("mapping",t),...X(),...e,children:n}}function di(t,e,n){return{...b("mappingItem",t),...X(),children:[e,n]}}function yi(t,e){let n=t.cstNode;n.items.filter(o=>o.type==="MAP_KEY"||o.type==="MAP_VALUE").forEach(o=>He(o,e));let r=me(n.items,e),s=Qa(r),i=t.items.map((o,a)=>{let c=s[a],[l,f]=c[0].type==="MAP_VALUE"?[null,c[0].range]:[c[0].range,c.length===1?null:c[1].range];return Je(o,e,di,l,f)});return gi(J(i[0].position.start,U(i).position.end),e.transformContent(t),i)}function Qa(t){let e=[],n=sn(t,0),r=!1;for(let s=0;s=0;r--)if(n.test(t[r]))return r;return-1}function wi(t,e){let n=t.cstNode;return Ei(e.transformRange({origStart:n.valueRange.origStart,origEnd:Si(e.text,n.valueRange.origEnd-1,/\S/)+1}),e.transformContent(t),n.strValue)}function bi(t){return{...t,type:"quoteDouble"}}function Ni(t,e,n){return{...b("quoteValue",t),...e,...F(),value:n}}function an(t,e){let n=t.cstNode;return Ni(e.transformRange(n.valueRange),e.transformContent(t),n.strValue)}function Oi(t,e){return bi(an(t,e))}function Ai(t){return{...t,type:"quoteSingle"}}function Li(t,e){return Ai(an(t,e))}function Ti(t,e,n){return{...b("sequence",t),...X(),...q(),...e,children:n}}function Mi(t,e){return{...b("sequenceItem",t),...F(),...q(),children:e?[e]:[]}}function Ci(t,e){let r=me(t.cstNode.items,e).map((s,i)=>{He(s,e);let o=e.transformNode(t.items[i]);return Mi(J(e.transformOffset(s.valueRange.origStart),o===null?e.transformOffset(s.valueRange.origStart+1):o.position.end),o)});return Ti(J(r[0].position.start,U(r).position.end),e.transformContent(t),r)}function ki(t,e){if(t===null||t.type===void 0&&t.value===null)return null;switch(t.type){case"ALIAS":return Hs(t,e);case"BLOCK_FOLDED":return zs(t,e);case"BLOCK_LITERAL":return ei(t,e);case"COMMENT":return ti(t,e);case"DIRECTIVE":return ri(t,e);case"DOCUMENT":return li(t,e);case"FLOW_MAP":return ui(t,e);case"FLOW_SEQ":return hi(t,e);case"MAP":return yi(t,e);case"PLAIN":return wi(t,e);case"QUOTE_DOUBLE":return Oi(t,e);case"QUOTE_SINGLE":return Li(t,e);case"SEQ":return Ci(t,e);default:throw new Error(`Unexpected node type ${t.type}`)}}var or,Le,bt,he,cr,lr,ar=class{constructor(e,n){Ot(this,he);ln(this,"text");ln(this,"comments",[]);Ot(this,Le);Ot(this,bt);this.text=n,un(this,Le,e)}setOrigRanges(){if(!Te(this,Le).setOrigRanges())for(let e of Te(this,Le))e.setOrigRanges([],0)}transformOffset(e){return Xe(this,he,cr).call(this,{origStart:e,origEnd:e}).start}transformRange(e){let{start:n,end:r}=Xe(this,he,cr).call(this,e);return J(n,r)}transformNode(e){return ki(e,this)}transformContent(e){return zt(e,this)}};Le=new WeakMap,bt=new WeakMap,he=new WeakSet,cr=function(e){if(!or){let[o]=Te(this,Le),a=Object.getPrototypeOf(Object.getPrototypeOf(o));or=Object.getOwnPropertyDescriptor(a,"rangeAsLinePos").get}Te(this,bt)??un(this,bt,{root:{context:{src:this.text}}});let{start:{line:n,col:r},end:{line:s,col:i}}=or.call({range:{start:Xe(this,he,lr).call(this,e.origStart),end:Xe(this,he,lr).call(this,e.origEnd)},context:Te(this,bt)});return{start:{offset:e.origStart,line:n,column:r},end:{offset:e.origEnd,line:s,column:i}}},lr=function(e){return e<0?0:e>this.text.length?this.text.length:e};var Pi=ar;function Ii(t,e,n){let r=new SyntaxError(t);return r.name="YAMLSyntaxError",r.source=e,r.position=n,r}function vi(t,e){let n=t.source.range||t.source.valueRange;return Ii(t.message,e.text,e.transformRange(n))}function fr(t){if("children"in t){if(t.children.length===1){let e=t.children[0];if(e.type==="plain"&&e.tag===null&&e.anchor===null&&e.value==="")return t.children.splice(0,1),t}t.children.forEach(fr)}return t}function ur(t,e,n,r){let s=e(t);return i=>{r(s,i)&&n(t,s=i)}}function pr(t){if(t===null||!("children"in t))return;let e=t.children;if(e.forEach(pr),t.type==="document"){let[i,o]=t.children;i.position.start.offset===i.position.end.offset?i.position.start=i.position.end=o.position.start:o.position.start.offset===o.position.end.offset&&(o.position.start=o.position.end=i.position.end)}let n=ur(t.position,Ga,Ha,za),r=ur(t.position,Ja,Xa,Za);"endComments"in t&&t.endComments.length!==0&&(n(t.endComments[0].position.start),r(U(t.endComments).position.end));let s=e.filter(i=>i!==null);if(s.length!==0){let i=s[0],o=U(s);n(i.position.start),r(o.position.end),"leadingComments"in i&&i.leadingComments.length!==0&&n(i.leadingComments[0].position.start),"tag"in i&&i.tag&&n(i.tag.position.start),"anchor"in i&&i.anchor&&n(i.anchor.position.start),"trailingComment"in o&&o.trailingComment&&r(o.trailingComment.position.end)}}function Ga(t){return t.start}function Ha(t,e){t.start=e}function Ja(t){return t.end}function Xa(t,e){t.end=e}function za(t,e){return e.offsett.offset}function _i(t){let e=mr.default.parseCST(t),n=new Pi(e,t);n.setOrigRanges();let r=e.map(i=>new mr.default.Document({merge:!1,keepCstNodes:!0}).parse(i));for(let i of r)for(let o of i.errors)if(!(o instanceof Fs&&o.message==='Map keys must be unique; "<<" is repeated'))throw vi(o,n);r.forEach(i=>wt(i.cstNode));let s=Vs(n.transformRange({origStart:0,origEnd:t.length}),r.map(i=>n.transformNode(i)),n.comments);return qs(s),pr(s),fr(s),s}function ec(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var Ri=ec;function tc(t){try{let e=_i(t);return delete e.comments,e}catch(e){throw e!=null&&e.position?Ri(e.message,{loc:e.position,cause:e}):e}}var nc={astFormat:"yaml",parse:tc,hasPragma:Dr,hasIgnorePragma:Yr,locStart:xe,locEnd:Pr};var rc={yaml:Jr};var xi=cn(tr(),1),sc=xi.default.parse;var Ih=gr;export{sc as __parsePrettierYamlConfig,Ih as default,Xr as languages,zr as options,hr as parsers,rc as printers}; diff --git a/node_modules/prettier/standalone.d.ts b/node_modules/prettier/standalone.d.ts deleted file mode 100644 index 67945fa..0000000 --- a/node_modules/prettier/standalone.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { CursorOptions, CursorResult, Options, SupportInfo } from "./index.js"; - -/** - * formatWithCursor both formats the code, and translates a cursor position from unformatted code to formatted code. - * This is useful for editor integrations, to prevent the cursor from moving when code is formatted - * - * The cursorOffset option should be provided, to specify where the cursor is. - * - * ```js - * await prettier.formatWithCursor(" 1", { cursorOffset: 2, parser: "babel" }); - * ``` - * `-> { formatted: "1;\n", cursorOffset: 1 }` - */ -export function formatWithCursor( - source: string, - options: CursorOptions, -): Promise; - -/** - * `format` is used to format text using Prettier. [Options](https://prettier.io/docs/options) may be provided to override the defaults. - */ -export function format(source: string, options?: Options): Promise; - -/** - * `check` checks to see if the file has been formatted with Prettier given those options and returns a `Boolean`. - * This is similar to the `--list-different` parameter in the CLI and is useful for running Prettier in CI scenarios. - */ -export function check(source: string, options?: Options): Promise; - -/** - * Returns an object representing the parsers, languages and file types Prettier supports for the current version. - */ -export function getSupportInfo(): Promise; diff --git a/node_modules/prettier/standalone.js b/node_modules/prettier/standalone.js deleted file mode 100644 index 84c5b75..0000000 --- a/node_modules/prettier/standalone.js +++ /dev/null @@ -1,34 +0,0 @@ -(function(t){function e(){var o=t();return o.default||o}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var f=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};f.prettier=e()}})(function(){"use strict";var Fu=Object.create;var Ue=Object.defineProperty;var pu=Object.getOwnPropertyDescriptor;var du=Object.getOwnPropertyNames;var mu=Object.getPrototypeOf,Eu=Object.prototype.hasOwnProperty;var Zt=e=>{throw TypeError(e)};var Cu=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dt=(e,t)=>{for(var r in t)Ue(e,r,{get:t[r],enumerable:!0})},er=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of du(t))!Eu.call(e,u)&&u!==r&&Ue(e,u,{get:()=>t[u],enumerable:!(n=pu(t,u))||n.enumerable});return e};var hu=(e,t,r)=>(r=e!=null?Fu(mu(e)):{},er(t||!e||!e.__esModule?Ue(r,"default",{value:e,enumerable:!0}):r,e)),gu=e=>er(Ue({},"__esModule",{value:!0}),e);var yu=(e,t,r)=>t.has(e)||Zt("Cannot "+r);var tr=(e,t,r)=>t.has(e)?Zt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var fe=(e,t,r)=>(yu(e,t,"access private method"),r);var Pn=Cu(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});function Co(){return new Proxy({},{get:()=>e=>e})}var On=/\r\n|[\n\r\u2028\u2029]/;function ho(e,t,r){let n=Object.assign({column:0,line:-1},e.start),u=Object.assign({},n,e.end),{linesAbove:o=2,linesBelow:i=3}=r||{},s=n.line,a=n.column,c=u.line,D=u.column,p=Math.max(s-(o+1),0),l=Math.min(t.length,c+i);s===-1&&(p=0),c===-1&&(l=t.length);let F=c-s,f={};if(F)for(let d=0;d<=F;d++){let m=d+s;if(!a)f[m]=!0;else if(d===0){let C=t[m-1].length;f[m]=[a,C-a+1]}else if(d===F)f[m]=[0,D];else{let C=t[m-d].length;f[m]=[0,C]}}else a===D?a?f[s]=[a,0]:f[s]=!0:f[s]=[a,D-a];return{start:p,end:l,markerLines:f}}function go(e,t,r={}){let u=Co(!1),o=e.split(On),{start:i,end:s,markerLines:a}=ho(t,o,r),c=t.start&&typeof t.start.column=="number",D=String(s).length,l=e.split(On,s).slice(i,s).map((F,f)=>{let d=i+1+f,C=` ${` ${d}`.slice(-D)} |`,E=a[d],h=!a[d+1];if(E){let x="";if(Array.isArray(E)){let A=F.slice(0,Math.max(E[0]-1,0)).replace(/[^\t]/g," "),$=E[1]||1;x=[` - `,u.gutter(C.replace(/\d/g," "))," ",A,u.marker("^").repeat($)].join(""),h&&r.message&&(x+=" "+u.message(r.message))}return[u.marker(">"),u.gutter(C),F.length>0?` ${F}`:"",x].join("")}else return` ${u.gutter(C)}${F.length>0?` ${F}`:""}`}).join(` -`);return r.message&&!c&&(l=`${" ".repeat(D+1)}${r.message} -${l}`),l}Mt.codeFrameColumns=go});var oi={};dt(oi,{__debug:()=>ui,check:()=>ri,doc:()=>qt,format:()=>fu,formatWithCursor:()=>cu,getSupportInfo:()=>ni,util:()=>Qt,version:()=>tu});var Au=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},te=Au;var _e=class{diff(t,r,n={}){let u;typeof n=="function"?(u=n,n={}):"callback"in n&&(u=n.callback);let o=this.castInput(t,n),i=this.castInput(r,n),s=this.removeEmpty(this.tokenize(o,n)),a=this.removeEmpty(this.tokenize(i,n));return this.diffWithOptionsObj(s,a,n,u)}diffWithOptionsObj(t,r,n,u){var o;let i=E=>{if(E=this.postProcess(E,n),u){setTimeout(function(){u(E)},0);return}else return E},s=r.length,a=t.length,c=1,D=s+a;n.maxEditLength!=null&&(D=Math.min(D,n.maxEditLength));let p=(o=n.timeout)!==null&&o!==void 0?o:1/0,l=Date.now()+p,F=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(F[0],r,t,0,n);if(F[0].oldPos+1>=a&&f+1>=s)return i(this.buildValues(F[0].lastComponent,r,t));let d=-1/0,m=1/0,C=()=>{for(let E=Math.max(d,-c);E<=Math.min(m,c);E+=2){let h,x=F[E-1],A=F[E+1];x&&(F[E-1]=void 0);let $=!1;if(A){let Be=A.oldPos-E;$=A&&0<=Be&&Be=a&&f+1>=s)return i(this.buildValues(h.lastComponent,r,t))||!0;F[E]=h,h.oldPos+1>=a&&(m=Math.min(m,E-1)),f+1>=s&&(d=Math.max(d,E+1))}c++};if(u)(function E(){setTimeout(function(){if(c>D||Date.now()>l)return u(void 0);C()||E()},0)})();else for(;c<=D&&Date.now()<=l;){let E=C();if(E)return E}}addToPath(t,r,n,u,o){let i=t.lastComponent;return i&&!o.oneChangePerToken&&i.added===r&&i.removed===n?{oldPos:t.oldPos+u,lastComponent:{count:i.count+1,added:r,removed:n,previousComponent:i.previousComponent}}:{oldPos:t.oldPos+u,lastComponent:{count:1,added:r,removed:n,previousComponent:i}}}extractCommon(t,r,n,u,o){let i=r.length,s=n.length,a=t.oldPos,c=a-u,D=0;for(;c+1l.length?f:l}),D.value=this.join(p)}else D.value=this.join(r.slice(a,a+D.count));a+=D.count,D.added||(c+=D.count)}}return u}};var mt=class extends _e{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}},rr=new mt;function Et(e,t,r){return rr.diff(e,t,r)}function nr(e){let t=e.indexOf("\r");return t!==-1?e.charAt(t+1)===` -`?"crlf":"cr":"lf"}function xe(e){switch(e){case"cr":return"\r";case"crlf":return`\r -`;default:return` -`}}function Ct(e,t){let r;switch(t){case` -`:r=/\n/gu;break;case"\r":r=/\r/gu;break;case`\r -`:r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function ur(e){return te(!1,e,/\r\n?/gu,` -`)}var W="string",Y="array",j="cursor",N="indent",O="align",P="trim",B="group",k="fill",_="if-break",v="indent-if-break",L="line-suffix",I="line-suffix-boundary",g="line",S="label",w="break-parent",Ve=new Set([j,N,O,P,B,k,_,v,L,I,g,S,w]);var Bu=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},y=Bu;function or(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===` -`);)t--;return tnew Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function wu(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(M(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=xu([...Ve].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var ht=class extends Error{name="InvalidDocError";constructor(t){super(wu(t)),this.doc=t}},q=ht;var ir={};function bu(e,t,r,n){let u=[e];for(;u.length>0;){let o=u.pop();if(o===ir){r(u.pop());continue}r&&u.push(o,ir);let i=M(o);if(!i)throw new q(o);if((t==null?void 0:t(o))!==!1)switch(i){case Y:case k:{let s=i===Y?o:o.parts;for(let a=s.length,c=a-1;c>=0;--c)u.push(s[c]);break}case _:u.push(o.flatContents,o.breakContents);break;case B:if(n&&o.expandedStates)for(let s=o.expandedStates.length,a=s-1;a>=0;--a)u.push(o.expandedStates[a]);else u.push(o.contents);break;case O:case N:case v:case S:case L:u.push(o.contents);break;case W:case j:case P:case I:case g:case w:break;default:throw new q(o)}}}var le=bu;function be(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(o){if(r.has(o))return r.get(o);let i=u(o);return r.set(o,i),i}function u(o){switch(M(o)){case Y:return t(o.map(n));case k:return t({...o,parts:o.parts.map(n)});case _:return t({...o,breakContents:n(o.breakContents),flatContents:n(o.flatContents)});case B:{let{expandedStates:i,contents:s}=o;return i?(i=i.map(n),s=i[0]):s=n(s),t({...o,contents:s,expandedStates:i})}case O:case N:case v:case S:case L:return t({...o,contents:n(o.contents)});case W:case j:case P:case I:case g:case w:return t(o);default:throw new q(o)}}}function $e(e,t,r){let n=r,u=!1;function o(i){if(u)return!1;let s=t(i);s!==void 0&&(u=!0,n=s)}return le(e,o),n}function ku(e){if(e.type===B&&e.break||e.type===g&&e.hard||e.type===w)return!0}function Dr(e){return $e(e,ku,!1)}function sr(e){if(e.length>0){let t=y(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function cr(e){let t=new Set,r=[];function n(o){if(o.type===w&&sr(r),o.type===B){if(r.push(o),t.has(o))return!1;t.add(o)}}function u(o){o.type===B&&r.pop().break&&sr(r)}le(e,n,u,!0)}function Su(e){return e.type===g&&!e.hard?e.soft?"":" ":e.type===_?e.flatContents:e}function fr(e){return be(e,Su)}function ar(e){for(e=[...e];e.length>=2&&y(!1,e,-2).type===g&&y(!1,e,-1).type===w;)e.length-=2;if(e.length>0){let t=we(y(!1,e,-1));e[e.length-1]=t}return e}function we(e){switch(M(e)){case N:case v:case B:case L:case S:{let t=we(e.contents);return{...e,contents:t}}case _:return{...e,breakContents:we(e.breakContents),flatContents:we(e.flatContents)};case k:return{...e,parts:ar(e.parts)};case Y:return ar(e);case W:return or(e);case O:case j:case P:case I:case g:case w:break;default:throw new q(e)}return e}function We(e){return we(Nu(e))}function Tu(e){switch(M(e)){case k:if(e.parts.every(t=>t===""))return"";break;case B:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===B&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case O:case N:case v:case L:if(!e.contents)return"";break;case _:if(!e.flatContents&&!e.breakContents)return"";break;case Y:{let t=[];for(let r of e){if(!r)continue;let[n,...u]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof y(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case W:case j:case P:case I:case g:case S:case w:break;default:throw new q(e)}return e}function Nu(e){return be(e,t=>Tu(t))}function lr(e,t=Me){return be(e,r=>typeof r=="string"?ke(t,r.split(` -`)):r)}function Ou(e){if(e.type===g)return!0}function Fr(e){return $e(e,Ou,!1)}function Fe(e,t){return e.type===S?{...e,contents:t(e.contents)}:t(e)}var gt=()=>{},K=gt,yt=gt,pr=gt;function ie(e){return K(e),{type:N,contents:e}}function oe(e,t){return K(t),{type:O,contents:t,n:e}}function At(e,t={}){return K(e),yt(t.expandedStates,!0),{type:B,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function dr(e){return oe(Number.NEGATIVE_INFINITY,e)}function mr(e){return oe({type:"root"},e)}function Er(e){return oe(-1,e)}function Cr(e,t){return At(e[0],{...t,expandedStates:e})}function hr(e){return pr(e),{type:k,parts:e}}function gr(e,t="",r={}){return K(e),t!==""&&K(t),{type:_,breakContents:e,flatContents:t,groupId:r.groupId}}function yr(e,t){return K(e),{type:v,contents:e,groupId:t.groupId,negate:t.negate}}function Se(e){return K(e),{type:L,contents:e}}var Ar={type:I},pe={type:w},Br={type:P},Te={type:g,hard:!0},Bt={type:g,hard:!0,literal:!0},Ge={type:g},_r={type:g,soft:!0},z=[Te,pe],Me=[Bt,pe],X={type:j};function ke(e,t){K(e),yt(t);let r=[];for(let n=0;n0){for(let u=0;u0?`, { ${D.join(", ")} }`:"";return`indentIfBreak(${n(o.contents)}${p})`}if(o.type===B){let D=[];o.break&&o.break!=="propagated"&&D.push("shouldBreak: true"),o.id&&D.push(`id: ${u(o.id)}`);let p=D.length>0?`, { ${D.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(l=>n(l)).join(",")}]${p})`:`group(${n(o.contents)}${p})`}if(o.type===k)return`fill([${o.parts.map(D=>n(D)).join(", ")}])`;if(o.type===L)return"lineSuffix("+n(o.contents)+")";if(o.type===I)return"lineSuffixBoundary";if(o.type===S)return`label(${JSON.stringify(o.label)}, ${n(o.contents)})`;if(o.type===j)return"cursor";throw new Error("Unknown doc type "+o.type)}function u(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let i=o.description||"symbol";for(let s=0;;s++){let a=i+(s>0?` #${s}`:"");if(!r.has(a))return r.add(a),t[o]=`Symbol.for(${JSON.stringify(a)})`}}}var br=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function kr(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Sr(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Tr=e=>!(kr(e)||Sr(e));var Pu=/[^\x20-\x7F]/u;function vu(e){if(!e)return 0;if(!Pu.test(e))return e.length;e=e.replace(br()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=Tr(n)?1:2)}return t}var Ne=vu;var R=Symbol("MODE_BREAK"),H=Symbol("MODE_FLAT"),de=Symbol("cursor"),_t=Symbol("DOC_FILL_PRINTED_LENGTH");function Nr(){return{value:"",length:0,queue:[]}}function Lu(e,t){return xt(e,{type:"indent"},t)}function Iu(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Nr():t<0?xt(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:xt(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function xt(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],u="",o=0,i=0,s=0;for(let f of n)switch(f.type){case"indent":D(),r.useTabs?a(1):c(r.tabWidth);break;case"stringAlign":D(),u+=f.n,o+=f.n.length;break;case"numberAlign":i+=1,s+=f.n;break;default:throw new Error(`Unexpected type '${f.type}'`)}return l(),{...e,value:u,length:o,queue:n};function a(f){u+=" ".repeat(f),o+=r.tabWidth*f}function c(f){u+=" ".repeat(f),o+=f}function D(){r.useTabs?p():l()}function p(){i>0&&a(i),F()}function l(){s>0&&c(s),F()}function F(){i=0,s=0}}function wt(e){let t=0,r=0,n=e.length;e:for(;n--;){let u=e[n];if(u===de){r++;continue}for(let o=u.length-1;o>=0;o--){let i=u[o];if(i===" "||i===" ")t++;else{e[n]=u.slice(0,o+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(de);return t}function ze(e,t,r,n,u,o){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,s=[e],a=[];for(;r>=0;){if(s.length===0){if(i===0)return!0;s.push(t[--i]);continue}let{mode:c,doc:D}=s.pop(),p=M(D);switch(p){case W:a.push(D),r-=Ne(D);break;case Y:case k:{let l=p===Y?D:D.parts,F=D[_t]??0;for(let f=l.length-1;f>=F;f--)s.push({mode:c,doc:l[f]});break}case N:case O:case v:case S:s.push({mode:c,doc:D.contents});break;case P:r+=wt(a);break;case B:{if(o&&D.break)return!1;let l=D.break?R:c,F=D.expandedStates&&l===R?y(!1,D.expandedStates,-1):D.contents;s.push({mode:l,doc:F});break}case _:{let F=(D.groupId?u[D.groupId]||H:c)===R?D.breakContents:D.flatContents;F&&s.push({mode:c,doc:F});break}case g:if(c===R||D.hard)return!0;D.soft||(a.push(" "),r--);break;case L:n=!0;break;case I:if(n)return!1;break}}return!1}function me(e,t){let r={},n=t.printWidth,u=xe(t.endOfLine),o=0,i=[{ind:Nr(),mode:R,doc:e}],s=[],a=!1,c=[],D=0;for(cr(e);i.length>0;){let{ind:l,mode:F,doc:f}=i.pop();switch(M(f)){case W:{let d=u!==` -`?te(!1,f,` -`,u):f;s.push(d),i.length>0&&(o+=Ne(d));break}case Y:for(let d=f.length-1;d>=0;d--)i.push({ind:l,mode:F,doc:f[d]});break;case j:if(D>=2)throw new Error("There are too many 'cursor' in doc.");s.push(de),D++;break;case N:i.push({ind:Lu(l,t),mode:F,doc:f.contents});break;case O:i.push({ind:Iu(l,f.n,t),mode:F,doc:f.contents});break;case P:o-=wt(s);break;case B:switch(F){case H:if(!a){i.push({ind:l,mode:f.break?R:H,doc:f.contents});break}case R:{a=!1;let d={ind:l,mode:H,doc:f.contents},m=n-o,C=c.length>0;if(!f.break&&ze(d,i,m,C,r))i.push(d);else if(f.expandedStates){let E=y(!1,f.expandedStates,-1);if(f.break){i.push({ind:l,mode:R,doc:E});break}else for(let h=1;h=f.expandedStates.length){i.push({ind:l,mode:R,doc:E});break}else{let x=f.expandedStates[h],A={ind:l,mode:H,doc:x};if(ze(A,i,m,C,r)){i.push(A);break}}}else i.push({ind:l,mode:R,doc:f.contents});break}}f.id&&(r[f.id]=y(!1,i,-1).mode);break;case k:{let d=n-o,m=f[_t]??0,{parts:C}=f,E=C.length-m;if(E===0)break;let h=C[m+0],x=C[m+1],A={ind:l,mode:H,doc:h},$={ind:l,mode:R,doc:h},ue=ze(A,[],d,c.length>0,r,!0);if(E===1){ue?i.push(A):i.push($);break}let Be={ind:l,mode:H,doc:x},Ft={ind:l,mode:R,doc:x};if(E===2){ue?i.push(Be,A):i.push(Ft,$);break}let lu=C[m+2],pt={ind:l,mode:F,doc:{...f,[_t]:m+2}};ze({ind:l,mode:H,doc:[h,x,lu]},[],d,c.length>0,r,!0)?i.push(pt,Be,A):ue?i.push(pt,Ft,A):i.push(pt,Ft,$);break}case _:case v:{let d=f.groupId?r[f.groupId]:F;if(d===R){let m=f.type===_?f.breakContents:f.negate?f.contents:ie(f.contents);m&&i.push({ind:l,mode:F,doc:m})}if(d===H){let m=f.type===_?f.flatContents:f.negate?ie(f.contents):f.contents;m&&i.push({ind:l,mode:F,doc:m})}break}case L:c.push({ind:l,mode:F,doc:f.contents});break;case I:c.length>0&&i.push({ind:l,mode:F,doc:Te});break;case g:switch(F){case H:if(f.hard)a=!0;else{f.soft||(s.push(" "),o+=1);break}case R:if(c.length>0){i.push({ind:l,mode:F,doc:f},...c.reverse()),c.length=0;break}f.literal?l.root?(s.push(u,l.root.value),o=l.root.length):(s.push(u),o=0):(o-=wt(s),s.push(u+l.value),o=l.length);break}break;case S:i.push({ind:l,mode:F,doc:f.contents});break;case w:break;default:throw new q(f)}i.length===0&&c.length>0&&(i.push(...c.reverse()),c.length=0)}let p=s.indexOf(de);if(p!==-1){let l=s.indexOf(de,p+1);if(l===-1)return{formatted:s.filter(m=>m!==de).join("")};let F=s.slice(0,p).join(""),f=s.slice(p+1,l).join(""),d=s.slice(l+1).join("");return{formatted:F+f+d,cursorNodeStart:F.length,cursorNodeText:f}}return{formatted:s.join("")}}function Ru(e,t,r=0){let n=0;for(let u=r;u1?y(!1,t,-2):null}getValue(){return y(!1,this.stack,-1)}getNode(t=0){let r=fe(this,Z,kt).call(this,t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:u}=n,o=y(!1,n,-1);for(let i of r)o=o[i],n.push(i,o);try{return t(this)}finally{n.length=u}}callParent(t,r=0){let n=fe(this,Z,kt).call(this,r+1),u=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...u)}}each(t,...r){let{stack:n}=this,{length:u}=n,o=y(!1,n,-1);for(let i of r)o=o[i],n.push(i,o);try{for(let i=0;i{n[o]=t(u,o,i)},...r),n}match(...t){let r=this.stack.length-1,n=null,u=this.stack[r--];for(let o of t){if(u===void 0)return!1;let i=null;if(typeof n=="number"&&(i=n,n=this.stack[r--],u=this.stack[r--]),o&&!o(u,n,i))return!1;n=this.stack[r--],u=this.stack[r--]}return!0}findAncestor(t){for(let r of fe(this,Z,He).call(this))if(t(r))return r}hasAncestor(t){for(let r of fe(this,Z,He).call(this))if(t(r))return!0;return!1}};Z=new WeakSet,kt=function(t){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t<0)return n;return-1},He=function*(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}};var Or=bt;var Pr=new Proxy(()=>{},{get:()=>Pr}),Oe=Pr;function Yu(e){return e!==null&&typeof e=="object"}var vr=Yu;function*Ce(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,u=o=>vr(o)&&n(o);for(let o of r(e)){let i=e[o];if(Array.isArray(i))for(let s of i)u(s)&&(yield s);else u(i)&&(yield i)}}function*Lr(e,t){let r=[e];for(let n=0;n{let u=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:o}=t,i=r;for(;i>=0&&i0}var Xe=Vu;var Yr=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),$u=e=>Object.keys(e).filter(t=>!Yr.has(t));function Wu(e){return e?t=>e(t,Yr):$u}var J=Wu;function Mu(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function St(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Mu(e)}function se(e,t){t.leading=!0,t.trailing=!1,St(e,t)}function ee(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),St(e,t)}function ae(e,t){t.leading=!1,t.trailing=!0,St(e,t)}var Tt=new WeakMap;function Qe(e,t){if(Tt.has(e))return Tt.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:u},locStart:o,locEnd:i}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...Ce(e,{getVisitorKeys:J(u)})]).flatMap(a=>n(a)?[a]:Qe(a,t));return s.sort((a,c)=>o(a)-o(c)||i(a)-i(c)),Tt.set(e,s),s}function Ur(e,t,r,n){let{locStart:u,locEnd:o}=r,i=u(t),s=o(t),a=Qe(e,r),c,D,p=0,l=a.length;for(;p>1,f=a[F],d=u(f),m=o(f);if(d<=i&&s<=m)return Ur(f,t,r,f);if(m<=i){c=f,p=F+1;continue}if(s<=d){D=f,l=F;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:F}=n,f=Ot(F,t,r);c&&Ot(F,c,r)!==f&&(c=null),D&&Ot(F,D,r)!==f&&(D=null)}return{enclosingNode:n,precedingNode:c,followingNode:D}}var Nt=()=>!1;function Vr(e,t){let{comments:r}=e;if(delete e.comments,!Xe(r)||!t.printer.canAttachComment)return;let n=[],{printer:{experimentalFeatures:{avoidAstMutation:u=!1}={},handleComments:o={}},originalText:i}=t,{ownLine:s=Nt,endOfLine:a=Nt,remaining:c=Nt}=o,D=r.map((p,l)=>({...Ur(e,p,t),comment:p,text:i,options:t,ast:e,isLastComment:r.length-1===l}));for(let[p,l]of D.entries()){let{comment:F,precedingNode:f,enclosingNode:d,followingNode:m,text:C,options:E,ast:h,isLastComment:x}=l,A;if(u?A=[l]:(F.enclosingNode=d,F.precedingNode=f,F.followingNode=m,A=[F,C,E,h,x]),Gu(C,E,D,p))F.placement="ownLine",s(...A)||(m?se(m,F):f?ae(f,F):d?ee(d,F):ee(h,F));else if(Ku(C,E,D,p))F.placement="endOfLine",a(...A)||(f?ae(f,F):m?se(m,F):d?ee(d,F):ee(h,F));else if(F.placement="remaining",!c(...A))if(f&&m){let $=n.length;$>0&&n[$-1].followingNode!==m&&jr(n,E),n.push(l)}else f?ae(f,F):m?se(m,F):d?ee(d,F):ee(h,F)}if(jr(n,t),!u)for(let p of r)delete p.precedingNode,delete p.enclosingNode,delete p.followingNode}var $r=e=>!/[\S\n\u2028\u2029]/u.test(e);function Gu(e,t,r,n){let{comment:u,precedingNode:o}=r[n],{locStart:i,locEnd:s}=t,a=i(u);if(o)for(let c=n-1;c>=0;c--){let{comment:D,precedingNode:p}=r[c];if(p!==o||!$r(e.slice(s(D),a)))break;a=i(D)}return G(e,a,{backwards:!0})}function Ku(e,t,r,n){let{comment:u,followingNode:o}=r[n],{locStart:i,locEnd:s}=t,a=s(u);if(o)for(let c=n+1;c0;--i){let{comment:c,precedingNode:D,followingNode:p}=e[i-1];Oe.strictEqual(D,n),Oe.strictEqual(p,u);let l=t.originalText.slice(t.locEnd(c),o);if(((a=(s=t.printer).isGap)==null?void 0:a.call(s,l,t))??/^[\s(]*$/u.test(l))o=t.locStart(c);else break}for(let[c,{comment:D}]of e.entries())c1&&c.comments.sort((D,p)=>t.locStart(D)-t.locStart(p));e.length=0}function Ot(e,t,r){let n=r.locStart(t)-1;for(let u=1;u!n.has(a)).length===0)return{leading:"",trailing:""};let o=[],i=[],s;return e.each(()=>{let a=e.node;if(n!=null&&n.has(a))return;let{leading:c,trailing:D}=a;c?o.push(Hu(e,t)):D&&(s=Ju(e,t,s),i.push(s.doc))},"comments"),{leading:o,trailing:i}}function Mr(e,t,r){let{leading:n,trailing:u}=qu(e,r);return!n&&!u?t:Fe(t,o=>[n,o,u])}function Gr(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}function Xu(e){return()=>{}}var Kr=Xu;var ve=class extends Error{name="ConfigError"},Le=class extends Error{name="UndefinedParserError"};var zr={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing -(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). -The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. -The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Ze({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(u=>u.languages??[]),n=[];for(let u of Zu(Object.assign({},...e.map(({options:o})=>o),zr)))!t&&u.deprecated||(Array.isArray(u.choices)&&(t||(u.choices=u.choices.filter(o=>!o.deprecated)),u.name==="parser"&&(u.choices=[...u.choices,...Qu(u.choices,r,e)])),u.pluginDefaults=Object.fromEntries(e.filter(o=>{var i;return((i=o.defaultOptions)==null?void 0:i[u.name])!==void 0}).map(o=>[o.name,o.defaultOptions[u.name]])),n.push(u));return{languages:r,options:n}}function*Qu(e,t,r){let n=new Set(e.map(u=>u.value));for(let u of t)if(u.parsers){for(let o of u.parsers)if(!n.has(o)){n.add(o);let i=r.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,o)),s=u.name;i!=null&&i.name&&(s+=` (plugin: ${i.name})`),yield{value:o,description:s}}}}function Zu(e){let t=[];for(let[r,n]of Object.entries(e)){let u={name:r,...n};Array.isArray(u.default)&&(u.default=y(!1,u.default,-1).value),t.push(u)}return t}var eo=(e,t)=>{if(!(e&&t==null))return t.toReversed||!Array.isArray(t)?t.toReversed():[...t].reverse()},Hr=eo;var Jr,qr,Xr,Qr,Zr,to=((Jr=globalThis.Deno)==null?void 0:Jr.build.os)==="windows"||((Xr=(qr=globalThis.navigator)==null?void 0:qr.platform)==null?void 0:Xr.startsWith("Win"))||((Zr=(Qr=globalThis.process)==null?void 0:Qr.platform)==null?void 0:Zr.startsWith("win"))||!1;function en(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function ro(e){return e=en(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function no(e){e=en(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function tn(e){return to?no(e):ro(e)}var rn=tn;var uo=e=>String(e).split(/[/\\]/u).pop();function nn(e,t){if(!t)return;let r=uo(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(u=>u.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(u=>r.endsWith(u)))}function oo(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function un(e,t){if(t){if(String(t).startsWith("file:"))try{t=rn(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r==null?void 0:r({filepath:t}))}}function io(e,t){let r=Hr(!1,e.plugins).flatMap(u=>u.languages??[]),n=oo(r,t.language)??nn(r,t.physicalFile)??nn(r,t.file)??un(r,t.physicalFile)??un(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var on=io;var re={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>re.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${re.key(r)}: ${re.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>re.value({[e]:t})};var sn=new Proxy(String,{get:()=>sn}),V=sn;var an=(e,t,{descriptor:r})=>{let n=[`${V.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${V.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."};var et=Symbol.for("vnopts.VALUE_NOT_EXIST"),ge=Symbol.for("vnopts.VALUE_UNCHANGED");var Dn=" ".repeat(2),fn=(e,t,r)=>{let{text:n,list:u}=r.normalizeExpectedResult(r.schemas[e].expected(r)),o=[];return n&&o.push(cn(e,t,n,r.descriptor)),u&&o.push([cn(e,t,u.title,r.descriptor)].concat(u.values.map(i=>ln(i,r.loggerPrintWidth))).join(` -`)),Fn(o,r.loggerPrintWidth)};function cn(e,t,r,n){return[`Invalid ${V.red(n.key(e))} value.`,`Expected ${V.blue(r)},`,`but received ${t===et?V.gray("nothing"):V.red(n.value(t))}.`].join(" ")}function ln({text:e,list:t},r){let n=[];return e&&n.push(`- ${V.blue(e)}`),t&&n.push([`- ${V.blue(t.title)}:`].concat(t.values.map(u=>ln(u,r-Dn.length).replace(/^|\n/g,`$&${Dn}`))).join(` -`)),Fn(n,r)}function Fn(e,t){if(e.length===1)return e[0];let[r,n]=e,[u,o]=e.map(i=>i.split(` -`,1)[0].length);return u>t&&u>o?n:r}var Pt=[],pn=[];function vt(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,u=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-u);)n--,u--;let o=0;for(;os?c>s?s+1:c:c>a?a+1:c;return s}var tt=(e,t,{descriptor:r,logger:n,schemas:u})=>{let o=[`Ignored unknown option ${V.yellow(r.pair({key:e,value:t}))}.`],i=Object.keys(u).sort().find(s=>vt(e,s)<3);i&&o.push(`Did you mean ${V.blue(r.key(i))}?`),n.warn(o.join(" "))};var so=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function ao(e,t){let r=new e(t),n=Object.create(r);for(let u of so)u in t&&(n[u]=Do(t[u],r,b.prototype[u].length));return n}var b=class{static create(t){return ao(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return ge}};function Do(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var rt=class extends b{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}};var nt=class extends b{expected(){return"anything"}validate(){return!0}};var ut=class extends b{constructor({valueSchema:t,name:r=t.name,...n}){super({...n,name:r}),this._valueSchema=t}expected(t){let{text:r,list:n}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let u of t){let o=r.normalizeValidateResult(this._valueSchema.validate(u,r),u);o!==!0&&n.push(o.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let u of t){let o=r.normalizeDeprecatedResult(this._valueSchema.deprecated(u,r),u);o!==!1&&n.push(...o.map(({value:i})=>({value:[i]})))}return n}forward(t,r){let n=[];for(let u of t){let o=r.normalizeForwardResult(this._valueSchema.forward(u,r),u);n.push(...o.map(dn))}return n}redirect(t,r){let n=[],u=[];for(let o of t){let i=r.normalizeRedirectResult(this._valueSchema.redirect(o,r),o);"remain"in i&&n.push(i.remain),u.push(...i.redirect.map(dn))}return n.length===0?{redirect:u}:{redirect:u,remain:n}}overlap(t,r){return t.concat(r)}};function dn({from:e,to:t}){return{from:[e],to:t}}var ot=class extends b{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function En(e,t){let r=Object.create(null);for(let n of e){let u=n[t];if(r[u])throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r[u]=n}return r}function Cn(e,t){let r=new Map;for(let n of e){let u=n[t];if(r.has(u))throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r.set(u,n)}return r}function hn(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function gn(e,t){let r=[],n=[];for(let u of e)t(u)?r.push(u):n.push(u);return[r,n]}function yn(e){return e===Math.floor(e)}function An(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,u=["undefined","object","boolean","number","string"];return r!==n?u.indexOf(r)-u.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Bn(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Lt(e){return e===void 0?{}:e}function It(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return co((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(It)}}:{text:t}}function Rt(e,t){return e===!0?!0:e===!1?{value:t}:e}function Yt(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function mn(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function it(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>mn(r,t)):[mn(e,t)]}function jt(e,t){let r=it(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function co(e,t){if(!e)throw new Error(t)}var st=class extends b{constructor(t){super(t),this._choices=Cn(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(An).map(t.value),n=r.slice(0,-2),u=r.slice(-2);return{text:n.concat(u.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}};var at=class extends b{expected(){return"a number"}validate(t,r){return typeof t=="number"}};var Dt=class extends at{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&yn(t)}};var Ie=class extends b{expected(){return"a string"}validate(t){return typeof t=="string"}};var _n=re,xn=tt,wn=fn,bn=an;var ct=class{constructor(t,r){let{logger:n=console,loggerPrintWidth:u=80,descriptor:o=_n,unknown:i=xn,invalid:s=wn,deprecated:a=bn,missing:c=()=>!1,required:D=()=>!1,preprocess:p=F=>F,postprocess:l=()=>ge}=r||{};this._utils={descriptor:o,logger:n||{warn:()=>{}},loggerPrintWidth:u,schemas:En(t,"name"),normalizeDefaultResult:Lt,normalizeExpectedResult:It,normalizeDeprecatedResult:Yt,normalizeForwardResult:it,normalizeRedirectResult:jt,normalizeValidateResult:Rt},this._unknownHandler=i,this._invalidHandler=Bn(s),this._deprecatedHandler=a,this._identifyMissing=(F,f)=>!(F in f)||c(F,f),this._identifyRequired=D,this._preprocess=p,this._postprocess=l,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=hn()}normalize(t){let r={},u=[this._preprocess(t,this._utils)],o=()=>{for(;u.length!==0;){let i=u.shift(),s=this._applyNormalization(i,r);u.push(...s)}};o();for(let i of Object.keys(this._utils.schemas)){let s=this._utils.schemas[i];if(!(i in r)){let a=Lt(s.default(this._utils));"value"in a&&u.push({[i]:a.value})}}o();for(let i of Object.keys(this._utils.schemas)){if(!(i in r))continue;let s=this._utils.schemas[i],a=r[i],c=s.postprocess(a,this._utils);c!==ge&&(this._applyValidation(c,i,s),r[i]=c)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(t,r){let n=[],{knownKeys:u,unknownKeys:o}=this._partitionOptionKeys(t);for(let i of u){let s=this._utils.schemas[i],a=s.preprocess(t[i],this._utils);this._applyValidation(a,i,s);let c=({from:F,to:f})=>{n.push(typeof f=="string"?{[f]:F}:{[f.key]:f.value})},D=({value:F,redirectTo:f})=>{let d=Yt(s.deprecated(F,this._utils),a,!0);if(d!==!1)if(d===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,f,this._utils));else for(let{value:m}of d){let C={key:i,value:m};if(!this._hasDeprecationWarned(C)){let E=typeof f=="string"?{key:f,value:m}:f;this._utils.logger.warn(this._deprecatedHandler(C,E,this._utils))}}};it(s.forward(a,this._utils),a).forEach(c);let l=jt(s.redirect(a,this._utils),a);if(l.redirect.forEach(c),"remain"in l){let F=l.remain;r[i]=i in r?s.overlap(r[i],F,this._utils):F,D({value:F})}for(let{from:F,to:f}of l.redirect)D({value:F,redirectTo:f})}for(let i of o){let s=t[i];this._applyUnknownHandler(i,s,r,(a,c)=>{n.push({[a]:c})})}return n}_applyRequiredCheck(t){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,t)&&this._identifyRequired(r))throw this._invalidHandler(r,et,this._utils)}_partitionOptionKeys(t){let[r,n]=gn(Object.keys(t).filter(u=>!this._identifyMissing(u,t)),u=>u in this._utils.schemas);return{knownKeys:r,unknownKeys:n}}_applyValidation(t,r,n){let u=Rt(n.validate(t,this._utils),t);if(u!==!0)throw this._invalidHandler(r,u.value,this._utils)}_applyUnknownHandler(t,r,n,u){let o=this._unknownHandler(t,r,this._utils);if(o)for(let i of Object.keys(o)){if(this._identifyMissing(i,o))continue;let s=o[i];i in this._utils.schemas?u(i,s):n[i]=s}}_applyPostprocess(t){let r=this._postprocess(t,this._utils);if(r!==ge){if(r.delete)for(let n of r.delete)delete t[n];if(r.override){let{knownKeys:n,unknownKeys:u}=this._partitionOptionKeys(r.override);for(let o of n){let i=r.override[o];this._applyValidation(i,o,this._utils.schemas[o]),t[o]=i}for(let o of u){let i=r.override[o];this._applyUnknownHandler(o,i,t,(s,a)=>{let c=this._utils.schemas[s];this._applyValidation(a,s,c),t[s]=a})}}}}};var Ut;function lo(e,t,{logger:r=!1,isCLI:n=!1,passThrough:u=!1,FlagSchema:o,descriptor:i}={}){if(n){if(!o)throw new Error("'FlagSchema' option is required.");if(!i)throw new Error("'descriptor' option is required.")}else i=re;let s=u?Array.isArray(u)?(l,F)=>u.includes(l)?{[l]:F}:void 0:(l,F)=>({[l]:F}):(l,F,f)=>{let{_:d,...m}=f.schemas;return tt(l,F,{...f,schemas:m})},a=Fo(t,{isCLI:n,FlagSchema:o}),c=new ct(a,{logger:r,unknown:s,descriptor:i}),D=r!==!1;D&&Ut&&(c._hasDeprecationWarned=Ut);let p=c.normalize(e);return D&&(Ut=c._hasDeprecationWarned),p}function Fo(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(nt.create({name:"_"}));for(let u of e)n.push(po(u,{isCLI:t,optionInfos:e,FlagSchema:r})),u.alias&&t&&n.push(rt.create({name:u.alias,sourceName:u.name}));return n}function po(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:u}=e,o={name:u},i,s={};switch(e.type){case"int":i=Dt,t&&(o.preprocess=Number);break;case"string":i=Ie;break;case"choice":i=st,o.choices=e.choices.map(a=>a!=null&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":i=ot;break;case"flag":i=n,o.flags=r.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":i=Ie;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(a,c,D)=>e.exception(a)||c.validate(a,D):o.validate=(a,c,D)=>a===void 0||c.validate(a,D),e.redirect&&(s.redirect=a=>a?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let a=o.preprocess||(c=>c);o.preprocess=(c,D,p)=>D.preprocess(a(Array.isArray(c)?y(!1,c,-1):c),p)}return e.array?ut.create({...t?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...s,valueSchema:i.create(o)}):i.create({...o,...s})}var kn=lo;var mo=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let u=t[n];if(r(u,n,t))return u}}},Vt=mo;function $t(e,t){if(!t)throw new Error("parserName is required.");let r=Vt(!1,e,u=>u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new ve(n)}function Sn(e,t){if(!t)throw new Error("astFormat is required.");let r=Vt(!1,e,u=>u.printers&&Object.prototype.hasOwnProperty.call(u.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new ve(n)}function Re({plugins:e,parser:t}){let r=$t(e,t);return Wt(r,t)}function Wt(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function Tn(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var Nn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function Eo(e,t={}){var p;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=on(r,{physicalFile:r.filepath}),!r.parser)throw new Le(`No parser could be inferred for file "${r.filepath}".`)}else throw new Le("No parser and no file path given, couldn't infer a parser.");let n=Ze({plugins:e.plugins,showDeprecated:!0}).options,u={...Nn,...Object.fromEntries(n.filter(l=>l.default!==void 0).map(l=>[l.name,l.default]))},o=$t(r.plugins,r.parser),i=await Wt(o,r.parser);r.astFormat=i.astFormat,r.locEnd=i.locEnd,r.locStart=i.locStart;let s=(p=o.printers)!=null&&p[i.astFormat]?o:Sn(r.plugins,i.astFormat),a=await Tn(s,i.astFormat);r.printer=a;let c=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,l])=>l!==void 0)):{},D={...u,...c};for(let[l,F]of Object.entries(D))(r[l]===null||r[l]===void 0)&&(r[l]=F);return r.parser==="json"&&(r.trailingComma="none"),kn(r,n,{passThrough:Object.keys(Nn),...t})}var ne=Eo;var vn=hu(Pn(),1);async function yo(e,t){let r=await Re(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let u;try{u=await r.parse(n,t,t)}catch(o){Ao(o,e)}return{text:n,ast:u}}function Ao(e,t){let{loc:r}=e;if(r){let n=(0,vn.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=` -`+n,e.codeFrame=n,e}throw e}var De=yo;async function Ln(e,t,r,n,u){let{embeddedLanguageFormatting:o,printer:{embed:i,hasPrettierIgnore:s=()=>!1,getVisitorKeys:a}}=r;if(!i||o!=="auto")return;if(i.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let c=J(i.getVisitorKeys??a),D=[];F();let p=e.stack;for(let{print:f,node:d,pathStack:m}of D)try{e.stack=m;let C=await f(l,t,e,r);C&&u.set(d,C)}catch(C){if(globalThis.PRETTIER_DEBUG)throw C}e.stack=p;function l(f,d){return Bo(f,d,r,n)}function F(){let{node:f}=e;if(f===null||typeof f!="object"||s(e))return;for(let m of c(f))Array.isArray(f[m])?e.each(F,m):e.call(F,m);let d=i(e,r);if(d){if(typeof d=="function"){D.push({print:d,node:f,pathStack:[...e.stack]});return}u.set(f,d)}}}async function Bo(e,t,r,n){let u=await ne({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:o}=await De(e,u),i=await n(o,u);return We(i)}function _o(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:u,locEnd:o,[Symbol.for("printedComments")]:i}=t,{node:s}=e,a=u(s),c=o(s);for(let D of n)u(D)>=a&&o(D)<=c&&i.add(D);return r.slice(a,c)}var In=_o;async function Ye(e,t){({ast:e}=await Gt(e,t));let r=new Map,n=new Or(e),u=Kr(t),o=new Map;await Ln(n,s,t,Ye,o);let i=await Rn(n,t,s,void 0,o);if(Gr(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[X,i];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[i,X]}return i;function s(c,D){return c===void 0||c===n?a(D):Array.isArray(c)?n.call(()=>a(D),...c):n.call(()=>a(D),c)}function a(c){u(n);let D=n.node;if(D==null)return"";let p=D&&typeof D=="object"&&c===void 0;if(p&&r.has(D))return r.get(D);let l=Rn(n,t,s,c,o);return p&&r.set(D,l),l}}function Rn(e,t,r,n,u){var a;let{node:o}=e,{printer:i}=t,s;switch((a=i.hasPrettierIgnore)!=null&&a.call(i,e)?s=In(e,t):u.has(o)?s=u.get(o):s=i.print(e,t,r,n),o){case t.cursorNode:s=Fe(s,c=>[X,c,X]);break;case t.nodeBeforeCursor:s=Fe(s,c=>[c,X]);break;case t.nodeAfterCursor:s=Fe(s,c=>[X,c]);break}return i.printComment&&(!i.willPrintOwnComments||!i.willPrintOwnComments(e,t))&&(s=Mr(e,s,t)),s}async function Gt(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,Vr(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function xo(e,t){let{cursorOffset:r,locStart:n,locEnd:u}=t,o=J(t.printer.getVisitorKeys),i=F=>n(F)<=r&&u(F)>=r,s=e,a=[e];for(let F of Lr(e,{getVisitorKeys:o,filter:i}))a.push(F),s=F;if(Ir(s,{getVisitorKeys:o}))return{cursorNode:s};let c,D,p=-1,l=Number.POSITIVE_INFINITY;for(;a.length>0&&(c===void 0||D===void 0);){s=a.pop();let F=c!==void 0,f=D!==void 0;for(let d of Ce(s,{getVisitorKeys:o})){if(!F){let m=u(d);m<=r&&m>p&&(c=d,p=m)}if(!f){let m=n(d);m>=r&&mi(l,a)).filter(Boolean);let c={},D=new Set(u(s));for(let l in s)!Object.prototype.hasOwnProperty.call(s,l)||o.has(l)||(D.has(l)?c[l]=i(s[l],s):c[l]=s[l]);let p=r(s,c,a);if(p!==null)return p??c}}var Yn=wo;var bo=(e,t,r)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(r);for(let n=t.length-1;n>=0;n--){let u=t[n];if(r(u,n,t))return n}return-1}},jn=bo;var ko=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function So(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(u=>$n.has(u.type)&&n.has(u))}function Un(e){let t=jn(!1,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function To(e,t,{locStart:r,locEnd:n}){let u=e.node,o=t.node;if(u===o)return{startNode:u,endNode:o};let i=r(e.node);for(let a of Un(t.parentNodes))if(r(a)>=i)o=a;else break;let s=n(t.node);for(let a of Un(e.parentNodes)){if(n(a)<=s)u=a;else break;if(u===o)break}return{startNode:u,endNode:o}}function zt(e,t,r,n,u=[],o){let{locStart:i,locEnd:s}=r,a=i(e),c=s(e);if(!(t>c||tn);let s=e.slice(n,u).search(/\S/u),a=s===-1;if(!a)for(n+=s;u>n&&!/\S/u.test(e[u-1]);--u);let c=zt(r,n,t,(F,f)=>Vn(t,F,f),[],"rangeStart"),D=a?c:zt(r,u,t,F=>Vn(t,F),[],"rangeEnd");if(!c||!D)return{rangeStart:0,rangeEnd:0};let p,l;if(ko(t)){let F=So(c,D);p=F,l=F}else({startNode:p,endNode:l}=To(c,D,t));return{rangeStart:Math.min(o(p),o(l)),rangeEnd:Math.max(i(p),i(l))}}var zn="\uFEFF",Mn=Symbol("cursor");async function Hn(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:u}=await De(e,t);t.cursorOffset>=0&&(t={...t,...Kt(n,t)});let o=await Ye(n,t,r);r>0&&(o=Ke([z,o],r,t.tabWidth));let i=me(o,t);if(r>0){let a=i.formatted.trim();i.cursorNodeStart!==void 0&&(i.cursorNodeStart-=i.formatted.indexOf(a),i.cursorNodeStart<0&&(i.cursorNodeStart=0,i.cursorNodeText=i.cursorNodeText.trimStart()),i.cursorNodeStart+i.cursorNodeText.length>a.length&&(i.cursorNodeText=i.cursorNodeText.trimEnd())),i.formatted=a+xe(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let a,c,D,p;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&i.cursorNodeText)if(D=i.cursorNodeStart,p=i.cursorNodeText,t.cursorNode)a=t.locStart(t.cursorNode),c=u.slice(a,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");a=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let C=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):u.length;c=u.slice(a,C)}else a=0,c=u,D=0,p=i.formatted;let l=t.cursorOffset-a;if(c===p)return{formatted:i.formatted,cursorOffset:D+l,comments:s};let F=c.split("");F.splice(l,0,Mn);let f=p.split(""),d=Et(F,f),m=D;for(let C of d)if(C.removed){if(C.value.includes(Mn))break}else m+=C.count;return{formatted:i.formatted,cursorOffset:m,comments:s}}return{formatted:i.formatted,cursorOffset:-1,comments:s}}async function Po(e,t){let{ast:r,text:n}=await De(e,t),{rangeStart:u,rangeEnd:o}=Wn(n,t,r),i=n.slice(u,o),s=Math.min(u,n.lastIndexOf(` -`,u)+1),a=n.slice(s,u).match(/^\s*/u)[0],c=Ee(a,t.tabWidth),D=await Hn(i,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>u&&t.cursorOffset<=o?t.cursorOffset-u:-1,endOfLine:"lf"},c),p=D.formatted.trimEnd(),{cursorOffset:l}=t;l>o?l+=p.length-i.length:D.cursorOffset>=0&&(l=D.cursorOffset+u);let F=n.slice(0,u)+p+n.slice(o);if(t.endOfLine!=="lf"){let f=xe(t.endOfLine);l>=0&&f===`\r -`&&(l+=Ct(F.slice(0,l),` -`)),F=te(!1,F,` -`,f)}return{formatted:F,cursorOffset:l,comments:D.comments}}function Ht(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Gn(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u}=t;return r=Ht(e,r,-1),n=Ht(e,n,0),u=Ht(e,u,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:u}}function Jn(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:o}=Gn(e,t),i=e.charAt(0)===zn;if(i&&(e=e.slice(1),r--,n--,u--),o==="auto"&&(o=nr(e)),e.includes("\r")){let s=a=>Ct(e.slice(0,Math.max(a,0)),`\r -`);r-=s(r),n-=s(n),u-=s(u),e=ur(e)}return{hasBOM:i,text:e,options:Gn(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:o})}}async function Kn(e,t){let r=await Re(t);return!r.hasPragma||r.hasPragma(e)}async function vo(e,t){var n;let r=await Re(t);return(n=r.hasIgnorePragma)==null?void 0:n.call(r,e)}async function Jt(e,t){let{hasBOM:r,text:n,options:u}=Jn(e,await ne(t));if(u.rangeStart>=u.rangeEnd&&n!==""||u.requirePragma&&!await Kn(n,u)||u.checkIgnorePragma&&await vo(n,u))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return u.rangeStart>0||u.rangeEnd=0&&o.cursorOffset++),o}async function qn(e,t,r){let{text:n,options:u}=Jn(e,await ne(t)),o=await De(n,u);return r&&(r.preprocessForPrint&&(o.ast=await Gt(o.ast,u)),r.massage&&(o.ast=Yn(o.ast,u))),o}async function Xn(e,t){t=await ne(t);let r=await Ye(e,t);return me(r,t)}async function Qn(e,t){let r=wr(e),{formatted:n}=await Jt(r,{...t,parser:"__js_expression"});return n}async function Zn(e,t){t=await ne(t);let{ast:r}=await De(e,t);return t.cursorOffset>=0&&(t={...t,...Kt(r,t)}),Ye(r,t)}async function eu(e,t){return me(e,await ne(t))}var qt={};dt(qt,{builders:()=>Io,printer:()=>Ro,utils:()=>Yo});var Io={join:ke,line:Ge,softline:_r,hardline:z,literalline:Me,group:At,conditionalGroup:Cr,fill:hr,lineSuffix:Se,lineSuffixBoundary:Ar,cursor:X,breakParent:pe,ifBreak:gr,trim:Br,indent:ie,indentIfBreak:yr,align:oe,addAlignmentToDoc:Ke,markAsRoot:mr,dedentToRoot:dr,dedent:Er,hardlineWithoutBreakParent:Te,literallineWithoutBreakParent:Bt,label:xr,concat:e=>e},Ro={printDocToString:me},Yo={willBreak:Dr,traverseDoc:le,findInDoc:$e,mapDoc:be,removeLines:fr,stripTrailingHardline:We,replaceEndOfLine:lr,canBreak:Fr};var tu="3.6.2";var Qt={};dt(Qt,{addDanglingComment:()=>ee,addLeadingComment:()=>se,addTrailingComment:()=>ae,getAlignmentSize:()=>Ee,getIndentSize:()=>ru,getMaxContinuousCount:()=>nu,getNextNonSpaceNonCommentCharacter:()=>uu,getNextNonSpaceNonCommentCharacterIndex:()=>Xo,getPreferredQuote:()=>iu,getStringWidth:()=>Ne,hasNewline:()=>G,hasNewlineInRange:()=>su,hasSpaces:()=>au,isNextLineEmpty:()=>ti,isNextLineEmptyAfterIndex:()=>ft,isPreviousLineEmpty:()=>Zo,makeString:()=>Du,skip:()=>he,skipEverythingButNewLine:()=>qe,skipInlineComment:()=>ye,skipNewline:()=>U,skipSpaces:()=>T,skipToLineEnd:()=>Je,skipTrailingComment:()=>Ae,skipWhitespace:()=>Rr});function jo(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,u.length/t.length),0)}var nu=Mo;function Go(e,t){let r=je(e,t);return r===!1?"":e.charAt(r)}var uu=Go;var lt="'",ou='"';function Ko(e,t){let r=t===!0||t===lt?lt:ou,n=r===lt?ou:lt,u=0,o=0;for(let i of e)i===r?u++:i===n&&o++;return u>o?n:r}var iu=Ko;function zo(e,t,r){for(let n=t;ns===n?s:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(s)?s:"\\"+s));return t+o+t}var Du=Jo;function qo(e,t,r){return je(e,r(t))}function Xo(e,t){return arguments.length===2||typeof t=="number"?je(e,t):qo(...arguments)}function Qo(e,t,r){return Pe(e,r(t))}function Zo(e,t){return arguments.length===2||typeof t=="number"?Pe(e,t):Qo(...arguments)}function ei(e,t,r){return ft(e,r(t))}function ti(e,t){return arguments.length===2||typeof t=="number"?ft(e,t):ei(...arguments)}function ce(e,t=1){return async(...r)=>{let n=r[t]??{},u=n.plugins??[];return r[t]={...n,plugins:Array.isArray(u)?u:Object.values(u)},e(...r)}}var cu=ce(Jt);async function fu(e,t){let{formatted:r}=await cu(e,{...t,cursorOffset:-1});return r}async function ri(e,t){return await fu(e,t)===e}var ni=ce(Ze,0),ui={parse:ce(qn),formatAST:ce(Xn),formatDoc:ce(Qn),printToDoc:ce(Zn),printDocToString:ce(eu)};return gu(oi);}); \ No newline at end of file diff --git a/node_modules/prettier/standalone.mjs b/node_modules/prettier/standalone.mjs deleted file mode 100644 index e716f1a..0000000 --- a/node_modules/prettier/standalone.mjs +++ /dev/null @@ -1,34 +0,0 @@ -var Fu=Object.create;var pt=Object.defineProperty;var pu=Object.getOwnPropertyDescriptor;var du=Object.getOwnPropertyNames;var mu=Object.getPrototypeOf,Eu=Object.prototype.hasOwnProperty;var er=e=>{throw TypeError(e)};var Cu=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dt=(e,t)=>{for(var r in t)pt(e,r,{get:t[r],enumerable:!0})},hu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of du(t))!Eu.call(e,u)&&u!==r&&pt(e,u,{get:()=>t[u],enumerable:!(n=pu(t,u))||n.enumerable});return e};var gu=(e,t,r)=>(r=e!=null?Fu(mu(e)):{},hu(t||!e||!e.__esModule?pt(r,"default",{value:e,enumerable:!0}):r,e));var yu=(e,t,r)=>t.has(e)||er("Cannot "+r);var tr=(e,t,r)=>t.has(e)?er("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var fe=(e,t,r)=>(yu(e,t,"access private method"),r);var Pn=Cu(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});function Co(){return new Proxy({},{get:()=>e=>e})}var On=/\r\n|[\n\r\u2028\u2029]/;function ho(e,t,r){let n=Object.assign({column:0,line:-1},e.start),u=Object.assign({},n,e.end),{linesAbove:o=2,linesBelow:i=3}=r||{},s=n.line,a=n.column,c=u.line,D=u.column,p=Math.max(s-(o+1),0),l=Math.min(t.length,c+i);s===-1&&(p=0),c===-1&&(l=t.length);let F=c-s,f={};if(F)for(let d=0;d<=F;d++){let m=d+s;if(!a)f[m]=!0;else if(d===0){let C=t[m-1].length;f[m]=[a,C-a+1]}else if(d===F)f[m]=[0,D];else{let C=t[m-d].length;f[m]=[0,C]}}else a===D?a?f[s]=[a,0]:f[s]=!0:f[s]=[a,D-a];return{start:p,end:l,markerLines:f}}function go(e,t,r={}){let u=Co(!1),o=e.split(On),{start:i,end:s,markerLines:a}=ho(t,o,r),c=t.start&&typeof t.start.column=="number",D=String(s).length,l=e.split(On,s).slice(i,s).map((F,f)=>{let d=i+1+f,C=` ${` ${d}`.slice(-D)} |`,E=a[d],h=!a[d+1];if(E){let x="";if(Array.isArray(E)){let A=F.slice(0,Math.max(E[0]-1,0)).replace(/[^\t]/g," "),$=E[1]||1;x=[` - `,u.gutter(C.replace(/\d/g," "))," ",A,u.marker("^").repeat($)].join(""),h&&r.message&&(x+=" "+u.message(r.message))}return[u.marker(">"),u.gutter(C),F.length>0?` ${F}`:"",x].join("")}else return` ${u.gutter(C)}${F.length>0?` ${F}`:""}`}).join(` -`);return r.message&&!c&&(l=`${" ".repeat(D+1)}${r.message} -${l}`),l}Mt.codeFrameColumns=go});var Zt={};dt(Zt,{__debug:()=>ui,check:()=>ri,doc:()=>qt,format:()=>fu,formatWithCursor:()=>cu,getSupportInfo:()=>ni,util:()=>Qt,version:()=>tu});var Au=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},te=Au;var _e=class{diff(t,r,n={}){let u;typeof n=="function"?(u=n,n={}):"callback"in n&&(u=n.callback);let o=this.castInput(t,n),i=this.castInput(r,n),s=this.removeEmpty(this.tokenize(o,n)),a=this.removeEmpty(this.tokenize(i,n));return this.diffWithOptionsObj(s,a,n,u)}diffWithOptionsObj(t,r,n,u){var o;let i=E=>{if(E=this.postProcess(E,n),u){setTimeout(function(){u(E)},0);return}else return E},s=r.length,a=t.length,c=1,D=s+a;n.maxEditLength!=null&&(D=Math.min(D,n.maxEditLength));let p=(o=n.timeout)!==null&&o!==void 0?o:1/0,l=Date.now()+p,F=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(F[0],r,t,0,n);if(F[0].oldPos+1>=a&&f+1>=s)return i(this.buildValues(F[0].lastComponent,r,t));let d=-1/0,m=1/0,C=()=>{for(let E=Math.max(d,-c);E<=Math.min(m,c);E+=2){let h,x=F[E-1],A=F[E+1];x&&(F[E-1]=void 0);let $=!1;if(A){let Be=A.oldPos-E;$=A&&0<=Be&&Be=a&&f+1>=s)return i(this.buildValues(h.lastComponent,r,t))||!0;F[E]=h,h.oldPos+1>=a&&(m=Math.min(m,E-1)),f+1>=s&&(d=Math.max(d,E+1))}c++};if(u)(function E(){setTimeout(function(){if(c>D||Date.now()>l)return u(void 0);C()||E()},0)})();else for(;c<=D&&Date.now()<=l;){let E=C();if(E)return E}}addToPath(t,r,n,u,o){let i=t.lastComponent;return i&&!o.oneChangePerToken&&i.added===r&&i.removed===n?{oldPos:t.oldPos+u,lastComponent:{count:i.count+1,added:r,removed:n,previousComponent:i.previousComponent}}:{oldPos:t.oldPos+u,lastComponent:{count:1,added:r,removed:n,previousComponent:i}}}extractCommon(t,r,n,u,o){let i=r.length,s=n.length,a=t.oldPos,c=a-u,D=0;for(;c+1l.length?f:l}),D.value=this.join(p)}else D.value=this.join(r.slice(a,a+D.count));a+=D.count,D.added||(c+=D.count)}}return u}};var mt=class extends _e{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}},rr=new mt;function Et(e,t,r){return rr.diff(e,t,r)}function nr(e){let t=e.indexOf("\r");return t!==-1?e.charAt(t+1)===` -`?"crlf":"cr":"lf"}function xe(e){switch(e){case"cr":return"\r";case"crlf":return`\r -`;default:return` -`}}function Ct(e,t){let r;switch(t){case` -`:r=/\n/gu;break;case"\r":r=/\r/gu;break;case`\r -`:r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function ur(e){return te(!1,e,/\r\n?/gu,` -`)}var W="string",Y="array",j="cursor",N="indent",O="align",P="trim",B="group",k="fill",_="if-break",v="indent-if-break",L="line-suffix",I="line-suffix-boundary",g="line",S="label",w="break-parent",Ue=new Set([j,N,O,P,B,k,_,v,L,I,g,S,w]);var Bu=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},y=Bu;function or(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===` -`);)t--;return tnew Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function wu(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(M(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=xu([...Ue].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var ht=class extends Error{name="InvalidDocError";constructor(t){super(wu(t)),this.doc=t}},q=ht;var ir={};function bu(e,t,r,n){let u=[e];for(;u.length>0;){let o=u.pop();if(o===ir){r(u.pop());continue}r&&u.push(o,ir);let i=M(o);if(!i)throw new q(o);if((t==null?void 0:t(o))!==!1)switch(i){case Y:case k:{let s=i===Y?o:o.parts;for(let a=s.length,c=a-1;c>=0;--c)u.push(s[c]);break}case _:u.push(o.flatContents,o.breakContents);break;case B:if(n&&o.expandedStates)for(let s=o.expandedStates.length,a=s-1;a>=0;--a)u.push(o.expandedStates[a]);else u.push(o.contents);break;case O:case N:case v:case S:case L:u.push(o.contents);break;case W:case j:case P:case I:case g:case w:break;default:throw new q(o)}}}var le=bu;function be(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(o){if(r.has(o))return r.get(o);let i=u(o);return r.set(o,i),i}function u(o){switch(M(o)){case Y:return t(o.map(n));case k:return t({...o,parts:o.parts.map(n)});case _:return t({...o,breakContents:n(o.breakContents),flatContents:n(o.flatContents)});case B:{let{expandedStates:i,contents:s}=o;return i?(i=i.map(n),s=i[0]):s=n(s),t({...o,contents:s,expandedStates:i})}case O:case N:case v:case S:case L:return t({...o,contents:n(o.contents)});case W:case j:case P:case I:case g:case w:return t(o);default:throw new q(o)}}}function Ve(e,t,r){let n=r,u=!1;function o(i){if(u)return!1;let s=t(i);s!==void 0&&(u=!0,n=s)}return le(e,o),n}function ku(e){if(e.type===B&&e.break||e.type===g&&e.hard||e.type===w)return!0}function Dr(e){return Ve(e,ku,!1)}function sr(e){if(e.length>0){let t=y(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function cr(e){let t=new Set,r=[];function n(o){if(o.type===w&&sr(r),o.type===B){if(r.push(o),t.has(o))return!1;t.add(o)}}function u(o){o.type===B&&r.pop().break&&sr(r)}le(e,n,u,!0)}function Su(e){return e.type===g&&!e.hard?e.soft?"":" ":e.type===_?e.flatContents:e}function fr(e){return be(e,Su)}function ar(e){for(e=[...e];e.length>=2&&y(!1,e,-2).type===g&&y(!1,e,-1).type===w;)e.length-=2;if(e.length>0){let t=we(y(!1,e,-1));e[e.length-1]=t}return e}function we(e){switch(M(e)){case N:case v:case B:case L:case S:{let t=we(e.contents);return{...e,contents:t}}case _:return{...e,breakContents:we(e.breakContents),flatContents:we(e.flatContents)};case k:return{...e,parts:ar(e.parts)};case Y:return ar(e);case W:return or(e);case O:case j:case P:case I:case g:case w:break;default:throw new q(e)}return e}function $e(e){return we(Nu(e))}function Tu(e){switch(M(e)){case k:if(e.parts.every(t=>t===""))return"";break;case B:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===B&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case O:case N:case v:case L:if(!e.contents)return"";break;case _:if(!e.flatContents&&!e.breakContents)return"";break;case Y:{let t=[];for(let r of e){if(!r)continue;let[n,...u]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof y(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case W:case j:case P:case I:case g:case S:case w:break;default:throw new q(e)}return e}function Nu(e){return be(e,t=>Tu(t))}function lr(e,t=We){return be(e,r=>typeof r=="string"?ke(t,r.split(` -`)):r)}function Ou(e){if(e.type===g)return!0}function Fr(e){return Ve(e,Ou,!1)}function Fe(e,t){return e.type===S?{...e,contents:t(e.contents)}:t(e)}var gt=()=>{},K=gt,yt=gt,pr=gt;function ie(e){return K(e),{type:N,contents:e}}function oe(e,t){return K(t),{type:O,contents:t,n:e}}function At(e,t={}){return K(e),yt(t.expandedStates,!0),{type:B,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function dr(e){return oe(Number.NEGATIVE_INFINITY,e)}function mr(e){return oe({type:"root"},e)}function Er(e){return oe(-1,e)}function Cr(e,t){return At(e[0],{...t,expandedStates:e})}function hr(e){return pr(e),{type:k,parts:e}}function gr(e,t="",r={}){return K(e),t!==""&&K(t),{type:_,breakContents:e,flatContents:t,groupId:r.groupId}}function yr(e,t){return K(e),{type:v,contents:e,groupId:t.groupId,negate:t.negate}}function Se(e){return K(e),{type:L,contents:e}}var Ar={type:I},pe={type:w},Br={type:P},Te={type:g,hard:!0},Bt={type:g,hard:!0,literal:!0},Me={type:g},_r={type:g,soft:!0},z=[Te,pe],We=[Bt,pe],X={type:j};function ke(e,t){K(e),yt(t);let r=[];for(let n=0;n0){for(let u=0;u0?`, { ${D.join(", ")} }`:"";return`indentIfBreak(${n(o.contents)}${p})`}if(o.type===B){let D=[];o.break&&o.break!=="propagated"&&D.push("shouldBreak: true"),o.id&&D.push(`id: ${u(o.id)}`);let p=D.length>0?`, { ${D.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(l=>n(l)).join(",")}]${p})`:`group(${n(o.contents)}${p})`}if(o.type===k)return`fill([${o.parts.map(D=>n(D)).join(", ")}])`;if(o.type===L)return"lineSuffix("+n(o.contents)+")";if(o.type===I)return"lineSuffixBoundary";if(o.type===S)return`label(${JSON.stringify(o.label)}, ${n(o.contents)})`;if(o.type===j)return"cursor";throw new Error("Unknown doc type "+o.type)}function u(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let i=o.description||"symbol";for(let s=0;;s++){let a=i+(s>0?` #${s}`:"");if(!r.has(a))return r.add(a),t[o]=`Symbol.for(${JSON.stringify(a)})`}}}var br=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function kr(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Sr(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Tr=e=>!(kr(e)||Sr(e));var Pu=/[^\x20-\x7F]/u;function vu(e){if(!e)return 0;if(!Pu.test(e))return e.length;e=e.replace(br()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=Tr(n)?1:2)}return t}var Ne=vu;var R=Symbol("MODE_BREAK"),H=Symbol("MODE_FLAT"),de=Symbol("cursor"),_t=Symbol("DOC_FILL_PRINTED_LENGTH");function Nr(){return{value:"",length:0,queue:[]}}function Lu(e,t){return xt(e,{type:"indent"},t)}function Iu(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Nr():t<0?xt(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:xt(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function xt(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],u="",o=0,i=0,s=0;for(let f of n)switch(f.type){case"indent":D(),r.useTabs?a(1):c(r.tabWidth);break;case"stringAlign":D(),u+=f.n,o+=f.n.length;break;case"numberAlign":i+=1,s+=f.n;break;default:throw new Error(`Unexpected type '${f.type}'`)}return l(),{...e,value:u,length:o,queue:n};function a(f){u+=" ".repeat(f),o+=r.tabWidth*f}function c(f){u+=" ".repeat(f),o+=f}function D(){r.useTabs?p():l()}function p(){i>0&&a(i),F()}function l(){s>0&&c(s),F()}function F(){i=0,s=0}}function wt(e){let t=0,r=0,n=e.length;e:for(;n--;){let u=e[n];if(u===de){r++;continue}for(let o=u.length-1;o>=0;o--){let i=u[o];if(i===" "||i===" ")t++;else{e[n]=u.slice(0,o+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(de);return t}function Ke(e,t,r,n,u,o){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,s=[e],a=[];for(;r>=0;){if(s.length===0){if(i===0)return!0;s.push(t[--i]);continue}let{mode:c,doc:D}=s.pop(),p=M(D);switch(p){case W:a.push(D),r-=Ne(D);break;case Y:case k:{let l=p===Y?D:D.parts,F=D[_t]??0;for(let f=l.length-1;f>=F;f--)s.push({mode:c,doc:l[f]});break}case N:case O:case v:case S:s.push({mode:c,doc:D.contents});break;case P:r+=wt(a);break;case B:{if(o&&D.break)return!1;let l=D.break?R:c,F=D.expandedStates&&l===R?y(!1,D.expandedStates,-1):D.contents;s.push({mode:l,doc:F});break}case _:{let F=(D.groupId?u[D.groupId]||H:c)===R?D.breakContents:D.flatContents;F&&s.push({mode:c,doc:F});break}case g:if(c===R||D.hard)return!0;D.soft||(a.push(" "),r--);break;case L:n=!0;break;case I:if(n)return!1;break}}return!1}function me(e,t){let r={},n=t.printWidth,u=xe(t.endOfLine),o=0,i=[{ind:Nr(),mode:R,doc:e}],s=[],a=!1,c=[],D=0;for(cr(e);i.length>0;){let{ind:l,mode:F,doc:f}=i.pop();switch(M(f)){case W:{let d=u!==` -`?te(!1,f,` -`,u):f;s.push(d),i.length>0&&(o+=Ne(d));break}case Y:for(let d=f.length-1;d>=0;d--)i.push({ind:l,mode:F,doc:f[d]});break;case j:if(D>=2)throw new Error("There are too many 'cursor' in doc.");s.push(de),D++;break;case N:i.push({ind:Lu(l,t),mode:F,doc:f.contents});break;case O:i.push({ind:Iu(l,f.n,t),mode:F,doc:f.contents});break;case P:o-=wt(s);break;case B:switch(F){case H:if(!a){i.push({ind:l,mode:f.break?R:H,doc:f.contents});break}case R:{a=!1;let d={ind:l,mode:H,doc:f.contents},m=n-o,C=c.length>0;if(!f.break&&Ke(d,i,m,C,r))i.push(d);else if(f.expandedStates){let E=y(!1,f.expandedStates,-1);if(f.break){i.push({ind:l,mode:R,doc:E});break}else for(let h=1;h=f.expandedStates.length){i.push({ind:l,mode:R,doc:E});break}else{let x=f.expandedStates[h],A={ind:l,mode:H,doc:x};if(Ke(A,i,m,C,r)){i.push(A);break}}}else i.push({ind:l,mode:R,doc:f.contents});break}}f.id&&(r[f.id]=y(!1,i,-1).mode);break;case k:{let d=n-o,m=f[_t]??0,{parts:C}=f,E=C.length-m;if(E===0)break;let h=C[m+0],x=C[m+1],A={ind:l,mode:H,doc:h},$={ind:l,mode:R,doc:h},ue=Ke(A,[],d,c.length>0,r,!0);if(E===1){ue?i.push(A):i.push($);break}let Be={ind:l,mode:H,doc:x},lt={ind:l,mode:R,doc:x};if(E===2){ue?i.push(Be,A):i.push(lt,$);break}let lu=C[m+2],Ft={ind:l,mode:F,doc:{...f,[_t]:m+2}};Ke({ind:l,mode:H,doc:[h,x,lu]},[],d,c.length>0,r,!0)?i.push(Ft,Be,A):ue?i.push(Ft,lt,A):i.push(Ft,lt,$);break}case _:case v:{let d=f.groupId?r[f.groupId]:F;if(d===R){let m=f.type===_?f.breakContents:f.negate?f.contents:ie(f.contents);m&&i.push({ind:l,mode:F,doc:m})}if(d===H){let m=f.type===_?f.flatContents:f.negate?ie(f.contents):f.contents;m&&i.push({ind:l,mode:F,doc:m})}break}case L:c.push({ind:l,mode:F,doc:f.contents});break;case I:c.length>0&&i.push({ind:l,mode:F,doc:Te});break;case g:switch(F){case H:if(f.hard)a=!0;else{f.soft||(s.push(" "),o+=1);break}case R:if(c.length>0){i.push({ind:l,mode:F,doc:f},...c.reverse()),c.length=0;break}f.literal?l.root?(s.push(u,l.root.value),o=l.root.length):(s.push(u),o=0):(o-=wt(s),s.push(u+l.value),o=l.length);break}break;case S:i.push({ind:l,mode:F,doc:f.contents});break;case w:break;default:throw new q(f)}i.length===0&&c.length>0&&(i.push(...c.reverse()),c.length=0)}let p=s.indexOf(de);if(p!==-1){let l=s.indexOf(de,p+1);if(l===-1)return{formatted:s.filter(m=>m!==de).join("")};let F=s.slice(0,p).join(""),f=s.slice(p+1,l).join(""),d=s.slice(l+1).join("");return{formatted:F+f+d,cursorNodeStart:F.length,cursorNodeText:f}}return{formatted:s.join("")}}function Ru(e,t,r=0){let n=0;for(let u=r;u1?y(!1,t,-2):null}getValue(){return y(!1,this.stack,-1)}getNode(t=0){let r=fe(this,Z,kt).call(this,t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:u}=n,o=y(!1,n,-1);for(let i of r)o=o[i],n.push(i,o);try{return t(this)}finally{n.length=u}}callParent(t,r=0){let n=fe(this,Z,kt).call(this,r+1),u=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...u)}}each(t,...r){let{stack:n}=this,{length:u}=n,o=y(!1,n,-1);for(let i of r)o=o[i],n.push(i,o);try{for(let i=0;i{n[o]=t(u,o,i)},...r),n}match(...t){let r=this.stack.length-1,n=null,u=this.stack[r--];for(let o of t){if(u===void 0)return!1;let i=null;if(typeof n=="number"&&(i=n,n=this.stack[r--],u=this.stack[r--]),o&&!o(u,n,i))return!1;n=this.stack[r--],u=this.stack[r--]}return!0}findAncestor(t){for(let r of fe(this,Z,ze).call(this))if(t(r))return r}hasAncestor(t){for(let r of fe(this,Z,ze).call(this))if(t(r))return!0;return!1}};Z=new WeakSet,kt=function(t){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t<0)return n;return-1},ze=function*(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}};var Or=bt;var Pr=new Proxy(()=>{},{get:()=>Pr}),Oe=Pr;function Yu(e){return e!==null&&typeof e=="object"}var vr=Yu;function*Ce(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,u=o=>vr(o)&&n(o);for(let o of r(e)){let i=e[o];if(Array.isArray(i))for(let s of i)u(s)&&(yield s);else u(i)&&(yield i)}}function*Lr(e,t){let r=[e];for(let n=0;n{let u=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:o}=t,i=r;for(;i>=0&&i0}var qe=Vu;var Yr=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),$u=e=>Object.keys(e).filter(t=>!Yr.has(t));function Wu(e){return e?t=>e(t,Yr):$u}var J=Wu;function Mu(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function St(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Mu(e)}function se(e,t){t.leading=!0,t.trailing=!1,St(e,t)}function ee(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),St(e,t)}function ae(e,t){t.leading=!1,t.trailing=!0,St(e,t)}var Tt=new WeakMap;function Xe(e,t){if(Tt.has(e))return Tt.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:u},locStart:o,locEnd:i}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...Ce(e,{getVisitorKeys:J(u)})]).flatMap(a=>n(a)?[a]:Xe(a,t));return s.sort((a,c)=>o(a)-o(c)||i(a)-i(c)),Tt.set(e,s),s}function Ur(e,t,r,n){let{locStart:u,locEnd:o}=r,i=u(t),s=o(t),a=Xe(e,r),c,D,p=0,l=a.length;for(;p>1,f=a[F],d=u(f),m=o(f);if(d<=i&&s<=m)return Ur(f,t,r,f);if(m<=i){c=f,p=F+1;continue}if(s<=d){D=f,l=F;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:F}=n,f=Ot(F,t,r);c&&Ot(F,c,r)!==f&&(c=null),D&&Ot(F,D,r)!==f&&(D=null)}return{enclosingNode:n,precedingNode:c,followingNode:D}}var Nt=()=>!1;function Vr(e,t){let{comments:r}=e;if(delete e.comments,!qe(r)||!t.printer.canAttachComment)return;let n=[],{printer:{experimentalFeatures:{avoidAstMutation:u=!1}={},handleComments:o={}},originalText:i}=t,{ownLine:s=Nt,endOfLine:a=Nt,remaining:c=Nt}=o,D=r.map((p,l)=>({...Ur(e,p,t),comment:p,text:i,options:t,ast:e,isLastComment:r.length-1===l}));for(let[p,l]of D.entries()){let{comment:F,precedingNode:f,enclosingNode:d,followingNode:m,text:C,options:E,ast:h,isLastComment:x}=l,A;if(u?A=[l]:(F.enclosingNode=d,F.precedingNode=f,F.followingNode=m,A=[F,C,E,h,x]),Gu(C,E,D,p))F.placement="ownLine",s(...A)||(m?se(m,F):f?ae(f,F):d?ee(d,F):ee(h,F));else if(Ku(C,E,D,p))F.placement="endOfLine",a(...A)||(f?ae(f,F):m?se(m,F):d?ee(d,F):ee(h,F));else if(F.placement="remaining",!c(...A))if(f&&m){let $=n.length;$>0&&n[$-1].followingNode!==m&&jr(n,E),n.push(l)}else f?ae(f,F):m?se(m,F):d?ee(d,F):ee(h,F)}if(jr(n,t),!u)for(let p of r)delete p.precedingNode,delete p.enclosingNode,delete p.followingNode}var $r=e=>!/[\S\n\u2028\u2029]/u.test(e);function Gu(e,t,r,n){let{comment:u,precedingNode:o}=r[n],{locStart:i,locEnd:s}=t,a=i(u);if(o)for(let c=n-1;c>=0;c--){let{comment:D,precedingNode:p}=r[c];if(p!==o||!$r(e.slice(s(D),a)))break;a=i(D)}return G(e,a,{backwards:!0})}function Ku(e,t,r,n){let{comment:u,followingNode:o}=r[n],{locStart:i,locEnd:s}=t,a=s(u);if(o)for(let c=n+1;c0;--i){let{comment:c,precedingNode:D,followingNode:p}=e[i-1];Oe.strictEqual(D,n),Oe.strictEqual(p,u);let l=t.originalText.slice(t.locEnd(c),o);if(((a=(s=t.printer).isGap)==null?void 0:a.call(s,l,t))??/^[\s(]*$/u.test(l))o=t.locStart(c);else break}for(let[c,{comment:D}]of e.entries())c1&&c.comments.sort((D,p)=>t.locStart(D)-t.locStart(p));e.length=0}function Ot(e,t,r){let n=r.locStart(t)-1;for(let u=1;u!n.has(a)).length===0)return{leading:"",trailing:""};let o=[],i=[],s;return e.each(()=>{let a=e.node;if(n!=null&&n.has(a))return;let{leading:c,trailing:D}=a;c?o.push(Hu(e,t)):D&&(s=Ju(e,t,s),i.push(s.doc))},"comments"),{leading:o,trailing:i}}function Mr(e,t,r){let{leading:n,trailing:u}=qu(e,r);return!n&&!u?t:Fe(t,o=>[n,o,u])}function Gr(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}function Xu(e){return()=>{}}var Kr=Xu;var ve=class extends Error{name="ConfigError"},Le=class extends Error{name="UndefinedParserError"};var zr={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing -(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). -The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. -The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Qe({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(u=>u.languages??[]),n=[];for(let u of Zu(Object.assign({},...e.map(({options:o})=>o),zr)))!t&&u.deprecated||(Array.isArray(u.choices)&&(t||(u.choices=u.choices.filter(o=>!o.deprecated)),u.name==="parser"&&(u.choices=[...u.choices,...Qu(u.choices,r,e)])),u.pluginDefaults=Object.fromEntries(e.filter(o=>{var i;return((i=o.defaultOptions)==null?void 0:i[u.name])!==void 0}).map(o=>[o.name,o.defaultOptions[u.name]])),n.push(u));return{languages:r,options:n}}function*Qu(e,t,r){let n=new Set(e.map(u=>u.value));for(let u of t)if(u.parsers){for(let o of u.parsers)if(!n.has(o)){n.add(o);let i=r.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,o)),s=u.name;i!=null&&i.name&&(s+=` (plugin: ${i.name})`),yield{value:o,description:s}}}}function Zu(e){let t=[];for(let[r,n]of Object.entries(e)){let u={name:r,...n};Array.isArray(u.default)&&(u.default=y(!1,u.default,-1).value),t.push(u)}return t}var eo=(e,t)=>{if(!(e&&t==null))return t.toReversed||!Array.isArray(t)?t.toReversed():[...t].reverse()},Hr=eo;var Jr,qr,Xr,Qr,Zr,to=((Jr=globalThis.Deno)==null?void 0:Jr.build.os)==="windows"||((Xr=(qr=globalThis.navigator)==null?void 0:qr.platform)==null?void 0:Xr.startsWith("Win"))||((Zr=(Qr=globalThis.process)==null?void 0:Qr.platform)==null?void 0:Zr.startsWith("win"))||!1;function en(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function ro(e){return e=en(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function no(e){e=en(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function tn(e){return to?no(e):ro(e)}var rn=tn;var uo=e=>String(e).split(/[/\\]/u).pop();function nn(e,t){if(!t)return;let r=uo(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(u=>u.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(u=>r.endsWith(u)))}function oo(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function un(e,t){if(t){if(String(t).startsWith("file:"))try{t=rn(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r==null?void 0:r({filepath:t}))}}function io(e,t){let r=Hr(!1,e.plugins).flatMap(u=>u.languages??[]),n=oo(r,t.language)??nn(r,t.physicalFile)??nn(r,t.file)??un(r,t.physicalFile)??un(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var on=io;var re={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>re.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${re.key(r)}: ${re.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>re.value({[e]:t})};var sn=new Proxy(String,{get:()=>sn}),V=sn;var an=(e,t,{descriptor:r})=>{let n=[`${V.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${V.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."};var Ze=Symbol.for("vnopts.VALUE_NOT_EXIST"),ge=Symbol.for("vnopts.VALUE_UNCHANGED");var Dn=" ".repeat(2),fn=(e,t,r)=>{let{text:n,list:u}=r.normalizeExpectedResult(r.schemas[e].expected(r)),o=[];return n&&o.push(cn(e,t,n,r.descriptor)),u&&o.push([cn(e,t,u.title,r.descriptor)].concat(u.values.map(i=>ln(i,r.loggerPrintWidth))).join(` -`)),Fn(o,r.loggerPrintWidth)};function cn(e,t,r,n){return[`Invalid ${V.red(n.key(e))} value.`,`Expected ${V.blue(r)},`,`but received ${t===Ze?V.gray("nothing"):V.red(n.value(t))}.`].join(" ")}function ln({text:e,list:t},r){let n=[];return e&&n.push(`- ${V.blue(e)}`),t&&n.push([`- ${V.blue(t.title)}:`].concat(t.values.map(u=>ln(u,r-Dn.length).replace(/^|\n/g,`$&${Dn}`))).join(` -`)),Fn(n,r)}function Fn(e,t){if(e.length===1)return e[0];let[r,n]=e,[u,o]=e.map(i=>i.split(` -`,1)[0].length);return u>t&&u>o?n:r}var Pt=[],pn=[];function vt(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,u=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-u);)n--,u--;let o=0;for(;os?c>s?s+1:c:c>a?a+1:c;return s}var et=(e,t,{descriptor:r,logger:n,schemas:u})=>{let o=[`Ignored unknown option ${V.yellow(r.pair({key:e,value:t}))}.`],i=Object.keys(u).sort().find(s=>vt(e,s)<3);i&&o.push(`Did you mean ${V.blue(r.key(i))}?`),n.warn(o.join(" "))};var so=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function ao(e,t){let r=new e(t),n=Object.create(r);for(let u of so)u in t&&(n[u]=Do(t[u],r,b.prototype[u].length));return n}var b=class{static create(t){return ao(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return ge}};function Do(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var tt=class extends b{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}};var rt=class extends b{expected(){return"anything"}validate(){return!0}};var nt=class extends b{constructor({valueSchema:t,name:r=t.name,...n}){super({...n,name:r}),this._valueSchema=t}expected(t){let{text:r,list:n}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let u of t){let o=r.normalizeValidateResult(this._valueSchema.validate(u,r),u);o!==!0&&n.push(o.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let u of t){let o=r.normalizeDeprecatedResult(this._valueSchema.deprecated(u,r),u);o!==!1&&n.push(...o.map(({value:i})=>({value:[i]})))}return n}forward(t,r){let n=[];for(let u of t){let o=r.normalizeForwardResult(this._valueSchema.forward(u,r),u);n.push(...o.map(dn))}return n}redirect(t,r){let n=[],u=[];for(let o of t){let i=r.normalizeRedirectResult(this._valueSchema.redirect(o,r),o);"remain"in i&&n.push(i.remain),u.push(...i.redirect.map(dn))}return n.length===0?{redirect:u}:{redirect:u,remain:n}}overlap(t,r){return t.concat(r)}};function dn({from:e,to:t}){return{from:[e],to:t}}var ut=class extends b{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function En(e,t){let r=Object.create(null);for(let n of e){let u=n[t];if(r[u])throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r[u]=n}return r}function Cn(e,t){let r=new Map;for(let n of e){let u=n[t];if(r.has(u))throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r.set(u,n)}return r}function hn(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function gn(e,t){let r=[],n=[];for(let u of e)t(u)?r.push(u):n.push(u);return[r,n]}function yn(e){return e===Math.floor(e)}function An(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,u=["undefined","object","boolean","number","string"];return r!==n?u.indexOf(r)-u.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Bn(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Lt(e){return e===void 0?{}:e}function It(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return co((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(It)}}:{text:t}}function Rt(e,t){return e===!0?!0:e===!1?{value:t}:e}function Yt(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function mn(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function ot(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>mn(r,t)):[mn(e,t)]}function jt(e,t){let r=ot(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function co(e,t){if(!e)throw new Error(t)}var it=class extends b{constructor(t){super(t),this._choices=Cn(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(An).map(t.value),n=r.slice(0,-2),u=r.slice(-2);return{text:n.concat(u.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}};var st=class extends b{expected(){return"a number"}validate(t,r){return typeof t=="number"}};var at=class extends st{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&yn(t)}};var Ie=class extends b{expected(){return"a string"}validate(t){return typeof t=="string"}};var _n=re,xn=et,wn=fn,bn=an;var Dt=class{constructor(t,r){let{logger:n=console,loggerPrintWidth:u=80,descriptor:o=_n,unknown:i=xn,invalid:s=wn,deprecated:a=bn,missing:c=()=>!1,required:D=()=>!1,preprocess:p=F=>F,postprocess:l=()=>ge}=r||{};this._utils={descriptor:o,logger:n||{warn:()=>{}},loggerPrintWidth:u,schemas:En(t,"name"),normalizeDefaultResult:Lt,normalizeExpectedResult:It,normalizeDeprecatedResult:Yt,normalizeForwardResult:ot,normalizeRedirectResult:jt,normalizeValidateResult:Rt},this._unknownHandler=i,this._invalidHandler=Bn(s),this._deprecatedHandler=a,this._identifyMissing=(F,f)=>!(F in f)||c(F,f),this._identifyRequired=D,this._preprocess=p,this._postprocess=l,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=hn()}normalize(t){let r={},u=[this._preprocess(t,this._utils)],o=()=>{for(;u.length!==0;){let i=u.shift(),s=this._applyNormalization(i,r);u.push(...s)}};o();for(let i of Object.keys(this._utils.schemas)){let s=this._utils.schemas[i];if(!(i in r)){let a=Lt(s.default(this._utils));"value"in a&&u.push({[i]:a.value})}}o();for(let i of Object.keys(this._utils.schemas)){if(!(i in r))continue;let s=this._utils.schemas[i],a=r[i],c=s.postprocess(a,this._utils);c!==ge&&(this._applyValidation(c,i,s),r[i]=c)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(t,r){let n=[],{knownKeys:u,unknownKeys:o}=this._partitionOptionKeys(t);for(let i of u){let s=this._utils.schemas[i],a=s.preprocess(t[i],this._utils);this._applyValidation(a,i,s);let c=({from:F,to:f})=>{n.push(typeof f=="string"?{[f]:F}:{[f.key]:f.value})},D=({value:F,redirectTo:f})=>{let d=Yt(s.deprecated(F,this._utils),a,!0);if(d!==!1)if(d===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,f,this._utils));else for(let{value:m}of d){let C={key:i,value:m};if(!this._hasDeprecationWarned(C)){let E=typeof f=="string"?{key:f,value:m}:f;this._utils.logger.warn(this._deprecatedHandler(C,E,this._utils))}}};ot(s.forward(a,this._utils),a).forEach(c);let l=jt(s.redirect(a,this._utils),a);if(l.redirect.forEach(c),"remain"in l){let F=l.remain;r[i]=i in r?s.overlap(r[i],F,this._utils):F,D({value:F})}for(let{from:F,to:f}of l.redirect)D({value:F,redirectTo:f})}for(let i of o){let s=t[i];this._applyUnknownHandler(i,s,r,(a,c)=>{n.push({[a]:c})})}return n}_applyRequiredCheck(t){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,t)&&this._identifyRequired(r))throw this._invalidHandler(r,Ze,this._utils)}_partitionOptionKeys(t){let[r,n]=gn(Object.keys(t).filter(u=>!this._identifyMissing(u,t)),u=>u in this._utils.schemas);return{knownKeys:r,unknownKeys:n}}_applyValidation(t,r,n){let u=Rt(n.validate(t,this._utils),t);if(u!==!0)throw this._invalidHandler(r,u.value,this._utils)}_applyUnknownHandler(t,r,n,u){let o=this._unknownHandler(t,r,this._utils);if(o)for(let i of Object.keys(o)){if(this._identifyMissing(i,o))continue;let s=o[i];i in this._utils.schemas?u(i,s):n[i]=s}}_applyPostprocess(t){let r=this._postprocess(t,this._utils);if(r!==ge){if(r.delete)for(let n of r.delete)delete t[n];if(r.override){let{knownKeys:n,unknownKeys:u}=this._partitionOptionKeys(r.override);for(let o of n){let i=r.override[o];this._applyValidation(i,o,this._utils.schemas[o]),t[o]=i}for(let o of u){let i=r.override[o];this._applyUnknownHandler(o,i,t,(s,a)=>{let c=this._utils.schemas[s];this._applyValidation(a,s,c),t[s]=a})}}}}};var Ut;function lo(e,t,{logger:r=!1,isCLI:n=!1,passThrough:u=!1,FlagSchema:o,descriptor:i}={}){if(n){if(!o)throw new Error("'FlagSchema' option is required.");if(!i)throw new Error("'descriptor' option is required.")}else i=re;let s=u?Array.isArray(u)?(l,F)=>u.includes(l)?{[l]:F}:void 0:(l,F)=>({[l]:F}):(l,F,f)=>{let{_:d,...m}=f.schemas;return et(l,F,{...f,schemas:m})},a=Fo(t,{isCLI:n,FlagSchema:o}),c=new Dt(a,{logger:r,unknown:s,descriptor:i}),D=r!==!1;D&&Ut&&(c._hasDeprecationWarned=Ut);let p=c.normalize(e);return D&&(Ut=c._hasDeprecationWarned),p}function Fo(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(rt.create({name:"_"}));for(let u of e)n.push(po(u,{isCLI:t,optionInfos:e,FlagSchema:r})),u.alias&&t&&n.push(tt.create({name:u.alias,sourceName:u.name}));return n}function po(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:u}=e,o={name:u},i,s={};switch(e.type){case"int":i=at,t&&(o.preprocess=Number);break;case"string":i=Ie;break;case"choice":i=it,o.choices=e.choices.map(a=>a!=null&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":i=ut;break;case"flag":i=n,o.flags=r.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":i=Ie;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(a,c,D)=>e.exception(a)||c.validate(a,D):o.validate=(a,c,D)=>a===void 0||c.validate(a,D),e.redirect&&(s.redirect=a=>a?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let a=o.preprocess||(c=>c);o.preprocess=(c,D,p)=>D.preprocess(a(Array.isArray(c)?y(!1,c,-1):c),p)}return e.array?nt.create({...t?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...s,valueSchema:i.create(o)}):i.create({...o,...s})}var kn=lo;var mo=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let u=t[n];if(r(u,n,t))return u}}},Vt=mo;function $t(e,t){if(!t)throw new Error("parserName is required.");let r=Vt(!1,e,u=>u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new ve(n)}function Sn(e,t){if(!t)throw new Error("astFormat is required.");let r=Vt(!1,e,u=>u.printers&&Object.prototype.hasOwnProperty.call(u.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new ve(n)}function Re({plugins:e,parser:t}){let r=$t(e,t);return Wt(r,t)}function Wt(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function Tn(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var Nn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function Eo(e,t={}){var p;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=on(r,{physicalFile:r.filepath}),!r.parser)throw new Le(`No parser could be inferred for file "${r.filepath}".`)}else throw new Le("No parser and no file path given, couldn't infer a parser.");let n=Qe({plugins:e.plugins,showDeprecated:!0}).options,u={...Nn,...Object.fromEntries(n.filter(l=>l.default!==void 0).map(l=>[l.name,l.default]))},o=$t(r.plugins,r.parser),i=await Wt(o,r.parser);r.astFormat=i.astFormat,r.locEnd=i.locEnd,r.locStart=i.locStart;let s=(p=o.printers)!=null&&p[i.astFormat]?o:Sn(r.plugins,i.astFormat),a=await Tn(s,i.astFormat);r.printer=a;let c=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,l])=>l!==void 0)):{},D={...u,...c};for(let[l,F]of Object.entries(D))(r[l]===null||r[l]===void 0)&&(r[l]=F);return r.parser==="json"&&(r.trailingComma="none"),kn(r,n,{passThrough:Object.keys(Nn),...t})}var ne=Eo;var vn=gu(Pn(),1);async function yo(e,t){let r=await Re(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let u;try{u=await r.parse(n,t,t)}catch(o){Ao(o,e)}return{text:n,ast:u}}function Ao(e,t){let{loc:r}=e;if(r){let n=(0,vn.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=` -`+n,e.codeFrame=n,e}throw e}var De=yo;async function Ln(e,t,r,n,u){let{embeddedLanguageFormatting:o,printer:{embed:i,hasPrettierIgnore:s=()=>!1,getVisitorKeys:a}}=r;if(!i||o!=="auto")return;if(i.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let c=J(i.getVisitorKeys??a),D=[];F();let p=e.stack;for(let{print:f,node:d,pathStack:m}of D)try{e.stack=m;let C=await f(l,t,e,r);C&&u.set(d,C)}catch(C){if(globalThis.PRETTIER_DEBUG)throw C}e.stack=p;function l(f,d){return Bo(f,d,r,n)}function F(){let{node:f}=e;if(f===null||typeof f!="object"||s(e))return;for(let m of c(f))Array.isArray(f[m])?e.each(F,m):e.call(F,m);let d=i(e,r);if(d){if(typeof d=="function"){D.push({print:d,node:f,pathStack:[...e.stack]});return}u.set(f,d)}}}async function Bo(e,t,r,n){let u=await ne({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:o}=await De(e,u),i=await n(o,u);return $e(i)}function _o(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:u,locEnd:o,[Symbol.for("printedComments")]:i}=t,{node:s}=e,a=u(s),c=o(s);for(let D of n)u(D)>=a&&o(D)<=c&&i.add(D);return r.slice(a,c)}var In=_o;async function Ye(e,t){({ast:e}=await Gt(e,t));let r=new Map,n=new Or(e),u=Kr(t),o=new Map;await Ln(n,s,t,Ye,o);let i=await Rn(n,t,s,void 0,o);if(Gr(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[X,i];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[i,X]}return i;function s(c,D){return c===void 0||c===n?a(D):Array.isArray(c)?n.call(()=>a(D),...c):n.call(()=>a(D),c)}function a(c){u(n);let D=n.node;if(D==null)return"";let p=D&&typeof D=="object"&&c===void 0;if(p&&r.has(D))return r.get(D);let l=Rn(n,t,s,c,o);return p&&r.set(D,l),l}}function Rn(e,t,r,n,u){var a;let{node:o}=e,{printer:i}=t,s;switch((a=i.hasPrettierIgnore)!=null&&a.call(i,e)?s=In(e,t):u.has(o)?s=u.get(o):s=i.print(e,t,r,n),o){case t.cursorNode:s=Fe(s,c=>[X,c,X]);break;case t.nodeBeforeCursor:s=Fe(s,c=>[c,X]);break;case t.nodeAfterCursor:s=Fe(s,c=>[X,c]);break}return i.printComment&&(!i.willPrintOwnComments||!i.willPrintOwnComments(e,t))&&(s=Mr(e,s,t)),s}async function Gt(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,Vr(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function xo(e,t){let{cursorOffset:r,locStart:n,locEnd:u}=t,o=J(t.printer.getVisitorKeys),i=F=>n(F)<=r&&u(F)>=r,s=e,a=[e];for(let F of Lr(e,{getVisitorKeys:o,filter:i}))a.push(F),s=F;if(Ir(s,{getVisitorKeys:o}))return{cursorNode:s};let c,D,p=-1,l=Number.POSITIVE_INFINITY;for(;a.length>0&&(c===void 0||D===void 0);){s=a.pop();let F=c!==void 0,f=D!==void 0;for(let d of Ce(s,{getVisitorKeys:o})){if(!F){let m=u(d);m<=r&&m>p&&(c=d,p=m)}if(!f){let m=n(d);m>=r&&mi(l,a)).filter(Boolean);let c={},D=new Set(u(s));for(let l in s)!Object.prototype.hasOwnProperty.call(s,l)||o.has(l)||(D.has(l)?c[l]=i(s[l],s):c[l]=s[l]);let p=r(s,c,a);if(p!==null)return p??c}}var Yn=wo;var bo=(e,t,r)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(r);for(let n=t.length-1;n>=0;n--){let u=t[n];if(r(u,n,t))return n}return-1}},jn=bo;var ko=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function So(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(u=>$n.has(u.type)&&n.has(u))}function Un(e){let t=jn(!1,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function To(e,t,{locStart:r,locEnd:n}){let u=e.node,o=t.node;if(u===o)return{startNode:u,endNode:o};let i=r(e.node);for(let a of Un(t.parentNodes))if(r(a)>=i)o=a;else break;let s=n(t.node);for(let a of Un(e.parentNodes)){if(n(a)<=s)u=a;else break;if(u===o)break}return{startNode:u,endNode:o}}function zt(e,t,r,n,u=[],o){let{locStart:i,locEnd:s}=r,a=i(e),c=s(e);if(!(t>c||tn);let s=e.slice(n,u).search(/\S/u),a=s===-1;if(!a)for(n+=s;u>n&&!/\S/u.test(e[u-1]);--u);let c=zt(r,n,t,(F,f)=>Vn(t,F,f),[],"rangeStart"),D=a?c:zt(r,u,t,F=>Vn(t,F),[],"rangeEnd");if(!c||!D)return{rangeStart:0,rangeEnd:0};let p,l;if(ko(t)){let F=So(c,D);p=F,l=F}else({startNode:p,endNode:l}=To(c,D,t));return{rangeStart:Math.min(o(p),o(l)),rangeEnd:Math.max(i(p),i(l))}}var zn="\uFEFF",Mn=Symbol("cursor");async function Hn(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:u}=await De(e,t);t.cursorOffset>=0&&(t={...t,...Kt(n,t)});let o=await Ye(n,t,r);r>0&&(o=Ge([z,o],r,t.tabWidth));let i=me(o,t);if(r>0){let a=i.formatted.trim();i.cursorNodeStart!==void 0&&(i.cursorNodeStart-=i.formatted.indexOf(a),i.cursorNodeStart<0&&(i.cursorNodeStart=0,i.cursorNodeText=i.cursorNodeText.trimStart()),i.cursorNodeStart+i.cursorNodeText.length>a.length&&(i.cursorNodeText=i.cursorNodeText.trimEnd())),i.formatted=a+xe(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let a,c,D,p;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&i.cursorNodeText)if(D=i.cursorNodeStart,p=i.cursorNodeText,t.cursorNode)a=t.locStart(t.cursorNode),c=u.slice(a,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");a=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let C=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):u.length;c=u.slice(a,C)}else a=0,c=u,D=0,p=i.formatted;let l=t.cursorOffset-a;if(c===p)return{formatted:i.formatted,cursorOffset:D+l,comments:s};let F=c.split("");F.splice(l,0,Mn);let f=p.split(""),d=Et(F,f),m=D;for(let C of d)if(C.removed){if(C.value.includes(Mn))break}else m+=C.count;return{formatted:i.formatted,cursorOffset:m,comments:s}}return{formatted:i.formatted,cursorOffset:-1,comments:s}}async function Po(e,t){let{ast:r,text:n}=await De(e,t),{rangeStart:u,rangeEnd:o}=Wn(n,t,r),i=n.slice(u,o),s=Math.min(u,n.lastIndexOf(` -`,u)+1),a=n.slice(s,u).match(/^\s*/u)[0],c=Ee(a,t.tabWidth),D=await Hn(i,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>u&&t.cursorOffset<=o?t.cursorOffset-u:-1,endOfLine:"lf"},c),p=D.formatted.trimEnd(),{cursorOffset:l}=t;l>o?l+=p.length-i.length:D.cursorOffset>=0&&(l=D.cursorOffset+u);let F=n.slice(0,u)+p+n.slice(o);if(t.endOfLine!=="lf"){let f=xe(t.endOfLine);l>=0&&f===`\r -`&&(l+=Ct(F.slice(0,l),` -`)),F=te(!1,F,` -`,f)}return{formatted:F,cursorOffset:l,comments:D.comments}}function Ht(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Gn(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u}=t;return r=Ht(e,r,-1),n=Ht(e,n,0),u=Ht(e,u,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:u}}function Jn(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:o}=Gn(e,t),i=e.charAt(0)===zn;if(i&&(e=e.slice(1),r--,n--,u--),o==="auto"&&(o=nr(e)),e.includes("\r")){let s=a=>Ct(e.slice(0,Math.max(a,0)),`\r -`);r-=s(r),n-=s(n),u-=s(u),e=ur(e)}return{hasBOM:i,text:e,options:Gn(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:o})}}async function Kn(e,t){let r=await Re(t);return!r.hasPragma||r.hasPragma(e)}async function vo(e,t){var n;let r=await Re(t);return(n=r.hasIgnorePragma)==null?void 0:n.call(r,e)}async function Jt(e,t){let{hasBOM:r,text:n,options:u}=Jn(e,await ne(t));if(u.rangeStart>=u.rangeEnd&&n!==""||u.requirePragma&&!await Kn(n,u)||u.checkIgnorePragma&&await vo(n,u))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return u.rangeStart>0||u.rangeEnd=0&&o.cursorOffset++),o}async function qn(e,t,r){let{text:n,options:u}=Jn(e,await ne(t)),o=await De(n,u);return r&&(r.preprocessForPrint&&(o.ast=await Gt(o.ast,u)),r.massage&&(o.ast=Yn(o.ast,u))),o}async function Xn(e,t){t=await ne(t);let r=await Ye(e,t);return me(r,t)}async function Qn(e,t){let r=wr(e),{formatted:n}=await Jt(r,{...t,parser:"__js_expression"});return n}async function Zn(e,t){t=await ne(t);let{ast:r}=await De(e,t);return t.cursorOffset>=0&&(t={...t,...Kt(r,t)}),Ye(r,t)}async function eu(e,t){return me(e,await ne(t))}var qt={};dt(qt,{builders:()=>Io,printer:()=>Ro,utils:()=>Yo});var Io={join:ke,line:Me,softline:_r,hardline:z,literalline:We,group:At,conditionalGroup:Cr,fill:hr,lineSuffix:Se,lineSuffixBoundary:Ar,cursor:X,breakParent:pe,ifBreak:gr,trim:Br,indent:ie,indentIfBreak:yr,align:oe,addAlignmentToDoc:Ge,markAsRoot:mr,dedentToRoot:dr,dedent:Er,hardlineWithoutBreakParent:Te,literallineWithoutBreakParent:Bt,label:xr,concat:e=>e},Ro={printDocToString:me},Yo={willBreak:Dr,traverseDoc:le,findInDoc:Ve,mapDoc:be,removeLines:fr,stripTrailingHardline:$e,replaceEndOfLine:lr,canBreak:Fr};var tu="3.6.2";var Qt={};dt(Qt,{addDanglingComment:()=>ee,addLeadingComment:()=>se,addTrailingComment:()=>ae,getAlignmentSize:()=>Ee,getIndentSize:()=>ru,getMaxContinuousCount:()=>nu,getNextNonSpaceNonCommentCharacter:()=>uu,getNextNonSpaceNonCommentCharacterIndex:()=>Xo,getPreferredQuote:()=>iu,getStringWidth:()=>Ne,hasNewline:()=>G,hasNewlineInRange:()=>su,hasSpaces:()=>au,isNextLineEmpty:()=>ti,isNextLineEmptyAfterIndex:()=>ct,isPreviousLineEmpty:()=>Zo,makeString:()=>Du,skip:()=>he,skipEverythingButNewLine:()=>Je,skipInlineComment:()=>ye,skipNewline:()=>U,skipSpaces:()=>T,skipToLineEnd:()=>He,skipTrailingComment:()=>Ae,skipWhitespace:()=>Rr});function jo(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,u.length/t.length),0)}var nu=Mo;function Go(e,t){let r=je(e,t);return r===!1?"":e.charAt(r)}var uu=Go;var ft="'",ou='"';function Ko(e,t){let r=t===!0||t===ft?ft:ou,n=r===ft?ou:ft,u=0,o=0;for(let i of e)i===r?u++:i===n&&o++;return u>o?n:r}var iu=Ko;function zo(e,t,r){for(let n=t;ns===n?s:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(s)?s:"\\"+s));return t+o+t}var Du=Jo;function qo(e,t,r){return je(e,r(t))}function Xo(e,t){return arguments.length===2||typeof t=="number"?je(e,t):qo(...arguments)}function Qo(e,t,r){return Pe(e,r(t))}function Zo(e,t){return arguments.length===2||typeof t=="number"?Pe(e,t):Qo(...arguments)}function ei(e,t,r){return ct(e,r(t))}function ti(e,t){return arguments.length===2||typeof t=="number"?ct(e,t):ei(...arguments)}function ce(e,t=1){return async(...r)=>{let n=r[t]??{},u=n.plugins??[];return r[t]={...n,plugins:Array.isArray(u)?u:Object.values(u)},e(...r)}}var cu=ce(Jt);async function fu(e,t){let{formatted:r}=await cu(e,{...t,cursorOffset:-1});return r}async function ri(e,t){return await fu(e,t)===e}var ni=ce(Qe,0),ui={parse:ce(qn),formatAST:ce(Xn),formatDoc:ce(Qn),printToDoc:ce(Zn),printDocToString:ce(eu)};var xf=Zt;export{ui as __debug,ri as check,xf as default,qt as doc,fu as format,cu as formatWithCursor,ni as getSupportInfo,Qt as util,tu as version}; diff --git a/node_modules/pstree.remy/.travis.yml b/node_modules/pstree.remy/.travis.yml deleted file mode 100755 index 5bf093e..0000000 --- a/node_modules/pstree.remy/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -cache: - directories: - - ~/.npm -notifications: - email: false -node_js: - - '8' diff --git a/node_modules/pstree.remy/LICENSE b/node_modules/pstree.remy/LICENSE deleted file mode 100755 index e83bea6..0000000 --- a/node_modules/pstree.remy/LICENSE +++ /dev/null @@ -1,7 +0,0 @@ -The MIT License (MIT) -Copyright © 2019 Remy Sharp, https://remysharp.com -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/pstree.remy/README.md b/node_modules/pstree.remy/README.md deleted file mode 100755 index 5f44c62..0000000 --- a/node_modules/pstree.remy/README.md +++ /dev/null @@ -1,26 +0,0 @@ -# pstree.remy - -> Cross platform ps-tree (including unix flavours without ps) - -## Installation - -```shel -npm install pstree.remy -``` - -## Usage - -```js -const psTree = psTree require('pstree.remy'); - -psTree(PID, (err, pids) => { - if (err) { - console.error(err); - } - console.log(pids) -}); - -console.log(psTree.hasPS - ? "This platform has the ps shell command" - : "This platform does not have the ps shell command"); -``` diff --git a/node_modules/pstree.remy/lib/index.js b/node_modules/pstree.remy/lib/index.js deleted file mode 100755 index 743e997..0000000 --- a/node_modules/pstree.remy/lib/index.js +++ /dev/null @@ -1,37 +0,0 @@ -const exec = require('child_process').exec; -const tree = require('./tree'); -const utils = require('./utils'); -var hasPS = true; - -// discover if the OS has `ps`, and therefore can use psTree -exec('ps', (error) => { - module.exports.hasPS = hasPS = !error; -}); - -module.exports = function main(pid, callback) { - if (typeof pid === 'number') { - pid = pid.toString(); - } - - if (hasPS && !process.env.NO_PS) { - return tree(pid, callback); - } - - utils - .getStat() - .then(utils.tree) - .then((tree) => utils.pidsForTree(tree, pid)) - .then((res) => - callback( - null, - res.map((p) => p.PID) - ) - ) - .catch((error) => callback(error)); -}; - -if (!module.parent) { - module.exports(process.argv[2], (e, pids) => console.log(pids)); -} - -module.exports.hasPS = hasPS; diff --git a/node_modules/pstree.remy/lib/tree.js b/node_modules/pstree.remy/lib/tree.js deleted file mode 100755 index bac7cce..0000000 --- a/node_modules/pstree.remy/lib/tree.js +++ /dev/null @@ -1,37 +0,0 @@ -const spawn = require('child_process').spawn; - -module.exports = function (rootPid, callback) { - const pidsOfInterest = new Set([parseInt(rootPid, 10)]); - var output = ''; - - // *nix - const ps = spawn('ps', ['-A', '-o', 'ppid,pid']); - ps.stdout.on('data', (data) => { - output += data.toString('ascii'); - }); - - ps.on('close', () => { - try { - const res = output - .split('\n') - .slice(1) - .map((_) => _.trim()) - .reduce((acc, line) => { - const pids = line.split(/\s+/); - const ppid = parseInt(pids[0], 10); - - if (pidsOfInterest.has(ppid)) { - const pid = parseInt(pids[1], 10); - acc.push(pid); - pidsOfInterest.add(pid); - } - - return acc; - }, []); - - callback(null, res); - } catch (e) { - callback(e, null); - } - }); -}; diff --git a/node_modules/pstree.remy/lib/utils.js b/node_modules/pstree.remy/lib/utils.js deleted file mode 100755 index 8fa5719..0000000 --- a/node_modules/pstree.remy/lib/utils.js +++ /dev/null @@ -1,53 +0,0 @@ -const spawn = require('child_process').spawn; - -module.exports = { tree, pidsForTree, getStat }; - -function getStat() { - return new Promise((resolve) => { - const command = `ls /proc | grep -E '^[0-9]+$' | xargs -I{} cat /proc/{}/stat`; - const spawned = spawn('sh', ['-c', command], { - stdio: ['pipe', 'pipe', 'pipe'], - }); - - var res = ''; - spawned.stdout.on('data', (data) => (res += data)); - spawned.on('close', () => resolve(res)); - }); -} - -function template(s) { - var stat = null; - // 'pid', 'comm', 'state', 'ppid', 'pgrp' - // %d (%s) %c %d %d - s.replace( - /(\d+) \((.*?)\)\s(.+?)\s(\d+)\s/g, - (all, PID, COMMAND, STAT, PPID) => { - stat = { PID, COMMAND, PPID, STAT }; - } - ); - - return stat; -} - -function tree(stats) { - const processes = stats.split('\n').map(template).filter(Boolean); - - return processes; -} - -function pidsForTree(tree, pid) { - if (typeof pid === 'number') { - pid = pid.toString(); - } - const parents = [pid]; - const pids = []; - - tree.forEach((proc) => { - if (parents.indexOf(proc.PPID) !== -1) { - parents.push(proc.PID); - pids.push(proc); - } - }); - - return pids; -} diff --git a/node_modules/pstree.remy/package.json b/node_modules/pstree.remy/package.json deleted file mode 100755 index 35c7068..0000000 --- a/node_modules/pstree.remy/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "pstree.remy", - "version": "1.1.8", - "main": "lib/index.js", - "prettier": { - "trailingComma": "es5", - "semi": true, - "singleQuote": true - }, - "scripts": { - "test": "tap tests/*.test.js", - "_prepublish": "npm test" - }, - "keywords": [ - "ps", - "pstree", - "ps tree" - ], - "author": "Remy Sharp", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/remy/pstree.git" - }, - "devDependencies": { - "tap": "^11.0.0" - }, - "directories": { - "test": "tests" - }, - "dependencies": {}, - "description": "Collects the full tree of processes from /proc" -} diff --git a/node_modules/pstree.remy/tests/fixtures/index.js b/node_modules/pstree.remy/tests/fixtures/index.js deleted file mode 100755 index 4cdbcb1..0000000 --- a/node_modules/pstree.remy/tests/fixtures/index.js +++ /dev/null @@ -1,13 +0,0 @@ -const spawn = require('child_process').spawn; -function run() { - spawn( - 'sh', - ['-c', 'node -e "setInterval(() => console.log(`running`), 200)"'], - { - stdio: 'pipe', - } - ); -} - -var runCallCount = process.argv[2] || 1; -for (var i = 0; i < runCallCount; i++) run(); diff --git a/node_modules/pstree.remy/tests/fixtures/out1 b/node_modules/pstree.remy/tests/fixtures/out1 deleted file mode 100755 index abfe581..0000000 --- a/node_modules/pstree.remy/tests/fixtures/out1 +++ /dev/null @@ -1,10 +0,0 @@ -1 (npm) S 0 1 1 34816 1 4210944 11112 0 0 0 45 8 0 0 20 0 10 0 330296 1089871872 11809 18446744073709551615 4194304 29343848 140726436642896 0 0 0 0 4096 2072112895 0 0 0 17 0 0 0 0 0 0 31441000 31537208 37314560 140726436650815 140726436650847 140726436650847 140726436650986 0 -15 (sh) S 1 1 1 34816 1 4210688 115 0 0 0 0 0 0 0 20 0 1 0 330372 4399104 187 18446744073709551615 94374393548800 94374393655428 140722913272992 0 0 0 0 0 65538 0 0 0 17 0 0 0 0 0 0 94374395756424 94374395761184 94374404673536 140722913278928 140722913278959 140722913278959 140722913284080 0 -16 (node) S 15 1 1 34816 1 4210688 6930 103 0 0 32 2 0 0 20 0 10 0 330373 1068478464 8412 18446744073709551615 4194304 29343848 140727228046064 0 0 0 0 4096 134300162 0 0 0 17 1 0 0 1 0 0 31441000 31537208 52584448 140727228050313 140727228050383 140727228050383 140727228055530 0 -27 (sh) S 16 1 1 34816 1 4210688 111 0 0 0 0 0 0 0 20 0 1 0 330410 4399104 193 18446744073709551615 94848235986944 94848236093572 140727019991184 0 0 0 0 0 65538 0 0 0 17 1 0 0 0 0 0 94848238194568 94848238199328 94848261660672 140727019998122 140727019998165 140727019998165 140727020003312 0 -28 (node) S 27 1 1 34816 1 4210688 3576 268 0 0 12 2 0 0 20 0 10 0 330411 930213888 6760 18446744073709551615 4194304 29343848 140726559664992 0 0 0 0 4096 134300162 0 0 0 17 1 0 0 0 0 0 31441000 31537208 32591872 140726559669117 140726559669199 140726559669199 140726559674346 0 -39 (node) S 28 1 1 34816 1 4210688 47517 0 0 0 151 9 0 0 20 0 6 0 330427 985739264 31859 18446744073709551615 4194304 29343848 140737324503920 0 0 0 0 4096 134234626 0 0 0 17 0 0 0 0 0 0 31441000 31537208 51585024 140737324510060 140737324510159 140737324510159 140737324515306 0 -45 (bash) S 0 45 45 34817 50 4210944 752 256 0 0 2 0 0 0 20 0 1 0 331039 18628608 789 18446744073709551615 4194304 5242124 140724425887696 0 0 0 65536 3670020 1266777851 0 0 0 17 1 0 0 0 0 0 7341384 7388228 30310400 140724425891678 140724425891683 140724425891683 140724425891822 0 -cat: /proc/50/stat: No such file or directory -cat: /proc/51/stat: No such file or directory -52 (xargs) S 45 50 45 34817 50 4210688 179 661 0 0 0 0 0 0 20 0 1 0 331544 4608000 346 18446744073709551615 94587588550656 94587588614028 140735223856048 0 0 0 0 0 2560 0 0 0 17 1 0 0 0 0 0 94587590711464 94587590713504 94587603169280 140735223861006 140735223861035 140735223861035 140735223861225 0 diff --git a/node_modules/pstree.remy/tests/fixtures/out2 b/node_modules/pstree.remy/tests/fixtures/out2 deleted file mode 100755 index 3b31137..0000000 --- a/node_modules/pstree.remy/tests/fixtures/out2 +++ /dev/null @@ -1,29 +0,0 @@ -cat: /proc/4087/stat: No such file or directory -cat: /proc/4088/stat: No such file or directory -1 (init) S 0 1 1 0 -1 4210944 9227 55994 29 319 7 5 68 16 20 0 1 0 1286281 33660928 855 18446744073709551615 1 1 0 0 0 0 0 4096 536962595 0 0 0 17 4 0 0 3 0 0 0 0 0 0 0 0 0 0 -1032 (ntpd) S 1 1032 1032 0 -1 4211008 178 0 1 0 0 0 0 0 20 0 1 0 1287033 25743360 1058 18446744073709551615 1 1 0 0 0 0 0 4096 27207 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 -126 (irqbalance) S 1 126 126 0 -1 1077952832 1217 0 0 0 1 6 0 0 20 0 1 0 1286749 20189184 647 18446744073709551615 1 1 0 0 0 0 0 0 3 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 -181 (mysqld) S 1 181 181 0 -1 4210944 6399 0 46 0 8 6 0 0 20 0 22 0 1286761 748453888 14476 18446744073709551615 1 1 0 0 0 0 552967 4096 26345 0 0 0 17 4 0 0 10 0 0 0 0 0 0 0 0 0 0 -194 (memcached) S 1 187 187 0 -1 4210944 252 0 4 0 0 0 0 0 20 0 6 0 1286766 333221888 648 18446744073709551615 1 1 0 0 0 0 0 4096 2 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 -243 (dbus-daemon) S 1 243 243 0 -1 4211008 67 0 0 0 0 0 0 0 20 0 1 0 1286779 40087552 598 18446744073709551615 1 1 0 0 0 0 0 0 16385 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 -254 (rsyslogd) S 1 254 254 0 -1 4211008 107 0 0 0 2 2 0 0 20 0 3 0 1286782 186601472 696 18446744073709551615 1 1 0 0 0 0 0 16781830 1133601 0 0 0 17 5 0 0 0 0 0 0 0 0 0 0 0 0 0 -265 (systemd-logind) S 1 265 265 0 -1 4210944 276 0 2 0 0 0 0 0 20 0 1 0 1286786 35880960 720 18446744073709551615 1 1 0 0 0 0 0 0 0 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 -333 (postgres) S 1 303 303 0 -1 4210688 3169 3466 15 18 0 1 1 1 20 0 1 0 1286817 156073984 5002 18446744073709551615 1 1 0 0 0 0 0 19935232 84487 0 0 0 17 5 0 0 1 0 0 0 0 0 0 0 0 0 0 -359 (postgres) S 333 359 359 0 -1 4210752 90 0 0 0 0 0 0 0 20 0 1 0 1286822 156073984 827 18446744073709551615 1 1 0 0 0 0 0 16805888 2567 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 -360 (postgres) S 333 360 360 0 -1 4210752 119 0 0 0 0 0 0 0 20 0 1 0 1286822 156073984 827 18446744073709551615 1 1 0 0 0 0 0 16791554 16901 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 -361 (postgres) S 333 361 361 0 -1 4210752 87 0 0 0 0 0 0 0 20 0 1 0 1286822 156073984 827 18446744073709551615 1 1 0 0 0 0 0 16791552 16903 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 -362 (postgres) S 333 362 362 0 -1 4210752 292 0 3 0 0 0 0 0 20 0 1 0 1286822 156930048 1373 18446744073709551615 1 1 0 0 0 0 0 19927040 27271 0 0 0 17 5 0 0 0 0 0 0 0 0 0 0 0 0 0 -363 (postgres) S 333 363 363 0 -1 4210752 82 0 0 0 0 0 0 0 20 0 1 0 1286822 115924992 887 18446744073709551615 1 1 0 0 0 0 0 16808450 5 0 0 0 17 5 0 0 0 0 0 0 0 0 0 0 0 0 0 -4050 (npm) S 50 50 50 34817 50 4210688 5109 0 0 0 36 3 0 0 20 0 10 0 1292968 738025472 10051 18446744073709551615 4194304 33165900 140723623956256 0 0 0 0 4096 134300162 0 0 0 17 4 0 0 0 0 0 35263056 35370992 48369664 140723623964237 140723623964294 140723623964294 140723623968712 0 -4060 (sh) S 4050 50 50 34817 50 4210688 121 0 0 0 0 0 0 0 20 0 1 0 1293007 4579328 174 18446744073709551615 94347643936768 94347644049516 140735136055088 0 0 0 0 0 65538 1 0 0 17 5 0 0 0 0 0 94347646148008 94347646153216 94347660038144 140735136063095 140735136063129 140735136063129 140735136071664 0 -4061 (node) S 4060 50 50 34817 50 4210688 6501 0 0 0 42 2 0 0 20 0 6 0 1293008 705769472 10211 18446744073709551615 4194304 33165900 140730532686288 0 0 0 0 4096 2072111671 0 0 0 17 5 0 0 0 0 0 35263056 35370992 45867008 140730532695579 140730532695657 140730532695657 140730532704200 0 -4067 (node) S 4061 50 50 34817 50 4210688 6746 221 0 0 38 3 0 0 20 0 10 0 1293051 738910208 10527 18446744073709551615 4194304 33165900 140724824971632 0 0 0 0 4096 2072111671 0 0 0 17 4 0 0 0 0 0 35263056 35370992 68595712 140724824980995 140724824981063 140724824981063 140724824989640 0 -4079 (sh) S 4067 50 50 34817 50 4210688 118 0 0 0 0 0 0 0 20 0 1 0 1293092 4579328 194 18446744073709551615 94573702131712 94573702244460 140724712357120 0 0 0 0 0 65538 1 0 0 17 4 0 0 0 0 0 94573704342952 94573704348160 94573718511616 140724712361487 140724712361583 140724712361583 140724712370160 0 -4080 (node) S 4079 50 50 34817 50 4210688 2428 0 0 0 8 1 0 0 20 0 6 0 1293093 693059584 7251 18446744073709551615 4194304 33165900 140726023392816 0 0 0 0 4096 134234626 0 0 0 17 5 0 0 0 0 0 35263056 35370992 55226368 140726023396847 140726023396935 140726023396935 140726023405512 0 -4086 (sh) S 4067 50 50 34817 50 4210688 131 244 0 0 0 0 0 0 20 0 1 0 1293143 4579328 200 18446744073709551615 94347550273536 94347550386284 140737219399136 0 0 0 0 0 65538 1 0 0 17 5 0 0 0 0 0 94347552484776 94347552489984 94347554299904 140737219403308 140737219403375 140737219403375 140737219411952 0 -4089 (xargs) S 4086 50 50 34817 50 4210688 333 1924 0 0 0 0 0 0 20 0 1 0 1293143 17600512 477 18446744073709551615 4194304 4232732 140721633759248 0 0 0 0 0 0 1 0 0 17 5 0 0 0 0 0 6331920 6332980 32182272 140721633762891 140721633762920 140721633762920 140721633771497 0 -50 (bash) S 0 50 50 34817 50 4210944 43914 1032463 9 705 44 21 4213 818 20 0 1 0 1286336 42266624 3599 18446744073709551615 4194304 5173404 140732749083280 0 0 0 65536 4 1132560123 1 0 0 17 4 0 0 410 0 0 7273968 7310504 21196800 140732749086490 140732749086517 140732749086517 140732749086702 0 -79 (acpid) S 1 79 79 0 -1 4210752 46 0 0 0 0 0 0 0 20 0 1 0 1286717 4493312 407 18446744073709551615 1 1 0 0 0 0 0 4096 16391 0 0 0 17 5 0 0 0 0 0 0 0 0 0 0 0 0 0 -83 (sshd) S 1 83 83 0 -1 4210944 354 0 27 0 0 0 0 0 20 0 1 0 1286718 62873600 1290 18446744073709551615 1 1 0 0 0 0 0 4096 81925 0 0 0 17 4 0 0 30 0 0 0 0 0 0 0 0 0 0 -94 (cron) S 1 94 94 0 -1 1077952576 103 449 0 1 0 0 0 0 20 0 1 0 1286743 24240128 559 18446744073709551615 1 1 0 0 0 0 0 0 65537 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 -95 (atd) S 1 95 95 0 -1 1077952576 28 0 0 0 0 0 0 0 20 0 1 0 1286743 19615744 41 18446744073709551615 1 1 0 0 0 0 0 0 81923 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 diff --git a/node_modules/pstree.remy/tests/index.test.js b/node_modules/pstree.remy/tests/index.test.js deleted file mode 100755 index 50096b9..0000000 --- a/node_modules/pstree.remy/tests/index.test.js +++ /dev/null @@ -1,51 +0,0 @@ -const tap = require('tap'); -const test = tap.test; -const readFile = require('fs').readFileSync; -const spawn = require('child_process').spawn; -const pstree = require('../'); -const { tree, pidsForTree, getStat } = require('../lib/utils'); - -if (process.platform !== 'darwin') { - test('reads from /proc', async (t) => { - const ps = await getStat(); - t.ok(ps.split('\n').length > 1); - }); -} - -test('tree for live env', async (t) => { - const pid = 4079; - const fixture = readFile(__dirname + '/fixtures/out2', 'utf8'); - const ps = await tree(fixture); - t.deepEqual( - pidsForTree(ps, pid).map((_) => _.PID), - ['4080'] - ); -}); - -function testTree(t, runCallCount) { - const sub = spawn('node', [`${__dirname}/fixtures/index.js`, runCallCount], { - stdio: 'pipe', - }); - setTimeout(() => { - const pid = sub.pid; - - pstree(pid, (error, pids) => { - pids.concat([pid]).forEach((p) => { - spawn('kill', ['-s', 'SIGTERM', p]); - }); - - // the fixture launches `sh` which launches node which is why we - // are looking for two processes. - // Important: IDKW but MacOS seems to skip the `sh` process. no idea. - t.equal(pids.length, runCallCount * 2); - t.end(); - }); - }, 1000); -} - -test('can read full process tree', (t) => { - testTree(t, 1); -}); -test('can read full process tree with multiple processes', (t) => { - testTree(t, 2); -}); diff --git a/node_modules/readdirp/LICENSE b/node_modules/readdirp/LICENSE deleted file mode 100755 index 037cbb4..0000000 --- a/node_modules/readdirp/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller (https://paulmillr.com) - -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/readdirp/README.md b/node_modules/readdirp/README.md deleted file mode 100755 index 465593c..0000000 --- a/node_modules/readdirp/README.md +++ /dev/null @@ -1,122 +0,0 @@ -# readdirp [![Weekly downloads](https://img.shields.io/npm/dw/readdirp.svg)](https://github.com/paulmillr/readdirp) - -Recursive version of [fs.readdir](https://nodejs.org/api/fs.html#fs_fs_readdir_path_options_callback). Exposes a **stream API** and a **promise API**. - - -```sh -npm install readdirp -``` - -```javascript -const readdirp = require('readdirp'); - -// Use streams to achieve small RAM & CPU footprint. -// 1) Streams example with for-await. -for await (const entry of readdirp('.')) { - const {path} = entry; - console.log(`${JSON.stringify({path})}`); -} - -// 2) Streams example, non for-await. -// Print out all JS files along with their size within the current folder & subfolders. -readdirp('.', {fileFilter: '*.js', alwaysStat: true}) - .on('data', (entry) => { - const {path, stats: {size}} = entry; - console.log(`${JSON.stringify({path, size})}`); - }) - // Optionally call stream.destroy() in `warn()` in order to abort and cause 'close' to be emitted - .on('warn', error => console.error('non-fatal error', error)) - .on('error', error => console.error('fatal error', error)) - .on('end', () => console.log('done')); - -// 3) Promise example. More RAM and CPU than streams / for-await. -const files = await readdirp.promise('.'); -console.log(files.map(file => file.path)); - -// Other options. -readdirp('test', { - fileFilter: '*.js', - directoryFilter: ['!.git', '!*modules'] - // directoryFilter: (di) => di.basename.length === 9 - type: 'files_directories', - depth: 1 -}); -``` - -For more examples, check out `examples` directory. - -## API - -`const stream = readdirp(root[, options])` — **Stream API** - -- Reads given root recursively and returns a `stream` of [entry infos](#entryinfo) -- Optionally can be used like `for await (const entry of stream)` with node.js 10+ (`asyncIterator`). -- `on('data', (entry) => {})` [entry info](#entryinfo) for every file / dir. -- `on('warn', (error) => {})` non-fatal `Error` that prevents a file / dir from being processed. Example: inaccessible to the user. -- `on('error', (error) => {})` fatal `Error` which also ends the stream. Example: illegal options where passed. -- `on('end')` — we are done. Called when all entries were found and no more will be emitted. -- `on('close')` — stream is destroyed via `stream.destroy()`. - Could be useful if you want to manually abort even on a non fatal error. - At that point the stream is no longer `readable` and no more entries, warning or errors are emitted -- To learn more about streams, consult the very detailed [nodejs streams documentation](https://nodejs.org/api/stream.html) - or the [stream-handbook](https://github.com/substack/stream-handbook) - -`const entries = await readdirp.promise(root[, options])` — **Promise API**. Returns a list of [entry infos](#entryinfo). - -First argument is awalys `root`, path in which to start reading and recursing into subdirectories. - -### options - -- `fileFilter: ["*.js"]`: filter to include or exclude files. A `Function`, Glob string or Array of glob strings. - - **Function**: a function that takes an entry info as a parameter and returns true to include or false to exclude the entry - - **Glob string**: a string (e.g., `*.js`) which is matched using [picomatch](https://github.com/micromatch/picomatch), so go there for more - information. Globstars (`**`) are not supported since specifying a recursive pattern for an already recursive function doesn't make sense. Negated globs (as explained in the minimatch documentation) are allowed, e.g., `!*.txt` matches everything but text files. - - **Array of glob strings**: either need to be all inclusive or all exclusive (negated) patterns otherwise an error is thrown. - `['*.json', '*.js']` includes all JavaScript and Json files. - `['!.git', '!node_modules']` includes all directories except the '.git' and 'node_modules'. - - Directories that do not pass a filter will not be recursed into. -- `directoryFilter: ['!.git']`: filter to include/exclude directories found and to recurse into. Directories that do not pass a filter will not be recursed into. -- `depth: 5`: depth at which to stop recursing even if more subdirectories are found -- `type: 'files'`: determines if data events on the stream should be emitted for `'files'` (default), `'directories'`, `'files_directories'`, or `'all'`. Setting to `'all'` will also include entries for other types of file descriptors like character devices, unix sockets and named pipes. -- `alwaysStat: false`: always return `stats` property for every file. Default is `false`, readdirp will return `Dirent` entries. Setting it to `true` can double readdir execution time - use it only when you need file `size`, `mtime` etc. Cannot be enabled on node <10.10.0. -- `lstat: false`: include symlink entries in the stream along with files. When `true`, `fs.lstat` would be used instead of `fs.stat` - -### `EntryInfo` - -Has the following properties: - -- `path: 'assets/javascripts/react.js'`: path to the file/directory (relative to given root) -- `fullPath: '/Users/dev/projects/app/assets/javascripts/react.js'`: full path to the file/directory found -- `basename: 'react.js'`: name of the file/directory -- `dirent: fs.Dirent`: built-in [dir entry object](https://nodejs.org/api/fs.html#fs_class_fs_dirent) - only with `alwaysStat: false` -- `stats: fs.Stats`: built in [stat object](https://nodejs.org/api/fs.html#fs_class_fs_stats) - only with `alwaysStat: true` - -## Changelog - -- 3.5 (Oct 13, 2020) disallows recursive directory-based symlinks. - Before, it could have entered infinite loop. -- 3.4 (Mar 19, 2020) adds support for directory-based symlinks. -- 3.3 (Dec 6, 2019) stabilizes RAM consumption and enables perf management with `highWaterMark` option. Fixes race conditions related to `for-await` looping. -- 3.2 (Oct 14, 2019) improves performance by 250% and makes streams implementation more idiomatic. -- 3.1 (Jul 7, 2019) brings `bigint` support to `stat` output on Windows. This is backwards-incompatible for some cases. Be careful. It you use it incorrectly, you'll see "TypeError: Cannot mix BigInt and other types, use explicit conversions". -- 3.0 brings huge performance improvements and stream backpressure support. -- Upgrading 2.x to 3.x: - - Signature changed from `readdirp(options)` to `readdirp(root, options)` - - Replaced callback API with promise API. - - Renamed `entryType` option to `type` - - Renamed `entryType: 'both'` to `'files_directories'` - - `EntryInfo` - - Renamed `stat` to `stats` - - Emitted only when `alwaysStat: true` - - `dirent` is emitted instead of `stats` by default with `alwaysStat: false` - - Renamed `name` to `basename` - - Removed `parentDir` and `fullParentDir` properties -- Supported node.js versions: - - 3.x: node 8+ - - 2.x: node 0.6+ - -## License - -Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller () - -MIT License, see [LICENSE](LICENSE) file. diff --git a/node_modules/readdirp/index.d.ts b/node_modules/readdirp/index.d.ts deleted file mode 100755 index cbbd76c..0000000 --- a/node_modules/readdirp/index.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -// TypeScript Version: 3.2 - -/// - -import * as fs from 'fs'; -import { Readable } from 'stream'; - -declare namespace readdir { - interface EntryInfo { - path: string; - fullPath: string; - basename: string; - stats?: fs.Stats; - dirent?: fs.Dirent; - } - - interface ReaddirpOptions { - root?: string; - fileFilter?: string | string[] | ((entry: EntryInfo) => boolean); - directoryFilter?: string | string[] | ((entry: EntryInfo) => boolean); - type?: 'files' | 'directories' | 'files_directories' | 'all'; - lstat?: boolean; - depth?: number; - alwaysStat?: boolean; - } - - interface ReaddirpStream extends Readable, AsyncIterable { - read(): EntryInfo; - [Symbol.asyncIterator](): AsyncIterableIterator; - } - - function promise( - root: string, - options?: ReaddirpOptions - ): Promise; -} - -declare function readdir( - root: string, - options?: readdir.ReaddirpOptions -): readdir.ReaddirpStream; - -export = readdir; diff --git a/node_modules/readdirp/index.js b/node_modules/readdirp/index.js deleted file mode 100755 index cf739b2..0000000 --- a/node_modules/readdirp/index.js +++ /dev/null @@ -1,287 +0,0 @@ -'use strict'; - -const fs = require('fs'); -const { Readable } = require('stream'); -const sysPath = require('path'); -const { promisify } = require('util'); -const picomatch = require('picomatch'); - -const readdir = promisify(fs.readdir); -const stat = promisify(fs.stat); -const lstat = promisify(fs.lstat); -const realpath = promisify(fs.realpath); - -/** - * @typedef {Object} EntryInfo - * @property {String} path - * @property {String} fullPath - * @property {fs.Stats=} stats - * @property {fs.Dirent=} dirent - * @property {String} basename - */ - -const BANG = '!'; -const RECURSIVE_ERROR_CODE = 'READDIRP_RECURSIVE_ERROR'; -const NORMAL_FLOW_ERRORS = new Set(['ENOENT', 'EPERM', 'EACCES', 'ELOOP', RECURSIVE_ERROR_CODE]); -const FILE_TYPE = 'files'; -const DIR_TYPE = 'directories'; -const FILE_DIR_TYPE = 'files_directories'; -const EVERYTHING_TYPE = 'all'; -const ALL_TYPES = [FILE_TYPE, DIR_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE]; - -const isNormalFlowError = error => NORMAL_FLOW_ERRORS.has(error.code); -const [maj, min] = process.versions.node.split('.').slice(0, 2).map(n => Number.parseInt(n, 10)); -const wantBigintFsStats = process.platform === 'win32' && (maj > 10 || (maj === 10 && min >= 5)); - -const normalizeFilter = filter => { - if (filter === undefined) return; - if (typeof filter === 'function') return filter; - - if (typeof filter === 'string') { - const glob = picomatch(filter.trim()); - return entry => glob(entry.basename); - } - - if (Array.isArray(filter)) { - const positive = []; - const negative = []; - for (const item of filter) { - const trimmed = item.trim(); - if (trimmed.charAt(0) === BANG) { - negative.push(picomatch(trimmed.slice(1))); - } else { - positive.push(picomatch(trimmed)); - } - } - - if (negative.length > 0) { - if (positive.length > 0) { - return entry => - positive.some(f => f(entry.basename)) && !negative.some(f => f(entry.basename)); - } - return entry => !negative.some(f => f(entry.basename)); - } - return entry => positive.some(f => f(entry.basename)); - } -}; - -class ReaddirpStream extends Readable { - static get defaultOptions() { - return { - root: '.', - /* eslint-disable no-unused-vars */ - fileFilter: (path) => true, - directoryFilter: (path) => true, - /* eslint-enable no-unused-vars */ - type: FILE_TYPE, - lstat: false, - depth: 2147483648, - alwaysStat: false - }; - } - - constructor(options = {}) { - super({ - objectMode: true, - autoDestroy: true, - highWaterMark: options.highWaterMark || 4096 - }); - const opts = { ...ReaddirpStream.defaultOptions, ...options }; - const { root, type } = opts; - - this._fileFilter = normalizeFilter(opts.fileFilter); - this._directoryFilter = normalizeFilter(opts.directoryFilter); - - const statMethod = opts.lstat ? lstat : stat; - // Use bigint stats if it's windows and stat() supports options (node 10+). - if (wantBigintFsStats) { - this._stat = path => statMethod(path, { bigint: true }); - } else { - this._stat = statMethod; - } - - this._maxDepth = opts.depth; - this._wantsDir = [DIR_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type); - this._wantsFile = [FILE_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type); - this._wantsEverything = type === EVERYTHING_TYPE; - this._root = sysPath.resolve(root); - this._isDirent = ('Dirent' in fs) && !opts.alwaysStat; - this._statsProp = this._isDirent ? 'dirent' : 'stats'; - this._rdOptions = { encoding: 'utf8', withFileTypes: this._isDirent }; - - // Launch stream with one parent, the root dir. - this.parents = [this._exploreDir(root, 1)]; - this.reading = false; - this.parent = undefined; - } - - async _read(batch) { - if (this.reading) return; - this.reading = true; - - try { - while (!this.destroyed && batch > 0) { - const { path, depth, files = [] } = this.parent || {}; - - if (files.length > 0) { - const slice = files.splice(0, batch).map(dirent => this._formatEntry(dirent, path)); - for (const entry of await Promise.all(slice)) { - if (this.destroyed) return; - - const entryType = await this._getEntryType(entry); - if (entryType === 'directory' && this._directoryFilter(entry)) { - if (depth <= this._maxDepth) { - this.parents.push(this._exploreDir(entry.fullPath, depth + 1)); - } - - if (this._wantsDir) { - this.push(entry); - batch--; - } - } else if ((entryType === 'file' || this._includeAsFile(entry)) && this._fileFilter(entry)) { - if (this._wantsFile) { - this.push(entry); - batch--; - } - } - } - } else { - const parent = this.parents.pop(); - if (!parent) { - this.push(null); - break; - } - this.parent = await parent; - if (this.destroyed) return; - } - } - } catch (error) { - this.destroy(error); - } finally { - this.reading = false; - } - } - - async _exploreDir(path, depth) { - let files; - try { - files = await readdir(path, this._rdOptions); - } catch (error) { - this._onError(error); - } - return { files, depth, path }; - } - - async _formatEntry(dirent, path) { - let entry; - try { - const basename = this._isDirent ? dirent.name : dirent; - const fullPath = sysPath.resolve(sysPath.join(path, basename)); - entry = { path: sysPath.relative(this._root, fullPath), fullPath, basename }; - entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath); - } catch (err) { - this._onError(err); - } - return entry; - } - - _onError(err) { - if (isNormalFlowError(err) && !this.destroyed) { - this.emit('warn', err); - } else { - this.destroy(err); - } - } - - async _getEntryType(entry) { - // entry may be undefined, because a warning or an error were emitted - // and the statsProp is undefined - const stats = entry && entry[this._statsProp]; - if (!stats) { - return; - } - if (stats.isFile()) { - return 'file'; - } - if (stats.isDirectory()) { - return 'directory'; - } - if (stats && stats.isSymbolicLink()) { - const full = entry.fullPath; - try { - const entryRealPath = await realpath(full); - const entryRealPathStats = await lstat(entryRealPath); - if (entryRealPathStats.isFile()) { - return 'file'; - } - if (entryRealPathStats.isDirectory()) { - const len = entryRealPath.length; - if (full.startsWith(entryRealPath) && full.substr(len, 1) === sysPath.sep) { - const recursiveError = new Error( - `Circular symlink detected: "${full}" points to "${entryRealPath}"` - ); - recursiveError.code = RECURSIVE_ERROR_CODE; - return this._onError(recursiveError); - } - return 'directory'; - } - } catch (error) { - this._onError(error); - } - } - } - - _includeAsFile(entry) { - const stats = entry && entry[this._statsProp]; - - return stats && this._wantsEverything && !stats.isDirectory(); - } -} - -/** - * @typedef {Object} ReaddirpArguments - * @property {Function=} fileFilter - * @property {Function=} directoryFilter - * @property {String=} type - * @property {Number=} depth - * @property {String=} root - * @property {Boolean=} lstat - * @property {Boolean=} bigint - */ - -/** - * Main function which ends up calling readdirRec and reads all files and directories in given root recursively. - * @param {String} root Root directory - * @param {ReaddirpArguments=} options Options to specify root (start directory), filters and recursion depth - */ -const readdirp = (root, options = {}) => { - let type = options.entryType || options.type; - if (type === 'both') type = FILE_DIR_TYPE; // backwards-compatibility - if (type) options.type = type; - if (!root) { - throw new Error('readdirp: root argument is required. Usage: readdirp(root, options)'); - } else if (typeof root !== 'string') { - throw new TypeError('readdirp: root argument must be a string. Usage: readdirp(root, options)'); - } else if (type && !ALL_TYPES.includes(type)) { - throw new Error(`readdirp: Invalid type passed. Use one of ${ALL_TYPES.join(', ')}`); - } - - options.root = root; - return new ReaddirpStream(options); -}; - -const readdirpPromise = (root, options = {}) => { - return new Promise((resolve, reject) => { - const files = []; - readdirp(root, options) - .on('data', entry => files.push(entry)) - .on('end', () => resolve(files)) - .on('error', error => reject(error)); - }); -}; - -readdirp.promise = readdirpPromise; -readdirp.ReaddirpStream = ReaddirpStream; -readdirp.default = readdirp; - -module.exports = readdirp; diff --git a/node_modules/readdirp/package.json b/node_modules/readdirp/package.json deleted file mode 100755 index dba5388..0000000 --- a/node_modules/readdirp/package.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "name": "readdirp", - "description": "Recursive version of fs.readdir with streaming API.", - "version": "3.6.0", - "homepage": "https://github.com/paulmillr/readdirp", - "repository": { - "type": "git", - "url": "git://github.com/paulmillr/readdirp.git" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/paulmillr/readdirp/issues" - }, - "author": "Thorsten Lorenz (thlorenz.com)", - "contributors": [ - "Thorsten Lorenz (thlorenz.com)", - "Paul Miller (https://paulmillr.com)" - ], - "main": "index.js", - "engines": { - "node": ">=8.10.0" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "recursive", - "fs", - "stream", - "streams", - "readdir", - "filesystem", - "find", - "filter" - ], - "scripts": { - "dtslint": "dtslint", - "nyc": "nyc", - "mocha": "mocha --exit", - "lint": "eslint --report-unused-disable-directives --ignore-path .gitignore .", - "test": "npm run lint && nyc npm run mocha" - }, - "dependencies": { - "picomatch": "^2.2.1" - }, - "devDependencies": { - "@types/node": "^14", - "chai": "^4.2", - "chai-subset": "^1.6", - "dtslint": "^3.3.0", - "eslint": "^7.0.0", - "mocha": "^7.1.1", - "nyc": "^15.0.0", - "rimraf": "^3.0.0", - "typescript": "^4.0.3" - }, - "nyc": { - "reporter": [ - "html", - "text" - ] - }, - "eslintConfig": { - "root": true, - "extends": "eslint:recommended", - "parserOptions": { - "ecmaVersion": 9, - "sourceType": "script" - }, - "env": { - "node": true, - "es6": true - }, - "rules": { - "array-callback-return": "error", - "no-empty": [ - "error", - { - "allowEmptyCatch": true - } - ], - "no-else-return": [ - "error", - { - "allowElseIf": false - } - ], - "no-lonely-if": "error", - "no-var": "error", - "object-shorthand": "error", - "prefer-arrow-callback": [ - "error", - { - "allowNamedFunctions": true - } - ], - "prefer-const": [ - "error", - { - "ignoreReadBeforeAssign": true - } - ], - "prefer-destructuring": [ - "error", - { - "object": true, - "array": false - } - ], - "prefer-spread": "error", - "prefer-template": "error", - "radix": "error", - "semi": "error", - "strict": "error", - "quotes": [ - "error", - "single" - ] - } - } -} diff --git a/node_modules/require-directory/.jshintrc b/node_modules/require-directory/.jshintrc deleted file mode 100644 index e14e4dc..0000000 --- a/node_modules/require-directory/.jshintrc +++ /dev/null @@ -1,67 +0,0 @@ -{ - "maxerr" : 50, - "bitwise" : true, - "camelcase" : true, - "curly" : true, - "eqeqeq" : true, - "forin" : true, - "immed" : true, - "indent" : 2, - "latedef" : true, - "newcap" : true, - "noarg" : true, - "noempty" : true, - "nonew" : true, - "plusplus" : true, - "quotmark" : true, - "undef" : true, - "unused" : true, - "strict" : true, - "trailing" : true, - "maxparams" : false, - "maxdepth" : false, - "maxstatements" : false, - "maxcomplexity" : false, - "maxlen" : false, - "asi" : false, - "boss" : false, - "debug" : false, - "eqnull" : true, - "es5" : false, - "esnext" : false, - "moz" : false, - "evil" : false, - "expr" : true, - "funcscope" : true, - "globalstrict" : true, - "iterator" : true, - "lastsemic" : false, - "laxbreak" : false, - "laxcomma" : false, - "loopfunc" : false, - "multistr" : false, - "proto" : false, - "scripturl" : false, - "smarttabs" : false, - "shadow" : false, - "sub" : false, - "supernew" : false, - "validthis" : false, - "browser" : true, - "couch" : false, - "devel" : true, - "dojo" : false, - "jquery" : false, - "mootools" : false, - "node" : true, - "nonstandard" : false, - "prototypejs" : false, - "rhino" : false, - "worker" : false, - "wsh" : false, - "yui" : false, - "nomen" : true, - "onevar" : true, - "passfail" : false, - "white" : true -} diff --git a/node_modules/require-directory/.npmignore b/node_modules/require-directory/.npmignore deleted file mode 100644 index 47cf365..0000000 --- a/node_modules/require-directory/.npmignore +++ /dev/null @@ -1 +0,0 @@ -test/** diff --git a/node_modules/require-directory/.travis.yml b/node_modules/require-directory/.travis.yml deleted file mode 100644 index 20fd86b..0000000 --- a/node_modules/require-directory/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - 0.10 diff --git a/node_modules/require-directory/LICENSE b/node_modules/require-directory/LICENSE deleted file mode 100644 index a70f253..0000000 --- a/node_modules/require-directory/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2011 Troy Goode - -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/require-directory/README.markdown b/node_modules/require-directory/README.markdown deleted file mode 100644 index 926a063..0000000 --- a/node_modules/require-directory/README.markdown +++ /dev/null @@ -1,184 +0,0 @@ -# require-directory - -Recursively iterates over specified directory, `require()`'ing each file, and returning a nested hash structure containing those modules. - -**[Follow me (@troygoode) on Twitter!](https://twitter.com/intent/user?screen_name=troygoode)** - -[![NPM](https://nodei.co/npm/require-directory.png?downloads=true&stars=true)](https://nodei.co/npm/require-directory/) - -[![build status](https://secure.travis-ci.org/troygoode/node-require-directory.png)](http://travis-ci.org/troygoode/node-require-directory) - -## How To Use - -### Installation (via [npm](https://npmjs.org/package/require-directory)) - -```bash -$ npm install require-directory -``` - -### Usage - -A common pattern in node.js is to include an index file which creates a hash of the files in its current directory. Given a directory structure like so: - -* app.js -* routes/ - * index.js - * home.js - * auth/ - * login.js - * logout.js - * register.js - -`routes/index.js` uses `require-directory` to build the hash (rather than doing so manually) like so: - -```javascript -var requireDirectory = require('require-directory'); -module.exports = requireDirectory(module); -``` - -`app.js` references `routes/index.js` like any other module, but it now has a hash/tree of the exports from the `./routes/` directory: - -```javascript -var routes = require('./routes'); - -// snip - -app.get('/', routes.home); -app.get('/register', routes.auth.register); -app.get('/login', routes.auth.login); -app.get('/logout', routes.auth.logout); -``` - -The `routes` variable above is the equivalent of this: - -```javascript -var routes = { - home: require('routes/home.js'), - auth: { - login: require('routes/auth/login.js'), - logout: require('routes/auth/logout.js'), - register: require('routes/auth/register.js') - } -}; -``` - -*Note that `routes.index` will be `undefined` as you would hope.* - -### Specifying Another Directory - -You can specify which directory you want to build a tree of (if it isn't the current directory for whatever reason) by passing it as the second parameter. Not specifying the path (`requireDirectory(module)`) is the equivelant of `requireDirectory(module, __dirname)`: - -```javascript -var requireDirectory = require('require-directory'); -module.exports = requireDirectory(module, './some/subdirectory'); -``` - -For example, in the [example in the Usage section](#usage) we could have avoided creating `routes/index.js` and instead changed the first lines of `app.js` to: - -```javascript -var requireDirectory = require('require-directory'); -var routes = requireDirectory(module, './routes'); -``` - -## Options - -You can pass an options hash to `require-directory` as the 2nd parameter (or 3rd if you're passing the path to another directory as the 2nd parameter already). Here are the available options: - -### Whitelisting - -Whitelisting (either via RegExp or function) allows you to specify that only certain files be loaded. - -```javascript -var requireDirectory = require('require-directory'), - whitelist = /onlyinclude.js$/, - hash = requireDirectory(module, {include: whitelist}); -``` - -```javascript -var requireDirectory = require('require-directory'), - check = function(path){ - if(/onlyinclude.js$/.test(path)){ - return true; // don't include - }else{ - return false; // go ahead and include - } - }, - hash = requireDirectory(module, {include: check}); -``` - -### Blacklisting - -Blacklisting (either via RegExp or function) allows you to specify that all but certain files should be loaded. - -```javascript -var requireDirectory = require('require-directory'), - blacklist = /dontinclude\.js$/, - hash = requireDirectory(module, {exclude: blacklist}); -``` - -```javascript -var requireDirectory = require('require-directory'), - check = function(path){ - if(/dontinclude\.js$/.test(path)){ - return false; // don't include - }else{ - return true; // go ahead and include - } - }, - hash = requireDirectory(module, {exclude: check}); -``` - -### Visiting Objects As They're Loaded - -`require-directory` takes a function as the `visit` option that will be called for each module that is added to module.exports. - -```javascript -var requireDirectory = require('require-directory'), - visitor = function(obj) { - console.log(obj); // will be called for every module that is loaded - }, - hash = requireDirectory(module, {visit: visitor}); -``` - -The visitor can also transform the objects by returning a value: - -```javascript -var requireDirectory = require('require-directory'), - visitor = function(obj) { - return obj(new Date()); - }, - hash = requireDirectory(module, {visit: visitor}); -``` - -### Renaming Keys - -```javascript -var requireDirectory = require('require-directory'), - renamer = function(name) { - return name.toUpperCase(); - }, - hash = requireDirectory(module, {rename: renamer}); -``` - -### No Recursion - -```javascript -var requireDirectory = require('require-directory'), - hash = requireDirectory(module, {recurse: false}); -``` - -## Run Unit Tests - -```bash -$ npm run lint -$ npm test -``` - -## License - -[MIT License](http://www.opensource.org/licenses/mit-license.php) - -## Author - -[Troy Goode](https://github.com/TroyGoode) ([troygoode@gmail.com](mailto:troygoode@gmail.com)) - diff --git a/node_modules/require-directory/index.js b/node_modules/require-directory/index.js deleted file mode 100644 index cd37da7..0000000 --- a/node_modules/require-directory/index.js +++ /dev/null @@ -1,86 +0,0 @@ -'use strict'; - -var fs = require('fs'), - join = require('path').join, - resolve = require('path').resolve, - dirname = require('path').dirname, - defaultOptions = { - extensions: ['js', 'json', 'coffee'], - recurse: true, - rename: function (name) { - return name; - }, - visit: function (obj) { - return obj; - } - }; - -function checkFileInclusion(path, filename, options) { - return ( - // verify file has valid extension - (new RegExp('\\.(' + options.extensions.join('|') + ')$', 'i').test(filename)) && - - // if options.include is a RegExp, evaluate it and make sure the path passes - !(options.include && options.include instanceof RegExp && !options.include.test(path)) && - - // if options.include is a function, evaluate it and make sure the path passes - !(options.include && typeof options.include === 'function' && !options.include(path, filename)) && - - // if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass - !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path)) && - - // if options.exclude is a function, evaluate it and make sure the path doesn't pass - !(options.exclude && typeof options.exclude === 'function' && options.exclude(path, filename)) - ); -} - -function requireDirectory(m, path, options) { - var retval = {}; - - // path is optional - if (path && !options && typeof path !== 'string') { - options = path; - path = null; - } - - // default options - options = options || {}; - for (var prop in defaultOptions) { - if (typeof options[prop] === 'undefined') { - options[prop] = defaultOptions[prop]; - } - } - - // if no path was passed in, assume the equivelant of __dirname from caller - // otherwise, resolve path relative to the equivalent of __dirname - path = !path ? dirname(m.filename) : resolve(dirname(m.filename), path); - - // get the path of each file in specified directory, append to current tree node, recurse - fs.readdirSync(path).forEach(function (filename) { - var joined = join(path, filename), - files, - key, - obj; - - if (fs.statSync(joined).isDirectory() && options.recurse) { - // this node is a directory; recurse - files = requireDirectory(m, joined, options); - // exclude empty directories - if (Object.keys(files).length) { - retval[options.rename(filename, joined, filename)] = files; - } - } else { - if (joined !== m.filename && checkFileInclusion(joined, filename, options)) { - // hash node key shouldn't include file extension - key = filename.substring(0, filename.lastIndexOf('.')); - obj = m.require(joined); - retval[options.rename(key, joined, filename)] = options.visit(obj, joined, filename) || obj; - } - } - }); - - return retval; -} - -module.exports = requireDirectory; -module.exports.defaults = defaultOptions; diff --git a/node_modules/require-directory/package.json b/node_modules/require-directory/package.json deleted file mode 100644 index 25ece4b..0000000 --- a/node_modules/require-directory/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "author": "Troy Goode (http://github.com/troygoode/)", - "name": "require-directory", - "version": "2.1.1", - "description": "Recursively iterates over specified directory, require()'ing each file, and returning a nested hash structure containing those modules.", - "keywords": [ - "require", - "directory", - "library", - "recursive" - ], - "homepage": "https://github.com/troygoode/node-require-directory/", - "main": "index.js", - "repository": { - "type": "git", - "url": "git://github.com/troygoode/node-require-directory.git" - }, - "contributors": [ - { - "name": "Troy Goode", - "email": "troygoode@gmail.com", - "web": "http://github.com/troygoode/" - } - ], - "license": "MIT", - "bugs": { - "url": "http://github.com/troygoode/node-require-directory/issues/" - }, - "engines": { - "node": ">=0.10.0" - }, - "devDependencies": { - "jshint": "^2.6.0", - "mocha": "^2.1.0" - }, - "scripts": { - "test": "mocha", - "lint": "jshint index.js test/test.js" - } -} diff --git a/node_modules/rollup/LICENSE.md b/node_modules/rollup/LICENSE.md deleted file mode 100644 index bd7af55..0000000 --- a/node_modules/rollup/LICENSE.md +++ /dev/null @@ -1,679 +0,0 @@ -# Rollup core license -Rollup is released under the MIT license: - -The MIT License (MIT) - -Copyright (c) 2017 [these people](https://github.com/rollup/rollup/graphs/contributors) - -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. - -# Licenses of bundled dependencies -The published Rollup artifact additionally contains code with the following licenses: -MIT, ISC, 0BSD - -# Bundled dependencies: -## @jridgewell/sourcemap-codec -License: MIT -By: Justin Ridgewell -Repository: git+https://github.com/jridgewell/sourcemaps.git - -> 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. - ---------------------------------------- - -## @rollup/pluginutils -License: MIT -By: Rich Harris -Repository: rollup/plugins - -> The MIT License (MIT) -> -> Copyright (c) 2019 RollupJS Plugin Contributors (https://github.com/rollup/plugins/graphs/contributors) -> -> 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. - ---------------------------------------- - -## anymatch -License: ISC -By: Elan Shanker -Repository: https://github.com/micromatch/anymatch - -> The ISC License -> -> Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com) -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted, provided that the above -> copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -> IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## binary-extensions -License: MIT -By: Sindre Sorhus -Repository: sindresorhus/binary-extensions - -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> Copyright (c) Paul Miller (https://paulmillr.com) -> -> 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. - ---------------------------------------- - -## braces -License: MIT -By: Jon Schlinkert, Brian Woodward, Elan Shanker, Eugene Sharygin, hemanth.hm -Repository: micromatch/braces - -> The MIT License (MIT) -> -> Copyright (c) 2014-present, Jon Schlinkert. -> -> 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. - ---------------------------------------- - -## builtin-modules -License: MIT -By: Sindre Sorhus -Repository: sindresorhus/builtin-modules - -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> -> 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. - ---------------------------------------- - -## chokidar -License: MIT -By: Paul Miller, Elan Shanker -Repository: git+https://github.com/paulmillr/chokidar.git - -> The MIT License (MIT) -> -> Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker -> -> 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. - ---------------------------------------- - -## date-time -License: MIT -By: Sindre Sorhus -Repository: sindresorhus/date-time - -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> -> 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. - ---------------------------------------- - -## fill-range -License: MIT -By: Jon Schlinkert, Edo Rivai, Paul Miller, Rouven Weßling -Repository: jonschlinkert/fill-range - -> The MIT License (MIT) -> -> Copyright (c) 2014-present, Jon Schlinkert. -> -> 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. - ---------------------------------------- - -## flru -License: MIT -By: Luke Edwards -Repository: lukeed/flru - -> MIT License -> -> Copyright (c) Luke Edwards (lukeed.com) -> -> 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. - ---------------------------------------- - -## glob-parent -License: ISC -By: Gulp Team, Elan Shanker, Blaine Bublitz -Repository: gulpjs/glob-parent - -> The ISC License -> -> Copyright (c) 2015, 2019 Elan Shanker -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted, provided that the above -> copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -> IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## is-binary-path -License: MIT -By: Sindre Sorhus -Repository: sindresorhus/is-binary-path - -> MIT License -> -> Copyright (c) 2019 Sindre Sorhus (https://sindresorhus.com), Paul Miller (https://paulmillr.com) -> -> 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. - ---------------------------------------- - -## is-extglob -License: MIT -By: Jon Schlinkert -Repository: jonschlinkert/is-extglob - -> The MIT License (MIT) -> -> Copyright (c) 2014-2016, Jon Schlinkert -> -> 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. - ---------------------------------------- - -## is-glob -License: MIT -By: Jon Schlinkert, Brian Woodward, Daniel Perez -Repository: micromatch/is-glob - -> The MIT License (MIT) -> -> Copyright (c) 2014-2017, Jon Schlinkert. -> -> 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. - ---------------------------------------- - -## is-number -License: MIT -By: Jon Schlinkert, Olsten Larck, Rouven Weßling -Repository: jonschlinkert/is-number - -> The MIT License (MIT) -> -> Copyright (c) 2014-present, Jon Schlinkert. -> -> 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. - ---------------------------------------- - -## is-reference -License: MIT -By: Rich Harris -Repository: git+https://github.com/Rich-Harris/is-reference.git - ---------------------------------------- - -## locate-character -License: MIT -By: Rich Harris -Repository: git+https://gitlab.com/Rich-Harris/locate-character.git - ---------------------------------------- - -## magic-string -License: MIT -By: Rich Harris -Repository: https://github.com/rich-harris/magic-string.git - -> Copyright 2018 Rich Harris -> -> 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. - ---------------------------------------- - -## normalize-path -License: MIT -By: Jon Schlinkert, Blaine Bublitz -Repository: jonschlinkert/normalize-path - -> The MIT License (MIT) -> -> Copyright (c) 2014-2018, Jon Schlinkert. -> -> 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. - ---------------------------------------- - -## parse-ms -License: MIT -By: Sindre Sorhus -Repository: sindresorhus/parse-ms - -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> -> 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. - ---------------------------------------- - -## picocolors -License: ISC -By: Alexey Raspopov -Repository: alexeyraspopov/picocolors - -> ISC License -> -> Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted, provided that the above -> copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## picomatch -License: MIT -By: Jon Schlinkert -Repository: micromatch/picomatch - -> The MIT License (MIT) -> -> Copyright (c) 2017-present, Jon Schlinkert. -> -> 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. - ---------------------------------------- - -## pretty-bytes -License: MIT -By: Sindre Sorhus -Repository: sindresorhus/pretty-bytes - -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> -> 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. - ---------------------------------------- - -## pretty-ms -License: MIT -By: Sindre Sorhus -Repository: sindresorhus/pretty-ms - -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> -> 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. - ---------------------------------------- - -## readdirp -License: MIT -By: Thorsten Lorenz, Paul Miller -Repository: git://github.com/paulmillr/readdirp.git - -> MIT License -> -> Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller (https://paulmillr.com) -> -> 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. - ---------------------------------------- - -## signal-exit -License: ISC -By: Ben Coe -Repository: https://github.com/tapjs/signal-exit.git - -> The ISC License -> -> Copyright (c) 2015-2023 Benjamin Coe, Isaac Z. Schlueter, and Contributors -> -> Permission to use, copy, modify, and/or distribute this software -> for any purpose with or without fee is hereby granted, provided -> that the above copyright notice and this permission notice -> appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES -> OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE -> LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES -> OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -> WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -> ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## time-zone -License: MIT -By: Sindre Sorhus -Repository: sindresorhus/time-zone - -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> -> 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. - ---------------------------------------- - -## to-regex-range -License: MIT -By: Jon Schlinkert, Rouven Weßling -Repository: micromatch/to-regex-range - -> The MIT License (MIT) -> -> Copyright (c) 2015-present, Jon Schlinkert. -> -> 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. - ---------------------------------------- - -## tslib -License: 0BSD -By: Microsoft Corp. -Repository: https://github.com/Microsoft/tslib.git - -> Copyright (c) Microsoft Corporation. -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -> REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -> AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -> INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -> LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -> OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -> PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## yargs-parser -License: ISC -By: Ben Coe -Repository: https://github.com/yargs/yargs-parser.git - -> Copyright (c) 2016, Contributors -> -> Permission to use, copy, modify, and/or distribute this software -> for any purpose with or without fee is hereby granted, provided -> that the above copyright notice and this permission notice -> appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES -> OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE -> LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES -> OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -> WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -> ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/rollup/README.md b/node_modules/rollup/README.md deleted file mode 100644 index 0c4fe95..0000000 --- a/node_modules/rollup/README.md +++ /dev/null @@ -1,134 +0,0 @@ -

- -

- -

- - npm version - - - node compatibility - - - install size - - - code coverage - - - backers - - - sponsors - - - license - - - Join the chat at https://is.gd/rollup_chat - -

- -

Rollup

- -## Overview - -Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library or application. It uses the standardized ES module format for code, instead of previous idiosyncratic solutions such as CommonJS and AMD. ES modules let you freely and seamlessly combine the most useful individual functions from your favorite libraries. Rollup can optimize ES modules for faster native loading in modern browsers, or output a legacy module format allowing ES module workflows today. - -## Quick Start Guide - -Install with `npm install --global rollup`. Rollup can be used either through a [command line interface](https://rollupjs.org/command-line-interface/) with an optional configuration file or else through its [JavaScript API](https://rollupjs.org/javascript-api/). Run `rollup --help` to see the available options and parameters. The starter project templates, [rollup-starter-lib](https://github.com/rollup/rollup-starter-lib) and [rollup-starter-app](https://github.com/rollup/rollup-starter-app), demonstrate common configuration options, and more detailed instructions are available throughout the [user guide](https://rollupjs.org/introduction/). - -### Commands - -These commands assume the entry point to your application is named main.js, and that you'd like all imports compiled into a single file named bundle.js. - -For browsers: - -```bash -# compile to a \ No newline at end of file diff --git a/node_modules/tslib/tslib.es6.js b/node_modules/tslib/tslib.es6.js deleted file mode 100644 index 6c1739b..0000000 --- a/node_modules/tslib/tslib.es6.js +++ /dev/null @@ -1,402 +0,0 @@ -/****************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise, SuppressedError, Symbol, Iterator */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -export function __extends(d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -export var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - } - return __assign.apply(this, arguments); -} - -export function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} - -export function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} - -export function __param(paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } -} - -export function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _, done = false; - for (var i = decorators.length - 1; i >= 0; i--) { - var context = {}; - for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; - for (var p in contextIn.access) context.access[p] = contextIn.access[p]; - context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); - if (kind === "accessor") { - if (result === void 0) continue; - if (result === null || typeof result !== "object") throw new TypeError("Object expected"); - if (_ = accept(result.get)) descriptor.get = _; - if (_ = accept(result.set)) descriptor.set = _; - if (_ = accept(result.init)) initializers.unshift(_); - } - else if (_ = accept(result)) { - if (kind === "field") initializers.unshift(_); - else descriptor[key] = _; - } - } - if (target) Object.defineProperty(target, contextIn.name, descriptor); - done = true; -}; - -export function __runInitializers(thisArg, initializers, value) { - var useValue = arguments.length > 2; - for (var i = 0; i < initializers.length; i++) { - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); - } - return useValue ? value : void 0; -}; - -export function __propKey(x) { - return typeof x === "symbol" ? x : "".concat(x); -}; - -export function __setFunctionName(f, name, prefix) { - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); -}; - -export function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} - -export function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -export function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -} - -export var __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -}); - -export function __exportStar(m, o) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); -} - -export function __values(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} - -export function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -} - -/** @deprecated */ -export function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; -} - -/** @deprecated */ -export function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -} - -export function __spreadArray(to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -} - -export function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} - -export function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; - function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } - function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -} - -export function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } -} - -export function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -} - -export function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; - -var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}; - -var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); -}; - -export function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; -} - -export function __importDefault(mod) { - return (mod && mod.__esModule) ? mod : { default: mod }; -} - -export function __classPrivateFieldGet(receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -} - -export function __classPrivateFieldSet(receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -} - -export function __classPrivateFieldIn(state, receiver) { - if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state === "function" ? receiver === state : state.has(receiver); -} - -export function __addDisposableResource(env, value, async) { - if (value !== null && value !== void 0) { - if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); - var dispose, inner; - if (async) { - if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); - dispose = value[Symbol.asyncDispose]; - } - if (dispose === void 0) { - if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); - dispose = value[Symbol.dispose]; - if (async) inner = dispose; - } - if (typeof dispose !== "function") throw new TypeError("Object not disposable."); - if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; - env.stack.push({ value: value, dispose: dispose, async: async }); - } - else if (async) { - env.stack.push({ async: true }); - } - return value; - -} - -var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { - var e = new Error(message); - return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; -}; - -export function __disposeResources(env) { - function fail(e) { - env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; - env.hasError = true; - } - var r, s = 0; - function next() { - while (r = env.stack.pop()) { - try { - if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); - if (r.dispose) { - var result = r.dispose.call(r.value); - if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); - } - else s |= 1; - } - catch (e) { - fail(e); - } - } - if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); - if (env.hasError) throw env.error; - } - return next(); -} - -export function __rewriteRelativeImportExtension(path, preserveJsx) { - if (typeof path === "string" && /^\.\.?\//.test(path)) { - return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); - }); - } - return path; -} - -export default { - __extends: __extends, - __assign: __assign, - __rest: __rest, - __decorate: __decorate, - __param: __param, - __esDecorate: __esDecorate, - __runInitializers: __runInitializers, - __propKey: __propKey, - __setFunctionName: __setFunctionName, - __metadata: __metadata, - __awaiter: __awaiter, - __generator: __generator, - __createBinding: __createBinding, - __exportStar: __exportStar, - __values: __values, - __read: __read, - __spread: __spread, - __spreadArrays: __spreadArrays, - __spreadArray: __spreadArray, - __await: __await, - __asyncGenerator: __asyncGenerator, - __asyncDelegator: __asyncDelegator, - __asyncValues: __asyncValues, - __makeTemplateObject: __makeTemplateObject, - __importStar: __importStar, - __importDefault: __importDefault, - __classPrivateFieldGet: __classPrivateFieldGet, - __classPrivateFieldSet: __classPrivateFieldSet, - __classPrivateFieldIn: __classPrivateFieldIn, - __addDisposableResource: __addDisposableResource, - __disposeResources: __disposeResources, - __rewriteRelativeImportExtension: __rewriteRelativeImportExtension, -}; diff --git a/node_modules/tslib/tslib.es6.mjs b/node_modules/tslib/tslib.es6.mjs deleted file mode 100644 index c17990a..0000000 --- a/node_modules/tslib/tslib.es6.mjs +++ /dev/null @@ -1,401 +0,0 @@ -/****************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise, SuppressedError, Symbol, Iterator */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -export function __extends(d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -export var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - } - return __assign.apply(this, arguments); -} - -export function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} - -export function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} - -export function __param(paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } -} - -export function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _, done = false; - for (var i = decorators.length - 1; i >= 0; i--) { - var context = {}; - for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; - for (var p in contextIn.access) context.access[p] = contextIn.access[p]; - context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); - if (kind === "accessor") { - if (result === void 0) continue; - if (result === null || typeof result !== "object") throw new TypeError("Object expected"); - if (_ = accept(result.get)) descriptor.get = _; - if (_ = accept(result.set)) descriptor.set = _; - if (_ = accept(result.init)) initializers.unshift(_); - } - else if (_ = accept(result)) { - if (kind === "field") initializers.unshift(_); - else descriptor[key] = _; - } - } - if (target) Object.defineProperty(target, contextIn.name, descriptor); - done = true; -}; - -export function __runInitializers(thisArg, initializers, value) { - var useValue = arguments.length > 2; - for (var i = 0; i < initializers.length; i++) { - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); - } - return useValue ? value : void 0; -}; - -export function __propKey(x) { - return typeof x === "symbol" ? x : "".concat(x); -}; - -export function __setFunctionName(f, name, prefix) { - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); -}; - -export function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} - -export function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -export function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -} - -export var __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -}); - -export function __exportStar(m, o) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); -} - -export function __values(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} - -export function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -} - -/** @deprecated */ -export function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; -} - -/** @deprecated */ -export function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -} - -export function __spreadArray(to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -} - -export function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} - -export function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; - function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } - function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -} - -export function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } -} - -export function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -} - -export function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; - -var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}; - -var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); -}; - -export function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; -} - -export function __importDefault(mod) { - return (mod && mod.__esModule) ? mod : { default: mod }; -} - -export function __classPrivateFieldGet(receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -} - -export function __classPrivateFieldSet(receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -} - -export function __classPrivateFieldIn(state, receiver) { - if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state === "function" ? receiver === state : state.has(receiver); -} - -export function __addDisposableResource(env, value, async) { - if (value !== null && value !== void 0) { - if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); - var dispose, inner; - if (async) { - if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); - dispose = value[Symbol.asyncDispose]; - } - if (dispose === void 0) { - if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); - dispose = value[Symbol.dispose]; - if (async) inner = dispose; - } - if (typeof dispose !== "function") throw new TypeError("Object not disposable."); - if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; - env.stack.push({ value: value, dispose: dispose, async: async }); - } - else if (async) { - env.stack.push({ async: true }); - } - return value; -} - -var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { - var e = new Error(message); - return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; -}; - -export function __disposeResources(env) { - function fail(e) { - env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; - env.hasError = true; - } - var r, s = 0; - function next() { - while (r = env.stack.pop()) { - try { - if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); - if (r.dispose) { - var result = r.dispose.call(r.value); - if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); - } - else s |= 1; - } - catch (e) { - fail(e); - } - } - if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); - if (env.hasError) throw env.error; - } - return next(); -} - -export function __rewriteRelativeImportExtension(path, preserveJsx) { - if (typeof path === "string" && /^\.\.?\//.test(path)) { - return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); - }); - } - return path; -} - -export default { - __extends, - __assign, - __rest, - __decorate, - __param, - __esDecorate, - __runInitializers, - __propKey, - __setFunctionName, - __metadata, - __awaiter, - __generator, - __createBinding, - __exportStar, - __values, - __read, - __spread, - __spreadArrays, - __spreadArray, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, - __classPrivateFieldIn, - __addDisposableResource, - __disposeResources, - __rewriteRelativeImportExtension, -}; diff --git a/node_modules/tslib/tslib.html b/node_modules/tslib/tslib.html deleted file mode 100644 index 44c9ba5..0000000 --- a/node_modules/tslib/tslib.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/tslib/tslib.js b/node_modules/tslib/tslib.js deleted file mode 100644 index 5e12ace..0000000 --- a/node_modules/tslib/tslib.js +++ /dev/null @@ -1,484 +0,0 @@ -/****************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global global, define, Symbol, Reflect, Promise, SuppressedError, Iterator */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __esDecorate; -var __runInitializers; -var __propKey; -var __setFunctionName; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __spreadArray; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __classPrivateFieldIn; -var __createBinding; -var __addDisposableResource; -var __disposeResources; -var __rewriteRelativeImportExtension; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if (typeof module === "object" && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - - __extends = function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __esDecorate = function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _, done = false; - for (var i = decorators.length - 1; i >= 0; i--) { - var context = {}; - for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; - for (var p in contextIn.access) context.access[p] = contextIn.access[p]; - context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); - if (kind === "accessor") { - if (result === void 0) continue; - if (result === null || typeof result !== "object") throw new TypeError("Object expected"); - if (_ = accept(result.get)) descriptor.get = _; - if (_ = accept(result.set)) descriptor.set = _; - if (_ = accept(result.init)) initializers.unshift(_); - } - else if (_ = accept(result)) { - if (kind === "field") initializers.unshift(_); - else descriptor[key] = _; - } - } - if (target) Object.defineProperty(target, contextIn.name, descriptor); - done = true; - }; - - __runInitializers = function (thisArg, initializers, value) { - var useValue = arguments.length > 2; - for (var i = 0; i < initializers.length; i++) { - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); - } - return useValue ? value : void 0; - }; - - __propKey = function (x) { - return typeof x === "symbol" ? x : "".concat(x); - }; - - __setFunctionName = function (f, name, prefix) { - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __exportStar = function(m, o) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); - }; - - __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); - }) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }); - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - /** @deprecated */ - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - /** @deprecated */ - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __spreadArray = function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; - function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } - function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - }) : function(o, v) { - o["default"] = v; - }; - - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - }; - - __classPrivateFieldIn = function (state, receiver) { - if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state === "function" ? receiver === state : state.has(receiver); - }; - - __addDisposableResource = function (env, value, async) { - if (value !== null && value !== void 0) { - if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); - var dispose, inner; - if (async) { - if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); - dispose = value[Symbol.asyncDispose]; - } - if (dispose === void 0) { - if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); - dispose = value[Symbol.dispose]; - if (async) inner = dispose; - } - if (typeof dispose !== "function") throw new TypeError("Object not disposable."); - if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; - env.stack.push({ value: value, dispose: dispose, async: async }); - } - else if (async) { - env.stack.push({ async: true }); - } - return value; - }; - - var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { - var e = new Error(message); - return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; - }; - - __disposeResources = function (env) { - function fail(e) { - env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; - env.hasError = true; - } - var r, s = 0; - function next() { - while (r = env.stack.pop()) { - try { - if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); - if (r.dispose) { - var result = r.dispose.call(r.value); - if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); - } - else s |= 1; - } - catch (e) { - fail(e); - } - } - if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); - if (env.hasError) throw env.error; - } - return next(); - }; - - __rewriteRelativeImportExtension = function (path, preserveJsx) { - if (typeof path === "string" && /^\.\.?\//.test(path)) { - return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); - }); - } - return path; - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__esDecorate", __esDecorate); - exporter("__runInitializers", __runInitializers); - exporter("__propKey", __propKey); - exporter("__setFunctionName", __setFunctionName); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__spreadArray", __spreadArray); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); - exporter("__classPrivateFieldIn", __classPrivateFieldIn); - exporter("__addDisposableResource", __addDisposableResource); - exporter("__disposeResources", __disposeResources); - exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension); -}); - -0 && (module.exports = { - __extends: __extends, - __assign: __assign, - __rest: __rest, - __decorate: __decorate, - __param: __param, - __esDecorate: __esDecorate, - __runInitializers: __runInitializers, - __propKey: __propKey, - __setFunctionName: __setFunctionName, - __metadata: __metadata, - __awaiter: __awaiter, - __generator: __generator, - __exportStar: __exportStar, - __createBinding: __createBinding, - __values: __values, - __read: __read, - __spread: __spread, - __spreadArrays: __spreadArrays, - __spreadArray: __spreadArray, - __await: __await, - __asyncGenerator: __asyncGenerator, - __asyncDelegator: __asyncDelegator, - __asyncValues: __asyncValues, - __makeTemplateObject: __makeTemplateObject, - __importStar: __importStar, - __importDefault: __importDefault, - __classPrivateFieldGet: __classPrivateFieldGet, - __classPrivateFieldSet: __classPrivateFieldSet, - __classPrivateFieldIn: __classPrivateFieldIn, - __addDisposableResource: __addDisposableResource, - __disposeResources: __disposeResources, - __rewriteRelativeImportExtension: __rewriteRelativeImportExtension, -}); diff --git a/node_modules/undefsafe/.github/workflows/release.yml b/node_modules/undefsafe/.github/workflows/release.yml deleted file mode 100755 index e6ee886..0000000 --- a/node_modules/undefsafe/.github/workflows/release.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Release -on: - push: - branches: - - master -jobs: - release: - name: Release - runs-on: ubuntu-18.04 - steps: - - name: Checkout - uses: actions/checkout@v1 - - name: Setup Node.js - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install dependencies - run: npm ci - - name: Test - run: npm run test - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release diff --git a/node_modules/undefsafe/.jscsrc b/node_modules/undefsafe/.jscsrc deleted file mode 100755 index 9e01c9b..0000000 --- a/node_modules/undefsafe/.jscsrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "preset": "node-style-guide", - "requireCapitalizedComments": null, - "requireSpacesInAnonymousFunctionExpression": { - "beforeOpeningCurlyBrace": true, - "beforeOpeningRoundBrace": true - }, - "disallowSpacesInNamedFunctionExpression": { - "beforeOpeningRoundBrace": true - }, - "excludeFiles": ["node_modules/**"], - "disallowSpacesInFunction": null -} diff --git a/node_modules/undefsafe/.jshintrc b/node_modules/undefsafe/.jshintrc deleted file mode 100755 index b47f672..0000000 --- a/node_modules/undefsafe/.jshintrc +++ /dev/null @@ -1,16 +0,0 @@ -{ - "browser": false, - "camelcase": true, - "curly": true, - "devel": true, - "eqeqeq": true, - "forin": true, - "indent": 2, - "noarg": true, - "node": true, - "quotmark": "single", - "undef": true, - "strict": false, - "unused": true -} - diff --git a/node_modules/undefsafe/.travis.yml b/node_modules/undefsafe/.travis.yml deleted file mode 100755 index a1ace24..0000000 --- a/node_modules/undefsafe/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -sudo: false -language: node_js -cache: - directories: - - node_modules -notifications: - email: false -node_js: - - '4' -before_install: - - npm i -g npm@^2.0.0 -before_script: - - npm prune -after_success: - - npm run semantic-release -branches: - except: - - "/^v\\d+\\.\\d+\\.\\d+$/" diff --git a/node_modules/undefsafe/LICENSE b/node_modules/undefsafe/LICENSE deleted file mode 100755 index caaf03a..0000000 --- a/node_modules/undefsafe/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright © 2016 Remy Sharp, http://remysharp.com - -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/undefsafe/README.md b/node_modules/undefsafe/README.md deleted file mode 100755 index 46a706b..0000000 --- a/node_modules/undefsafe/README.md +++ /dev/null @@ -1,63 +0,0 @@ -# undefsafe - -Simple *function* for retrieving deep object properties without getting "Cannot read property 'X' of undefined" - -Can also be used to safely set deep values. - -## Usage - -```js -var object = { - a: { - b: { - c: 1, - d: [1,2,3], - e: 'remy' - } - } -}; - -console.log(undefsafe(object, 'a.b.e')); // "remy" -console.log(undefsafe(object, 'a.b.not.found')); // undefined -``` - -Demo: [https://jsbin.com/eroqame/3/edit?js,console](https://jsbin.com/eroqame/3/edit?js,console) - -## Setting - -```js -var object = { - a: { - b: [1,2,3] - } -}; - -// modified object -var res = undefsafe(object, 'a.b.0', 10); - -console.log(object); // { a: { b: [10, 2, 3] } } -console.log(res); // 1 - previous value -``` - -## Star rules in paths - -As of 1.2.0, `undefsafe` supports a `*` in the path if you want to search all of the properties (or array elements) for a particular element. - -The function will only return a single result, either the 3rd argument validation value, or the first positive match. For example, the following github data: - -```js -const githubData = { - commits: [{ - modified: [ - "one", - "two" - ] - }, /* ... */ ] - }; - -// first modified file found in the first commit -console.log(undefsafe(githubData, 'commits.*.modified.0')); - -// returns `two` or undefined if not found -console.log(undefsafe(githubData, 'commits.*.modified.*', 'two')); -``` diff --git a/node_modules/undefsafe/example.js b/node_modules/undefsafe/example.js deleted file mode 100755 index ed93c23..0000000 --- a/node_modules/undefsafe/example.js +++ /dev/null @@ -1,14 +0,0 @@ -var undefsafe = require('undefsafe'); - -var object = { - a: { - b: { - c: 1, - d: [1, 2, 3], - e: 'remy' - } - } -}; - -console.log(undefsafe(object, 'a.b.e')); // "remy" -console.log(undefsafe(object, 'a.b.not.found')); // undefined diff --git a/node_modules/undefsafe/lib/undefsafe.js b/node_modules/undefsafe/lib/undefsafe.js deleted file mode 100755 index 7446878..0000000 --- a/node_modules/undefsafe/lib/undefsafe.js +++ /dev/null @@ -1,125 +0,0 @@ -'use strict'; - -function undefsafe(obj, path, value, __res) { - // I'm not super keen on this private function, but it's because - // it'll also be use in the browser and I wont *one* function exposed - function split(path) { - var res = []; - var level = 0; - var key = ''; - - for (var i = 0; i < path.length; i++) { - var c = path.substr(i, 1); - - if (level === 0 && (c === '.' || c === '[')) { - if (c === '[') { - level++; - i++; - c = path.substr(i, 1); - } - - if (key) { - // the first value could be a string - res.push(key); - } - key = ''; - continue; - } - - if (c === ']') { - level--; - key = key.slice(0, -1); - continue; - } - - key += c; - } - - res.push(key); - - return res; - } - - // bail if there's nothing - if (obj === undefined || obj === null) { - return undefined; - } - - var parts = split(path); - var key = null; - var type = typeof obj; - var root = obj; - var parent = obj; - - var star = - parts.filter(function(_) { - return _ === '*'; - }).length > 0; - - // we're dealing with a primitive - if (type !== 'object' && type !== 'function') { - return obj; - } else if (path.trim() === '') { - return obj; - } - - key = parts[0]; - var i = 0; - for (; i < parts.length; i++) { - key = parts[i]; - parent = obj; - - if (key === '*') { - // loop through each property - var prop = ''; - var res = __res || []; - - for (prop in parent) { - var shallowObj = undefsafe( - obj[prop], - parts.slice(i + 1).join('.'), - value, - res - ); - if (shallowObj && shallowObj !== res) { - if ((value && shallowObj === value) || value === undefined) { - if (value !== undefined) { - return shallowObj; - } - - res.push(shallowObj); - } - } - } - - if (res.length === 0) { - return undefined; - } - - return res; - } - - if (Object.getOwnPropertyNames(obj).indexOf(key) == -1) { - return undefined; - } - - obj = obj[key]; - if (obj === undefined || obj === null) { - break; - } - } - - // if we have a null object, make sure it's the one the user was after, - // if it's not (i.e. parts has a length) then give undefined back. - if (obj === null && i !== parts.length - 1) { - obj = undefined; - } else if (!star && value) { - key = path.split('.').pop(); - parent[key] = value; - } - return obj; -} - -if (typeof module !== 'undefined') { - module.exports = undefsafe; -} diff --git a/node_modules/undefsafe/package.json b/node_modules/undefsafe/package.json deleted file mode 100755 index a454233..0000000 --- a/node_modules/undefsafe/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "undefsafe", - "description": "Undefined safe way of extracting object properties", - "main": "lib/undefsafe.js", - "tonicExampleFilename": "example.js", - "directories": { - "test": "test" - }, - "scripts": { - "test": "tap test/**/*.test.js -R spec", - "cover": "tap test/*.test.js --cov --coverage-report=lcov", - "semantic-release": "semantic-release" - }, - "prettier": { - "trailingComma": "none", - "singleQuote": true - }, - "repository": { - "type": "git", - "url": "https://github.com/remy/undefsafe.git" - }, - "keywords": [ - "undefined" - ], - "author": "Remy Sharp", - "license": "MIT", - "devDependencies": { - "semantic-release": "^18.0.0", - "tap": "^5.7.1", - "tap-only": "0.0.5" - }, - "dependencies": {}, - "version": "2.0.5" -} diff --git a/node_modules/uuid/LICENSE.md b/node_modules/uuid/LICENSE.md deleted file mode 100644 index 3934168..0000000 --- a/node_modules/uuid/LICENSE.md +++ /dev/null @@ -1,9 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2010-2020 Robert Kieffer and other contributors - -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/uuid/README.md b/node_modules/uuid/README.md deleted file mode 100644 index 83ae737..0000000 --- a/node_modules/uuid/README.md +++ /dev/null @@ -1,510 +0,0 @@ - - -# uuid [![CI](https://github.com/uuidjs/uuid/workflows/CI/badge.svg)](https://github.com/uuidjs/uuid/actions?query=workflow%3ACI) [![Browser](https://github.com/uuidjs/uuid/workflows/Browser/badge.svg)](https://github.com/uuidjs/uuid/actions/workflows/browser.yml) - -For the creation of [RFC9562](https://www.rfc-editor.org/rfc/rfc9562.html) (formerly [RFC4122](https://www.rfc-editor.org/rfc/rfc4122.html)) UUIDs - -- **Complete** - Support for all RFC9562 UUID versions -- **Cross-platform** - Support for... - - ESM & Common JS - - [Typescript](#support) - - [Chrome, Safari, Firefox, and Edge](#support) - - [NodeJS](#support) - - [React Native / Expo](#react-native--expo) -- **Secure** - Uses modern `crypto` API for random values -- **Compact** - Zero-dependency, [tree-shakable](https://developer.mozilla.org/en-US/docs/Glossary/Tree_shaking) -- **CLI** - [`uuid` command line](#command-line) utility - - -> [!NOTE] -> `uuid@11` is now available: See the [CHANGELOG](./CHANGELOG.md) for details. TL;DR: -> * TypeScript support is now included (remove `@types/uuid` from your dependencies) -> * Subtle changes to how the `options` arg is interpreted for `v1()`, `v6()`, and `v7()`. [See details](#options-handling-for-timestamp-uuids) -> * Binary UUIDs are now `Uint8Array`s. (May impact callers of `parse()`, `stringify()`, or that pass an `option#buf` argument to `v1()`-`v7()`.) - -## Quickstart - -**1. Install** - -```shell -npm install uuid -``` - -**2. Create a UUID** - -ESM-syntax (must use named exports): - -```javascript -import { v4 as uuidv4 } from 'uuid'; -uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' -``` - -... CommonJS: - -```javascript -const { v4: uuidv4 } = require('uuid'); -uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed' -``` - -For timestamp UUIDs, namespace UUIDs, and other options read on ... - -## API Summary - -| | | | -| --- | --- | --- | -| [`uuid.NIL`](#uuidnil) | The nil UUID string (all zeros) | New in `uuid@8.3` | -| [`uuid.MAX`](#uuidmax) | The max UUID string (all ones) | New in `uuid@9.1` | -| [`uuid.parse()`](#uuidparsestr) | Convert UUID string to array of bytes | New in `uuid@8.3` | -| [`uuid.stringify()`](#uuidstringifyarr-offset) | Convert array of bytes to UUID string | New in `uuid@8.3` | -| [`uuid.v1()`](#uuidv1options-buffer-offset) | Create a version 1 (timestamp) UUID | | -| [`uuid.v1ToV6()`](#uuidv1tov6uuid) | Create a version 6 UUID from a version 1 UUID | New in `uuid@10` | -| [`uuid.v3()`](#uuidv3name-namespace-buffer-offset) | Create a version 3 (namespace w/ MD5) UUID | | -| [`uuid.v4()`](#uuidv4options-buffer-offset) | Create a version 4 (random) UUID | | -| [`uuid.v5()`](#uuidv5name-namespace-buffer-offset) | Create a version 5 (namespace w/ SHA-1) UUID | | -| [`uuid.v6()`](#uuidv6options-buffer-offset) | Create a version 6 (timestamp, reordered) UUID | New in `uuid@10` | -| [`uuid.v6ToV1()`](#uuidv6tov1uuid) | Create a version 1 UUID from a version 6 UUID | New in `uuid@10` | -| [`uuid.v7()`](#uuidv7options-buffer-offset) | Create a version 7 (Unix Epoch time-based) UUID | New in `uuid@10` | -| ~~[`uuid.v8()`](#uuidv8)~~ | "Intentionally left blank" | | -| [`uuid.validate()`](#uuidvalidatestr) | Test a string to see if it is a valid UUID | New in `uuid@8.3` | -| [`uuid.version()`](#uuidversionstr) | Detect RFC version of a UUID | New in `uuid@8.3` | - -## API - -### uuid.NIL - -The nil UUID string (all zeros). - -Example: - -```javascript -import { NIL as NIL_UUID } from 'uuid'; - -NIL_UUID; // ⇨ '00000000-0000-0000-0000-000000000000' -``` - -### uuid.MAX - -The max UUID string (all ones). - -Example: - -```javascript -import { MAX as MAX_UUID } from 'uuid'; - -MAX_UUID; // ⇨ 'ffffffff-ffff-ffff-ffff-ffffffffffff' -``` - -### uuid.parse(str) - -Convert UUID string to array of bytes - -| | | -| --------- | ---------------------------------------- | -| `str` | A valid UUID `String` | -| _returns_ | `Uint8Array[16]` | -| _throws_ | `TypeError` if `str` is not a valid UUID | - - -> [!NOTE] -> Ordering of values in the byte arrays used by `parse()` and `stringify()` follows the left ↠ right order of hex-pairs in UUID strings. As shown in the example below. - -Example: - -```javascript -import { parse as uuidParse } from 'uuid'; - -// Parse a UUID -uuidParse('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // ⇨ -// Uint8Array(16) [ -// 110, 192, 189, 127, 17, -// 192, 67, 218, 151, 94, -// 42, 138, 217, 235, 174, -// 11 -// ] -``` - -### uuid.stringify(arr[, offset]) - -Convert array of bytes to UUID string - -| | | -| -------------- | ---------------------------------------------------------------------------- | -| `arr` | `Array`-like collection of 16 values (starting from `offset`) between 0-255. | -| [`offset` = 0] | `Number` Starting index in the Array | -| _returns_ | `String` | -| _throws_ | `TypeError` if a valid UUID string cannot be generated | - - -> [!NOTE] -> Ordering of values in the byte arrays used by `parse()` and `stringify()` follows the left ↠ right order of hex-pairs in UUID strings. As shown in the example below. - -Example: - -```javascript -import { stringify as uuidStringify } from 'uuid'; - -const uuidBytes = Uint8Array.of( - 0x6e, - 0xc0, - 0xbd, - 0x7f, - 0x11, - 0xc0, - 0x43, - 0xda, - 0x97, - 0x5e, - 0x2a, - 0x8a, - 0xd9, - 0xeb, - 0xae, - 0x0b -); - -uuidStringify(uuidBytes); // ⇨ '6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b' -``` - -### uuid.v1([options[, buffer[, offset]]]) - -Create an RFC version 1 (timestamp) UUID - -| | | -| --- | --- | -| [`options`] | `Object` with one or more of the following properties: | -| [`options.node = (random)` ] | RFC "node" field as an `Array[6]` of byte values (per 4.1.6) | -| [`options.clockseq = (random)`] | RFC "clock sequence" as a `Number` between 0 - 0x3fff | -| [`options.msecs = (current time)`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) | -| [`options.nsecs = 0`] | RFC "timestamp" field (`Number` of nanoseconds to add to `msecs`, should be 0-10,000) | -| [`options.random = (random)`] | `Array` of 16 random bytes (0-255) used to generate other fields, above | -| [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) | -| [`buffer`] | `Uint8Array` or `Uint8Array` subtype (e.g. Node.js `Buffer`). If provided, binary UUID is written into the array, starting at `offset` | -| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` | -| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` | -| _throws_ | `Error` if more than 10M UUIDs/sec are requested | - - -> [!NOTE] -> The default [node id](https://datatracker.ietf.org/doc/html/rfc9562#section-5.1) (the last 12 digits in the UUID) is generated once, randomly, on process startup, and then remains unchanged for the duration of the process. - - -> [!NOTE] -> `options.random` and `options.rng` are only meaningful on the very first call to `v1()`, where they may be passed to initialize the internal `node` and `clockseq` fields. - -Example: - -```javascript -import { v1 as uuidv1 } from 'uuid'; - -uuidv1(); // ⇨ '2c5ea4c0-4067-11e9-9bdd-2b0d7b3dcb6d' -``` - -Example using `options`: - -```javascript -import { v1 as uuidv1 } from 'uuid'; - -const options = { - node: Uint8Array.of(0x01, 0x23, 0x45, 0x67, 0x89, 0xab), - clockseq: 0x1234, - msecs: new Date('2011-11-01').getTime(), - nsecs: 5678, -}; -uuidv1(options); // ⇨ '710b962e-041c-11e1-9234-0123456789ab' -``` - -### uuid.v1ToV6(uuid) - -Convert a UUID from version 1 to version 6 - -```javascript -import { v1ToV6 } from 'uuid'; - -v1ToV6('92f62d9e-22c4-11ef-97e9-325096b39f47'); // ⇨ '1ef22c49-2f62-6d9e-97e9-325096b39f47' -``` - -### uuid.v3(name, namespace[, buffer[, offset]]) - -Create an RFC version 3 (namespace w/ MD5) UUID - -API is identical to `v5()`, but uses "v3" instead. - - -> [!IMPORTANT] -> Per the RFC, "_If backward compatibility is not an issue, SHA-1 [Version 5] is preferred_." - -### uuid.v4([options[, buffer[, offset]]]) - -Create an RFC version 4 (random) UUID - -| | | -| --- | --- | -| [`options`] | `Object` with one or more of the following properties: | -| [`options.random`] | `Array` of 16 random bytes (0-255) | -| [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) | -| [`buffer`] | `Uint8Array` or `Uint8Array` subtype (e.g. Node.js `Buffer`). If provided, binary UUID is written into the array, starting at `offset` | -| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` | -| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` | - -Example: - -```javascript -import { v4 as uuidv4 } from 'uuid'; - -uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' -``` - -Example using predefined `random` values: - -```javascript -import { v4 as uuidv4 } from 'uuid'; - -const v4options = { - random: Uint8Array.of( - 0x10, - 0x91, - 0x56, - 0xbe, - 0xc4, - 0xfb, - 0xc1, - 0xea, - 0x71, - 0xb4, - 0xef, - 0xe1, - 0x67, - 0x1c, - 0x58, - 0x36 - ), -}; -uuidv4(v4options); // ⇨ '109156be-c4fb-41ea-b1b4-efe1671c5836' -``` - -### uuid.v5(name, namespace[, buffer[, offset]]) - -Create an RFC version 5 (namespace w/ SHA-1) UUID - -| | | -| --- | --- | -| `name` | `String \| Array` | -| `namespace` | `String \| Array[16]` Namespace UUID | -| [`buffer`] | `Uint8Array` or `Uint8Array` subtype (e.g. Node.js `Buffer`). If provided, binary UUID is written into the array, starting at `offset` | -| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` | -| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` | - - -> [!NOTE] -> The RFC `DNS` and `URL` namespaces are available as `v5.DNS` and `v5.URL`. - -Example with custom namespace: - -```javascript -import { v5 as uuidv5 } from 'uuid'; - -// Define a custom namespace. Readers, create your own using something like -// https://www.uuidgenerator.net/ -const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341'; - -uuidv5('Hello, World!', MY_NAMESPACE); // ⇨ '630eb68f-e0fa-5ecc-887a-7c7a62614681' -``` - -Example with RFC `URL` namespace: - -```javascript -import { v5 as uuidv5 } from 'uuid'; - -uuidv5('https://www.w3.org/', uuidv5.URL); // ⇨ 'c106a26a-21bb-5538-8bf2-57095d1976c1' -``` - -### uuid.v6([options[, buffer[, offset]]]) - -Create an RFC version 6 (timestamp, reordered) UUID - -This method takes the same arguments as uuid.v1(). - -```javascript -import { v6 as uuidv6 } from 'uuid'; - -uuidv6(); // ⇨ '1e940672-c5ea-64c0-9b5d-ab8dfbbd4bed' -``` - -Example using `options`: - -```javascript -import { v6 as uuidv6 } from 'uuid'; - -const options = { - node: [0x01, 0x23, 0x45, 0x67, 0x89, 0xab], - clockseq: 0x1234, - msecs: new Date('2011-11-01').getTime(), - nsecs: 5678, -}; -uuidv6(options); // ⇨ '1e1041c7-10b9-662e-9234-0123456789ab' -``` - -### uuid.v6ToV1(uuid) - -Convert a UUID from version 6 to version 1 - -```javascript -import { v6ToV1 } from 'uuid'; - -v6ToV1('1ef22c49-2f62-6d9e-97e9-325096b39f47'); // ⇨ '92f62d9e-22c4-11ef-97e9-325096b39f47' -``` - -### uuid.v7([options[, buffer[, offset]]]) - -Create an RFC version 7 (random) UUID - -| | | -| --- | --- | -| [`options`] | `Object` with one or more of the following properties: | -| [`options.msecs = (current time)`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) | -| [`options.random = (random)`] | `Array` of 16 random bytes (0-255) used to generate other fields, above | -| [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) | -| [`options.seq = (random)`] | 32-bit sequence `Number` between 0 - 0xffffffff. This may be provided to help ensure uniqueness for UUIDs generated within the same millisecond time interval. Default = random value. | -| [`buffer`] | `Uint8Array` or `Uint8Array` subtype (e.g. Node.js `Buffer`). If provided, binary UUID is written into the array, starting at `offset` | -| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` | -| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` | - -Example: - -```javascript -import { v7 as uuidv7 } from 'uuid'; - -uuidv7(); // ⇨ '01695553-c90c-705a-b56d-778dfbbd4bed' -``` - -### ~~uuid.v8()~~ - -**_"Intentionally left blank"_** - - -> [!NOTE] -> Version 8 (experimental) UUIDs are "[for experimental or vendor-specific use cases](https://www.rfc-editor.org/rfc/rfc9562.html#name-uuid-version-8)". The RFC does not define a creation algorithm for them, which is why this package does not offer a `v8()` method. The `validate()` and `version()` methods do work with such UUIDs, however. - -### uuid.validate(str) - -Test a string to see if it is a valid UUID - -| | | -| --------- | --------------------------------------------------- | -| `str` | `String` to validate | -| _returns_ | `true` if string is a valid UUID, `false` otherwise | - -Example: - -```javascript -import { validate as uuidValidate } from 'uuid'; - -uuidValidate('not a UUID'); // ⇨ false -uuidValidate('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // ⇨ true -``` - -Using `validate` and `version` together it is possible to do per-version validation, e.g. validate for only v4 UUIds. - -```javascript -import { version as uuidVersion } from 'uuid'; -import { validate as uuidValidate } from 'uuid'; - -function uuidValidateV4(uuid) { - return uuidValidate(uuid) && uuidVersion(uuid) === 4; -} - -const v1Uuid = 'd9428888-122b-11e1-b85c-61cd3cbb3210'; -const v4Uuid = '109156be-c4fb-41ea-b1b4-efe1671c5836'; - -uuidValidateV4(v4Uuid); // ⇨ true -uuidValidateV4(v1Uuid); // ⇨ false -``` - -### uuid.version(str) - -Detect RFC version of a UUID - -| | | -| --------- | ---------------------------------------- | -| `str` | A valid UUID `String` | -| _returns_ | `Number` The RFC version of the UUID | -| _throws_ | `TypeError` if `str` is not a valid UUID | - -Example: - -```javascript -import { version as uuidVersion } from 'uuid'; - -uuidVersion('45637ec4-c85f-11ea-87d0-0242ac130003'); // ⇨ 1 -uuidVersion('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // ⇨ 4 -``` - - -> [!NOTE] -> This method returns `0` for the `NIL` UUID, and `15` for the `MAX` UUID. - -## Command Line - -UUIDs can be generated from the command line using `uuid`. - -```shell -$ npx uuid -ddeb27fb-d9a0-4624-be4d-4615062daed4 -``` - -The default is to generate version 4 UUIDS, however the other versions are supported. Type `uuid --help` for details: - -```shell -$ npx uuid --help - -Usage: - uuid - uuid v1 - uuid v3 - uuid v4 - uuid v5 - uuid v7 - uuid --help - -Note: may be "URL" or "DNS" to use the corresponding UUIDs -defined by RFC9562 -``` - -## `options` Handling for Timestamp UUIDs - -Prior to `uuid@11`, it was possible for `options` state to interfere with the internal state used to ensure uniqueness of timestamp-based UUIDs (the `v1()`, `v6()`, and `v7()` methods). Starting with `uuid@11`, this issue has been addressed by using the presence of the `options` argument as a flag to select between two possible behaviors: - -- Without `options`: Internal state is utilized to improve UUID uniqueness. -- With `options`: Internal state is **NOT** used and, instead, appropriate defaults are applied as needed. - -## Support - -**Browsers**: `uuid` [builds are tested](/uuidjs/uuid/blob/main/wdio.conf.js) against the latest version of desktop Chrome, Safari, Firefox, and Edge. Mobile versions of these same browsers are expected to work but aren't currently tested. - -**Node**: `uuid` [builds are tested](https://github.com/uuidjs/uuid/blob/main/.github/workflows/ci.yml#L26-L27) against node ([LTS releases](https://github.com/nodejs/Release)), plus one prior. E.g. `node@18` is in maintainence mode, and `node@22` is the current LTS release. So `uuid` supports `node@16`-`node@22`. - -**Typescript**: TS versions released within the past two years are supported. [source](https://github.com/microsoft/TypeScript/issues/49088#issuecomment-2468723715) - -## Known issues - - - -### "getRandomValues() not supported" - -This error occurs in environments where the standard [`crypto.getRandomValues()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) API is not supported. This issue can be resolved by adding an appropriate polyfill: - -#### React Native / Expo - -1. Install [`react-native-get-random-values`](https://github.com/LinusU/react-native-get-random-values#readme) -1. Import it _before_ `uuid`. Since `uuid` might also appear as a transitive dependency of some other imports it's safest to just import `react-native-get-random-values` as the very first thing in your entry point: - -```javascript -import 'react-native-get-random-values'; -import { v4 as uuidv4 } from 'uuid'; -``` - ---- - -Markdown generated from [README_js.md](README_js.md) by diff --git a/node_modules/uuid/dist/cjs-browser/index.d.ts b/node_modules/uuid/dist/cjs-browser/index.d.ts deleted file mode 100644 index d7d4edc..0000000 --- a/node_modules/uuid/dist/cjs-browser/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export type * from './types.js'; -export { default as MAX } from './max.js'; -export { default as NIL } from './nil.js'; -export { default as parse } from './parse.js'; -export { default as stringify } from './stringify.js'; -export { default as v1 } from './v1.js'; -export { default as v1ToV6 } from './v1ToV6.js'; -export { default as v3 } from './v3.js'; -export { default as v4 } from './v4.js'; -export { default as v5 } from './v5.js'; -export { default as v6 } from './v6.js'; -export { default as v6ToV1 } from './v6ToV1.js'; -export { default as v7 } from './v7.js'; -export { default as validate } from './validate.js'; -export { default as version } from './version.js'; diff --git a/node_modules/uuid/dist/cjs-browser/index.js b/node_modules/uuid/dist/cjs-browser/index.js deleted file mode 100644 index 6148ea4..0000000 --- a/node_modules/uuid/dist/cjs-browser/index.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.version = exports.validate = exports.v7 = exports.v6ToV1 = exports.v6 = exports.v5 = exports.v4 = exports.v3 = exports.v1ToV6 = exports.v1 = exports.stringify = exports.parse = exports.NIL = exports.MAX = void 0; -var max_js_1 = require("./max.js"); -Object.defineProperty(exports, "MAX", { enumerable: true, get: function () { return max_js_1.default; } }); -var nil_js_1 = require("./nil.js"); -Object.defineProperty(exports, "NIL", { enumerable: true, get: function () { return nil_js_1.default; } }); -var parse_js_1 = require("./parse.js"); -Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parse_js_1.default; } }); -var stringify_js_1 = require("./stringify.js"); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return stringify_js_1.default; } }); -var v1_js_1 = require("./v1.js"); -Object.defineProperty(exports, "v1", { enumerable: true, get: function () { return v1_js_1.default; } }); -var v1ToV6_js_1 = require("./v1ToV6.js"); -Object.defineProperty(exports, "v1ToV6", { enumerable: true, get: function () { return v1ToV6_js_1.default; } }); -var v3_js_1 = require("./v3.js"); -Object.defineProperty(exports, "v3", { enumerable: true, get: function () { return v3_js_1.default; } }); -var v4_js_1 = require("./v4.js"); -Object.defineProperty(exports, "v4", { enumerable: true, get: function () { return v4_js_1.default; } }); -var v5_js_1 = require("./v5.js"); -Object.defineProperty(exports, "v5", { enumerable: true, get: function () { return v5_js_1.default; } }); -var v6_js_1 = require("./v6.js"); -Object.defineProperty(exports, "v6", { enumerable: true, get: function () { return v6_js_1.default; } }); -var v6ToV1_js_1 = require("./v6ToV1.js"); -Object.defineProperty(exports, "v6ToV1", { enumerable: true, get: function () { return v6ToV1_js_1.default; } }); -var v7_js_1 = require("./v7.js"); -Object.defineProperty(exports, "v7", { enumerable: true, get: function () { return v7_js_1.default; } }); -var validate_js_1 = require("./validate.js"); -Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_js_1.default; } }); -var version_js_1 = require("./version.js"); -Object.defineProperty(exports, "version", { enumerable: true, get: function () { return version_js_1.default; } }); diff --git a/node_modules/uuid/dist/cjs-browser/max.d.ts b/node_modules/uuid/dist/cjs-browser/max.d.ts deleted file mode 100644 index 7a1e972..0000000 --- a/node_modules/uuid/dist/cjs-browser/max.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: "ffffffff-ffff-ffff-ffff-ffffffffffff"; -export default _default; diff --git a/node_modules/uuid/dist/cjs-browser/max.js b/node_modules/uuid/dist/cjs-browser/max.js deleted file mode 100644 index 7ba71ef..0000000 --- a/node_modules/uuid/dist/cjs-browser/max.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = 'ffffffff-ffff-ffff-ffff-ffffffffffff'; diff --git a/node_modules/uuid/dist/cjs-browser/md5.d.ts b/node_modules/uuid/dist/cjs-browser/md5.d.ts deleted file mode 100644 index 5a55f51..0000000 --- a/node_modules/uuid/dist/cjs-browser/md5.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function md5(bytes: Uint8Array): Uint8Array; -export default md5; diff --git a/node_modules/uuid/dist/cjs-browser/md5.js b/node_modules/uuid/dist/cjs-browser/md5.js deleted file mode 100644 index 004b3d6..0000000 --- a/node_modules/uuid/dist/cjs-browser/md5.js +++ /dev/null @@ -1,137 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function md5(bytes) { - const words = uint8ToUint32(bytes); - const md5Bytes = wordsToMd5(words, bytes.length * 8); - return uint32ToUint8(md5Bytes); -} -function uint32ToUint8(input) { - const bytes = new Uint8Array(input.length * 4); - for (let i = 0; i < input.length * 4; i++) { - bytes[i] = (input[i >> 2] >>> ((i % 4) * 8)) & 0xff; - } - return bytes; -} -function getOutputLength(inputLength8) { - return (((inputLength8 + 64) >>> 9) << 4) + 14 + 1; -} -function wordsToMd5(x, len) { - const xpad = new Uint32Array(getOutputLength(len)).fill(0); - xpad.set(x); - xpad[len >> 5] |= 0x80 << len % 32; - xpad[xpad.length - 1] = len; - x = xpad; - let a = 1732584193; - let b = -271733879; - let c = -1732584194; - let d = 271733878; - for (let i = 0; i < x.length; i += 16) { - const olda = a; - const oldb = b; - const oldc = c; - const oldd = d; - a = md5ff(a, b, c, d, x[i], 7, -680876936); - d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); - c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); - b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); - a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); - d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); - c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); - b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); - a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); - d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); - c = md5ff(c, d, a, b, x[i + 10], 17, -42063); - b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); - a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); - d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); - c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); - b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); - a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); - d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); - c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); - b = md5gg(b, c, d, a, x[i], 20, -373897302); - a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); - d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); - c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); - b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); - a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); - d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); - c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); - b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); - a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); - d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); - c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); - b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); - a = md5hh(a, b, c, d, x[i + 5], 4, -378558); - d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); - c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); - b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); - a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); - d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); - c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); - b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); - a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); - d = md5hh(d, a, b, c, x[i], 11, -358537222); - c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); - b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); - a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); - d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); - c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); - b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); - a = md5ii(a, b, c, d, x[i], 6, -198630844); - d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); - c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); - b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); - a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); - d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); - c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); - b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); - a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); - d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); - c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); - b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); - a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); - d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); - c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); - b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); - a = safeAdd(a, olda); - b = safeAdd(b, oldb); - c = safeAdd(c, oldc); - d = safeAdd(d, oldd); - } - return Uint32Array.of(a, b, c, d); -} -function uint8ToUint32(input) { - if (input.length === 0) { - return new Uint32Array(); - } - const output = new Uint32Array(getOutputLength(input.length * 8)).fill(0); - for (let i = 0; i < input.length; i++) { - output[i >> 2] |= (input[i] & 0xff) << ((i % 4) * 8); - } - return output; -} -function safeAdd(x, y) { - const lsw = (x & 0xffff) + (y & 0xffff); - const msw = (x >> 16) + (y >> 16) + (lsw >> 16); - return (msw << 16) | (lsw & 0xffff); -} -function bitRotateLeft(num, cnt) { - return (num << cnt) | (num >>> (32 - cnt)); -} -function md5cmn(q, a, b, x, s, t) { - return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); -} -function md5ff(a, b, c, d, x, s, t) { - return md5cmn((b & c) | (~b & d), a, b, x, s, t); -} -function md5gg(a, b, c, d, x, s, t) { - return md5cmn((b & d) | (c & ~d), a, b, x, s, t); -} -function md5hh(a, b, c, d, x, s, t) { - return md5cmn(b ^ c ^ d, a, b, x, s, t); -} -function md5ii(a, b, c, d, x, s, t) { - return md5cmn(c ^ (b | ~d), a, b, x, s, t); -} -exports.default = md5; diff --git a/node_modules/uuid/dist/cjs-browser/native.d.ts b/node_modules/uuid/dist/cjs-browser/native.d.ts deleted file mode 100644 index 9418fd3..0000000 --- a/node_modules/uuid/dist/cjs-browser/native.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare const _default: { - randomUUID: false | (() => `${string}-${string}-${string}-${string}-${string}`); -}; -export default _default; diff --git a/node_modules/uuid/dist/cjs-browser/native.js b/node_modules/uuid/dist/cjs-browser/native.js deleted file mode 100644 index 7e31a2a..0000000 --- a/node_modules/uuid/dist/cjs-browser/native.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); -exports.default = { randomUUID }; diff --git a/node_modules/uuid/dist/cjs-browser/nil.d.ts b/node_modules/uuid/dist/cjs-browser/nil.d.ts deleted file mode 100644 index b03bb98..0000000 --- a/node_modules/uuid/dist/cjs-browser/nil.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: "00000000-0000-0000-0000-000000000000"; -export default _default; diff --git a/node_modules/uuid/dist/cjs-browser/nil.js b/node_modules/uuid/dist/cjs-browser/nil.js deleted file mode 100644 index 5828aa4..0000000 --- a/node_modules/uuid/dist/cjs-browser/nil.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = '00000000-0000-0000-0000-000000000000'; diff --git a/node_modules/uuid/dist/cjs-browser/package.json b/node_modules/uuid/dist/cjs-browser/package.json deleted file mode 100644 index 729ac4d..0000000 --- a/node_modules/uuid/dist/cjs-browser/package.json +++ /dev/null @@ -1 +0,0 @@ -{"type":"commonjs"} diff --git a/node_modules/uuid/dist/cjs-browser/parse.d.ts b/node_modules/uuid/dist/cjs-browser/parse.d.ts deleted file mode 100644 index a316fb1..0000000 --- a/node_modules/uuid/dist/cjs-browser/parse.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function parse(uuid: string): Uint8Array; -export default parse; diff --git a/node_modules/uuid/dist/cjs-browser/parse.js b/node_modules/uuid/dist/cjs-browser/parse.js deleted file mode 100644 index d2fa8ca..0000000 --- a/node_modules/uuid/dist/cjs-browser/parse.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const validate_js_1 = require("./validate.js"); -function parse(uuid) { - if (!(0, validate_js_1.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - let v; - return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff); -} -exports.default = parse; diff --git a/node_modules/uuid/dist/cjs-browser/regex.d.ts b/node_modules/uuid/dist/cjs-browser/regex.d.ts deleted file mode 100644 index d39fa3f..0000000 --- a/node_modules/uuid/dist/cjs-browser/regex.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: RegExp; -export default _default; diff --git a/node_modules/uuid/dist/cjs-browser/regex.js b/node_modules/uuid/dist/cjs-browser/regex.js deleted file mode 100644 index e3dde2a..0000000 --- a/node_modules/uuid/dist/cjs-browser/regex.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; diff --git a/node_modules/uuid/dist/cjs-browser/rng.d.ts b/node_modules/uuid/dist/cjs-browser/rng.d.ts deleted file mode 100644 index 73e60cf..0000000 --- a/node_modules/uuid/dist/cjs-browser/rng.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function rng(): Uint8Array; diff --git a/node_modules/uuid/dist/cjs-browser/rng.js b/node_modules/uuid/dist/cjs-browser/rng.js deleted file mode 100644 index 155bcd7..0000000 --- a/node_modules/uuid/dist/cjs-browser/rng.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -let getRandomValues; -const rnds8 = new Uint8Array(16); -function rng() { - if (!getRandomValues) { - if (typeof crypto === 'undefined' || !crypto.getRandomValues) { - throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); - } - getRandomValues = crypto.getRandomValues.bind(crypto); - } - return getRandomValues(rnds8); -} -exports.default = rng; diff --git a/node_modules/uuid/dist/cjs-browser/sha1.d.ts b/node_modules/uuid/dist/cjs-browser/sha1.d.ts deleted file mode 100644 index a6552e5..0000000 --- a/node_modules/uuid/dist/cjs-browser/sha1.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function sha1(bytes: Uint8Array): Uint8Array; -export default sha1; diff --git a/node_modules/uuid/dist/cjs-browser/sha1.js b/node_modules/uuid/dist/cjs-browser/sha1.js deleted file mode 100644 index 031c42c..0000000 --- a/node_modules/uuid/dist/cjs-browser/sha1.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function f(s, x, y, z) { - switch (s) { - case 0: - return (x & y) ^ (~x & z); - case 1: - return x ^ y ^ z; - case 2: - return (x & y) ^ (x & z) ^ (y & z); - case 3: - return x ^ y ^ z; - } -} -function ROTL(x, n) { - return (x << n) | (x >>> (32 - n)); -} -function sha1(bytes) { - const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; - const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; - const newBytes = new Uint8Array(bytes.length + 1); - newBytes.set(bytes); - newBytes[bytes.length] = 0x80; - bytes = newBytes; - const l = bytes.length / 4 + 2; - const N = Math.ceil(l / 16); - const M = new Array(N); - for (let i = 0; i < N; ++i) { - const arr = new Uint32Array(16); - for (let j = 0; j < 16; ++j) { - arr[j] = - (bytes[i * 64 + j * 4] << 24) | - (bytes[i * 64 + j * 4 + 1] << 16) | - (bytes[i * 64 + j * 4 + 2] << 8) | - bytes[i * 64 + j * 4 + 3]; - } - M[i] = arr; - } - M[N - 1][14] = ((bytes.length - 1) * 8) / Math.pow(2, 32); - M[N - 1][14] = Math.floor(M[N - 1][14]); - M[N - 1][15] = ((bytes.length - 1) * 8) & 0xffffffff; - for (let i = 0; i < N; ++i) { - const W = new Uint32Array(80); - for (let t = 0; t < 16; ++t) { - W[t] = M[i][t]; - } - for (let t = 16; t < 80; ++t) { - W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1); - } - let a = H[0]; - let b = H[1]; - let c = H[2]; - let d = H[3]; - let e = H[4]; - for (let t = 0; t < 80; ++t) { - const s = Math.floor(t / 20); - const T = (ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t]) >>> 0; - e = d; - d = c; - c = ROTL(b, 30) >>> 0; - b = a; - a = T; - } - H[0] = (H[0] + a) >>> 0; - H[1] = (H[1] + b) >>> 0; - H[2] = (H[2] + c) >>> 0; - H[3] = (H[3] + d) >>> 0; - H[4] = (H[4] + e) >>> 0; - } - return Uint8Array.of(H[0] >> 24, H[0] >> 16, H[0] >> 8, H[0], H[1] >> 24, H[1] >> 16, H[1] >> 8, H[1], H[2] >> 24, H[2] >> 16, H[2] >> 8, H[2], H[3] >> 24, H[3] >> 16, H[3] >> 8, H[3], H[4] >> 24, H[4] >> 16, H[4] >> 8, H[4]); -} -exports.default = sha1; diff --git a/node_modules/uuid/dist/cjs-browser/stringify.d.ts b/node_modules/uuid/dist/cjs-browser/stringify.d.ts deleted file mode 100644 index 16cb008..0000000 --- a/node_modules/uuid/dist/cjs-browser/stringify.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function unsafeStringify(arr: Uint8Array, offset?: number): string; -declare function stringify(arr: Uint8Array, offset?: number): string; -export default stringify; diff --git a/node_modules/uuid/dist/cjs-browser/stringify.js b/node_modules/uuid/dist/cjs-browser/stringify.js deleted file mode 100644 index 2ba27bb..0000000 --- a/node_modules/uuid/dist/cjs-browser/stringify.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.unsafeStringify = void 0; -const validate_js_1 = require("./validate.js"); -const byteToHex = []; -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); -} -function unsafeStringify(arr, offset = 0) { - return (byteToHex[arr[offset + 0]] + - byteToHex[arr[offset + 1]] + - byteToHex[arr[offset + 2]] + - byteToHex[arr[offset + 3]] + - '-' + - byteToHex[arr[offset + 4]] + - byteToHex[arr[offset + 5]] + - '-' + - byteToHex[arr[offset + 6]] + - byteToHex[arr[offset + 7]] + - '-' + - byteToHex[arr[offset + 8]] + - byteToHex[arr[offset + 9]] + - '-' + - byteToHex[arr[offset + 10]] + - byteToHex[arr[offset + 11]] + - byteToHex[arr[offset + 12]] + - byteToHex[arr[offset + 13]] + - byteToHex[arr[offset + 14]] + - byteToHex[arr[offset + 15]]).toLowerCase(); -} -exports.unsafeStringify = unsafeStringify; -function stringify(arr, offset = 0) { - const uuid = unsafeStringify(arr, offset); - if (!(0, validate_js_1.default)(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - return uuid; -} -exports.default = stringify; diff --git a/node_modules/uuid/dist/cjs-browser/types.d.ts b/node_modules/uuid/dist/cjs-browser/types.d.ts deleted file mode 100644 index ecaed97..0000000 --- a/node_modules/uuid/dist/cjs-browser/types.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export type UUIDTypes = string | TBuf; -export type Version1Options = { - node?: Uint8Array; - clockseq?: number; - random?: Uint8Array; - rng?: () => Uint8Array; - msecs?: number; - nsecs?: number; - _v6?: boolean; -}; -export type Version4Options = { - random?: Uint8Array; - rng?: () => Uint8Array; -}; -export type Version6Options = Version1Options; -export type Version7Options = { - random?: Uint8Array; - msecs?: number; - seq?: number; - rng?: () => Uint8Array; -}; diff --git a/node_modules/uuid/dist/cjs-browser/types.js b/node_modules/uuid/dist/cjs-browser/types.js deleted file mode 100644 index c8ad2e5..0000000 --- a/node_modules/uuid/dist/cjs-browser/types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts b/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/uuid/dist/cjs-browser/uuid-bin.js b/node_modules/uuid/dist/cjs-browser/uuid-bin.js deleted file mode 100644 index d613137..0000000 --- a/node_modules/uuid/dist/cjs-browser/uuid-bin.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const assert = require("assert"); -const v1_js_1 = require("./v1.js"); -const v3_js_1 = require("./v3.js"); -const v4_js_1 = require("./v4.js"); -const v5_js_1 = require("./v5.js"); -const v6_js_1 = require("./v6.js"); -const v7_js_1 = require("./v7.js"); -function usage() { - console.log('Usage:'); - console.log(' uuid'); - console.log(' uuid v1'); - console.log(' uuid v3 '); - console.log(' uuid v4'); - console.log(' uuid v5 '); - console.log(' uuid v6'); - console.log(' uuid v7'); - console.log(' uuid --help'); - console.log('\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562'); -} -const args = process.argv.slice(2); -if (args.indexOf('--help') >= 0) { - usage(); - process.exit(0); -} -const version = args.shift() || 'v4'; -switch (version) { - case 'v1': - console.log((0, v1_js_1.default)()); - break; - case 'v3': { - const name = args.shift(); - let namespace = args.shift(); - assert.ok(name != null, 'v3 name not specified'); - assert.ok(namespace != null, 'v3 namespace not specified'); - if (namespace === 'URL') { - namespace = v3_js_1.default.URL; - } - if (namespace === 'DNS') { - namespace = v3_js_1.default.DNS; - } - console.log((0, v3_js_1.default)(name, namespace)); - break; - } - case 'v4': - console.log((0, v4_js_1.default)()); - break; - case 'v5': { - const name = args.shift(); - let namespace = args.shift(); - assert.ok(name != null, 'v5 name not specified'); - assert.ok(namespace != null, 'v5 namespace not specified'); - if (namespace === 'URL') { - namespace = v5_js_1.default.URL; - } - if (namespace === 'DNS') { - namespace = v5_js_1.default.DNS; - } - console.log((0, v5_js_1.default)(name, namespace)); - break; - } - case 'v6': - console.log((0, v6_js_1.default)()); - break; - case 'v7': - console.log((0, v7_js_1.default)()); - break; - default: - usage(); - process.exit(1); -} diff --git a/node_modules/uuid/dist/cjs-browser/v1.d.ts b/node_modules/uuid/dist/cjs-browser/v1.d.ts deleted file mode 100644 index d8ecee0..0000000 --- a/node_modules/uuid/dist/cjs-browser/v1.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Version1Options } from './types.js'; -type V1State = { - node?: Uint8Array; - clockseq?: number; - msecs?: number; - nsecs?: number; -}; -declare function v1(options?: Version1Options, buf?: undefined, offset?: number): string; -declare function v1(options: Version1Options | undefined, buf: Buf, offset?: number): Buf; -export declare function updateV1State(state: V1State, now: number, rnds: Uint8Array): V1State; -export default v1; diff --git a/node_modules/uuid/dist/cjs-browser/v1.js b/node_modules/uuid/dist/cjs-browser/v1.js deleted file mode 100644 index 155b80d..0000000 --- a/node_modules/uuid/dist/cjs-browser/v1.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.updateV1State = void 0; -const rng_js_1 = require("./rng.js"); -const stringify_js_1 = require("./stringify.js"); -const _state = {}; -function v1(options, buf, offset) { - let bytes; - const isV6 = options?._v6 ?? false; - if (options) { - const optionsKeys = Object.keys(options); - if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') { - options = undefined; - } - } - if (options) { - bytes = v1Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset); - } - else { - const now = Date.now(); - const rnds = (0, rng_js_1.default)(); - updateV1State(_state, now, rnds); - bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset); - } - return buf ?? (0, stringify_js_1.unsafeStringify)(bytes); -} -function updateV1State(state, now, rnds) { - state.msecs ??= -Infinity; - state.nsecs ??= 0; - if (now === state.msecs) { - state.nsecs++; - if (state.nsecs >= 10000) { - state.node = undefined; - state.nsecs = 0; - } - } - else if (now > state.msecs) { - state.nsecs = 0; - } - else if (now < state.msecs) { - state.node = undefined; - } - if (!state.node) { - state.node = rnds.slice(10, 16); - state.node[0] |= 0x01; - state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff; - } - state.msecs = now; - return state; -} -exports.updateV1State = updateV1State; -function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) { - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - if (!buf) { - buf = new Uint8Array(16); - offset = 0; - } - else { - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - } - msecs ??= Date.now(); - nsecs ??= 0; - clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff; - node ??= rnds.slice(10, 16); - msecs += 12219292800000; - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - buf[offset++] = (tl >>> 24) & 0xff; - buf[offset++] = (tl >>> 16) & 0xff; - buf[offset++] = (tl >>> 8) & 0xff; - buf[offset++] = tl & 0xff; - const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff; - buf[offset++] = (tmh >>> 8) & 0xff; - buf[offset++] = tmh & 0xff; - buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10; - buf[offset++] = (tmh >>> 16) & 0xff; - buf[offset++] = (clockseq >>> 8) | 0x80; - buf[offset++] = clockseq & 0xff; - for (let n = 0; n < 6; ++n) { - buf[offset++] = node[n]; - } - return buf; -} -exports.default = v1; diff --git a/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts b/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts deleted file mode 100644 index 38eaaf0..0000000 --- a/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export default function v1ToV6(uuid: string): string; -export default function v1ToV6(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/cjs-browser/v1ToV6.js b/node_modules/uuid/dist/cjs-browser/v1ToV6.js deleted file mode 100644 index daba2c3..0000000 --- a/node_modules/uuid/dist/cjs-browser/v1ToV6.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const parse_js_1 = require("./parse.js"); -const stringify_js_1 = require("./stringify.js"); -function v1ToV6(uuid) { - const v1Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid; - const v6Bytes = _v1ToV6(v1Bytes); - return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes; -} -exports.default = v1ToV6; -function _v1ToV6(v1Bytes) { - return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]); -} diff --git a/node_modules/uuid/dist/cjs-browser/v3.d.ts b/node_modules/uuid/dist/cjs-browser/v3.d.ts deleted file mode 100644 index 5d1c434..0000000 --- a/node_modules/uuid/dist/cjs-browser/v3.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UUIDTypes } from './types.js'; -export { DNS, URL } from './v35.js'; -declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; -declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf: TBuf, offset?: number): TBuf; -declare namespace v3 { - var DNS: string; - var URL: string; -} -export default v3; diff --git a/node_modules/uuid/dist/cjs-browser/v3.js b/node_modules/uuid/dist/cjs-browser/v3.js deleted file mode 100644 index d318d2a..0000000 --- a/node_modules/uuid/dist/cjs-browser/v3.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.URL = exports.DNS = void 0; -const md5_js_1 = require("./md5.js"); -const v35_js_1 = require("./v35.js"); -var v35_js_2 = require("./v35.js"); -Object.defineProperty(exports, "DNS", { enumerable: true, get: function () { return v35_js_2.DNS; } }); -Object.defineProperty(exports, "URL", { enumerable: true, get: function () { return v35_js_2.URL; } }); -function v3(value, namespace, buf, offset) { - return (0, v35_js_1.default)(0x30, md5_js_1.default, value, namespace, buf, offset); -} -v3.DNS = v35_js_1.DNS; -v3.URL = v35_js_1.URL; -exports.default = v3; diff --git a/node_modules/uuid/dist/cjs-browser/v35.d.ts b/node_modules/uuid/dist/cjs-browser/v35.d.ts deleted file mode 100644 index 4e6e9d5..0000000 --- a/node_modules/uuid/dist/cjs-browser/v35.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { UUIDTypes } from './types.js'; -export declare function stringToBytes(str: string): Uint8Array; -export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; -export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; -type HashFunction = (bytes: Uint8Array) => Uint8Array; -export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: TBuf, offset?: number): UUIDTypes; -export {}; diff --git a/node_modules/uuid/dist/cjs-browser/v35.js b/node_modules/uuid/dist/cjs-browser/v35.js deleted file mode 100644 index a3712f2..0000000 --- a/node_modules/uuid/dist/cjs-browser/v35.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.URL = exports.DNS = exports.stringToBytes = void 0; -const parse_js_1 = require("./parse.js"); -const stringify_js_1 = require("./stringify.js"); -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); - const bytes = new Uint8Array(str.length); - for (let i = 0; i < str.length; ++i) { - bytes[i] = str.charCodeAt(i); - } - return bytes; -} -exports.stringToBytes = stringToBytes; -exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -function v35(version, hash, value, namespace, buf, offset) { - const valueBytes = typeof value === 'string' ? stringToBytes(value) : value; - const namespaceBytes = typeof namespace === 'string' ? (0, parse_js_1.default)(namespace) : namespace; - if (typeof namespace === 'string') { - namespace = (0, parse_js_1.default)(namespace); - } - if (namespace?.length !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } - let bytes = new Uint8Array(16 + valueBytes.length); - bytes.set(namespaceBytes); - bytes.set(valueBytes, namespaceBytes.length); - bytes = hash(bytes); - bytes[6] = (bytes[6] & 0x0f) | version; - bytes[8] = (bytes[8] & 0x3f) | 0x80; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, stringify_js_1.unsafeStringify)(bytes); -} -exports.default = v35; diff --git a/node_modules/uuid/dist/cjs-browser/v4.d.ts b/node_modules/uuid/dist/cjs-browser/v4.d.ts deleted file mode 100644 index 8205333..0000000 --- a/node_modules/uuid/dist/cjs-browser/v4.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Version4Options } from './types.js'; -declare function v4(options?: Version4Options, buf?: undefined, offset?: number): string; -declare function v4(options: Version4Options | undefined, buf: TBuf, offset?: number): TBuf; -export default v4; diff --git a/node_modules/uuid/dist/cjs-browser/v4.js b/node_modules/uuid/dist/cjs-browser/v4.js deleted file mode 100644 index 69c975e..0000000 --- a/node_modules/uuid/dist/cjs-browser/v4.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const native_js_1 = require("./native.js"); -const rng_js_1 = require("./rng.js"); -const stringify_js_1 = require("./stringify.js"); -function v4(options, buf, offset) { - if (native_js_1.default.randomUUID && !buf && !options) { - return native_js_1.default.randomUUID(); - } - options = options || {}; - const rnds = options.random ?? options.rng?.() ?? (0, rng_js_1.default)(); - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - rnds[6] = (rnds[6] & 0x0f) | 0x40; - rnds[8] = (rnds[8] & 0x3f) | 0x80; - if (buf) { - offset = offset || 0; - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return (0, stringify_js_1.unsafeStringify)(rnds); -} -exports.default = v4; diff --git a/node_modules/uuid/dist/cjs-browser/v5.d.ts b/node_modules/uuid/dist/cjs-browser/v5.d.ts deleted file mode 100644 index 0e2ff2f..0000000 --- a/node_modules/uuid/dist/cjs-browser/v5.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UUIDTypes } from './types.js'; -export { DNS, URL } from './v35.js'; -declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; -declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf: TBuf, offset?: number): TBuf; -declare namespace v5 { - var DNS: string; - var URL: string; -} -export default v5; diff --git a/node_modules/uuid/dist/cjs-browser/v5.js b/node_modules/uuid/dist/cjs-browser/v5.js deleted file mode 100644 index c4239c2..0000000 --- a/node_modules/uuid/dist/cjs-browser/v5.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.URL = exports.DNS = void 0; -const sha1_js_1 = require("./sha1.js"); -const v35_js_1 = require("./v35.js"); -var v35_js_2 = require("./v35.js"); -Object.defineProperty(exports, "DNS", { enumerable: true, get: function () { return v35_js_2.DNS; } }); -Object.defineProperty(exports, "URL", { enumerable: true, get: function () { return v35_js_2.URL; } }); -function v5(value, namespace, buf, offset) { - return (0, v35_js_1.default)(0x50, sha1_js_1.default, value, namespace, buf, offset); -} -v5.DNS = v35_js_1.DNS; -v5.URL = v35_js_1.URL; -exports.default = v5; diff --git a/node_modules/uuid/dist/cjs-browser/v6.d.ts b/node_modules/uuid/dist/cjs-browser/v6.d.ts deleted file mode 100644 index cabf4a0..0000000 --- a/node_modules/uuid/dist/cjs-browser/v6.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Version6Options } from './types.js'; -declare function v6(options?: Version6Options, buf?: undefined, offset?: number): string; -declare function v6(options: Version6Options | undefined, buf: TBuf, offset?: number): TBuf; -export default v6; diff --git a/node_modules/uuid/dist/cjs-browser/v6.js b/node_modules/uuid/dist/cjs-browser/v6.js deleted file mode 100644 index b02748d..0000000 --- a/node_modules/uuid/dist/cjs-browser/v6.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const stringify_js_1 = require("./stringify.js"); -const v1_js_1 = require("./v1.js"); -const v1ToV6_js_1 = require("./v1ToV6.js"); -function v6(options, buf, offset) { - options ??= {}; - offset ??= 0; - let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16)); - bytes = (0, v1ToV6_js_1.default)(bytes); - if (buf) { - for (let i = 0; i < 16; i++) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, stringify_js_1.unsafeStringify)(bytes); -} -exports.default = v6; diff --git a/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts b/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts deleted file mode 100644 index 3b3ffc2..0000000 --- a/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export default function v6ToV1(uuid: string): string; -export default function v6ToV1(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/cjs-browser/v6ToV1.js b/node_modules/uuid/dist/cjs-browser/v6ToV1.js deleted file mode 100644 index 9dcb661..0000000 --- a/node_modules/uuid/dist/cjs-browser/v6ToV1.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const parse_js_1 = require("./parse.js"); -const stringify_js_1 = require("./stringify.js"); -function v6ToV1(uuid) { - const v6Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid; - const v1Bytes = _v6ToV1(v6Bytes); - return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v1Bytes) : v1Bytes; -} -exports.default = v6ToV1; -function _v6ToV1(v6Bytes) { - return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); -} diff --git a/node_modules/uuid/dist/cjs-browser/v7.d.ts b/node_modules/uuid/dist/cjs-browser/v7.d.ts deleted file mode 100644 index f49b03d..0000000 --- a/node_modules/uuid/dist/cjs-browser/v7.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Version7Options } from './types.js'; -type V7State = { - msecs?: number; - seq?: number; -}; -declare function v7(options?: Version7Options, buf?: undefined, offset?: number): string; -declare function v7(options: Version7Options | undefined, buf: TBuf, offset?: number): TBuf; -export declare function updateV7State(state: V7State, now: number, rnds: Uint8Array): V7State; -export default v7; diff --git a/node_modules/uuid/dist/cjs-browser/v7.js b/node_modules/uuid/dist/cjs-browser/v7.js deleted file mode 100644 index 697fe34..0000000 --- a/node_modules/uuid/dist/cjs-browser/v7.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.updateV7State = void 0; -const rng_js_1 = require("./rng.js"); -const stringify_js_1 = require("./stringify.js"); -const _state = {}; -function v7(options, buf, offset) { - let bytes; - if (options) { - bytes = v7Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.seq, buf, offset); - } - else { - const now = Date.now(); - const rnds = (0, rng_js_1.default)(); - updateV7State(_state, now, rnds); - bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset); - } - return buf ?? (0, stringify_js_1.unsafeStringify)(bytes); -} -function updateV7State(state, now, rnds) { - state.msecs ??= -Infinity; - state.seq ??= 0; - if (now > state.msecs) { - state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; - state.msecs = now; - } - else { - state.seq = (state.seq + 1) | 0; - if (state.seq === 0) { - state.msecs++; - } - } - return state; -} -exports.updateV7State = updateV7State; -function v7Bytes(rnds, msecs, seq, buf, offset = 0) { - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - if (!buf) { - buf = new Uint8Array(16); - offset = 0; - } - else { - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - } - msecs ??= Date.now(); - seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; - buf[offset++] = (msecs / 0x10000000000) & 0xff; - buf[offset++] = (msecs / 0x100000000) & 0xff; - buf[offset++] = (msecs / 0x1000000) & 0xff; - buf[offset++] = (msecs / 0x10000) & 0xff; - buf[offset++] = (msecs / 0x100) & 0xff; - buf[offset++] = msecs & 0xff; - buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f); - buf[offset++] = (seq >>> 20) & 0xff; - buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f); - buf[offset++] = (seq >>> 6) & 0xff; - buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03); - buf[offset++] = rnds[11]; - buf[offset++] = rnds[12]; - buf[offset++] = rnds[13]; - buf[offset++] = rnds[14]; - buf[offset++] = rnds[15]; - return buf; -} -exports.default = v7; diff --git a/node_modules/uuid/dist/cjs-browser/validate.d.ts b/node_modules/uuid/dist/cjs-browser/validate.d.ts deleted file mode 100644 index 57da03d..0000000 --- a/node_modules/uuid/dist/cjs-browser/validate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function validate(uuid: unknown): boolean; -export default validate; diff --git a/node_modules/uuid/dist/cjs-browser/validate.js b/node_modules/uuid/dist/cjs-browser/validate.js deleted file mode 100644 index 89733b0..0000000 --- a/node_modules/uuid/dist/cjs-browser/validate.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const regex_js_1 = require("./regex.js"); -function validate(uuid) { - return typeof uuid === 'string' && regex_js_1.default.test(uuid); -} -exports.default = validate; diff --git a/node_modules/uuid/dist/cjs-browser/version.d.ts b/node_modules/uuid/dist/cjs-browser/version.d.ts deleted file mode 100644 index f1948dc..0000000 --- a/node_modules/uuid/dist/cjs-browser/version.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function version(uuid: string): number; -export default version; diff --git a/node_modules/uuid/dist/cjs-browser/version.js b/node_modules/uuid/dist/cjs-browser/version.js deleted file mode 100644 index 05ecd00..0000000 --- a/node_modules/uuid/dist/cjs-browser/version.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const validate_js_1 = require("./validate.js"); -function version(uuid) { - if (!(0, validate_js_1.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - return parseInt(uuid.slice(14, 15), 16); -} -exports.default = version; diff --git a/node_modules/uuid/dist/cjs/index.d.ts b/node_modules/uuid/dist/cjs/index.d.ts deleted file mode 100644 index d7d4edc..0000000 --- a/node_modules/uuid/dist/cjs/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export type * from './types.js'; -export { default as MAX } from './max.js'; -export { default as NIL } from './nil.js'; -export { default as parse } from './parse.js'; -export { default as stringify } from './stringify.js'; -export { default as v1 } from './v1.js'; -export { default as v1ToV6 } from './v1ToV6.js'; -export { default as v3 } from './v3.js'; -export { default as v4 } from './v4.js'; -export { default as v5 } from './v5.js'; -export { default as v6 } from './v6.js'; -export { default as v6ToV1 } from './v6ToV1.js'; -export { default as v7 } from './v7.js'; -export { default as validate } from './validate.js'; -export { default as version } from './version.js'; diff --git a/node_modules/uuid/dist/cjs/index.js b/node_modules/uuid/dist/cjs/index.js deleted file mode 100644 index 6148ea4..0000000 --- a/node_modules/uuid/dist/cjs/index.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.version = exports.validate = exports.v7 = exports.v6ToV1 = exports.v6 = exports.v5 = exports.v4 = exports.v3 = exports.v1ToV6 = exports.v1 = exports.stringify = exports.parse = exports.NIL = exports.MAX = void 0; -var max_js_1 = require("./max.js"); -Object.defineProperty(exports, "MAX", { enumerable: true, get: function () { return max_js_1.default; } }); -var nil_js_1 = require("./nil.js"); -Object.defineProperty(exports, "NIL", { enumerable: true, get: function () { return nil_js_1.default; } }); -var parse_js_1 = require("./parse.js"); -Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parse_js_1.default; } }); -var stringify_js_1 = require("./stringify.js"); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return stringify_js_1.default; } }); -var v1_js_1 = require("./v1.js"); -Object.defineProperty(exports, "v1", { enumerable: true, get: function () { return v1_js_1.default; } }); -var v1ToV6_js_1 = require("./v1ToV6.js"); -Object.defineProperty(exports, "v1ToV6", { enumerable: true, get: function () { return v1ToV6_js_1.default; } }); -var v3_js_1 = require("./v3.js"); -Object.defineProperty(exports, "v3", { enumerable: true, get: function () { return v3_js_1.default; } }); -var v4_js_1 = require("./v4.js"); -Object.defineProperty(exports, "v4", { enumerable: true, get: function () { return v4_js_1.default; } }); -var v5_js_1 = require("./v5.js"); -Object.defineProperty(exports, "v5", { enumerable: true, get: function () { return v5_js_1.default; } }); -var v6_js_1 = require("./v6.js"); -Object.defineProperty(exports, "v6", { enumerable: true, get: function () { return v6_js_1.default; } }); -var v6ToV1_js_1 = require("./v6ToV1.js"); -Object.defineProperty(exports, "v6ToV1", { enumerable: true, get: function () { return v6ToV1_js_1.default; } }); -var v7_js_1 = require("./v7.js"); -Object.defineProperty(exports, "v7", { enumerable: true, get: function () { return v7_js_1.default; } }); -var validate_js_1 = require("./validate.js"); -Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_js_1.default; } }); -var version_js_1 = require("./version.js"); -Object.defineProperty(exports, "version", { enumerable: true, get: function () { return version_js_1.default; } }); diff --git a/node_modules/uuid/dist/cjs/max.d.ts b/node_modules/uuid/dist/cjs/max.d.ts deleted file mode 100644 index 7a1e972..0000000 --- a/node_modules/uuid/dist/cjs/max.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: "ffffffff-ffff-ffff-ffff-ffffffffffff"; -export default _default; diff --git a/node_modules/uuid/dist/cjs/max.js b/node_modules/uuid/dist/cjs/max.js deleted file mode 100644 index 7ba71ef..0000000 --- a/node_modules/uuid/dist/cjs/max.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = 'ffffffff-ffff-ffff-ffff-ffffffffffff'; diff --git a/node_modules/uuid/dist/cjs/md5.d.ts b/node_modules/uuid/dist/cjs/md5.d.ts deleted file mode 100644 index f8f6ecf..0000000 --- a/node_modules/uuid/dist/cjs/md5.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// -/// -declare function md5(bytes: Uint8Array): Buffer; -export default md5; diff --git a/node_modules/uuid/dist/cjs/md5.js b/node_modules/uuid/dist/cjs/md5.js deleted file mode 100644 index 7665013..0000000 --- a/node_modules/uuid/dist/cjs/md5.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const crypto_1 = require("crypto"); -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } - else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - return (0, crypto_1.createHash)('md5').update(bytes).digest(); -} -exports.default = md5; diff --git a/node_modules/uuid/dist/cjs/native.d.ts b/node_modules/uuid/dist/cjs/native.d.ts deleted file mode 100644 index 2b6c756..0000000 --- a/node_modules/uuid/dist/cjs/native.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -import { randomUUID } from 'crypto'; -declare const _default: { - randomUUID: typeof randomUUID; -}; -export default _default; diff --git a/node_modules/uuid/dist/cjs/native.js b/node_modules/uuid/dist/cjs/native.js deleted file mode 100644 index 1013e98..0000000 --- a/node_modules/uuid/dist/cjs/native.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const crypto_1 = require("crypto"); -exports.default = { randomUUID: crypto_1.randomUUID }; diff --git a/node_modules/uuid/dist/cjs/nil.d.ts b/node_modules/uuid/dist/cjs/nil.d.ts deleted file mode 100644 index b03bb98..0000000 --- a/node_modules/uuid/dist/cjs/nil.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: "00000000-0000-0000-0000-000000000000"; -export default _default; diff --git a/node_modules/uuid/dist/cjs/nil.js b/node_modules/uuid/dist/cjs/nil.js deleted file mode 100644 index 5828aa4..0000000 --- a/node_modules/uuid/dist/cjs/nil.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = '00000000-0000-0000-0000-000000000000'; diff --git a/node_modules/uuid/dist/cjs/package.json b/node_modules/uuid/dist/cjs/package.json deleted file mode 100644 index 729ac4d..0000000 --- a/node_modules/uuid/dist/cjs/package.json +++ /dev/null @@ -1 +0,0 @@ -{"type":"commonjs"} diff --git a/node_modules/uuid/dist/cjs/parse.d.ts b/node_modules/uuid/dist/cjs/parse.d.ts deleted file mode 100644 index a316fb1..0000000 --- a/node_modules/uuid/dist/cjs/parse.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function parse(uuid: string): Uint8Array; -export default parse; diff --git a/node_modules/uuid/dist/cjs/parse.js b/node_modules/uuid/dist/cjs/parse.js deleted file mode 100644 index d2fa8ca..0000000 --- a/node_modules/uuid/dist/cjs/parse.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const validate_js_1 = require("./validate.js"); -function parse(uuid) { - if (!(0, validate_js_1.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - let v; - return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff); -} -exports.default = parse; diff --git a/node_modules/uuid/dist/cjs/regex.d.ts b/node_modules/uuid/dist/cjs/regex.d.ts deleted file mode 100644 index d39fa3f..0000000 --- a/node_modules/uuid/dist/cjs/regex.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: RegExp; -export default _default; diff --git a/node_modules/uuid/dist/cjs/regex.js b/node_modules/uuid/dist/cjs/regex.js deleted file mode 100644 index e3dde2a..0000000 --- a/node_modules/uuid/dist/cjs/regex.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; diff --git a/node_modules/uuid/dist/cjs/rng.d.ts b/node_modules/uuid/dist/cjs/rng.d.ts deleted file mode 100644 index 73e60cf..0000000 --- a/node_modules/uuid/dist/cjs/rng.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function rng(): Uint8Array; diff --git a/node_modules/uuid/dist/cjs/rng.js b/node_modules/uuid/dist/cjs/rng.js deleted file mode 100644 index 8f5458e..0000000 --- a/node_modules/uuid/dist/cjs/rng.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const crypto_1 = require("crypto"); -const rnds8Pool = new Uint8Array(256); -let poolPtr = rnds8Pool.length; -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - (0, crypto_1.randomFillSync)(rnds8Pool); - poolPtr = 0; - } - return rnds8Pool.slice(poolPtr, (poolPtr += 16)); -} -exports.default = rng; diff --git a/node_modules/uuid/dist/cjs/sha1.d.ts b/node_modules/uuid/dist/cjs/sha1.d.ts deleted file mode 100644 index dfdc2ea..0000000 --- a/node_modules/uuid/dist/cjs/sha1.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// -/// -declare function sha1(bytes: Uint8Array): Buffer; -export default sha1; diff --git a/node_modules/uuid/dist/cjs/sha1.js b/node_modules/uuid/dist/cjs/sha1.js deleted file mode 100644 index dccedf5..0000000 --- a/node_modules/uuid/dist/cjs/sha1.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const crypto_1 = require("crypto"); -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } - else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - return (0, crypto_1.createHash)('sha1').update(bytes).digest(); -} -exports.default = sha1; diff --git a/node_modules/uuid/dist/cjs/stringify.d.ts b/node_modules/uuid/dist/cjs/stringify.d.ts deleted file mode 100644 index 16cb008..0000000 --- a/node_modules/uuid/dist/cjs/stringify.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function unsafeStringify(arr: Uint8Array, offset?: number): string; -declare function stringify(arr: Uint8Array, offset?: number): string; -export default stringify; diff --git a/node_modules/uuid/dist/cjs/stringify.js b/node_modules/uuid/dist/cjs/stringify.js deleted file mode 100644 index 2ba27bb..0000000 --- a/node_modules/uuid/dist/cjs/stringify.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.unsafeStringify = void 0; -const validate_js_1 = require("./validate.js"); -const byteToHex = []; -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); -} -function unsafeStringify(arr, offset = 0) { - return (byteToHex[arr[offset + 0]] + - byteToHex[arr[offset + 1]] + - byteToHex[arr[offset + 2]] + - byteToHex[arr[offset + 3]] + - '-' + - byteToHex[arr[offset + 4]] + - byteToHex[arr[offset + 5]] + - '-' + - byteToHex[arr[offset + 6]] + - byteToHex[arr[offset + 7]] + - '-' + - byteToHex[arr[offset + 8]] + - byteToHex[arr[offset + 9]] + - '-' + - byteToHex[arr[offset + 10]] + - byteToHex[arr[offset + 11]] + - byteToHex[arr[offset + 12]] + - byteToHex[arr[offset + 13]] + - byteToHex[arr[offset + 14]] + - byteToHex[arr[offset + 15]]).toLowerCase(); -} -exports.unsafeStringify = unsafeStringify; -function stringify(arr, offset = 0) { - const uuid = unsafeStringify(arr, offset); - if (!(0, validate_js_1.default)(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - return uuid; -} -exports.default = stringify; diff --git a/node_modules/uuid/dist/cjs/types.d.ts b/node_modules/uuid/dist/cjs/types.d.ts deleted file mode 100644 index ecaed97..0000000 --- a/node_modules/uuid/dist/cjs/types.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export type UUIDTypes = string | TBuf; -export type Version1Options = { - node?: Uint8Array; - clockseq?: number; - random?: Uint8Array; - rng?: () => Uint8Array; - msecs?: number; - nsecs?: number; - _v6?: boolean; -}; -export type Version4Options = { - random?: Uint8Array; - rng?: () => Uint8Array; -}; -export type Version6Options = Version1Options; -export type Version7Options = { - random?: Uint8Array; - msecs?: number; - seq?: number; - rng?: () => Uint8Array; -}; diff --git a/node_modules/uuid/dist/cjs/types.js b/node_modules/uuid/dist/cjs/types.js deleted file mode 100644 index c8ad2e5..0000000 --- a/node_modules/uuid/dist/cjs/types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/uuid/dist/cjs/uuid-bin.d.ts b/node_modules/uuid/dist/cjs/uuid-bin.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/node_modules/uuid/dist/cjs/uuid-bin.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/uuid/dist/cjs/uuid-bin.js b/node_modules/uuid/dist/cjs/uuid-bin.js deleted file mode 100644 index d613137..0000000 --- a/node_modules/uuid/dist/cjs/uuid-bin.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const assert = require("assert"); -const v1_js_1 = require("./v1.js"); -const v3_js_1 = require("./v3.js"); -const v4_js_1 = require("./v4.js"); -const v5_js_1 = require("./v5.js"); -const v6_js_1 = require("./v6.js"); -const v7_js_1 = require("./v7.js"); -function usage() { - console.log('Usage:'); - console.log(' uuid'); - console.log(' uuid v1'); - console.log(' uuid v3 '); - console.log(' uuid v4'); - console.log(' uuid v5 '); - console.log(' uuid v6'); - console.log(' uuid v7'); - console.log(' uuid --help'); - console.log('\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562'); -} -const args = process.argv.slice(2); -if (args.indexOf('--help') >= 0) { - usage(); - process.exit(0); -} -const version = args.shift() || 'v4'; -switch (version) { - case 'v1': - console.log((0, v1_js_1.default)()); - break; - case 'v3': { - const name = args.shift(); - let namespace = args.shift(); - assert.ok(name != null, 'v3 name not specified'); - assert.ok(namespace != null, 'v3 namespace not specified'); - if (namespace === 'URL') { - namespace = v3_js_1.default.URL; - } - if (namespace === 'DNS') { - namespace = v3_js_1.default.DNS; - } - console.log((0, v3_js_1.default)(name, namespace)); - break; - } - case 'v4': - console.log((0, v4_js_1.default)()); - break; - case 'v5': { - const name = args.shift(); - let namespace = args.shift(); - assert.ok(name != null, 'v5 name not specified'); - assert.ok(namespace != null, 'v5 namespace not specified'); - if (namespace === 'URL') { - namespace = v5_js_1.default.URL; - } - if (namespace === 'DNS') { - namespace = v5_js_1.default.DNS; - } - console.log((0, v5_js_1.default)(name, namespace)); - break; - } - case 'v6': - console.log((0, v6_js_1.default)()); - break; - case 'v7': - console.log((0, v7_js_1.default)()); - break; - default: - usage(); - process.exit(1); -} diff --git a/node_modules/uuid/dist/cjs/v1.d.ts b/node_modules/uuid/dist/cjs/v1.d.ts deleted file mode 100644 index d8ecee0..0000000 --- a/node_modules/uuid/dist/cjs/v1.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Version1Options } from './types.js'; -type V1State = { - node?: Uint8Array; - clockseq?: number; - msecs?: number; - nsecs?: number; -}; -declare function v1(options?: Version1Options, buf?: undefined, offset?: number): string; -declare function v1(options: Version1Options | undefined, buf: Buf, offset?: number): Buf; -export declare function updateV1State(state: V1State, now: number, rnds: Uint8Array): V1State; -export default v1; diff --git a/node_modules/uuid/dist/cjs/v1.js b/node_modules/uuid/dist/cjs/v1.js deleted file mode 100644 index 155b80d..0000000 --- a/node_modules/uuid/dist/cjs/v1.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.updateV1State = void 0; -const rng_js_1 = require("./rng.js"); -const stringify_js_1 = require("./stringify.js"); -const _state = {}; -function v1(options, buf, offset) { - let bytes; - const isV6 = options?._v6 ?? false; - if (options) { - const optionsKeys = Object.keys(options); - if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') { - options = undefined; - } - } - if (options) { - bytes = v1Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset); - } - else { - const now = Date.now(); - const rnds = (0, rng_js_1.default)(); - updateV1State(_state, now, rnds); - bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset); - } - return buf ?? (0, stringify_js_1.unsafeStringify)(bytes); -} -function updateV1State(state, now, rnds) { - state.msecs ??= -Infinity; - state.nsecs ??= 0; - if (now === state.msecs) { - state.nsecs++; - if (state.nsecs >= 10000) { - state.node = undefined; - state.nsecs = 0; - } - } - else if (now > state.msecs) { - state.nsecs = 0; - } - else if (now < state.msecs) { - state.node = undefined; - } - if (!state.node) { - state.node = rnds.slice(10, 16); - state.node[0] |= 0x01; - state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff; - } - state.msecs = now; - return state; -} -exports.updateV1State = updateV1State; -function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) { - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - if (!buf) { - buf = new Uint8Array(16); - offset = 0; - } - else { - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - } - msecs ??= Date.now(); - nsecs ??= 0; - clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff; - node ??= rnds.slice(10, 16); - msecs += 12219292800000; - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - buf[offset++] = (tl >>> 24) & 0xff; - buf[offset++] = (tl >>> 16) & 0xff; - buf[offset++] = (tl >>> 8) & 0xff; - buf[offset++] = tl & 0xff; - const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff; - buf[offset++] = (tmh >>> 8) & 0xff; - buf[offset++] = tmh & 0xff; - buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10; - buf[offset++] = (tmh >>> 16) & 0xff; - buf[offset++] = (clockseq >>> 8) | 0x80; - buf[offset++] = clockseq & 0xff; - for (let n = 0; n < 6; ++n) { - buf[offset++] = node[n]; - } - return buf; -} -exports.default = v1; diff --git a/node_modules/uuid/dist/cjs/v1ToV6.d.ts b/node_modules/uuid/dist/cjs/v1ToV6.d.ts deleted file mode 100644 index 38eaaf0..0000000 --- a/node_modules/uuid/dist/cjs/v1ToV6.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export default function v1ToV6(uuid: string): string; -export default function v1ToV6(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/cjs/v1ToV6.js b/node_modules/uuid/dist/cjs/v1ToV6.js deleted file mode 100644 index daba2c3..0000000 --- a/node_modules/uuid/dist/cjs/v1ToV6.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const parse_js_1 = require("./parse.js"); -const stringify_js_1 = require("./stringify.js"); -function v1ToV6(uuid) { - const v1Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid; - const v6Bytes = _v1ToV6(v1Bytes); - return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes; -} -exports.default = v1ToV6; -function _v1ToV6(v1Bytes) { - return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]); -} diff --git a/node_modules/uuid/dist/cjs/v3.d.ts b/node_modules/uuid/dist/cjs/v3.d.ts deleted file mode 100644 index 5d1c434..0000000 --- a/node_modules/uuid/dist/cjs/v3.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UUIDTypes } from './types.js'; -export { DNS, URL } from './v35.js'; -declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; -declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf: TBuf, offset?: number): TBuf; -declare namespace v3 { - var DNS: string; - var URL: string; -} -export default v3; diff --git a/node_modules/uuid/dist/cjs/v3.js b/node_modules/uuid/dist/cjs/v3.js deleted file mode 100644 index d318d2a..0000000 --- a/node_modules/uuid/dist/cjs/v3.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.URL = exports.DNS = void 0; -const md5_js_1 = require("./md5.js"); -const v35_js_1 = require("./v35.js"); -var v35_js_2 = require("./v35.js"); -Object.defineProperty(exports, "DNS", { enumerable: true, get: function () { return v35_js_2.DNS; } }); -Object.defineProperty(exports, "URL", { enumerable: true, get: function () { return v35_js_2.URL; } }); -function v3(value, namespace, buf, offset) { - return (0, v35_js_1.default)(0x30, md5_js_1.default, value, namespace, buf, offset); -} -v3.DNS = v35_js_1.DNS; -v3.URL = v35_js_1.URL; -exports.default = v3; diff --git a/node_modules/uuid/dist/cjs/v35.d.ts b/node_modules/uuid/dist/cjs/v35.d.ts deleted file mode 100644 index 4e6e9d5..0000000 --- a/node_modules/uuid/dist/cjs/v35.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { UUIDTypes } from './types.js'; -export declare function stringToBytes(str: string): Uint8Array; -export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; -export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; -type HashFunction = (bytes: Uint8Array) => Uint8Array; -export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: TBuf, offset?: number): UUIDTypes; -export {}; diff --git a/node_modules/uuid/dist/cjs/v35.js b/node_modules/uuid/dist/cjs/v35.js deleted file mode 100644 index a3712f2..0000000 --- a/node_modules/uuid/dist/cjs/v35.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.URL = exports.DNS = exports.stringToBytes = void 0; -const parse_js_1 = require("./parse.js"); -const stringify_js_1 = require("./stringify.js"); -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); - const bytes = new Uint8Array(str.length); - for (let i = 0; i < str.length; ++i) { - bytes[i] = str.charCodeAt(i); - } - return bytes; -} -exports.stringToBytes = stringToBytes; -exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -function v35(version, hash, value, namespace, buf, offset) { - const valueBytes = typeof value === 'string' ? stringToBytes(value) : value; - const namespaceBytes = typeof namespace === 'string' ? (0, parse_js_1.default)(namespace) : namespace; - if (typeof namespace === 'string') { - namespace = (0, parse_js_1.default)(namespace); - } - if (namespace?.length !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } - let bytes = new Uint8Array(16 + valueBytes.length); - bytes.set(namespaceBytes); - bytes.set(valueBytes, namespaceBytes.length); - bytes = hash(bytes); - bytes[6] = (bytes[6] & 0x0f) | version; - bytes[8] = (bytes[8] & 0x3f) | 0x80; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, stringify_js_1.unsafeStringify)(bytes); -} -exports.default = v35; diff --git a/node_modules/uuid/dist/cjs/v4.d.ts b/node_modules/uuid/dist/cjs/v4.d.ts deleted file mode 100644 index 8205333..0000000 --- a/node_modules/uuid/dist/cjs/v4.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Version4Options } from './types.js'; -declare function v4(options?: Version4Options, buf?: undefined, offset?: number): string; -declare function v4(options: Version4Options | undefined, buf: TBuf, offset?: number): TBuf; -export default v4; diff --git a/node_modules/uuid/dist/cjs/v4.js b/node_modules/uuid/dist/cjs/v4.js deleted file mode 100644 index 69c975e..0000000 --- a/node_modules/uuid/dist/cjs/v4.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const native_js_1 = require("./native.js"); -const rng_js_1 = require("./rng.js"); -const stringify_js_1 = require("./stringify.js"); -function v4(options, buf, offset) { - if (native_js_1.default.randomUUID && !buf && !options) { - return native_js_1.default.randomUUID(); - } - options = options || {}; - const rnds = options.random ?? options.rng?.() ?? (0, rng_js_1.default)(); - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - rnds[6] = (rnds[6] & 0x0f) | 0x40; - rnds[8] = (rnds[8] & 0x3f) | 0x80; - if (buf) { - offset = offset || 0; - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return (0, stringify_js_1.unsafeStringify)(rnds); -} -exports.default = v4; diff --git a/node_modules/uuid/dist/cjs/v5.d.ts b/node_modules/uuid/dist/cjs/v5.d.ts deleted file mode 100644 index 0e2ff2f..0000000 --- a/node_modules/uuid/dist/cjs/v5.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UUIDTypes } from './types.js'; -export { DNS, URL } from './v35.js'; -declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; -declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf: TBuf, offset?: number): TBuf; -declare namespace v5 { - var DNS: string; - var URL: string; -} -export default v5; diff --git a/node_modules/uuid/dist/cjs/v5.js b/node_modules/uuid/dist/cjs/v5.js deleted file mode 100644 index c4239c2..0000000 --- a/node_modules/uuid/dist/cjs/v5.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.URL = exports.DNS = void 0; -const sha1_js_1 = require("./sha1.js"); -const v35_js_1 = require("./v35.js"); -var v35_js_2 = require("./v35.js"); -Object.defineProperty(exports, "DNS", { enumerable: true, get: function () { return v35_js_2.DNS; } }); -Object.defineProperty(exports, "URL", { enumerable: true, get: function () { return v35_js_2.URL; } }); -function v5(value, namespace, buf, offset) { - return (0, v35_js_1.default)(0x50, sha1_js_1.default, value, namespace, buf, offset); -} -v5.DNS = v35_js_1.DNS; -v5.URL = v35_js_1.URL; -exports.default = v5; diff --git a/node_modules/uuid/dist/cjs/v6.d.ts b/node_modules/uuid/dist/cjs/v6.d.ts deleted file mode 100644 index cabf4a0..0000000 --- a/node_modules/uuid/dist/cjs/v6.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Version6Options } from './types.js'; -declare function v6(options?: Version6Options, buf?: undefined, offset?: number): string; -declare function v6(options: Version6Options | undefined, buf: TBuf, offset?: number): TBuf; -export default v6; diff --git a/node_modules/uuid/dist/cjs/v6.js b/node_modules/uuid/dist/cjs/v6.js deleted file mode 100644 index b02748d..0000000 --- a/node_modules/uuid/dist/cjs/v6.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const stringify_js_1 = require("./stringify.js"); -const v1_js_1 = require("./v1.js"); -const v1ToV6_js_1 = require("./v1ToV6.js"); -function v6(options, buf, offset) { - options ??= {}; - offset ??= 0; - let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16)); - bytes = (0, v1ToV6_js_1.default)(bytes); - if (buf) { - for (let i = 0; i < 16; i++) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, stringify_js_1.unsafeStringify)(bytes); -} -exports.default = v6; diff --git a/node_modules/uuid/dist/cjs/v6ToV1.d.ts b/node_modules/uuid/dist/cjs/v6ToV1.d.ts deleted file mode 100644 index 3b3ffc2..0000000 --- a/node_modules/uuid/dist/cjs/v6ToV1.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export default function v6ToV1(uuid: string): string; -export default function v6ToV1(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/cjs/v6ToV1.js b/node_modules/uuid/dist/cjs/v6ToV1.js deleted file mode 100644 index 9dcb661..0000000 --- a/node_modules/uuid/dist/cjs/v6ToV1.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const parse_js_1 = require("./parse.js"); -const stringify_js_1 = require("./stringify.js"); -function v6ToV1(uuid) { - const v6Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid; - const v1Bytes = _v6ToV1(v6Bytes); - return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v1Bytes) : v1Bytes; -} -exports.default = v6ToV1; -function _v6ToV1(v6Bytes) { - return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); -} diff --git a/node_modules/uuid/dist/cjs/v7.d.ts b/node_modules/uuid/dist/cjs/v7.d.ts deleted file mode 100644 index f49b03d..0000000 --- a/node_modules/uuid/dist/cjs/v7.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Version7Options } from './types.js'; -type V7State = { - msecs?: number; - seq?: number; -}; -declare function v7(options?: Version7Options, buf?: undefined, offset?: number): string; -declare function v7(options: Version7Options | undefined, buf: TBuf, offset?: number): TBuf; -export declare function updateV7State(state: V7State, now: number, rnds: Uint8Array): V7State; -export default v7; diff --git a/node_modules/uuid/dist/cjs/v7.js b/node_modules/uuid/dist/cjs/v7.js deleted file mode 100644 index 697fe34..0000000 --- a/node_modules/uuid/dist/cjs/v7.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.updateV7State = void 0; -const rng_js_1 = require("./rng.js"); -const stringify_js_1 = require("./stringify.js"); -const _state = {}; -function v7(options, buf, offset) { - let bytes; - if (options) { - bytes = v7Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.seq, buf, offset); - } - else { - const now = Date.now(); - const rnds = (0, rng_js_1.default)(); - updateV7State(_state, now, rnds); - bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset); - } - return buf ?? (0, stringify_js_1.unsafeStringify)(bytes); -} -function updateV7State(state, now, rnds) { - state.msecs ??= -Infinity; - state.seq ??= 0; - if (now > state.msecs) { - state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; - state.msecs = now; - } - else { - state.seq = (state.seq + 1) | 0; - if (state.seq === 0) { - state.msecs++; - } - } - return state; -} -exports.updateV7State = updateV7State; -function v7Bytes(rnds, msecs, seq, buf, offset = 0) { - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - if (!buf) { - buf = new Uint8Array(16); - offset = 0; - } - else { - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - } - msecs ??= Date.now(); - seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; - buf[offset++] = (msecs / 0x10000000000) & 0xff; - buf[offset++] = (msecs / 0x100000000) & 0xff; - buf[offset++] = (msecs / 0x1000000) & 0xff; - buf[offset++] = (msecs / 0x10000) & 0xff; - buf[offset++] = (msecs / 0x100) & 0xff; - buf[offset++] = msecs & 0xff; - buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f); - buf[offset++] = (seq >>> 20) & 0xff; - buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f); - buf[offset++] = (seq >>> 6) & 0xff; - buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03); - buf[offset++] = rnds[11]; - buf[offset++] = rnds[12]; - buf[offset++] = rnds[13]; - buf[offset++] = rnds[14]; - buf[offset++] = rnds[15]; - return buf; -} -exports.default = v7; diff --git a/node_modules/uuid/dist/cjs/validate.d.ts b/node_modules/uuid/dist/cjs/validate.d.ts deleted file mode 100644 index 57da03d..0000000 --- a/node_modules/uuid/dist/cjs/validate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function validate(uuid: unknown): boolean; -export default validate; diff --git a/node_modules/uuid/dist/cjs/validate.js b/node_modules/uuid/dist/cjs/validate.js deleted file mode 100644 index 89733b0..0000000 --- a/node_modules/uuid/dist/cjs/validate.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const regex_js_1 = require("./regex.js"); -function validate(uuid) { - return typeof uuid === 'string' && regex_js_1.default.test(uuid); -} -exports.default = validate; diff --git a/node_modules/uuid/dist/cjs/version.d.ts b/node_modules/uuid/dist/cjs/version.d.ts deleted file mode 100644 index f1948dc..0000000 --- a/node_modules/uuid/dist/cjs/version.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function version(uuid: string): number; -export default version; diff --git a/node_modules/uuid/dist/cjs/version.js b/node_modules/uuid/dist/cjs/version.js deleted file mode 100644 index 05ecd00..0000000 --- a/node_modules/uuid/dist/cjs/version.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const validate_js_1 = require("./validate.js"); -function version(uuid) { - if (!(0, validate_js_1.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - return parseInt(uuid.slice(14, 15), 16); -} -exports.default = version; diff --git a/node_modules/uuid/dist/esm-browser/index.d.ts b/node_modules/uuid/dist/esm-browser/index.d.ts deleted file mode 100644 index d7d4edc..0000000 --- a/node_modules/uuid/dist/esm-browser/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export type * from './types.js'; -export { default as MAX } from './max.js'; -export { default as NIL } from './nil.js'; -export { default as parse } from './parse.js'; -export { default as stringify } from './stringify.js'; -export { default as v1 } from './v1.js'; -export { default as v1ToV6 } from './v1ToV6.js'; -export { default as v3 } from './v3.js'; -export { default as v4 } from './v4.js'; -export { default as v5 } from './v5.js'; -export { default as v6 } from './v6.js'; -export { default as v6ToV1 } from './v6ToV1.js'; -export { default as v7 } from './v7.js'; -export { default as validate } from './validate.js'; -export { default as version } from './version.js'; diff --git a/node_modules/uuid/dist/esm-browser/index.js b/node_modules/uuid/dist/esm-browser/index.js deleted file mode 100644 index 3193e9a..0000000 --- a/node_modules/uuid/dist/esm-browser/index.js +++ /dev/null @@ -1,14 +0,0 @@ -export { default as MAX } from './max.js'; -export { default as NIL } from './nil.js'; -export { default as parse } from './parse.js'; -export { default as stringify } from './stringify.js'; -export { default as v1 } from './v1.js'; -export { default as v1ToV6 } from './v1ToV6.js'; -export { default as v3 } from './v3.js'; -export { default as v4 } from './v4.js'; -export { default as v5 } from './v5.js'; -export { default as v6 } from './v6.js'; -export { default as v6ToV1 } from './v6ToV1.js'; -export { default as v7 } from './v7.js'; -export { default as validate } from './validate.js'; -export { default as version } from './version.js'; diff --git a/node_modules/uuid/dist/esm-browser/max.d.ts b/node_modules/uuid/dist/esm-browser/max.d.ts deleted file mode 100644 index 7a1e972..0000000 --- a/node_modules/uuid/dist/esm-browser/max.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: "ffffffff-ffff-ffff-ffff-ffffffffffff"; -export default _default; diff --git a/node_modules/uuid/dist/esm-browser/max.js b/node_modules/uuid/dist/esm-browser/max.js deleted file mode 100644 index 58951f6..0000000 --- a/node_modules/uuid/dist/esm-browser/max.js +++ /dev/null @@ -1 +0,0 @@ -export default 'ffffffff-ffff-ffff-ffff-ffffffffffff'; diff --git a/node_modules/uuid/dist/esm-browser/md5.d.ts b/node_modules/uuid/dist/esm-browser/md5.d.ts deleted file mode 100644 index 5a55f51..0000000 --- a/node_modules/uuid/dist/esm-browser/md5.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function md5(bytes: Uint8Array): Uint8Array; -export default md5; diff --git a/node_modules/uuid/dist/esm-browser/md5.js b/node_modules/uuid/dist/esm-browser/md5.js deleted file mode 100644 index 918be8c..0000000 --- a/node_modules/uuid/dist/esm-browser/md5.js +++ /dev/null @@ -1,135 +0,0 @@ -function md5(bytes) { - const words = uint8ToUint32(bytes); - const md5Bytes = wordsToMd5(words, bytes.length * 8); - return uint32ToUint8(md5Bytes); -} -function uint32ToUint8(input) { - const bytes = new Uint8Array(input.length * 4); - for (let i = 0; i < input.length * 4; i++) { - bytes[i] = (input[i >> 2] >>> ((i % 4) * 8)) & 0xff; - } - return bytes; -} -function getOutputLength(inputLength8) { - return (((inputLength8 + 64) >>> 9) << 4) + 14 + 1; -} -function wordsToMd5(x, len) { - const xpad = new Uint32Array(getOutputLength(len)).fill(0); - xpad.set(x); - xpad[len >> 5] |= 0x80 << len % 32; - xpad[xpad.length - 1] = len; - x = xpad; - let a = 1732584193; - let b = -271733879; - let c = -1732584194; - let d = 271733878; - for (let i = 0; i < x.length; i += 16) { - const olda = a; - const oldb = b; - const oldc = c; - const oldd = d; - a = md5ff(a, b, c, d, x[i], 7, -680876936); - d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); - c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); - b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); - a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); - d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); - c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); - b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); - a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); - d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); - c = md5ff(c, d, a, b, x[i + 10], 17, -42063); - b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); - a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); - d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); - c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); - b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); - a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); - d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); - c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); - b = md5gg(b, c, d, a, x[i], 20, -373897302); - a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); - d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); - c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); - b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); - a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); - d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); - c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); - b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); - a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); - d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); - c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); - b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); - a = md5hh(a, b, c, d, x[i + 5], 4, -378558); - d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); - c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); - b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); - a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); - d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); - c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); - b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); - a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); - d = md5hh(d, a, b, c, x[i], 11, -358537222); - c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); - b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); - a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); - d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); - c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); - b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); - a = md5ii(a, b, c, d, x[i], 6, -198630844); - d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); - c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); - b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); - a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); - d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); - c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); - b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); - a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); - d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); - c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); - b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); - a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); - d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); - c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); - b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); - a = safeAdd(a, olda); - b = safeAdd(b, oldb); - c = safeAdd(c, oldc); - d = safeAdd(d, oldd); - } - return Uint32Array.of(a, b, c, d); -} -function uint8ToUint32(input) { - if (input.length === 0) { - return new Uint32Array(); - } - const output = new Uint32Array(getOutputLength(input.length * 8)).fill(0); - for (let i = 0; i < input.length; i++) { - output[i >> 2] |= (input[i] & 0xff) << ((i % 4) * 8); - } - return output; -} -function safeAdd(x, y) { - const lsw = (x & 0xffff) + (y & 0xffff); - const msw = (x >> 16) + (y >> 16) + (lsw >> 16); - return (msw << 16) | (lsw & 0xffff); -} -function bitRotateLeft(num, cnt) { - return (num << cnt) | (num >>> (32 - cnt)); -} -function md5cmn(q, a, b, x, s, t) { - return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); -} -function md5ff(a, b, c, d, x, s, t) { - return md5cmn((b & c) | (~b & d), a, b, x, s, t); -} -function md5gg(a, b, c, d, x, s, t) { - return md5cmn((b & d) | (c & ~d), a, b, x, s, t); -} -function md5hh(a, b, c, d, x, s, t) { - return md5cmn(b ^ c ^ d, a, b, x, s, t); -} -function md5ii(a, b, c, d, x, s, t) { - return md5cmn(c ^ (b | ~d), a, b, x, s, t); -} -export default md5; diff --git a/node_modules/uuid/dist/esm-browser/native.d.ts b/node_modules/uuid/dist/esm-browser/native.d.ts deleted file mode 100644 index 9418fd3..0000000 --- a/node_modules/uuid/dist/esm-browser/native.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare const _default: { - randomUUID: false | (() => `${string}-${string}-${string}-${string}-${string}`); -}; -export default _default; diff --git a/node_modules/uuid/dist/esm-browser/native.js b/node_modules/uuid/dist/esm-browser/native.js deleted file mode 100644 index 76f44f9..0000000 --- a/node_modules/uuid/dist/esm-browser/native.js +++ /dev/null @@ -1,2 +0,0 @@ -const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); -export default { randomUUID }; diff --git a/node_modules/uuid/dist/esm-browser/nil.d.ts b/node_modules/uuid/dist/esm-browser/nil.d.ts deleted file mode 100644 index b03bb98..0000000 --- a/node_modules/uuid/dist/esm-browser/nil.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: "00000000-0000-0000-0000-000000000000"; -export default _default; diff --git a/node_modules/uuid/dist/esm-browser/nil.js b/node_modules/uuid/dist/esm-browser/nil.js deleted file mode 100644 index de6f830..0000000 --- a/node_modules/uuid/dist/esm-browser/nil.js +++ /dev/null @@ -1 +0,0 @@ -export default '00000000-0000-0000-0000-000000000000'; diff --git a/node_modules/uuid/dist/esm-browser/parse.d.ts b/node_modules/uuid/dist/esm-browser/parse.d.ts deleted file mode 100644 index a316fb1..0000000 --- a/node_modules/uuid/dist/esm-browser/parse.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function parse(uuid: string): Uint8Array; -export default parse; diff --git a/node_modules/uuid/dist/esm-browser/parse.js b/node_modules/uuid/dist/esm-browser/parse.js deleted file mode 100644 index 64ac401..0000000 --- a/node_modules/uuid/dist/esm-browser/parse.js +++ /dev/null @@ -1,9 +0,0 @@ -import validate from './validate.js'; -function parse(uuid) { - if (!validate(uuid)) { - throw TypeError('Invalid UUID'); - } - let v; - return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff); -} -export default parse; diff --git a/node_modules/uuid/dist/esm-browser/regex.d.ts b/node_modules/uuid/dist/esm-browser/regex.d.ts deleted file mode 100644 index d39fa3f..0000000 --- a/node_modules/uuid/dist/esm-browser/regex.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: RegExp; -export default _default; diff --git a/node_modules/uuid/dist/esm-browser/regex.js b/node_modules/uuid/dist/esm-browser/regex.js deleted file mode 100644 index 3e38591..0000000 --- a/node_modules/uuid/dist/esm-browser/regex.js +++ /dev/null @@ -1 +0,0 @@ -export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; diff --git a/node_modules/uuid/dist/esm-browser/rng.d.ts b/node_modules/uuid/dist/esm-browser/rng.d.ts deleted file mode 100644 index 73e60cf..0000000 --- a/node_modules/uuid/dist/esm-browser/rng.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function rng(): Uint8Array; diff --git a/node_modules/uuid/dist/esm-browser/rng.js b/node_modules/uuid/dist/esm-browser/rng.js deleted file mode 100644 index 770f2e2..0000000 --- a/node_modules/uuid/dist/esm-browser/rng.js +++ /dev/null @@ -1,11 +0,0 @@ -let getRandomValues; -const rnds8 = new Uint8Array(16); -export default function rng() { - if (!getRandomValues) { - if (typeof crypto === 'undefined' || !crypto.getRandomValues) { - throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); - } - getRandomValues = crypto.getRandomValues.bind(crypto); - } - return getRandomValues(rnds8); -} diff --git a/node_modules/uuid/dist/esm-browser/sha1.d.ts b/node_modules/uuid/dist/esm-browser/sha1.d.ts deleted file mode 100644 index a6552e5..0000000 --- a/node_modules/uuid/dist/esm-browser/sha1.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function sha1(bytes: Uint8Array): Uint8Array; -export default sha1; diff --git a/node_modules/uuid/dist/esm-browser/sha1.js b/node_modules/uuid/dist/esm-browser/sha1.js deleted file mode 100644 index dbb78ae..0000000 --- a/node_modules/uuid/dist/esm-browser/sha1.js +++ /dev/null @@ -1,70 +0,0 @@ -function f(s, x, y, z) { - switch (s) { - case 0: - return (x & y) ^ (~x & z); - case 1: - return x ^ y ^ z; - case 2: - return (x & y) ^ (x & z) ^ (y & z); - case 3: - return x ^ y ^ z; - } -} -function ROTL(x, n) { - return (x << n) | (x >>> (32 - n)); -} -function sha1(bytes) { - const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; - const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; - const newBytes = new Uint8Array(bytes.length + 1); - newBytes.set(bytes); - newBytes[bytes.length] = 0x80; - bytes = newBytes; - const l = bytes.length / 4 + 2; - const N = Math.ceil(l / 16); - const M = new Array(N); - for (let i = 0; i < N; ++i) { - const arr = new Uint32Array(16); - for (let j = 0; j < 16; ++j) { - arr[j] = - (bytes[i * 64 + j * 4] << 24) | - (bytes[i * 64 + j * 4 + 1] << 16) | - (bytes[i * 64 + j * 4 + 2] << 8) | - bytes[i * 64 + j * 4 + 3]; - } - M[i] = arr; - } - M[N - 1][14] = ((bytes.length - 1) * 8) / Math.pow(2, 32); - M[N - 1][14] = Math.floor(M[N - 1][14]); - M[N - 1][15] = ((bytes.length - 1) * 8) & 0xffffffff; - for (let i = 0; i < N; ++i) { - const W = new Uint32Array(80); - for (let t = 0; t < 16; ++t) { - W[t] = M[i][t]; - } - for (let t = 16; t < 80; ++t) { - W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1); - } - let a = H[0]; - let b = H[1]; - let c = H[2]; - let d = H[3]; - let e = H[4]; - for (let t = 0; t < 80; ++t) { - const s = Math.floor(t / 20); - const T = (ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t]) >>> 0; - e = d; - d = c; - c = ROTL(b, 30) >>> 0; - b = a; - a = T; - } - H[0] = (H[0] + a) >>> 0; - H[1] = (H[1] + b) >>> 0; - H[2] = (H[2] + c) >>> 0; - H[3] = (H[3] + d) >>> 0; - H[4] = (H[4] + e) >>> 0; - } - return Uint8Array.of(H[0] >> 24, H[0] >> 16, H[0] >> 8, H[0], H[1] >> 24, H[1] >> 16, H[1] >> 8, H[1], H[2] >> 24, H[2] >> 16, H[2] >> 8, H[2], H[3] >> 24, H[3] >> 16, H[3] >> 8, H[3], H[4] >> 24, H[4] >> 16, H[4] >> 8, H[4]); -} -export default sha1; diff --git a/node_modules/uuid/dist/esm-browser/stringify.d.ts b/node_modules/uuid/dist/esm-browser/stringify.d.ts deleted file mode 100644 index 16cb008..0000000 --- a/node_modules/uuid/dist/esm-browser/stringify.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function unsafeStringify(arr: Uint8Array, offset?: number): string; -declare function stringify(arr: Uint8Array, offset?: number): string; -export default stringify; diff --git a/node_modules/uuid/dist/esm-browser/stringify.js b/node_modules/uuid/dist/esm-browser/stringify.js deleted file mode 100644 index 962738c..0000000 --- a/node_modules/uuid/dist/esm-browser/stringify.js +++ /dev/null @@ -1,35 +0,0 @@ -import validate from './validate.js'; -const byteToHex = []; -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); -} -export function unsafeStringify(arr, offset = 0) { - return (byteToHex[arr[offset + 0]] + - byteToHex[arr[offset + 1]] + - byteToHex[arr[offset + 2]] + - byteToHex[arr[offset + 3]] + - '-' + - byteToHex[arr[offset + 4]] + - byteToHex[arr[offset + 5]] + - '-' + - byteToHex[arr[offset + 6]] + - byteToHex[arr[offset + 7]] + - '-' + - byteToHex[arr[offset + 8]] + - byteToHex[arr[offset + 9]] + - '-' + - byteToHex[arr[offset + 10]] + - byteToHex[arr[offset + 11]] + - byteToHex[arr[offset + 12]] + - byteToHex[arr[offset + 13]] + - byteToHex[arr[offset + 14]] + - byteToHex[arr[offset + 15]]).toLowerCase(); -} -function stringify(arr, offset = 0) { - const uuid = unsafeStringify(arr, offset); - if (!validate(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - return uuid; -} -export default stringify; diff --git a/node_modules/uuid/dist/esm-browser/types.d.ts b/node_modules/uuid/dist/esm-browser/types.d.ts deleted file mode 100644 index ecaed97..0000000 --- a/node_modules/uuid/dist/esm-browser/types.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export type UUIDTypes = string | TBuf; -export type Version1Options = { - node?: Uint8Array; - clockseq?: number; - random?: Uint8Array; - rng?: () => Uint8Array; - msecs?: number; - nsecs?: number; - _v6?: boolean; -}; -export type Version4Options = { - random?: Uint8Array; - rng?: () => Uint8Array; -}; -export type Version6Options = Version1Options; -export type Version7Options = { - random?: Uint8Array; - msecs?: number; - seq?: number; - rng?: () => Uint8Array; -}; diff --git a/node_modules/uuid/dist/esm-browser/types.js b/node_modules/uuid/dist/esm-browser/types.js deleted file mode 100644 index cb0ff5c..0000000 --- a/node_modules/uuid/dist/esm-browser/types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts b/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/uuid/dist/esm-browser/uuid-bin.js b/node_modules/uuid/dist/esm-browser/uuid-bin.js deleted file mode 100644 index 30766fe..0000000 --- a/node_modules/uuid/dist/esm-browser/uuid-bin.js +++ /dev/null @@ -1,70 +0,0 @@ -import * as assert from 'assert'; -import v1 from './v1.js'; -import v3 from './v3.js'; -import v4 from './v4.js'; -import v5 from './v5.js'; -import v6 from './v6.js'; -import v7 from './v7.js'; -function usage() { - console.log('Usage:'); - console.log(' uuid'); - console.log(' uuid v1'); - console.log(' uuid v3 '); - console.log(' uuid v4'); - console.log(' uuid v5 '); - console.log(' uuid v6'); - console.log(' uuid v7'); - console.log(' uuid --help'); - console.log('\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562'); -} -const args = process.argv.slice(2); -if (args.indexOf('--help') >= 0) { - usage(); - process.exit(0); -} -const version = args.shift() || 'v4'; -switch (version) { - case 'v1': - console.log(v1()); - break; - case 'v3': { - const name = args.shift(); - let namespace = args.shift(); - assert.ok(name != null, 'v3 name not specified'); - assert.ok(namespace != null, 'v3 namespace not specified'); - if (namespace === 'URL') { - namespace = v3.URL; - } - if (namespace === 'DNS') { - namespace = v3.DNS; - } - console.log(v3(name, namespace)); - break; - } - case 'v4': - console.log(v4()); - break; - case 'v5': { - const name = args.shift(); - let namespace = args.shift(); - assert.ok(name != null, 'v5 name not specified'); - assert.ok(namespace != null, 'v5 namespace not specified'); - if (namespace === 'URL') { - namespace = v5.URL; - } - if (namespace === 'DNS') { - namespace = v5.DNS; - } - console.log(v5(name, namespace)); - break; - } - case 'v6': - console.log(v6()); - break; - case 'v7': - console.log(v7()); - break; - default: - usage(); - process.exit(1); -} diff --git a/node_modules/uuid/dist/esm-browser/v1.d.ts b/node_modules/uuid/dist/esm-browser/v1.d.ts deleted file mode 100644 index d8ecee0..0000000 --- a/node_modules/uuid/dist/esm-browser/v1.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Version1Options } from './types.js'; -type V1State = { - node?: Uint8Array; - clockseq?: number; - msecs?: number; - nsecs?: number; -}; -declare function v1(options?: Version1Options, buf?: undefined, offset?: number): string; -declare function v1(options: Version1Options | undefined, buf: Buf, offset?: number): Buf; -export declare function updateV1State(state: V1State, now: number, rnds: Uint8Array): V1State; -export default v1; diff --git a/node_modules/uuid/dist/esm-browser/v1.js b/node_modules/uuid/dist/esm-browser/v1.js deleted file mode 100644 index 65e3f68..0000000 --- a/node_modules/uuid/dist/esm-browser/v1.js +++ /dev/null @@ -1,83 +0,0 @@ -import rng from './rng.js'; -import { unsafeStringify } from './stringify.js'; -const _state = {}; -function v1(options, buf, offset) { - let bytes; - const isV6 = options?._v6 ?? false; - if (options) { - const optionsKeys = Object.keys(options); - if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') { - options = undefined; - } - } - if (options) { - bytes = v1Bytes(options.random ?? options.rng?.() ?? rng(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset); - } - else { - const now = Date.now(); - const rnds = rng(); - updateV1State(_state, now, rnds); - bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset); - } - return buf ?? unsafeStringify(bytes); -} -export function updateV1State(state, now, rnds) { - state.msecs ??= -Infinity; - state.nsecs ??= 0; - if (now === state.msecs) { - state.nsecs++; - if (state.nsecs >= 10000) { - state.node = undefined; - state.nsecs = 0; - } - } - else if (now > state.msecs) { - state.nsecs = 0; - } - else if (now < state.msecs) { - state.node = undefined; - } - if (!state.node) { - state.node = rnds.slice(10, 16); - state.node[0] |= 0x01; - state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff; - } - state.msecs = now; - return state; -} -function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) { - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - if (!buf) { - buf = new Uint8Array(16); - offset = 0; - } - else { - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - } - msecs ??= Date.now(); - nsecs ??= 0; - clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff; - node ??= rnds.slice(10, 16); - msecs += 12219292800000; - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - buf[offset++] = (tl >>> 24) & 0xff; - buf[offset++] = (tl >>> 16) & 0xff; - buf[offset++] = (tl >>> 8) & 0xff; - buf[offset++] = tl & 0xff; - const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff; - buf[offset++] = (tmh >>> 8) & 0xff; - buf[offset++] = tmh & 0xff; - buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10; - buf[offset++] = (tmh >>> 16) & 0xff; - buf[offset++] = (clockseq >>> 8) | 0x80; - buf[offset++] = clockseq & 0xff; - for (let n = 0; n < 6; ++n) { - buf[offset++] = node[n]; - } - return buf; -} -export default v1; diff --git a/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts b/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts deleted file mode 100644 index 38eaaf0..0000000 --- a/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export default function v1ToV6(uuid: string): string; -export default function v1ToV6(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/esm-browser/v1ToV6.js b/node_modules/uuid/dist/esm-browser/v1ToV6.js deleted file mode 100644 index da0f763..0000000 --- a/node_modules/uuid/dist/esm-browser/v1ToV6.js +++ /dev/null @@ -1,10 +0,0 @@ -import parse from './parse.js'; -import { unsafeStringify } from './stringify.js'; -export default function v1ToV6(uuid) { - const v1Bytes = typeof uuid === 'string' ? parse(uuid) : uuid; - const v6Bytes = _v1ToV6(v1Bytes); - return typeof uuid === 'string' ? unsafeStringify(v6Bytes) : v6Bytes; -} -function _v1ToV6(v1Bytes) { - return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]); -} diff --git a/node_modules/uuid/dist/esm-browser/v3.d.ts b/node_modules/uuid/dist/esm-browser/v3.d.ts deleted file mode 100644 index 5d1c434..0000000 --- a/node_modules/uuid/dist/esm-browser/v3.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UUIDTypes } from './types.js'; -export { DNS, URL } from './v35.js'; -declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; -declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf: TBuf, offset?: number): TBuf; -declare namespace v3 { - var DNS: string; - var URL: string; -} -export default v3; diff --git a/node_modules/uuid/dist/esm-browser/v3.js b/node_modules/uuid/dist/esm-browser/v3.js deleted file mode 100644 index b5c3781..0000000 --- a/node_modules/uuid/dist/esm-browser/v3.js +++ /dev/null @@ -1,9 +0,0 @@ -import md5 from './md5.js'; -import v35, { DNS, URL } from './v35.js'; -export { DNS, URL } from './v35.js'; -function v3(value, namespace, buf, offset) { - return v35(0x30, md5, value, namespace, buf, offset); -} -v3.DNS = DNS; -v3.URL = URL; -export default v3; diff --git a/node_modules/uuid/dist/esm-browser/v35.d.ts b/node_modules/uuid/dist/esm-browser/v35.d.ts deleted file mode 100644 index 4e6e9d5..0000000 --- a/node_modules/uuid/dist/esm-browser/v35.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { UUIDTypes } from './types.js'; -export declare function stringToBytes(str: string): Uint8Array; -export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; -export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; -type HashFunction = (bytes: Uint8Array) => Uint8Array; -export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: TBuf, offset?: number): UUIDTypes; -export {}; diff --git a/node_modules/uuid/dist/esm-browser/v35.js b/node_modules/uuid/dist/esm-browser/v35.js deleted file mode 100644 index 3fe6573..0000000 --- a/node_modules/uuid/dist/esm-browser/v35.js +++ /dev/null @@ -1,36 +0,0 @@ -import parse from './parse.js'; -import { unsafeStringify } from './stringify.js'; -export function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); - const bytes = new Uint8Array(str.length); - for (let i = 0; i < str.length; ++i) { - bytes[i] = str.charCodeAt(i); - } - return bytes; -} -export const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -export const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -export default function v35(version, hash, value, namespace, buf, offset) { - const valueBytes = typeof value === 'string' ? stringToBytes(value) : value; - const namespaceBytes = typeof namespace === 'string' ? parse(namespace) : namespace; - if (typeof namespace === 'string') { - namespace = parse(namespace); - } - if (namespace?.length !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } - let bytes = new Uint8Array(16 + valueBytes.length); - bytes.set(namespaceBytes); - bytes.set(valueBytes, namespaceBytes.length); - bytes = hash(bytes); - bytes[6] = (bytes[6] & 0x0f) | version; - bytes[8] = (bytes[8] & 0x3f) | 0x80; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return unsafeStringify(bytes); -} diff --git a/node_modules/uuid/dist/esm-browser/v4.d.ts b/node_modules/uuid/dist/esm-browser/v4.d.ts deleted file mode 100644 index 8205333..0000000 --- a/node_modules/uuid/dist/esm-browser/v4.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Version4Options } from './types.js'; -declare function v4(options?: Version4Options, buf?: undefined, offset?: number): string; -declare function v4(options: Version4Options | undefined, buf: TBuf, offset?: number): TBuf; -export default v4; diff --git a/node_modules/uuid/dist/esm-browser/v4.js b/node_modules/uuid/dist/esm-browser/v4.js deleted file mode 100644 index dd9067a..0000000 --- a/node_modules/uuid/dist/esm-browser/v4.js +++ /dev/null @@ -1,27 +0,0 @@ -import native from './native.js'; -import rng from './rng.js'; -import { unsafeStringify } from './stringify.js'; -function v4(options, buf, offset) { - if (native.randomUUID && !buf && !options) { - return native.randomUUID(); - } - options = options || {}; - const rnds = options.random ?? options.rng?.() ?? rng(); - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - rnds[6] = (rnds[6] & 0x0f) | 0x40; - rnds[8] = (rnds[8] & 0x3f) | 0x80; - if (buf) { - offset = offset || 0; - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return unsafeStringify(rnds); -} -export default v4; diff --git a/node_modules/uuid/dist/esm-browser/v5.d.ts b/node_modules/uuid/dist/esm-browser/v5.d.ts deleted file mode 100644 index 0e2ff2f..0000000 --- a/node_modules/uuid/dist/esm-browser/v5.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UUIDTypes } from './types.js'; -export { DNS, URL } from './v35.js'; -declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; -declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf: TBuf, offset?: number): TBuf; -declare namespace v5 { - var DNS: string; - var URL: string; -} -export default v5; diff --git a/node_modules/uuid/dist/esm-browser/v5.js b/node_modules/uuid/dist/esm-browser/v5.js deleted file mode 100644 index bd470a4..0000000 --- a/node_modules/uuid/dist/esm-browser/v5.js +++ /dev/null @@ -1,9 +0,0 @@ -import sha1 from './sha1.js'; -import v35, { DNS, URL } from './v35.js'; -export { DNS, URL } from './v35.js'; -function v5(value, namespace, buf, offset) { - return v35(0x50, sha1, value, namespace, buf, offset); -} -v5.DNS = DNS; -v5.URL = URL; -export default v5; diff --git a/node_modules/uuid/dist/esm-browser/v6.d.ts b/node_modules/uuid/dist/esm-browser/v6.d.ts deleted file mode 100644 index cabf4a0..0000000 --- a/node_modules/uuid/dist/esm-browser/v6.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Version6Options } from './types.js'; -declare function v6(options?: Version6Options, buf?: undefined, offset?: number): string; -declare function v6(options: Version6Options | undefined, buf: TBuf, offset?: number): TBuf; -export default v6; diff --git a/node_modules/uuid/dist/esm-browser/v6.js b/node_modules/uuid/dist/esm-browser/v6.js deleted file mode 100644 index 278a339..0000000 --- a/node_modules/uuid/dist/esm-browser/v6.js +++ /dev/null @@ -1,17 +0,0 @@ -import { unsafeStringify } from './stringify.js'; -import v1 from './v1.js'; -import v1ToV6 from './v1ToV6.js'; -function v6(options, buf, offset) { - options ??= {}; - offset ??= 0; - let bytes = v1({ ...options, _v6: true }, new Uint8Array(16)); - bytes = v1ToV6(bytes); - if (buf) { - for (let i = 0; i < 16; i++) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return unsafeStringify(bytes); -} -export default v6; diff --git a/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts b/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts deleted file mode 100644 index 3b3ffc2..0000000 --- a/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export default function v6ToV1(uuid: string): string; -export default function v6ToV1(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/esm-browser/v6ToV1.js b/node_modules/uuid/dist/esm-browser/v6ToV1.js deleted file mode 100644 index bfd942f..0000000 --- a/node_modules/uuid/dist/esm-browser/v6ToV1.js +++ /dev/null @@ -1,10 +0,0 @@ -import parse from './parse.js'; -import { unsafeStringify } from './stringify.js'; -export default function v6ToV1(uuid) { - const v6Bytes = typeof uuid === 'string' ? parse(uuid) : uuid; - const v1Bytes = _v6ToV1(v6Bytes); - return typeof uuid === 'string' ? unsafeStringify(v1Bytes) : v1Bytes; -} -function _v6ToV1(v6Bytes) { - return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); -} diff --git a/node_modules/uuid/dist/esm-browser/v7.d.ts b/node_modules/uuid/dist/esm-browser/v7.d.ts deleted file mode 100644 index f49b03d..0000000 --- a/node_modules/uuid/dist/esm-browser/v7.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Version7Options } from './types.js'; -type V7State = { - msecs?: number; - seq?: number; -}; -declare function v7(options?: Version7Options, buf?: undefined, offset?: number): string; -declare function v7(options: Version7Options | undefined, buf: TBuf, offset?: number): TBuf; -export declare function updateV7State(state: V7State, now: number, rnds: Uint8Array): V7State; -export default v7; diff --git a/node_modules/uuid/dist/esm-browser/v7.js b/node_modules/uuid/dist/esm-browser/v7.js deleted file mode 100644 index 276c9bf..0000000 --- a/node_modules/uuid/dist/esm-browser/v7.js +++ /dev/null @@ -1,65 +0,0 @@ -import rng from './rng.js'; -import { unsafeStringify } from './stringify.js'; -const _state = {}; -function v7(options, buf, offset) { - let bytes; - if (options) { - bytes = v7Bytes(options.random ?? options.rng?.() ?? rng(), options.msecs, options.seq, buf, offset); - } - else { - const now = Date.now(); - const rnds = rng(); - updateV7State(_state, now, rnds); - bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset); - } - return buf ?? unsafeStringify(bytes); -} -export function updateV7State(state, now, rnds) { - state.msecs ??= -Infinity; - state.seq ??= 0; - if (now > state.msecs) { - state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; - state.msecs = now; - } - else { - state.seq = (state.seq + 1) | 0; - if (state.seq === 0) { - state.msecs++; - } - } - return state; -} -function v7Bytes(rnds, msecs, seq, buf, offset = 0) { - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - if (!buf) { - buf = new Uint8Array(16); - offset = 0; - } - else { - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - } - msecs ??= Date.now(); - seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; - buf[offset++] = (msecs / 0x10000000000) & 0xff; - buf[offset++] = (msecs / 0x100000000) & 0xff; - buf[offset++] = (msecs / 0x1000000) & 0xff; - buf[offset++] = (msecs / 0x10000) & 0xff; - buf[offset++] = (msecs / 0x100) & 0xff; - buf[offset++] = msecs & 0xff; - buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f); - buf[offset++] = (seq >>> 20) & 0xff; - buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f); - buf[offset++] = (seq >>> 6) & 0xff; - buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03); - buf[offset++] = rnds[11]; - buf[offset++] = rnds[12]; - buf[offset++] = rnds[13]; - buf[offset++] = rnds[14]; - buf[offset++] = rnds[15]; - return buf; -} -export default v7; diff --git a/node_modules/uuid/dist/esm-browser/validate.d.ts b/node_modules/uuid/dist/esm-browser/validate.d.ts deleted file mode 100644 index 57da03d..0000000 --- a/node_modules/uuid/dist/esm-browser/validate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function validate(uuid: unknown): boolean; -export default validate; diff --git a/node_modules/uuid/dist/esm-browser/validate.js b/node_modules/uuid/dist/esm-browser/validate.js deleted file mode 100644 index 444a1a2..0000000 --- a/node_modules/uuid/dist/esm-browser/validate.js +++ /dev/null @@ -1,5 +0,0 @@ -import REGEX from './regex.js'; -function validate(uuid) { - return typeof uuid === 'string' && REGEX.test(uuid); -} -export default validate; diff --git a/node_modules/uuid/dist/esm-browser/version.d.ts b/node_modules/uuid/dist/esm-browser/version.d.ts deleted file mode 100644 index f1948dc..0000000 --- a/node_modules/uuid/dist/esm-browser/version.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function version(uuid: string): number; -export default version; diff --git a/node_modules/uuid/dist/esm-browser/version.js b/node_modules/uuid/dist/esm-browser/version.js deleted file mode 100644 index bae91d3..0000000 --- a/node_modules/uuid/dist/esm-browser/version.js +++ /dev/null @@ -1,8 +0,0 @@ -import validate from './validate.js'; -function version(uuid) { - if (!validate(uuid)) { - throw TypeError('Invalid UUID'); - } - return parseInt(uuid.slice(14, 15), 16); -} -export default version; diff --git a/node_modules/uuid/dist/esm/bin/uuid b/node_modules/uuid/dist/esm/bin/uuid deleted file mode 100755 index b4f612d..0000000 --- a/node_modules/uuid/dist/esm/bin/uuid +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -import '../uuid-bin.js'; diff --git a/node_modules/uuid/dist/esm/index.d.ts b/node_modules/uuid/dist/esm/index.d.ts deleted file mode 100644 index d7d4edc..0000000 --- a/node_modules/uuid/dist/esm/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export type * from './types.js'; -export { default as MAX } from './max.js'; -export { default as NIL } from './nil.js'; -export { default as parse } from './parse.js'; -export { default as stringify } from './stringify.js'; -export { default as v1 } from './v1.js'; -export { default as v1ToV6 } from './v1ToV6.js'; -export { default as v3 } from './v3.js'; -export { default as v4 } from './v4.js'; -export { default as v5 } from './v5.js'; -export { default as v6 } from './v6.js'; -export { default as v6ToV1 } from './v6ToV1.js'; -export { default as v7 } from './v7.js'; -export { default as validate } from './validate.js'; -export { default as version } from './version.js'; diff --git a/node_modules/uuid/dist/esm/index.js b/node_modules/uuid/dist/esm/index.js deleted file mode 100644 index 3193e9a..0000000 --- a/node_modules/uuid/dist/esm/index.js +++ /dev/null @@ -1,14 +0,0 @@ -export { default as MAX } from './max.js'; -export { default as NIL } from './nil.js'; -export { default as parse } from './parse.js'; -export { default as stringify } from './stringify.js'; -export { default as v1 } from './v1.js'; -export { default as v1ToV6 } from './v1ToV6.js'; -export { default as v3 } from './v3.js'; -export { default as v4 } from './v4.js'; -export { default as v5 } from './v5.js'; -export { default as v6 } from './v6.js'; -export { default as v6ToV1 } from './v6ToV1.js'; -export { default as v7 } from './v7.js'; -export { default as validate } from './validate.js'; -export { default as version } from './version.js'; diff --git a/node_modules/uuid/dist/esm/max.d.ts b/node_modules/uuid/dist/esm/max.d.ts deleted file mode 100644 index 7a1e972..0000000 --- a/node_modules/uuid/dist/esm/max.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: "ffffffff-ffff-ffff-ffff-ffffffffffff"; -export default _default; diff --git a/node_modules/uuid/dist/esm/max.js b/node_modules/uuid/dist/esm/max.js deleted file mode 100644 index 58951f6..0000000 --- a/node_modules/uuid/dist/esm/max.js +++ /dev/null @@ -1 +0,0 @@ -export default 'ffffffff-ffff-ffff-ffff-ffffffffffff'; diff --git a/node_modules/uuid/dist/esm/md5.d.ts b/node_modules/uuid/dist/esm/md5.d.ts deleted file mode 100644 index 7d60244..0000000 --- a/node_modules/uuid/dist/esm/md5.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// -/// -declare function md5(bytes: Uint8Array): Buffer; -export default md5; diff --git a/node_modules/uuid/dist/esm/md5.js b/node_modules/uuid/dist/esm/md5.js deleted file mode 100644 index b922d98..0000000 --- a/node_modules/uuid/dist/esm/md5.js +++ /dev/null @@ -1,11 +0,0 @@ -import { createHash } from 'crypto'; -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } - else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - return createHash('md5').update(bytes).digest(); -} -export default md5; diff --git a/node_modules/uuid/dist/esm/native.d.ts b/node_modules/uuid/dist/esm/native.d.ts deleted file mode 100644 index 9e0d2ac..0000000 --- a/node_modules/uuid/dist/esm/native.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -import { randomUUID } from 'crypto'; -declare const _default: { - randomUUID: typeof randomUUID; -}; -export default _default; diff --git a/node_modules/uuid/dist/esm/native.js b/node_modules/uuid/dist/esm/native.js deleted file mode 100644 index ba74bca..0000000 --- a/node_modules/uuid/dist/esm/native.js +++ /dev/null @@ -1,2 +0,0 @@ -import { randomUUID } from 'crypto'; -export default { randomUUID }; diff --git a/node_modules/uuid/dist/esm/nil.d.ts b/node_modules/uuid/dist/esm/nil.d.ts deleted file mode 100644 index b03bb98..0000000 --- a/node_modules/uuid/dist/esm/nil.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: "00000000-0000-0000-0000-000000000000"; -export default _default; diff --git a/node_modules/uuid/dist/esm/nil.js b/node_modules/uuid/dist/esm/nil.js deleted file mode 100644 index de6f830..0000000 --- a/node_modules/uuid/dist/esm/nil.js +++ /dev/null @@ -1 +0,0 @@ -export default '00000000-0000-0000-0000-000000000000'; diff --git a/node_modules/uuid/dist/esm/parse.d.ts b/node_modules/uuid/dist/esm/parse.d.ts deleted file mode 100644 index a316fb1..0000000 --- a/node_modules/uuid/dist/esm/parse.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function parse(uuid: string): Uint8Array; -export default parse; diff --git a/node_modules/uuid/dist/esm/parse.js b/node_modules/uuid/dist/esm/parse.js deleted file mode 100644 index 64ac401..0000000 --- a/node_modules/uuid/dist/esm/parse.js +++ /dev/null @@ -1,9 +0,0 @@ -import validate from './validate.js'; -function parse(uuid) { - if (!validate(uuid)) { - throw TypeError('Invalid UUID'); - } - let v; - return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff); -} -export default parse; diff --git a/node_modules/uuid/dist/esm/regex.d.ts b/node_modules/uuid/dist/esm/regex.d.ts deleted file mode 100644 index d39fa3f..0000000 --- a/node_modules/uuid/dist/esm/regex.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: RegExp; -export default _default; diff --git a/node_modules/uuid/dist/esm/regex.js b/node_modules/uuid/dist/esm/regex.js deleted file mode 100644 index 3e38591..0000000 --- a/node_modules/uuid/dist/esm/regex.js +++ /dev/null @@ -1 +0,0 @@ -export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; diff --git a/node_modules/uuid/dist/esm/rng.d.ts b/node_modules/uuid/dist/esm/rng.d.ts deleted file mode 100644 index 73e60cf..0000000 --- a/node_modules/uuid/dist/esm/rng.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function rng(): Uint8Array; diff --git a/node_modules/uuid/dist/esm/rng.js b/node_modules/uuid/dist/esm/rng.js deleted file mode 100644 index 54c1cfe..0000000 --- a/node_modules/uuid/dist/esm/rng.js +++ /dev/null @@ -1,10 +0,0 @@ -import { randomFillSync } from 'crypto'; -const rnds8Pool = new Uint8Array(256); -let poolPtr = rnds8Pool.length; -export default function rng() { - if (poolPtr > rnds8Pool.length - 16) { - randomFillSync(rnds8Pool); - poolPtr = 0; - } - return rnds8Pool.slice(poolPtr, (poolPtr += 16)); -} diff --git a/node_modules/uuid/dist/esm/sha1.d.ts b/node_modules/uuid/dist/esm/sha1.d.ts deleted file mode 100644 index ebb1404..0000000 --- a/node_modules/uuid/dist/esm/sha1.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// -/// -declare function sha1(bytes: Uint8Array): Buffer; -export default sha1; diff --git a/node_modules/uuid/dist/esm/sha1.js b/node_modules/uuid/dist/esm/sha1.js deleted file mode 100644 index fda4aa3..0000000 --- a/node_modules/uuid/dist/esm/sha1.js +++ /dev/null @@ -1,11 +0,0 @@ -import { createHash } from 'crypto'; -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } - else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - return createHash('sha1').update(bytes).digest(); -} -export default sha1; diff --git a/node_modules/uuid/dist/esm/stringify.d.ts b/node_modules/uuid/dist/esm/stringify.d.ts deleted file mode 100644 index 16cb008..0000000 --- a/node_modules/uuid/dist/esm/stringify.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function unsafeStringify(arr: Uint8Array, offset?: number): string; -declare function stringify(arr: Uint8Array, offset?: number): string; -export default stringify; diff --git a/node_modules/uuid/dist/esm/stringify.js b/node_modules/uuid/dist/esm/stringify.js deleted file mode 100644 index 962738c..0000000 --- a/node_modules/uuid/dist/esm/stringify.js +++ /dev/null @@ -1,35 +0,0 @@ -import validate from './validate.js'; -const byteToHex = []; -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); -} -export function unsafeStringify(arr, offset = 0) { - return (byteToHex[arr[offset + 0]] + - byteToHex[arr[offset + 1]] + - byteToHex[arr[offset + 2]] + - byteToHex[arr[offset + 3]] + - '-' + - byteToHex[arr[offset + 4]] + - byteToHex[arr[offset + 5]] + - '-' + - byteToHex[arr[offset + 6]] + - byteToHex[arr[offset + 7]] + - '-' + - byteToHex[arr[offset + 8]] + - byteToHex[arr[offset + 9]] + - '-' + - byteToHex[arr[offset + 10]] + - byteToHex[arr[offset + 11]] + - byteToHex[arr[offset + 12]] + - byteToHex[arr[offset + 13]] + - byteToHex[arr[offset + 14]] + - byteToHex[arr[offset + 15]]).toLowerCase(); -} -function stringify(arr, offset = 0) { - const uuid = unsafeStringify(arr, offset); - if (!validate(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - return uuid; -} -export default stringify; diff --git a/node_modules/uuid/dist/esm/types.d.ts b/node_modules/uuid/dist/esm/types.d.ts deleted file mode 100644 index ecaed97..0000000 --- a/node_modules/uuid/dist/esm/types.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export type UUIDTypes = string | TBuf; -export type Version1Options = { - node?: Uint8Array; - clockseq?: number; - random?: Uint8Array; - rng?: () => Uint8Array; - msecs?: number; - nsecs?: number; - _v6?: boolean; -}; -export type Version4Options = { - random?: Uint8Array; - rng?: () => Uint8Array; -}; -export type Version6Options = Version1Options; -export type Version7Options = { - random?: Uint8Array; - msecs?: number; - seq?: number; - rng?: () => Uint8Array; -}; diff --git a/node_modules/uuid/dist/esm/types.js b/node_modules/uuid/dist/esm/types.js deleted file mode 100644 index cb0ff5c..0000000 --- a/node_modules/uuid/dist/esm/types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/uuid/dist/esm/uuid-bin.d.ts b/node_modules/uuid/dist/esm/uuid-bin.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/node_modules/uuid/dist/esm/uuid-bin.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/uuid/dist/esm/uuid-bin.js b/node_modules/uuid/dist/esm/uuid-bin.js deleted file mode 100644 index 30766fe..0000000 --- a/node_modules/uuid/dist/esm/uuid-bin.js +++ /dev/null @@ -1,70 +0,0 @@ -import * as assert from 'assert'; -import v1 from './v1.js'; -import v3 from './v3.js'; -import v4 from './v4.js'; -import v5 from './v5.js'; -import v6 from './v6.js'; -import v7 from './v7.js'; -function usage() { - console.log('Usage:'); - console.log(' uuid'); - console.log(' uuid v1'); - console.log(' uuid v3 '); - console.log(' uuid v4'); - console.log(' uuid v5 '); - console.log(' uuid v6'); - console.log(' uuid v7'); - console.log(' uuid --help'); - console.log('\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562'); -} -const args = process.argv.slice(2); -if (args.indexOf('--help') >= 0) { - usage(); - process.exit(0); -} -const version = args.shift() || 'v4'; -switch (version) { - case 'v1': - console.log(v1()); - break; - case 'v3': { - const name = args.shift(); - let namespace = args.shift(); - assert.ok(name != null, 'v3 name not specified'); - assert.ok(namespace != null, 'v3 namespace not specified'); - if (namespace === 'URL') { - namespace = v3.URL; - } - if (namespace === 'DNS') { - namespace = v3.DNS; - } - console.log(v3(name, namespace)); - break; - } - case 'v4': - console.log(v4()); - break; - case 'v5': { - const name = args.shift(); - let namespace = args.shift(); - assert.ok(name != null, 'v5 name not specified'); - assert.ok(namespace != null, 'v5 namespace not specified'); - if (namespace === 'URL') { - namespace = v5.URL; - } - if (namespace === 'DNS') { - namespace = v5.DNS; - } - console.log(v5(name, namespace)); - break; - } - case 'v6': - console.log(v6()); - break; - case 'v7': - console.log(v7()); - break; - default: - usage(); - process.exit(1); -} diff --git a/node_modules/uuid/dist/esm/v1.d.ts b/node_modules/uuid/dist/esm/v1.d.ts deleted file mode 100644 index d8ecee0..0000000 --- a/node_modules/uuid/dist/esm/v1.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Version1Options } from './types.js'; -type V1State = { - node?: Uint8Array; - clockseq?: number; - msecs?: number; - nsecs?: number; -}; -declare function v1(options?: Version1Options, buf?: undefined, offset?: number): string; -declare function v1(options: Version1Options | undefined, buf: Buf, offset?: number): Buf; -export declare function updateV1State(state: V1State, now: number, rnds: Uint8Array): V1State; -export default v1; diff --git a/node_modules/uuid/dist/esm/v1.js b/node_modules/uuid/dist/esm/v1.js deleted file mode 100644 index 65e3f68..0000000 --- a/node_modules/uuid/dist/esm/v1.js +++ /dev/null @@ -1,83 +0,0 @@ -import rng from './rng.js'; -import { unsafeStringify } from './stringify.js'; -const _state = {}; -function v1(options, buf, offset) { - let bytes; - const isV6 = options?._v6 ?? false; - if (options) { - const optionsKeys = Object.keys(options); - if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') { - options = undefined; - } - } - if (options) { - bytes = v1Bytes(options.random ?? options.rng?.() ?? rng(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset); - } - else { - const now = Date.now(); - const rnds = rng(); - updateV1State(_state, now, rnds); - bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset); - } - return buf ?? unsafeStringify(bytes); -} -export function updateV1State(state, now, rnds) { - state.msecs ??= -Infinity; - state.nsecs ??= 0; - if (now === state.msecs) { - state.nsecs++; - if (state.nsecs >= 10000) { - state.node = undefined; - state.nsecs = 0; - } - } - else if (now > state.msecs) { - state.nsecs = 0; - } - else if (now < state.msecs) { - state.node = undefined; - } - if (!state.node) { - state.node = rnds.slice(10, 16); - state.node[0] |= 0x01; - state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff; - } - state.msecs = now; - return state; -} -function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) { - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - if (!buf) { - buf = new Uint8Array(16); - offset = 0; - } - else { - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - } - msecs ??= Date.now(); - nsecs ??= 0; - clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff; - node ??= rnds.slice(10, 16); - msecs += 12219292800000; - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - buf[offset++] = (tl >>> 24) & 0xff; - buf[offset++] = (tl >>> 16) & 0xff; - buf[offset++] = (tl >>> 8) & 0xff; - buf[offset++] = tl & 0xff; - const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff; - buf[offset++] = (tmh >>> 8) & 0xff; - buf[offset++] = tmh & 0xff; - buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10; - buf[offset++] = (tmh >>> 16) & 0xff; - buf[offset++] = (clockseq >>> 8) | 0x80; - buf[offset++] = clockseq & 0xff; - for (let n = 0; n < 6; ++n) { - buf[offset++] = node[n]; - } - return buf; -} -export default v1; diff --git a/node_modules/uuid/dist/esm/v1ToV6.d.ts b/node_modules/uuid/dist/esm/v1ToV6.d.ts deleted file mode 100644 index 38eaaf0..0000000 --- a/node_modules/uuid/dist/esm/v1ToV6.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export default function v1ToV6(uuid: string): string; -export default function v1ToV6(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/esm/v1ToV6.js b/node_modules/uuid/dist/esm/v1ToV6.js deleted file mode 100644 index da0f763..0000000 --- a/node_modules/uuid/dist/esm/v1ToV6.js +++ /dev/null @@ -1,10 +0,0 @@ -import parse from './parse.js'; -import { unsafeStringify } from './stringify.js'; -export default function v1ToV6(uuid) { - const v1Bytes = typeof uuid === 'string' ? parse(uuid) : uuid; - const v6Bytes = _v1ToV6(v1Bytes); - return typeof uuid === 'string' ? unsafeStringify(v6Bytes) : v6Bytes; -} -function _v1ToV6(v1Bytes) { - return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]); -} diff --git a/node_modules/uuid/dist/esm/v3.d.ts b/node_modules/uuid/dist/esm/v3.d.ts deleted file mode 100644 index 5d1c434..0000000 --- a/node_modules/uuid/dist/esm/v3.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UUIDTypes } from './types.js'; -export { DNS, URL } from './v35.js'; -declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; -declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf: TBuf, offset?: number): TBuf; -declare namespace v3 { - var DNS: string; - var URL: string; -} -export default v3; diff --git a/node_modules/uuid/dist/esm/v3.js b/node_modules/uuid/dist/esm/v3.js deleted file mode 100644 index b5c3781..0000000 --- a/node_modules/uuid/dist/esm/v3.js +++ /dev/null @@ -1,9 +0,0 @@ -import md5 from './md5.js'; -import v35, { DNS, URL } from './v35.js'; -export { DNS, URL } from './v35.js'; -function v3(value, namespace, buf, offset) { - return v35(0x30, md5, value, namespace, buf, offset); -} -v3.DNS = DNS; -v3.URL = URL; -export default v3; diff --git a/node_modules/uuid/dist/esm/v35.d.ts b/node_modules/uuid/dist/esm/v35.d.ts deleted file mode 100644 index 4e6e9d5..0000000 --- a/node_modules/uuid/dist/esm/v35.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { UUIDTypes } from './types.js'; -export declare function stringToBytes(str: string): Uint8Array; -export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; -export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; -type HashFunction = (bytes: Uint8Array) => Uint8Array; -export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: TBuf, offset?: number): UUIDTypes; -export {}; diff --git a/node_modules/uuid/dist/esm/v35.js b/node_modules/uuid/dist/esm/v35.js deleted file mode 100644 index 3fe6573..0000000 --- a/node_modules/uuid/dist/esm/v35.js +++ /dev/null @@ -1,36 +0,0 @@ -import parse from './parse.js'; -import { unsafeStringify } from './stringify.js'; -export function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); - const bytes = new Uint8Array(str.length); - for (let i = 0; i < str.length; ++i) { - bytes[i] = str.charCodeAt(i); - } - return bytes; -} -export const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -export const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -export default function v35(version, hash, value, namespace, buf, offset) { - const valueBytes = typeof value === 'string' ? stringToBytes(value) : value; - const namespaceBytes = typeof namespace === 'string' ? parse(namespace) : namespace; - if (typeof namespace === 'string') { - namespace = parse(namespace); - } - if (namespace?.length !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } - let bytes = new Uint8Array(16 + valueBytes.length); - bytes.set(namespaceBytes); - bytes.set(valueBytes, namespaceBytes.length); - bytes = hash(bytes); - bytes[6] = (bytes[6] & 0x0f) | version; - bytes[8] = (bytes[8] & 0x3f) | 0x80; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return unsafeStringify(bytes); -} diff --git a/node_modules/uuid/dist/esm/v4.d.ts b/node_modules/uuid/dist/esm/v4.d.ts deleted file mode 100644 index 8205333..0000000 --- a/node_modules/uuid/dist/esm/v4.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Version4Options } from './types.js'; -declare function v4(options?: Version4Options, buf?: undefined, offset?: number): string; -declare function v4(options: Version4Options | undefined, buf: TBuf, offset?: number): TBuf; -export default v4; diff --git a/node_modules/uuid/dist/esm/v4.js b/node_modules/uuid/dist/esm/v4.js deleted file mode 100644 index dd9067a..0000000 --- a/node_modules/uuid/dist/esm/v4.js +++ /dev/null @@ -1,27 +0,0 @@ -import native from './native.js'; -import rng from './rng.js'; -import { unsafeStringify } from './stringify.js'; -function v4(options, buf, offset) { - if (native.randomUUID && !buf && !options) { - return native.randomUUID(); - } - options = options || {}; - const rnds = options.random ?? options.rng?.() ?? rng(); - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - rnds[6] = (rnds[6] & 0x0f) | 0x40; - rnds[8] = (rnds[8] & 0x3f) | 0x80; - if (buf) { - offset = offset || 0; - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return unsafeStringify(rnds); -} -export default v4; diff --git a/node_modules/uuid/dist/esm/v5.d.ts b/node_modules/uuid/dist/esm/v5.d.ts deleted file mode 100644 index 0e2ff2f..0000000 --- a/node_modules/uuid/dist/esm/v5.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UUIDTypes } from './types.js'; -export { DNS, URL } from './v35.js'; -declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string; -declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf: TBuf, offset?: number): TBuf; -declare namespace v5 { - var DNS: string; - var URL: string; -} -export default v5; diff --git a/node_modules/uuid/dist/esm/v5.js b/node_modules/uuid/dist/esm/v5.js deleted file mode 100644 index bd470a4..0000000 --- a/node_modules/uuid/dist/esm/v5.js +++ /dev/null @@ -1,9 +0,0 @@ -import sha1 from './sha1.js'; -import v35, { DNS, URL } from './v35.js'; -export { DNS, URL } from './v35.js'; -function v5(value, namespace, buf, offset) { - return v35(0x50, sha1, value, namespace, buf, offset); -} -v5.DNS = DNS; -v5.URL = URL; -export default v5; diff --git a/node_modules/uuid/dist/esm/v6.d.ts b/node_modules/uuid/dist/esm/v6.d.ts deleted file mode 100644 index cabf4a0..0000000 --- a/node_modules/uuid/dist/esm/v6.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Version6Options } from './types.js'; -declare function v6(options?: Version6Options, buf?: undefined, offset?: number): string; -declare function v6(options: Version6Options | undefined, buf: TBuf, offset?: number): TBuf; -export default v6; diff --git a/node_modules/uuid/dist/esm/v6.js b/node_modules/uuid/dist/esm/v6.js deleted file mode 100644 index 278a339..0000000 --- a/node_modules/uuid/dist/esm/v6.js +++ /dev/null @@ -1,17 +0,0 @@ -import { unsafeStringify } from './stringify.js'; -import v1 from './v1.js'; -import v1ToV6 from './v1ToV6.js'; -function v6(options, buf, offset) { - options ??= {}; - offset ??= 0; - let bytes = v1({ ...options, _v6: true }, new Uint8Array(16)); - bytes = v1ToV6(bytes); - if (buf) { - for (let i = 0; i < 16; i++) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return unsafeStringify(bytes); -} -export default v6; diff --git a/node_modules/uuid/dist/esm/v6ToV1.d.ts b/node_modules/uuid/dist/esm/v6ToV1.d.ts deleted file mode 100644 index 3b3ffc2..0000000 --- a/node_modules/uuid/dist/esm/v6ToV1.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export default function v6ToV1(uuid: string): string; -export default function v6ToV1(uuid: Uint8Array): Uint8Array; diff --git a/node_modules/uuid/dist/esm/v6ToV1.js b/node_modules/uuid/dist/esm/v6ToV1.js deleted file mode 100644 index bfd942f..0000000 --- a/node_modules/uuid/dist/esm/v6ToV1.js +++ /dev/null @@ -1,10 +0,0 @@ -import parse from './parse.js'; -import { unsafeStringify } from './stringify.js'; -export default function v6ToV1(uuid) { - const v6Bytes = typeof uuid === 'string' ? parse(uuid) : uuid; - const v1Bytes = _v6ToV1(v6Bytes); - return typeof uuid === 'string' ? unsafeStringify(v1Bytes) : v1Bytes; -} -function _v6ToV1(v6Bytes) { - return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); -} diff --git a/node_modules/uuid/dist/esm/v7.d.ts b/node_modules/uuid/dist/esm/v7.d.ts deleted file mode 100644 index f49b03d..0000000 --- a/node_modules/uuid/dist/esm/v7.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Version7Options } from './types.js'; -type V7State = { - msecs?: number; - seq?: number; -}; -declare function v7(options?: Version7Options, buf?: undefined, offset?: number): string; -declare function v7(options: Version7Options | undefined, buf: TBuf, offset?: number): TBuf; -export declare function updateV7State(state: V7State, now: number, rnds: Uint8Array): V7State; -export default v7; diff --git a/node_modules/uuid/dist/esm/v7.js b/node_modules/uuid/dist/esm/v7.js deleted file mode 100644 index 276c9bf..0000000 --- a/node_modules/uuid/dist/esm/v7.js +++ /dev/null @@ -1,65 +0,0 @@ -import rng from './rng.js'; -import { unsafeStringify } from './stringify.js'; -const _state = {}; -function v7(options, buf, offset) { - let bytes; - if (options) { - bytes = v7Bytes(options.random ?? options.rng?.() ?? rng(), options.msecs, options.seq, buf, offset); - } - else { - const now = Date.now(); - const rnds = rng(); - updateV7State(_state, now, rnds); - bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset); - } - return buf ?? unsafeStringify(bytes); -} -export function updateV7State(state, now, rnds) { - state.msecs ??= -Infinity; - state.seq ??= 0; - if (now > state.msecs) { - state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; - state.msecs = now; - } - else { - state.seq = (state.seq + 1) | 0; - if (state.seq === 0) { - state.msecs++; - } - } - return state; -} -function v7Bytes(rnds, msecs, seq, buf, offset = 0) { - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - if (!buf) { - buf = new Uint8Array(16); - offset = 0; - } - else { - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - } - msecs ??= Date.now(); - seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; - buf[offset++] = (msecs / 0x10000000000) & 0xff; - buf[offset++] = (msecs / 0x100000000) & 0xff; - buf[offset++] = (msecs / 0x1000000) & 0xff; - buf[offset++] = (msecs / 0x10000) & 0xff; - buf[offset++] = (msecs / 0x100) & 0xff; - buf[offset++] = msecs & 0xff; - buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f); - buf[offset++] = (seq >>> 20) & 0xff; - buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f); - buf[offset++] = (seq >>> 6) & 0xff; - buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03); - buf[offset++] = rnds[11]; - buf[offset++] = rnds[12]; - buf[offset++] = rnds[13]; - buf[offset++] = rnds[14]; - buf[offset++] = rnds[15]; - return buf; -} -export default v7; diff --git a/node_modules/uuid/dist/esm/validate.d.ts b/node_modules/uuid/dist/esm/validate.d.ts deleted file mode 100644 index 57da03d..0000000 --- a/node_modules/uuid/dist/esm/validate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function validate(uuid: unknown): boolean; -export default validate; diff --git a/node_modules/uuid/dist/esm/validate.js b/node_modules/uuid/dist/esm/validate.js deleted file mode 100644 index 444a1a2..0000000 --- a/node_modules/uuid/dist/esm/validate.js +++ /dev/null @@ -1,5 +0,0 @@ -import REGEX from './regex.js'; -function validate(uuid) { - return typeof uuid === 'string' && REGEX.test(uuid); -} -export default validate; diff --git a/node_modules/uuid/dist/esm/version.d.ts b/node_modules/uuid/dist/esm/version.d.ts deleted file mode 100644 index f1948dc..0000000 --- a/node_modules/uuid/dist/esm/version.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function version(uuid: string): number; -export default version; diff --git a/node_modules/uuid/dist/esm/version.js b/node_modules/uuid/dist/esm/version.js deleted file mode 100644 index bae91d3..0000000 --- a/node_modules/uuid/dist/esm/version.js +++ /dev/null @@ -1,8 +0,0 @@ -import validate from './validate.js'; -function version(uuid) { - if (!validate(uuid)) { - throw TypeError('Invalid UUID'); - } - return parseInt(uuid.slice(14, 15), 16); -} -export default version; diff --git a/node_modules/uuid/package.json b/node_modules/uuid/package.json deleted file mode 100644 index b0da6d9..0000000 --- a/node_modules/uuid/package.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "name": "uuid", - "version": "11.1.0", - "description": "RFC9562 UUIDs", - "type": "module", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "commitlint": { - "extends": [ - "@commitlint/config-conventional" - ] - }, - "keywords": [ - "uuid", - "guid", - "rfc4122", - "rfc9562" - ], - "license": "MIT", - "bin": { - "uuid": "./dist/esm/bin/uuid" - }, - "sideEffects": false, - "main": "./dist/cjs/index.js", - "exports": { - ".": { - "node": { - "import": "./dist/esm/index.js", - "require": "./dist/cjs/index.js" - }, - "browser": { - "import": "./dist/esm-browser/index.js", - "require": "./dist/cjs-browser/index.js" - }, - "default": "./dist/esm-browser/index.js" - }, - "./package.json": "./package.json" - }, - "module": "./dist/esm/index.js", - "browser": { - "./dist/esm/index.js": "./dist/esm-browser/index.js", - "./dist/cjs/index.js": "./dist/cjs-browser/index.js" - }, - "files": [ - "dist", - "!dist/**/test" - ], - "devDependencies": { - "@babel/eslint-parser": "7.25.9", - "@commitlint/cli": "19.6.1", - "@commitlint/config-conventional": "19.6.0", - "@eslint/js": "9.17.0", - "@types/eslint__js": "8.42.3", - "bundlewatch": "0.4.0", - "commander": "12.1.0", - "eslint": "9.17.0", - "eslint-config-prettier": "9.1.0", - "eslint-plugin-prettier": "5.2.1", - "globals": "15.14.0", - "husky": "9.1.7", - "jest": "29.7.0", - "lint-staged": "15.2.11", - "neostandard": "0.12.0", - "npm-run-all": "4.1.5", - "prettier": "3.4.2", - "release-please": "16.15.0", - "runmd": "1.4.1", - "standard-version": "9.5.0", - "typescript": "5.0.4", - "typescript-eslint": "8.18.2" - }, - "optionalDevDependencies": { - "@wdio/browserstack-service": "9.2.1", - "@wdio/cli": "9.2.1", - "@wdio/jasmine-framework": "9.2.1", - "@wdio/local-runner": "9.2.1", - "@wdio/spec-reporter": "9.1.3", - "@wdio/static-server-service": "9.1.3" - }, - "scripts": { - "build": "./scripts/build.sh", - "build:watch": "tsc --watch -p tsconfig.esm.json", - "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json", - "docs:diff": "npm run docs && git diff --quiet README.md", - "docs": "npm run build && npx runmd --output=README.md README_js.md", - "eslint:check": "eslint src/ test/ examples/ *.[jt]s", - "eslint:fix": "eslint --fix src/ test/ examples/ *.[jt]s", - "examples:browser:rollup:build": "cd examples/browser-rollup && npm run build", - "examples:browser:webpack:build": "cd examples/browser-webpack && npm run build", - "examples:node:commonjs:test": "cd examples/node-commonjs && npm test", - "examples:node:esmodules:test": "cd examples/node-esmodules && npm test", - "examples:node:jest:test": "cd examples/node-jest && npm test", - "examples:node:typescript:test": "cd examples/typescript && npm test", - "lint": "npm run eslint:check && npm run prettier:check", - "md": "runmd --watch --output=README.md README_js.md", - "prepack": "npm run build -- --no-pack", - "prepare": "husky", - "prepublishOnly": "npm run build", - "pretest:benchmark": "npm run build", - "pretest:browser": "./scripts/iodd && npm run build && npm-run-all --parallel examples:browser:**", - "pretest:node": "npm run build", - "pretest": "npm run build", - "prettier:check": "prettier --check .", - "prettier:fix": "prettier --write .", - "release": "standard-version --no-verify", - "test:benchmark": "cd examples/benchmark && npm test", - "test:browser": "wdio run ./wdio.conf.js", - "test:node": "npm-run-all --parallel examples:node:**", - "test:watch": "node --test --enable-source-maps --watch dist/esm/test/*.js", - "test": "node --test --enable-source-maps dist/esm/test/*.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/uuidjs/uuid.git" - }, - "lint-staged": { - "*": [ - "prettier --no-error-on-unmatched-pattern --write" - ], - "*.{js,jsx}": [ - "eslint --no-error-on-unmatched-pattern --fix" - ] - }, - "standard-version": { - "scripts": { - "postchangelog": "prettier --write CHANGELOG.md" - } - }, - "packageManager": "npm@11.0.0" -} diff --git a/node_modules/varint/README.md b/node_modules/varint/README.md deleted file mode 100644 index fd1293c..0000000 --- a/node_modules/varint/README.md +++ /dev/null @@ -1,53 +0,0 @@ -# varint - -encode whole numbers to an array of [protobuf-style varint bytes](https://developers.google.com/protocol-buffers/docs/encoding#varints) and also decode them. - -```javascript -var varint = require('varint') - -var bytes = varint.encode(300) // === [0xAC, 0x02] -varint.decode(bytes) // 300 -varint.decode.bytes // 2 (the last decode() call required 2 bytes) -``` - -## api - -### varint = require('varint') - -### varint.encode(num[, buffer=[], offset=0]) -> buffer - -Encodes `num` into `buffer` starting at `offset`. returns `buffer`, with the encoded varint written into it. If `buffer` is not provided, it will default to a new array. - -`varint.encode.bytes` will now be set to the number of bytes -modified. - -### varint.decode(data[, offset=0]) -> number - -decodes `data`, which can be either a buffer or array of integers, from position `offset` or default 0 and returns the decoded original integer. - -Throws a `RangeError` when `data` does not represent a valid encoding. - -### varint.decode.bytes - -if you also require the length (number of bytes) that were required to decode the integer you can access it via `varint.decode.bytes`. this is an integer property that will tell you the number of bytes that the last .decode() call had to use to decode. - -### varint.encode.bytes - -similar to `decode.bytes` when encoding a number it can be useful to know how many bytes where written (especially if you pass an output array). you can access this via `varint.encode.bytes` which holds the number of bytes written in the last encode. - - -### varint.encodingLength(num) - -returns the number of bytes this number will be encoded as, up to a maximum of 8. - -## usage notes - -If varint is passed a buffer that does not contain a valid end -byte, then `decode` will throw `RangeError`, and `decode.bytes` -will be set to 0. If you are reading from a streaming source, -it's okay to pass an incomplete buffer into `decode`, detect this -case, and then concatenate the next buffer. - -# License - -MIT diff --git a/node_modules/varint/bench.js b/node_modules/varint/bench.js deleted file mode 100644 index c13931c..0000000 --- a/node_modules/varint/bench.js +++ /dev/null @@ -1,57 +0,0 @@ -var N = 1e7 -var M = 10 -/* - benchmark encoding and decoding N random integers. - - A number is encoded into a buffer, (the buffer is reused so - that allocation does not affect the benchmark) - - to test the effect on performance of invalid records - (i.e. too short, with the Most Significant Byte missing) - every M items, attempt to decode from a shorter slice of the buffer. - This will probably be produce an invalid result. We do not - need to write into that buffer - because it refurs to the same memory as - the full size buffer. - - run with INVALID=1 to include N/M invalid decodes. - - results: - with no invalid decodes, I get about 2428 decodes/ms - with invalid decodes: - old code that overruns buffer: 1122 decodes/ms - check length & return undefined: 2439 decodecs/ms - check length & return NaN: 2434 d/ms - check length & return -1: 2400 d/ms - - conclusion, it doesn't make a significant difference whether - what is returned to show an invalid read, - but if you overrun the buffer the cost is considerable. - - recomendation: return undefined -*/ - -var buffer = new Buffer(8) -var _buffer = buffer.slice(0, 4) -var varint = require('./') -var l = N -var invalid = 0 - -includeInvalid = !!process.env.INVALID - -var start = Date.now() -while (l--) { - var int = Math.floor(Math.random()*0x01fffffffffffff) - varint.encode(int, buffer, 0) - //console.log(int, varint.decode(buffer, 0)) - //every 1000 varints, do one that will be too short, - //measure - if(includeInvalid && !(l%M)) { - if(undefined == varint.decode(_buffer, 0)) - invalid ++ - } else - if(int !== varint.decode(buffer, 0)) - throw new Error('decode was incorrect') -} - -console.log('decode&encode/ms, invalidDecodes') -console.log(N/(Date.now() - start) + ',', invalid) diff --git a/node_modules/varint/decode.js b/node_modules/varint/decode.js deleted file mode 100644 index 80d49f2..0000000 --- a/node_modules/varint/decode.js +++ /dev/null @@ -1,29 +0,0 @@ -module.exports = read - -var MSB = 0x80 - , REST = 0x7F - -function read(buf, offset) { - var res = 0 - , offset = offset || 0 - , shift = 0 - , counter = offset - , b - , l = buf.length - - do { - if (counter >= l || shift > 49) { - read.bytes = 0 - throw new RangeError('Could not decode varint') - } - b = buf[counter++] - res += shift < 28 - ? (b & REST) << shift - : (b & REST) * Math.pow(2, shift) - shift += 7 - } while (b >= MSB) - - read.bytes = counter - offset - - return res -} diff --git a/node_modules/varint/encode.js b/node_modules/varint/encode.js deleted file mode 100644 index 91886a6..0000000 --- a/node_modules/varint/encode.js +++ /dev/null @@ -1,30 +0,0 @@ -module.exports = encode - -var MSB = 0x80 - , REST = 0x7F - , MSBALL = ~REST - , INT = Math.pow(2, 31) - -function encode(num, out, offset) { - if (Number.MAX_SAFE_INTEGER && num > Number.MAX_SAFE_INTEGER) { - encode.bytes = 0 - throw new RangeError('Could not encode varint') - } - out = out || [] - offset = offset || 0 - var oldOffset = offset - - while(num >= INT) { - out[offset++] = (num & 0xFF) | MSB - num /= 128 - } - while(num & MSBALL) { - out[offset++] = (num & 0xFF) | MSB - num >>>= 7 - } - out[offset] = num | 0 - - encode.bytes = offset - oldOffset + 1 - - return out -} diff --git a/node_modules/varint/index.js b/node_modules/varint/index.js deleted file mode 100644 index a27770c..0000000 --- a/node_modules/varint/index.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - encode: require('./encode.js') - , decode: require('./decode.js') - , encodingLength: require('./length.js') -} diff --git a/node_modules/varint/length.js b/node_modules/varint/length.js deleted file mode 100644 index 557e044..0000000 --- a/node_modules/varint/length.js +++ /dev/null @@ -1,25 +0,0 @@ - -var N1 = Math.pow(2, 7) -var N2 = Math.pow(2, 14) -var N3 = Math.pow(2, 21) -var N4 = Math.pow(2, 28) -var N5 = Math.pow(2, 35) -var N6 = Math.pow(2, 42) -var N7 = Math.pow(2, 49) -var N8 = Math.pow(2, 56) -var N9 = Math.pow(2, 63) - -module.exports = function (value) { - return ( - value < N1 ? 1 - : value < N2 ? 2 - : value < N3 ? 3 - : value < N4 ? 4 - : value < N5 ? 5 - : value < N6 ? 6 - : value < N7 ? 7 - : value < N8 ? 8 - : value < N9 ? 9 - : 10 - ) -} diff --git a/node_modules/varint/package.json b/node_modules/varint/package.json deleted file mode 100644 index efbc9b1..0000000 --- a/node_modules/varint/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "varint", - "version": "6.0.0", - "description": "protobuf-style varint bytes - use msb to create integer values of varying sizes", - "main": "index.js", - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git://github.com/chrisdickinson/varint.git" - }, - "keywords": [ - "varint", - "protobuf", - "encode", - "decode" - ], - "author": "Chris Dickinson ", - "license": "MIT", - "devDependencies": { - "tape": "~2.12.3" - } -} diff --git a/node_modules/varint/test.js b/node_modules/varint/test.js deleted file mode 100644 index a55c03c..0000000 --- a/node_modules/varint/test.js +++ /dev/null @@ -1,156 +0,0 @@ -var varint = require('./index') - , test = require('tape') - , decode = varint.decode - , encode = varint.encode - , encodingLength = varint.encodingLength - -test('fuzz test', function(assert) { - var expect - , encoded - - for(var i = 0, len = 100; i < len; ++i) { - expect = randint(0x7FFFFFFF) - encoded = encode(expect) - var data = decode(encoded) - assert.equal(expect, data, 'fuzz test: ' + expect.toString()) - assert.equal(decode.bytes, encoded.length) - } - - assert.end() -}) - -test('test single byte works as expected', function(assert) { - var buf = new Uint8Array(2) - buf[0] = 172 - buf[1] = 2 - var data = decode(buf) - assert.equal(data, 300, 'should equal 300') - assert.equal(decode.bytes, 2) - assert.end() -}) - -test('test encode works as expected', function(assert) { - var out = [] - - assert.deepEqual(encode(300), [0xAC, 0x02]) - - assert.end() -}) - -test('test decode single bytes', function(assert) { - var expected = randint(parseInt('1111111', '2')) - var buf = new Uint8Array(1) - buf[0] = expected - var data = decode(buf) - assert.equal(data, expected) - assert.equal(decode.bytes, 1) - assert.end() -}) - -test('test decode multiple bytes with zero', function(assert) { - var expected = randint(parseInt('1111111', '2')) - var buf = new Uint8Array(2) - buf[0] = 128 - buf[1] = expected - var data = decode(buf) - assert.equal(data, expected << 7) - assert.equal(decode.bytes, 2) - assert.end() -}) - -test('encode single byte', function(assert) { - var expected = randint(parseInt('1111111', '2')) - assert.deepEqual(encode(expected), [expected]) - assert.equal(encode.bytes, 1) - assert.end() -}) - -test('encode multiple byte with zero first byte', function(assert) { - var expected = 0x0F00 - assert.deepEqual(encode(expected), [0x80, 0x1E]) - assert.equal(encode.bytes, 2) - assert.end() -}) - -test('big integers', function (assert) { - - var bigs = [] - for(var i = 32; i <= 53; i++) (function (i) { - bigs.push(Math.pow(2, i) - 1) - })(i) - - bigs.forEach(function (n) { - var data = encode(n) - console.error(n, '->', data) - assert.equal(decode(data), n) - assert.notEqual(decode(data), n - 1) - }) - assert.end() -}) - -test('fuzz test - big', function(assert) { - var expect - , encoded - - var MAX_INTD = Number.MAX_SAFE_INTEGER - var MAX_INT = Math.pow(2, 31) - - for(var i = 0, len = 100; i < len; ++i) { - expect = randint(MAX_INTD - MAX_INT) + MAX_INT - encoded = encode(expect) - var data = decode(encoded) - assert.equal(expect, data, 'fuzz test: ' + expect.toString()) - assert.equal(decode.bytes, encoded.length) - } - - assert.end() -}) - -test('encodingLength', function (assert) { - - for(var i = 0; i <= 53; i++) { - var n = Math.pow(2, i) - 1 - assert.equal(encode(n).length, encodingLength(n)) - } - - assert.end() -}) - -test('buffer too short', function (assert) { - - var value = encode(9812938912312) - var buffer = encode(value) - - var l = buffer.length - while(l--) { - try { - var val = decode(buffer.slice(0, l)) - } catch (err) { - assert.equal(err.constructor, RangeError) - assert.equal(decode.bytes, 0) - } - } - assert.end() -}) - -test('buffer too long', function (assert) { - - var buffer = Uint8Array.from( - Array.from({length: 150}, function () { return 0xff }) - .concat(Array.from({length: 1}, function () { return 0x1 })) - ) - - try { - var val = decode(buffer) - encode(val) - assert.fail('expected an error received value instead: ' + val) - } catch (err) { - assert.equal(err.constructor, RangeError) - assert.equal(decode.bytes, 0) - } - assert.end() -}) - -function randint(range) { - return Math.floor(Math.random() * range) -} diff --git a/node_modules/vite-plugin-devtools-json/LICENSE b/node_modules/vite-plugin-devtools-json/LICENSE deleted file mode 100644 index 9bb0d14..0000000 --- a/node_modules/vite-plugin-devtools-json/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2025 Google, LLC. - -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/vite-plugin-devtools-json/README.md b/node_modules/vite-plugin-devtools-json/README.md deleted file mode 100644 index cfe3d01..0000000 --- a/node_modules/vite-plugin-devtools-json/README.md +++ /dev/null @@ -1,96 +0,0 @@ -# Vite Plugin for DevTools Project Settings (devtools.json) - -Vite plugin for generating the Chrome DevTools project settings file on-the-fly -in the devserver. - -This enables seamless integration with the new Chrome DevTools features - -1. [DevTools Project Settings (devtools.json)](https://goo.gle/devtools-json-design), and -1. [Automatic Workspace folders](http://goo.gle/devtools-automatic-workspace-folders). - -## Installation - -```bash -npm install -D vite-plugin-devtools-json -``` - -## Usage - -Add it to your Vite config - -```js -import {defineConfig} from 'vite'; -import devtoolsJson from 'vite-plugin-devtools-json'; - -export default defineConfig({ - plugins: [ - devtoolsJson(), - // ... - ] -}); -``` - -While the plugin can generate a UUID and save it in vite cache, you can also -specify it in the options like in the following: - -``` - plugins: [ - devtoolsJson({ uuid: "6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b" }), - // ... - ] -``` - -### Options - -| Name | Type | Default | Description | -|------|------|---------|-------------| -| `projectRoot` | `string` | `config.root` | Absolute path that will be reported to DevTools. Useful for monorepos or when the Vite root is not the desired folder. | -| `normalizeForWindowsContainer` | `boolean` | `true` | Convert Linux paths to UNC form so Chrome on Windows (WSL / Docker Desktop) can mount them (e.g. via WSL or Docker Desktop). Pass `false` to disable.
_Alias:_ `normalizeForChrome` (deprecated)_ | -| `uuid` | `string` | auto-generated | Fixed UUID if you prefer to control it yourself. | - -Example with all options: - -```js -import { defineConfig } from 'vite'; -import devtoolsJson from 'vite-plugin-devtools-json'; - -export default defineConfig({ - plugins: [ - devtoolsJson({ - projectRoot: '/absolute/path/to/project', - normalizeForWindowsContainer: true, - uuid: '6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b' - }) - ] -}); -``` - -The `/.well-known/appspecific/com.chrome.devtools.json` endpoint will serve the -project settings as JSON with the following structure - -```json -{ - "workspace": { - "root": "/path/to/project/root", - "uuid": "6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b" - } -} -``` - -where `root` is the absolute path to your `{projectRoot}` folder, and `uuid` is -a random v4 UUID, generated the first time that you start the Vite devserver -with the plugin installed (it is henceforth cached in the Vite cache folder). - -Checkout [bmeurer/automatic-workspace-folders-vanilla] for a trivial example -project illustrating how to use the plugin in practice. - -## Publishing - -**Googlers:** We use [go/wombat-dressing-room](http://go/wombat-dressing-room) -for publishing. - -## License - -The code is under [MIT License](LICENSE). - -[bmeurer/automatic-workspace-folders-vanilla]: https://github.com/bmeurer/automatic-workspace-folders-vanilla diff --git a/node_modules/vite-plugin-devtools-json/dist/index.cjs b/node_modules/vite-plugin-devtools-json/dist/index.cjs deleted file mode 100644 index 1bf174f..0000000 --- a/node_modules/vite-plugin-devtools-json/dist/index.cjs +++ /dev/null @@ -1,95 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var fs = require('fs'); -var path = require('path'); -var uuid = require('uuid'); - -const ENDPOINT = "/.well-known/appspecific/com.chrome.devtools.json"; -const plugin = (options = {}) => ({ - name: "devtools-json", - enforce: "post", - configureServer(server) { - const { config } = server; - const { logger } = config; - if (!config.env.DEV) { - return; - } - const getOrCreateUUID = () => { - if (options.uuid) { - return options.uuid; - } - let { cacheDir } = config; - if (!path.isAbsolute(cacheDir)) { - let { root } = config; - if (!path.isAbsolute(root)) { - root = path.resolve(process.cwd(), root); - } - cacheDir = path.resolve(root, cacheDir); - } - const uuidPath = path.resolve(cacheDir, "uuid.json"); - if (fs.existsSync(uuidPath)) { - const uuid2 = fs.readFileSync(uuidPath, { encoding: "utf-8" }); - if (uuid.validate(uuid2)) { - return uuid2; - } - } - if (!fs.existsSync(cacheDir)) { - fs.mkdirSync(cacheDir, { recursive: true }); - } - const uuid$1 = uuid.v4(); - fs.writeFileSync(uuidPath, uuid$1, { encoding: "utf-8" }); - return uuid$1; - }; - const normalizePaths = options.normalizeForWindowsContainer ?? (options.normalizeForChrome ?? true); - if (Object.prototype.hasOwnProperty.call(options, "normalizeForChrome") && options.normalizeForWindowsContainer === void 0) { - logger.warn( - '[vite-plugin-devtools-json] "normalizeForChrome" is deprecated \u2013 please rename to "normalizeForWindowsContainer".' - ); - } - server.middlewares.use(ENDPOINT, async (_req, res) => { - const resolveProjectRoot = () => { - if (options.projectRoot) { - return path.resolve(options.projectRoot); - } - let { root: root2 } = config; - if (!path.isAbsolute(root2)) { - root2 = path.resolve(process.cwd(), root2); - } - return root2; - }; - const maybeNormalizePath = (absRoot) => { - if (!normalizePaths) return absRoot; - if (process.env.WSL_DISTRO_NAME) { - const distro = process.env.WSL_DISTRO_NAME; - const withoutLeadingSlash = absRoot.replace(/^\//, ""); - return path.join("\\\\wsl.localhost", distro, withoutLeadingSlash).replace(/\//g, "\\"); - } - if (process.env.DOCKER_DESKTOP && !absRoot.startsWith("\\\\")) { - const withoutLeadingSlash = absRoot.replace(/^\//, ""); - return path.join("\\\\wsl.localhost", "docker-desktop-data", withoutLeadingSlash).replace(/\//g, "\\"); - } - return absRoot; - }; - let root = maybeNormalizePath(resolveProjectRoot()); - const uuid = getOrCreateUUID(); - const devtoolsJson = { - workspace: { - root, - uuid - } - }; - res.setHeader("Content-Type", "application/json"); - res.end(JSON.stringify(devtoolsJson, null, 2)); - }); - }, - configurePreviewServer(server) { - server.middlewares.use(ENDPOINT, async (req, res) => { - res.writeHead(404); - res.end(); - }); - } -}); - -exports.default = plugin; diff --git a/node_modules/vite-plugin-devtools-json/dist/index.d.ts b/node_modules/vite-plugin-devtools-json/dist/index.d.ts deleted file mode 100644 index 323e1f6..0000000 --- a/node_modules/vite-plugin-devtools-json/dist/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Plugin } from 'vite'; - -interface DevToolsJsonOptions { - /** - * Optional fixed UUID. If omitted the plugin will generate - * (and cache) one automatically, which is the previous default behaviour. - */ - uuid?: string; - /** - * Absolute (or relative) path that should be reported as the project root - * in DevTools. When omitted, we fall back to Vite’s `config.root` logic. - */ - projectRoot?: string; - /** - * @deprecated Use `normalizeForWindowsContainer` instead. Will be removed in a future major version. - */ - normalizeForChrome?: boolean; - /** - * Whether to rewrite Linux paths to UNC form so Chrome running on Windows - * (WSL or Docker Desktop) can mount them as a workspace. Enabled by default. - */ - normalizeForWindowsContainer?: boolean; -} -declare const plugin: (options?: DevToolsJsonOptions) => Plugin; - -export { plugin as default }; diff --git a/node_modules/vite-plugin-devtools-json/dist/index.mjs b/node_modules/vite-plugin-devtools-json/dist/index.mjs deleted file mode 100644 index 7640221..0000000 --- a/node_modules/vite-plugin-devtools-json/dist/index.mjs +++ /dev/null @@ -1,91 +0,0 @@ -import fs from 'fs'; -import path from 'path'; -import { validate, v4 } from 'uuid'; - -const ENDPOINT = "/.well-known/appspecific/com.chrome.devtools.json"; -const plugin = (options = {}) => ({ - name: "devtools-json", - enforce: "post", - configureServer(server) { - const { config } = server; - const { logger } = config; - if (!config.env.DEV) { - return; - } - const getOrCreateUUID = () => { - if (options.uuid) { - return options.uuid; - } - let { cacheDir } = config; - if (!path.isAbsolute(cacheDir)) { - let { root } = config; - if (!path.isAbsolute(root)) { - root = path.resolve(process.cwd(), root); - } - cacheDir = path.resolve(root, cacheDir); - } - const uuidPath = path.resolve(cacheDir, "uuid.json"); - if (fs.existsSync(uuidPath)) { - const uuid2 = fs.readFileSync(uuidPath, { encoding: "utf-8" }); - if (validate(uuid2)) { - return uuid2; - } - } - if (!fs.existsSync(cacheDir)) { - fs.mkdirSync(cacheDir, { recursive: true }); - } - const uuid = v4(); - fs.writeFileSync(uuidPath, uuid, { encoding: "utf-8" }); - return uuid; - }; - const normalizePaths = options.normalizeForWindowsContainer ?? (options.normalizeForChrome ?? true); - if (Object.prototype.hasOwnProperty.call(options, "normalizeForChrome") && options.normalizeForWindowsContainer === void 0) { - logger.warn( - '[vite-plugin-devtools-json] "normalizeForChrome" is deprecated \u2013 please rename to "normalizeForWindowsContainer".' - ); - } - server.middlewares.use(ENDPOINT, async (_req, res) => { - const resolveProjectRoot = () => { - if (options.projectRoot) { - return path.resolve(options.projectRoot); - } - let { root: root2 } = config; - if (!path.isAbsolute(root2)) { - root2 = path.resolve(process.cwd(), root2); - } - return root2; - }; - const maybeNormalizePath = (absRoot) => { - if (!normalizePaths) return absRoot; - if (process.env.WSL_DISTRO_NAME) { - const distro = process.env.WSL_DISTRO_NAME; - const withoutLeadingSlash = absRoot.replace(/^\//, ""); - return path.join("\\\\wsl.localhost", distro, withoutLeadingSlash).replace(/\//g, "\\"); - } - if (process.env.DOCKER_DESKTOP && !absRoot.startsWith("\\\\")) { - const withoutLeadingSlash = absRoot.replace(/^\//, ""); - return path.join("\\\\wsl.localhost", "docker-desktop-data", withoutLeadingSlash).replace(/\//g, "\\"); - } - return absRoot; - }; - let root = maybeNormalizePath(resolveProjectRoot()); - const uuid = getOrCreateUUID(); - const devtoolsJson = { - workspace: { - root, - uuid - } - }; - res.setHeader("Content-Type", "application/json"); - res.end(JSON.stringify(devtoolsJson, null, 2)); - }); - }, - configurePreviewServer(server) { - server.middlewares.use(ENDPOINT, async (req, res) => { - res.writeHead(404); - res.end(); - }); - } -}); - -export { plugin as default }; diff --git a/node_modules/vite-plugin-devtools-json/package.json b/node_modules/vite-plugin-devtools-json/package.json deleted file mode 100644 index b3bc06f..0000000 --- a/node_modules/vite-plugin-devtools-json/package.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "vite-plugin-devtools-json", - "version": "1.0.0", - "description": "Vite plugin for generating `com.chrome.devtools.json` on the fly in the devserver.", - "type": "module", - "main": "dist/index.cjs", - "types": "dist/index.d.ts", - "module": "dist/index.mjs", - "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs" - }, - "./*": "./dist/*" - }, - "files": [ - "/dist" - ], - "scripts": { - "build": "rollup -c rollup.config.ts --configPlugin typescript", - "clean": "rm -rf dist", - "dev": "rollup -c rollup.config.ts --configPlugin typescript", - "prepare": "npm run clean && npm run build", - "test": "vitest --no-watch", - "test:watch": "vitest --watch" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/ChromeDevTools/vite-plugin-devtools-json.git" - }, - "keywords": [ - "vite", - "vite-plugin", - "chrome-devtools", - "devtools", - "chrome" - ], - "author": "Benedikt Meurer ", - "bugs": { - "url": "https://github.com/ChromeDevTools/vite-plugin-devtools-json/issues" - }, - "homepage": "https://github.com/ChromeDevTools/vite-plugin-devtools-json#readme", - "license": "MIT", - "peerDependencies": { - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0" - }, - "dependencies": { - "uuid": "^11.1.0" - }, - "devDependencies": { - "@rollup/plugin-typescript": "^12.1.2", - "@types/node": "^22.13.5", - "@types/supertest": "^6.0.2", - "rollup": "^4.34.8", - "rollup-plugin-dts": "^6.1.1", - "rollup-plugin-esbuild": "^6.2.1", - "supertest": "^7.0.0", - "tslib": "^2.8.1", - "typescript": "^5.7.3", - "vite": "^6.2.0", - "vitest": "^3.0.8" - }, - "publishConfig": { - "registry": "https://wombat-dressing-room.appspot.com" - } -} diff --git a/node_modules/vite/LICENSE.md b/node_modules/vite/LICENSE.md deleted file mode 100644 index afc6608..0000000 --- a/node_modules/vite/LICENSE.md +++ /dev/null @@ -1,2173 +0,0 @@ -# Vite core license -Vite is released under the MIT license: - -MIT License - -Copyright (c) 2019-present, VoidZero Inc. and Vite contributors - -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. - -# Licenses of bundled dependencies -The published Vite artifact additionally contains code with the following licenses: -BSD-2-Clause, CC0-1.0, ISC, MIT - -# Bundled dependencies: -## @jridgewell/gen-mapping, @jridgewell/remapping, @jridgewell/trace-mapping -License: MIT -By: Justin Ridgewell -Repositories: git+https://github.com/jridgewell/sourcemaps.git, git+https://github.com/jridgewell/sourcemaps.git, git+https://github.com/jridgewell/sourcemaps.git - -> 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. - ---------------------------------------- - -## @jridgewell/resolve-uri -License: MIT -By: Justin Ridgewell -Repository: https://github.com/jridgewell/resolve-uri - -> Copyright 2019 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. - ---------------------------------------- - -## @jridgewell/sourcemap-codec -License: MIT -By: Rich Harris -Repository: git+https://github.com/jridgewell/sourcemap-codec.git - -> The MIT License -> -> Copyright (c) 2015 Rich Harris -> -> 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. - ---------------------------------------- - -## @polka/compression -License: MIT -Repository: lukeed/polka - ---------------------------------------- - -## @polka/url -License: MIT -By: Luke Edwards -Repository: lukeed/polka - ---------------------------------------- - -## @rolldown/pluginutils -License: MIT -Repository: git+https://github.com/rolldown/rolldown.git - -> MIT License -> -> Copyright (c) 2024-present VoidZero Inc. & Contributors -> -> 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. -> -> end of terms and conditions -> -> The licenses of externally maintained libraries from which parts of the Software is derived are listed [here](https://github.com/rolldown/rolldown/blob/main/THIRD-PARTY-LICENSE). - ---------------------------------------- - -## @rollup/plugin-alias, @rollup/plugin-commonjs, @rollup/plugin-dynamic-import-vars, @rollup/pluginutils -License: MIT -By: Johannes Stein -Repository: rollup/plugins - -License: MIT -By: Rich Harris -Repository: rollup/plugins - -License: MIT -By: LarsDenBakker -Repository: rollup/plugins - -License: MIT -By: Rich Harris -Repository: rollup/plugins - -> The MIT License (MIT) -> -> Copyright (c) 2019 RollupJS Plugin Contributors (https://github.com/rollup/plugins/graphs/contributors) -> -> 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. - ---------------------------------------- - -## anymatch -License: ISC -By: Elan Shanker -Repository: https://github.com/micromatch/anymatch - -> The ISC License -> -> Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com) -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted, provided that the above -> copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -> IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## artichokie -License: MIT -By: sapphi-red, Evan You -Repository: git+https://github.com/sapphi-red/artichokie.git - -> MIT License -> -> Copyright (c) 2020-present, Yuxi (Evan) You -> Copyright (c) 2023-present, sapphi-red -> -> 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. - ---------------------------------------- - -## binary-extensions -License: MIT -By: Sindre Sorhus -Repository: sindresorhus/binary-extensions - -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> Copyright (c) Paul Miller (https://paulmillr.com) -> -> 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. - ---------------------------------------- - -## braces, fill-range, is-number -License: MIT -By: Jon Schlinkert, Brian Woodward, Elan Shanker, Eugene Sharygin, hemanth.hm -Repository: micromatch/braces - -License: MIT -By: Jon Schlinkert, Edo Rivai, Paul Miller, Rouven Weßling -Repository: jonschlinkert/fill-range - -License: MIT -By: Jon Schlinkert, Olsten Larck, Rouven Weßling -Repository: jonschlinkert/is-number - -> The MIT License (MIT) -> -> Copyright (c) 2014-present, Jon Schlinkert. -> -> 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. - ---------------------------------------- - -## bundle-name, default-browser, default-browser-id, define-lazy-prop, is-docker, is-inside-container, is-wsl, open, run-applescript, wsl-utils -License: MIT -By: Sindre Sorhus -Repositories: sindresorhus/bundle-name, sindresorhus/default-browser, sindresorhus/default-browser-id, sindresorhus/define-lazy-prop, sindresorhus/is-docker, sindresorhus/is-inside-container, sindresorhus/is-wsl, sindresorhus/open, sindresorhus/run-applescript, sindresorhus/wsl-utils - -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> -> 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. - ---------------------------------------- - -## cac -License: MIT -By: egoist -Repository: egoist/cac - -> The MIT License (MIT) -> -> Copyright (c) EGOIST <0x142857@gmail.com> (https://github.com/egoist) -> -> 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. - ---------------------------------------- - -## chokidar -License: MIT -By: Paul Miller, Elan Shanker -Repository: git+https://github.com/paulmillr/chokidar.git - -> The MIT License (MIT) -> -> Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker -> -> 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. - ---------------------------------------- - -## commondir, shell-quote -License: MIT -By: James Halliday -Repositories: http://github.com/substack/node-commondir.git, http://github.com/ljharb/shell-quote.git - -> The MIT License -> -> Copyright (c) 2013 James Halliday (mail@substack.net) -> -> 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. - ---------------------------------------- - -## connect -License: MIT -By: TJ Holowaychuk, Douglas Christopher Wilson, Jonathan Ong, Tim Caswell -Repository: senchalabs/connect - -> (The MIT License) -> -> Copyright (c) 2010 Sencha Inc. -> Copyright (c) 2011 LearnBoost -> Copyright (c) 2011-2014 TJ Holowaychuk -> Copyright (c) 2015 Douglas Christopher Wilson -> -> 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. - ---------------------------------------- - -## convert-source-map -License: MIT -By: Thorsten Lorenz -Repository: git://github.com/thlorenz/convert-source-map.git - -> Copyright 2013 Thorsten Lorenz. -> 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. - ---------------------------------------- - -## cors -License: MIT -By: Troy Goode -Repository: expressjs/cors - -> (The MIT License) -> -> Copyright (c) 2013 Troy Goode -> -> 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. - ---------------------------------------- - -## cross-spawn -License: MIT -By: André Cruz -Repository: git@github.com:moxystudio/node-cross-spawn.git - -> The MIT License (MIT) -> -> Copyright (c) 2018 Made With MOXY Lda -> -> 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. - ---------------------------------------- - -## cssesc -License: MIT -By: Mathias Bynens -Repository: https://github.com/mathiasbynens/cssesc.git - -> Copyright Mathias Bynens -> -> 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. - ---------------------------------------- - -## debug -License: MIT -By: Josh Junon, TJ Holowaychuk, Nathan Rajlich, Andrew Rhyne -Repository: git://github.com/debug-js/debug.git - -> (The MIT License) -> -> Copyright (c) 2014-2017 TJ Holowaychuk -> Copyright (c) 2018-2021 Josh Junon -> -> 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. - ---------------------------------------- - -## dotenv -License: BSD-2-Clause -Repository: git://github.com/motdotla/dotenv.git - -> Copyright (c) 2015, Scott Motte -> 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. -> -> 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. - ---------------------------------------- - -## dotenv-expand -License: BSD-2-Clause -By: motdotla -Repository: https://github.com/motdotla/dotenv-expand - -> Copyright (c) 2016, Scott Motte -> 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. -> -> 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. - ---------------------------------------- - -## ee-first -License: MIT -By: Jonathan Ong, Douglas Christopher Wilson -Repository: jonathanong/ee-first - -> The MIT License (MIT) -> -> Copyright (c) 2014 Jonathan Ong me@jongleberry.com -> -> 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. - ---------------------------------------- - -## encodeurl -License: MIT -By: Douglas Christopher Wilson -Repository: pillarjs/encodeurl - -> (The MIT License) -> -> Copyright (c) 2016 Douglas Christopher Wilson -> -> 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. - ---------------------------------------- - -## entities -License: BSD-2-Clause -By: Felix Boehm -Repository: git://github.com/fb55/entities.git - -> Copyright (c) Felix Böhm -> 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. -> -> THIS 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, -> EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ---------------------------------------- - -## es-module-lexer -License: MIT -By: Guy Bedford -Repository: git+https://github.com/guybedford/es-module-lexer.git - -> MIT License -> ----------- -> -> Copyright (C) 2018-2022 Guy Bedford -> -> 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. - ---------------------------------------- - -## escape-html -License: MIT -Repository: component/escape-html - -> (The MIT License) -> -> Copyright (c) 2012-2013 TJ Holowaychuk -> Copyright (c) 2015 Andreas Lubbe -> Copyright (c) 2015 Tiancheng "Timothy" Gu -> -> 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. - ---------------------------------------- - -## estree-walker -License: MIT -By: Rich Harris -Repository: https://github.com/Rich-Harris/estree-walker - -> Copyright (c) 2015-20 [these people](https://github.com/Rich-Harris/estree-walker/graphs/contributors) -> -> 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. - ---------------------------------------- - -## etag -License: MIT -By: Douglas Christopher Wilson, David Björklund -Repository: jshttp/etag - -> (The MIT License) -> -> Copyright (c) 2014-2016 Douglas Christopher Wilson -> -> 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. - ---------------------------------------- - -## finalhandler -License: MIT -By: Douglas Christopher Wilson -Repository: pillarjs/finalhandler - -> (The MIT License) -> -> Copyright (c) 2014-2017 Douglas Christopher Wilson -> -> 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. - ---------------------------------------- - -## follow-redirects -License: MIT -By: Ruben Verborgh, Olivier Lalonde, James Talmage -Repository: git+ssh://git@github.com/follow-redirects/follow-redirects.git - -> Copyright 2014–present Olivier Lalonde , James Talmage , Ruben Verborgh -> -> 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. - ---------------------------------------- - -## generic-names -License: MIT -By: Alexey Litvinov -Repository: git+https://github.com/css-modules/generic-names.git - -> The MIT License (MIT) -> -> Copyright (c) 2015 Alexey Litvinov -> -> 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. - ---------------------------------------- - -## glob-parent -License: ISC -By: Gulp Team, Elan Shanker, Blaine Bublitz -Repository: gulpjs/glob-parent - -> The ISC License -> -> Copyright (c) 2015, 2019 Elan Shanker -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted, provided that the above -> copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -> IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## host-validation-middleware -License: MIT -By: sapphi-red -Repository: git+https://github.com/sapphi-red/host-validation-middleware.git - -> MIT License -> -> Copyright (c) 2025 sapphi-red -> -> 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. - ---------------------------------------- - -## http-proxy-3 -License: MIT -By: William Stein, Charlie Robbins, Jimb Esser, jcrugzz -Repository: https://github.com/sagemathinc/http-proxy-3.git - -> node-http-3 -> -> Copyright (c) 2010-2025 William Stein, Charlie Robbins, Jarrett Cruger & the Contributors. -> -> 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. - ---------------------------------------- - -## icss-utils -License: ISC -By: Glen Maddern -Repository: git+https://github.com/css-modules/icss-utils.git - -> ISC License (ISC) -> Copyright 2018 Glen Maddern -> -> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## is-binary-path -License: MIT -By: Sindre Sorhus -Repository: sindresorhus/is-binary-path - -> MIT License -> -> Copyright (c) 2019 Sindre Sorhus (https://sindresorhus.com), Paul Miller (https://paulmillr.com) -> -> 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. - ---------------------------------------- - -## is-extglob -License: MIT -By: Jon Schlinkert -Repository: jonschlinkert/is-extglob - -> The MIT License (MIT) -> -> Copyright (c) 2014-2016, Jon Schlinkert -> -> 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. - ---------------------------------------- - -## is-glob -License: MIT -By: Jon Schlinkert, Brian Woodward, Daniel Perez -Repository: micromatch/is-glob - -> The MIT License (MIT) -> -> Copyright (c) 2014-2017, Jon Schlinkert. -> -> 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. - ---------------------------------------- - -## is-reference -License: MIT -By: Rich Harris -Repository: git+https://github.com/Rich-Harris/is-reference.git - ---------------------------------------- - -## isexe, which -License: ISC -By: Isaac Z. Schlueter -Repositories: git+https://github.com/isaacs/isexe.git, git://github.com/isaacs/node-which.git - -> The ISC License -> -> Copyright (c) Isaac Z. Schlueter and Contributors -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted, provided that the above -> copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -> IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## js-tokens -License: MIT -By: Simon Lydell -Repository: lydell/js-tokens - -> The MIT License (MIT) -> -> Copyright (c) 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 Simon Lydell -> -> 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. - ---------------------------------------- - -## launch-editor, launch-editor-middleware -License: MIT -By: Evan You -Repositories: git+https://github.com/yyx990803/launch-editor.git, git+https://github.com/yyx990803/launch-editor.git - -> The MIT License (MIT) -> -> Copyright (c) 2017-present, Yuxi (Evan) You -> -> 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. - ---------------------------------------- - -## lilconfig -License: MIT -By: antonk52 -Repository: https://github.com/antonk52/lilconfig - -> MIT License -> -> Copyright (c) 2022 Anton Kastritskiy -> -> 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. - ---------------------------------------- - -## loader-utils -License: MIT -By: Tobias Koppers @sokra -Repository: https://github.com/webpack/loader-utils.git - -> Copyright JS Foundation and other contributors -> -> 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. - ---------------------------------------- - -## lodash.camelcase -License: MIT -By: John-David Dalton, Blaine Bublitz, Mathias Bynens -Repository: lodash/lodash - -> Copyright jQuery Foundation and other contributors -> -> Based on Underscore.js, copyright Jeremy Ashkenas, -> DocumentCloud and Investigative Reporters & Editors -> -> This software consists of voluntary contributions made by many -> individuals. For exact contribution history, see the revision history -> available at https://github.com/lodash/lodash -> -> The following license applies to all parts of this software except as -> documented below: -> -> ==== -> -> 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. -> -> ==== -> -> Copyright and related rights for sample code are waived via CC0. Sample -> code is defined as all source code displayed within the prose of the -> documentation. -> -> CC0: http://creativecommons.org/publicdomain/zero/1.0/ -> -> ==== -> -> Files located in the node_modules and vendor directories are externally -> maintained libraries used by this software which have their own -> licenses; we recommend you read them, as their terms may differ from the -> terms above. - ---------------------------------------- - -## magic-string -License: MIT -By: Rich Harris -Repository: https://github.com/rich-harris/magic-string.git - -> Copyright 2018 Rich Harris -> -> 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. - ---------------------------------------- - -## mlly, ufo -License: MIT -Repositories: unjs/mlly, unjs/ufo - -> MIT License -> -> Copyright (c) Pooya Parsa -> -> 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. - ---------------------------------------- - -## mrmime -License: MIT -By: Luke Edwards -Repository: lukeed/mrmime - -> The MIT License (MIT) -> -> Copyright (c) Luke Edwards (https://lukeed.com) -> -> 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. - ---------------------------------------- - -## ms -License: MIT -Repository: vercel/ms - -> The MIT License (MIT) -> -> Copyright (c) 2020 Vercel, Inc. -> -> 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. - ---------------------------------------- - -## normalize-path -License: MIT -By: Jon Schlinkert, Blaine Bublitz -Repository: jonschlinkert/normalize-path - -> The MIT License (MIT) -> -> Copyright (c) 2014-2018, Jon Schlinkert. -> -> 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. - ---------------------------------------- - -## object-assign -License: MIT -By: Sindre Sorhus -Repository: sindresorhus/object-assign - -> The MIT License (MIT) -> -> Copyright (c) Sindre Sorhus (sindresorhus.com) -> -> 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. - ---------------------------------------- - -## on-finished -License: MIT -By: Douglas Christopher Wilson, Jonathan Ong -Repository: jshttp/on-finished - -> (The MIT License) -> -> Copyright (c) 2013 Jonathan Ong -> Copyright (c) 2014 Douglas Christopher Wilson -> -> 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. - ---------------------------------------- - -## parse5 -License: MIT -By: Ivan Nikulin, https://github.com/inikulin/parse5/graphs/contributors -Repository: git://github.com/inikulin/parse5.git - -> Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin) -> -> 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. - ---------------------------------------- - -## parseurl -License: MIT -By: Douglas Christopher Wilson, Jonathan Ong -Repository: pillarjs/parseurl - -> (The MIT License) -> -> Copyright (c) 2014 Jonathan Ong -> Copyright (c) 2014-2017 Douglas Christopher Wilson -> -> 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. - ---------------------------------------- - -## path-key, shebang-regex -License: MIT -By: Sindre Sorhus -Repositories: sindresorhus/path-key, sindresorhus/shebang-regex - -> MIT License -> -> Copyright (c) Sindre Sorhus (sindresorhus.com) -> -> 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. - ---------------------------------------- - -## periscopic -License: MIT -Repository: Rich-Harris/periscopic - -> Copyright (c) 2019 Rich Harris -> -> 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. - ---------------------------------------- - -## picocolors -License: ISC -By: Alexey Raspopov -Repository: alexeyraspopov/picocolors - -> ISC License -> -> Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted, provided that the above -> copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## postcss-import -License: MIT -By: Maxime Thirouin -Repository: https://github.com/postcss/postcss-import.git - -> The MIT License (MIT) -> -> Copyright (c) 2014 Maxime Thirouin, Jason Campbell & Kevin Mårtensson -> -> 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. - ---------------------------------------- - -## postcss-load-config -License: MIT -By: Michael Ciniawky, Ryan Dunckel, Mateusz Derks, Dalton Santos, Patrick Gilday, François Wouts -Repository: postcss/postcss-load-config - -> The MIT License (MIT) -> -> Copyright Michael Ciniawsky -> -> 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. - ---------------------------------------- - -## postcss-modules -License: MIT -By: Alexander Madyankin -Repository: https://github.com/css-modules/postcss-modules.git - -> The MIT License (MIT) -> -> Copyright 2015-present Alexander Madyankin -> -> 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. - ---------------------------------------- - -## postcss-modules-extract-imports -License: ISC -By: Glen Maddern -Repository: https://github.com/css-modules/postcss-modules-extract-imports.git - -> Copyright 2015 Glen Maddern -> -> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## postcss-modules-local-by-default -License: MIT -By: Mark Dalgleish -Repository: https://github.com/css-modules/postcss-modules-local-by-default.git - -> The MIT License (MIT) -> -> Copyright 2015 Mark Dalgleish -> -> 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. - ---------------------------------------- - -## postcss-modules-scope -License: ISC -By: Glen Maddern -Repository: https://github.com/css-modules/postcss-modules-scope.git - -> ISC License (ISC) -> -> Copyright (c) 2015, Glen Maddern -> -> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## postcss-modules-values -License: ISC -By: Glen Maddern -Repository: git+https://github.com/css-modules/postcss-modules-values.git - -> ISC License (ISC) -> -> Copyright (c) 2015, Glen Maddern -> -> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---------------------------------------- - -## postcss-selector-parser -License: MIT -By: Ben Briggs, Chris Eppstein -Repository: postcss/postcss-selector-parser - -> Copyright (c) Ben Briggs (http://beneb.info) -> -> 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. - ---------------------------------------- - -## postcss-value-parser -License: MIT -By: Bogdan Chadkin -Repository: https://github.com/TrySound/postcss-value-parser.git - -> Copyright (c) Bogdan Chadkin -> -> 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. - ---------------------------------------- - -## readdirp -License: MIT -By: Thorsten Lorenz, Paul Miller -Repository: git://github.com/paulmillr/readdirp.git - -> MIT License -> -> Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller (https://paulmillr.com) -> -> 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. - ---------------------------------------- - -## resolve.exports, totalist -License: MIT -By: Luke Edwards -Repositories: lukeed/resolve.exports, lukeed/totalist - -> The MIT License (MIT) -> -> Copyright (c) Luke Edwards (lukeed.com) -> -> 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. - ---------------------------------------- - -## shebang-command -License: MIT -By: Kevin Mårtensson -Repository: kevva/shebang-command - -> MIT License -> -> Copyright (c) Kevin Mårtensson (github.com/kevva) -> -> 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. - ---------------------------------------- - -## sirv -License: MIT -By: Luke Edwards -Repository: lukeed/sirv - ---------------------------------------- - -## statuses -License: MIT -By: Douglas Christopher Wilson, Jonathan Ong -Repository: jshttp/statuses - -> The MIT License (MIT) -> -> Copyright (c) 2014 Jonathan Ong -> Copyright (c) 2016 Douglas Christopher Wilson -> -> 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. - ---------------------------------------- - -## string-hash -License: CC0-1.0 -By: The Dark Sky Company -Repository: git://github.com/darkskyapp/string-hash.git - ---------------------------------------- - -## strip-literal -License: MIT -By: Anthony Fu -Repository: git+https://github.com/antfu/strip-literal.git - -> MIT License -> -> Copyright (c) 2022 Anthony Fu -> -> 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. - ---------------------------------------- - -## to-regex-range -License: MIT -By: Jon Schlinkert, Rouven Weßling -Repository: micromatch/to-regex-range - -> The MIT License (MIT) -> -> Copyright (c) 2015-present, Jon Schlinkert. -> -> 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. - ---------------------------------------- - -## tsconfck -License: MIT -By: dominikg -Repository: git+https://github.com/dominikg/tsconfck.git - -> MIT License -> -> Copyright (c) 2021-present dominikg and [contributors](https://github.com/dominikg/tsconfck/graphs/contributors) -> -> 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. -> -> -- Licenses for 3rd-party code included in tsconfck -- -> -> # strip-bom and strip-json-comments -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> -> 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. - ---------------------------------------- - -## unpipe -License: MIT -By: Douglas Christopher Wilson -Repository: stream-utils/unpipe - -> (The MIT License) -> -> Copyright (c) 2015 Douglas Christopher Wilson -> -> 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. - ---------------------------------------- - -## util-deprecate -License: MIT -By: Nathan Rajlich -Repository: git://github.com/TooTallNate/util-deprecate.git - -> (The MIT License) -> -> Copyright (c) 2014 Nathan Rajlich -> -> 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. - ---------------------------------------- - -## utils-merge -License: MIT -By: Jared Hanson -Repository: git://github.com/jaredhanson/utils-merge.git - -> The MIT License (MIT) -> -> Copyright (c) 2013-2017 Jared Hanson -> -> 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. - ---------------------------------------- - -## vary -License: MIT -By: Douglas Christopher Wilson -Repository: jshttp/vary - -> (The MIT License) -> -> Copyright (c) 2014-2017 Douglas Christopher Wilson -> -> 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. - ---------------------------------------- - -## ws -License: MIT -By: Einar Otto Stangvik -Repository: git+https://github.com/websockets/ws.git - -> Copyright (c) 2011 Einar Otto Stangvik -> Copyright (c) 2013 Arnout Kazemier and contributors -> Copyright (c) 2016 Luigi Pinca and contributors -> -> 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/vite/README.md b/node_modules/vite/README.md deleted file mode 100644 index 28fb80b..0000000 --- a/node_modules/vite/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# vite ⚡ - -> Next Generation Frontend Tooling - -- 💡 Instant Server Start -- ⚡️ Lightning Fast HMR -- 🛠️ Rich Features -- 📦 Optimized Build -- 🔩 Universal Plugin Interface -- 🔑 Fully Typed APIs - -Vite (French word for "fast", pronounced `/vit/`) is a new breed of frontend build tool that significantly improves the frontend development experience. It consists of two major parts: - -- A dev server that serves your source files over [native ES modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), with [rich built-in features](https://vite.dev/guide/features.html) and astonishingly fast [Hot Module Replacement (HMR)](https://vite.dev/guide/features.html#hot-module-replacement). - -- A [build command](https://vite.dev/guide/build.html) that bundles your code with [Rollup](https://rollupjs.org), pre-configured to output highly optimized static assets for production. - -In addition, Vite is highly extensible via its [Plugin API](https://vite.dev/guide/api-plugin.html) and [JavaScript API](https://vite.dev/guide/api-javascript.html) with full typing support. - -[Read the Docs to Learn More](https://vite.dev). diff --git a/node_modules/vite/bin/openChrome.js b/node_modules/vite/bin/openChrome.js deleted file mode 100644 index f051e29..0000000 --- a/node_modules/vite/bin/openChrome.js +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright (c) 2015-present, Facebook, Inc. - -This source code is licensed under the MIT license found in the -LICENSE file at -https://github.com/facebookincubator/create-react-app/blob/master/LICENSE -*/ - -/* global Application */ - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -function run(argv) { - const urlToOpen = argv[0] - // Allow requested program to be optional, default to Google Chrome - const programName = argv[1] ?? 'Google Chrome' - - const app = Application(programName) - - if (app.windows.length === 0) { - app.Window().make() - } - - // 1: Looking for tab running debugger then, - // Reload debugging tab if found, then return - const found = lookupTabWithUrl(urlToOpen, app) - if (found) { - found.targetWindow.activeTabIndex = found.targetTabIndex - found.targetTab.reload() - found.targetWindow.index = 1 - app.activate() - return - } - - // 2: Looking for Empty tab - // In case debugging tab was not found - // We try to find an empty tab instead - const emptyTabFound = lookupTabWithUrl('chrome://newtab/', app) - if (emptyTabFound) { - emptyTabFound.targetWindow.activeTabIndex = emptyTabFound.targetTabIndex - emptyTabFound.targetTab.url = urlToOpen - app.activate() - return - } - - // 3: Create new tab - // both debugging and empty tab were not found make a new tab with url - const firstWindow = app.windows[0] - firstWindow.tabs.push(app.Tab({ url: urlToOpen })) - app.activate() -} - -/** - * Lookup tab with given url - */ -function lookupTabWithUrl(lookupUrl, app) { - const windows = app.windows() - for (const window of windows) { - for (const [tabIndex, tab] of window.tabs().entries()) { - if (tab.url().includes(lookupUrl)) { - return { - targetTab: tab, - targetTabIndex: tabIndex + 1, - targetWindow: window, - } - } - } - } -} diff --git a/node_modules/vite/bin/vite.js b/node_modules/vite/bin/vite.js deleted file mode 100755 index 79c49ab..0000000 --- a/node_modules/vite/bin/vite.js +++ /dev/null @@ -1,79 +0,0 @@ -#!/usr/bin/env node -import { performance } from 'node:perf_hooks' -import module from 'node:module' - -if (!import.meta.url.includes('node_modules')) { - if (!process.env.DEBUG_DISABLE_SOURCE_MAP) { - // eslint-disable-next-line n/no-unsupported-features/node-builtins -- only used in dev - process.setSourceMapsEnabled(true) - } - - process.on('unhandledRejection', (err) => { - throw new Error('UNHANDLED PROMISE REJECTION', { cause: err }) - }) -} - -global.__vite_start_time = performance.now() - -// check debug mode first before requiring the CLI. -const debugIndex = process.argv.findIndex((arg) => /^(?:-d|--debug)$/.test(arg)) -const filterIndex = process.argv.findIndex((arg) => - /^(?:-f|--filter)$/.test(arg), -) -const profileIndex = process.argv.indexOf('--profile') - -if (debugIndex > 0) { - let value = process.argv[debugIndex + 1] - if (!value || value[0] === '-') { - value = 'vite:*' - } else { - // support debugging multiple flags with comma-separated list - value = value - .split(',') - .map((v) => `vite:${v}`) - .join(',') - } - process.env.DEBUG = `${ - process.env.DEBUG ? process.env.DEBUG + ',' : '' - }${value}` - - if (filterIndex > 0) { - const filter = process.argv[filterIndex + 1] - if (filter && filter[0] !== '-') { - process.env.VITE_DEBUG_FILTER = filter - } - } -} - -function start() { - try { - // eslint-disable-next-line n/no-unsupported-features/node-builtins -- it is supported in Node 22.8.0+ and only called if it exists - module.enableCompileCache?.() - // flush the cache after 10s because the cache is not flushed until process end - // for dev server, the cache is never flushed unless manually flushed because the process.exit is called - // also flushing the cache in SIGINT handler seems to cause the process to hang - setTimeout(() => { - try { - // eslint-disable-next-line n/no-unsupported-features/node-builtins -- it is supported in Node 22.12.0+ and only called if it exists - module.flushCompileCache?.() - } catch {} - }, 10 * 1000).unref() - } catch {} - return import('../dist/node/cli.js') -} - -if (profileIndex > 0) { - process.argv.splice(profileIndex, 1) - const next = process.argv[profileIndex] - if (next && next[0] !== '-') { - process.argv.splice(profileIndex, 1) - } - const inspector = await import('node:inspector').then((r) => r.default) - const session = (global.__vite_profile_session = new inspector.Session()) - session.connect() - session.post('Profiler.enable', () => { - session.post('Profiler.start', start) - }) -} else { - start() -} diff --git a/node_modules/vite/client.d.ts b/node_modules/vite/client.d.ts deleted file mode 100644 index 3a9dd88..0000000 --- a/node_modules/vite/client.d.ts +++ /dev/null @@ -1,279 +0,0 @@ -/// - -// CSS modules -type CSSModuleClasses = { readonly [key: string]: string } - -declare module '*.module.css' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.scss' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.sass' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.less' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.styl' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.stylus' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.pcss' { - const classes: CSSModuleClasses - export default classes -} -declare module '*.module.sss' { - const classes: CSSModuleClasses - export default classes -} - -// CSS -declare module '*.css' {} -declare module '*.scss' {} -declare module '*.sass' {} -declare module '*.less' {} -declare module '*.styl' {} -declare module '*.stylus' {} -declare module '*.pcss' {} -declare module '*.sss' {} - -// Built-in asset types -// see `src/node/constants.ts` - -// images -declare module '*.apng' { - const src: string - export default src -} -declare module '*.bmp' { - const src: string - export default src -} -declare module '*.png' { - const src: string - export default src -} -declare module '*.jpg' { - const src: string - export default src -} -declare module '*.jpeg' { - const src: string - export default src -} -declare module '*.jfif' { - const src: string - export default src -} -declare module '*.pjpeg' { - const src: string - export default src -} -declare module '*.pjp' { - const src: string - export default src -} -declare module '*.gif' { - const src: string - export default src -} -declare module '*.svg' { - const src: string - export default src -} -declare module '*.ico' { - const src: string - export default src -} -declare module '*.webp' { - const src: string - export default src -} -declare module '*.avif' { - const src: string - export default src -} -declare module '*.cur' { - const src: string - export default src -} -declare module '*.jxl' { - const src: string - export default src -} - -// media -declare module '*.mp4' { - const src: string - export default src -} -declare module '*.webm' { - const src: string - export default src -} -declare module '*.ogg' { - const src: string - export default src -} -declare module '*.mp3' { - const src: string - export default src -} -declare module '*.wav' { - const src: string - export default src -} -declare module '*.flac' { - const src: string - export default src -} -declare module '*.aac' { - const src: string - export default src -} -declare module '*.opus' { - const src: string - export default src -} -declare module '*.mov' { - const src: string - export default src -} -declare module '*.m4a' { - const src: string - export default src -} -declare module '*.vtt' { - const src: string - export default src -} - -// fonts -declare module '*.woff' { - const src: string - export default src -} -declare module '*.woff2' { - const src: string - export default src -} -declare module '*.eot' { - const src: string - export default src -} -declare module '*.ttf' { - const src: string - export default src -} -declare module '*.otf' { - const src: string - export default src -} - -// other -declare module '*.webmanifest' { - const src: string - export default src -} -declare module '*.pdf' { - const src: string - export default src -} -declare module '*.txt' { - const src: string - export default src -} - -// wasm?init -declare module '*.wasm?init' { - const initWasm: ( - options?: WebAssembly.Imports, - ) => Promise - export default initWasm -} - -// web worker -declare module '*?worker' { - const workerConstructor: { - new (options?: { name?: string }): Worker - } - export default workerConstructor -} - -declare module '*?worker&inline' { - const workerConstructor: { - new (options?: { name?: string }): Worker - } - export default workerConstructor -} - -declare module '*?worker&url' { - const src: string - export default src -} - -declare module '*?sharedworker' { - const sharedWorkerConstructor: { - new (options?: { name?: string }): SharedWorker - } - export default sharedWorkerConstructor -} - -declare module '*?sharedworker&inline' { - const sharedWorkerConstructor: { - new (options?: { name?: string }): SharedWorker - } - export default sharedWorkerConstructor -} - -declare module '*?sharedworker&url' { - const src: string - export default src -} - -declare module '*?raw' { - const src: string - export default src -} - -declare module '*?url' { - const src: string - export default src -} - -declare module '*?inline' { - const src: string - export default src -} - -declare module '*?no-inline' { - const src: string - export default src -} - -declare module '*?url&inline' { - const src: string - export default src -} - -declare module '*?url&no-inline' { - const src: string - export default src -} - -declare interface VitePreloadErrorEvent extends Event { - payload: Error -} - -declare interface WindowEventMap { - 'vite:preloadError': VitePreloadErrorEvent -} diff --git a/node_modules/vite/dist/client/client.mjs b/node_modules/vite/dist/client/client.mjs deleted file mode 100644 index 2f1cc2f..0000000 --- a/node_modules/vite/dist/client/client.mjs +++ /dev/null @@ -1,1098 +0,0 @@ -import "@vite/env"; - -//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/esm/typeof.js -function _typeof(o) { - "@babel/helpers - typeof"; - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) { - return typeof o$1; - } : function(o$1) { - return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1; - }, _typeof(o); -} - -//#endregion -//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/esm/toPrimitive.js -function toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} - -//#endregion -//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/esm/toPropertyKey.js -function toPropertyKey(t) { - var i = toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : i + ""; -} - -//#endregion -//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/esm/defineProperty.js -function _defineProperty(e, r, t) { - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { - value: t, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[r] = t, e; -} - -//#endregion -//#region src/shared/hmr.ts -var HMRContext = class { - constructor(hmrClient$1, ownerPath) { - this.hmrClient = hmrClient$1; - this.ownerPath = ownerPath; - _defineProperty(this, "newListeners", void 0); - if (!hmrClient$1.dataMap.has(ownerPath)) hmrClient$1.dataMap.set(ownerPath, {}); - const mod = hmrClient$1.hotModulesMap.get(ownerPath); - if (mod) mod.callbacks = []; - const staleListeners = hmrClient$1.ctxToListenersMap.get(ownerPath); - if (staleListeners) for (const [event, staleFns] of staleListeners) { - const listeners = hmrClient$1.customListenersMap.get(event); - if (listeners) hmrClient$1.customListenersMap.set(event, listeners.filter((l) => !staleFns.includes(l))); - } - this.newListeners = /* @__PURE__ */ new Map(); - hmrClient$1.ctxToListenersMap.set(ownerPath, this.newListeners); - } - get data() { - return this.hmrClient.dataMap.get(this.ownerPath); - } - accept(deps, callback) { - if (typeof deps === "function" || !deps) this.acceptDeps([this.ownerPath], ([mod]) => deps?.(mod)); - else if (typeof deps === "string") this.acceptDeps([deps], ([mod]) => callback?.(mod)); - else if (Array.isArray(deps)) this.acceptDeps(deps, callback); - else throw new Error(`invalid hot.accept() usage.`); - } - acceptExports(_, callback) { - this.acceptDeps([this.ownerPath], ([mod]) => callback?.(mod)); - } - dispose(cb) { - this.hmrClient.disposeMap.set(this.ownerPath, cb); - } - prune(cb) { - this.hmrClient.pruneMap.set(this.ownerPath, cb); - } - decline() {} - invalidate(message) { - const firstInvalidatedBy = this.hmrClient.currentFirstInvalidatedBy ?? this.ownerPath; - this.hmrClient.notifyListeners("vite:invalidate", { - path: this.ownerPath, - message, - firstInvalidatedBy - }); - this.send("vite:invalidate", { - path: this.ownerPath, - message, - firstInvalidatedBy - }); - this.hmrClient.logger.debug(`invalidate ${this.ownerPath}${message ? `: ${message}` : ""}`); - } - on(event, cb) { - const addToMap = (map) => { - const existing = map.get(event) || []; - existing.push(cb); - map.set(event, existing); - }; - addToMap(this.hmrClient.customListenersMap); - addToMap(this.newListeners); - } - off(event, cb) { - const removeFromMap = (map) => { - const existing = map.get(event); - if (existing === void 0) return; - const pruned = existing.filter((l) => l !== cb); - if (pruned.length === 0) { - map.delete(event); - return; - } - map.set(event, pruned); - }; - removeFromMap(this.hmrClient.customListenersMap); - removeFromMap(this.newListeners); - } - send(event, data) { - this.hmrClient.send({ - type: "custom", - event, - data - }); - } - acceptDeps(deps, callback = () => {}) { - const mod = this.hmrClient.hotModulesMap.get(this.ownerPath) || { - id: this.ownerPath, - callbacks: [] - }; - mod.callbacks.push({ - deps, - fn: callback - }); - this.hmrClient.hotModulesMap.set(this.ownerPath, mod); - } -}; -var HMRClient = class { - constructor(logger, transport$1, importUpdatedModule) { - this.logger = logger; - this.transport = transport$1; - this.importUpdatedModule = importUpdatedModule; - _defineProperty(this, "hotModulesMap", /* @__PURE__ */ new Map()); - _defineProperty(this, "disposeMap", /* @__PURE__ */ new Map()); - _defineProperty(this, "pruneMap", /* @__PURE__ */ new Map()); - _defineProperty(this, "dataMap", /* @__PURE__ */ new Map()); - _defineProperty(this, "customListenersMap", /* @__PURE__ */ new Map()); - _defineProperty(this, "ctxToListenersMap", /* @__PURE__ */ new Map()); - _defineProperty(this, "currentFirstInvalidatedBy", void 0); - _defineProperty(this, "updateQueue", []); - _defineProperty(this, "pendingUpdateQueue", false); - } - async notifyListeners(event, data) { - const cbs = this.customListenersMap.get(event); - if (cbs) await Promise.allSettled(cbs.map((cb) => cb(data))); - } - send(payload) { - this.transport.send(payload).catch((err) => { - this.logger.error(err); - }); - } - clear() { - this.hotModulesMap.clear(); - this.disposeMap.clear(); - this.pruneMap.clear(); - this.dataMap.clear(); - this.customListenersMap.clear(); - this.ctxToListenersMap.clear(); - } - async prunePaths(paths) { - await Promise.all(paths.map((path) => { - const disposer = this.disposeMap.get(path); - if (disposer) return disposer(this.dataMap.get(path)); - })); - paths.forEach((path) => { - const fn = this.pruneMap.get(path); - if (fn) fn(this.dataMap.get(path)); - }); - } - warnFailedUpdate(err, path) { - if (!(err instanceof Error) || !err.message.includes("fetch")) this.logger.error(err); - this.logger.error(`Failed to reload ${path}. This could be due to syntax errors or importing non-existent modules. (see errors above)`); - } - /** - * buffer multiple hot updates triggered by the same src change - * so that they are invoked in the same order they were sent. - * (otherwise the order may be inconsistent because of the http request round trip) - */ - async queueUpdate(payload) { - this.updateQueue.push(this.fetchUpdate(payload)); - if (!this.pendingUpdateQueue) { - this.pendingUpdateQueue = true; - await Promise.resolve(); - this.pendingUpdateQueue = false; - const loading = [...this.updateQueue]; - this.updateQueue = []; - (await Promise.all(loading)).forEach((fn) => fn && fn()); - } - } - async fetchUpdate(update) { - const { path, acceptedPath, firstInvalidatedBy } = update; - const mod = this.hotModulesMap.get(path); - if (!mod) return; - let fetchedModule; - const isSelfUpdate = path === acceptedPath; - const qualifiedCallbacks = mod.callbacks.filter(({ deps }) => deps.includes(acceptedPath)); - if (isSelfUpdate || qualifiedCallbacks.length > 0) { - const disposer = this.disposeMap.get(acceptedPath); - if (disposer) await disposer(this.dataMap.get(acceptedPath)); - try { - fetchedModule = await this.importUpdatedModule(update); - } catch (e) { - this.warnFailedUpdate(e, acceptedPath); - } - } - return () => { - try { - this.currentFirstInvalidatedBy = firstInvalidatedBy; - for (const { deps, fn } of qualifiedCallbacks) fn(deps.map((dep) => dep === acceptedPath ? fetchedModule : void 0)); - const loggedPath = isSelfUpdate ? path : `${acceptedPath} via ${path}`; - this.logger.debug(`hot updated: ${loggedPath}`); - } finally { - this.currentFirstInvalidatedBy = void 0; - } - }; - } -}; - -//#endregion -//#region ../../node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/non-secure/index.js -let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"; -let nanoid = (size = 21) => { - let id = ""; - let i = size | 0; - while (i--) id += urlAlphabet[Math.random() * 64 | 0]; - return id; -}; - -//#endregion -//#region src/shared/constants.ts -let SOURCEMAPPING_URL = "sourceMa"; -SOURCEMAPPING_URL += "ppingURL"; - -//#endregion -//#region src/shared/utils.ts -const isWindows = typeof process !== "undefined" && process.platform === "win32"; -const AsyncFunction = async function() {}.constructor; -function promiseWithResolvers() { - let resolve; - let reject; - const promise = new Promise((_resolve, _reject) => { - resolve = _resolve; - reject = _reject; - }); - return { - promise, - resolve, - reject - }; -} - -//#endregion -//#region src/shared/moduleRunnerTransport.ts -function reviveInvokeError(e) { - const error = new Error(e.message || "Unknown invoke error"); - Object.assign(error, e, { runnerError: /* @__PURE__ */ new Error("RunnerError") }); - return error; -} -const createInvokeableTransport = (transport$1) => { - if (transport$1.invoke) return { - ...transport$1, - async invoke(name, data) { - const result = await transport$1.invoke({ - type: "custom", - event: "vite:invoke", - data: { - id: "send", - name, - data - } - }); - if ("error" in result) throw reviveInvokeError(result.error); - return result.result; - } - }; - if (!transport$1.send || !transport$1.connect) throw new Error("transport must implement send and connect when invoke is not implemented"); - const rpcPromises = /* @__PURE__ */ new Map(); - return { - ...transport$1, - connect({ onMessage, onDisconnection }) { - return transport$1.connect({ - onMessage(payload) { - if (payload.type === "custom" && payload.event === "vite:invoke") { - const data = payload.data; - if (data.id.startsWith("response:")) { - const invokeId = data.id.slice(9); - const promise = rpcPromises.get(invokeId); - if (!promise) return; - if (promise.timeoutId) clearTimeout(promise.timeoutId); - rpcPromises.delete(invokeId); - const { error, result } = data.data; - if (error) promise.reject(error); - else promise.resolve(result); - return; - } - } - onMessage(payload); - }, - onDisconnection - }); - }, - disconnect() { - rpcPromises.forEach((promise) => { - promise.reject(/* @__PURE__ */ new Error(`transport was disconnected, cannot call ${JSON.stringify(promise.name)}`)); - }); - rpcPromises.clear(); - return transport$1.disconnect?.(); - }, - send(data) { - return transport$1.send(data); - }, - async invoke(name, data) { - const promiseId = nanoid(); - const wrappedData = { - type: "custom", - event: "vite:invoke", - data: { - name, - id: `send:${promiseId}`, - data - } - }; - const sendPromise = transport$1.send(wrappedData); - const { promise, resolve, reject } = promiseWithResolvers(); - const timeout = transport$1.timeout ?? 6e4; - let timeoutId; - if (timeout > 0) { - timeoutId = setTimeout(() => { - rpcPromises.delete(promiseId); - reject(/* @__PURE__ */ new Error(`transport invoke timed out after ${timeout}ms (data: ${JSON.stringify(wrappedData)})`)); - }, timeout); - timeoutId?.unref?.(); - } - rpcPromises.set(promiseId, { - resolve, - reject, - name, - timeoutId - }); - if (sendPromise) sendPromise.catch((err) => { - clearTimeout(timeoutId); - rpcPromises.delete(promiseId); - reject(err); - }); - try { - return await promise; - } catch (err) { - throw reviveInvokeError(err); - } - } - }; -}; -const normalizeModuleRunnerTransport = (transport$1) => { - const invokeableTransport = createInvokeableTransport(transport$1); - let isConnected = !invokeableTransport.connect; - let connectingPromise; - return { - ...transport$1, - ...invokeableTransport.connect ? { async connect(onMessage) { - if (isConnected) return; - if (connectingPromise) { - await connectingPromise; - return; - } - const maybePromise = invokeableTransport.connect({ - onMessage: onMessage ?? (() => {}), - onDisconnection() { - isConnected = false; - } - }); - if (maybePromise) { - connectingPromise = maybePromise; - await connectingPromise; - connectingPromise = void 0; - } - isConnected = true; - } } : {}, - ...invokeableTransport.disconnect ? { async disconnect() { - if (!isConnected) return; - if (connectingPromise) await connectingPromise; - isConnected = false; - await invokeableTransport.disconnect(); - } } : {}, - async send(data) { - if (!invokeableTransport.send) return; - if (!isConnected) if (connectingPromise) await connectingPromise; - else throw new Error("send was called before connect"); - await invokeableTransport.send(data); - }, - async invoke(name, data) { - if (!isConnected) if (connectingPromise) await connectingPromise; - else throw new Error("invoke was called before connect"); - return invokeableTransport.invoke(name, data); - } - }; -}; -const createWebSocketModuleRunnerTransport = (options) => { - const pingInterval = options.pingInterval ?? 3e4; - let ws; - let pingIntervalId; - return { - async connect({ onMessage, onDisconnection }) { - const socket = options.createConnection(); - socket.addEventListener("message", async ({ data }) => { - onMessage(JSON.parse(data)); - }); - let isOpened = socket.readyState === socket.OPEN; - if (!isOpened) await new Promise((resolve, reject) => { - socket.addEventListener("open", () => { - isOpened = true; - resolve(); - }, { once: true }); - socket.addEventListener("close", async () => { - if (!isOpened) { - reject(/* @__PURE__ */ new Error("WebSocket closed without opened.")); - return; - } - onMessage({ - type: "custom", - event: "vite:ws:disconnect", - data: { webSocket: socket } - }); - onDisconnection(); - }); - }); - onMessage({ - type: "custom", - event: "vite:ws:connect", - data: { webSocket: socket } - }); - ws = socket; - pingIntervalId = setInterval(() => { - if (socket.readyState === socket.OPEN) socket.send(JSON.stringify({ type: "ping" })); - }, pingInterval); - }, - disconnect() { - clearInterval(pingIntervalId); - ws?.close(); - }, - send(data) { - ws.send(JSON.stringify(data)); - } - }; -}; - -//#endregion -//#region src/shared/hmrHandler.ts -function createHMRHandler(handler) { - const queue = new Queue(); - return (payload) => queue.enqueue(() => handler(payload)); -} -var Queue = class { - constructor() { - _defineProperty(this, "queue", []); - _defineProperty(this, "pending", false); - } - enqueue(promise) { - return new Promise((resolve, reject) => { - this.queue.push({ - promise, - resolve, - reject - }); - this.dequeue(); - }); - } - dequeue() { - if (this.pending) return false; - const item = this.queue.shift(); - if (!item) return false; - this.pending = true; - item.promise().then(item.resolve).catch(item.reject).finally(() => { - this.pending = false; - this.dequeue(); - }); - return true; - } -}; - -//#endregion -//#region src/client/overlay.ts -const hmrConfigName = __HMR_CONFIG_NAME__; -const base$1 = __BASE__ || "/"; -function h(e, attrs = {}, ...children) { - const elem = document.createElement(e); - for (const [k, v] of Object.entries(attrs)) elem.setAttribute(k, v); - elem.append(...children); - return elem; -} -const templateStyle = ` -:host { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 99999; - --monospace: 'SFMono-Regular', Consolas, - 'Liberation Mono', Menlo, Courier, monospace; - --red: #ff5555; - --yellow: #e2aa53; - --purple: #cfa4ff; - --cyan: #2dd9da; - --dim: #c9c9c9; - - --window-background: #181818; - --window-color: #d8d8d8; -} - -.backdrop { - position: fixed; - z-index: 99999; - top: 0; - left: 0; - width: 100%; - height: 100%; - overflow-y: scroll; - margin: 0; - background: rgba(0, 0, 0, 0.66); -} - -.window { - font-family: var(--monospace); - line-height: 1.5; - max-width: 80vw; - color: var(--window-color); - box-sizing: border-box; - margin: 30px auto; - padding: 2.5vh 4vw; - position: relative; - background: var(--window-background); - border-radius: 6px 6px 8px 8px; - box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22); - overflow: hidden; - border-top: 8px solid var(--red); - direction: ltr; - text-align: left; -} - -pre { - font-family: var(--monospace); - font-size: 16px; - margin-top: 0; - margin-bottom: 1em; - overflow-x: scroll; - scrollbar-width: none; -} - -pre::-webkit-scrollbar { - display: none; -} - -pre.frame::-webkit-scrollbar { - display: block; - height: 5px; -} - -pre.frame::-webkit-scrollbar-thumb { - background: #999; - border-radius: 5px; -} - -pre.frame { - scrollbar-width: thin; -} - -.message { - line-height: 1.3; - font-weight: 600; - white-space: pre-wrap; -} - -.message-body { - color: var(--red); -} - -.plugin { - color: var(--purple); -} - -.file { - color: var(--cyan); - margin-bottom: 0; - white-space: pre-wrap; - word-break: break-all; -} - -.frame { - color: var(--yellow); -} - -.stack { - font-size: 13px; - color: var(--dim); -} - -.tip { - font-size: 13px; - color: #999; - border-top: 1px dotted #999; - padding-top: 13px; - line-height: 1.8; -} - -code { - font-size: 13px; - font-family: var(--monospace); - color: var(--yellow); -} - -.file-link { - text-decoration: underline; - cursor: pointer; -} - -kbd { - line-height: 1.5; - font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; - font-size: 0.75rem; - font-weight: 700; - background-color: rgb(38, 40, 44); - color: rgb(166, 167, 171); - padding: 0.15rem 0.3rem; - border-radius: 0.25rem; - border-width: 0.0625rem 0.0625rem 0.1875rem; - border-style: solid; - border-color: rgb(54, 57, 64); - border-image: initial; -} -`; -const createTemplate = () => h("div", { - class: "backdrop", - part: "backdrop" -}, h("div", { - class: "window", - part: "window" -}, h("pre", { - class: "message", - part: "message" -}, h("span", { - class: "plugin", - part: "plugin" -}), h("span", { - class: "message-body", - part: "message-body" -})), h("pre", { - class: "file", - part: "file" -}), h("pre", { - class: "frame", - part: "frame" -}), h("pre", { - class: "stack", - part: "stack" -}), h("div", { - class: "tip", - part: "tip" -}, "Click outside, press ", h("kbd", {}, "Esc"), " key, or fix the code to dismiss.", h("br"), "You can also disable this overlay by setting ", h("code", { part: "config-option-name" }, "server.hmr.overlay"), " to ", h("code", { part: "config-option-value" }, "false"), " in ", h("code", { part: "config-file-name" }, hmrConfigName), ".")), h("style", {}, templateStyle)); -const fileRE = /(?:file:\/\/)?(?:[a-zA-Z]:\\|\/).*?:\d+:\d+/g; -const codeframeRE = /^(?:>?\s*\d+\s+\|.*|\s+\|\s*\^.*)\r?\n/gm; -const { HTMLElement = class {} } = globalThis; -var ErrorOverlay = class extends HTMLElement { - constructor(err, links = true) { - super(); - _defineProperty(this, "root", void 0); - _defineProperty(this, "closeOnEsc", void 0); - this.root = this.attachShadow({ mode: "open" }); - this.root.appendChild(createTemplate()); - codeframeRE.lastIndex = 0; - const hasFrame = err.frame && codeframeRE.test(err.frame); - const message = hasFrame ? err.message.replace(codeframeRE, "") : err.message; - if (err.plugin) this.text(".plugin", `[plugin:${err.plugin}] `); - this.text(".message-body", message.trim()); - const [file] = (err.loc?.file || err.id || "unknown file").split(`?`); - if (err.loc) this.text(".file", `${file}:${err.loc.line}:${err.loc.column}`, links); - else if (err.id) this.text(".file", file); - if (hasFrame) this.text(".frame", err.frame.trim()); - this.text(".stack", err.stack, links); - this.root.querySelector(".window").addEventListener("click", (e) => { - e.stopPropagation(); - }); - this.addEventListener("click", () => { - this.close(); - }); - this.closeOnEsc = (e) => { - if (e.key === "Escape" || e.code === "Escape") this.close(); - }; - document.addEventListener("keydown", this.closeOnEsc); - } - text(selector, text, linkFiles = false) { - const el = this.root.querySelector(selector); - if (!linkFiles) el.textContent = text; - else { - let curIndex = 0; - let match; - fileRE.lastIndex = 0; - while (match = fileRE.exec(text)) { - const { 0: file, index } = match; - const frag = text.slice(curIndex, index); - el.appendChild(document.createTextNode(frag)); - const link = document.createElement("a"); - link.textContent = file; - link.className = "file-link"; - link.onclick = () => { - fetch(new URL(`${base$1}__open-in-editor?file=${encodeURIComponent(file)}`, import.meta.url)); - }; - el.appendChild(link); - curIndex += frag.length + file.length; - } - if (curIndex < text.length) el.appendChild(document.createTextNode(text.slice(curIndex))); - } - } - close() { - this.parentNode?.removeChild(this); - document.removeEventListener("keydown", this.closeOnEsc); - } -}; -const overlayId = "vite-error-overlay"; -const { customElements } = globalThis; -if (customElements && !customElements.get(overlayId)) customElements.define(overlayId, ErrorOverlay); - -//#endregion -//#region src/client/client.ts -console.debug("[vite] connecting..."); -const importMetaUrl = new URL(import.meta.url); -const serverHost = __SERVER_HOST__; -const socketProtocol = __HMR_PROTOCOL__ || (importMetaUrl.protocol === "https:" ? "wss" : "ws"); -const hmrPort = __HMR_PORT__; -const socketHost = `${__HMR_HOSTNAME__ || importMetaUrl.hostname}:${hmrPort || importMetaUrl.port}${__HMR_BASE__}`; -const directSocketHost = __HMR_DIRECT_TARGET__; -const base = __BASE__ || "/"; -const hmrTimeout = __HMR_TIMEOUT__; -const wsToken = __WS_TOKEN__; -const transport = normalizeModuleRunnerTransport((() => { - let wsTransport = createWebSocketModuleRunnerTransport({ - createConnection: () => new WebSocket(`${socketProtocol}://${socketHost}?token=${wsToken}`, "vite-hmr"), - pingInterval: hmrTimeout - }); - return { - async connect(handlers) { - try { - await wsTransport.connect(handlers); - } catch (e) { - if (!hmrPort) { - wsTransport = createWebSocketModuleRunnerTransport({ - createConnection: () => new WebSocket(`${socketProtocol}://${directSocketHost}?token=${wsToken}`, "vite-hmr"), - pingInterval: hmrTimeout - }); - try { - await wsTransport.connect(handlers); - console.info("[vite] Direct websocket connection fallback. Check out https://vite.dev/config/server-options.html#server-hmr to remove the previous connection error."); - } catch (e$1) { - if (e$1 instanceof Error && e$1.message.includes("WebSocket closed without opened.")) { - const currentScriptHostURL = new URL(import.meta.url); - const currentScriptHost = currentScriptHostURL.host + currentScriptHostURL.pathname.replace(/@vite\/client$/, ""); - console.error(`[vite] failed to connect to websocket. -your current setup: - (browser) ${currentScriptHost} <--[HTTP]--> ${serverHost} (server)\n (browser) ${socketHost} <--[WebSocket (failing)]--> ${directSocketHost} (server)\nCheck out your Vite / network configuration and https://vite.dev/config/server-options.html#server-hmr .`); - } - } - return; - } - console.error(`[vite] failed to connect to websocket (${e}). `); - throw e; - } - }, - async disconnect() { - await wsTransport.disconnect(); - }, - send(data) { - wsTransport.send(data); - } - }; -})()); -let willUnload = false; -if (typeof window !== "undefined") window.addEventListener?.("beforeunload", () => { - willUnload = true; -}); -function cleanUrl(pathname) { - const url = new URL(pathname, "http://vite.dev"); - url.searchParams.delete("direct"); - return url.pathname + url.search; -} -let isFirstUpdate = true; -const outdatedLinkTags = /* @__PURE__ */ new WeakSet(); -const debounceReload = (time) => { - let timer; - return () => { - if (timer) { - clearTimeout(timer); - timer = null; - } - timer = setTimeout(() => { - location.reload(); - }, time); - }; -}; -const pageReload = debounceReload(20); -const hmrClient = new HMRClient({ - error: (err) => console.error("[vite]", err), - debug: (...msg) => console.debug("[vite]", ...msg) -}, transport, async function importUpdatedModule({ acceptedPath, timestamp, explicitImportRequired, isWithinCircularImport }) { - const [acceptedPathWithoutQuery, query] = acceptedPath.split(`?`); - const importPromise = import( - /* @vite-ignore */ - base + acceptedPathWithoutQuery.slice(1) + `?${explicitImportRequired ? "import&" : ""}t=${timestamp}${query ? `&${query}` : ""}` -); - if (isWithinCircularImport) importPromise.catch(() => { - console.info(`[hmr] ${acceptedPath} failed to apply HMR as it's within a circular import. Reloading page to reset the execution order. To debug and break the circular import, you can run \`vite --debug hmr\` to log the circular dependency path if a file change triggered it.`); - pageReload(); - }); - return await importPromise; -}); -transport.connect(createHMRHandler(handleMessage)); -async function handleMessage(payload) { - switch (payload.type) { - case "connected": - console.debug(`[vite] connected.`); - break; - case "update": - await hmrClient.notifyListeners("vite:beforeUpdate", payload); - if (hasDocument) if (isFirstUpdate && hasErrorOverlay()) { - location.reload(); - return; - } else { - if (enableOverlay) clearErrorOverlay(); - isFirstUpdate = false; - } - await Promise.all(payload.updates.map(async (update) => { - if (update.type === "js-update") return hmrClient.queueUpdate(update); - const { path, timestamp } = update; - const searchUrl = cleanUrl(path); - const el = Array.from(document.querySelectorAll("link")).find((e) => !outdatedLinkTags.has(e) && cleanUrl(e.href).includes(searchUrl)); - if (!el) return; - const newPath = `${base}${searchUrl.slice(1)}${searchUrl.includes("?") ? "&" : "?"}t=${timestamp}`; - return new Promise((resolve) => { - const newLinkTag = el.cloneNode(); - newLinkTag.href = new URL(newPath, el.href).href; - const removeOldEl = () => { - el.remove(); - console.debug(`[vite] css hot updated: ${searchUrl}`); - resolve(); - }; - newLinkTag.addEventListener("load", removeOldEl); - newLinkTag.addEventListener("error", removeOldEl); - outdatedLinkTags.add(el); - el.after(newLinkTag); - }); - })); - await hmrClient.notifyListeners("vite:afterUpdate", payload); - break; - case "custom": - await hmrClient.notifyListeners(payload.event, payload.data); - if (payload.event === "vite:ws:disconnect") { - if (hasDocument && !willUnload) { - console.log(`[vite] server connection lost. Polling for restart...`); - const socket = payload.data.webSocket; - const url = new URL(socket.url); - url.search = ""; - await waitForSuccessfulPing(url.href); - location.reload(); - } - } - break; - case "full-reload": - await hmrClient.notifyListeners("vite:beforeFullReload", payload); - if (hasDocument) if (payload.path && payload.path.endsWith(".html")) { - const pagePath = decodeURI(location.pathname); - const payloadPath = base + payload.path.slice(1); - if (pagePath === payloadPath || payload.path === "/index.html" || pagePath.endsWith("/") && pagePath + "index.html" === payloadPath) pageReload(); - return; - } else pageReload(); - break; - case "prune": - await hmrClient.notifyListeners("vite:beforePrune", payload); - await hmrClient.prunePaths(payload.paths); - break; - case "error": - await hmrClient.notifyListeners("vite:error", payload); - if (hasDocument) { - const err = payload.err; - if (enableOverlay) createErrorOverlay(err); - else console.error(`[vite] Internal Server Error\n${err.message}\n${err.stack}`); - } - break; - case "ping": break; - default: { - const check = payload; - return check; - } - } -} -const enableOverlay = __HMR_ENABLE_OVERLAY__; -const hasDocument = "document" in globalThis; -function createErrorOverlay(err) { - clearErrorOverlay(); - const { customElements: customElements$1 } = globalThis; - if (customElements$1) { - const ErrorOverlayConstructor = customElements$1.get(overlayId); - document.body.appendChild(new ErrorOverlayConstructor(err)); - } -} -function clearErrorOverlay() { - document.querySelectorAll(overlayId).forEach((n) => n.close()); -} -function hasErrorOverlay() { - return document.querySelectorAll(overlayId).length; -} -function waitForSuccessfulPing(socketUrl) { - if (typeof SharedWorker === "undefined") { - const visibilityManager = { - currentState: document.visibilityState, - listeners: /* @__PURE__ */ new Set() - }; - const onVisibilityChange = () => { - visibilityManager.currentState = document.visibilityState; - for (const listener of visibilityManager.listeners) listener(visibilityManager.currentState); - }; - document.addEventListener("visibilitychange", onVisibilityChange); - return waitForSuccessfulPingInternal(socketUrl, visibilityManager); - } - const blob = new Blob([ - "\"use strict\";", - `const waitForSuccessfulPingInternal = ${waitForSuccessfulPingInternal.toString()};`, - `const fn = ${pingWorkerContentMain.toString()};`, - `fn(${JSON.stringify(socketUrl)})` - ], { type: "application/javascript" }); - const objURL = URL.createObjectURL(blob); - const sharedWorker = new SharedWorker(objURL); - return new Promise((resolve, reject) => { - const onVisibilityChange = () => { - sharedWorker.port.postMessage({ visibility: document.visibilityState }); - }; - document.addEventListener("visibilitychange", onVisibilityChange); - sharedWorker.port.addEventListener("message", (event) => { - document.removeEventListener("visibilitychange", onVisibilityChange); - sharedWorker.port.close(); - const data = event.data; - if (data.type === "error") { - reject(data.error); - return; - } - resolve(); - }); - onVisibilityChange(); - sharedWorker.port.start(); - }); -} -function pingWorkerContentMain(socketUrl) { - self.addEventListener("connect", (_event) => { - const event = _event; - const port = event.ports[0]; - if (!socketUrl) { - port.postMessage({ - type: "error", - error: /* @__PURE__ */ new Error("socketUrl not found") - }); - return; - } - const visibilityManager = { - currentState: "visible", - listeners: /* @__PURE__ */ new Set() - }; - port.addEventListener("message", (event$1) => { - const { visibility } = event$1.data; - visibilityManager.currentState = visibility; - console.debug("[vite] new window visibility", visibility); - for (const listener of visibilityManager.listeners) listener(visibility); - }); - port.start(); - console.debug("[vite] connected from window"); - waitForSuccessfulPingInternal(socketUrl, visibilityManager).then(() => { - console.debug("[vite] ping successful"); - try { - port.postMessage({ type: "success" }); - } catch (error) { - port.postMessage({ - type: "error", - error - }); - } - }, (error) => { - console.debug("[vite] error happened", error); - try { - port.postMessage({ - type: "error", - error - }); - } catch (error$1) { - port.postMessage({ - type: "error", - error: error$1 - }); - } - }); - }); -} -async function waitForSuccessfulPingInternal(socketUrl, visibilityManager, ms = 1e3) { - function wait(ms$1) { - return new Promise((resolve) => setTimeout(resolve, ms$1)); - } - async function ping() { - try { - const socket = new WebSocket(socketUrl, "vite-ping"); - return new Promise((resolve) => { - function onOpen() { - resolve(true); - close(); - } - function onError() { - resolve(false); - close(); - } - function close() { - socket.removeEventListener("open", onOpen); - socket.removeEventListener("error", onError); - socket.close(); - } - socket.addEventListener("open", onOpen); - socket.addEventListener("error", onError); - }); - } catch { - return false; - } - } - function waitForWindowShow(visibilityManager$1) { - return new Promise((resolve) => { - const onChange = (newVisibility) => { - if (newVisibility === "visible") { - resolve(); - visibilityManager$1.listeners.delete(onChange); - } - }; - visibilityManager$1.listeners.add(onChange); - }); - } - if (await ping()) return; - await wait(ms); - while (true) if (visibilityManager.currentState === "visible") { - if (await ping()) break; - await wait(ms); - } else await waitForWindowShow(visibilityManager); -} -const sheetsMap = /* @__PURE__ */ new Map(); -if ("document" in globalThis) document.querySelectorAll("style[data-vite-dev-id]").forEach((el) => { - sheetsMap.set(el.getAttribute("data-vite-dev-id"), el); -}); -const cspNonce = "document" in globalThis ? document.querySelector("meta[property=csp-nonce]")?.nonce : void 0; -let lastInsertedStyle; -function updateStyle(id, content) { - let style = sheetsMap.get(id); - if (!style) { - style = document.createElement("style"); - style.setAttribute("type", "text/css"); - style.setAttribute("data-vite-dev-id", id); - style.textContent = content; - if (cspNonce) style.setAttribute("nonce", cspNonce); - if (!lastInsertedStyle) { - document.head.appendChild(style); - setTimeout(() => { - lastInsertedStyle = void 0; - }, 0); - } else lastInsertedStyle.insertAdjacentElement("afterend", style); - lastInsertedStyle = style; - } else style.textContent = content; - sheetsMap.set(id, style); -} -function removeStyle(id) { - const style = sheetsMap.get(id); - if (style) { - document.head.removeChild(style); - sheetsMap.delete(id); - } -} -function createHotContext(ownerPath) { - return new HMRContext(hmrClient, ownerPath); -} -/** -* urls here are dynamic import() urls that couldn't be statically analyzed -*/ -function injectQuery(url, queryToInject) { - if (url[0] !== "." && url[0] !== "/") return url; - const pathname = url.replace(/[?#].*$/, ""); - const { search, hash } = new URL(url, "http://vite.dev"); - return `${pathname}?${queryToInject}${search ? `&` + search.slice(1) : ""}${hash || ""}`; -} - -//#endregion -export { ErrorOverlay, createHotContext, injectQuery, removeStyle, updateStyle }; \ No newline at end of file diff --git a/node_modules/vite/dist/client/env.mjs b/node_modules/vite/dist/client/env.mjs deleted file mode 100644 index c28abfd..0000000 --- a/node_modules/vite/dist/client/env.mjs +++ /dev/null @@ -1,19 +0,0 @@ -//#region src/client/env.ts -const context = (() => { - if (typeof globalThis !== "undefined") return globalThis; - else if (typeof self !== "undefined") return self; - else if (typeof window !== "undefined") return window; - else return Function("return this")(); -})(); -const defines = __DEFINES__; -Object.keys(defines).forEach((key) => { - const segments = key.split("."); - let target = context; - for (let i = 0; i < segments.length; i++) { - const segment = segments[i]; - if (i === segments.length - 1) target[segment] = defines[key]; - else target = target[segment] || (target[segment] = {}); - } -}); - -//#endregion \ No newline at end of file diff --git a/node_modules/vite/dist/node/chunks/dep-BuoK8Wda.js b/node_modules/vite/dist/node/chunks/dep-BuoK8Wda.js deleted file mode 100644 index 9f228c4..0000000 --- a/node_modules/vite/dist/node/chunks/dep-BuoK8Wda.js +++ /dev/null @@ -1,377 +0,0 @@ -import { __commonJS } from "./dep-lCKrEJQm.js"; - -//#region ../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/parse.js -var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/parse.js": ((exports, module) => { - var openParentheses = "(".charCodeAt(0); - var closeParentheses = ")".charCodeAt(0); - var singleQuote = "'".charCodeAt(0); - var doubleQuote = "\"".charCodeAt(0); - var backslash = "\\".charCodeAt(0); - var slash = "/".charCodeAt(0); - var comma = ",".charCodeAt(0); - var colon = ":".charCodeAt(0); - var star = "*".charCodeAt(0); - var uLower = "u".charCodeAt(0); - var uUpper = "U".charCodeAt(0); - var plus$1 = "+".charCodeAt(0); - var isUnicodeRange = /^[a-f0-9?-]+$/i; - module.exports = function(input) { - var tokens = []; - var value = input; - var next, quote, prev, token, escape, escapePos, whitespacePos, parenthesesOpenPos; - var pos = 0; - var code = value.charCodeAt(pos); - var max = value.length; - var stack = [{ nodes: tokens }]; - var balanced = 0; - var parent; - var name = ""; - var before = ""; - var after = ""; - while (pos < max) if (code <= 32) { - next = pos; - do { - next += 1; - code = value.charCodeAt(next); - } while (code <= 32); - token = value.slice(pos, next); - prev = tokens[tokens.length - 1]; - if (code === closeParentheses && balanced) after = token; - else if (prev && prev.type === "div") { - prev.after = token; - prev.sourceEndIndex += token.length; - } else if (code === comma || code === colon || code === slash && value.charCodeAt(next + 1) !== star && (!parent || parent && parent.type === "function" && parent.value !== "calc")) before = token; - else tokens.push({ - type: "space", - sourceIndex: pos, - sourceEndIndex: next, - value: token - }); - pos = next; - } else if (code === singleQuote || code === doubleQuote) { - next = pos; - quote = code === singleQuote ? "'" : "\""; - token = { - type: "string", - sourceIndex: pos, - quote - }; - do { - escape = false; - next = value.indexOf(quote, next + 1); - if (~next) { - escapePos = next; - while (value.charCodeAt(escapePos - 1) === backslash) { - escapePos -= 1; - escape = !escape; - } - } else { - value += quote; - next = value.length - 1; - token.unclosed = true; - } - } while (escape); - token.value = value.slice(pos + 1, next); - token.sourceEndIndex = token.unclosed ? next : next + 1; - tokens.push(token); - pos = next + 1; - code = value.charCodeAt(pos); - } else if (code === slash && value.charCodeAt(pos + 1) === star) { - next = value.indexOf("*/", pos); - token = { - type: "comment", - sourceIndex: pos, - sourceEndIndex: next + 2 - }; - if (next === -1) { - token.unclosed = true; - next = value.length; - token.sourceEndIndex = next; - } - token.value = value.slice(pos + 2, next); - tokens.push(token); - pos = next + 2; - code = value.charCodeAt(pos); - } else if ((code === slash || code === star) && parent && parent.type === "function" && parent.value === "calc") { - token = value[pos]; - tokens.push({ - type: "word", - sourceIndex: pos - before.length, - sourceEndIndex: pos + token.length, - value: token - }); - pos += 1; - code = value.charCodeAt(pos); - } else if (code === slash || code === comma || code === colon) { - token = value[pos]; - tokens.push({ - type: "div", - sourceIndex: pos - before.length, - sourceEndIndex: pos + token.length, - value: token, - before, - after: "" - }); - before = ""; - pos += 1; - code = value.charCodeAt(pos); - } else if (openParentheses === code) { - next = pos; - do { - next += 1; - code = value.charCodeAt(next); - } while (code <= 32); - parenthesesOpenPos = pos; - token = { - type: "function", - sourceIndex: pos - name.length, - value: name, - before: value.slice(parenthesesOpenPos + 1, next) - }; - pos = next; - if (name === "url" && code !== singleQuote && code !== doubleQuote) { - next -= 1; - do { - escape = false; - next = value.indexOf(")", next + 1); - if (~next) { - escapePos = next; - while (value.charCodeAt(escapePos - 1) === backslash) { - escapePos -= 1; - escape = !escape; - } - } else { - value += ")"; - next = value.length - 1; - token.unclosed = true; - } - } while (escape); - whitespacePos = next; - do { - whitespacePos -= 1; - code = value.charCodeAt(whitespacePos); - } while (code <= 32); - if (parenthesesOpenPos < whitespacePos) { - if (pos !== whitespacePos + 1) token.nodes = [{ - type: "word", - sourceIndex: pos, - sourceEndIndex: whitespacePos + 1, - value: value.slice(pos, whitespacePos + 1) - }]; - else token.nodes = []; - if (token.unclosed && whitespacePos + 1 !== next) { - token.after = ""; - token.nodes.push({ - type: "space", - sourceIndex: whitespacePos + 1, - sourceEndIndex: next, - value: value.slice(whitespacePos + 1, next) - }); - } else { - token.after = value.slice(whitespacePos + 1, next); - token.sourceEndIndex = next; - } - } else { - token.after = ""; - token.nodes = []; - } - pos = next + 1; - token.sourceEndIndex = token.unclosed ? next : pos; - code = value.charCodeAt(pos); - tokens.push(token); - } else { - balanced += 1; - token.after = ""; - token.sourceEndIndex = pos + 1; - tokens.push(token); - stack.push(token); - tokens = token.nodes = []; - parent = token; - } - name = ""; - } else if (closeParentheses === code && balanced) { - pos += 1; - code = value.charCodeAt(pos); - parent.after = after; - parent.sourceEndIndex += after.length; - after = ""; - balanced -= 1; - stack[stack.length - 1].sourceEndIndex = pos; - stack.pop(); - parent = stack[balanced]; - tokens = parent.nodes; - } else { - next = pos; - do { - if (code === backslash) next += 1; - next += 1; - code = value.charCodeAt(next); - } while (next < max && !(code <= 32 || code === singleQuote || code === doubleQuote || code === comma || code === colon || code === slash || code === openParentheses || code === star && parent && parent.type === "function" && parent.value === "calc" || code === slash && parent.type === "function" && parent.value === "calc" || code === closeParentheses && balanced)); - token = value.slice(pos, next); - if (openParentheses === code) name = token; - else if ((uLower === token.charCodeAt(0) || uUpper === token.charCodeAt(0)) && plus$1 === token.charCodeAt(1) && isUnicodeRange.test(token.slice(2))) tokens.push({ - type: "unicode-range", - sourceIndex: pos, - sourceEndIndex: next, - value: token - }); - else tokens.push({ - type: "word", - sourceIndex: pos, - sourceEndIndex: next, - value: token - }); - pos = next; - } - for (pos = stack.length - 1; pos; pos -= 1) { - stack[pos].unclosed = true; - stack[pos].sourceEndIndex = value.length; - } - return stack[0].nodes; - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/walk.js -var require_walk = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/walk.js": ((exports, module) => { - module.exports = function walk$1(nodes, cb, bubble) { - var i, max, node, result; - for (i = 0, max = nodes.length; i < max; i += 1) { - node = nodes[i]; - if (!bubble) result = cb(node, i, nodes); - if (result !== false && node.type === "function" && Array.isArray(node.nodes)) walk$1(node.nodes, cb, bubble); - if (bubble) cb(node, i, nodes); - } - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/stringify.js -var require_stringify = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/stringify.js": ((exports, module) => { - function stringifyNode(node, custom) { - var type = node.type; - var value = node.value; - var buf; - var customResult; - if (custom && (customResult = custom(node)) !== void 0) return customResult; - else if (type === "word" || type === "space") return value; - else if (type === "string") { - buf = node.quote || ""; - return buf + value + (node.unclosed ? "" : buf); - } else if (type === "comment") return "/*" + value + (node.unclosed ? "" : "*/"); - else if (type === "div") return (node.before || "") + value + (node.after || ""); - else if (Array.isArray(node.nodes)) { - buf = stringify$1(node.nodes, custom); - if (type !== "function") return buf; - return value + "(" + (node.before || "") + buf + (node.after || "") + (node.unclosed ? "" : ")"); - } - return value; - } - function stringify$1(nodes, custom) { - var result, i; - if (Array.isArray(nodes)) { - result = ""; - for (i = nodes.length - 1; ~i; i -= 1) result = stringifyNode(nodes[i], custom) + result; - return result; - } - return stringifyNode(nodes, custom); - } - module.exports = stringify$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/unit.js -var require_unit = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/unit.js": ((exports, module) => { - var minus = "-".charCodeAt(0); - var plus = "+".charCodeAt(0); - var dot = ".".charCodeAt(0); - var exp = "e".charCodeAt(0); - var EXP = "E".charCodeAt(0); - function likeNumber(value) { - var code = value.charCodeAt(0); - var nextCode; - if (code === plus || code === minus) { - nextCode = value.charCodeAt(1); - if (nextCode >= 48 && nextCode <= 57) return true; - var nextNextCode = value.charCodeAt(2); - if (nextCode === dot && nextNextCode >= 48 && nextNextCode <= 57) return true; - return false; - } - if (code === dot) { - nextCode = value.charCodeAt(1); - if (nextCode >= 48 && nextCode <= 57) return true; - return false; - } - if (code >= 48 && code <= 57) return true; - return false; - } - module.exports = function(value) { - var pos = 0; - var length = value.length; - var code; - var nextCode; - var nextNextCode; - if (length === 0 || !likeNumber(value)) return false; - code = value.charCodeAt(pos); - if (code === plus || code === minus) pos++; - while (pos < length) { - code = value.charCodeAt(pos); - if (code < 48 || code > 57) break; - pos += 1; - } - code = value.charCodeAt(pos); - nextCode = value.charCodeAt(pos + 1); - if (code === dot && nextCode >= 48 && nextCode <= 57) { - pos += 2; - while (pos < length) { - code = value.charCodeAt(pos); - if (code < 48 || code > 57) break; - pos += 1; - } - } - code = value.charCodeAt(pos); - nextCode = value.charCodeAt(pos + 1); - nextNextCode = value.charCodeAt(pos + 2); - if ((code === exp || code === EXP) && (nextCode >= 48 && nextCode <= 57 || (nextCode === plus || nextCode === minus) && nextNextCode >= 48 && nextNextCode <= 57)) { - pos += nextCode === plus || nextCode === minus ? 3 : 2; - while (pos < length) { - code = value.charCodeAt(pos); - if (code < 48 || code > 57) break; - pos += 1; - } - } - return { - number: value.slice(0, pos), - unit: value.slice(pos) - }; - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/index.js -var require_lib = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/index.js": ((exports, module) => { - var parse = require_parse(); - var walk = require_walk(); - var stringify = require_stringify(); - function ValueParser(value) { - if (this instanceof ValueParser) { - this.nodes = parse(value); - return this; - } - return new ValueParser(value); - } - ValueParser.prototype.toString = function() { - return Array.isArray(this.nodes) ? stringify(this.nodes) : ""; - }; - ValueParser.prototype.walk = function(cb, bubble) { - walk(this.nodes, cb, bubble); - return this; - }; - ValueParser.unit = require_unit(); - ValueParser.walk = walk; - ValueParser.stringify = stringify; - module.exports = ValueParser; -}) }); - -//#endregion -export { require_lib }; \ No newline at end of file diff --git a/node_modules/vite/dist/node/chunks/dep-BvyJBvVx.js b/node_modules/vite/dist/node/chunks/dep-BvyJBvVx.js deleted file mode 100644 index 1637312..0000000 --- a/node_modules/vite/dist/node/chunks/dep-BvyJBvVx.js +++ /dev/null @@ -1,4 +0,0 @@ -import "./dep-SmwnYDP9.js"; -import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-M_KD0XSK.js"; - -export { createBuilder, resolveBuildPlugins }; \ No newline at end of file diff --git a/node_modules/vite/dist/node/chunks/dep-Cs9lwdKu.js b/node_modules/vite/dist/node/chunks/dep-Cs9lwdKu.js deleted file mode 100644 index 8175149..0000000 --- a/node_modules/vite/dist/node/chunks/dep-Cs9lwdKu.js +++ /dev/null @@ -1,4 +0,0 @@ -import "./dep-SmwnYDP9.js"; -import { configDefaults, defineConfig, getDefaultEnvironmentOptions, isResolvedConfig, loadConfigFromFile, resolveBaseUrl, resolveConfig, resolveDevEnvironmentOptions, sortUserPlugins } from "./dep-M_KD0XSK.js"; - -export { resolveConfig }; \ No newline at end of file diff --git a/node_modules/vite/dist/node/chunks/dep-DCVhRpiz.js b/node_modules/vite/dist/node/chunks/dep-DCVhRpiz.js deleted file mode 100644 index 0f43793..0000000 --- a/node_modules/vite/dist/node/chunks/dep-DCVhRpiz.js +++ /dev/null @@ -1,5595 +0,0 @@ -import { __commonJS, __require } from "./dep-lCKrEJQm.js"; -import { require_lib } from "./dep-BuoK8Wda.js"; - -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js -var require_fs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getFileSystem = getFileSystem; - exports.setFileSystem = setFileSystem; - let fileSystem = { - readFile: () => { - throw Error("readFile not implemented"); - }, - writeFile: () => { - throw Error("writeFile not implemented"); - } - }; - function setFileSystem(fs) { - fileSystem.readFile = fs.readFile; - fileSystem.writeFile = fs.writeFile; - } - function getFileSystem() { - return fileSystem; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/unquote.js -var require_unquote = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/unquote.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = unquote; - const reg = /['"]/; - function unquote(str$1) { - if (!str$1) return ""; - if (reg.test(str$1.charAt(0))) str$1 = str$1.substr(1); - if (reg.test(str$1.charAt(str$1.length - 1))) str$1 = str$1.substr(0, str$1.length - 1); - return str$1; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceValueSymbols.js -var require_replaceValueSymbols = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceValueSymbols.js": ((exports, module) => { - const matchValueName = /[$]?[\w-]+/g; - const replaceValueSymbols$2 = (value, replacements) => { - let matches; - while (matches = matchValueName.exec(value)) { - const replacement = replacements[matches[0]]; - if (replacement) { - value = value.slice(0, matches.index) + replacement + value.slice(matchValueName.lastIndex); - matchValueName.lastIndex -= matches[0].length - replacement.length; - } - } - return value; - }; - module.exports = replaceValueSymbols$2; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceSymbols.js -var require_replaceSymbols = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceSymbols.js": ((exports, module) => { - const replaceValueSymbols$1 = require_replaceValueSymbols(); - const replaceSymbols$1 = (css, replacements) => { - css.walk((node) => { - if (node.type === "decl" && node.value) node.value = replaceValueSymbols$1(node.value.toString(), replacements); - else if (node.type === "rule" && node.selector) node.selector = replaceValueSymbols$1(node.selector.toString(), replacements); - else if (node.type === "atrule" && node.params) node.params = replaceValueSymbols$1(node.params.toString(), replacements); - }); - }; - module.exports = replaceSymbols$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/extractICSS.js -var require_extractICSS = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/extractICSS.js": ((exports, module) => { - const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/; - const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/; - const getDeclsObject = (rule) => { - const object$1 = {}; - rule.walkDecls((decl) => { - const before = decl.raws.before ? decl.raws.before.trim() : ""; - object$1[before + decl.prop] = decl.value; - }); - return object$1; - }; - /** - * - * @param {string} css - * @param {boolean} removeRules - * @param {'auto' | 'rule' | 'at-rule'} mode - */ - const extractICSS$2 = (css, removeRules = true, mode = "auto") => { - const icssImports = {}; - const icssExports = {}; - function addImports(node, path$2) { - const unquoted = path$2.replace(/'|"/g, ""); - icssImports[unquoted] = Object.assign(icssImports[unquoted] || {}, getDeclsObject(node)); - if (removeRules) node.remove(); - } - function addExports(node) { - Object.assign(icssExports, getDeclsObject(node)); - if (removeRules) node.remove(); - } - css.each((node) => { - if (node.type === "rule" && mode !== "at-rule") { - if (node.selector.slice(0, 7) === ":import") { - const matches = importPattern.exec(node.selector); - if (matches) addImports(node, matches[1]); - } - if (node.selector === ":export") addExports(node); - } - if (node.type === "atrule" && mode !== "rule") { - if (node.name === "icss-import") { - const matches = balancedQuotes.exec(node.params); - if (matches) addImports(node, matches[1]); - } - if (node.name === "icss-export") addExports(node); - } - }); - return { - icssImports, - icssExports - }; - }; - module.exports = extractICSS$2; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/createICSSRules.js -var require_createICSSRules = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/createICSSRules.js": ((exports, module) => { - const createImports = (imports, postcss, mode = "rule") => { - return Object.keys(imports).map((path$2) => { - const aliases = imports[path$2]; - const declarations = Object.keys(aliases).map((key) => postcss.decl({ - prop: key, - value: aliases[key], - raws: { before: "\n " } - })); - const hasDeclarations = declarations.length > 0; - const rule = mode === "rule" ? postcss.rule({ - selector: `:import('${path$2}')`, - raws: { after: hasDeclarations ? "\n" : "" } - }) : postcss.atRule({ - name: "icss-import", - params: `'${path$2}'`, - raws: { after: hasDeclarations ? "\n" : "" } - }); - if (hasDeclarations) rule.append(declarations); - return rule; - }); - }; - const createExports = (exports$1, postcss, mode = "rule") => { - const declarations = Object.keys(exports$1).map((key) => postcss.decl({ - prop: key, - value: exports$1[key], - raws: { before: "\n " } - })); - if (declarations.length === 0) return []; - const rule = mode === "rule" ? postcss.rule({ - selector: `:export`, - raws: { after: "\n" } - }) : postcss.atRule({ - name: "icss-export", - raws: { after: "\n" } - }); - rule.append(declarations); - return [rule]; - }; - const createICSSRules$1 = (imports, exports$1, postcss, mode) => [...createImports(imports, postcss, mode), ...createExports(exports$1, postcss, mode)]; - module.exports = createICSSRules$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/index.js -var require_src$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/index.js": ((exports, module) => { - const replaceValueSymbols = require_replaceValueSymbols(); - const replaceSymbols = require_replaceSymbols(); - const extractICSS$1 = require_extractICSS(); - const createICSSRules = require_createICSSRules(); - module.exports = { - replaceValueSymbols, - replaceSymbols, - extractICSS: extractICSS$1, - createICSSRules - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js -var require_Parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = void 0; - var _icssUtils = require_src$4(); - const importRegexp = /^:import\((.+)\)$/; - var Parser$1 = class { - constructor(pathFetcher, trace) { - this.pathFetcher = pathFetcher; - this.plugin = this.plugin.bind(this); - this.exportTokens = {}; - this.translations = {}; - this.trace = trace; - } - plugin() { - const parser$1 = this; - return { - postcssPlugin: "css-modules-parser", - async OnceExit(css) { - await Promise.all(parser$1.fetchAllImports(css)); - parser$1.linkImportedSymbols(css); - return parser$1.extractExports(css); - } - }; - } - fetchAllImports(css) { - let imports = []; - css.each((node) => { - if (node.type == "rule" && node.selector.match(importRegexp)) imports.push(this.fetchImport(node, css.source.input.from, imports.length)); - }); - return imports; - } - linkImportedSymbols(css) { - (0, _icssUtils.replaceSymbols)(css, this.translations); - } - extractExports(css) { - css.each((node) => { - if (node.type == "rule" && node.selector == ":export") this.handleExport(node); - }); - } - handleExport(exportNode) { - exportNode.each((decl) => { - if (decl.type == "decl") { - Object.keys(this.translations).forEach((translation) => { - decl.value = decl.value.replace(translation, this.translations[translation]); - }); - this.exportTokens[decl.prop] = decl.value; - } - }); - exportNode.remove(); - } - async fetchImport(importNode, relativeTo, depNr) { - const file = importNode.selector.match(importRegexp)[1]; - const depTrace = this.trace + String.fromCharCode(depNr); - const exports$1 = await this.pathFetcher(file, relativeTo, depTrace); - try { - importNode.each((decl) => { - if (decl.type == "decl") this.translations[decl.prop] = exports$1[decl.value]; - }); - importNode.remove(); - } catch (err) { - console.log(err); - } - } - }; - exports.default = Parser$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/saveJSON.js -var require_saveJSON = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/saveJSON.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = saveJSON; - var _fs$2 = require_fs(); - function saveJSON(cssFile, json) { - return new Promise((resolve, reject) => { - const { writeFile } = (0, _fs$2.getFileSystem)(); - writeFile(`${cssFile}.json`, JSON.stringify(json), (e) => e ? reject(e) : resolve(json)); - }); - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/lodash.camelcase@4.3.0/node_modules/lodash.camelcase/index.js -var require_lodash = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lodash.camelcase@4.3.0/node_modules/lodash.camelcase/index.js": ((exports, module) => { - /** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - /** Used as references for various `Number` constants. */ - var INFINITY = Infinity; - /** `Object#toString` result references. */ - var symbolTag = "[object Symbol]"; - /** Used to match words composed of alphanumeric characters. */ - var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; - /** Used to match Latin Unicode letters (excluding mathematical operators). */ - var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; - /** Used to compose unicode character classes. */ - var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f\\ufe20-\\ufe23", rsComboSymbolsRange = "\\u20d0-\\u20f0", rsDingbatRange = "\\u2700-\\u27bf", rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff", rsMathOpRange = "\\xac\\xb1\\xd7\\xf7", rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", rsPunctuationRange = "\\u2000-\\u206f", rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde", rsVarRange = "\\ufe0e\\ufe0f", rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; - /** Used to compose unicode capture groups. */ - var rsApos = "['’]", rsAstral = "[" + rsAstralRange + "]", rsBreak = "[" + rsBreakRange + "]", rsCombo = "[" + rsComboMarksRange + rsComboSymbolsRange + "]", rsDigits = "\\d+", rsDingbat = "[" + rsDingbatRange + "]", rsLower = "[" + rsLowerRange + "]", rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsUpper = "[" + rsUpperRange + "]", rsZWJ = "\\u200d"; - /** Used to compose unicode regexes. */ - var rsLowerMisc = "(?:" + rsLower + "|" + rsMisc + ")", rsUpperMisc = "(?:" + rsUpper + "|" + rsMisc + ")", rsOptLowerContr = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?", rsOptUpperContr = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?", reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [ - rsNonAstral, - rsRegional, - rsSurrPair - ].join("|") + ")" + rsOptVar + reOptMod + ")*", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = "(?:" + [ - rsDingbat, - rsRegional, - rsSurrPair - ].join("|") + ")" + rsSeq, rsSymbol = "(?:" + [ - rsNonAstral + rsCombo + "?", - rsCombo, - rsRegional, - rsSurrPair, - rsAstral - ].join("|") + ")"; - /** Used to match apostrophes. */ - var reApos = RegExp(rsApos, "g"); - /** - * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and - * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols). - */ - var reComboMark = RegExp(rsCombo, "g"); - /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ - var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g"); - /** Used to match complex or compound words. */ - var reUnicodeWord = RegExp([ - rsUpper + "?" + rsLower + "+" + rsOptLowerContr + "(?=" + [ - rsBreak, - rsUpper, - "$" - ].join("|") + ")", - rsUpperMisc + "+" + rsOptUpperContr + "(?=" + [ - rsBreak, - rsUpper + rsLowerMisc, - "$" - ].join("|") + ")", - rsUpper + "?" + rsLowerMisc + "+" + rsOptLowerContr, - rsUpper + "+" + rsOptUpperContr, - rsDigits, - rsEmoji - ].join("|"), "g"); - /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ - var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + "]"); - /** Used to detect strings that need a more robust regexp to match words. */ - var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; - /** Used to map Latin Unicode letters to basic Latin letters. */ - var deburredLetters = { - "À": "A", - "Á": "A", - "Â": "A", - "Ã": "A", - "Ä": "A", - "Å": "A", - "à": "a", - "á": "a", - "â": "a", - "ã": "a", - "ä": "a", - "å": "a", - "Ç": "C", - "ç": "c", - "Ð": "D", - "ð": "d", - "È": "E", - "É": "E", - "Ê": "E", - "Ë": "E", - "è": "e", - "é": "e", - "ê": "e", - "ë": "e", - "Ì": "I", - "Í": "I", - "Î": "I", - "Ï": "I", - "ì": "i", - "í": "i", - "î": "i", - "ï": "i", - "Ñ": "N", - "ñ": "n", - "Ò": "O", - "Ó": "O", - "Ô": "O", - "Õ": "O", - "Ö": "O", - "Ø": "O", - "ò": "o", - "ó": "o", - "ô": "o", - "õ": "o", - "ö": "o", - "ø": "o", - "Ù": "U", - "Ú": "U", - "Û": "U", - "Ü": "U", - "ù": "u", - "ú": "u", - "û": "u", - "ü": "u", - "Ý": "Y", - "ý": "y", - "ÿ": "y", - "Æ": "Ae", - "æ": "ae", - "Þ": "Th", - "þ": "th", - "ß": "ss", - "Ā": "A", - "Ă": "A", - "Ą": "A", - "ā": "a", - "ă": "a", - "ą": "a", - "Ć": "C", - "Ĉ": "C", - "Ċ": "C", - "Č": "C", - "ć": "c", - "ĉ": "c", - "ċ": "c", - "č": "c", - "Ď": "D", - "Đ": "D", - "ď": "d", - "đ": "d", - "Ē": "E", - "Ĕ": "E", - "Ė": "E", - "Ę": "E", - "Ě": "E", - "ē": "e", - "ĕ": "e", - "ė": "e", - "ę": "e", - "ě": "e", - "Ĝ": "G", - "Ğ": "G", - "Ġ": "G", - "Ģ": "G", - "ĝ": "g", - "ğ": "g", - "ġ": "g", - "ģ": "g", - "Ĥ": "H", - "Ħ": "H", - "ĥ": "h", - "ħ": "h", - "Ĩ": "I", - "Ī": "I", - "Ĭ": "I", - "Į": "I", - "İ": "I", - "ĩ": "i", - "ī": "i", - "ĭ": "i", - "į": "i", - "ı": "i", - "Ĵ": "J", - "ĵ": "j", - "Ķ": "K", - "ķ": "k", - "ĸ": "k", - "Ĺ": "L", - "Ļ": "L", - "Ľ": "L", - "Ŀ": "L", - "Ł": "L", - "ĺ": "l", - "ļ": "l", - "ľ": "l", - "ŀ": "l", - "ł": "l", - "Ń": "N", - "Ņ": "N", - "Ň": "N", - "Ŋ": "N", - "ń": "n", - "ņ": "n", - "ň": "n", - "ŋ": "n", - "Ō": "O", - "Ŏ": "O", - "Ő": "O", - "ō": "o", - "ŏ": "o", - "ő": "o", - "Ŕ": "R", - "Ŗ": "R", - "Ř": "R", - "ŕ": "r", - "ŗ": "r", - "ř": "r", - "Ś": "S", - "Ŝ": "S", - "Ş": "S", - "Š": "S", - "ś": "s", - "ŝ": "s", - "ş": "s", - "š": "s", - "Ţ": "T", - "Ť": "T", - "Ŧ": "T", - "ţ": "t", - "ť": "t", - "ŧ": "t", - "Ũ": "U", - "Ū": "U", - "Ŭ": "U", - "Ů": "U", - "Ű": "U", - "Ų": "U", - "ũ": "u", - "ū": "u", - "ŭ": "u", - "ů": "u", - "ű": "u", - "ų": "u", - "Ŵ": "W", - "ŵ": "w", - "Ŷ": "Y", - "ŷ": "y", - "Ÿ": "Y", - "Ź": "Z", - "Ż": "Z", - "Ž": "Z", - "ź": "z", - "ż": "z", - "ž": "z", - "IJ": "IJ", - "ij": "ij", - "Œ": "Oe", - "œ": "oe", - "ʼn": "'n", - "ſ": "ss" - }; - /** Detect free variable `global` from Node.js. */ - var freeGlobal = typeof global == "object" && global && global.Object === Object && global; - /** Detect free variable `self`. */ - var freeSelf = typeof self == "object" && self && self.Object === Object && self; - /** Used as a reference to the global object. */ - var root$1 = freeGlobal || freeSelf || Function("return this")(); - /** - * A specialized version of `_.reduce` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {*} [accumulator] The initial value. - * @param {boolean} [initAccum] Specify using the first element of `array` as - * the initial value. - * @returns {*} Returns the accumulated value. - */ - function arrayReduce(array, iteratee, accumulator, initAccum) { - var index = -1, length = array ? array.length : 0; - if (initAccum && length) accumulator = array[++index]; - while (++index < length) accumulator = iteratee(accumulator, array[index], index, array); - return accumulator; - } - /** - * Converts an ASCII `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. - */ - function asciiToArray(string$1) { - return string$1.split(""); - } - /** - * Splits an ASCII `string` into an array of its words. - * - * @private - * @param {string} The string to inspect. - * @returns {Array} Returns the words of `string`. - */ - function asciiWords(string$1) { - return string$1.match(reAsciiWord) || []; - } - /** - * The base implementation of `_.propertyOf` without support for deep paths. - * - * @private - * @param {Object} object The object to query. - * @returns {Function} Returns the new accessor function. - */ - function basePropertyOf(object$1) { - return function(key) { - return object$1 == null ? void 0 : object$1[key]; - }; - } - /** - * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A - * letters to basic Latin letters. - * - * @private - * @param {string} letter The matched letter to deburr. - * @returns {string} Returns the deburred letter. - */ - var deburrLetter = basePropertyOf(deburredLetters); - /** - * Checks if `string` contains Unicode symbols. - * - * @private - * @param {string} string The string to inspect. - * @returns {boolean} Returns `true` if a symbol is found, else `false`. - */ - function hasUnicode(string$1) { - return reHasUnicode.test(string$1); - } - /** - * Checks if `string` contains a word composed of Unicode symbols. - * - * @private - * @param {string} string The string to inspect. - * @returns {boolean} Returns `true` if a word is found, else `false`. - */ - function hasUnicodeWord(string$1) { - return reHasUnicodeWord.test(string$1); - } - /** - * Converts `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. - */ - function stringToArray(string$1) { - return hasUnicode(string$1) ? unicodeToArray(string$1) : asciiToArray(string$1); - } - /** - * Converts a Unicode `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. - */ - function unicodeToArray(string$1) { - return string$1.match(reUnicode) || []; - } - /** - * Splits a Unicode `string` into an array of its words. - * - * @private - * @param {string} The string to inspect. - * @returns {Array} Returns the words of `string`. - */ - function unicodeWords(string$1) { - return string$1.match(reUnicodeWord) || []; - } - /** Used for built-in method references. */ - var objectProto = Object.prototype; - /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ - var objectToString = objectProto.toString; - /** Built-in value references. */ - var Symbol$1 = root$1.Symbol; - /** Used to convert symbols to primitives and strings. */ - var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0; - /** - * The base implementation of `_.slice` without an iteratee call guard. - * - * @private - * @param {Array} array The array to slice. - * @param {number} [start=0] The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns the slice of `array`. - */ - function baseSlice(array, start, end) { - var index = -1, length = array.length; - if (start < 0) start = -start > length ? 0 : length + start; - end = end > length ? length : end; - if (end < 0) end += length; - length = start > end ? 0 : end - start >>> 0; - start >>>= 0; - var result = Array(length); - while (++index < length) result[index] = array[index + start]; - return result; - } - /** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ - function baseToString(value) { - if (typeof value == "string") return value; - if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : ""; - var result = value + ""; - return result == "0" && 1 / value == -INFINITY ? "-0" : result; - } - /** - * Casts `array` to a slice if it's needed. - * - * @private - * @param {Array} array The array to inspect. - * @param {number} start The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns the cast slice. - */ - function castSlice(array, start, end) { - var length = array.length; - end = end === void 0 ? length : end; - return !start && end >= length ? array : baseSlice(array, start, end); - } - /** - * Creates a function like `_.lowerFirst`. - * - * @private - * @param {string} methodName The name of the `String` case method to use. - * @returns {Function} Returns the new case function. - */ - function createCaseFirst(methodName) { - return function(string$1) { - string$1 = toString(string$1); - var strSymbols = hasUnicode(string$1) ? stringToArray(string$1) : void 0; - var chr = strSymbols ? strSymbols[0] : string$1.charAt(0); - var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string$1.slice(1); - return chr[methodName]() + trailing; - }; - } - /** - * Creates a function like `_.camelCase`. - * - * @private - * @param {Function} callback The function to combine each word. - * @returns {Function} Returns the new compounder function. - */ - function createCompounder(callback) { - return function(string$1) { - return arrayReduce(words(deburr(string$1).replace(reApos, "")), callback, ""); - }; - } - /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ - function isObjectLike(value) { - return !!value && typeof value == "object"; - } - /** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ - function isSymbol(value) { - return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag; - } - /** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {string} Returns the string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ - function toString(value) { - return value == null ? "" : baseToString(value); - } - /** - * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the camel cased string. - * @example - * - * _.camelCase('Foo Bar'); - * // => 'fooBar' - * - * _.camelCase('--foo-bar--'); - * // => 'fooBar' - * - * _.camelCase('__FOO_BAR__'); - * // => 'fooBar' - */ - var camelCase = createCompounder(function(result, word$1, index) { - word$1 = word$1.toLowerCase(); - return result + (index ? capitalize(word$1) : word$1); - }); - /** - * Converts the first character of `string` to upper case and the remaining - * to lower case. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to capitalize. - * @returns {string} Returns the capitalized string. - * @example - * - * _.capitalize('FRED'); - * // => 'Fred' - */ - function capitalize(string$1) { - return upperFirst(toString(string$1).toLowerCase()); - } - /** - * Deburrs `string` by converting - * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) - * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A) - * letters to basic Latin letters and removing - * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to deburr. - * @returns {string} Returns the deburred string. - * @example - * - * _.deburr('déjà vu'); - * // => 'deja vu' - */ - function deburr(string$1) { - string$1 = toString(string$1); - return string$1 && string$1.replace(reLatin, deburrLetter).replace(reComboMark, ""); - } - /** - * Converts the first character of `string` to upper case. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the converted string. - * @example - * - * _.upperFirst('fred'); - * // => 'Fred' - * - * _.upperFirst('FRED'); - * // => 'FRED' - */ - var upperFirst = createCaseFirst("toUpperCase"); - /** - * Splits `string` into an array of its words. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to inspect. - * @param {RegExp|string} [pattern] The pattern to match words. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Array} Returns the words of `string`. - * @example - * - * _.words('fred, barney, & pebbles'); - * // => ['fred', 'barney', 'pebbles'] - * - * _.words('fred, barney, & pebbles', /[^, ]+/g); - * // => ['fred', 'barney', '&', 'pebbles'] - */ - function words(string$1, pattern, guard) { - string$1 = toString(string$1); - pattern = guard ? void 0 : pattern; - if (pattern === void 0) return hasUnicodeWord(string$1) ? unicodeWords(string$1) : asciiWords(string$1); - return string$1.match(pattern) || []; - } - module.exports = camelCase; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/localsConvention.js -var require_localsConvention = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/localsConvention.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.makeLocalsConventionReducer = makeLocalsConventionReducer; - var _lodash = _interopRequireDefault$22(require_lodash()); - function _interopRequireDefault$22(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function dashesCamelCase(string$1) { - return string$1.replace(/-+(\w)/g, (_, firstLetter) => firstLetter.toUpperCase()); - } - function makeLocalsConventionReducer(localsConvention, inputFile) { - const isFunc = typeof localsConvention === "function"; - return (tokens$1, [className$1, value]) => { - if (isFunc) { - const convention = localsConvention(className$1, value, inputFile); - tokens$1[convention] = value; - return tokens$1; - } - switch (localsConvention) { - case "camelCase": - tokens$1[className$1] = value; - tokens$1[(0, _lodash.default)(className$1)] = value; - break; - case "camelCaseOnly": - tokens$1[(0, _lodash.default)(className$1)] = value; - break; - case "dashes": - tokens$1[className$1] = value; - tokens$1[dashesCamelCase(className$1)] = value; - break; - case "dashesOnly": - tokens$1[dashesCamelCase(className$1)] = value; - break; - } - return tokens$1; - }; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js -var require_FileSystemLoader = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = void 0; - var _postcss$1 = _interopRequireDefault$21(__require("postcss")); - var _path = _interopRequireDefault$21(__require("path")); - var _Parser$1 = _interopRequireDefault$21(require_Parser()); - var _fs$1 = require_fs(); - function _interopRequireDefault$21(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Core = class Core { - constructor(plugins) { - this.plugins = plugins || Core.defaultPlugins; - } - async load(sourceString, sourcePath, trace, pathFetcher) { - const parser$1 = new _Parser$1.default(pathFetcher, trace); - const plugins = this.plugins.concat([parser$1.plugin()]); - const result = await (0, _postcss$1.default)(plugins).process(sourceString, { from: sourcePath }); - return { - injectableSource: result.css, - exportTokens: parser$1.exportTokens - }; - } - }; - const traceKeySorter = (a, b) => { - if (a.length < b.length) return a < b.substring(0, a.length) ? -1 : 1; - if (a.length > b.length) return a.substring(0, b.length) <= b ? -1 : 1; - return a < b ? -1 : 1; - }; - var FileSystemLoader = class { - constructor(root$2, plugins, fileResolve) { - if (root$2 === "/" && process.platform === "win32") { - const cwdDrive = process.cwd().slice(0, 3); - if (!/^[A-Za-z]:\\$/.test(cwdDrive)) throw new Error(`Failed to obtain root from "${process.cwd()}".`); - root$2 = cwdDrive; - } - this.root = root$2; - this.fileResolve = fileResolve; - this.sources = {}; - this.traces = {}; - this.importNr = 0; - this.core = new Core(plugins); - this.tokensByFile = {}; - this.fs = (0, _fs$1.getFileSystem)(); - } - async fetch(_newPath, relativeTo, _trace) { - const newPath = _newPath.replace(/^["']|["']$/g, ""); - const trace = _trace || String.fromCharCode(this.importNr++); - const useFileResolve = typeof this.fileResolve === "function"; - const fileResolvedPath = useFileResolve ? await this.fileResolve(newPath, relativeTo) : await Promise.resolve(); - if (fileResolvedPath && !_path.default.isAbsolute(fileResolvedPath)) throw new Error("The returned path from the \"fileResolve\" option must be absolute."); - const relativeDir = _path.default.dirname(relativeTo); - const rootRelativePath = fileResolvedPath || _path.default.resolve(relativeDir, newPath); - let fileRelativePath = fileResolvedPath || _path.default.resolve(_path.default.resolve(this.root, relativeDir), newPath); - if (!useFileResolve && newPath[0] !== "." && !_path.default.isAbsolute(newPath)) try { - fileRelativePath = __require.resolve(newPath); - } catch (e) {} - const tokens$1 = this.tokensByFile[fileRelativePath]; - if (tokens$1) return tokens$1; - return new Promise((resolve, reject) => { - this.fs.readFile(fileRelativePath, "utf-8", async (err, source) => { - if (err) reject(err); - const { injectableSource, exportTokens } = await this.core.load(source, rootRelativePath, trace, this.fetch.bind(this)); - this.sources[fileRelativePath] = injectableSource; - this.traces[trace] = fileRelativePath; - this.tokensByFile[fileRelativePath] = exportTokens; - resolve(exportTokens); - }); - }); - } - get finalSource() { - const traces = this.traces; - const sources = this.sources; - let written = /* @__PURE__ */ new Set(); - return Object.keys(traces).sort(traceKeySorter).map((key) => { - const filename = traces[key]; - if (written.has(filename)) return null; - written.add(filename); - return sources[filename]; - }).join(""); - } - }; - exports.default = FileSystemLoader; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/topologicalSort.js -var require_topologicalSort = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/topologicalSort.js": ((exports, module) => { - const PERMANENT_MARKER = 2; - const TEMPORARY_MARKER = 1; - function createError(node, graph) { - const er = /* @__PURE__ */ new Error("Nondeterministic import's order"); - const related = graph[node]; - const relatedNode = related.find((relatedNode$1) => graph[relatedNode$1].indexOf(node) > -1); - er.nodes = [node, relatedNode]; - return er; - } - function walkGraph(node, graph, state, result, strict) { - if (state[node] === PERMANENT_MARKER) return; - if (state[node] === TEMPORARY_MARKER) { - if (strict) return createError(node, graph); - return; - } - state[node] = TEMPORARY_MARKER; - const children = graph[node]; - const length = children.length; - for (let i$1 = 0; i$1 < length; ++i$1) { - const error = walkGraph(children[i$1], graph, state, result, strict); - if (error instanceof Error) return error; - } - state[node] = PERMANENT_MARKER; - result.push(node); - } - function topologicalSort$1(graph, strict) { - const result = []; - const state = {}; - const nodes = Object.keys(graph); - const length = nodes.length; - for (let i$1 = 0; i$1 < length; ++i$1) { - const er = walkGraph(nodes[i$1], graph, state, result, strict); - if (er instanceof Error) return er; - } - return result; - } - module.exports = topologicalSort$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/index.js -var require_src$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/index.js": ((exports, module) => { - const topologicalSort = require_topologicalSort(); - const matchImports$1 = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/; - const icssImport = /^:import\((?:"([^"]+)"|'([^']+)')\)/; - const VISITED_MARKER = 1; - /** - * :import('G') {} - * - * Rule - * composes: ... from 'A' - * composes: ... from 'B' - - * Rule - * composes: ... from 'A' - * composes: ... from 'A' - * composes: ... from 'C' - * - * Results in: - * - * graph: { - * G: [], - * A: [], - * B: ['A'], - * C: ['A'], - * } - */ - function addImportToGraph(importId, parentId, graph, visited) { - const siblingsId = parentId + "_siblings"; - const visitedId = parentId + "_" + importId; - if (visited[visitedId] !== VISITED_MARKER) { - if (!Array.isArray(visited[siblingsId])) visited[siblingsId] = []; - const siblings = visited[siblingsId]; - if (Array.isArray(graph[importId])) graph[importId] = graph[importId].concat(siblings); - else graph[importId] = siblings.slice(); - visited[visitedId] = VISITED_MARKER; - siblings.push(importId); - } - } - module.exports = (options = {}) => { - let importIndex = 0; - const createImportedName = typeof options.createImportedName !== "function" ? (importName) => `i__imported_${importName.replace(/\W/g, "_")}_${importIndex++}` : options.createImportedName; - const failOnWrongOrder = options.failOnWrongOrder; - return { - postcssPlugin: "postcss-modules-extract-imports", - prepare() { - const graph = {}; - const visited = {}; - const existingImports = {}; - const importDecls = {}; - const imports = {}; - return { Once(root$2, postcss) { - root$2.walkRules((rule) => { - const matches = icssImport.exec(rule.selector); - if (matches) { - const [, doubleQuotePath, singleQuotePath] = matches; - const importPath = doubleQuotePath || singleQuotePath; - addImportToGraph(importPath, "root", graph, visited); - existingImports[importPath] = rule; - } - }); - root$2.walkDecls(/^composes$/, (declaration) => { - const multiple = declaration.value.split(","); - const values = []; - multiple.forEach((value) => { - const matches = value.trim().match(matchImports$1); - if (!matches) { - values.push(value); - return; - } - let tmpSymbols; - let [, symbols, doubleQuotePath, singleQuotePath, global$1] = matches; - if (global$1) tmpSymbols = symbols.split(/\s+/).map((s) => `global(${s})`); - else { - const importPath = doubleQuotePath || singleQuotePath; - let parent = declaration.parent; - let parentIndexes = ""; - while (parent.type !== "root") { - parentIndexes = parent.parent.index(parent) + "_" + parentIndexes; - parent = parent.parent; - } - const { selector: selector$1 } = declaration.parent; - const parentRule = `_${parentIndexes}${selector$1}`; - addImportToGraph(importPath, parentRule, graph, visited); - importDecls[importPath] = declaration; - imports[importPath] = imports[importPath] || {}; - tmpSymbols = symbols.split(/\s+/).map((s) => { - if (!imports[importPath][s]) imports[importPath][s] = createImportedName(s, importPath); - return imports[importPath][s]; - }); - } - values.push(tmpSymbols.join(" ")); - }); - declaration.value = values.join(", "); - }); - const importsOrder = topologicalSort(graph, failOnWrongOrder); - if (importsOrder instanceof Error) { - const importPath = importsOrder.nodes.find((importPath$1) => importDecls.hasOwnProperty(importPath$1)); - const decl = importDecls[importPath]; - throw decl.error("Failed to resolve order of composed modules " + importsOrder.nodes.map((importPath$1) => "`" + importPath$1 + "`").join(", ") + ".", { - plugin: "postcss-modules-extract-imports", - word: "composes" - }); - } - let lastImportRule; - importsOrder.forEach((path$2) => { - const importedSymbols = imports[path$2]; - let rule = existingImports[path$2]; - if (!rule && importedSymbols) { - rule = postcss.rule({ - selector: `:import("${path$2}")`, - raws: { after: "\n" } - }); - if (lastImportRule) root$2.insertAfter(lastImportRule, rule); - else root$2.prepend(rule); - } - lastImportRule = rule; - if (!importedSymbols) return; - Object.keys(importedSymbols).forEach((importedSymbol) => { - rule.append(postcss.decl({ - value: importedSymbol, - prop: importedSymbols[importedSymbol], - raws: { before: "\n " } - })); - }); - }); - } }; - } - }; - }; - module.exports.postcss = true; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/wasm-hash.js -var require_wasm_hash = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/wasm-hash.js": ((exports, module) => { - const MAX_SHORT_STRING$1 = Math.floor(65472 / 4) & -4; - var WasmHash = class { - /** - * @param {WebAssembly.Instance} instance wasm instance - * @param {WebAssembly.Instance[]} instancesPool pool of instances - * @param {number} chunkSize size of data chunks passed to wasm - * @param {number} digestSize size of digest returned by wasm - */ - constructor(instance, instancesPool, chunkSize, digestSize) { - const exports$1 = instance.exports; - exports$1.init(); - this.exports = exports$1; - this.mem = Buffer.from(exports$1.memory.buffer, 0, 65536); - this.buffered = 0; - this.instancesPool = instancesPool; - this.chunkSize = chunkSize; - this.digestSize = digestSize; - } - reset() { - this.buffered = 0; - this.exports.init(); - } - /** - * @param {Buffer | string} data data - * @param {BufferEncoding=} encoding encoding - * @returns {this} itself - */ - update(data, encoding) { - if (typeof data === "string") { - while (data.length > MAX_SHORT_STRING$1) { - this._updateWithShortString(data.slice(0, MAX_SHORT_STRING$1), encoding); - data = data.slice(MAX_SHORT_STRING$1); - } - this._updateWithShortString(data, encoding); - return this; - } - this._updateWithBuffer(data); - return this; - } - /** - * @param {string} data data - * @param {BufferEncoding=} encoding encoding - * @returns {void} - */ - _updateWithShortString(data, encoding) { - const { exports: exports$1, buffered, mem, chunkSize } = this; - let endPos; - if (data.length < 70) if (!encoding || encoding === "utf-8" || encoding === "utf8") { - endPos = buffered; - for (let i$1 = 0; i$1 < data.length; i$1++) { - const cc = data.charCodeAt(i$1); - if (cc < 128) mem[endPos++] = cc; - else if (cc < 2048) { - mem[endPos] = cc >> 6 | 192; - mem[endPos + 1] = cc & 63 | 128; - endPos += 2; - } else { - endPos += mem.write(data.slice(i$1), endPos, encoding); - break; - } - } - } else if (encoding === "latin1") { - endPos = buffered; - for (let i$1 = 0; i$1 < data.length; i$1++) { - const cc = data.charCodeAt(i$1); - mem[endPos++] = cc; - } - } else endPos = buffered + mem.write(data, buffered, encoding); - else endPos = buffered + mem.write(data, buffered, encoding); - if (endPos < chunkSize) this.buffered = endPos; - else { - const l = endPos & ~(this.chunkSize - 1); - exports$1.update(l); - const newBuffered = endPos - l; - this.buffered = newBuffered; - if (newBuffered > 0) mem.copyWithin(0, l, endPos); - } - } - /** - * @param {Buffer} data data - * @returns {void} - */ - _updateWithBuffer(data) { - const { exports: exports$1, buffered, mem } = this; - const length = data.length; - if (buffered + length < this.chunkSize) { - data.copy(mem, buffered, 0, length); - this.buffered += length; - } else { - const l = buffered + length & ~(this.chunkSize - 1); - if (l > 65536) { - let i$1 = 65536 - buffered; - data.copy(mem, buffered, 0, i$1); - exports$1.update(65536); - const stop = l - buffered - 65536; - while (i$1 < stop) { - data.copy(mem, 0, i$1, i$1 + 65536); - exports$1.update(65536); - i$1 += 65536; - } - data.copy(mem, 0, i$1, l - buffered); - exports$1.update(l - buffered - i$1); - } else { - data.copy(mem, buffered, 0, l - buffered); - exports$1.update(l); - } - const newBuffered = length + buffered - l; - this.buffered = newBuffered; - if (newBuffered > 0) data.copy(mem, 0, length - newBuffered, length); - } - } - digest(type) { - const { exports: exports$1, buffered, mem, digestSize } = this; - exports$1.final(buffered); - this.instancesPool.push(this); - const hex$1 = mem.toString("latin1", 0, digestSize); - if (type === "hex") return hex$1; - if (type === "binary" || !type) return Buffer.from(hex$1, "hex"); - return Buffer.from(hex$1, "hex").toString(type); - } - }; - const create$2 = (wasmModule, instancesPool, chunkSize, digestSize) => { - if (instancesPool.length > 0) { - const old = instancesPool.pop(); - old.reset(); - return old; - } else return new WasmHash(new WebAssembly.Instance(wasmModule), instancesPool, chunkSize, digestSize); - }; - module.exports = create$2; - module.exports.MAX_SHORT_STRING = MAX_SHORT_STRING$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/xxhash64.js -var require_xxhash64 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/xxhash64.js": ((exports, module) => { - const create$1 = require_wasm_hash(); - const xxhash64 = new WebAssembly.Module(Buffer.from("AGFzbQEAAAABCAJgAX8AYAAAAwQDAQAABQMBAAEGGgV+AUIAC34BQgALfgFCAAt+AUIAC34BQgALByIEBGluaXQAAAZ1cGRhdGUAAQVmaW5hbAACBm1lbW9yeQIACrUIAzAAQtbrgu7q/Yn14AAkAELP1tO+0ser2UIkAUIAJAJC+erQ0OfJoeThACQDQgAkBAvUAQIBfwR+IABFBEAPCyMEIACtfCQEIwAhAiMBIQMjAiEEIwMhBQNAIAIgASkDAELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiECIAMgASkDCELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEDIAQgASkDEELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEEIAUgASkDGELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEFIAAgAUEgaiIBSw0ACyACJAAgAyQBIAQkAiAFJAMLqwYCAX8EfiMEQgBSBH4jACICQgGJIwEiA0IHiXwjAiIEQgyJfCMDIgVCEol8IAJCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0gA0LP1tO+0ser2UJ+Qh+JQoeVr6+Ytt6bnn9+hUKHla+vmLbem55/fkKdo7Xqg7GNivoAfSAEQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IAVCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0FQsXP2bLx5brqJwsjBCAArXx8IQIDQCABQQhqIABNBEAgAiABKQMAQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQhuJQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IQIgAUEIaiEBDAELCyABQQRqIABNBEACfyACIAE1AgBCh5Wvr5i23puef36FQheJQs/W077Sx6vZQn5C+fPd8Zn2masWfCECIAFBBGoLIQELA0AgACABRwRAIAIgATEAAELFz9my8eW66id+hUILiUKHla+vmLbem55/fiECIAFBAWohAQwBCwtBACACIAJCIYiFQs/W077Sx6vZQn4iAiACQh2IhUL5893xmfaZqxZ+IgIgAkIgiIUiAkIgiCIDQv//A4NCIIYgA0KAgPz/D4NCEIiEIgNC/4GAgPAfg0IQhiADQoD+g4CA4D+DQgiIhCIDQo+AvIDwgcAHg0IIhiADQvCBwIeAnoD4AINCBIiEIgNChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IANCsODAgYOGjJgwhHw3AwBBCCACQv////8PgyICQv//A4NCIIYgAkKAgPz/D4NCEIiEIgJC/4GAgPAfg0IQhiACQoD+g4CA4D+DQgiIhCICQo+AvIDwgcAHg0IIhiACQvCBwIeAnoD4AINCBIiEIgJChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IAJCsODAgYOGjJgwhHw3AwAL", "base64")); - module.exports = create$1.bind(null, xxhash64, [], 32, 16); -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BatchedHash.js -var require_BatchedHash = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BatchedHash.js": ((exports, module) => { - const MAX_SHORT_STRING = require_wasm_hash().MAX_SHORT_STRING; - var BatchedHash$1 = class { - constructor(hash$1) { - this.string = void 0; - this.encoding = void 0; - this.hash = hash$1; - } - /** - * Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding} - * @param {string|Buffer} data data - * @param {string=} inputEncoding data encoding - * @returns {this} updated hash - */ - update(data, inputEncoding) { - if (this.string !== void 0) { - if (typeof data === "string" && inputEncoding === this.encoding && this.string.length + data.length < MAX_SHORT_STRING) { - this.string += data; - return this; - } - this.hash.update(this.string, this.encoding); - this.string = void 0; - } - if (typeof data === "string") if (data.length < MAX_SHORT_STRING && (!inputEncoding || !inputEncoding.startsWith("ba"))) { - this.string = data; - this.encoding = inputEncoding; - } else this.hash.update(data, inputEncoding); - else this.hash.update(data); - return this; - } - /** - * Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding} - * @param {string=} encoding encoding of the return value - * @returns {string|Buffer} digest - */ - digest(encoding) { - if (this.string !== void 0) this.hash.update(this.string, this.encoding); - return this.hash.digest(encoding); - } - }; - module.exports = BatchedHash$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/md4.js -var require_md4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/md4.js": ((exports, module) => { - const create = require_wasm_hash(); - const md4 = new WebAssembly.Module(Buffer.from("AGFzbQEAAAABCAJgAX8AYAAAAwUEAQAAAAUDAQABBhoFfwFBAAt/AUEAC38BQQALfwFBAAt/AUEACwciBARpbml0AAAGdXBkYXRlAAIFZmluYWwAAwZtZW1vcnkCAAqFEAQmAEGBxpS6BiQBQYnXtv5+JAJB/rnrxXkkA0H2qMmBASQEQQAkAAvMCgEYfyMBIQojAiEGIwMhByMEIQgDQCAAIAVLBEAgBSgCCCINIAcgBiAFKAIEIgsgCCAHIAUoAgAiDCAKIAggBiAHIAhzcXNqakEDdyIDIAYgB3Nxc2pqQQd3IgEgAyAGc3FzampBC3chAiAFKAIUIg8gASACIAUoAhAiCSADIAEgBSgCDCIOIAYgAyACIAEgA3Nxc2pqQRN3IgQgASACc3FzampBA3ciAyACIARzcXNqakEHdyEBIAUoAiAiEiADIAEgBSgCHCIRIAQgAyAFKAIYIhAgAiAEIAEgAyAEc3FzampBC3ciAiABIANzcXNqakETdyIEIAEgAnNxc2pqQQN3IQMgBSgCLCIVIAQgAyAFKAIoIhQgAiAEIAUoAiQiEyABIAIgAyACIARzcXNqakEHdyIBIAMgBHNxc2pqQQt3IgIgASADc3FzampBE3chBCAPIBAgCSAVIBQgEyAFKAI4IhYgAiAEIAUoAjQiFyABIAIgBSgCMCIYIAMgASAEIAEgAnNxc2pqQQN3IgEgAiAEc3FzampBB3ciAiABIARzcXNqakELdyIDIAkgAiAMIAEgBSgCPCIJIAQgASADIAEgAnNxc2pqQRN3IgEgAiADcnEgAiADcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAEgAnFyaiASakGZ84nUBWpBCXciAyAPIAQgCyACIBggASADIAIgBHJxIAIgBHFyampBmfOJ1AVqQQ13IgEgAyAEcnEgAyAEcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAEgAnFyampBmfOJ1AVqQQl3IgMgECAEIAIgFyABIAMgAiAEcnEgAiAEcXJqakGZ84nUBWpBDXciASADIARycSADIARxcmogDWpBmfOJ1AVqQQN3IgIgASADcnEgASADcXJqakGZ84nUBWpBBXciBCABIAJycSABIAJxcmpqQZnzidQFakEJdyIDIBEgBCAOIAIgFiABIAMgAiAEcnEgAiAEcXJqakGZ84nUBWpBDXciASADIARycSADIARxcmpqQZnzidQFakEDdyICIAEgA3JxIAEgA3FyampBmfOJ1AVqQQV3IgQgASACcnEgASACcXJqakGZ84nUBWpBCXciAyAMIAIgAyAJIAEgAyACIARycSACIARxcmpqQZnzidQFakENdyIBcyAEc2pqQaHX5/YGakEDdyICIAQgASACcyADc2ogEmpBodfn9gZqQQl3IgRzIAFzampBodfn9gZqQQt3IgMgAiADIBggASADIARzIAJzampBodfn9gZqQQ93IgFzIARzaiANakGh1+f2BmpBA3ciAiAUIAQgASACcyADc2pqQaHX5/YGakEJdyIEcyABc2pqQaHX5/YGakELdyIDIAsgAiADIBYgASADIARzIAJzampBodfn9gZqQQ93IgFzIARzampBodfn9gZqQQN3IgIgEyAEIAEgAnMgA3NqakGh1+f2BmpBCXciBHMgAXNqakGh1+f2BmpBC3chAyAKIA4gAiADIBcgASADIARzIAJzampBodfn9gZqQQ93IgFzIARzampBodfn9gZqQQN3IgJqIQogBiAJIAEgESADIAIgFSAEIAEgAnMgA3NqakGh1+f2BmpBCXciBHMgAXNqakGh1+f2BmpBC3ciAyAEcyACc2pqQaHX5/YGakEPd2ohBiADIAdqIQcgBCAIaiEIIAVBQGshBQwBCwsgCiQBIAYkAiAHJAMgCCQECw0AIAAQASMAIABqJAAL/wQCA38BfiMAIABqrUIDhiEEIABByABqQUBxIgJBCGshAyAAIgFBAWohACABQYABOgAAA0AgACACSUEAIABBB3EbBEAgAEEAOgAAIABBAWohAAwBCwsDQCAAIAJJBEAgAEIANwMAIABBCGohAAwBCwsgAyAENwMAIAIQAUEAIwGtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEIIwKtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEQIwOtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEYIwStIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAAs=", "base64")); - module.exports = create.bind(null, md4, [], 64, 32); -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BulkUpdateDecorator.js -var require_BulkUpdateDecorator = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BulkUpdateDecorator.js": ((exports, module) => { - const BULK_SIZE = 2e3; - const digestCaches = {}; - var BulkUpdateDecorator$1 = class { - /** - * @param {Hash | function(): Hash} hashOrFactory function to create a hash - * @param {string=} hashKey key for caching - */ - constructor(hashOrFactory, hashKey) { - this.hashKey = hashKey; - if (typeof hashOrFactory === "function") { - this.hashFactory = hashOrFactory; - this.hash = void 0; - } else { - this.hashFactory = void 0; - this.hash = hashOrFactory; - } - this.buffer = ""; - } - /** - * Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding} - * @param {string|Buffer} data data - * @param {string=} inputEncoding data encoding - * @returns {this} updated hash - */ - update(data, inputEncoding) { - if (inputEncoding !== void 0 || typeof data !== "string" || data.length > BULK_SIZE) { - if (this.hash === void 0) this.hash = this.hashFactory(); - if (this.buffer.length > 0) { - this.hash.update(this.buffer); - this.buffer = ""; - } - this.hash.update(data, inputEncoding); - } else { - this.buffer += data; - if (this.buffer.length > BULK_SIZE) { - if (this.hash === void 0) this.hash = this.hashFactory(); - this.hash.update(this.buffer); - this.buffer = ""; - } - } - return this; - } - /** - * Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding} - * @param {string=} encoding encoding of the return value - * @returns {string|Buffer} digest - */ - digest(encoding) { - let digestCache; - const buffer = this.buffer; - if (this.hash === void 0) { - const cacheKey = `${this.hashKey}-${encoding}`; - digestCache = digestCaches[cacheKey]; - if (digestCache === void 0) digestCache = digestCaches[cacheKey] = /* @__PURE__ */ new Map(); - const cacheEntry = digestCache.get(buffer); - if (cacheEntry !== void 0) return cacheEntry; - this.hash = this.hashFactory(); - } - if (buffer.length > 0) this.hash.update(buffer); - const digestResult = this.hash.digest(encoding); - if (digestCache !== void 0) digestCache.set(buffer, digestResult); - return digestResult; - } - }; - module.exports = BulkUpdateDecorator$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/getHashDigest.js -var require_getHashDigest = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/getHashDigest.js": ((exports, module) => { - const baseEncodeTables = { - 26: "abcdefghijklmnopqrstuvwxyz", - 32: "123456789abcdefghjkmnpqrstuvwxyz", - 36: "0123456789abcdefghijklmnopqrstuvwxyz", - 49: "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ", - 52: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", - 58: "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ", - 62: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", - 64: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_" - }; - /** - * @param {Uint32Array} uint32Array Treated as a long base-0x100000000 number, little endian - * @param {number} divisor The divisor - * @return {number} Modulo (remainder) of the division - */ - function divmod32(uint32Array, divisor) { - let carry = 0; - for (let i$1 = uint32Array.length - 1; i$1 >= 0; i$1--) { - const value = carry * 4294967296 + uint32Array[i$1]; - carry = value % divisor; - uint32Array[i$1] = Math.floor(value / divisor); - } - return carry; - } - function encodeBufferToBase(buffer, base, length) { - const encodeTable = baseEncodeTables[base]; - if (!encodeTable) throw new Error("Unknown encoding base" + base); - const limit = Math.ceil(buffer.length * 8 / Math.log2(base)); - length = Math.min(length, limit); - const uint32Array = new Uint32Array(Math.ceil(buffer.length / 4)); - buffer.copy(Buffer.from(uint32Array.buffer)); - let output = ""; - for (let i$1 = 0; i$1 < length; i$1++) output = encodeTable[divmod32(uint32Array, base)] + output; - return output; - } - let crypto = void 0; - let createXXHash64 = void 0; - let createMd4 = void 0; - let BatchedHash = void 0; - let BulkUpdateDecorator = void 0; - function getHashDigest$1(buffer, algorithm, digestType, maxLength) { - algorithm = algorithm || "xxhash64"; - maxLength = maxLength || 9999; - let hash$1; - if (algorithm === "xxhash64") { - if (createXXHash64 === void 0) { - createXXHash64 = require_xxhash64(); - if (BatchedHash === void 0) BatchedHash = require_BatchedHash(); - } - hash$1 = new BatchedHash(createXXHash64()); - } else if (algorithm === "md4") { - if (createMd4 === void 0) { - createMd4 = require_md4(); - if (BatchedHash === void 0) BatchedHash = require_BatchedHash(); - } - hash$1 = new BatchedHash(createMd4()); - } else if (algorithm === "native-md4") { - if (typeof crypto === "undefined") { - crypto = __require("crypto"); - if (BulkUpdateDecorator === void 0) BulkUpdateDecorator = require_BulkUpdateDecorator(); - } - hash$1 = new BulkUpdateDecorator(() => crypto.createHash("md4"), "md4"); - } else { - if (typeof crypto === "undefined") { - crypto = __require("crypto"); - if (BulkUpdateDecorator === void 0) BulkUpdateDecorator = require_BulkUpdateDecorator(); - } - hash$1 = new BulkUpdateDecorator(() => crypto.createHash(algorithm), algorithm); - } - hash$1.update(buffer); - if (digestType === "base26" || digestType === "base32" || digestType === "base36" || digestType === "base49" || digestType === "base52" || digestType === "base58" || digestType === "base62" || digestType === "base64safe") return encodeBufferToBase(hash$1.digest(), digestType === "base64safe" ? 64 : digestType.substr(4), maxLength); - return hash$1.digest(digestType || "hex").substr(0, maxLength); - } - module.exports = getHashDigest$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/interpolateName.js -var require_interpolateName = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/interpolateName.js": ((exports, module) => { - const path$1 = __require("path"); - const getHashDigest = require_getHashDigest(); - function interpolateName$1(loaderContext, name, options = {}) { - let filename; - const hasQuery = loaderContext.resourceQuery && loaderContext.resourceQuery.length > 1; - if (typeof name === "function") filename = name(loaderContext.resourcePath, hasQuery ? loaderContext.resourceQuery : void 0); - else filename = name || "[hash].[ext]"; - const context = options.context; - const content = options.content; - const regExp = options.regExp; - let ext = "bin"; - let basename = "file"; - let directory = ""; - let folder = ""; - let query = ""; - if (loaderContext.resourcePath) { - const parsed = path$1.parse(loaderContext.resourcePath); - let resourcePath = loaderContext.resourcePath; - if (parsed.ext) ext = parsed.ext.substr(1); - if (parsed.dir) { - basename = parsed.name; - resourcePath = parsed.dir + path$1.sep; - } - if (typeof context !== "undefined") { - directory = path$1.relative(context, resourcePath + "_").replace(/\\/g, "/").replace(/\.\.(\/)?/g, "_$1"); - directory = directory.substr(0, directory.length - 1); - } else directory = resourcePath.replace(/\\/g, "/").replace(/\.\.(\/)?/g, "_$1"); - if (directory.length <= 1) directory = ""; - else folder = path$1.basename(directory); - } - if (loaderContext.resourceQuery && loaderContext.resourceQuery.length > 1) { - query = loaderContext.resourceQuery; - const hashIdx = query.indexOf("#"); - if (hashIdx >= 0) query = query.substr(0, hashIdx); - } - let url = filename; - if (content) url = url.replace(/\[(?:([^[:\]]+):)?(?:hash|contenthash)(?::([a-z]+\d*(?:safe)?))?(?::(\d+))?\]/gi, (all, hashType, digestType, maxLength) => getHashDigest(content, hashType, digestType, parseInt(maxLength, 10))); - url = url.replace(/\[ext\]/gi, () => ext).replace(/\[name\]/gi, () => basename).replace(/\[path\]/gi, () => directory).replace(/\[folder\]/gi, () => folder).replace(/\[query\]/gi, () => query); - if (regExp && loaderContext.resourcePath) { - const match = loaderContext.resourcePath.match(new RegExp(regExp)); - match && match.forEach((matched, i$1) => { - url = url.replace(new RegExp("\\[" + i$1 + "\\]", "ig"), matched); - }); - } - if (typeof loaderContext.options === "object" && typeof loaderContext.options.customInterpolateName === "function") url = loaderContext.options.customInterpolateName.call(loaderContext, url, name, options); - return url; - } - module.exports = interpolateName$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/generic-names@4.0.0/node_modules/generic-names/index.js -var require_generic_names = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/generic-names@4.0.0/node_modules/generic-names/index.js": ((exports, module) => { - var interpolateName = require_interpolateName(); - var path = __require("path"); - /** - * @param {string} pattern - * @param {object} options - * @param {string} options.context - * @param {string} options.hashPrefix - * @return {function} - */ - module.exports = function createGenerator(pattern, options) { - options = options || {}; - var context = options && typeof options.context === "string" ? options.context : process.cwd(); - var hashPrefix = options && typeof options.hashPrefix === "string" ? options.hashPrefix : ""; - /** - * @param {string} localName Usually a class name - * @param {string} filepath Absolute path - * @return {string} - */ - return function generate(localName, filepath) { - var name = pattern.replace(/\[local\]/gi, localName); - var loaderContext = { resourcePath: filepath }; - var loaderOptions = { - content: hashPrefix + path.relative(context, filepath).replace(/\\/g, "/") + "\0" + localName, - context - }; - var genericName = interpolateName(loaderContext, name, loaderOptions); - return genericName.replace(new RegExp("[^a-zA-Z0-9\\-_\xA0-￿]", "g"), "-").replace(/^((-?[0-9])|--)/, "_$1"); - }; - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/unesc.js -var require_unesc = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/unesc.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = unesc; - /** - * - * @param {string} str - * @returns {[string, number]|undefined} - */ - function gobbleHex(str$1) { - var lower = str$1.toLowerCase(); - var hex$1 = ""; - var spaceTerminated = false; - for (var i$1 = 0; i$1 < 6 && lower[i$1] !== void 0; i$1++) { - var code = lower.charCodeAt(i$1); - var valid = code >= 97 && code <= 102 || code >= 48 && code <= 57; - spaceTerminated = code === 32; - if (!valid) break; - hex$1 += lower[i$1]; - } - if (hex$1.length === 0) return void 0; - var codePoint = parseInt(hex$1, 16); - var isSurrogate = codePoint >= 55296 && codePoint <= 57343; - if (isSurrogate || codePoint === 0 || codePoint > 1114111) return ["�", hex$1.length + (spaceTerminated ? 1 : 0)]; - return [String.fromCodePoint(codePoint), hex$1.length + (spaceTerminated ? 1 : 0)]; - } - var CONTAINS_ESCAPE = /\\/; - function unesc(str$1) { - var needToProcess = CONTAINS_ESCAPE.test(str$1); - if (!needToProcess) return str$1; - var ret = ""; - for (var i$1 = 0; i$1 < str$1.length; i$1++) { - if (str$1[i$1] === "\\") { - var gobbled = gobbleHex(str$1.slice(i$1 + 1, i$1 + 7)); - if (gobbled !== void 0) { - ret += gobbled[0]; - i$1 += gobbled[1]; - continue; - } - if (str$1[i$1 + 1] === "\\") { - ret += "\\"; - i$1++; - continue; - } - if (str$1.length === i$1 + 1) ret += str$1[i$1]; - continue; - } - ret += str$1[i$1]; - } - return ret; - } - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/getProp.js -var require_getProp = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/getProp.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = getProp; - function getProp(obj) { - for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) props[_key - 1] = arguments[_key]; - while (props.length > 0) { - var prop = props.shift(); - if (!obj[prop]) return void 0; - obj = obj[prop]; - } - return obj; - } - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/ensureObject.js -var require_ensureObject = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/ensureObject.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = ensureObject; - function ensureObject(obj) { - for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) props[_key - 1] = arguments[_key]; - while (props.length > 0) { - var prop = props.shift(); - if (!obj[prop]) obj[prop] = {}; - obj = obj[prop]; - } - } - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/stripComments.js -var require_stripComments = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/stripComments.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = stripComments; - function stripComments(str$1) { - var s = ""; - var commentStart = str$1.indexOf("/*"); - var lastEnd = 0; - while (commentStart >= 0) { - s = s + str$1.slice(lastEnd, commentStart); - var commentEnd = str$1.indexOf("*/", commentStart + 2); - if (commentEnd < 0) return s; - lastEnd = commentEnd + 2; - commentStart = str$1.indexOf("/*", lastEnd); - } - s = s + str$1.slice(lastEnd); - return s; - } - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/index.js -var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/index.js": ((exports) => { - exports.__esModule = true; - exports.unesc = exports.stripComments = exports.getProp = exports.ensureObject = void 0; - var _unesc$1 = _interopRequireDefault$20(require_unesc()); - exports.unesc = _unesc$1["default"]; - var _getProp = _interopRequireDefault$20(require_getProp()); - exports.getProp = _getProp["default"]; - var _ensureObject = _interopRequireDefault$20(require_ensureObject()); - exports.ensureObject = _ensureObject["default"]; - var _stripComments = _interopRequireDefault$20(require_stripComments()); - exports.stripComments = _stripComments["default"]; - function _interopRequireDefault$20(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/node.js -var require_node$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/node.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _util$3 = require_util(); - function _defineProperties$6(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass$6(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties$6(Constructor.prototype, protoProps); - if (staticProps) _defineProperties$6(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - var cloneNode = function cloneNode$1(obj, parent) { - if (typeof obj !== "object" || obj === null) return obj; - var cloned = new obj.constructor(); - for (var i$1 in obj) { - if (!obj.hasOwnProperty(i$1)) continue; - var value = obj[i$1]; - var type = typeof value; - if (i$1 === "parent" && type === "object") { - if (parent) cloned[i$1] = parent; - } else if (value instanceof Array) cloned[i$1] = value.map(function(j) { - return cloneNode$1(j, cloned); - }); - else cloned[i$1] = cloneNode$1(value, cloned); - } - return cloned; - }; - var Node = /* @__PURE__ */ function() { - function Node$1(opts) { - if (opts === void 0) opts = {}; - Object.assign(this, opts); - this.spaces = this.spaces || {}; - this.spaces.before = this.spaces.before || ""; - this.spaces.after = this.spaces.after || ""; - } - var _proto = Node$1.prototype; - _proto.remove = function remove() { - if (this.parent) this.parent.removeChild(this); - this.parent = void 0; - return this; - }; - _proto.replaceWith = function replaceWith() { - if (this.parent) { - for (var index in arguments) this.parent.insertBefore(this, arguments[index]); - this.remove(); - } - return this; - }; - _proto.next = function next() { - return this.parent.at(this.parent.index(this) + 1); - }; - _proto.prev = function prev() { - return this.parent.at(this.parent.index(this) - 1); - }; - _proto.clone = function clone(overrides) { - if (overrides === void 0) overrides = {}; - var cloned = cloneNode(this); - for (var name in overrides) cloned[name] = overrides[name]; - return cloned; - }; - _proto.appendToPropertyAndEscape = function appendToPropertyAndEscape(name, value, valueEscaped) { - if (!this.raws) this.raws = {}; - var originalValue = this[name]; - var originalEscaped = this.raws[name]; - this[name] = originalValue + value; - if (originalEscaped || valueEscaped !== value) this.raws[name] = (originalEscaped || originalValue) + valueEscaped; - else delete this.raws[name]; - }; - _proto.setPropertyAndEscape = function setPropertyAndEscape(name, value, valueEscaped) { - if (!this.raws) this.raws = {}; - this[name] = value; - this.raws[name] = valueEscaped; - }; - _proto.setPropertyWithoutEscape = function setPropertyWithoutEscape(name, value) { - this[name] = value; - if (this.raws) delete this.raws[name]; - }; - _proto.isAtPosition = function isAtPosition(line, column) { - if (this.source && this.source.start && this.source.end) { - if (this.source.start.line > line) return false; - if (this.source.end.line < line) return false; - if (this.source.start.line === line && this.source.start.column > column) return false; - if (this.source.end.line === line && this.source.end.column < column) return false; - return true; - } - return void 0; - }; - _proto.stringifyProperty = function stringifyProperty(name) { - return this.raws && this.raws[name] || this[name]; - }; - _proto.valueToString = function valueToString() { - return String(this.stringifyProperty("value")); - }; - _proto.toString = function toString$1() { - return [ - this.rawSpaceBefore, - this.valueToString(), - this.rawSpaceAfter - ].join(""); - }; - _createClass$6(Node$1, [{ - key: "rawSpaceBefore", - get: function get() { - var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.before; - if (rawSpace === void 0) rawSpace = this.spaces && this.spaces.before; - return rawSpace || ""; - }, - set: function set(raw) { - (0, _util$3.ensureObject)(this, "raws", "spaces"); - this.raws.spaces.before = raw; - } - }, { - key: "rawSpaceAfter", - get: function get() { - var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.after; - if (rawSpace === void 0) rawSpace = this.spaces.after; - return rawSpace || ""; - }, - set: function set(raw) { - (0, _util$3.ensureObject)(this, "raws", "spaces"); - this.raws.spaces.after = raw; - } - }]); - return Node$1; - }(); - exports["default"] = Node; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/types.js -var require_types = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/types.js": ((exports) => { - exports.__esModule = true; - exports.UNIVERSAL = exports.TAG = exports.STRING = exports.SELECTOR = exports.ROOT = exports.PSEUDO = exports.NESTING = exports.ID = exports.COMMENT = exports.COMBINATOR = exports.CLASS = exports.ATTRIBUTE = void 0; - var TAG = "tag"; - exports.TAG = TAG; - var STRING = "string"; - exports.STRING = STRING; - var SELECTOR = "selector"; - exports.SELECTOR = SELECTOR; - var ROOT = "root"; - exports.ROOT = ROOT; - var PSEUDO = "pseudo"; - exports.PSEUDO = PSEUDO; - var NESTING = "nesting"; - exports.NESTING = NESTING; - var ID$1 = "id"; - exports.ID = ID$1; - var COMMENT = "comment"; - exports.COMMENT = COMMENT; - var COMBINATOR = "combinator"; - exports.COMBINATOR = COMBINATOR; - var CLASS = "class"; - exports.CLASS = CLASS; - var ATTRIBUTE = "attribute"; - exports.ATTRIBUTE = ATTRIBUTE; - var UNIVERSAL = "universal"; - exports.UNIVERSAL = UNIVERSAL; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/container.js -var require_container = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/container.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _node$7 = _interopRequireDefault$19(require_node$1()); - var types$1 = _interopRequireWildcard$3(require_types()); - function _getRequireWildcardCache$3(nodeInterop) { - if (typeof WeakMap !== "function") return null; - var cacheBabelInterop = /* @__PURE__ */ new WeakMap(); - var cacheNodeInterop = /* @__PURE__ */ new WeakMap(); - return (_getRequireWildcardCache$3 = function _getRequireWildcardCache$4(nodeInterop$1) { - return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); - } - function _interopRequireWildcard$3(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) return obj; - if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { "default": obj }; - var cache = _getRequireWildcardCache$3(nodeInterop); - if (cache && cache.has(obj)) return cache.get(obj); - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; - if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc); - else newObj[key] = obj[key]; - } - newObj["default"] = obj; - if (cache) cache.set(obj, newObj); - return newObj; - } - function _interopRequireDefault$19(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _createForOfIteratorHelperLoose(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (it) return (it = it.call(o)).next.bind(it); - if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i$1 = 0; - return function() { - if (i$1 >= o.length) return { done: true }; - return { - done: false, - value: o[i$1++] - }; - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); - } - function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i$1 = 0, arr2 = new Array(len); i$1 < len; i$1++) arr2[i$1] = arr[i$1]; - return arr2; - } - function _defineProperties$5(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass$5(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties$5(Constructor.prototype, protoProps); - if (staticProps) _defineProperties$5(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inheritsLoose$13(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$13(subClass, superClass); - } - function _setPrototypeOf$13(o, p) { - _setPrototypeOf$13 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$13(o, p); - } - var Container = /* @__PURE__ */ function(_Node) { - _inheritsLoose$13(Container$1, _Node); - function Container$1(opts) { - var _this; - _this = _Node.call(this, opts) || this; - if (!_this.nodes) _this.nodes = []; - return _this; - } - var _proto = Container$1.prototype; - _proto.append = function append(selector$1) { - selector$1.parent = this; - this.nodes.push(selector$1); - return this; - }; - _proto.prepend = function prepend(selector$1) { - selector$1.parent = this; - this.nodes.unshift(selector$1); - for (var id$1 in this.indexes) this.indexes[id$1]++; - return this; - }; - _proto.at = function at$1(index) { - return this.nodes[index]; - }; - _proto.index = function index(child) { - if (typeof child === "number") return child; - return this.nodes.indexOf(child); - }; - _proto.removeChild = function removeChild(child) { - child = this.index(child); - this.at(child).parent = void 0; - this.nodes.splice(child, 1); - var index; - for (var id$1 in this.indexes) { - index = this.indexes[id$1]; - if (index >= child) this.indexes[id$1] = index - 1; - } - return this; - }; - _proto.removeAll = function removeAll() { - for (var _iterator = _createForOfIteratorHelperLoose(this.nodes), _step; !(_step = _iterator()).done;) { - var node = _step.value; - node.parent = void 0; - } - this.nodes = []; - return this; - }; - _proto.empty = function empty() { - return this.removeAll(); - }; - _proto.insertAfter = function insertAfter(oldNode, newNode) { - var _this$nodes; - newNode.parent = this; - var oldIndex = this.index(oldNode); - var resetNode = []; - for (var i$1 = 2; i$1 < arguments.length; i$1++) resetNode.push(arguments[i$1]); - (_this$nodes = this.nodes).splice.apply(_this$nodes, [ - oldIndex + 1, - 0, - newNode - ].concat(resetNode)); - newNode.parent = this; - var index; - for (var id$1 in this.indexes) { - index = this.indexes[id$1]; - if (oldIndex < index) this.indexes[id$1] = index + arguments.length - 1; - } - return this; - }; - _proto.insertBefore = function insertBefore(oldNode, newNode) { - var _this$nodes2; - newNode.parent = this; - var oldIndex = this.index(oldNode); - var resetNode = []; - for (var i$1 = 2; i$1 < arguments.length; i$1++) resetNode.push(arguments[i$1]); - (_this$nodes2 = this.nodes).splice.apply(_this$nodes2, [ - oldIndex, - 0, - newNode - ].concat(resetNode)); - newNode.parent = this; - var index; - for (var id$1 in this.indexes) { - index = this.indexes[id$1]; - if (index >= oldIndex) this.indexes[id$1] = index + arguments.length - 1; - } - return this; - }; - _proto._findChildAtPosition = function _findChildAtPosition(line, col) { - var found = void 0; - this.each(function(node) { - if (node.atPosition) { - var foundChild = node.atPosition(line, col); - if (foundChild) { - found = foundChild; - return false; - } - } else if (node.isAtPosition(line, col)) { - found = node; - return false; - } - }); - return found; - }; - _proto.atPosition = function atPosition(line, col) { - if (this.isAtPosition(line, col)) return this._findChildAtPosition(line, col) || this; - else return void 0; - }; - _proto._inferEndPosition = function _inferEndPosition() { - if (this.last && this.last.source && this.last.source.end) { - this.source = this.source || {}; - this.source.end = this.source.end || {}; - Object.assign(this.source.end, this.last.source.end); - } - }; - _proto.each = function each(callback) { - if (!this.lastEach) this.lastEach = 0; - if (!this.indexes) this.indexes = {}; - this.lastEach++; - var id$1 = this.lastEach; - this.indexes[id$1] = 0; - if (!this.length) return void 0; - var index, result; - while (this.indexes[id$1] < this.length) { - index = this.indexes[id$1]; - result = callback(this.at(index), index); - if (result === false) break; - this.indexes[id$1] += 1; - } - delete this.indexes[id$1]; - if (result === false) return false; - }; - _proto.walk = function walk(callback) { - return this.each(function(node, i$1) { - var result = callback(node, i$1); - if (result !== false && node.length) result = node.walk(callback); - if (result === false) return false; - }); - }; - _proto.walkAttributes = function walkAttributes(callback) { - var _this2 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.ATTRIBUTE) return callback.call(_this2, selector$1); - }); - }; - _proto.walkClasses = function walkClasses(callback) { - var _this3 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.CLASS) return callback.call(_this3, selector$1); - }); - }; - _proto.walkCombinators = function walkCombinators(callback) { - var _this4 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.COMBINATOR) return callback.call(_this4, selector$1); - }); - }; - _proto.walkComments = function walkComments(callback) { - var _this5 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.COMMENT) return callback.call(_this5, selector$1); - }); - }; - _proto.walkIds = function walkIds(callback) { - var _this6 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.ID) return callback.call(_this6, selector$1); - }); - }; - _proto.walkNesting = function walkNesting(callback) { - var _this7 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.NESTING) return callback.call(_this7, selector$1); - }); - }; - _proto.walkPseudos = function walkPseudos(callback) { - var _this8 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.PSEUDO) return callback.call(_this8, selector$1); - }); - }; - _proto.walkTags = function walkTags(callback) { - var _this9 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.TAG) return callback.call(_this9, selector$1); - }); - }; - _proto.walkUniversals = function walkUniversals(callback) { - var _this10 = this; - return this.walk(function(selector$1) { - if (selector$1.type === types$1.UNIVERSAL) return callback.call(_this10, selector$1); - }); - }; - _proto.split = function split(callback) { - var _this11 = this; - var current = []; - return this.reduce(function(memo, node, index) { - var split$1 = callback.call(_this11, node); - current.push(node); - if (split$1) { - memo.push(current); - current = []; - } else if (index === _this11.length - 1) memo.push(current); - return memo; - }, []); - }; - _proto.map = function map(callback) { - return this.nodes.map(callback); - }; - _proto.reduce = function reduce(callback, memo) { - return this.nodes.reduce(callback, memo); - }; - _proto.every = function every(callback) { - return this.nodes.every(callback); - }; - _proto.some = function some(callback) { - return this.nodes.some(callback); - }; - _proto.filter = function filter(callback) { - return this.nodes.filter(callback); - }; - _proto.sort = function sort(callback) { - return this.nodes.sort(callback); - }; - _proto.toString = function toString$1() { - return this.map(String).join(""); - }; - _createClass$5(Container$1, [ - { - key: "first", - get: function get() { - return this.at(0); - } - }, - { - key: "last", - get: function get() { - return this.at(this.length - 1); - } - }, - { - key: "length", - get: function get() { - return this.nodes.length; - } - } - ]); - return Container$1; - }(_node$7["default"]); - exports["default"] = Container; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/root.js -var require_root = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/root.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _container$2 = _interopRequireDefault$18(require_container()); - var _types$13 = require_types(); - function _interopRequireDefault$18(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _defineProperties$4(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass$4(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties$4(Constructor.prototype, protoProps); - if (staticProps) _defineProperties$4(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inheritsLoose$12(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$12(subClass, superClass); - } - function _setPrototypeOf$12(o, p) { - _setPrototypeOf$12 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$12(o, p); - } - var Root = /* @__PURE__ */ function(_Container) { - _inheritsLoose$12(Root$1, _Container); - function Root$1(opts) { - var _this; - _this = _Container.call(this, opts) || this; - _this.type = _types$13.ROOT; - return _this; - } - var _proto = Root$1.prototype; - _proto.toString = function toString$1() { - var str$1 = this.reduce(function(memo, selector$1) { - memo.push(String(selector$1)); - return memo; - }, []).join(","); - return this.trailingComma ? str$1 + "," : str$1; - }; - _proto.error = function error(message, options) { - if (this._error) return this._error(message, options); - else return new Error(message); - }; - _createClass$4(Root$1, [{ - key: "errorGenerator", - set: function set(handler) { - this._error = handler; - } - }]); - return Root$1; - }(_container$2["default"]); - exports["default"] = Root; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/selector.js -var require_selector = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/selector.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _container$1 = _interopRequireDefault$17(require_container()); - var _types$12 = require_types(); - function _interopRequireDefault$17(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$11(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$11(subClass, superClass); - } - function _setPrototypeOf$11(o, p) { - _setPrototypeOf$11 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$11(o, p); - } - var Selector = /* @__PURE__ */ function(_Container) { - _inheritsLoose$11(Selector$1, _Container); - function Selector$1(opts) { - var _this; - _this = _Container.call(this, opts) || this; - _this.type = _types$12.SELECTOR; - return _this; - } - return Selector$1; - }(_container$1["default"]); - exports["default"] = Selector; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js -var require_cssesc = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js": ((exports, module) => { - var object = {}; - var hasOwnProperty$1 = object.hasOwnProperty; - var merge = function merge$1(options, defaults) { - if (!options) return defaults; - var result = {}; - for (var key in defaults) result[key] = hasOwnProperty$1.call(options, key) ? options[key] : defaults[key]; - return result; - }; - var regexAnySingleEscape = /[ -,\.\/:-@\[-\^`\{-~]/; - var regexSingleEscape = /[ -,\.\/:-@\[\]\^`\{-~]/; - var regexExcessiveSpaces = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g; - var cssesc = function cssesc$1(string$1, options) { - options = merge(options, cssesc$1.options); - if (options.quotes != "single" && options.quotes != "double") options.quotes = "single"; - var quote = options.quotes == "double" ? "\"" : "'"; - var isIdentifier$1 = options.isIdentifier; - var firstChar = string$1.charAt(0); - var output = ""; - var counter = 0; - var length = string$1.length; - while (counter < length) { - var character = string$1.charAt(counter++); - var codePoint = character.charCodeAt(); - var value = void 0; - if (codePoint < 32 || codePoint > 126) { - if (codePoint >= 55296 && codePoint <= 56319 && counter < length) { - var extra = string$1.charCodeAt(counter++); - if ((extra & 64512) == 56320) codePoint = ((codePoint & 1023) << 10) + (extra & 1023) + 65536; - else counter--; - } - value = "\\" + codePoint.toString(16).toUpperCase() + " "; - } else if (options.escapeEverything) if (regexAnySingleEscape.test(character)) value = "\\" + character; - else value = "\\" + codePoint.toString(16).toUpperCase() + " "; - else if (/[\t\n\f\r\x0B]/.test(character)) value = "\\" + codePoint.toString(16).toUpperCase() + " "; - else if (character == "\\" || !isIdentifier$1 && (character == "\"" && quote == character || character == "'" && quote == character) || isIdentifier$1 && regexSingleEscape.test(character)) value = "\\" + character; - else value = character; - output += value; - } - if (isIdentifier$1) { - if (/^-[-\d]/.test(output)) output = "\\-" + output.slice(1); - else if (/\d/.test(firstChar)) output = "\\3" + firstChar + " " + output.slice(1); - } - output = output.replace(regexExcessiveSpaces, function($0, $1, $2) { - if ($1 && $1.length % 2) return $0; - return ($1 || "") + $2; - }); - if (!isIdentifier$1 && options.wrap) return quote + output + quote; - return output; - }; - cssesc.options = { - "escapeEverything": false, - "isIdentifier": false, - "quotes": "single", - "wrap": false - }; - cssesc.version = "3.0.0"; - module.exports = cssesc; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/className.js -var require_className = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/className.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _cssesc$2 = _interopRequireDefault$16(require_cssesc()); - var _util$2 = require_util(); - var _node$6 = _interopRequireDefault$16(require_node$1()); - var _types$11 = require_types(); - function _interopRequireDefault$16(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _defineProperties$3(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass$3(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); - if (staticProps) _defineProperties$3(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inheritsLoose$10(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$10(subClass, superClass); - } - function _setPrototypeOf$10(o, p) { - _setPrototypeOf$10 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$10(o, p); - } - var ClassName = /* @__PURE__ */ function(_Node) { - _inheritsLoose$10(ClassName$1, _Node); - function ClassName$1(opts) { - var _this; - _this = _Node.call(this, opts) || this; - _this.type = _types$11.CLASS; - _this._constructed = true; - return _this; - } - var _proto = ClassName$1.prototype; - _proto.valueToString = function valueToString() { - return "." + _Node.prototype.valueToString.call(this); - }; - _createClass$3(ClassName$1, [{ - key: "value", - get: function get() { - return this._value; - }, - set: function set(v) { - if (this._constructed) { - var escaped = (0, _cssesc$2["default"])(v, { isIdentifier: true }); - if (escaped !== v) { - (0, _util$2.ensureObject)(this, "raws"); - this.raws.value = escaped; - } else if (this.raws) delete this.raws.value; - } - this._value = v; - } - }]); - return ClassName$1; - }(_node$6["default"]); - exports["default"] = ClassName; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/comment.js -var require_comment = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/comment.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _node$5 = _interopRequireDefault$15(require_node$1()); - var _types$10 = require_types(); - function _interopRequireDefault$15(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$9(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$9(subClass, superClass); - } - function _setPrototypeOf$9(o, p) { - _setPrototypeOf$9 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$9(o, p); - } - var Comment = /* @__PURE__ */ function(_Node) { - _inheritsLoose$9(Comment$1, _Node); - function Comment$1(opts) { - var _this; - _this = _Node.call(this, opts) || this; - _this.type = _types$10.COMMENT; - return _this; - } - return Comment$1; - }(_node$5["default"]); - exports["default"] = Comment; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/id.js -var require_id = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/id.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _node$4 = _interopRequireDefault$14(require_node$1()); - var _types$9 = require_types(); - function _interopRequireDefault$14(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$8(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$8(subClass, superClass); - } - function _setPrototypeOf$8(o, p) { - _setPrototypeOf$8 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$8(o, p); - } - var ID = /* @__PURE__ */ function(_Node) { - _inheritsLoose$8(ID$2, _Node); - function ID$2(opts) { - var _this; - _this = _Node.call(this, opts) || this; - _this.type = _types$9.ID; - return _this; - } - var _proto = ID$2.prototype; - _proto.valueToString = function valueToString() { - return "#" + _Node.prototype.valueToString.call(this); - }; - return ID$2; - }(_node$4["default"]); - exports["default"] = ID; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/namespace.js -var require_namespace = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/namespace.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _cssesc$1 = _interopRequireDefault$13(require_cssesc()); - var _util$1 = require_util(); - var _node$3 = _interopRequireDefault$13(require_node$1()); - function _interopRequireDefault$13(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _defineProperties$2(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass$2(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); - if (staticProps) _defineProperties$2(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inheritsLoose$7(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$7(subClass, superClass); - } - function _setPrototypeOf$7(o, p) { - _setPrototypeOf$7 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$7(o, p); - } - var Namespace = /* @__PURE__ */ function(_Node) { - _inheritsLoose$7(Namespace$1, _Node); - function Namespace$1() { - return _Node.apply(this, arguments) || this; - } - var _proto = Namespace$1.prototype; - _proto.qualifiedName = function qualifiedName(value) { - if (this.namespace) return this.namespaceString + "|" + value; - else return value; - }; - _proto.valueToString = function valueToString() { - return this.qualifiedName(_Node.prototype.valueToString.call(this)); - }; - _createClass$2(Namespace$1, [ - { - key: "namespace", - get: function get() { - return this._namespace; - }, - set: function set(namespace) { - if (namespace === true || namespace === "*" || namespace === "&") { - this._namespace = namespace; - if (this.raws) delete this.raws.namespace; - return; - } - var escaped = (0, _cssesc$1["default"])(namespace, { isIdentifier: true }); - this._namespace = namespace; - if (escaped !== namespace) { - (0, _util$1.ensureObject)(this, "raws"); - this.raws.namespace = escaped; - } else if (this.raws) delete this.raws.namespace; - } - }, - { - key: "ns", - get: function get() { - return this._namespace; - }, - set: function set(namespace) { - this.namespace = namespace; - } - }, - { - key: "namespaceString", - get: function get() { - if (this.namespace) { - var ns = this.stringifyProperty("namespace"); - if (ns === true) return ""; - else return ns; - } else return ""; - } - } - ]); - return Namespace$1; - }(_node$3["default"]); - exports["default"] = Namespace; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/tag.js -var require_tag = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/tag.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _namespace$2 = _interopRequireDefault$12(require_namespace()); - var _types$8 = require_types(); - function _interopRequireDefault$12(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$6(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$6(subClass, superClass); - } - function _setPrototypeOf$6(o, p) { - _setPrototypeOf$6 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$6(o, p); - } - var Tag = /* @__PURE__ */ function(_Namespace) { - _inheritsLoose$6(Tag$1, _Namespace); - function Tag$1(opts) { - var _this; - _this = _Namespace.call(this, opts) || this; - _this.type = _types$8.TAG; - return _this; - } - return Tag$1; - }(_namespace$2["default"]); - exports["default"] = Tag; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/string.js -var require_string = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/string.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _node$2 = _interopRequireDefault$11(require_node$1()); - var _types$7 = require_types(); - function _interopRequireDefault$11(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$5(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$5(subClass, superClass); - } - function _setPrototypeOf$5(o, p) { - _setPrototypeOf$5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$5(o, p); - } - var String$1 = /* @__PURE__ */ function(_Node) { - _inheritsLoose$5(String$2, _Node); - function String$2(opts) { - var _this; - _this = _Node.call(this, opts) || this; - _this.type = _types$7.STRING; - return _this; - } - return String$2; - }(_node$2["default"]); - exports["default"] = String$1; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/pseudo.js -var require_pseudo = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/pseudo.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _container = _interopRequireDefault$10(require_container()); - var _types$6 = require_types(); - function _interopRequireDefault$10(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$4(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$4(subClass, superClass); - } - function _setPrototypeOf$4(o, p) { - _setPrototypeOf$4 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$4(o, p); - } - var Pseudo = /* @__PURE__ */ function(_Container) { - _inheritsLoose$4(Pseudo$1, _Container); - function Pseudo$1(opts) { - var _this; - _this = _Container.call(this, opts) || this; - _this.type = _types$6.PSEUDO; - return _this; - } - var _proto = Pseudo$1.prototype; - _proto.toString = function toString$1() { - var params = this.length ? "(" + this.map(String).join(",") + ")" : ""; - return [ - this.rawSpaceBefore, - this.stringifyProperty("value"), - params, - this.rawSpaceAfter - ].join(""); - }; - return Pseudo$1; - }(_container["default"]); - exports["default"] = Pseudo; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js -var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js": ((exports, module) => { - /** - * For Node.js, simply re-export the core `util.deprecate` function. - */ - module.exports = __require("util").deprecate; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/attribute.js -var require_attribute = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/attribute.js": ((exports) => { - exports.__esModule = true; - exports["default"] = void 0; - exports.unescapeValue = unescapeValue; - var _cssesc = _interopRequireDefault$9(require_cssesc()); - var _unesc = _interopRequireDefault$9(require_unesc()); - var _namespace$1 = _interopRequireDefault$9(require_namespace()); - var _types$5 = require_types(); - var _CSSESC_QUOTE_OPTIONS; - function _interopRequireDefault$9(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _defineProperties$1(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass$1(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); - if (staticProps) _defineProperties$1(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inheritsLoose$3(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$3(subClass, superClass); - } - function _setPrototypeOf$3(o, p) { - _setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$3(o, p); - } - var deprecate = require_node(); - var WRAPPED_IN_QUOTES = /^('|")([^]*)\1$/; - var warnOfDeprecatedValueAssignment = deprecate(function() {}, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."); - var warnOfDeprecatedQuotedAssignment = deprecate(function() {}, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."); - var warnOfDeprecatedConstructor = deprecate(function() {}, "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now."); - function unescapeValue(value) { - var deprecatedUsage = false; - var quoteMark = null; - var unescaped = value; - var m = unescaped.match(WRAPPED_IN_QUOTES); - if (m) { - quoteMark = m[1]; - unescaped = m[2]; - } - unescaped = (0, _unesc["default"])(unescaped); - if (unescaped !== value) deprecatedUsage = true; - return { - deprecatedUsage, - unescaped, - quoteMark - }; - } - function handleDeprecatedContructorOpts(opts) { - if (opts.quoteMark !== void 0) return opts; - if (opts.value === void 0) return opts; - warnOfDeprecatedConstructor(); - var _unescapeValue = unescapeValue(opts.value), quoteMark = _unescapeValue.quoteMark, unescaped = _unescapeValue.unescaped; - if (!opts.raws) opts.raws = {}; - if (opts.raws.value === void 0) opts.raws.value = opts.value; - opts.value = unescaped; - opts.quoteMark = quoteMark; - return opts; - } - var Attribute = /* @__PURE__ */ function(_Namespace) { - _inheritsLoose$3(Attribute$1, _Namespace); - function Attribute$1(opts) { - var _this; - if (opts === void 0) opts = {}; - _this = _Namespace.call(this, handleDeprecatedContructorOpts(opts)) || this; - _this.type = _types$5.ATTRIBUTE; - _this.raws = _this.raws || {}; - Object.defineProperty(_this.raws, "unquoted", { - get: deprecate(function() { - return _this.value; - }, "attr.raws.unquoted is deprecated. Call attr.value instead."), - set: deprecate(function() { - return _this.value; - }, "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.") - }); - _this._constructed = true; - return _this; - } - /** - * Returns the Attribute's value quoted such that it would be legal to use - * in the value of a css file. The original value's quotation setting - * used for stringification is left unchanged. See `setValue(value, options)` - * if you want to control the quote settings of a new value for the attribute. - * - * You can also change the quotation used for the current value by setting quoteMark. - * - * Options: - * * quoteMark {'"' | "'" | null} - Use this value to quote the value. If this - * option is not set, the original value for quoteMark will be used. If - * indeterminate, a double quote is used. The legal values are: - * * `null` - the value will be unquoted and characters will be escaped as necessary. - * * `'` - the value will be quoted with a single quote and single quotes are escaped. - * * `"` - the value will be quoted with a double quote and double quotes are escaped. - * * preferCurrentQuoteMark {boolean} - if true, prefer the source quote mark - * over the quoteMark option value. - * * smart {boolean} - if true, will select a quote mark based on the value - * and the other options specified here. See the `smartQuoteMark()` - * method. - **/ - var _proto = Attribute$1.prototype; - _proto.getQuotedValue = function getQuotedValue(options) { - if (options === void 0) options = {}; - var quoteMark = this._determineQuoteMark(options); - var cssescopts = CSSESC_QUOTE_OPTIONS[quoteMark]; - var escaped = (0, _cssesc["default"])(this._value, cssescopts); - return escaped; - }; - _proto._determineQuoteMark = function _determineQuoteMark(options) { - return options.smart ? this.smartQuoteMark(options) : this.preferredQuoteMark(options); - }; - _proto.setValue = function setValue(value, options) { - if (options === void 0) options = {}; - this._value = value; - this._quoteMark = this._determineQuoteMark(options); - this._syncRawValue(); - }; - _proto.smartQuoteMark = function smartQuoteMark(options) { - var v = this.value; - var numSingleQuotes = v.replace(/[^']/g, "").length; - var numDoubleQuotes = v.replace(/[^"]/g, "").length; - if (numSingleQuotes + numDoubleQuotes === 0) { - var escaped = (0, _cssesc["default"])(v, { isIdentifier: true }); - if (escaped === v) return Attribute$1.NO_QUOTE; - else { - var pref = this.preferredQuoteMark(options); - if (pref === Attribute$1.NO_QUOTE) { - var quote = this.quoteMark || options.quoteMark || Attribute$1.DOUBLE_QUOTE; - var opts = CSSESC_QUOTE_OPTIONS[quote]; - var quoteValue = (0, _cssesc["default"])(v, opts); - if (quoteValue.length < escaped.length) return quote; - } - return pref; - } - } else if (numDoubleQuotes === numSingleQuotes) return this.preferredQuoteMark(options); - else if (numDoubleQuotes < numSingleQuotes) return Attribute$1.DOUBLE_QUOTE; - else return Attribute$1.SINGLE_QUOTE; - }; - _proto.preferredQuoteMark = function preferredQuoteMark(options) { - var quoteMark = options.preferCurrentQuoteMark ? this.quoteMark : options.quoteMark; - if (quoteMark === void 0) quoteMark = options.preferCurrentQuoteMark ? options.quoteMark : this.quoteMark; - if (quoteMark === void 0) quoteMark = Attribute$1.DOUBLE_QUOTE; - return quoteMark; - }; - _proto._syncRawValue = function _syncRawValue() { - var rawValue = (0, _cssesc["default"])(this._value, CSSESC_QUOTE_OPTIONS[this.quoteMark]); - if (rawValue === this._value) { - if (this.raws) delete this.raws.value; - } else this.raws.value = rawValue; - }; - _proto._handleEscapes = function _handleEscapes(prop, value) { - if (this._constructed) { - var escaped = (0, _cssesc["default"])(value, { isIdentifier: true }); - if (escaped !== value) this.raws[prop] = escaped; - else delete this.raws[prop]; - } - }; - _proto._spacesFor = function _spacesFor(name) { - var attrSpaces = { - before: "", - after: "" - }; - var spaces = this.spaces[name] || {}; - var rawSpaces = this.raws.spaces && this.raws.spaces[name] || {}; - return Object.assign(attrSpaces, spaces, rawSpaces); - }; - _proto._stringFor = function _stringFor(name, spaceName, concat) { - if (spaceName === void 0) spaceName = name; - if (concat === void 0) concat = defaultAttrConcat; - var attrSpaces = this._spacesFor(spaceName); - return concat(this.stringifyProperty(name), attrSpaces); - }; - _proto.offsetOf = function offsetOf(name) { - var count = 1; - var attributeSpaces = this._spacesFor("attribute"); - count += attributeSpaces.before.length; - if (name === "namespace" || name === "ns") return this.namespace ? count : -1; - if (name === "attributeNS") return count; - count += this.namespaceString.length; - if (this.namespace) count += 1; - if (name === "attribute") return count; - count += this.stringifyProperty("attribute").length; - count += attributeSpaces.after.length; - var operatorSpaces = this._spacesFor("operator"); - count += operatorSpaces.before.length; - var operator = this.stringifyProperty("operator"); - if (name === "operator") return operator ? count : -1; - count += operator.length; - count += operatorSpaces.after.length; - var valueSpaces = this._spacesFor("value"); - count += valueSpaces.before.length; - var value = this.stringifyProperty("value"); - if (name === "value") return value ? count : -1; - count += value.length; - count += valueSpaces.after.length; - var insensitiveSpaces = this._spacesFor("insensitive"); - count += insensitiveSpaces.before.length; - if (name === "insensitive") return this.insensitive ? count : -1; - return -1; - }; - _proto.toString = function toString$1() { - var _this2 = this; - var selector$1 = [this.rawSpaceBefore, "["]; - selector$1.push(this._stringFor("qualifiedAttribute", "attribute")); - if (this.operator && (this.value || this.value === "")) { - selector$1.push(this._stringFor("operator")); - selector$1.push(this._stringFor("value")); - selector$1.push(this._stringFor("insensitiveFlag", "insensitive", function(attrValue, attrSpaces) { - if (attrValue.length > 0 && !_this2.quoted && attrSpaces.before.length === 0 && !(_this2.spaces.value && _this2.spaces.value.after)) attrSpaces.before = " "; - return defaultAttrConcat(attrValue, attrSpaces); - })); - } - selector$1.push("]"); - selector$1.push(this.rawSpaceAfter); - return selector$1.join(""); - }; - _createClass$1(Attribute$1, [ - { - key: "quoted", - get: function get() { - var qm = this.quoteMark; - return qm === "'" || qm === "\""; - }, - set: function set(value) { - warnOfDeprecatedQuotedAssignment(); - } - }, - { - key: "quoteMark", - get: function get() { - return this._quoteMark; - }, - set: function set(quoteMark) { - if (!this._constructed) { - this._quoteMark = quoteMark; - return; - } - if (this._quoteMark !== quoteMark) { - this._quoteMark = quoteMark; - this._syncRawValue(); - } - } - }, - { - key: "qualifiedAttribute", - get: function get() { - return this.qualifiedName(this.raws.attribute || this.attribute); - } - }, - { - key: "insensitiveFlag", - get: function get() { - return this.insensitive ? "i" : ""; - } - }, - { - key: "value", - get: function get() { - return this._value; - }, - set: function set(v) { - if (this._constructed) { - var _unescapeValue2 = unescapeValue(v), deprecatedUsage = _unescapeValue2.deprecatedUsage, unescaped = _unescapeValue2.unescaped, quoteMark = _unescapeValue2.quoteMark; - if (deprecatedUsage) warnOfDeprecatedValueAssignment(); - if (unescaped === this._value && quoteMark === this._quoteMark) return; - this._value = unescaped; - this._quoteMark = quoteMark; - this._syncRawValue(); - } else this._value = v; - } - }, - { - key: "insensitive", - get: function get() { - return this._insensitive; - }, - set: function set(insensitive) { - if (!insensitive) { - this._insensitive = false; - if (this.raws && (this.raws.insensitiveFlag === "I" || this.raws.insensitiveFlag === "i")) this.raws.insensitiveFlag = void 0; - } - this._insensitive = insensitive; - } - }, - { - key: "attribute", - get: function get() { - return this._attribute; - }, - set: function set(name) { - this._handleEscapes("attribute", name); - this._attribute = name; - } - } - ]); - return Attribute$1; - }(_namespace$1["default"]); - exports["default"] = Attribute; - Attribute.NO_QUOTE = null; - Attribute.SINGLE_QUOTE = "'"; - Attribute.DOUBLE_QUOTE = "\""; - var CSSESC_QUOTE_OPTIONS = (_CSSESC_QUOTE_OPTIONS = { - "'": { - quotes: "single", - wrap: true - }, - "\"": { - quotes: "double", - wrap: true - } - }, _CSSESC_QUOTE_OPTIONS[null] = { isIdentifier: true }, _CSSESC_QUOTE_OPTIONS); - function defaultAttrConcat(attrValue, attrSpaces) { - return "" + attrSpaces.before + attrValue + attrSpaces.after; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/universal.js -var require_universal = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/universal.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _namespace = _interopRequireDefault$8(require_namespace()); - var _types$4 = require_types(); - function _interopRequireDefault$8(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$2(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$2(subClass, superClass); - } - function _setPrototypeOf$2(o, p) { - _setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$2(o, p); - } - var Universal = /* @__PURE__ */ function(_Namespace) { - _inheritsLoose$2(Universal$1, _Namespace); - function Universal$1(opts) { - var _this; - _this = _Namespace.call(this, opts) || this; - _this.type = _types$4.UNIVERSAL; - _this.value = "*"; - return _this; - } - return Universal$1; - }(_namespace["default"]); - exports["default"] = Universal; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/combinator.js -var require_combinator = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/combinator.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _node$1 = _interopRequireDefault$7(require_node$1()); - var _types$3 = require_types(); - function _interopRequireDefault$7(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose$1(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf$1(subClass, superClass); - } - function _setPrototypeOf$1(o, p) { - _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf$1(o, p); - } - var Combinator = /* @__PURE__ */ function(_Node) { - _inheritsLoose$1(Combinator$1, _Node); - function Combinator$1(opts) { - var _this; - _this = _Node.call(this, opts) || this; - _this.type = _types$3.COMBINATOR; - return _this; - } - return Combinator$1; - }(_node$1["default"]); - exports["default"] = Combinator; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/nesting.js -var require_nesting = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/nesting.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _node = _interopRequireDefault$6(require_node$1()); - var _types$2 = require_types(); - function _interopRequireDefault$6(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf(subClass, superClass); - } - function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf$14(o$1, p$1) { - o$1.__proto__ = p$1; - return o$1; - }; - return _setPrototypeOf(o, p); - } - var Nesting = /* @__PURE__ */ function(_Node) { - _inheritsLoose(Nesting$1, _Node); - function Nesting$1(opts) { - var _this; - _this = _Node.call(this, opts) || this; - _this.type = _types$2.NESTING; - _this.value = "&"; - return _this; - } - return Nesting$1; - }(_node["default"]); - exports["default"] = Nesting; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/sortAscending.js -var require_sortAscending = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/sortAscending.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = sortAscending; - function sortAscending(list) { - return list.sort(function(a, b) { - return a - b; - }); - } - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenTypes.js -var require_tokenTypes = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenTypes.js": ((exports) => { - exports.__esModule = true; - exports.word = exports.tilde = exports.tab = exports.str = exports.space = exports.slash = exports.singleQuote = exports.semicolon = exports.plus = exports.pipe = exports.openSquare = exports.openParenthesis = exports.newline = exports.greaterThan = exports.feed = exports.equals = exports.doubleQuote = exports.dollar = exports.cr = exports.comment = exports.comma = exports.combinator = exports.colon = exports.closeSquare = exports.closeParenthesis = exports.caret = exports.bang = exports.backslash = exports.at = exports.asterisk = exports.ampersand = void 0; - var ampersand = 38; - exports.ampersand = ampersand; - var asterisk = 42; - exports.asterisk = asterisk; - var at = 64; - exports.at = at; - var comma = 44; - exports.comma = comma; - var colon = 58; - exports.colon = colon; - var semicolon = 59; - exports.semicolon = semicolon; - var openParenthesis = 40; - exports.openParenthesis = openParenthesis; - var closeParenthesis = 41; - exports.closeParenthesis = closeParenthesis; - var openSquare = 91; - exports.openSquare = openSquare; - var closeSquare = 93; - exports.closeSquare = closeSquare; - var dollar = 36; - exports.dollar = dollar; - var tilde = 126; - exports.tilde = tilde; - var caret = 94; - exports.caret = caret; - var plus = 43; - exports.plus = plus; - var equals = 61; - exports.equals = equals; - var pipe = 124; - exports.pipe = pipe; - var greaterThan = 62; - exports.greaterThan = greaterThan; - var space = 32; - exports.space = space; - var singleQuote = 39; - exports.singleQuote = singleQuote; - var doubleQuote = 34; - exports.doubleQuote = doubleQuote; - var slash = 47; - exports.slash = slash; - var bang = 33; - exports.bang = bang; - var backslash = 92; - exports.backslash = backslash; - var cr = 13; - exports.cr = cr; - var feed = 12; - exports.feed = feed; - var newline = 10; - exports.newline = newline; - var tab = 9; - exports.tab = tab; - var str = singleQuote; - exports.str = str; - var comment$1 = -1; - exports.comment = comment$1; - var word = -2; - exports.word = word; - var combinator$1 = -3; - exports.combinator = combinator$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenize.js -var require_tokenize = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenize.js": ((exports) => { - exports.__esModule = true; - exports.FIELDS = void 0; - exports["default"] = tokenize; - var t = _interopRequireWildcard$2(require_tokenTypes()); - var _unescapable, _wordDelimiters; - function _getRequireWildcardCache$2(nodeInterop) { - if (typeof WeakMap !== "function") return null; - var cacheBabelInterop = /* @__PURE__ */ new WeakMap(); - var cacheNodeInterop = /* @__PURE__ */ new WeakMap(); - return (_getRequireWildcardCache$2 = function _getRequireWildcardCache$4(nodeInterop$1) { - return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); - } - function _interopRequireWildcard$2(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) return obj; - if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { "default": obj }; - var cache = _getRequireWildcardCache$2(nodeInterop); - if (cache && cache.has(obj)) return cache.get(obj); - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; - if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc); - else newObj[key] = obj[key]; - } - newObj["default"] = obj; - if (cache) cache.set(obj, newObj); - return newObj; - } - var unescapable = (_unescapable = {}, _unescapable[t.tab] = true, _unescapable[t.newline] = true, _unescapable[t.cr] = true, _unescapable[t.feed] = true, _unescapable); - var wordDelimiters = (_wordDelimiters = {}, _wordDelimiters[t.space] = true, _wordDelimiters[t.tab] = true, _wordDelimiters[t.newline] = true, _wordDelimiters[t.cr] = true, _wordDelimiters[t.feed] = true, _wordDelimiters[t.ampersand] = true, _wordDelimiters[t.asterisk] = true, _wordDelimiters[t.bang] = true, _wordDelimiters[t.comma] = true, _wordDelimiters[t.colon] = true, _wordDelimiters[t.semicolon] = true, _wordDelimiters[t.openParenthesis] = true, _wordDelimiters[t.closeParenthesis] = true, _wordDelimiters[t.openSquare] = true, _wordDelimiters[t.closeSquare] = true, _wordDelimiters[t.singleQuote] = true, _wordDelimiters[t.doubleQuote] = true, _wordDelimiters[t.plus] = true, _wordDelimiters[t.pipe] = true, _wordDelimiters[t.tilde] = true, _wordDelimiters[t.greaterThan] = true, _wordDelimiters[t.equals] = true, _wordDelimiters[t.dollar] = true, _wordDelimiters[t.caret] = true, _wordDelimiters[t.slash] = true, _wordDelimiters); - var hex = {}; - var hexChars = "0123456789abcdefABCDEF"; - for (var i = 0; i < hexChars.length; i++) hex[hexChars.charCodeAt(i)] = true; - /** - * Returns the last index of the bar css word - * @param {string} css The string in which the word begins - * @param {number} start The index into the string where word's first letter occurs - */ - function consumeWord(css, start) { - var next = start; - var code; - do { - code = css.charCodeAt(next); - if (wordDelimiters[code]) return next - 1; - else if (code === t.backslash) next = consumeEscape(css, next) + 1; - else next++; - } while (next < css.length); - return next - 1; - } - /** - * Returns the last index of the escape sequence - * @param {string} css The string in which the sequence begins - * @param {number} start The index into the string where escape character (`\`) occurs. - */ - function consumeEscape(css, start) { - var next = start; - var code = css.charCodeAt(next + 1); - if (unescapable[code]) {} else if (hex[code]) { - var hexDigits = 0; - do { - next++; - hexDigits++; - code = css.charCodeAt(next + 1); - } while (hex[code] && hexDigits < 6); - if (hexDigits < 6 && code === t.space) next++; - } else next++; - return next; - } - var FIELDS = { - TYPE: 0, - START_LINE: 1, - START_COL: 2, - END_LINE: 3, - END_COL: 4, - START_POS: 5, - END_POS: 6 - }; - exports.FIELDS = FIELDS; - function tokenize(input) { - var tokens$1 = []; - var css = input.css.valueOf(); - var _css = css, length = _css.length; - var offset = -1; - var line = 1; - var start = 0; - var end = 0; - var code, content, endColumn, endLine, escaped, escapePos, last, lines, next, nextLine, nextOffset, quote, tokenType; - function unclosed(what, fix) { - if (input.safe) { - css += fix; - next = css.length - 1; - } else throw input.error("Unclosed " + what, line, start - offset, start); - } - while (start < length) { - code = css.charCodeAt(start); - if (code === t.newline) { - offset = start; - line += 1; - } - switch (code) { - case t.space: - case t.tab: - case t.newline: - case t.cr: - case t.feed: - next = start; - do { - next += 1; - code = css.charCodeAt(next); - if (code === t.newline) { - offset = next; - line += 1; - } - } while (code === t.space || code === t.newline || code === t.tab || code === t.cr || code === t.feed); - tokenType = t.space; - endLine = line; - endColumn = next - offset - 1; - end = next; - break; - case t.plus: - case t.greaterThan: - case t.tilde: - case t.pipe: - next = start; - do { - next += 1; - code = css.charCodeAt(next); - } while (code === t.plus || code === t.greaterThan || code === t.tilde || code === t.pipe); - tokenType = t.combinator; - endLine = line; - endColumn = start - offset; - end = next; - break; - case t.asterisk: - case t.ampersand: - case t.bang: - case t.comma: - case t.equals: - case t.dollar: - case t.caret: - case t.openSquare: - case t.closeSquare: - case t.colon: - case t.semicolon: - case t.openParenthesis: - case t.closeParenthesis: - next = start; - tokenType = code; - endLine = line; - endColumn = start - offset; - end = next + 1; - break; - case t.singleQuote: - case t.doubleQuote: - quote = code === t.singleQuote ? "'" : "\""; - next = start; - do { - escaped = false; - next = css.indexOf(quote, next + 1); - if (next === -1) unclosed("quote", quote); - escapePos = next; - while (css.charCodeAt(escapePos - 1) === t.backslash) { - escapePos -= 1; - escaped = !escaped; - } - } while (escaped); - tokenType = t.str; - endLine = line; - endColumn = start - offset; - end = next + 1; - break; - default: - if (code === t.slash && css.charCodeAt(start + 1) === t.asterisk) { - next = css.indexOf("*/", start + 2) + 1; - if (next === 0) unclosed("comment", "*/"); - content = css.slice(start, next + 1); - lines = content.split("\n"); - last = lines.length - 1; - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - tokenType = t.comment; - line = nextLine; - endLine = nextLine; - endColumn = next - nextOffset; - } else if (code === t.slash) { - next = start; - tokenType = code; - endLine = line; - endColumn = start - offset; - end = next + 1; - } else { - next = consumeWord(css, start); - tokenType = t.word; - endLine = line; - endColumn = next - offset; - } - end = next + 1; - break; - } - tokens$1.push([ - tokenType, - line, - start - offset, - endLine, - endColumn, - start, - end - ]); - if (nextOffset) { - offset = nextOffset; - nextOffset = null; - } - start = end; - } - return tokens$1; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/parser.js -var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/parser.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _root$1 = _interopRequireDefault$5(require_root()); - var _selector$1 = _interopRequireDefault$5(require_selector()); - var _className$1 = _interopRequireDefault$5(require_className()); - var _comment$1 = _interopRequireDefault$5(require_comment()); - var _id$1 = _interopRequireDefault$5(require_id()); - var _tag$1 = _interopRequireDefault$5(require_tag()); - var _string$1 = _interopRequireDefault$5(require_string()); - var _pseudo$1 = _interopRequireDefault$5(require_pseudo()); - var _attribute$1 = _interopRequireWildcard$1(require_attribute()); - var _universal$1 = _interopRequireDefault$5(require_universal()); - var _combinator$1 = _interopRequireDefault$5(require_combinator()); - var _nesting$1 = _interopRequireDefault$5(require_nesting()); - var _sortAscending = _interopRequireDefault$5(require_sortAscending()); - var _tokenize = _interopRequireWildcard$1(require_tokenize()); - var tokens = _interopRequireWildcard$1(require_tokenTypes()); - var types = _interopRequireWildcard$1(require_types()); - var _util = require_util(); - var _WHITESPACE_TOKENS, _Object$assign; - function _getRequireWildcardCache$1(nodeInterop) { - if (typeof WeakMap !== "function") return null; - var cacheBabelInterop = /* @__PURE__ */ new WeakMap(); - var cacheNodeInterop = /* @__PURE__ */ new WeakMap(); - return (_getRequireWildcardCache$1 = function _getRequireWildcardCache$4(nodeInterop$1) { - return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); - } - function _interopRequireWildcard$1(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) return obj; - if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { "default": obj }; - var cache = _getRequireWildcardCache$1(nodeInterop); - if (cache && cache.has(obj)) return cache.get(obj); - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; - if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc); - else newObj[key] = obj[key]; - } - newObj["default"] = obj; - if (cache) cache.set(obj, newObj); - return newObj; - } - function _interopRequireDefault$5(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - function _defineProperties(target, props) { - for (var i$1 = 0; i$1 < props.length; i$1++) { - var descriptor = props[i$1]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - var WHITESPACE_TOKENS = (_WHITESPACE_TOKENS = {}, _WHITESPACE_TOKENS[tokens.space] = true, _WHITESPACE_TOKENS[tokens.cr] = true, _WHITESPACE_TOKENS[tokens.feed] = true, _WHITESPACE_TOKENS[tokens.newline] = true, _WHITESPACE_TOKENS[tokens.tab] = true, _WHITESPACE_TOKENS); - var WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign)); - function tokenStart(token) { - return { - line: token[_tokenize.FIELDS.START_LINE], - column: token[_tokenize.FIELDS.START_COL] - }; - } - function tokenEnd(token) { - return { - line: token[_tokenize.FIELDS.END_LINE], - column: token[_tokenize.FIELDS.END_COL] - }; - } - function getSource(startLine, startColumn, endLine, endColumn) { - return { - start: { - line: startLine, - column: startColumn - }, - end: { - line: endLine, - column: endColumn - } - }; - } - function getTokenSource(token) { - return getSource(token[_tokenize.FIELDS.START_LINE], token[_tokenize.FIELDS.START_COL], token[_tokenize.FIELDS.END_LINE], token[_tokenize.FIELDS.END_COL]); - } - function getTokenSourceSpan(startToken, endToken) { - if (!startToken) return void 0; - return getSource(startToken[_tokenize.FIELDS.START_LINE], startToken[_tokenize.FIELDS.START_COL], endToken[_tokenize.FIELDS.END_LINE], endToken[_tokenize.FIELDS.END_COL]); - } - function unescapeProp(node, prop) { - var value = node[prop]; - if (typeof value !== "string") return; - if (value.indexOf("\\") !== -1) { - (0, _util.ensureObject)(node, "raws"); - node[prop] = (0, _util.unesc)(value); - if (node.raws[prop] === void 0) node.raws[prop] = value; - } - return node; - } - function indexesOf(array, item) { - var i$1 = -1; - var indexes = []; - while ((i$1 = array.indexOf(item, i$1 + 1)) !== -1) indexes.push(i$1); - return indexes; - } - function uniqs() { - var list = Array.prototype.concat.apply([], arguments); - return list.filter(function(item, i$1) { - return i$1 === list.indexOf(item); - }); - } - var Parser = /* @__PURE__ */ function() { - function Parser$2(rule, options) { - if (options === void 0) options = {}; - this.rule = rule; - this.options = Object.assign({ - lossy: false, - safe: false - }, options); - this.position = 0; - this.css = typeof this.rule === "string" ? this.rule : this.rule.selector; - this.tokens = (0, _tokenize["default"])({ - css: this.css, - error: this._errorGenerator(), - safe: this.options.safe - }); - var rootSource = getTokenSourceSpan(this.tokens[0], this.tokens[this.tokens.length - 1]); - this.root = new _root$1["default"]({ source: rootSource }); - this.root.errorGenerator = this._errorGenerator(); - var selector$1 = new _selector$1["default"]({ - source: { start: { - line: 1, - column: 1 - } }, - sourceIndex: 0 - }); - this.root.append(selector$1); - this.current = selector$1; - this.loop(); - } - var _proto = Parser$2.prototype; - _proto._errorGenerator = function _errorGenerator() { - var _this = this; - return function(message, errorOptions) { - if (typeof _this.rule === "string") return new Error(message); - return _this.rule.error(message, errorOptions); - }; - }; - _proto.attribute = function attribute$1() { - var attr = []; - var startingToken = this.currToken; - this.position++; - while (this.position < this.tokens.length && this.currToken[_tokenize.FIELDS.TYPE] !== tokens.closeSquare) { - attr.push(this.currToken); - this.position++; - } - if (this.currToken[_tokenize.FIELDS.TYPE] !== tokens.closeSquare) return this.expected("closing square bracket", this.currToken[_tokenize.FIELDS.START_POS]); - var len = attr.length; - var node = { - source: getSource(startingToken[1], startingToken[2], this.currToken[3], this.currToken[4]), - sourceIndex: startingToken[_tokenize.FIELDS.START_POS] - }; - if (len === 1 && !~[tokens.word].indexOf(attr[0][_tokenize.FIELDS.TYPE])) return this.expected("attribute", attr[0][_tokenize.FIELDS.START_POS]); - var pos = 0; - var spaceBefore = ""; - var commentBefore = ""; - var lastAdded = null; - var spaceAfterMeaningfulToken = false; - while (pos < len) { - var token = attr[pos]; - var content = this.content(token); - var next = attr[pos + 1]; - switch (token[_tokenize.FIELDS.TYPE]) { - case tokens.space: - spaceAfterMeaningfulToken = true; - if (this.options.lossy) break; - if (lastAdded) { - (0, _util.ensureObject)(node, "spaces", lastAdded); - var prevContent = node.spaces[lastAdded].after || ""; - node.spaces[lastAdded].after = prevContent + content; - var existingComment = (0, _util.getProp)(node, "raws", "spaces", lastAdded, "after") || null; - if (existingComment) node.raws.spaces[lastAdded].after = existingComment + content; - } else { - spaceBefore = spaceBefore + content; - commentBefore = commentBefore + content; - } - break; - case tokens.asterisk: - if (next[_tokenize.FIELDS.TYPE] === tokens.equals) { - node.operator = content; - lastAdded = "operator"; - } else if ((!node.namespace || lastAdded === "namespace" && !spaceAfterMeaningfulToken) && next) { - if (spaceBefore) { - (0, _util.ensureObject)(node, "spaces", "attribute"); - node.spaces.attribute.before = spaceBefore; - spaceBefore = ""; - } - if (commentBefore) { - (0, _util.ensureObject)(node, "raws", "spaces", "attribute"); - node.raws.spaces.attribute.before = spaceBefore; - commentBefore = ""; - } - node.namespace = (node.namespace || "") + content; - var rawValue = (0, _util.getProp)(node, "raws", "namespace") || null; - if (rawValue) node.raws.namespace += content; - lastAdded = "namespace"; - } - spaceAfterMeaningfulToken = false; - break; - case tokens.dollar: if (lastAdded === "value") { - var oldRawValue = (0, _util.getProp)(node, "raws", "value"); - node.value += "$"; - if (oldRawValue) node.raws.value = oldRawValue + "$"; - break; - } - case tokens.caret: - if (next[_tokenize.FIELDS.TYPE] === tokens.equals) { - node.operator = content; - lastAdded = "operator"; - } - spaceAfterMeaningfulToken = false; - break; - case tokens.combinator: - if (content === "~" && next[_tokenize.FIELDS.TYPE] === tokens.equals) { - node.operator = content; - lastAdded = "operator"; - } - if (content !== "|") { - spaceAfterMeaningfulToken = false; - break; - } - if (next[_tokenize.FIELDS.TYPE] === tokens.equals) { - node.operator = content; - lastAdded = "operator"; - } else if (!node.namespace && !node.attribute) node.namespace = true; - spaceAfterMeaningfulToken = false; - break; - case tokens.word: - if (next && this.content(next) === "|" && attr[pos + 2] && attr[pos + 2][_tokenize.FIELDS.TYPE] !== tokens.equals && !node.operator && !node.namespace) { - node.namespace = content; - lastAdded = "namespace"; - } else if (!node.attribute || lastAdded === "attribute" && !spaceAfterMeaningfulToken) { - if (spaceBefore) { - (0, _util.ensureObject)(node, "spaces", "attribute"); - node.spaces.attribute.before = spaceBefore; - spaceBefore = ""; - } - if (commentBefore) { - (0, _util.ensureObject)(node, "raws", "spaces", "attribute"); - node.raws.spaces.attribute.before = commentBefore; - commentBefore = ""; - } - node.attribute = (node.attribute || "") + content; - var _rawValue = (0, _util.getProp)(node, "raws", "attribute") || null; - if (_rawValue) node.raws.attribute += content; - lastAdded = "attribute"; - } else if (!node.value && node.value !== "" || lastAdded === "value" && !(spaceAfterMeaningfulToken || node.quoteMark)) { - var _unescaped = (0, _util.unesc)(content); - var _oldRawValue = (0, _util.getProp)(node, "raws", "value") || ""; - var oldValue = node.value || ""; - node.value = oldValue + _unescaped; - node.quoteMark = null; - if (_unescaped !== content || _oldRawValue) { - (0, _util.ensureObject)(node, "raws"); - node.raws.value = (_oldRawValue || oldValue) + content; - } - lastAdded = "value"; - } else { - var insensitive = content === "i" || content === "I"; - if ((node.value || node.value === "") && (node.quoteMark || spaceAfterMeaningfulToken)) { - node.insensitive = insensitive; - if (!insensitive || content === "I") { - (0, _util.ensureObject)(node, "raws"); - node.raws.insensitiveFlag = content; - } - lastAdded = "insensitive"; - if (spaceBefore) { - (0, _util.ensureObject)(node, "spaces", "insensitive"); - node.spaces.insensitive.before = spaceBefore; - spaceBefore = ""; - } - if (commentBefore) { - (0, _util.ensureObject)(node, "raws", "spaces", "insensitive"); - node.raws.spaces.insensitive.before = commentBefore; - commentBefore = ""; - } - } else if (node.value || node.value === "") { - lastAdded = "value"; - node.value += content; - if (node.raws.value) node.raws.value += content; - } - } - spaceAfterMeaningfulToken = false; - break; - case tokens.str: - if (!node.attribute || !node.operator) return this.error("Expected an attribute followed by an operator preceding the string.", { index: token[_tokenize.FIELDS.START_POS] }); - var _unescapeValue = (0, _attribute$1.unescapeValue)(content), unescaped = _unescapeValue.unescaped, quoteMark = _unescapeValue.quoteMark; - node.value = unescaped; - node.quoteMark = quoteMark; - lastAdded = "value"; - (0, _util.ensureObject)(node, "raws"); - node.raws.value = content; - spaceAfterMeaningfulToken = false; - break; - case tokens.equals: - if (!node.attribute) return this.expected("attribute", token[_tokenize.FIELDS.START_POS], content); - if (node.value) return this.error("Unexpected \"=\" found; an operator was already defined.", { index: token[_tokenize.FIELDS.START_POS] }); - node.operator = node.operator ? node.operator + content : content; - lastAdded = "operator"; - spaceAfterMeaningfulToken = false; - break; - case tokens.comment: - if (lastAdded) if (spaceAfterMeaningfulToken || next && next[_tokenize.FIELDS.TYPE] === tokens.space || lastAdded === "insensitive") { - var lastComment = (0, _util.getProp)(node, "spaces", lastAdded, "after") || ""; - var rawLastComment = (0, _util.getProp)(node, "raws", "spaces", lastAdded, "after") || lastComment; - (0, _util.ensureObject)(node, "raws", "spaces", lastAdded); - node.raws.spaces[lastAdded].after = rawLastComment + content; - } else { - var lastValue = node[lastAdded] || ""; - var rawLastValue = (0, _util.getProp)(node, "raws", lastAdded) || lastValue; - (0, _util.ensureObject)(node, "raws"); - node.raws[lastAdded] = rawLastValue + content; - } - else commentBefore = commentBefore + content; - break; - default: return this.error("Unexpected \"" + content + "\" found.", { index: token[_tokenize.FIELDS.START_POS] }); - } - pos++; - } - unescapeProp(node, "attribute"); - unescapeProp(node, "namespace"); - this.newNode(new _attribute$1["default"](node)); - this.position++; - }; - _proto.parseWhitespaceEquivalentTokens = function parseWhitespaceEquivalentTokens(stopPosition) { - if (stopPosition < 0) stopPosition = this.tokens.length; - var startPosition = this.position; - var nodes = []; - var space$1 = ""; - var lastComment = void 0; - do - if (WHITESPACE_TOKENS[this.currToken[_tokenize.FIELDS.TYPE]]) { - if (!this.options.lossy) space$1 += this.content(); - } else if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.comment) { - var spaces = {}; - if (space$1) { - spaces.before = space$1; - space$1 = ""; - } - lastComment = new _comment$1["default"]({ - value: this.content(), - source: getTokenSource(this.currToken), - sourceIndex: this.currToken[_tokenize.FIELDS.START_POS], - spaces - }); - nodes.push(lastComment); - } - while (++this.position < stopPosition); - if (space$1) { - if (lastComment) lastComment.spaces.after = space$1; - else if (!this.options.lossy) { - var firstToken = this.tokens[startPosition]; - var lastToken = this.tokens[this.position - 1]; - nodes.push(new _string$1["default"]({ - value: "", - source: getSource(firstToken[_tokenize.FIELDS.START_LINE], firstToken[_tokenize.FIELDS.START_COL], lastToken[_tokenize.FIELDS.END_LINE], lastToken[_tokenize.FIELDS.END_COL]), - sourceIndex: firstToken[_tokenize.FIELDS.START_POS], - spaces: { - before: space$1, - after: "" - } - })); - } - } - return nodes; - }; - _proto.convertWhitespaceNodesToSpace = function convertWhitespaceNodesToSpace(nodes, requiredSpace) { - var _this2 = this; - if (requiredSpace === void 0) requiredSpace = false; - var space$1 = ""; - var rawSpace = ""; - nodes.forEach(function(n) { - var spaceBefore = _this2.lossySpace(n.spaces.before, requiredSpace); - var rawSpaceBefore = _this2.lossySpace(n.rawSpaceBefore, requiredSpace); - space$1 += spaceBefore + _this2.lossySpace(n.spaces.after, requiredSpace && spaceBefore.length === 0); - rawSpace += spaceBefore + n.value + _this2.lossySpace(n.rawSpaceAfter, requiredSpace && rawSpaceBefore.length === 0); - }); - if (rawSpace === space$1) rawSpace = void 0; - var result = { - space: space$1, - rawSpace - }; - return result; - }; - _proto.isNamedCombinator = function isNamedCombinator(position) { - if (position === void 0) position = this.position; - return this.tokens[position + 0] && this.tokens[position + 0][_tokenize.FIELDS.TYPE] === tokens.slash && this.tokens[position + 1] && this.tokens[position + 1][_tokenize.FIELDS.TYPE] === tokens.word && this.tokens[position + 2] && this.tokens[position + 2][_tokenize.FIELDS.TYPE] === tokens.slash; - }; - _proto.namedCombinator = function namedCombinator() { - if (this.isNamedCombinator()) { - var nameRaw = this.content(this.tokens[this.position + 1]); - var name = (0, _util.unesc)(nameRaw).toLowerCase(); - var raws = {}; - if (name !== nameRaw) raws.value = "/" + nameRaw + "/"; - var node = new _combinator$1["default"]({ - value: "/" + name + "/", - source: getSource(this.currToken[_tokenize.FIELDS.START_LINE], this.currToken[_tokenize.FIELDS.START_COL], this.tokens[this.position + 2][_tokenize.FIELDS.END_LINE], this.tokens[this.position + 2][_tokenize.FIELDS.END_COL]), - sourceIndex: this.currToken[_tokenize.FIELDS.START_POS], - raws - }); - this.position = this.position + 3; - return node; - } else this.unexpected(); - }; - _proto.combinator = function combinator$2() { - var _this3 = this; - if (this.content() === "|") return this.namespace(); - var nextSigTokenPos = this.locateNextMeaningfulToken(this.position); - if (nextSigTokenPos < 0 || this.tokens[nextSigTokenPos][_tokenize.FIELDS.TYPE] === tokens.comma || this.tokens[nextSigTokenPos][_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) { - var nodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos); - if (nodes.length > 0) { - var last = this.current.last; - if (last) { - var _this$convertWhitespa = this.convertWhitespaceNodesToSpace(nodes), space$1 = _this$convertWhitespa.space, rawSpace = _this$convertWhitespa.rawSpace; - if (rawSpace !== void 0) last.rawSpaceAfter += rawSpace; - last.spaces.after += space$1; - } else nodes.forEach(function(n) { - return _this3.newNode(n); - }); - } - return; - } - var firstToken = this.currToken; - var spaceOrDescendantSelectorNodes = void 0; - if (nextSigTokenPos > this.position) spaceOrDescendantSelectorNodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos); - var node; - if (this.isNamedCombinator()) node = this.namedCombinator(); - else if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.combinator) { - node = new _combinator$1["default"]({ - value: this.content(), - source: getTokenSource(this.currToken), - sourceIndex: this.currToken[_tokenize.FIELDS.START_POS] - }); - this.position++; - } else if (WHITESPACE_TOKENS[this.currToken[_tokenize.FIELDS.TYPE]]) {} else if (!spaceOrDescendantSelectorNodes) this.unexpected(); - if (node) { - if (spaceOrDescendantSelectorNodes) { - var _this$convertWhitespa2 = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes), _space = _this$convertWhitespa2.space, _rawSpace = _this$convertWhitespa2.rawSpace; - node.spaces.before = _space; - node.rawSpaceBefore = _rawSpace; - } - } else { - var _this$convertWhitespa3 = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes, true), _space2 = _this$convertWhitespa3.space, _rawSpace2 = _this$convertWhitespa3.rawSpace; - if (!_rawSpace2) _rawSpace2 = _space2; - var spaces = {}; - var raws = { spaces: {} }; - if (_space2.endsWith(" ") && _rawSpace2.endsWith(" ")) { - spaces.before = _space2.slice(0, _space2.length - 1); - raws.spaces.before = _rawSpace2.slice(0, _rawSpace2.length - 1); - } else if (_space2.startsWith(" ") && _rawSpace2.startsWith(" ")) { - spaces.after = _space2.slice(1); - raws.spaces.after = _rawSpace2.slice(1); - } else raws.value = _rawSpace2; - node = new _combinator$1["default"]({ - value: " ", - source: getTokenSourceSpan(firstToken, this.tokens[this.position - 1]), - sourceIndex: firstToken[_tokenize.FIELDS.START_POS], - spaces, - raws - }); - } - if (this.currToken && this.currToken[_tokenize.FIELDS.TYPE] === tokens.space) { - node.spaces.after = this.optionalSpace(this.content()); - this.position++; - } - return this.newNode(node); - }; - _proto.comma = function comma$1() { - if (this.position === this.tokens.length - 1) { - this.root.trailingComma = true; - this.position++; - return; - } - this.current._inferEndPosition(); - var selector$1 = new _selector$1["default"]({ - source: { start: tokenStart(this.tokens[this.position + 1]) }, - sourceIndex: this.tokens[this.position + 1][_tokenize.FIELDS.START_POS] - }); - this.current.parent.append(selector$1); - this.current = selector$1; - this.position++; - }; - _proto.comment = function comment$2() { - var current = this.currToken; - this.newNode(new _comment$1["default"]({ - value: this.content(), - source: getTokenSource(current), - sourceIndex: current[_tokenize.FIELDS.START_POS] - })); - this.position++; - }; - _proto.error = function error(message, opts) { - throw this.root.error(message, opts); - }; - _proto.missingBackslash = function missingBackslash() { - return this.error("Expected a backslash preceding the semicolon.", { index: this.currToken[_tokenize.FIELDS.START_POS] }); - }; - _proto.missingParenthesis = function missingParenthesis() { - return this.expected("opening parenthesis", this.currToken[_tokenize.FIELDS.START_POS]); - }; - _proto.missingSquareBracket = function missingSquareBracket() { - return this.expected("opening square bracket", this.currToken[_tokenize.FIELDS.START_POS]); - }; - _proto.unexpected = function unexpected() { - return this.error("Unexpected '" + this.content() + "'. Escaping special characters with \\ may help.", this.currToken[_tokenize.FIELDS.START_POS]); - }; - _proto.unexpectedPipe = function unexpectedPipe() { - return this.error("Unexpected '|'.", this.currToken[_tokenize.FIELDS.START_POS]); - }; - _proto.namespace = function namespace() { - var before = this.prevToken && this.content(this.prevToken) || true; - if (this.nextToken[_tokenize.FIELDS.TYPE] === tokens.word) { - this.position++; - return this.word(before); - } else if (this.nextToken[_tokenize.FIELDS.TYPE] === tokens.asterisk) { - this.position++; - return this.universal(before); - } - this.unexpectedPipe(); - }; - _proto.nesting = function nesting$1() { - if (this.nextToken) { - var nextContent = this.content(this.nextToken); - if (nextContent === "|") { - this.position++; - return; - } - } - var current = this.currToken; - this.newNode(new _nesting$1["default"]({ - value: this.content(), - source: getTokenSource(current), - sourceIndex: current[_tokenize.FIELDS.START_POS] - })); - this.position++; - }; - _proto.parentheses = function parentheses() { - var last = this.current.last; - var unbalanced = 1; - this.position++; - if (last && last.type === types.PSEUDO) { - var selector$1 = new _selector$1["default"]({ - source: { start: tokenStart(this.tokens[this.position]) }, - sourceIndex: this.tokens[this.position][_tokenize.FIELDS.START_POS] - }); - var cache = this.current; - last.append(selector$1); - this.current = selector$1; - while (this.position < this.tokens.length && unbalanced) { - if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) unbalanced++; - if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) unbalanced--; - if (unbalanced) this.parse(); - else { - this.current.source.end = tokenEnd(this.currToken); - this.current.parent.source.end = tokenEnd(this.currToken); - this.position++; - } - } - this.current = cache; - } else { - var parenStart = this.currToken; - var parenValue = "("; - var parenEnd; - while (this.position < this.tokens.length && unbalanced) { - if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) unbalanced++; - if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) unbalanced--; - parenEnd = this.currToken; - parenValue += this.parseParenthesisToken(this.currToken); - this.position++; - } - if (last) last.appendToPropertyAndEscape("value", parenValue, parenValue); - else this.newNode(new _string$1["default"]({ - value: parenValue, - source: getSource(parenStart[_tokenize.FIELDS.START_LINE], parenStart[_tokenize.FIELDS.START_COL], parenEnd[_tokenize.FIELDS.END_LINE], parenEnd[_tokenize.FIELDS.END_COL]), - sourceIndex: parenStart[_tokenize.FIELDS.START_POS] - })); - } - if (unbalanced) return this.expected("closing parenthesis", this.currToken[_tokenize.FIELDS.START_POS]); - }; - _proto.pseudo = function pseudo$1() { - var _this4 = this; - var pseudoStr = ""; - var startingToken = this.currToken; - while (this.currToken && this.currToken[_tokenize.FIELDS.TYPE] === tokens.colon) { - pseudoStr += this.content(); - this.position++; - } - if (!this.currToken) return this.expected(["pseudo-class", "pseudo-element"], this.position - 1); - if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.word) this.splitWord(false, function(first, length) { - pseudoStr += first; - _this4.newNode(new _pseudo$1["default"]({ - value: pseudoStr, - source: getTokenSourceSpan(startingToken, _this4.currToken), - sourceIndex: startingToken[_tokenize.FIELDS.START_POS] - })); - if (length > 1 && _this4.nextToken && _this4.nextToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) _this4.error("Misplaced parenthesis.", { index: _this4.nextToken[_tokenize.FIELDS.START_POS] }); - }); - else return this.expected(["pseudo-class", "pseudo-element"], this.currToken[_tokenize.FIELDS.START_POS]); - }; - _proto.space = function space$1() { - var content = this.content(); - if (this.position === 0 || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.comma || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis || this.current.nodes.every(function(node) { - return node.type === "comment"; - })) { - this.spaces = this.optionalSpace(content); - this.position++; - } else if (this.position === this.tokens.length - 1 || this.nextToken[_tokenize.FIELDS.TYPE] === tokens.comma || this.nextToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) { - this.current.last.spaces.after = this.optionalSpace(content); - this.position++; - } else this.combinator(); - }; - _proto.string = function string$1() { - var current = this.currToken; - this.newNode(new _string$1["default"]({ - value: this.content(), - source: getTokenSource(current), - sourceIndex: current[_tokenize.FIELDS.START_POS] - })); - this.position++; - }; - _proto.universal = function universal$1(namespace) { - var nextToken = this.nextToken; - if (nextToken && this.content(nextToken) === "|") { - this.position++; - return this.namespace(); - } - var current = this.currToken; - this.newNode(new _universal$1["default"]({ - value: this.content(), - source: getTokenSource(current), - sourceIndex: current[_tokenize.FIELDS.START_POS] - }), namespace); - this.position++; - }; - _proto.splitWord = function splitWord(namespace, firstCallback) { - var _this5 = this; - var nextToken = this.nextToken; - var word$1 = this.content(); - while (nextToken && ~[ - tokens.dollar, - tokens.caret, - tokens.equals, - tokens.word - ].indexOf(nextToken[_tokenize.FIELDS.TYPE])) { - this.position++; - var current = this.content(); - word$1 += current; - if (current.lastIndexOf("\\") === current.length - 1) { - var next = this.nextToken; - if (next && next[_tokenize.FIELDS.TYPE] === tokens.space) { - word$1 += this.requiredSpace(this.content(next)); - this.position++; - } - } - nextToken = this.nextToken; - } - var hasClass = indexesOf(word$1, ".").filter(function(i$1) { - var escapedDot = word$1[i$1 - 1] === "\\"; - var isKeyframesPercent = /^\d+\.\d+%$/.test(word$1); - return !escapedDot && !isKeyframesPercent; - }); - var hasId = indexesOf(word$1, "#").filter(function(i$1) { - return word$1[i$1 - 1] !== "\\"; - }); - var interpolations = indexesOf(word$1, "#{"); - if (interpolations.length) hasId = hasId.filter(function(hashIndex) { - return !~interpolations.indexOf(hashIndex); - }); - var indices = (0, _sortAscending["default"])(uniqs([0].concat(hasClass, hasId))); - indices.forEach(function(ind, i$1) { - var index = indices[i$1 + 1] || word$1.length; - var value = word$1.slice(ind, index); - if (i$1 === 0 && firstCallback) return firstCallback.call(_this5, value, indices.length); - var node; - var current$1 = _this5.currToken; - var sourceIndex = current$1[_tokenize.FIELDS.START_POS] + indices[i$1]; - var source = getSource(current$1[1], current$1[2] + ind, current$1[3], current$1[2] + (index - 1)); - if (~hasClass.indexOf(ind)) { - var classNameOpts = { - value: value.slice(1), - source, - sourceIndex - }; - node = new _className$1["default"](unescapeProp(classNameOpts, "value")); - } else if (~hasId.indexOf(ind)) { - var idOpts = { - value: value.slice(1), - source, - sourceIndex - }; - node = new _id$1["default"](unescapeProp(idOpts, "value")); - } else { - var tagOpts = { - value, - source, - sourceIndex - }; - unescapeProp(tagOpts, "value"); - node = new _tag$1["default"](tagOpts); - } - _this5.newNode(node, namespace); - namespace = null; - }); - this.position++; - }; - _proto.word = function word$1(namespace) { - var nextToken = this.nextToken; - if (nextToken && this.content(nextToken) === "|") { - this.position++; - return this.namespace(); - } - return this.splitWord(namespace); - }; - _proto.loop = function loop() { - while (this.position < this.tokens.length) this.parse(true); - this.current._inferEndPosition(); - return this.root; - }; - _proto.parse = function parse(throwOnParenthesis) { - switch (this.currToken[_tokenize.FIELDS.TYPE]) { - case tokens.space: - this.space(); - break; - case tokens.comment: - this.comment(); - break; - case tokens.openParenthesis: - this.parentheses(); - break; - case tokens.closeParenthesis: - if (throwOnParenthesis) this.missingParenthesis(); - break; - case tokens.openSquare: - this.attribute(); - break; - case tokens.dollar: - case tokens.caret: - case tokens.equals: - case tokens.word: - this.word(); - break; - case tokens.colon: - this.pseudo(); - break; - case tokens.comma: - this.comma(); - break; - case tokens.asterisk: - this.universal(); - break; - case tokens.ampersand: - this.nesting(); - break; - case tokens.slash: - case tokens.combinator: - this.combinator(); - break; - case tokens.str: - this.string(); - break; - case tokens.closeSquare: this.missingSquareBracket(); - case tokens.semicolon: this.missingBackslash(); - default: this.unexpected(); - } - }; - _proto.expected = function expected(description, index, found) { - if (Array.isArray(description)) { - var last = description.pop(); - description = description.join(", ") + " or " + last; - } - var an = /^[aeiou]/.test(description[0]) ? "an" : "a"; - if (!found) return this.error("Expected " + an + " " + description + ".", { index }); - return this.error("Expected " + an + " " + description + ", found \"" + found + "\" instead.", { index }); - }; - _proto.requiredSpace = function requiredSpace(space$1) { - return this.options.lossy ? " " : space$1; - }; - _proto.optionalSpace = function optionalSpace(space$1) { - return this.options.lossy ? "" : space$1; - }; - _proto.lossySpace = function lossySpace(space$1, required) { - if (this.options.lossy) return required ? " " : ""; - else return space$1; - }; - _proto.parseParenthesisToken = function parseParenthesisToken(token) { - var content = this.content(token); - if (token[_tokenize.FIELDS.TYPE] === tokens.space) return this.requiredSpace(content); - else return content; - }; - _proto.newNode = function newNode(node, namespace) { - if (namespace) { - if (/^ +$/.test(namespace)) { - if (!this.options.lossy) this.spaces = (this.spaces || "") + namespace; - namespace = true; - } - node.namespace = namespace; - unescapeProp(node, "namespace"); - } - if (this.spaces) { - node.spaces.before = this.spaces; - this.spaces = ""; - } - return this.current.append(node); - }; - _proto.content = function content(token) { - if (token === void 0) token = this.currToken; - return this.css.slice(token[_tokenize.FIELDS.START_POS], token[_tokenize.FIELDS.END_POS]); - }; - /** - * returns the index of the next non-whitespace, non-comment token. - * returns -1 if no meaningful token is found. - */ - _proto.locateNextMeaningfulToken = function locateNextMeaningfulToken(startPosition) { - if (startPosition === void 0) startPosition = this.position + 1; - var searchPosition = startPosition; - while (searchPosition < this.tokens.length) if (WHITESPACE_EQUIV_TOKENS[this.tokens[searchPosition][_tokenize.FIELDS.TYPE]]) { - searchPosition++; - continue; - } else return searchPosition; - return -1; - }; - _createClass(Parser$2, [ - { - key: "currToken", - get: function get() { - return this.tokens[this.position]; - } - }, - { - key: "nextToken", - get: function get() { - return this.tokens[this.position + 1]; - } - }, - { - key: "prevToken", - get: function get() { - return this.tokens[this.position - 1]; - } - } - ]); - return Parser$2; - }(); - exports["default"] = Parser; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/processor.js -var require_processor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/processor.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _parser = _interopRequireDefault$4(require_parser()); - function _interopRequireDefault$4(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - var Processor = /* @__PURE__ */ function() { - function Processor$1(func, options) { - this.func = func || function noop() {}; - this.funcRes = null; - this.options = options; - } - var _proto = Processor$1.prototype; - _proto._shouldUpdateSelector = function _shouldUpdateSelector(rule, options) { - if (options === void 0) options = {}; - var merged = Object.assign({}, this.options, options); - if (merged.updateSelector === false) return false; - else return typeof rule !== "string"; - }; - _proto._isLossy = function _isLossy(options) { - if (options === void 0) options = {}; - var merged = Object.assign({}, this.options, options); - if (merged.lossless === false) return true; - else return false; - }; - _proto._root = function _root$2(rule, options) { - if (options === void 0) options = {}; - var parser$1 = new _parser["default"](rule, this._parseOptions(options)); - return parser$1.root; - }; - _proto._parseOptions = function _parseOptions(options) { - return { lossy: this._isLossy(options) }; - }; - _proto._run = function _run(rule, options) { - var _this = this; - if (options === void 0) options = {}; - return new Promise(function(resolve, reject) { - try { - var root$2 = _this._root(rule, options); - Promise.resolve(_this.func(root$2)).then(function(transform) { - var string$1 = void 0; - if (_this._shouldUpdateSelector(rule, options)) { - string$1 = root$2.toString(); - rule.selector = string$1; - } - return { - transform, - root: root$2, - string: string$1 - }; - }).then(resolve, reject); - } catch (e) { - reject(e); - return; - } - }); - }; - _proto._runSync = function _runSync(rule, options) { - if (options === void 0) options = {}; - var root$2 = this._root(rule, options); - var transform = this.func(root$2); - if (transform && typeof transform.then === "function") throw new Error("Selector processor returned a promise to a synchronous call."); - var string$1 = void 0; - if (options.updateSelector && typeof rule !== "string") { - string$1 = root$2.toString(); - rule.selector = string$1; - } - return { - transform, - root: root$2, - string: string$1 - }; - }; - _proto.ast = function ast(rule, options) { - return this._run(rule, options).then(function(result) { - return result.root; - }); - }; - _proto.astSync = function astSync(rule, options) { - return this._runSync(rule, options).root; - }; - _proto.transform = function transform(rule, options) { - return this._run(rule, options).then(function(result) { - return result.transform; - }); - }; - _proto.transformSync = function transformSync(rule, options) { - return this._runSync(rule, options).transform; - }; - _proto.process = function process$1(rule, options) { - return this._run(rule, options).then(function(result) { - return result.string || result.root.toString(); - }); - }; - _proto.processSync = function processSync(rule, options) { - var result = this._runSync(rule, options); - return result.string || result.root.toString(); - }; - return Processor$1; - }(); - exports["default"] = Processor; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/constructors.js -var require_constructors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/constructors.js": ((exports) => { - exports.__esModule = true; - exports.universal = exports.tag = exports.string = exports.selector = exports.root = exports.pseudo = exports.nesting = exports.id = exports.comment = exports.combinator = exports.className = exports.attribute = void 0; - var _attribute = _interopRequireDefault$3(require_attribute()); - var _className = _interopRequireDefault$3(require_className()); - var _combinator = _interopRequireDefault$3(require_combinator()); - var _comment = _interopRequireDefault$3(require_comment()); - var _id = _interopRequireDefault$3(require_id()); - var _nesting = _interopRequireDefault$3(require_nesting()); - var _pseudo = _interopRequireDefault$3(require_pseudo()); - var _root = _interopRequireDefault$3(require_root()); - var _selector = _interopRequireDefault$3(require_selector()); - var _string = _interopRequireDefault$3(require_string()); - var _tag = _interopRequireDefault$3(require_tag()); - var _universal = _interopRequireDefault$3(require_universal()); - function _interopRequireDefault$3(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - var attribute = function attribute$1(opts) { - return new _attribute["default"](opts); - }; - exports.attribute = attribute; - var className = function className$1(opts) { - return new _className["default"](opts); - }; - exports.className = className; - var combinator = function combinator$2(opts) { - return new _combinator["default"](opts); - }; - exports.combinator = combinator; - var comment = function comment$2(opts) { - return new _comment["default"](opts); - }; - exports.comment = comment; - var id = function id$1(opts) { - return new _id["default"](opts); - }; - exports.id = id; - var nesting = function nesting$1(opts) { - return new _nesting["default"](opts); - }; - exports.nesting = nesting; - var pseudo = function pseudo$1(opts) { - return new _pseudo["default"](opts); - }; - exports.pseudo = pseudo; - var root = function root$2(opts) { - return new _root["default"](opts); - }; - exports.root = root; - var selector = function selector$1(opts) { - return new _selector["default"](opts); - }; - exports.selector = selector; - var string = function string$1(opts) { - return new _string["default"](opts); - }; - exports.string = string; - var tag = function tag$1(opts) { - return new _tag["default"](opts); - }; - exports.tag = tag; - var universal = function universal$1(opts) { - return new _universal["default"](opts); - }; - exports.universal = universal; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/guards.js -var require_guards = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/guards.js": ((exports) => { - exports.__esModule = true; - exports.isComment = exports.isCombinator = exports.isClassName = exports.isAttribute = void 0; - exports.isContainer = isContainer; - exports.isIdentifier = void 0; - exports.isNamespace = isNamespace; - exports.isNesting = void 0; - exports.isNode = isNode; - exports.isPseudo = void 0; - exports.isPseudoClass = isPseudoClass; - exports.isPseudoElement = isPseudoElement; - exports.isUniversal = exports.isTag = exports.isString = exports.isSelector = exports.isRoot = void 0; - var _types$1 = require_types(); - var _IS_TYPE; - var IS_TYPE = (_IS_TYPE = {}, _IS_TYPE[_types$1.ATTRIBUTE] = true, _IS_TYPE[_types$1.CLASS] = true, _IS_TYPE[_types$1.COMBINATOR] = true, _IS_TYPE[_types$1.COMMENT] = true, _IS_TYPE[_types$1.ID] = true, _IS_TYPE[_types$1.NESTING] = true, _IS_TYPE[_types$1.PSEUDO] = true, _IS_TYPE[_types$1.ROOT] = true, _IS_TYPE[_types$1.SELECTOR] = true, _IS_TYPE[_types$1.STRING] = true, _IS_TYPE[_types$1.TAG] = true, _IS_TYPE[_types$1.UNIVERSAL] = true, _IS_TYPE); - function isNode(node) { - return typeof node === "object" && IS_TYPE[node.type]; - } - function isNodeType(type, node) { - return isNode(node) && node.type === type; - } - var isAttribute = isNodeType.bind(null, _types$1.ATTRIBUTE); - exports.isAttribute = isAttribute; - var isClassName = isNodeType.bind(null, _types$1.CLASS); - exports.isClassName = isClassName; - var isCombinator = isNodeType.bind(null, _types$1.COMBINATOR); - exports.isCombinator = isCombinator; - var isComment = isNodeType.bind(null, _types$1.COMMENT); - exports.isComment = isComment; - var isIdentifier = isNodeType.bind(null, _types$1.ID); - exports.isIdentifier = isIdentifier; - var isNesting = isNodeType.bind(null, _types$1.NESTING); - exports.isNesting = isNesting; - var isPseudo = isNodeType.bind(null, _types$1.PSEUDO); - exports.isPseudo = isPseudo; - var isRoot = isNodeType.bind(null, _types$1.ROOT); - exports.isRoot = isRoot; - var isSelector = isNodeType.bind(null, _types$1.SELECTOR); - exports.isSelector = isSelector; - var isString = isNodeType.bind(null, _types$1.STRING); - exports.isString = isString; - var isTag = isNodeType.bind(null, _types$1.TAG); - exports.isTag = isTag; - var isUniversal = isNodeType.bind(null, _types$1.UNIVERSAL); - exports.isUniversal = isUniversal; - function isPseudoElement(node) { - return isPseudo(node) && node.value && (node.value.startsWith("::") || node.value.toLowerCase() === ":before" || node.value.toLowerCase() === ":after" || node.value.toLowerCase() === ":first-letter" || node.value.toLowerCase() === ":first-line"); - } - function isPseudoClass(node) { - return isPseudo(node) && !isPseudoElement(node); - } - function isContainer(node) { - return !!(isNode(node) && node.walk); - } - function isNamespace(node) { - return isAttribute(node) || isTag(node); - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/index.js -var require_selectors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/index.js": ((exports) => { - exports.__esModule = true; - var _types = require_types(); - Object.keys(_types).forEach(function(key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _types[key]) return; - exports[key] = _types[key]; - }); - var _constructors = require_constructors(); - Object.keys(_constructors).forEach(function(key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _constructors[key]) return; - exports[key] = _constructors[key]; - }); - var _guards = require_guards(); - Object.keys(_guards).forEach(function(key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _guards[key]) return; - exports[key] = _guards[key]; - }); -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/index.js -var require_dist = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/index.js": ((exports, module) => { - exports.__esModule = true; - exports["default"] = void 0; - var _processor = _interopRequireDefault$2(require_processor()); - var selectors = _interopRequireWildcard(require_selectors()); - function _getRequireWildcardCache(nodeInterop) { - if (typeof WeakMap !== "function") return null; - var cacheBabelInterop = /* @__PURE__ */ new WeakMap(); - var cacheNodeInterop = /* @__PURE__ */ new WeakMap(); - return (_getRequireWildcardCache = function _getRequireWildcardCache$4(nodeInterop$1) { - return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); - } - function _interopRequireWildcard(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) return obj; - if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { "default": obj }; - var cache = _getRequireWildcardCache(nodeInterop); - if (cache && cache.has(obj)) return cache.get(obj); - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; - if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc); - else newObj[key] = obj[key]; - } - newObj["default"] = obj; - if (cache) cache.set(obj, newObj); - return newObj; - } - function _interopRequireDefault$2(obj) { - return obj && obj.__esModule ? obj : { "default": obj }; - } - var parser = function parser$1(processor) { - return new _processor["default"](processor); - }; - Object.assign(parser, selectors); - delete parser.__esModule; - var _default = parser; - exports["default"] = _default; - module.exports = exports.default; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.6/node_modules/postcss-modules-local-by-default/src/index.js -var require_src$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.6/node_modules/postcss-modules-local-by-default/src/index.js": ((exports, module) => { - const selectorParser$1 = require_dist(); - const valueParser = require_lib(); - const { extractICSS } = require_src$4(); - const IGNORE_FILE_MARKER = "cssmodules-pure-no-check"; - const IGNORE_NEXT_LINE_MARKER = "cssmodules-pure-ignore"; - const isSpacing = (node) => node.type === "combinator" && node.value === " "; - const isPureCheckDisabled = (root$2) => { - for (const node of root$2.nodes) { - if (node.type !== "comment") return false; - if (node.text.trim().startsWith(IGNORE_FILE_MARKER)) return true; - } - return false; - }; - function getIgnoreComment(node) { - if (!node.parent) return; - const indexInParent = node.parent.index(node); - for (let i$1 = indexInParent - 1; i$1 >= 0; i$1--) { - const prevNode = node.parent.nodes[i$1]; - if (prevNode.type === "comment") { - if (prevNode.text.trimStart().startsWith(IGNORE_NEXT_LINE_MARKER)) return prevNode; - } else break; - } - } - function normalizeNodeArray(nodes) { - const array = []; - nodes.forEach((x) => { - if (Array.isArray(x)) normalizeNodeArray(x).forEach((item) => { - array.push(item); - }); - else if (x) array.push(x); - }); - if (array.length > 0 && isSpacing(array[array.length - 1])) array.pop(); - return array; - } - const isPureSelectorSymbol = Symbol("is-pure-selector"); - function localizeNode(rule, mode, localAliasMap) { - const transform = (node, context) => { - if (context.ignoreNextSpacing && !isSpacing(node)) throw new Error("Missing whitespace after " + context.ignoreNextSpacing); - if (context.enforceNoSpacing && isSpacing(node)) throw new Error("Missing whitespace before " + context.enforceNoSpacing); - let newNodes; - switch (node.type) { - case "root": { - let resultingGlobal; - context.hasPureGlobals = false; - newNodes = node.nodes.map((n) => { - const nContext = { - global: context.global, - lastWasSpacing: true, - hasLocals: false, - explicit: false - }; - n = transform(n, nContext); - if (typeof resultingGlobal === "undefined") resultingGlobal = nContext.global; - else if (resultingGlobal !== nContext.global) throw new Error("Inconsistent rule global/local result in rule \"" + node + "\" (multiple selectors must result in the same mode for the rule)"); - if (!nContext.hasLocals) context.hasPureGlobals = true; - return n; - }); - context.global = resultingGlobal; - node.nodes = normalizeNodeArray(newNodes); - break; - } - case "selector": - newNodes = node.map((childNode) => transform(childNode, context)); - node = node.clone(); - node.nodes = normalizeNodeArray(newNodes); - break; - case "combinator": - if (isSpacing(node)) { - if (context.ignoreNextSpacing) { - context.ignoreNextSpacing = false; - context.lastWasSpacing = false; - context.enforceNoSpacing = false; - return null; - } - context.lastWasSpacing = true; - return node; - } - break; - case "pseudo": { - let childContext; - const isNested = !!node.length; - const isScoped = node.value === ":local" || node.value === ":global"; - const isImportExport = node.value === ":import" || node.value === ":export"; - if (isImportExport) context.hasLocals = true; - else if (isNested) { - if (isScoped) { - if (node.nodes.length === 0) throw new Error(`${node.value}() can't be empty`); - if (context.inside) throw new Error(`A ${node.value} is not allowed inside of a ${context.inside}(...)`); - childContext = { - global: node.value === ":global", - inside: node.value, - hasLocals: false, - explicit: true - }; - newNodes = node.map((childNode) => transform(childNode, childContext)).reduce((acc, next) => acc.concat(next.nodes), []); - if (newNodes.length) { - const { before, after } = node.spaces; - const first = newNodes[0]; - const last = newNodes[newNodes.length - 1]; - first.spaces = { - before, - after: first.spaces.after - }; - last.spaces = { - before: last.spaces.before, - after - }; - } - node = newNodes; - break; - } else { - childContext = { - global: context.global, - inside: context.inside, - lastWasSpacing: true, - hasLocals: false, - explicit: context.explicit - }; - newNodes = node.map((childNode) => { - const newContext = { - ...childContext, - enforceNoSpacing: false - }; - const result = transform(childNode, newContext); - childContext.global = newContext.global; - childContext.hasLocals = newContext.hasLocals; - return result; - }); - node = node.clone(); - node.nodes = normalizeNodeArray(newNodes); - if (childContext.hasLocals) context.hasLocals = true; - } - break; - } else if (isScoped) { - if (context.inside) throw new Error(`A ${node.value} is not allowed inside of a ${context.inside}(...)`); - const addBackSpacing = !!node.spaces.before; - context.ignoreNextSpacing = context.lastWasSpacing ? node.value : false; - context.enforceNoSpacing = context.lastWasSpacing ? false : node.value; - context.global = node.value === ":global"; - context.explicit = true; - return addBackSpacing ? selectorParser$1.combinator({ value: " " }) : null; - } - break; - } - case "id": - case "class": { - if (!node.value) throw new Error("Invalid class or id selector syntax"); - if (context.global) break; - const isImportedValue = localAliasMap.has(node.value); - const isImportedWithExplicitScope = isImportedValue && context.explicit; - if (!isImportedValue || isImportedWithExplicitScope) { - const innerNode = node.clone(); - innerNode.spaces = { - before: "", - after: "" - }; - node = selectorParser$1.pseudo({ - value: ":local", - nodes: [innerNode], - spaces: node.spaces - }); - context.hasLocals = true; - } - break; - } - case "nesting": if (node.value === "&") context.hasLocals = rule.parent[isPureSelectorSymbol]; - } - context.lastWasSpacing = false; - context.ignoreNextSpacing = false; - context.enforceNoSpacing = false; - return node; - }; - const rootContext = { - global: mode === "global", - hasPureGlobals: false - }; - rootContext.selector = selectorParser$1((root$2) => { - transform(root$2, rootContext); - }).processSync(rule, { - updateSelector: false, - lossless: true - }); - return rootContext; - } - function localizeDeclNode(node, context) { - switch (node.type) { - case "word": - if (context.localizeNextItem) { - if (!context.localAliasMap.has(node.value)) { - node.value = ":local(" + node.value + ")"; - context.localizeNextItem = false; - } - } - break; - case "function": - if (context.options && context.options.rewriteUrl && node.value.toLowerCase() === "url") node.nodes.map((nestedNode) => { - if (nestedNode.type !== "string" && nestedNode.type !== "word") return; - let newUrl = context.options.rewriteUrl(context.global, nestedNode.value); - switch (nestedNode.type) { - case "string": - if (nestedNode.quote === "'") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/'/g, "\\'"); - if (nestedNode.quote === "\"") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/"/g, "\\\""); - break; - case "word": - newUrl = newUrl.replace(/("|'|\)|\\)/g, "\\$1"); - break; - } - nestedNode.value = newUrl; - }); - break; - } - return node; - } - const specialKeywords = [ - "none", - "inherit", - "initial", - "revert", - "revert-layer", - "unset" - ]; - function localizeDeclarationValues(localize, declaration, context) { - const valueNodes = valueParser(declaration.value); - valueNodes.walk((node, index, nodes) => { - if (node.type === "function" && (node.value.toLowerCase() === "var" || node.value.toLowerCase() === "env")) return false; - if (node.type === "word" && specialKeywords.includes(node.value.toLowerCase())) return; - const subContext = { - options: context.options, - global: context.global, - localizeNextItem: localize && !context.global, - localAliasMap: context.localAliasMap - }; - nodes[index] = localizeDeclNode(node, subContext); - }); - declaration.value = valueNodes.toString(); - } - const validIdent = /^-?([a-z\u0080-\uFFFF_]|(\\[^\r\n\f])|-(?![0-9]))((\\[^\r\n\f])|[a-z\u0080-\uFFFF_0-9-])*$/i; - const animationKeywords = { - $normal: 1, - $reverse: 1, - $alternate: 1, - "$alternate-reverse": 1, - $forwards: 1, - $backwards: 1, - $both: 1, - $infinite: 1, - $paused: 1, - $running: 1, - $ease: 1, - "$ease-in": 1, - "$ease-out": 1, - "$ease-in-out": 1, - $linear: 1, - "$step-end": 1, - "$step-start": 1, - $none: Infinity, - $initial: Infinity, - $inherit: Infinity, - $unset: Infinity, - $revert: Infinity, - "$revert-layer": Infinity - }; - function localizeDeclaration(declaration, context) { - const isAnimation = /animation(-name)?$/i.test(declaration.prop); - if (isAnimation) { - let parsedAnimationKeywords = {}; - const valueNodes = valueParser(declaration.value).walk((node) => { - if (node.type === "div") { - parsedAnimationKeywords = {}; - return; - } else if (node.type === "function" && node.value.toLowerCase() === "local" && node.nodes.length === 1) { - node.type = "word"; - node.value = node.nodes[0].value; - return localizeDeclNode(node, { - options: context.options, - global: context.global, - localizeNextItem: true, - localAliasMap: context.localAliasMap - }); - } else if (node.type === "function") { - if (node.value.toLowerCase() === "global" && node.nodes.length === 1) { - node.type = "word"; - node.value = node.nodes[0].value; - } - return false; - } else if (node.type !== "word") return; - const value = node.type === "word" ? node.value.toLowerCase() : null; - let shouldParseAnimationName = false; - if (value && validIdent.test(value)) if ("$" + value in animationKeywords) { - parsedAnimationKeywords["$" + value] = "$" + value in parsedAnimationKeywords ? parsedAnimationKeywords["$" + value] + 1 : 0; - shouldParseAnimationName = parsedAnimationKeywords["$" + value] >= animationKeywords["$" + value]; - } else shouldParseAnimationName = true; - return localizeDeclNode(node, { - options: context.options, - global: context.global, - localizeNextItem: shouldParseAnimationName && !context.global, - localAliasMap: context.localAliasMap - }); - }); - declaration.value = valueNodes.toString(); - return; - } - if (/url\(/i.test(declaration.value)) return localizeDeclarationValues(false, declaration, context); - } - const isPureSelector = (context, rule) => { - if (!rule.parent || rule.type === "root") return !context.hasPureGlobals; - if (rule.type === "rule" && rule[isPureSelectorSymbol]) return rule[isPureSelectorSymbol] || isPureSelector(context, rule.parent); - return !context.hasPureGlobals || isPureSelector(context, rule.parent); - }; - const isNodeWithoutDeclarations = (rule) => { - if (rule.nodes.length > 0) return !rule.nodes.every((item) => item.type === "rule" || item.type === "atrule" && !isNodeWithoutDeclarations(item)); - return true; - }; - module.exports = (options = {}) => { - if (options && options.mode && options.mode !== "global" && options.mode !== "local" && options.mode !== "pure") throw new Error("options.mode must be either \"global\", \"local\" or \"pure\" (default \"local\")"); - const pureMode = options && options.mode === "pure"; - const globalMode = options && options.mode === "global"; - return { - postcssPlugin: "postcss-modules-local-by-default", - prepare() { - const localAliasMap = /* @__PURE__ */ new Map(); - return { Once(root$2) { - const { icssImports } = extractICSS(root$2, false); - const enforcePureMode = pureMode && !isPureCheckDisabled(root$2); - Object.keys(icssImports).forEach((key) => { - Object.keys(icssImports[key]).forEach((prop) => { - localAliasMap.set(prop, icssImports[key][prop]); - }); - }); - root$2.walkAtRules((atRule) => { - if (/keyframes$/i.test(atRule.name)) { - const globalMatch = /^\s*:global\s*\((.+)\)\s*$/.exec(atRule.params); - const localMatch = /^\s*:local\s*\((.+)\)\s*$/.exec(atRule.params); - let globalKeyframes = globalMode; - if (globalMatch) { - if (enforcePureMode) { - const ignoreComment = getIgnoreComment(atRule); - if (!ignoreComment) throw atRule.error("@keyframes :global(...) is not allowed in pure mode"); - else ignoreComment.remove(); - } - atRule.params = globalMatch[1]; - globalKeyframes = true; - } else if (localMatch) { - atRule.params = localMatch[0]; - globalKeyframes = false; - } else if (atRule.params && !globalMode && !localAliasMap.has(atRule.params)) atRule.params = ":local(" + atRule.params + ")"; - atRule.walkDecls((declaration) => { - localizeDeclaration(declaration, { - localAliasMap, - options, - global: globalKeyframes - }); - }); - } else if (/scope$/i.test(atRule.name)) { - if (atRule.params) { - const ignoreComment = pureMode ? getIgnoreComment(atRule) : void 0; - if (ignoreComment) ignoreComment.remove(); - atRule.params = atRule.params.split("to").map((item) => { - const selector$1 = item.trim().slice(1, -1).trim(); - const context = localizeNode(selector$1, options.mode, localAliasMap); - context.options = options; - context.localAliasMap = localAliasMap; - if (enforcePureMode && context.hasPureGlobals && !ignoreComment) throw atRule.error("Selector in at-rule\"" + selector$1 + "\" is not pure (pure selectors must contain at least one local class or id)"); - return `(${context.selector})`; - }).join(" to "); - } - atRule.nodes.forEach((declaration) => { - if (declaration.type === "decl") localizeDeclaration(declaration, { - localAliasMap, - options, - global: globalMode - }); - }); - } else if (atRule.nodes) atRule.nodes.forEach((declaration) => { - if (declaration.type === "decl") localizeDeclaration(declaration, { - localAliasMap, - options, - global: globalMode - }); - }); - }); - root$2.walkRules((rule) => { - if (rule.parent && rule.parent.type === "atrule" && /keyframes$/i.test(rule.parent.name)) return; - const context = localizeNode(rule, options.mode, localAliasMap); - context.options = options; - context.localAliasMap = localAliasMap; - const ignoreComment = enforcePureMode ? getIgnoreComment(rule) : void 0; - const isNotPure = enforcePureMode && !isPureSelector(context, rule); - if (isNotPure && isNodeWithoutDeclarations(rule) && !ignoreComment) throw rule.error("Selector \"" + rule.selector + "\" is not pure (pure selectors must contain at least one local class or id)"); - else if (ignoreComment) ignoreComment.remove(); - if (pureMode) rule[isPureSelectorSymbol] = !isNotPure; - rule.selector = context.selector; - if (rule.nodes) rule.nodes.forEach((declaration) => localizeDeclaration(declaration, context)); - }); - } }; - } - }; - }; - module.exports.postcss = true; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.6/node_modules/postcss-modules-scope/src/index.js -var require_src$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.6/node_modules/postcss-modules-scope/src/index.js": ((exports, module) => { - const selectorParser = require_dist(); - const hasOwnProperty = Object.prototype.hasOwnProperty; - function isNestedRule(rule) { - if (!rule.parent || rule.parent.type === "root") return false; - if (rule.parent.type === "rule") return true; - return isNestedRule(rule.parent); - } - function getSingleLocalNamesForComposes(root$2, rule) { - if (isNestedRule(rule)) throw new Error(`composition is not allowed in nested rule \n\n${rule}`); - return root$2.nodes.map((node) => { - if (node.type !== "selector" || node.nodes.length !== 1) throw new Error(`composition is only allowed when selector is single :local class name not in "${root$2}"`); - node = node.nodes[0]; - if (node.type !== "pseudo" || node.value !== ":local" || node.nodes.length !== 1) throw new Error("composition is only allowed when selector is single :local class name not in \"" + root$2 + "\", \"" + node + "\" is weird"); - node = node.first; - if (node.type !== "selector" || node.length !== 1) throw new Error("composition is only allowed when selector is single :local class name not in \"" + root$2 + "\", \"" + node + "\" is weird"); - node = node.first; - if (node.type !== "class") throw new Error("composition is only allowed when selector is single :local class name not in \"" + root$2 + "\", \"" + node + "\" is weird"); - return node.value; - }); - } - const whitespace = "[\\x20\\t\\r\\n\\f]"; - const unescapeRegExp = new RegExp("\\\\([\\da-f]{1,6}" + whitespace + "?|([\\x20\\t\\r\\n\\f])|.)", "ig"); - function unescape(str$1) { - return str$1.replace(unescapeRegExp, (_, escaped, escapedWhitespace) => { - const high = "0x" + escaped - 65536; - return high !== high || escapedWhitespace ? escaped : high < 0 ? String.fromCharCode(high + 65536) : String.fromCharCode(high >> 10 | 55296, high & 1023 | 56320); - }); - } - const plugin = (options = {}) => { - const generateScopedName = options && options.generateScopedName || plugin.generateScopedName; - const generateExportEntry = options && options.generateExportEntry || plugin.generateExportEntry; - const exportGlobals = options && options.exportGlobals; - return { - postcssPlugin: "postcss-modules-scope", - Once(root$2, { rule }) { - const exports$1 = Object.create(null); - function exportScopedName(name, rawName, node) { - const scopedName = generateScopedName(rawName ? rawName : name, root$2.source.input.from, root$2.source.input.css, node); - const exportEntry = generateExportEntry(rawName ? rawName : name, scopedName, root$2.source.input.from, root$2.source.input.css, node); - const { key, value } = exportEntry; - exports$1[key] = exports$1[key] || []; - if (exports$1[key].indexOf(value) < 0) exports$1[key].push(value); - return scopedName; - } - function localizeNode$1(node) { - switch (node.type) { - case "selector": - node.nodes = node.map((item) => localizeNode$1(item)); - return node; - case "class": return selectorParser.className({ value: exportScopedName(node.value, node.raws && node.raws.value ? node.raws.value : null, node) }); - case "id": return selectorParser.id({ value: exportScopedName(node.value, node.raws && node.raws.value ? node.raws.value : null, node) }); - case "attribute": if (node.attribute === "class" && node.operator === "=") return selectorParser.attribute({ - attribute: node.attribute, - operator: node.operator, - quoteMark: "'", - value: exportScopedName(node.value, null, null) - }); - } - throw new Error(`${node.type} ("${node}") is not allowed in a :local block`); - } - function traverseNode(node) { - switch (node.type) { - case "pseudo": if (node.value === ":local") { - if (node.nodes.length !== 1) throw new Error("Unexpected comma (\",\") in :local block"); - const selector$1 = localizeNode$1(node.first); - selector$1.first.spaces = node.spaces; - const nextNode = node.next(); - if (nextNode && nextNode.type === "combinator" && nextNode.value === " " && /\\[A-F0-9]{1,6}$/.test(selector$1.last.value)) selector$1.last.spaces.after = " "; - node.replaceWith(selector$1); - return; - } - case "root": - case "selector": - node.each((item) => traverseNode(item)); - break; - case "id": - case "class": - if (exportGlobals) exports$1[node.value] = [node.value]; - break; - } - return node; - } - const importedNames = {}; - root$2.walkRules(/^:import\(.+\)$/, (rule$1) => { - rule$1.walkDecls((decl) => { - importedNames[decl.prop] = true; - }); - }); - root$2.walkRules((rule$1) => { - let parsedSelector = selectorParser().astSync(rule$1); - rule$1.selector = traverseNode(parsedSelector.clone()).toString(); - rule$1.walkDecls(/^(composes|compose-with)$/i, (decl) => { - const localNames = getSingleLocalNamesForComposes(parsedSelector, decl.parent); - const multiple = decl.value.split(","); - multiple.forEach((value) => { - const classes = value.trim().split(/\s+/); - classes.forEach((className$1) => { - const global$1 = /^global\(([^)]+)\)$/.exec(className$1); - if (global$1) localNames.forEach((exportedName) => { - exports$1[exportedName].push(global$1[1]); - }); - else if (hasOwnProperty.call(importedNames, className$1)) localNames.forEach((exportedName) => { - exports$1[exportedName].push(className$1); - }); - else if (hasOwnProperty.call(exports$1, className$1)) localNames.forEach((exportedName) => { - exports$1[className$1].forEach((item) => { - exports$1[exportedName].push(item); - }); - }); - else throw decl.error(`referenced class name "${className$1}" in ${decl.prop} not found`); - }); - }); - decl.remove(); - }); - rule$1.walkDecls((decl) => { - if (!/:local\s*\((.+?)\)/.test(decl.value)) return; - let tokens$1 = decl.value.split(/(,|'[^']*'|"[^"]*")/); - tokens$1 = tokens$1.map((token, idx) => { - if (idx === 0 || tokens$1[idx - 1] === ",") { - let result = token; - const localMatch = /:local\s*\((.+?)\)/.exec(token); - if (localMatch) { - const input = localMatch.input; - const matchPattern = localMatch[0]; - const matchVal = localMatch[1]; - const newVal = exportScopedName(matchVal); - result = input.replace(matchPattern, newVal); - } else return token; - return result; - } else return token; - }); - decl.value = tokens$1.join(""); - }); - }); - root$2.walkAtRules(/keyframes$/i, (atRule) => { - const localMatch = /^\s*:local\s*\((.+?)\)\s*$/.exec(atRule.params); - if (!localMatch) return; - atRule.params = exportScopedName(localMatch[1]); - }); - root$2.walkAtRules(/scope$/i, (atRule) => { - if (atRule.params) atRule.params = atRule.params.split("to").map((item) => { - const selector$1 = item.trim().slice(1, -1).trim(); - const localMatch = /^\s*:local\s*\((.+?)\)\s*$/.exec(selector$1); - if (!localMatch) return `(${selector$1})`; - let parsedSelector = selectorParser().astSync(selector$1); - return `(${traverseNode(parsedSelector).toString()})`; - }).join(" to "); - }); - const exportedNames = Object.keys(exports$1); - if (exportedNames.length > 0) { - const exportRule = rule({ selector: ":export" }); - exportedNames.forEach((exportedName) => exportRule.append({ - prop: exportedName, - value: exports$1[exportedName].join(" "), - raws: { before: "\n " } - })); - root$2.append(exportRule); - } - } - }; - }; - plugin.postcss = true; - plugin.generateScopedName = function(name, path$2) { - const sanitisedPath = path$2.replace(/\.[^./\\]+$/, "").replace(/[\W_]+/g, "_").replace(/^_|_$/g, ""); - return `_${sanitisedPath}__${name}`.trim(); - }; - plugin.generateExportEntry = function(name, scopedName) { - return { - key: unescape(name), - value: unescape(scopedName) - }; - }; - module.exports = plugin; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/string-hash@1.1.3/node_modules/string-hash/index.js -var require_string_hash = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/string-hash@1.1.3/node_modules/string-hash/index.js": ((exports, module) => { - function hash(str$1) { - var hash$1 = 5381, i$1 = str$1.length; - while (i$1) hash$1 = hash$1 * 33 ^ str$1.charCodeAt(--i$1); - return hash$1 >>> 0; - } - module.exports = hash; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.6/node_modules/postcss-modules-values/src/index.js -var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.6/node_modules/postcss-modules-values/src/index.js": ((exports, module) => { - const ICSSUtils = require_src$4(); - const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/; - const matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/; - const matchImport = /^([\w-]+)(?:\s+as\s+([\w-]+))?/; - module.exports = (options) => { - let importIndex = 0; - const createImportedName = options && options.createImportedName || ((importName) => `i__const_${importName.replace(/\W/g, "_")}_${importIndex++}`); - return { - postcssPlugin: "postcss-modules-values", - prepare(result) { - const importAliases = []; - const definitions = {}; - return { Once(root$2, postcss) { - root$2.walkAtRules(/value/i, (atRule) => { - const matches = atRule.params.match(matchImports); - if (matches) { - let [, aliases, path$2] = matches; - if (definitions[path$2]) path$2 = definitions[path$2]; - const imports = aliases.replace(/^\(\s*([\s\S]+)\s*\)$/, "$1").split(/\s*,\s*/).map((alias) => { - const tokens$1 = matchImport.exec(alias); - if (tokens$1) { - const [, theirName, myName = theirName] = tokens$1; - const importedName = createImportedName(myName); - definitions[myName] = importedName; - return { - theirName, - importedName - }; - } else throw new Error(`@import statement "${alias}" is invalid!`); - }); - importAliases.push({ - path: path$2, - imports - }); - atRule.remove(); - return; - } - if (atRule.params.indexOf("@value") !== -1) result.warn("Invalid value definition: " + atRule.params); - let [, key, value] = `${atRule.params}${atRule.raws.between}`.match(matchValueDefinition); - const normalizedValue = value.replace(/\/\*((?!\*\/).*?)\*\//g, ""); - if (normalizedValue.length === 0) { - result.warn("Invalid value definition: " + atRule.params); - atRule.remove(); - return; - } - let isOnlySpace = /^\s+$/.test(normalizedValue); - if (!isOnlySpace) value = value.trim(); - definitions[key] = ICSSUtils.replaceValueSymbols(value, definitions); - atRule.remove(); - }); - if (!Object.keys(definitions).length) return; - ICSSUtils.replaceSymbols(root$2, definitions); - const exportDeclarations = Object.keys(definitions).map((key) => postcss.decl({ - value: definitions[key], - prop: key, - raws: { before: "\n " } - })); - if (exportDeclarations.length > 0) { - const exportRule = postcss.rule({ - selector: ":export", - raws: { after: "\n" } - }); - exportRule.append(exportDeclarations); - root$2.prepend(exportRule); - } - importAliases.reverse().forEach(({ path: path$2, imports }) => { - const importRule = postcss.rule({ - selector: `:import(${path$2})`, - raws: { after: "\n" } - }); - imports.forEach(({ theirName, importedName }) => { - importRule.append({ - value: theirName, - prop: importedName, - raws: { before: "\n " } - }); - }); - root$2.prepend(importRule); - }); - } }; - } - }; - }; - module.exports.postcss = true; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/scoping.js -var require_scoping = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/scoping.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.behaviours = void 0; - exports.getDefaultPlugins = getDefaultPlugins; - exports.getDefaultScopeBehaviour = getDefaultScopeBehaviour; - exports.getScopedNameGenerator = getScopedNameGenerator; - var _postcssModulesExtractImports = _interopRequireDefault$1(require_src$3()); - var _genericNames = _interopRequireDefault$1(require_generic_names()); - var _postcssModulesLocalByDefault = _interopRequireDefault$1(require_src$2()); - var _postcssModulesScope = _interopRequireDefault$1(require_src$1()); - var _stringHash = _interopRequireDefault$1(require_string_hash()); - var _postcssModulesValues = _interopRequireDefault$1(require_src()); - function _interopRequireDefault$1(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - const behaviours = { - LOCAL: "local", - GLOBAL: "global" - }; - exports.behaviours = behaviours; - function getDefaultPlugins({ behaviour, generateScopedName, exportGlobals }) { - const scope = (0, _postcssModulesScope.default)({ - generateScopedName, - exportGlobals - }); - const plugins = { - [behaviours.LOCAL]: [ - _postcssModulesValues.default, - (0, _postcssModulesLocalByDefault.default)({ mode: "local" }), - _postcssModulesExtractImports.default, - scope - ], - [behaviours.GLOBAL]: [ - _postcssModulesValues.default, - (0, _postcssModulesLocalByDefault.default)({ mode: "global" }), - _postcssModulesExtractImports.default, - scope - ] - }; - return plugins[behaviour]; - } - function isValidBehaviour(behaviour) { - return Object.keys(behaviours).map((key) => behaviours[key]).indexOf(behaviour) > -1; - } - function getDefaultScopeBehaviour(scopeBehaviour) { - return scopeBehaviour && isValidBehaviour(scopeBehaviour) ? scopeBehaviour : behaviours.LOCAL; - } - function generateScopedNameDefault(name, filename, css) { - const i$1 = css.indexOf(`.${name}`); - const lineNumber = css.substr(0, i$1).split(/[\r\n]/).length; - const hash$1 = (0, _stringHash.default)(css).toString(36).substr(0, 5); - return `_${name}_${hash$1}_${lineNumber}`; - } - function getScopedNameGenerator(generateScopedName, hashPrefix) { - const scopedNameGenerator = generateScopedName || generateScopedNameDefault; - if (typeof scopedNameGenerator === "function") return scopedNameGenerator; - return (0, _genericNames.default)(scopedNameGenerator, { - context: process.cwd(), - hashPrefix - }); - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/pluginFactory.js -var require_pluginFactory = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/pluginFactory.js": ((exports) => { - Object.defineProperty(exports, "__esModule", { value: true }); - exports.makePlugin = makePlugin; - var _postcss = _interopRequireDefault(__require("postcss")); - var _unquote = _interopRequireDefault(require_unquote()); - var _Parser = _interopRequireDefault(require_Parser()); - var _saveJSON = _interopRequireDefault(require_saveJSON()); - var _localsConvention = require_localsConvention(); - var _FileSystemLoader = _interopRequireDefault(require_FileSystemLoader()); - var _scoping = require_scoping(); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - const PLUGIN_NAME = "postcss-modules"; - function isGlobalModule(globalModules, inputFile) { - return globalModules.some((regex) => inputFile.match(regex)); - } - function getDefaultPluginsList(opts, inputFile) { - const globalModulesList = opts.globalModulePaths || null; - const exportGlobals = opts.exportGlobals || false; - const defaultBehaviour = (0, _scoping.getDefaultScopeBehaviour)(opts.scopeBehaviour); - const generateScopedName = (0, _scoping.getScopedNameGenerator)(opts.generateScopedName, opts.hashPrefix); - if (globalModulesList && isGlobalModule(globalModulesList, inputFile)) return (0, _scoping.getDefaultPlugins)({ - behaviour: _scoping.behaviours.GLOBAL, - generateScopedName, - exportGlobals - }); - return (0, _scoping.getDefaultPlugins)({ - behaviour: defaultBehaviour, - generateScopedName, - exportGlobals - }); - } - function getLoader(opts, plugins) { - const root$2 = typeof opts.root === "undefined" ? "/" : opts.root; - return typeof opts.Loader === "function" ? new opts.Loader(root$2, plugins, opts.resolve) : new _FileSystemLoader.default(root$2, plugins, opts.resolve); - } - function isOurPlugin(plugin$1) { - return plugin$1.postcssPlugin === PLUGIN_NAME; - } - function makePlugin(opts) { - return { - postcssPlugin: PLUGIN_NAME, - async OnceExit(css, { result }) { - const getJSON = opts.getJSON || _saveJSON.default; - const inputFile = css.source.input.file; - const pluginList = getDefaultPluginsList(opts, inputFile); - const resultPluginIndex = result.processor.plugins.findIndex((plugin$1) => isOurPlugin(plugin$1)); - if (resultPluginIndex === -1) throw new Error("Plugin missing from options."); - const earlierPlugins = result.processor.plugins.slice(0, resultPluginIndex); - const loaderPlugins = [...earlierPlugins, ...pluginList]; - const loader = getLoader(opts, loaderPlugins); - const fetcher = async (file, relativeTo, depTrace) => { - const unquoteFile = (0, _unquote.default)(file); - return loader.fetch.call(loader, unquoteFile, relativeTo, depTrace); - }; - const parser$1 = new _Parser.default(fetcher); - await (0, _postcss.default)([...pluginList, parser$1.plugin()]).process(css, { from: inputFile }); - const out = loader.finalSource; - if (out) css.prepend(out); - if (opts.localsConvention) { - const reducer = (0, _localsConvention.makeLocalsConventionReducer)(opts.localsConvention, inputFile); - parser$1.exportTokens = Object.entries(parser$1.exportTokens).reduce(reducer, {}); - } - result.messages.push({ - type: "export", - plugin: "postcss-modules", - exportTokens: parser$1.exportTokens - }); - return getJSON(css.source.input.file, parser$1.exportTokens, result.opts.to); - } - }; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/index.js -var require_build = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/index.js": ((exports, module) => { - var _fs = __require("fs"); - var _fs2 = require_fs(); - var _pluginFactory = require_pluginFactory(); - (0, _fs2.setFileSystem)({ - readFile: _fs.readFile, - writeFile: _fs.writeFile - }); - module.exports = (opts = {}) => (0, _pluginFactory.makePlugin)(opts); - module.exports.postcss = true; -}) }); - -//#endregion -export default require_build(); - -export { }; \ No newline at end of file diff --git a/node_modules/vite/dist/node/chunks/dep-DDbTn5rw.js b/node_modules/vite/dist/node/chunks/dep-DDbTn5rw.js deleted file mode 100644 index 130b3e7..0000000 --- a/node_modules/vite/dist/node/chunks/dep-DDbTn5rw.js +++ /dev/null @@ -1,482 +0,0 @@ -import { __commonJS, __require } from "./dep-lCKrEJQm.js"; -import { require_lib } from "./dep-BuoK8Wda.js"; - -//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/format-import-prelude.js -var require_format_import_prelude = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/format-import-prelude.js": ((exports, module) => { - module.exports = function formatImportPrelude$2(layer, media, supports) { - const parts = []; - if (typeof layer !== "undefined") { - let layerParams = "layer"; - if (layer) layerParams = `layer(${layer})`; - parts.push(layerParams); - } - if (typeof supports !== "undefined") parts.push(`supports(${supports})`); - if (typeof media !== "undefined") parts.push(media); - return parts.join(" "); - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/base64-encoded-import.js -var require_base64_encoded_import = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/base64-encoded-import.js": ((exports, module) => { - const formatImportPrelude$1 = require_format_import_prelude(); - module.exports = function base64EncodedConditionalImport$1(prelude, conditions) { - if (!conditions?.length) return prelude; - conditions.reverse(); - const first = conditions.pop(); - let params = `${prelude} ${formatImportPrelude$1(first.layer, first.media, first.supports)}`; - for (const condition of conditions) params = `'data:text/css;base64,${Buffer.from(`@import ${params}`).toString("base64")}' ${formatImportPrelude$1(condition.layer, condition.media, condition.supports)}`; - return params; - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/apply-conditions.js -var require_apply_conditions = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/apply-conditions.js": ((exports, module) => { - const base64EncodedConditionalImport = require_base64_encoded_import(); - module.exports = function applyConditions$1(bundle, atRule) { - const firstImportStatementIndex = bundle.findIndex((stmt) => stmt.type === "import"); - const lastImportStatementIndex = bundle.findLastIndex((stmt) => stmt.type === "import"); - bundle.forEach((stmt, index) => { - if (stmt.type === "charset" || stmt.type === "warning") return; - if (stmt.type === "layer" && (index < lastImportStatementIndex && stmt.conditions?.length || index > firstImportStatementIndex && index < lastImportStatementIndex)) { - stmt.type = "import"; - stmt.node = stmt.node.clone({ - name: "import", - params: base64EncodedConditionalImport(`'data:text/css;base64,${Buffer.from(stmt.node.toString()).toString("base64")}'`, stmt.conditions) - }); - return; - } - if (!stmt.conditions?.length) return; - if (stmt.type === "import") { - stmt.node.params = base64EncodedConditionalImport(stmt.fullUri, stmt.conditions); - return; - } - let nodes; - let parent; - if (stmt.type === "layer") { - nodes = [stmt.node]; - parent = stmt.node.parent; - } else { - nodes = stmt.nodes; - parent = nodes[0].parent; - } - const atRules = []; - for (const condition of stmt.conditions) { - if (typeof condition.media !== "undefined") { - const mediaNode = atRule({ - name: "media", - params: condition.media, - source: parent.source - }); - atRules.push(mediaNode); - } - if (typeof condition.supports !== "undefined") { - const supportsNode = atRule({ - name: "supports", - params: `(${condition.supports})`, - source: parent.source - }); - atRules.push(supportsNode); - } - if (typeof condition.layer !== "undefined") { - const layerNode = atRule({ - name: "layer", - params: condition.layer, - source: parent.source - }); - atRules.push(layerNode); - } - } - const outerAtRule = atRules.shift(); - const innerAtRule = atRules.reduce((previous, next) => { - previous.append(next); - return next; - }, outerAtRule); - parent.insertBefore(nodes[0], outerAtRule); - nodes.forEach((node) => { - node.parent = void 0; - }); - nodes[0].raws.before = nodes[0].raws.before || "\n"; - innerAtRule.append(nodes); - stmt.type = "nodes"; - stmt.nodes = [outerAtRule]; - delete stmt.node; - }); - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/apply-raws.js -var require_apply_raws = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/apply-raws.js": ((exports, module) => { - module.exports = function applyRaws$1(bundle) { - bundle.forEach((stmt, index) => { - if (index === 0) return; - if (stmt.parent) { - const { before } = stmt.parent.node.raws; - if (stmt.type === "nodes") stmt.nodes[0].raws.before = before; - else stmt.node.raws.before = before; - } else if (stmt.type === "nodes") stmt.nodes[0].raws.before = stmt.nodes[0].raws.before || "\n"; - }); - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/apply-styles.js -var require_apply_styles = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/apply-styles.js": ((exports, module) => { - module.exports = function applyStyles$1(bundle, styles) { - styles.nodes = []; - bundle.forEach((stmt) => { - if ([ - "charset", - "import", - "layer" - ].includes(stmt.type)) { - stmt.node.parent = void 0; - styles.append(stmt.node); - } else if (stmt.type === "nodes") stmt.nodes.forEach((node) => { - node.parent = void 0; - styles.append(node); - }); - }); - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/data-url.js -var require_data_url = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/data-url.js": ((exports, module) => { - const anyDataURLRegexp = /^data:text\/css(?:;(base64|plain))?,/i; - const base64DataURLRegexp = /^data:text\/css;base64,/i; - const plainDataURLRegexp = /^data:text\/css;plain,/i; - function isValid(url) { - return anyDataURLRegexp.test(url); - } - function contents(url) { - if (base64DataURLRegexp.test(url)) return Buffer.from(url.slice(21), "base64").toString(); - if (plainDataURLRegexp.test(url)) return decodeURIComponent(url.slice(20)); - return decodeURIComponent(url.slice(14)); - } - module.exports = { - isValid, - contents - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/parse-statements.js -var require_parse_statements = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/parse-statements.js": ((exports, module) => { - const valueParser = require_lib(); - const { stringify } = valueParser; - module.exports = function parseStatements$1(result, styles, conditions, from) { - const statements = []; - let nodes = []; - let encounteredNonImportNodes = false; - styles.each((node) => { - let stmt; - if (node.type === "atrule") { - if (node.name === "import") stmt = parseImport(result, node, conditions, from); - else if (node.name === "charset") stmt = parseCharset(result, node, conditions, from); - else if (node.name === "layer" && !encounteredNonImportNodes && !node.nodes) stmt = parseLayer(result, node, conditions, from); - } else if (node.type !== "comment") encounteredNonImportNodes = true; - if (stmt) { - if (nodes.length) { - statements.push({ - type: "nodes", - nodes, - conditions: [...conditions], - from - }); - nodes = []; - } - statements.push(stmt); - } else nodes.push(node); - }); - if (nodes.length) statements.push({ - type: "nodes", - nodes, - conditions: [...conditions], - from - }); - return statements; - }; - function parseCharset(result, atRule, conditions, from) { - if (atRule.prev()) return result.warn("@charset must precede all other statements", { node: atRule }); - return { - type: "charset", - node: atRule, - conditions: [...conditions], - from - }; - } - function parseImport(result, atRule, conditions, from) { - let prev = atRule.prev(); - if (prev) do { - if (prev.type === "comment" || prev.type === "atrule" && prev.name === "import") { - prev = prev.prev(); - continue; - } - break; - } while (prev); - if (prev) do { - if (prev.type === "comment" || prev.type === "atrule" && (prev.name === "charset" || prev.name === "layer" && !prev.nodes)) { - prev = prev.prev(); - continue; - } - return result.warn("@import must precede all other statements (besides @charset or empty @layer)", { node: atRule }); - } while (prev); - if (atRule.nodes) return result.warn("It looks like you didn't end your @import statement correctly. Child nodes are attached to it.", { node: atRule }); - const params = valueParser(atRule.params).nodes; - const stmt = { - type: "import", - uri: "", - fullUri: "", - node: atRule, - conditions: [...conditions], - from - }; - let layer; - let media; - let supports; - for (let i = 0; i < params.length; i++) { - const node = params[i]; - if (node.type === "space" || node.type === "comment") continue; - if (node.type === "string") { - if (stmt.uri) return result.warn(`Multiple url's in '${atRule.toString()}'`, { node: atRule }); - if (!node.value) return result.warn(`Unable to find uri in '${atRule.toString()}'`, { node: atRule }); - stmt.uri = node.value; - stmt.fullUri = stringify(node); - continue; - } - if (node.type === "function" && /^url$/i.test(node.value)) { - if (stmt.uri) return result.warn(`Multiple url's in '${atRule.toString()}'`, { node: atRule }); - if (!node.nodes?.[0]?.value) return result.warn(`Unable to find uri in '${atRule.toString()}'`, { node: atRule }); - stmt.uri = node.nodes[0].value; - stmt.fullUri = stringify(node); - continue; - } - if (!stmt.uri) return result.warn(`Unable to find uri in '${atRule.toString()}'`, { node: atRule }); - if ((node.type === "word" || node.type === "function") && /^layer$/i.test(node.value)) { - if (typeof layer !== "undefined") return result.warn(`Multiple layers in '${atRule.toString()}'`, { node: atRule }); - if (typeof supports !== "undefined") return result.warn(`layers must be defined before support conditions in '${atRule.toString()}'`, { node: atRule }); - if (node.nodes) layer = stringify(node.nodes); - else layer = ""; - continue; - } - if (node.type === "function" && /^supports$/i.test(node.value)) { - if (typeof supports !== "undefined") return result.warn(`Multiple support conditions in '${atRule.toString()}'`, { node: atRule }); - supports = stringify(node.nodes); - continue; - } - media = stringify(params.slice(i)); - break; - } - if (!stmt.uri) return result.warn(`Unable to find uri in '${atRule.toString()}'`, { node: atRule }); - if (typeof media !== "undefined" || typeof layer !== "undefined" || typeof supports !== "undefined") stmt.conditions.push({ - layer, - media, - supports - }); - return stmt; - } - function parseLayer(result, atRule, conditions, from) { - return { - type: "layer", - node: atRule, - conditions: [...conditions], - from - }; - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/process-content.js -var require_process_content = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/process-content.js": ((exports, module) => { - const path$2 = __require("path"); - let sugarss; - module.exports = function processContent$1(result, content, filename, options, postcss) { - const { plugins } = options; - const ext = path$2.extname(filename); - const parserList = []; - if (ext === ".sss") { - if (!sugarss) - /* c8 ignore next 3 */ - try { - sugarss = __require("sugarss"); - } catch {} - if (sugarss) return runPostcss(postcss, content, filename, plugins, [sugarss]); - } - if (result.opts.syntax?.parse) parserList.push(result.opts.syntax.parse); - if (result.opts.parser) parserList.push(result.opts.parser); - parserList.push(null); - return runPostcss(postcss, content, filename, plugins, parserList); - }; - function runPostcss(postcss, content, filename, plugins, parsers, index) { - if (!index) index = 0; - return postcss(plugins).process(content, { - from: filename, - parser: parsers[index] - }).catch((err) => { - index++; - if (index === parsers.length) throw err; - return runPostcss(postcss, content, filename, plugins, parsers, index); - }); - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/parse-styles.js -var require_parse_styles = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/parse-styles.js": ((exports, module) => { - const path$1 = __require("path"); - const dataURL = require_data_url(); - const parseStatements = require_parse_statements(); - const processContent = require_process_content(); - const resolveId$1 = (id) => id; - const formatImportPrelude = require_format_import_prelude(); - async function parseStyles$1(result, styles, options, state, conditions, from, postcss) { - const statements = parseStatements(result, styles, conditions, from); - for (const stmt of statements) { - if (stmt.type !== "import" || !isProcessableURL(stmt.uri)) continue; - if (options.filter && !options.filter(stmt.uri)) continue; - await resolveImportId(result, stmt, options, state, postcss); - } - let charset; - const beforeBundle = []; - const bundle = []; - function handleCharset(stmt) { - if (!charset) charset = stmt; - else if (stmt.node.params.toLowerCase() !== charset.node.params.toLowerCase()) throw stmt.node.error(`Incompatible @charset statements: - ${stmt.node.params} specified in ${stmt.node.source.input.file} - ${charset.node.params} specified in ${charset.node.source.input.file}`); - } - statements.forEach((stmt) => { - if (stmt.type === "charset") handleCharset(stmt); - else if (stmt.type === "import") if (stmt.children) stmt.children.forEach((child, index) => { - if (child.type === "import") beforeBundle.push(child); - else if (child.type === "layer") beforeBundle.push(child); - else if (child.type === "charset") handleCharset(child); - else bundle.push(child); - if (index === 0) child.parent = stmt; - }); - else beforeBundle.push(stmt); - else if (stmt.type === "layer") beforeBundle.push(stmt); - else if (stmt.type === "nodes") bundle.push(stmt); - }); - return charset ? [charset, ...beforeBundle.concat(bundle)] : beforeBundle.concat(bundle); - } - async function resolveImportId(result, stmt, options, state, postcss) { - if (dataURL.isValid(stmt.uri)) { - stmt.children = await loadImportContent(result, stmt, stmt.uri, options, state, postcss); - return; - } else if (dataURL.isValid(stmt.from.slice(-1))) throw stmt.node.error(`Unable to import '${stmt.uri}' from a stylesheet that is embedded in a data url`); - const atRule = stmt.node; - let sourceFile; - if (atRule.source?.input?.file) sourceFile = atRule.source.input.file; - const base = sourceFile ? path$1.dirname(atRule.source.input.file) : options.root; - const paths = [await options.resolve(stmt.uri, base, options, atRule)].flat(); - const resolved = await Promise.all(paths.map((file) => { - return !path$1.isAbsolute(file) ? resolveId$1(file, base, options, atRule) : file; - })); - resolved.forEach((file) => { - result.messages.push({ - type: "dependency", - plugin: "postcss-import", - file, - parent: sourceFile - }); - }); - const importedContent = await Promise.all(resolved.map((file) => { - return loadImportContent(result, stmt, file, options, state, postcss); - })); - stmt.children = importedContent.flat().filter((x) => !!x); - } - async function loadImportContent(result, stmt, filename, options, state, postcss) { - const atRule = stmt.node; - const { conditions, from } = stmt; - const stmtDuplicateCheckKey = conditions.map((condition) => formatImportPrelude(condition.layer, condition.media, condition.supports)).join(":"); - if (options.skipDuplicates) { - if (state.importedFiles[filename]?.[stmtDuplicateCheckKey]) return; - if (!state.importedFiles[filename]) state.importedFiles[filename] = {}; - state.importedFiles[filename][stmtDuplicateCheckKey] = true; - } - if (from.includes(filename)) return; - const content = await options.load(filename, options); - if (content.trim() === "" && options.warnOnEmpty) { - result.warn(`${filename} is empty`, { node: atRule }); - return; - } - if (options.skipDuplicates && state.hashFiles[content]?.[stmtDuplicateCheckKey]) return; - const importedResult = await processContent(result, content, filename, options, postcss); - const styles = importedResult.root; - result.messages = result.messages.concat(importedResult.messages); - if (options.skipDuplicates) { - const hasImport = styles.some((child) => { - return child.type === "atrule" && child.name === "import"; - }); - if (!hasImport) { - if (!state.hashFiles[content]) state.hashFiles[content] = {}; - state.hashFiles[content][stmtDuplicateCheckKey] = true; - } - } - return parseStyles$1(result, styles, options, state, conditions, [...from, filename], postcss); - } - function isProcessableURL(uri) { - if (/^(?:[a-z]+:)?\/\//i.test(uri)) return false; - try { - const url = new URL(uri, "https://example.com"); - if (url.search) return false; - } catch {} - return true; - } - module.exports = parseStyles$1; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/index.js -var require_postcss_import = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/index.js": ((exports, module) => { - const path = __require("path"); - const applyConditions = require_apply_conditions(); - const applyRaws = require_apply_raws(); - const applyStyles = require_apply_styles(); - const loadContent = () => ""; - const parseStyles = require_parse_styles(); - const resolveId = (id) => id; - function AtImport(options) { - options = { - root: process.cwd(), - path: [], - skipDuplicates: true, - resolve: resolveId, - load: loadContent, - plugins: [], - addModulesDirectories: [], - warnOnEmpty: true, - ...options - }; - options.root = path.resolve(options.root); - if (typeof options.path === "string") options.path = [options.path]; - if (!Array.isArray(options.path)) options.path = []; - options.path = options.path.map((p) => path.resolve(options.root, p)); - return { - postcssPlugin: "postcss-import", - async Once(styles, { result, atRule, postcss }) { - const state = { - importedFiles: {}, - hashFiles: {} - }; - if (styles.source?.input?.file) state.importedFiles[styles.source.input.file] = {}; - if (options.plugins && !Array.isArray(options.plugins)) throw new Error("plugins option must be an array"); - const bundle = await parseStyles(result, styles, options, state, [], [], postcss); - applyRaws(bundle); - applyConditions(bundle, atRule); - applyStyles(bundle, styles); - } - }; - } - AtImport.postcss = true; - module.exports = AtImport; -}) }); - -//#endregion -export default require_postcss_import(); - -export { }; \ No newline at end of file diff --git a/node_modules/vite/dist/node/chunks/dep-D_YDhiNx.js b/node_modules/vite/dist/node/chunks/dep-D_YDhiNx.js deleted file mode 100644 index d3e05a3..0000000 --- a/node_modules/vite/dist/node/chunks/dep-D_YDhiNx.js +++ /dev/null @@ -1,4 +0,0 @@ -import "./dep-SmwnYDP9.js"; -import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./dep-M_KD0XSK.js"; - -export { createServer }; \ No newline at end of file diff --git a/node_modules/vite/dist/node/chunks/dep-M_KD0XSK.js b/node_modules/vite/dist/node/chunks/dep-M_KD0XSK.js deleted file mode 100644 index 7ef1fa5..0000000 --- a/node_modules/vite/dist/node/chunks/dep-M_KD0XSK.js +++ /dev/null @@ -1,36707 +0,0 @@ -import { __commonJS, __require, __toDynamicImportESM, __toESM } from "./dep-lCKrEJQm.js"; -import { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_INLINE_LIMIT, DEFAULT_ASSETS_RE, DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_PREVIEW_PORT, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, DEP_VERSION_RE, DEV_PROD_CONDITION, ENV_ENTRY, ENV_PUBLIC_PATH, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, LogLevels, METADATA_FILENAME, OPTIMIZABLE_ENTRY_RE, ROLLUP_HOOKS, SPECIAL_QUERY_RE, VERSION, VITE_PACKAGE_DIR, createLogger, defaultAllowedOrigins, loopbackHosts, printServerUrls, require_picocolors, wildcardHosts } from "./dep-SmwnYDP9.js"; -import { builtinModules, createRequire } from "node:module"; -import { parseAst, parseAstAsync } from "rollup/parseAst"; -import * as fs$1 from "node:fs"; -import fs, { existsSync, promises, readFileSync } from "node:fs"; -import path, { basename, dirname, extname, isAbsolute, join, normalize, posix, relative, resolve, sep } from "node:path"; -import fsp, { constants } from "node:fs/promises"; -import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url"; -import { format, inspect, promisify, stripVTControlCharacters } from "node:util"; -import { performance as performance$1 } from "node:perf_hooks"; -import crypto from "node:crypto"; -import picomatch from "picomatch"; -import esbuild, { build, formatMessages, transform } from "esbuild"; -import os from "node:os"; -import net from "node:net"; -import childProcess, { exec, execFile, execSync } from "node:child_process"; -import { promises as promises$1 } from "node:dns"; -import path$1, { basename as basename$1, dirname as dirname$1, extname as extname$1, isAbsolute as isAbsolute$1, join as join$1, posix as posix$1, relative as relative$1, resolve as resolve$1, sep as sep$1, win32 } from "path"; -import { existsSync as existsSync$1, readFileSync as readFileSync$1, readdirSync, statSync } from "fs"; -import { fdir } from "fdir"; -import { gzip } from "node:zlib"; -import readline from "node:readline"; -import { createRequire as createRequire$1 } from "module"; -import { MessageChannel, Worker } from "node:worker_threads"; -import { Buffer as Buffer$1 } from "node:buffer"; -import { escapePath, glob, globSync, isDynamicPattern } from "tinyglobby"; -import assert from "node:assert"; -import process$1 from "node:process"; -import v8 from "node:v8"; -import { EventEmitter } from "node:events"; -import { STATUS_CODES, createServer, get } from "node:http"; -import { createServer as createServer$1, get as get$1 } from "node:https"; -import { ESModulesEvaluator, ModuleRunner, createNodeImportMeta } from "vite/module-runner"; -import zlib from "zlib"; -import * as qs from "node:querystring"; - -//#region src/shared/constants.ts -/** -* Prefix for resolved Ids that are not valid browser import specifiers -*/ -const VALID_ID_PREFIX = `/@id/`; -/** -* Plugins that use 'virtual modules' (e.g. for helper functions), prefix the -* module ID with `\0`, a convention from the rollup ecosystem. -* This prevents other plugins from trying to process the id (like node resolution), -* and core features like sourcemaps can use this info to differentiate between -* virtual modules and regular files. -* `\0` is not a permitted char in import URLs so we have to replace them during -* import analysis. The id will be decoded back before entering the plugins pipeline. -* These encoded virtual ids are also prefixed by the VALID_ID_PREFIX, so virtual -* modules in the browser end up encoded as `/@id/__x00__{id}` -*/ -const NULL_BYTE_PLACEHOLDER = `__x00__`; -let SOURCEMAPPING_URL = "sourceMa"; -SOURCEMAPPING_URL += "ppingURL"; -const MODULE_RUNNER_SOURCEMAPPING_SOURCE = "//# sourceMappingSource=vite-generated"; -const ERR_OUTDATED_OPTIMIZED_DEP = "ERR_OUTDATED_OPTIMIZED_DEP"; - -//#endregion -//#region src/shared/utils.ts -const isWindows = typeof process !== "undefined" && process.platform === "win32"; -/** -* Prepend `/@id/` and replace null byte so the id is URL-safe. -* This is prepended to resolved ids that are not valid browser -* import specifiers by the importAnalysis plugin. -*/ -function wrapId(id) { - return id.startsWith(VALID_ID_PREFIX) ? id : VALID_ID_PREFIX + id.replace("\0", NULL_BYTE_PLACEHOLDER); -} -/** -* Undo {@link wrapId}'s `/@id/` and null byte replacements. -*/ -function unwrapId(id) { - return id.startsWith(VALID_ID_PREFIX) ? id.slice(VALID_ID_PREFIX.length).replace(NULL_BYTE_PLACEHOLDER, "\0") : id; -} -const windowsSlashRE = /\\/g; -function slash(p) { - return p.replace(windowsSlashRE, "/"); -} -const postfixRE = /[?#].*$/; -function cleanUrl(url$3) { - return url$3.replace(postfixRE, ""); -} -function splitFileAndPostfix(path$13) { - const file = cleanUrl(path$13); - return { - file, - postfix: path$13.slice(file.length) - }; -} -function withTrailingSlash(path$13) { - if (path$13[path$13.length - 1] !== "/") return `${path$13}/`; - return path$13; -} -const AsyncFunction$1 = async function() {}.constructor; -function promiseWithResolvers() { - let resolve$4; - let reject; - const promise = new Promise((_resolve, _reject) => { - resolve$4 = _resolve; - reject = _reject; - }); - return { - promise, - resolve: resolve$4, - reject - }; -} - -//#endregion -//#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs -const comma$1 = ",".charCodeAt(0); -const semicolon$1 = ";".charCodeAt(0); -const chars$2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; -const intToChar$1 = new Uint8Array(64); -const charToInt$1 = new Uint8Array(128); -for (let i$1 = 0; i$1 < 64; i$1++) { - const c = chars$2.charCodeAt(i$1); - intToChar$1[i$1] = c; - charToInt$1[c] = i$1; -} -function decodeInteger(reader, relative$3) { - let value$1 = 0; - let shift = 0; - let integer = 0; - do { - const c = reader.next(); - integer = charToInt$1[c]; - value$1 |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - const shouldNegate = value$1 & 1; - value$1 >>>= 1; - if (shouldNegate) value$1 = -2147483648 | -value$1; - return relative$3 + value$1; -} -function encodeInteger$1(builder, num, relative$3) { - let delta = num - relative$3; - delta = delta < 0 ? -delta << 1 | 1 : delta << 1; - do { - let clamped = delta & 31; - delta >>>= 5; - if (delta > 0) clamped |= 32; - builder.write(intToChar$1[clamped]); - } while (delta > 0); - return num; -} -function hasMoreVlq(reader, max) { - if (reader.pos >= max) return false; - return reader.peek() !== comma$1; -} -const bufLength$1 = 1024 * 16; -const td$1 = 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$1 = 0; i$1 < buf.length; i$1++) out += String.fromCharCode(buf[i$1]); - return out; -} }; -var StringWriter$1 = class { - constructor() { - this.pos = 0; - this.out = ""; - this.buffer = new Uint8Array(bufLength$1); - } - write(v) { - const { buffer } = this; - buffer[this.pos++] = v; - if (this.pos === bufLength$1) { - this.out += td$1.decode(buffer); - this.pos = 0; - } - } - flush() { - const { buffer, out, pos } = this; - return pos > 0 ? out + td$1.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; - } -}; -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$1); -} -function sortComparator$1(a, b) { - return a[0] - b[0]; -} -function encode$2(decoded) { - const writer = new StringWriter$1(); - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - for (let i$1 = 0; i$1 < decoded.length; i$1++) { - const line = decoded[i$1]; - if (i$1 > 0) writer.write(semicolon$1); - 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$1); - genColumn = encodeInteger$1(writer, segment[0], genColumn); - if (segment.length === 1) continue; - sourcesIndex = encodeInteger$1(writer, segment[1], sourcesIndex); - sourceLine = encodeInteger$1(writer, segment[2], sourceLine); - sourceColumn = encodeInteger$1(writer, segment[3], sourceColumn); - if (segment.length === 4) continue; - namesIndex = encodeInteger$1(writer, segment[4], namesIndex); - } - } - return writer.flush(); -} - -//#endregion -//#region ../../node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs -const schemeRegex = /^[\w+.-]+:\/\//; -/** -* Matches the parts of a URL: -* 1. Scheme, including ":", guaranteed. -* 2. User/password, including "@", optional. -* 3. Host, guaranteed. -* 4. Port, including ":", optional. -* 5. Path, including "/", optional. -* 6. Query, including "?", optional. -* 7. Hash, including "#", optional. -*/ -const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/; -/** -* File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start -* with a leading `/`, they can have a domain (but only if they don't start with a Windows drive). -* -* 1. Host, optional. -* 2. Path, which may include "/", guaranteed. -* 3. Query, including "?", optional. -* 4. Hash, including "#", optional. -*/ -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$13 = match[2]; - return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(path$13) ? path$13 : "/" + path$13, match[3] || "", match[4] || ""); -} -function makeUrl(scheme, user, host, port, path$13, query, hash$1) { - return { - scheme, - user, - host, - port, - path: path$13, - query, - hash: hash$1, - type: 7 - }; -} -function parseUrl$3(input) { - if (isSchemeRelativeUrl(input)) { - const url$4 = parseAbsoluteUrl("http:" + input); - url$4.scheme = ""; - url$4.type = 6; - return url$4; - } - if (isAbsolutePath(input)) { - const url$4 = parseAbsoluteUrl("http://foo.com" + input); - url$4.scheme = ""; - url$4.host = ""; - url$4.type = 5; - return url$4; - } - if (isFileUrl(input)) return parseFileUrl(input); - if (isAbsoluteUrl(input)) return parseAbsoluteUrl(input); - const url$3 = parseAbsoluteUrl("http://foo.com/" + input); - url$3.scheme = ""; - url$3.host = ""; - url$3.type = input ? input.startsWith("?") ? 3 : input.startsWith("#") ? 2 : 4 : 1; - return url$3; -} -function stripPathFilename(path$13) { - if (path$13.endsWith("/..")) return path$13; - const index = path$13.lastIndexOf("/"); - return path$13.slice(0, index + 1); -} -function mergePaths(url$3, base) { - normalizePath$4(base, base.type); - if (url$3.path === "/") url$3.path = base.path; - else url$3.path = stripPathFilename(base.path) + url$3.path; -} -/** -* The path can have empty directories "//", unneeded parents "foo/..", or current directory -* "foo/.". We need to normalize to a standard representation. -*/ -function normalizePath$4(url$3, type) { - const rel = type <= 4; - const pieces = url$3.path.split("/"); - let pointer = 1; - let positive = 0; - let addTrailingSlash = false; - for (let i$1 = 1; i$1 < pieces.length; i$1++) { - const piece = pieces[i$1]; - 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$13 = ""; - for (let i$1 = 1; i$1 < pointer; i$1++) path$13 += "/" + pieces[i$1]; - if (!path$13 || addTrailingSlash && !path$13.endsWith("/..")) path$13 += "/"; - url$3.path = path$13; -} -/** -* Attempts to resolve `input` URL/path relative to `base`. -*/ -function resolve$3(input, base) { - if (!input && !base) return ""; - const url$3 = parseUrl$3(input); - let inputType = url$3.type; - if (base && inputType !== 7) { - const baseUrl = parseUrl$3(base); - const baseType = baseUrl.type; - switch (inputType) { - case 1: url$3.hash = baseUrl.hash; - case 2: url$3.query = baseUrl.query; - case 3: - case 4: mergePaths(url$3, baseUrl); - case 5: - url$3.user = baseUrl.user; - url$3.host = baseUrl.host; - url$3.port = baseUrl.port; - case 6: url$3.scheme = baseUrl.scheme; - } - if (baseType > inputType) inputType = baseType; - } - normalizePath$4(url$3, inputType); - const queryHash = url$3.query + url$3.hash; - switch (inputType) { - case 2: - case 3: return queryHash; - case 4: { - const path$13 = url$3.path.slice(1); - if (!path$13) return queryHash || "."; - if (isRelative(base || input) && !isRelative(path$13)) return "./" + path$13 + queryHash; - return path$13 + queryHash; - } - case 5: return url$3.path + queryHash; - default: return url$3.scheme + "//" + url$3.user + url$3.host + url$3.port + url$3.path + queryHash; - } -} - -//#endregion -//#region ../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.30/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs -function stripFilename(path$13) { - if (!path$13) return ""; - const index = path$13.lastIndexOf("/"); - return path$13.slice(0, index + 1); -} -function resolver(mapUrl, sourceRoot) { - const from = stripFilename(mapUrl); - const prefix = sourceRoot ? sourceRoot + "/" : ""; - return (source) => resolve$3(prefix + (source || ""), from); -} -var COLUMN$1 = 0; -var SOURCES_INDEX$1 = 1; -var SOURCE_LINE$1 = 2; -var SOURCE_COLUMN$1 = 3; -var NAMES_INDEX$1 = 4; -function maybeSort(mappings, owned) { - const unsortedIndex = nextUnsortedSegmentLine(mappings, 0); - if (unsortedIndex === mappings.length) return mappings; - if (!owned) mappings = mappings.slice(); - for (let i$1 = unsortedIndex; i$1 < mappings.length; i$1 = nextUnsortedSegmentLine(mappings, i$1 + 1)) mappings[i$1] = sortSegments(mappings[i$1], owned); - return mappings; -} -function nextUnsortedSegmentLine(mappings, start) { - for (let i$1 = start; i$1 < mappings.length; i$1++) if (!isSorted(mappings[i$1])) return i$1; - return mappings.length; -} -function isSorted(line) { - for (let j = 1; j < line.length; j++) if (line[j][COLUMN$1] < line[j - 1][COLUMN$1]) return false; - return true; -} -function sortSegments(line, owned) { - if (!owned) line = line.slice(); - return line.sort(sortComparator); -} -function sortComparator(a, b) { - return a[COLUMN$1] - b[COLUMN$1]; -} -var found = false; -function binarySearch(haystack, needle, low, high) { - while (low <= high) { - const mid = low + (high - low >> 1); - const cmp = haystack[mid][COLUMN$1] - 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$1 = index + 1; i$1 < haystack.length; index = i$1++) if (haystack[i$1][COLUMN$1] !== needle) break; - return index; -} -function lowerBound(haystack, needle, index) { - for (let i$1 = index - 1; i$1 >= 0; index = i$1--) if (haystack[i$1][COLUMN$1] !== needle) break; - return index; -} -function memoizedState() { - return { - lastKey: -1, - lastNeedle: -1, - lastIndex: -1 - }; -} -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$1] === 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); -} -function parse$16(map$1) { - return typeof map$1 === "string" ? JSON.parse(map$1) : map$1; -} -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; -var TraceMap = class { - constructor(map$1, mapUrl) { - const isString$1 = typeof map$1 === "string"; - if (!isString$1 && map$1._decodedMemo) return map$1; - const parsed = parse$16(map$1); - const { version: version$2, file, names, sourceRoot, sources, sourcesContent } = parsed; - this.version = version$2; - this.file = file; - this.names = names || []; - this.sourceRoot = sourceRoot; - this.sources = sources; - this.sourcesContent = sourcesContent; - this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0; - const resolve$4 = resolver(mapUrl, sourceRoot); - this.resolvedSources = sources.map(resolve$4); - const { mappings } = parsed; - if (typeof mappings === "string") { - this._encoded = mappings; - this._decoded = void 0; - } else if (Array.isArray(mappings)) { - this._encoded = void 0; - this._decoded = maybeSort(mappings, isString$1); - } else if (parsed.sections) throw new Error(`TraceMap passed sectioned source map, please use FlattenMap export instead`); - else throw new Error(`invalid source map: ${JSON.stringify(parsed)}`); - this._decodedMemo = memoizedState(); - this._bySources = void 0; - this._bySourceMemos = void 0; - } -}; -function cast$1(map$1) { - return map$1; -} -function encodedMappings(map$1) { - var _a, _b; - return (_b = (_a = cast$1(map$1))._encoded) != null ? _b : _a._encoded = encode$2(cast$1(map$1)._decoded); -} -function decodedMappings(map$1) { - var _a; - return (_a = cast$1(map$1))._decoded || (_a._decoded = decode(cast$1(map$1)._encoded)); -} -function traceSegment(map$1, line, column) { - const decoded = decodedMappings(map$1); - if (line >= decoded.length) return null; - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast$1(map$1)._decodedMemo, line, column, GREATEST_LOWER_BOUND); - return index === -1 ? null : segments[index]; -} -function originalPositionFor(map$1, 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$1); - if (line >= decoded.length) return OMapping(null, null, null, null); - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast$1(map$1)._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$1; - return OMapping(resolvedSources[segment[SOURCES_INDEX$1]], segment[SOURCE_LINE$1] + 1, segment[SOURCE_COLUMN$1], segment.length === 5 ? names[segment[NAMES_INDEX$1]] : null); -} -function decodedMap(map$1) { - return clone(map$1, decodedMappings(map$1)); -} -function encodedMap(map$1) { - return clone(map$1, encodedMappings(map$1)); -} -function clone(map$1, mappings) { - return { - version: map$1.version, - file: map$1.file, - names: map$1.names, - sourceRoot: map$1.sourceRoot, - sources: map$1.sources, - sourcesContent: map$1.sourcesContent, - mappings, - ignoreList: map$1.ignoreList || map$1.x_google_ignoreList - }; -} -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; -} - -//#endregion -//#region ../../node_modules/.pnpm/@jridgewell+gen-mapping@0.3.12/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs -var SetArray = class { - constructor() { - this._indexes = { __proto__: null }; - this.array = []; - } -}; -function cast(set) { - return set; -} -function get$2(setarr, key) { - return cast(setarr)._indexes[key]; -} -function put(setarr, key) { - const index = get$2(setarr, key); - if (index !== void 0) return index; - const { array, _indexes: indexes } = cast(setarr); - const length = array.push(key); - return indexes[key] = length - 1; -} -function remove(setarr, key) { - const index = get$2(setarr, key); - if (index === void 0) return; - const { array, _indexes: indexes } = cast(setarr); - for (let i$1 = index + 1; i$1 < array.length; i$1++) { - const k = array[i$1]; - array[i$1 - 1] = k; - indexes[k]--; - } - indexes[key] = void 0; - array.pop(); -} -var COLUMN = 0; -var SOURCES_INDEX = 1; -var SOURCE_LINE = 2; -var SOURCE_COLUMN = 3; -var NAMES_INDEX = 4; -var NO_NAME = -1; -var GenMapping = class { - constructor({ file, sourceRoot } = {}) { - this._names = new SetArray(); - this._sources = new SetArray(); - this._sourcesContent = []; - this._mappings = []; - this.file = file; - this.sourceRoot = sourceRoot; - this._ignoreList = new SetArray(); - } -}; -function cast2(map$1) { - return map$1; -} -var maybeAddSegment = (map$1, genLine, genColumn, source, sourceLine, sourceColumn, name, content) => { - return addSegmentInternal(true, map$1, genLine, genColumn, source, sourceLine, sourceColumn, name, content); -}; -function setSourceContent(map$1, source, content) { - const { _sources: sources, _sourcesContent: sourcesContent } = cast2(map$1); - const index = put(sources, source); - sourcesContent[index] = content; -} -function setIgnore(map$1, source, ignore = true) { - const { _sources: sources, _sourcesContent: sourcesContent, _ignoreList: ignoreList } = cast2(map$1); - const index = put(sources, source); - if (index === sourcesContent.length) sourcesContent[index] = null; - if (ignore) put(ignoreList, index); - else remove(ignoreList, index); -} -function toDecodedMap(map$1) { - const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, _ignoreList: ignoreList } = cast2(map$1); - removeEmptyFinalLines(mappings); - return { - version: 3, - file: map$1.file || void 0, - names: names.array, - sourceRoot: map$1.sourceRoot || void 0, - sources: sources.array, - sourcesContent, - mappings, - ignoreList: ignoreList.array - }; -} -function toEncodedMap(map$1) { - const decoded = toDecodedMap(map$1); - return Object.assign({}, decoded, { mappings: encode$2(decoded.mappings) }); -} -function addSegmentInternal(skipable, map$1, genLine, genColumn, source, sourceLine, sourceColumn, name, content) { - const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names } = cast2(map$1); - const line = getIndex(mappings, genLine); - const index = getColumnIndex(line, genColumn); - if (!source) { - if (skipable && skipSourceless(line, index)) return; - return insert(line, index, [genColumn]); - } - assert$2(sourceLine); - assert$2(sourceColumn); - const sourcesIndex = put(sources, source); - const namesIndex = name ? put(names, name) : NO_NAME; - if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null; - if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) return; - return insert(line, index, name ? [ - genColumn, - sourcesIndex, - sourceLine, - sourceColumn, - namesIndex - ] : [ - genColumn, - sourcesIndex, - sourceLine, - sourceColumn - ]); -} -function assert$2(_val) {} -function getIndex(arr, index) { - for (let i$1 = arr.length; i$1 <= index; i$1++) arr[i$1] = []; - return arr[index]; -} -function getColumnIndex(line, genColumn) { - let index = line.length; - for (let i$1 = index - 1; i$1 >= 0; index = i$1--) { - const current = line[i$1]; - if (genColumn >= current[COLUMN]) break; - } - return index; -} -function insert(array, index, value$1) { - for (let i$1 = array.length; i$1 > index; i$1--) array[i$1] = array[i$1 - 1]; - array[index] = value$1; -} -function removeEmptyFinalLines(mappings) { - const { length } = mappings; - let len = length; - for (let i$1 = len - 1; i$1 >= 0; len = i$1, i$1--) if (mappings[i$1].length > 0) break; - if (len < length) mappings.length = len; -} -function skipSourceless(line, index) { - if (index === 0) return true; - const prev = line[index - 1]; - return prev.length === 1; -} -function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex) { - if (index === 0) return false; - const prev = line[index - 1]; - if (prev.length === 1) return false; - return sourcesIndex === prev[SOURCES_INDEX] && sourceLine === prev[SOURCE_LINE] && sourceColumn === prev[SOURCE_COLUMN] && namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME); -} - -//#endregion -//#region ../../node_modules/.pnpm/@jridgewell+remapping@2.3.5/node_modules/@jridgewell/remapping/dist/remapping.mjs -var SOURCELESS_MAPPING = /* @__PURE__ */ SegmentObject("", -1, -1, "", null, false); -var EMPTY_SOURCES = []; -function SegmentObject(source, line, column, name, content, ignore) { - return { - source, - line, - column, - name, - content, - ignore - }; -} -function Source(map$1, sources, source, content, ignore) { - return { - map: map$1, - sources, - source, - content, - ignore - }; -} -function MapSource(map$1, sources) { - return Source(map$1, sources, "", null, false); -} -function OriginalSource(source, content, ignore) { - return Source(null, EMPTY_SOURCES, source, content, ignore); -} -function traceMappings(tree) { - const gen = new GenMapping({ file: tree.map.file }); - const { sources: rootSources, map: map$1 } = tree; - const rootNames = map$1.names; - const rootMappings = decodedMappings(map$1); - for (let i$1 = 0; i$1 < rootMappings.length; i$1++) { - const segments = rootMappings[i$1]; - for (let j = 0; j < segments.length; j++) { - const segment = segments[j]; - const genCol = segment[0]; - let traced = SOURCELESS_MAPPING; - if (segment.length !== 1) { - const source2 = rootSources[segment[1]]; - traced = originalPositionFor$1(source2, segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : ""); - if (traced == null) continue; - } - const { column, line, name, content, source, ignore } = traced; - maybeAddSegment(gen, i$1, genCol, source, line, column, name); - if (source && content != null) setSourceContent(gen, source, content); - if (ignore) setIgnore(gen, source, true); - } - } - return gen; -} -function originalPositionFor$1(source, line, column, name) { - if (!source.map) return SegmentObject(source.source, line, column, name, source.content, source.ignore); - const segment = traceSegment(source.map, line, column); - if (segment == null) return null; - if (segment.length === 1) return SOURCELESS_MAPPING; - return originalPositionFor$1(source.sources[segment[1]], segment[2], segment[3], segment.length === 5 ? source.map.names[segment[4]] : name); -} -function asArray(value$1) { - if (Array.isArray(value$1)) return value$1; - return [value$1]; -} -function buildSourceMapTree(input, loader$1) { - const maps = asArray(input).map((m$2) => new TraceMap(m$2, "")); - const map$1 = maps.pop(); - for (let i$1 = 0; i$1 < maps.length; i$1++) if (maps[i$1].sources.length > 1) throw new Error(`Transformation map ${i$1} must have exactly one source file. -Did you specify these with the most recent transformation maps first?`); - let tree = build$2(map$1, loader$1, "", 0); - for (let i$1 = maps.length - 1; i$1 >= 0; i$1--) tree = MapSource(maps[i$1], [tree]); - return tree; -} -function build$2(map$1, loader$1, importer, importerDepth) { - const { resolvedSources, sourcesContent, ignoreList } = map$1; - const depth = importerDepth + 1; - const children = resolvedSources.map((sourceFile, i$1) => { - const ctx = { - importer, - depth, - source: sourceFile || "", - content: void 0, - ignore: void 0 - }; - const sourceMap = loader$1(ctx.source, ctx); - const { source, content, ignore } = ctx; - if (sourceMap) return build$2(new TraceMap(sourceMap, source), loader$1, source, depth); - const sourceContent = content !== void 0 ? content : sourcesContent ? sourcesContent[i$1] : null; - const ignored = ignore !== void 0 ? ignore : ignoreList ? ignoreList.includes(i$1) : false; - return OriginalSource(source, sourceContent, ignored); - }); - return MapSource(map$1, children); -} -var SourceMap$1 = class { - constructor(map$1, options$1) { - const out = options$1.decodedMappings ? toDecodedMap(map$1) : toEncodedMap(map$1); - this.version = out.version; - this.file = out.file; - this.mappings = out.mappings; - this.names = out.names; - this.ignoreList = out.ignoreList; - this.sourceRoot = out.sourceRoot; - this.sources = out.sources; - if (!options$1.excludeContent) this.sourcesContent = out.sourcesContent; - } - toString() { - return JSON.stringify(this); - } -}; -function remapping(input, loader$1, options$1) { - const opts = typeof options$1 === "object" ? options$1 : { - excludeContent: !!options$1, - decodedMappings: false - }; - const tree = buildSourceMapTree(input, loader$1); - return new SourceMap$1(traceMappings(tree), opts); -} - -//#endregion -//#region ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js -var require_ms$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js": ((exports, module) => { - /** - * Helpers. - */ - var s$1 = 1e3; - var m$1 = s$1 * 60; - var h$1 = m$1 * 60; - var d$1 = h$1 * 24; - var w = d$1 * 7; - var y$1 = d$1 * 365.25; - /** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public - */ - module.exports = function(val, options$1) { - options$1 = options$1 || {}; - var type = typeof val; - if (type === "string" && val.length > 0) return parse$15(val); - else if (type === "number" && isFinite(val)) return options$1.long ? fmtLong$1(val) : fmtShort$1(val); - throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val)); - }; - /** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private - */ - function parse$15(str) { - str = String(str); - if (str.length > 100) return; - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str); - if (!match) return; - var n$2 = parseFloat(match[1]); - var type = (match[2] || "ms").toLowerCase(); - switch (type) { - case "years": - case "year": - case "yrs": - case "yr": - case "y": return n$2 * y$1; - case "weeks": - case "week": - case "w": return n$2 * w; - case "days": - case "day": - case "d": return n$2 * d$1; - case "hours": - case "hour": - case "hrs": - case "hr": - case "h": return n$2 * h$1; - case "minutes": - case "minute": - case "mins": - case "min": - case "m": return n$2 * m$1; - case "seconds": - case "second": - case "secs": - case "sec": - case "s": return n$2 * s$1; - case "milliseconds": - case "millisecond": - case "msecs": - case "msec": - case "ms": return n$2; - default: return void 0; - } - } - /** - * Short format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - function fmtShort$1(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d$1) return Math.round(ms / d$1) + "d"; - if (msAbs >= h$1) return Math.round(ms / h$1) + "h"; - if (msAbs >= m$1) return Math.round(ms / m$1) + "m"; - if (msAbs >= s$1) return Math.round(ms / s$1) + "s"; - return ms + "ms"; - } - /** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - function fmtLong$1(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d$1) return plural$1(ms, msAbs, d$1, "day"); - if (msAbs >= h$1) return plural$1(ms, msAbs, h$1, "hour"); - if (msAbs >= m$1) return plural$1(ms, msAbs, m$1, "minute"); - if (msAbs >= s$1) return plural$1(ms, msAbs, s$1, "second"); - return ms + " ms"; - } - /** - * Pluralization helper. - */ - function plural$1(ms, msAbs, n$2, name) { - var isPlural = msAbs >= n$2 * 1.5; - return Math.round(ms / n$2) + " " + name + (isPlural ? "s" : ""); - } -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js -var require_common$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js": ((exports, module) => { - /** - * This is the common logic for both the Node.js and web browser - * implementations of `debug()`. - */ - function setup(env$1) { - createDebug$1.debug = createDebug$1; - createDebug$1.default = createDebug$1; - createDebug$1.coerce = coerce$1; - createDebug$1.disable = disable$1; - createDebug$1.enable = enable$1; - createDebug$1.enabled = enabled$1; - createDebug$1.humanize = require_ms$1(); - createDebug$1.destroy = destroy$1; - Object.keys(env$1).forEach((key) => { - createDebug$1[key] = env$1[key]; - }); - /** - * The currently active debug mode names, and names to skip. - */ - createDebug$1.names = []; - createDebug$1.skips = []; - /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ - createDebug$1.formatters = {}; - /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ - function selectColor$1(namespace) { - let hash$1 = 0; - for (let i$1 = 0; i$1 < namespace.length; i$1++) { - hash$1 = (hash$1 << 5) - hash$1 + namespace.charCodeAt(i$1); - hash$1 |= 0; - } - return createDebug$1.colors[Math.abs(hash$1) % createDebug$1.colors.length]; - } - createDebug$1.selectColor = selectColor$1; - /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ - function createDebug$1(namespace) { - let prevTime$1; - let enableOverride = null; - let namespacesCache; - let enabledCache; - function debug$19(...args) { - if (!debug$19.enabled) return; - const self$1 = debug$19; - const curr = Number(/* @__PURE__ */ new Date()); - const ms = curr - (prevTime$1 || curr); - self$1.diff = ms; - self$1.prev = prevTime$1; - self$1.curr = curr; - prevTime$1 = curr; - args[0] = createDebug$1.coerce(args[0]); - if (typeof args[0] !== "string") args.unshift("%O"); - let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format$3) => { - if (match === "%%") return "%"; - index++; - const formatter = createDebug$1.formatters[format$3]; - if (typeof formatter === "function") { - const val = args[index]; - match = formatter.call(self$1, val); - args.splice(index, 1); - index--; - } - return match; - }); - createDebug$1.formatArgs.call(self$1, args); - const logFn = self$1.log || createDebug$1.log; - logFn.apply(self$1, args); - } - debug$19.namespace = namespace; - debug$19.useColors = createDebug$1.useColors(); - debug$19.color = createDebug$1.selectColor(namespace); - debug$19.extend = extend; - debug$19.destroy = createDebug$1.destroy; - Object.defineProperty(debug$19, "enabled", { - enumerable: true, - configurable: false, - get: () => { - if (enableOverride !== null) return enableOverride; - if (namespacesCache !== createDebug$1.namespaces) { - namespacesCache = createDebug$1.namespaces; - enabledCache = createDebug$1.enabled(namespace); - } - return enabledCache; - }, - set: (v) => { - enableOverride = v; - } - }); - if (typeof createDebug$1.init === "function") createDebug$1.init(debug$19); - return debug$19; - } - function extend(namespace, delimiter) { - const newDebug = createDebug$1(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace); - newDebug.log = this.log; - return newDebug; - } - /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ - function enable$1(namespaces) { - createDebug$1.save(namespaces); - createDebug$1.namespaces = namespaces; - createDebug$1.names = []; - createDebug$1.skips = []; - const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean); - for (const ns of split) if (ns[0] === "-") createDebug$1.skips.push(ns.slice(1)); - else createDebug$1.names.push(ns); - } - /** - * Checks if the given string matches a namespace template, honoring - * asterisks as wildcards. - * - * @param {String} search - * @param {String} template - * @return {Boolean} - */ - function matchesTemplate(search, template) { - let searchIndex = 0; - let templateIndex = 0; - let starIndex = -1; - let matchIndex = 0; - while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") { - starIndex = templateIndex; - matchIndex = searchIndex; - templateIndex++; - } else { - searchIndex++; - templateIndex++; - } - else if (starIndex !== -1) { - templateIndex = starIndex + 1; - matchIndex++; - searchIndex = matchIndex; - } else return false; - while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++; - return templateIndex === template.length; - } - /** - * Disable debug output. - * - * @return {String} namespaces - * @api public - */ - function disable$1() { - const namespaces = [...createDebug$1.names, ...createDebug$1.skips.map((namespace) => "-" + namespace)].join(","); - createDebug$1.enable(""); - return namespaces; - } - /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ - function enabled$1(name) { - for (const skip of createDebug$1.skips) if (matchesTemplate(name, skip)) return false; - for (const ns of createDebug$1.names) if (matchesTemplate(name, ns)) return true; - return false; - } - /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ - function coerce$1(val) { - if (val instanceof Error) return val.stack || val.message; - return val; - } - /** - * XXX DO NOT USE. This is a temporary stub function. - * XXX It WILL be removed in the next major release. - */ - function destroy$1() { - console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."); - } - createDebug$1.enable(createDebug$1.load()); - return createDebug$1; - } - module.exports = setup; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js -var require_node$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js": ((exports, module) => { - /** - * Module dependencies. - */ - const tty$1 = __require("tty"); - const util$2 = __require("util"); - /** - * This is the Node.js implementation of `debug()`. - */ - exports.init = init$2; - exports.log = log$3; - exports.formatArgs = formatArgs$1; - exports.save = save$1; - exports.load = load$2; - exports.useColors = useColors$1; - exports.destroy = util$2.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."); - /** - * Colors. - */ - exports.colors = [ - 6, - 2, - 3, - 4, - 5, - 1 - ]; - try { - const supportsColor = __require("supports-color"); - if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.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 (error$1) {} - /** - * Build up the default `inspectOpts` object from the environment variables. - * - * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js - */ - exports.inspectOpts = Object.keys(process.env).filter((key) => { - return /^debug_/i.test(key); - }).reduce((obj, key) => { - const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => { - return k.toUpperCase(); - }); - let val = process.env[key]; - if (/^(yes|on|true|enabled)$/i.test(val)) val = true; - else if (/^(no|off|false|disabled)$/i.test(val)) val = false; - else if (val === "null") val = null; - else val = Number(val); - obj[prop] = val; - return obj; - }, {}); - /** - * Is stdout a TTY? Colored output is enabled when `true`. - */ - function useColors$1() { - return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty$1.isatty(process.stderr.fd); - } - /** - * Adds ANSI color escape codes if enabled. - * - * @api public - */ - function formatArgs$1(args) { - const { namespace: name, useColors: useColors$2 } = this; - if (useColors$2) { - const c = this.color; - const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c); - const prefix = ` ${colorCode};1m${name} \u001B[0m`; - args[0] = prefix + args[0].split("\n").join("\n" + prefix); - args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m"); - } else args[0] = getDate() + name + " " + args[0]; - } - function getDate() { - if (exports.inspectOpts.hideDate) return ""; - return (/* @__PURE__ */ new Date()).toISOString() + " "; - } - /** - * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr. - */ - function log$3(...args) { - return process.stderr.write(util$2.formatWithOptions(exports.inspectOpts, ...args) + "\n"); - } - /** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ - function save$1(namespaces) { - if (namespaces) process.env.DEBUG = namespaces; - else delete process.env.DEBUG; - } - /** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ - function load$2() { - return process.env.DEBUG; - } - /** - * Init logic for `debug` instances. - * - * Create a new `inspectOpts` object in case `useColors` is set - * differently for a particular `debug` instance. - */ - function init$2(debug$19) { - debug$19.inspectOpts = {}; - const keys = Object.keys(exports.inspectOpts); - for (let i$1 = 0; i$1 < keys.length; i$1++) debug$19.inspectOpts[keys[i$1]] = exports.inspectOpts[keys[i$1]]; - } - module.exports = require_common$1()(exports); - const { formatters } = module.exports; - /** - * Map %o to `util.inspect()`, all on a single line. - */ - formatters.o = function(v) { - this.inspectOpts.colors = this.useColors; - return util$2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" "); - }; - /** - * Map %O to `util.inspect()`, allowing multiple lines if needed. - */ - formatters.O = function(v) { - this.inspectOpts.colors = this.useColors; - return util$2.inspect(v, this.inspectOpts); - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/estree-walker@2.0.2/node_modules/estree-walker/dist/esm/estree-walker.js -/** @typedef { import('estree').BaseNode} BaseNode */ -/** @typedef {{ -skip: () => void; -remove: () => void; -replace: (node: BaseNode) => void; -}} WalkerContext */ -var WalkerBase$1 = class { - constructor() { - /** @type {boolean} */ - this.should_skip = false; - /** @type {boolean} */ - this.should_remove = false; - /** @type {BaseNode | null} */ - this.replacement = null; - /** @type {WalkerContext} */ - this.context = { - skip: () => this.should_skip = true, - remove: () => this.should_remove = true, - replace: (node) => this.replacement = node - }; - } - /** - * - * @param {any} parent - * @param {string} prop - * @param {number} index - * @param {BaseNode} node - */ - replace(parent, prop, index, node) { - if (parent) if (index !== null) parent[prop][index] = node; - else parent[prop] = node; - } - /** - * - * @param {any} parent - * @param {string} prop - * @param {number} index - */ - remove(parent, prop, index) { - if (parent) if (index !== null) parent[prop].splice(index, 1); - else delete parent[prop]; - } -}; -/** @typedef { import('estree').BaseNode} BaseNode */ -/** @typedef { import('./walker.js').WalkerContext} WalkerContext */ -/** @typedef {( -* this: WalkerContext, -* node: BaseNode, -* parent: BaseNode, -* key: string, -* index: number -* ) => void} SyncHandler */ -var SyncWalker$1 = class extends WalkerBase$1 { - /** - * - * @param {SyncHandler} enter - * @param {SyncHandler} leave - */ - constructor(enter, leave) { - super(); - /** @type {SyncHandler} */ - this.enter = enter; - /** @type {SyncHandler} */ - this.leave = leave; - } - /** - * - * @param {BaseNode} node - * @param {BaseNode} parent - * @param {string} [prop] - * @param {number} [index] - * @returns {BaseNode} - */ - visit(node, parent, prop, index) { - if (node) { - if (this.enter) { - const _should_skip = this.should_skip; - const _should_remove = this.should_remove; - const _replacement = this.replacement; - this.should_skip = false; - this.should_remove = false; - this.replacement = null; - this.enter.call(this.context, node, parent, prop, index); - if (this.replacement) { - node = this.replacement; - this.replace(parent, prop, index, node); - } - if (this.should_remove) this.remove(parent, prop, index); - const skipped = this.should_skip; - const removed = this.should_remove; - this.should_skip = _should_skip; - this.should_remove = _should_remove; - this.replacement = _replacement; - if (skipped) return node; - if (removed) return null; - } - for (const key in node) { - const value$1 = node[key]; - if (typeof value$1 !== "object") continue; - else if (Array.isArray(value$1)) { - for (let i$1 = 0; i$1 < value$1.length; i$1 += 1) if (value$1[i$1] !== null && typeof value$1[i$1].type === "string") { - if (!this.visit(value$1[i$1], node, key, i$1)) i$1--; - } - } else if (value$1 !== null && typeof value$1.type === "string") this.visit(value$1, node, key, null); - } - if (this.leave) { - const _replacement = this.replacement; - const _should_remove = this.should_remove; - this.replacement = null; - this.should_remove = false; - this.leave.call(this.context, node, parent, prop, index); - if (this.replacement) { - node = this.replacement; - this.replace(parent, prop, index, node); - } - if (this.should_remove) this.remove(parent, prop, index); - const removed = this.should_remove; - this.replacement = _replacement; - this.should_remove = _should_remove; - if (removed) return null; - } - } - return node; - } -}; -/** @typedef { import('estree').BaseNode} BaseNode */ -/** @typedef { import('./sync.js').SyncHandler} SyncHandler */ -/** @typedef { import('./async.js').AsyncHandler} AsyncHandler */ -/** -* -* @param {BaseNode} ast -* @param {{ -* enter?: SyncHandler -* leave?: SyncHandler -* }} walker -* @returns {BaseNode} -*/ -function walk$2(ast, { enter, leave }) { - const instance = new SyncWalker$1(enter, leave); - return instance.visit(ast, null); -} - -//#endregion -//#region ../../node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.43.0/node_modules/@rollup/pluginutils/dist/es/index.js -const extractors = { - ArrayPattern(names, param) { - for (const element of param.elements) if (element) extractors[element.type](names, element); - }, - AssignmentPattern(names, param) { - extractors[param.left.type](names, param.left); - }, - Identifier(names, param) { - names.push(param.name); - }, - MemberExpression() {}, - ObjectPattern(names, param) { - for (const prop of param.properties) if (prop.type === "RestElement") extractors.RestElement(names, prop); - else extractors[prop.value.type](names, prop.value); - }, - RestElement(names, param) { - extractors[param.argument.type](names, param.argument); - } -}; -const extractAssignedNames = function extractAssignedNames$1(param) { - const names = []; - extractors[param.type](names, param); - return names; -}; -const blockDeclarations = { - const: true, - let: true -}; -var Scope = class { - constructor(options$1 = {}) { - this.parent = options$1.parent; - this.isBlockScope = !!options$1.block; - this.declarations = Object.create(null); - if (options$1.params) options$1.params.forEach((param) => { - extractAssignedNames(param).forEach((name) => { - this.declarations[name] = true; - }); - }); - } - addDeclaration(node, isBlockDeclaration, isVar) { - if (!isBlockDeclaration && this.isBlockScope) this.parent.addDeclaration(node, isBlockDeclaration, isVar); - else if (node.id) extractAssignedNames(node.id).forEach((name) => { - this.declarations[name] = true; - }); - } - contains(name) { - return this.declarations[name] || (this.parent ? this.parent.contains(name) : false); - } -}; -const attachScopes = function attachScopes$1(ast, propertyName = "scope") { - let scope = new Scope(); - walk$2(ast, { - enter(n$2, parent) { - const node = n$2; - if (/(?:Function|Class)Declaration/.test(node.type)) scope.addDeclaration(node, false, false); - if (node.type === "VariableDeclaration") { - const { kind } = node; - const isBlockDeclaration = blockDeclarations[kind]; - node.declarations.forEach((declaration) => { - scope.addDeclaration(declaration, isBlockDeclaration, true); - }); - } - let newScope; - if (node.type.includes("Function")) { - const func = node; - newScope = new Scope({ - parent: scope, - block: false, - params: func.params - }); - if (func.type === "FunctionExpression" && func.id) newScope.addDeclaration(func, false, false); - } - if (/For(?:In|Of)?Statement/.test(node.type)) newScope = new Scope({ - parent: scope, - block: true - }); - if (node.type === "BlockStatement" && !parent.type.includes("Function")) newScope = new Scope({ - parent: scope, - block: true - }); - if (node.type === "CatchClause") newScope = new Scope({ - parent: scope, - params: node.param ? [node.param] : [], - block: true - }); - if (newScope) { - Object.defineProperty(node, propertyName, { - value: newScope, - configurable: true - }); - scope = newScope; - } - }, - leave(n$2) { - const node = n$2; - if (node[propertyName]) scope = scope.parent; - } - }); - return scope; -}; -function isArray(arg) { - return Array.isArray(arg); -} -function ensureArray(thing) { - if (isArray(thing)) return thing; - if (thing == null) return []; - return [thing]; -} -const normalizePathRegExp = new RegExp(`\\${win32.sep}`, "g"); -const normalizePath$3 = function normalizePath$5(filename) { - return filename.replace(normalizePathRegExp, posix$1.sep); -}; -function getMatcherString$1(id, resolutionBase) { - if (resolutionBase === false || isAbsolute$1(id) || id.startsWith("**")) return normalizePath$3(id); - const basePath = normalizePath$3(resolve$1(resolutionBase || "")).replace(/[-^$*+?.()|[\]{}]/g, "\\$&"); - return posix$1.join(basePath, normalizePath$3(id)); -} -const createFilter$2 = function createFilter$3(include, exclude, options$1) { - const resolutionBase = options$1 && options$1.resolve; - const getMatcher = (id) => id instanceof RegExp ? id : { test: (what) => { - const pattern = getMatcherString$1(id, resolutionBase); - const fn = picomatch(pattern, { dot: true }); - const result = fn(what); - return result; - } }; - const includeMatchers = ensureArray(include).map(getMatcher); - const excludeMatchers = ensureArray(exclude).map(getMatcher); - if (!includeMatchers.length && !excludeMatchers.length) return (id) => typeof id === "string" && !id.includes("\0"); - return function result(id) { - if (typeof id !== "string") return false; - if (id.includes("\0")) return false; - const pathId = normalizePath$3(id); - for (let i$1 = 0; i$1 < excludeMatchers.length; ++i$1) { - const matcher = excludeMatchers[i$1]; - if (matcher instanceof RegExp) matcher.lastIndex = 0; - if (matcher.test(pathId)) return false; - } - for (let i$1 = 0; i$1 < includeMatchers.length; ++i$1) { - const matcher = includeMatchers[i$1]; - if (matcher instanceof RegExp) matcher.lastIndex = 0; - if (matcher.test(pathId)) return true; - } - return !includeMatchers.length; - }; -}; -const reservedWords = "break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public"; -const builtins = "arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl"; -const forbiddenIdentifiers = new Set(`${reservedWords} ${builtins}`.split(" ")); -forbiddenIdentifiers.add(""); -const makeLegalIdentifier = function makeLegalIdentifier$1(str) { - let identifier = str.replace(/-(\w)/g, (_, letter) => letter.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g, "_"); - if (/\d/.test(identifier[0]) || forbiddenIdentifiers.has(identifier)) identifier = `_${identifier}`; - return identifier || "_"; -}; -function stringify$4(obj) { - return (JSON.stringify(obj) || "undefined").replace(/[\u2028\u2029]/g, (char) => `\\u${`000${char.charCodeAt(0).toString(16)}`.slice(-4)}`); -} -function serializeArray(arr, indent, baseIndent) { - let output = "["; - const separator = indent ? `\n${baseIndent}${indent}` : ""; - for (let i$1 = 0; i$1 < arr.length; i$1++) { - const key = arr[i$1]; - output += `${i$1 > 0 ? "," : ""}${separator}${serialize(key, indent, baseIndent + indent)}`; - } - return `${output}${indent ? `\n${baseIndent}` : ""}]`; -} -function serializeObject(obj, indent, baseIndent) { - let output = "{"; - const separator = indent ? `\n${baseIndent}${indent}` : ""; - const entries = Object.entries(obj); - for (let i$1 = 0; i$1 < entries.length; i$1++) { - const [key, value$1] = entries[i$1]; - const stringKey = makeLegalIdentifier(key) === key ? key : stringify$4(key); - output += `${i$1 > 0 ? "," : ""}${separator}${stringKey}:${indent ? " " : ""}${serialize(value$1, indent, baseIndent + indent)}`; - } - return `${output}${indent ? `\n${baseIndent}` : ""}}`; -} -function serialize(obj, indent, baseIndent) { - if (typeof obj === "object" && obj !== null) { - if (Array.isArray(obj)) return serializeArray(obj, indent, baseIndent); - if (obj instanceof Date) return `new Date(${obj.getTime()})`; - if (obj instanceof RegExp) return obj.toString(); - return serializeObject(obj, indent, baseIndent); - } - if (typeof obj === "number") { - if (obj === Infinity) return "Infinity"; - if (obj === -Infinity) return "-Infinity"; - if (obj === 0) return 1 / obj === Infinity ? "0" : "-0"; - if (obj !== obj) return "NaN"; - } - if (typeof obj === "symbol") { - const key = Symbol.keyFor(obj); - if (key !== void 0) return `Symbol.for(${stringify$4(key)})`; - } - if (typeof obj === "bigint") return `${obj}n`; - return stringify$4(obj); -} -const hasStringIsWellFormed = "isWellFormed" in String.prototype; -function isWellFormedString(input) { - if (hasStringIsWellFormed) return input.isWellFormed(); - return !/\p{Surrogate}/u.test(input); -} -const dataToEsm = function dataToEsm$1(data, options$1 = {}) { - var _a, _b; - const t$1 = options$1.compact ? "" : "indent" in options$1 ? options$1.indent : " "; - const _ = options$1.compact ? "" : " "; - const n$2 = options$1.compact ? "" : "\n"; - const declarationType = options$1.preferConst ? "const" : "var"; - if (options$1.namedExports === false || typeof data !== "object" || Array.isArray(data) || data instanceof Date || data instanceof RegExp || data === null) { - const code = serialize(data, options$1.compact ? null : t$1, ""); - const magic = _ || (/^[{[\-\/]/.test(code) ? "" : " "); - return `export default${magic}${code};`; - } - let maxUnderbarPrefixLength = 0; - for (const key of Object.keys(data)) { - const underbarPrefixLength = (_b = (_a = /^(_+)/.exec(key)) === null || _a === void 0 ? void 0 : _a[0].length) !== null && _b !== void 0 ? _b : 0; - if (underbarPrefixLength > maxUnderbarPrefixLength) maxUnderbarPrefixLength = underbarPrefixLength; - } - const arbitraryNamePrefix = `${"_".repeat(maxUnderbarPrefixLength + 1)}arbitrary`; - let namedExportCode = ""; - const defaultExportRows = []; - const arbitraryNameExportRows = []; - for (const [key, value$1] of Object.entries(data)) if (key === makeLegalIdentifier(key)) { - if (options$1.objectShorthand) defaultExportRows.push(key); - else defaultExportRows.push(`${key}:${_}${key}`); - namedExportCode += `export ${declarationType} ${key}${_}=${_}${serialize(value$1, options$1.compact ? null : t$1, "")};${n$2}`; - } else { - defaultExportRows.push(`${stringify$4(key)}:${_}${serialize(value$1, options$1.compact ? null : t$1, "")}`); - if (options$1.includeArbitraryNames && isWellFormedString(key)) { - const variableName = `${arbitraryNamePrefix}${arbitraryNameExportRows.length}`; - namedExportCode += `${declarationType} ${variableName}${_}=${_}${serialize(value$1, options$1.compact ? null : t$1, "")};${n$2}`; - arbitraryNameExportRows.push(`${variableName} as ${JSON.stringify(key)}`); - } - } - const arbitraryExportCode = arbitraryNameExportRows.length > 0 ? `export${_}{${n$2}${t$1}${arbitraryNameExportRows.join(`,${n$2}${t$1}`)}${n$2}};${n$2}` : ""; - const defaultExportCode = `export default${_}{${n$2}${t$1}${defaultExportRows.join(`,${n$2}${t$1}`)}${n$2}};${n$2}`; - return `${namedExportCode}${arbitraryExportCode}${defaultExportCode}`; -}; - -//#endregion -//#region src/node/packages.ts -let pnp; -if (process.versions.pnp) try { - pnp = createRequire( - /** #__KEEP__ */ - import.meta.url - )("pnpapi"); -} catch {} -function invalidatePackageData(packageCache, pkgPath) { - const pkgDir = normalizePath(path.dirname(pkgPath)); - packageCache.forEach((pkg, cacheKey) => { - if (pkg.dir === pkgDir) packageCache.delete(cacheKey); - }); -} -function resolvePackageData(pkgName, basedir, preserveSymlinks = false, packageCache) { - if (pnp) { - const cacheKey = getRpdCacheKey(pkgName, basedir, preserveSymlinks); - if (packageCache?.has(cacheKey)) return packageCache.get(cacheKey); - try { - const pkg = pnp.resolveToUnqualified(pkgName, basedir, { considerBuiltins: false }); - if (!pkg) return null; - const pkgData = loadPackageData(path.join(pkg, "package.json")); - packageCache?.set(cacheKey, pkgData); - return pkgData; - } catch { - return null; - } - } - const originalBasedir = basedir; - while (basedir) { - if (packageCache) { - const cached = getRpdCache(packageCache, pkgName, basedir, originalBasedir, preserveSymlinks); - if (cached) return cached; - } - const pkg = path.join(basedir, "node_modules", pkgName, "package.json"); - try { - if (fs.existsSync(pkg)) { - const pkgPath = preserveSymlinks ? pkg : safeRealpathSync(pkg); - const pkgData = loadPackageData(pkgPath); - if (packageCache) setRpdCache(packageCache, pkgData, pkgName, basedir, originalBasedir, preserveSymlinks); - return pkgData; - } - } catch {} - const nextBasedir = path.dirname(basedir); - if (nextBasedir === basedir) break; - basedir = nextBasedir; - } - return null; -} -function findNearestPackageData(basedir, packageCache) { - const originalBasedir = basedir; - while (basedir) { - if (packageCache) { - const cached = getFnpdCache(packageCache, basedir, originalBasedir); - if (cached) return cached; - } - const pkgPath = path.join(basedir, "package.json"); - if (tryStatSync(pkgPath)?.isFile()) try { - const pkgData = loadPackageData(pkgPath); - if (packageCache) setFnpdCache(packageCache, pkgData, basedir, originalBasedir); - return pkgData; - } catch {} - const nextBasedir = path.dirname(basedir); - if (nextBasedir === basedir) break; - basedir = nextBasedir; - } - return null; -} -function findNearestMainPackageData(basedir, packageCache) { - const nearestPackage = findNearestPackageData(basedir, packageCache); - return nearestPackage && (nearestPackage.data.name ? nearestPackage : findNearestMainPackageData(path.dirname(nearestPackage.dir), packageCache)); -} -function loadPackageData(pkgPath) { - const data = JSON.parse(stripBomTag(fs.readFileSync(pkgPath, "utf-8"))); - const pkgDir = normalizePath(path.dirname(pkgPath)); - const { sideEffects } = data; - let hasSideEffects; - if (typeof sideEffects === "boolean") hasSideEffects = () => sideEffects; - else if (Array.isArray(sideEffects)) if (sideEffects.length <= 0) hasSideEffects = () => false; - else { - const finalPackageSideEffects = sideEffects.map((sideEffect) => { - if (sideEffect.includes("/")) return sideEffect; - return `**/${sideEffect}`; - }); - hasSideEffects = createFilter(finalPackageSideEffects, null, { resolve: pkgDir }); - } - else hasSideEffects = () => null; - const resolvedCache = {}; - const pkg = { - dir: pkgDir, - data, - hasSideEffects, - setResolvedCache(key, entry, options$1) { - resolvedCache[getResolveCacheKey(key, options$1)] = entry; - }, - getResolvedCache(key, options$1) { - return resolvedCache[getResolveCacheKey(key, options$1)]; - } - }; - return pkg; -} -function getResolveCacheKey(key, options$1) { - return [ - key, - options$1.isRequire ? "1" : "0", - options$1.conditions.join("_"), - options$1.extensions.join("_"), - options$1.mainFields.join("_") - ].join("|"); -} -function findNearestNodeModules(basedir) { - while (basedir) { - const pkgPath = path.join(basedir, "node_modules"); - if (tryStatSync(pkgPath)?.isDirectory()) return pkgPath; - const nextBasedir = path.dirname(basedir); - if (nextBasedir === basedir) break; - basedir = nextBasedir; - } - return null; -} -function watchPackageDataPlugin(packageCache) { - const watchQueue = /* @__PURE__ */ new Set(); - const watchedDirs = /* @__PURE__ */ new Set(); - const watchFileStub = (id) => { - watchQueue.add(id); - }; - let watchFile = watchFileStub; - const setPackageData = packageCache.set.bind(packageCache); - packageCache.set = (id, pkg) => { - if (!isInNodeModules(pkg.dir) && !watchedDirs.has(pkg.dir)) { - watchedDirs.add(pkg.dir); - watchFile(path.join(pkg.dir, "package.json")); - } - return setPackageData(id, pkg); - }; - return { - name: "vite:watch-package-data", - buildStart() { - watchFile = this.addWatchFile.bind(this); - watchQueue.forEach(watchFile); - watchQueue.clear(); - }, - buildEnd() { - watchFile = watchFileStub; - }, - watchChange(id) { - if (id.endsWith("/package.json")) invalidatePackageData(packageCache, path.normalize(id)); - } - }; -} -/** -* Get cached `resolvePackageData` value based on `basedir`. When one is found, -* and we've already traversed some directories between `basedir` and `originalBasedir`, -* we cache the value for those in-between directories as well. -* -* This makes it so the fs is only read once for a shared `basedir`. -*/ -function getRpdCache(packageCache, pkgName, basedir, originalBasedir, preserveSymlinks) { - const cacheKey = getRpdCacheKey(pkgName, basedir, preserveSymlinks); - const pkgData = packageCache.get(cacheKey); - if (pkgData) { - traverseBetweenDirs(originalBasedir, basedir, (dir) => { - packageCache.set(getRpdCacheKey(pkgName, dir, preserveSymlinks), pkgData); - }); - return pkgData; - } -} -function setRpdCache(packageCache, pkgData, pkgName, basedir, originalBasedir, preserveSymlinks) { - packageCache.set(getRpdCacheKey(pkgName, basedir, preserveSymlinks), pkgData); - traverseBetweenDirs(originalBasedir, basedir, (dir) => { - packageCache.set(getRpdCacheKey(pkgName, dir, preserveSymlinks), pkgData); - }); -} -function getRpdCacheKey(pkgName, basedir, preserveSymlinks) { - return `rpd_${pkgName}_${basedir}_${preserveSymlinks}`; -} -/** -* Get cached `findNearestPackageData` value based on `basedir`. When one is found, -* and we've already traversed some directories between `basedir` and `originalBasedir`, -* we cache the value for those in-between directories as well. -* -* This makes it so the fs is only read once for a shared `basedir`. -*/ -function getFnpdCache(packageCache, basedir, originalBasedir) { - const cacheKey = getFnpdCacheKey(basedir); - const pkgData = packageCache.get(cacheKey); - if (pkgData) { - traverseBetweenDirs(originalBasedir, basedir, (dir) => { - packageCache.set(getFnpdCacheKey(dir), pkgData); - }); - return pkgData; - } -} -function setFnpdCache(packageCache, pkgData, basedir, originalBasedir) { - packageCache.set(getFnpdCacheKey(basedir), pkgData); - traverseBetweenDirs(originalBasedir, basedir, (dir) => { - packageCache.set(getFnpdCacheKey(dir), pkgData); - }); -} -function getFnpdCacheKey(basedir) { - return `fnpd_${basedir}`; -} -/** -* Traverse between `longerDir` (inclusive) and `shorterDir` (exclusive) and call `cb` for each dir. -* @param longerDir Longer dir path, e.g. `/User/foo/bar/baz` -* @param shorterDir Shorter dir path, e.g. `/User/foo` -*/ -function traverseBetweenDirs(longerDir, shorterDir, cb) { - while (longerDir !== shorterDir) { - cb(longerDir); - longerDir = path.dirname(longerDir); - } -} - -//#endregion -//#region src/node/utils.ts -var import_picocolors$33 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -var import_node = /* @__PURE__ */ __toESM(require_node$1(), 1); -const createFilter = createFilter$2; -const replaceSlashOrColonRE = /[/:]/g; -const replaceDotRE = /\./g; -const replaceNestedIdRE = /\s*>\s*/g; -const replaceHashRE = /#/g; -const flattenId = (id) => { - const flatId = limitFlattenIdLength(id.replace(replaceSlashOrColonRE, "_").replace(replaceDotRE, "__").replace(replaceNestedIdRE, "___").replace(replaceHashRE, "____")); - return flatId; -}; -const FLATTEN_ID_HASH_LENGTH = 8; -const FLATTEN_ID_MAX_FILE_LENGTH = 170; -const limitFlattenIdLength = (id, limit = FLATTEN_ID_MAX_FILE_LENGTH) => { - if (id.length <= limit) return id; - return id.slice(0, limit - (FLATTEN_ID_HASH_LENGTH + 1)) + "_" + getHash(id); -}; -const normalizeId = (id) => id.replace(replaceNestedIdRE, " > "); -const NODE_BUILTIN_NAMESPACE = "node:"; -const BUN_BUILTIN_NAMESPACE = "bun:"; -const nodeBuiltins = builtinModules.filter((id) => !id.includes(":")); -const isBuiltinCache = /* @__PURE__ */ new WeakMap(); -function isBuiltin(builtins$1, id) { - let isBuiltin$1 = isBuiltinCache.get(builtins$1); - if (!isBuiltin$1) { - isBuiltin$1 = createIsBuiltin(builtins$1); - isBuiltinCache.set(builtins$1, isBuiltin$1); - } - return isBuiltin$1(id); -} -function createIsBuiltin(builtins$1) { - const plainBuiltinsSet = new Set(builtins$1.filter((builtin) => typeof builtin === "string")); - const regexBuiltins = builtins$1.filter((builtin) => typeof builtin !== "string"); - return (id) => plainBuiltinsSet.has(id) || regexBuiltins.some((regexp) => regexp.test(id)); -} -const nodeLikeBuiltins = [ - ...nodeBuiltins, - /* @__PURE__ */ new RegExp(`^${NODE_BUILTIN_NAMESPACE}`), - /* @__PURE__ */ new RegExp(`^${BUN_BUILTIN_NAMESPACE}`) -]; -function isNodeLikeBuiltin(id) { - return isBuiltin(nodeLikeBuiltins, id); -} -function isNodeBuiltin(id) { - if (id.startsWith(NODE_BUILTIN_NAMESPACE)) return true; - return nodeBuiltins.includes(id); -} -function isInNodeModules(id) { - return id.includes("node_modules"); -} -function moduleListContains(moduleList, id) { - return moduleList?.some((m$2) => m$2 === id || id.startsWith(withTrailingSlash(m$2))); -} -function isOptimizable(id, optimizeDeps$1) { - const { extensions: extensions$1 } = optimizeDeps$1; - return OPTIMIZABLE_ENTRY_RE.test(id) || (extensions$1?.some((ext) => id.endsWith(ext)) ?? false); -} -const bareImportRE = /^(?![a-zA-Z]:)[\w@](?!.*:\/\/)/; -const deepImportRE = /^([^@][^/]*)\/|^(@[^/]+\/[^/]+)\//; -const _require$1 = createRequire( - /** #__KEEP__ */ - import.meta.url -); -const _dirname = path.dirname(fileURLToPath( - /** #__KEEP__ */ - import.meta.url -)); -const rollupVersion = resolvePackageData("rollup", _dirname, true)?.data.version ?? ""; -const filter = process.env.VITE_DEBUG_FILTER; -const DEBUG = process.env.DEBUG; -function createDebugger(namespace, options$1 = {}) { - const log$4 = (0, import_node.default)(namespace); - const { onlyWhenFocused, depth } = options$1; - if (depth && log$4.inspectOpts && log$4.inspectOpts.depth == null) log$4.inspectOpts.depth = options$1.depth; - let enabled$1 = log$4.enabled; - if (enabled$1 && onlyWhenFocused) { - const ns = typeof onlyWhenFocused === "string" ? onlyWhenFocused : namespace; - enabled$1 = !!DEBUG?.includes(ns); - } - if (enabled$1) return (...args) => { - if (!filter || args.some((a) => a?.includes?.(filter))) log$4(...args); - }; -} -function testCaseInsensitiveFS() { - if (!CLIENT_ENTRY.endsWith("client.mjs")) throw new Error(`cannot test case insensitive FS, CLIENT_ENTRY const doesn't contain client.mjs`); - if (!fs.existsSync(CLIENT_ENTRY)) throw new Error("cannot test case insensitive FS, CLIENT_ENTRY does not point to an existing file: " + CLIENT_ENTRY); - return fs.existsSync(CLIENT_ENTRY.replace("client.mjs", "cLiEnT.mjs")); -} -const isCaseInsensitiveFS = testCaseInsensitiveFS(); -const VOLUME_RE = /^[A-Z]:/i; -function normalizePath(id) { - return path.posix.normalize(isWindows ? slash(id) : id); -} -function fsPathFromId(id) { - const fsPath = normalizePath(id.startsWith(FS_PREFIX) ? id.slice(FS_PREFIX.length) : id); - return fsPath[0] === "/" || VOLUME_RE.test(fsPath) ? fsPath : `/${fsPath}`; -} -function fsPathFromUrl(url$3) { - return fsPathFromId(cleanUrl(url$3)); -} -/** -* Check if dir is a parent of file -* -* Warning: parameters are not validated, only works with normalized absolute paths -* -* @param dir - normalized absolute path -* @param file - normalized absolute path -* @returns true if dir is a parent of file -*/ -function isParentDirectory(dir, file) { - dir = withTrailingSlash(dir); - return file.startsWith(dir) || isCaseInsensitiveFS && file.toLowerCase().startsWith(dir.toLowerCase()); -} -/** -* Check if 2 file name are identical -* -* Warning: parameters are not validated, only works with normalized absolute paths -* -* @param file1 - normalized absolute path -* @param file2 - normalized absolute path -* @returns true if both files url are identical -*/ -function isSameFilePath(file1, file2) { - return file1 === file2 || isCaseInsensitiveFS && file1.toLowerCase() === file2.toLowerCase(); -} -const externalRE = /^([a-z]+:)?\/\//; -const isExternalUrl = (url$3) => externalRE.test(url$3); -const dataUrlRE = /^\s*data:/i; -const isDataUrl = (url$3) => dataUrlRE.test(url$3); -const virtualModuleRE = /^virtual-module:.*/; -const virtualModulePrefix = "virtual-module:"; -const knownJsSrcRE = /\.(?:[jt]sx?|m[jt]s|vue|marko|svelte|astro|imba|mdx)(?:$|\?)/; -const isJSRequest = (url$3) => { - url$3 = cleanUrl(url$3); - if (knownJsSrcRE.test(url$3)) return true; - if (!path.extname(url$3) && url$3[url$3.length - 1] !== "/") return true; - return false; -}; -const isCSSRequest = (request) => CSS_LANGS_RE.test(request); -const importQueryRE = /(\?|&)import=?(?:&|$)/; -const directRequestRE$1 = /(\?|&)direct=?(?:&|$)/; -const internalPrefixes = [ - FS_PREFIX, - VALID_ID_PREFIX, - CLIENT_PUBLIC_PATH, - ENV_PUBLIC_PATH -]; -const InternalPrefixRE = /* @__PURE__ */ new RegExp(`^(?:${internalPrefixes.join("|")})`); -const trailingSeparatorRE = /[?&]$/; -const isImportRequest = (url$3) => importQueryRE.test(url$3); -const isInternalRequest = (url$3) => InternalPrefixRE.test(url$3); -function removeImportQuery(url$3) { - return url$3.replace(importQueryRE, "$1").replace(trailingSeparatorRE, ""); -} -function removeDirectQuery(url$3) { - return url$3.replace(directRequestRE$1, "$1").replace(trailingSeparatorRE, ""); -} -const urlRE = /(\?|&)url(?:&|$)/; -const rawRE = /(\?|&)raw(?:&|$)/; -function removeUrlQuery(url$3) { - return url$3.replace(urlRE, "$1").replace(trailingSeparatorRE, ""); -} -function injectQuery(url$3, queryToInject) { - const { file, postfix } = splitFileAndPostfix(url$3); - const normalizedFile = isWindows ? slash(file) : file; - return `${normalizedFile}?${queryToInject}${postfix[0] === "?" ? `&${postfix.slice(1)}` : postfix}`; -} -const timestampRE = /\bt=\d{13}&?\b/; -function removeTimestampQuery(url$3) { - return url$3.replace(timestampRE, "").replace(trailingSeparatorRE, ""); -} -async function asyncReplace(input, re, replacer) { - let match; - let remaining = input; - let rewritten = ""; - while (match = re.exec(remaining)) { - rewritten += remaining.slice(0, match.index); - rewritten += await replacer(match); - remaining = remaining.slice(match.index + match[0].length); - } - rewritten += remaining; - return rewritten; -} -function timeFrom(start, subtract = 0) { - const time = performance$1.now() - start - subtract; - const timeString = (time.toFixed(2) + `ms`).padEnd(5, " "); - if (time < 10) return import_picocolors$33.default.green(timeString); - else if (time < 50) return import_picocolors$33.default.yellow(timeString); - else return import_picocolors$33.default.red(timeString); -} -/** -* pretty url for logging. -*/ -function prettifyUrl(url$3, root) { - url$3 = removeTimestampQuery(url$3); - const isAbsoluteFile = url$3.startsWith(root); - if (isAbsoluteFile || url$3.startsWith(FS_PREFIX)) { - const file = path.posix.relative(root, isAbsoluteFile ? url$3 : fsPathFromId(url$3)); - return import_picocolors$33.default.dim(file); - } else return import_picocolors$33.default.dim(url$3); -} -function isObject(value$1) { - return Object.prototype.toString.call(value$1) === "[object Object]"; -} -function isDefined(value$1) { - return value$1 != null; -} -function tryStatSync(file) { - try { - return fs.statSync(file, { throwIfNoEntry: false }); - } catch {} -} -function lookupFile(dir, fileNames) { - while (dir) { - for (const fileName of fileNames) { - const fullPath = path.join(dir, fileName); - if (tryStatSync(fullPath)?.isFile()) return fullPath; - } - const parentDir$1 = path.dirname(dir); - if (parentDir$1 === dir) return; - dir = parentDir$1; - } -} -function isFilePathESM(filePath, packageCache) { - if (/\.m[jt]s$/.test(filePath)) return true; - else if (/\.c[jt]s$/.test(filePath)) return false; - else try { - const pkg = findNearestPackageData(path.dirname(filePath), packageCache); - return pkg?.data.type === "module"; - } catch { - return false; - } -} -const splitRE = /\r?\n/g; -const range = 2; -function pad$1(source, n$2 = 2) { - const lines = source.split(splitRE); - return lines.map((l) => ` `.repeat(n$2) + l).join(`\n`); -} -function posToNumber(source, pos) { - if (typeof pos === "number") return pos; - const lines = source.split(splitRE); - const { line, column } = pos; - let start = 0; - for (let i$1 = 0; i$1 < line - 1 && i$1 < lines.length; i$1++) start += lines[i$1].length + 1; - return start + column; -} -function numberToPos(source, offset$1) { - if (typeof offset$1 !== "number") return offset$1; - if (offset$1 > source.length) throw new Error(`offset is longer than source length! offset ${offset$1} > length ${source.length}`); - const lines = source.slice(0, offset$1).split(splitRE); - return { - line: lines.length, - column: lines[lines.length - 1].length - }; -} -const MAX_DISPLAY_LEN = 120; -const ELLIPSIS = "..."; -function generateCodeFrame(source, start = 0, end) { - start = Math.max(posToNumber(source, start), 0); - end = Math.min(end !== void 0 ? posToNumber(source, end) : start, source.length); - const lastPosLine = end !== void 0 ? numberToPos(source, end).line : numberToPos(source, start).line + range; - const lineNumberWidth = Math.max(3, String(lastPosLine).length + 1); - const lines = source.split(splitRE); - let count = 0; - const res = []; - for (let i$1 = 0; i$1 < lines.length; i$1++) { - count += lines[i$1].length; - if (count >= start) { - for (let j = i$1 - range; j <= i$1 + range || end > count; j++) { - if (j < 0 || j >= lines.length) continue; - const line = j + 1; - const lineLength = lines[j].length; - const pad$2 = Math.max(start - (count - lineLength), 0); - const underlineLength = Math.max(1, end > count ? lineLength - pad$2 : end - start); - let displayLine = lines[j]; - let underlinePad = pad$2; - if (lineLength > MAX_DISPLAY_LEN) { - let startIdx = 0; - if (j === i$1) { - if (underlineLength > MAX_DISPLAY_LEN) startIdx = pad$2; - else { - const center = pad$2 + Math.floor(underlineLength / 2); - startIdx = Math.max(0, center - Math.floor(MAX_DISPLAY_LEN / 2)); - } - underlinePad = Math.max(0, pad$2 - startIdx) + (startIdx > 0 ? 3 : 0); - } - const prefix = startIdx > 0 ? ELLIPSIS : ""; - const suffix = lineLength - startIdx > MAX_DISPLAY_LEN ? ELLIPSIS : ""; - const sliceLen = MAX_DISPLAY_LEN - prefix.length - suffix.length; - displayLine = prefix + displayLine.slice(startIdx, startIdx + sliceLen) + suffix; - } - res.push(`${line}${" ".repeat(lineNumberWidth - String(line).length)}| ${displayLine}`); - if (j === i$1) { - const underline = "^".repeat(Math.min(underlineLength, MAX_DISPLAY_LEN)); - res.push(`${" ".repeat(lineNumberWidth)}| ` + " ".repeat(underlinePad) + underline); - } else if (j > i$1) { - if (end > count) { - const length = Math.max(Math.min(end - count, lineLength), 1); - const underline = "^".repeat(Math.min(length, MAX_DISPLAY_LEN)); - res.push(`${" ".repeat(lineNumberWidth)}| ` + underline); - } - count += lineLength + 1; - } - } - break; - } - count++; - } - return res.join("\n"); -} -function isFileReadable(filename) { - if (!tryStatSync(filename)) return false; - try { - fs.accessSync(filename, fs.constants.R_OK); - return true; - } catch { - return false; - } -} -const splitFirstDirRE = /(.+?)[\\/](.+)/; -/** -* Delete every file and subdirectory. **The given directory must exist.** -* Pass an optional `skip` array to preserve files under the root directory. -*/ -function emptyDir(dir, skip) { - const skipInDir = []; - let nested = null; - if (skip?.length) for (const file of skip) if (path.dirname(file) !== ".") { - const matched = splitFirstDirRE.exec(file); - if (matched) { - nested ??= /* @__PURE__ */ new Map(); - const [, nestedDir, skipPath] = matched; - let nestedSkip = nested.get(nestedDir); - if (!nestedSkip) { - nestedSkip = []; - nested.set(nestedDir, nestedSkip); - } - if (!nestedSkip.includes(skipPath)) nestedSkip.push(skipPath); - } - } else skipInDir.push(file); - for (const file of fs.readdirSync(dir)) { - if (skipInDir.includes(file)) continue; - if (nested?.has(file)) emptyDir(path.resolve(dir, file), nested.get(file)); - else fs.rmSync(path.resolve(dir, file), { - recursive: true, - force: true - }); - } -} -function copyDir(srcDir, destDir) { - fs.mkdirSync(destDir, { recursive: true }); - for (const file of fs.readdirSync(srcDir)) { - const srcFile = path.resolve(srcDir, file); - if (srcFile === destDir) continue; - const destFile = path.resolve(destDir, file); - const stat$4 = fs.statSync(srcFile); - if (stat$4.isDirectory()) copyDir(srcFile, destFile); - else fs.copyFileSync(srcFile, destFile); - } -} -const ERR_SYMLINK_IN_RECURSIVE_READDIR = "ERR_SYMLINK_IN_RECURSIVE_READDIR"; -async function recursiveReaddir(dir) { - if (!fs.existsSync(dir)) return []; - let dirents; - try { - dirents = await fsp.readdir(dir, { withFileTypes: true }); - } catch (e$1) { - if (e$1.code === "EACCES") return []; - throw e$1; - } - if (dirents.some((dirent) => dirent.isSymbolicLink())) { - const err$2 = /* @__PURE__ */ new Error("Symbolic links are not supported in recursiveReaddir"); - err$2.code = ERR_SYMLINK_IN_RECURSIVE_READDIR; - throw err$2; - } - const files = await Promise.all(dirents.map((dirent) => { - const res = path.resolve(dir, dirent.name); - return dirent.isDirectory() ? recursiveReaddir(res) : normalizePath(res); - })); - return files.flat(1); -} -let safeRealpathSync = isWindows ? windowsSafeRealPathSync : fs.realpathSync.native; -const windowsNetworkMap = /* @__PURE__ */ new Map(); -function windowsMappedRealpathSync(path$13) { - const realPath = fs.realpathSync.native(path$13); - if (realPath.startsWith("\\\\")) { - for (const [network, volume] of windowsNetworkMap) if (realPath.startsWith(network)) return realPath.replace(network, volume); - } - return realPath; -} -const parseNetUseRE = /^\w* +(\w:) +([^ ]+)\s/; -let firstSafeRealPathSyncRun = false; -function windowsSafeRealPathSync(path$13) { - if (!firstSafeRealPathSyncRun) { - optimizeSafeRealPathSync(); - firstSafeRealPathSyncRun = true; - } - return fs.realpathSync(path$13); -} -function optimizeSafeRealPathSync() { - try { - fs.realpathSync.native(path.resolve("./")); - } catch (error$1) { - if (error$1.message.includes("EISDIR: illegal operation on a directory")) { - safeRealpathSync = fs.realpathSync; - return; - } - } - exec("net use", (error$1, stdout) => { - if (error$1) return; - const lines = stdout.split("\n"); - for (const line of lines) { - const m$2 = parseNetUseRE.exec(line); - if (m$2) windowsNetworkMap.set(m$2[2], m$2[1]); - } - if (windowsNetworkMap.size === 0) safeRealpathSync = fs.realpathSync.native; - else safeRealpathSync = windowsMappedRealpathSync; - }); -} -function ensureWatchedFile(watcher, file, root) { - if (file && !file.startsWith(withTrailingSlash(root)) && !file.includes("\0") && fs.existsSync(file)) watcher.add(path.resolve(file)); -} -function joinSrcset(ret) { - return ret.map(({ url: url$3, descriptor }) => url$3 + (descriptor ? ` ${descriptor}` : "")).join(", "); -} -/** -This regex represents a loose rule of an “image candidate string” and "image set options". - -@see https://html.spec.whatwg.org/multipage/images.html#srcset-attribute -@see https://drafts.csswg.org/css-images-4/#image-set-notation - -The Regex has named capturing groups `url` and `descriptor`. -The `url` group can be: -* any CSS function -* CSS string (single or double-quoted) -* URL string (unquoted) -The `descriptor` is anything after the space and before the comma. -*/ -const imageCandidateRegex = /(?:^|\s|(?<=,))(?[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?\w[^,]+))?(?:,|$)/g; -const escapedSpaceCharacters = /(?: |\\t|\\n|\\f|\\r)+/g; -function parseSrcset(string) { - const matches$2 = string.trim().replace(escapedSpaceCharacters, " ").replace(/\r?\n/, "").replace(/,\s+/, ", ").replaceAll(/\s+/g, " ").matchAll(imageCandidateRegex); - return Array.from(matches$2, ({ groups: groups$1 }) => ({ - url: groups$1?.url?.trim() ?? "", - descriptor: groups$1?.descriptor?.trim() ?? "" - })).filter(({ url: url$3 }) => !!url$3); -} -function processSrcSet(srcs, replacer) { - return Promise.all(parseSrcset(srcs).map(async ({ url: url$3, descriptor }) => ({ - url: await replacer({ - url: url$3, - descriptor - }), - descriptor - }))).then(joinSrcset); -} -function processSrcSetSync(srcs, replacer) { - return joinSrcset(parseSrcset(srcs).map(({ url: url$3, descriptor }) => ({ - url: replacer({ - url: url$3, - descriptor - }), - descriptor - }))); -} -const windowsDriveRE = /^[A-Z]:/; -const replaceWindowsDriveRE = /^([A-Z]):\//; -const linuxAbsolutePathRE = /^\/[^/]/; -function escapeToLinuxLikePath(path$13) { - if (windowsDriveRE.test(path$13)) return path$13.replace(replaceWindowsDriveRE, "/windows/$1/"); - if (linuxAbsolutePathRE.test(path$13)) return `/linux${path$13}`; - return path$13; -} -const revertWindowsDriveRE = /^\/windows\/([A-Z])\//; -function unescapeToLinuxLikePath(path$13) { - if (path$13.startsWith("/linux/")) return path$13.slice(6); - if (path$13.startsWith("/windows/")) return path$13.replace(revertWindowsDriveRE, "$1:/"); - return path$13; -} -const nullSourceMap = { - names: [], - sources: [], - mappings: "", - version: 3 -}; -/** -* Combines multiple sourcemaps into a single sourcemap. -* Note that the length of sourcemapList must be 2. -*/ -function combineSourcemaps(filename, sourcemapList) { - if (sourcemapList.length === 0 || sourcemapList.every((m$2) => m$2.sources.length === 0)) return { ...nullSourceMap }; - sourcemapList = sourcemapList.map((sourcemap) => { - const newSourcemaps = { ...sourcemap }; - newSourcemaps.sources = sourcemap.sources.map((source) => source ? escapeToLinuxLikePath(source) : null); - if (sourcemap.sourceRoot) newSourcemaps.sourceRoot = escapeToLinuxLikePath(sourcemap.sourceRoot); - return newSourcemaps; - }); - const escapedFilename = escapeToLinuxLikePath(filename); - let map$1; - let mapIndex = 1; - const useArrayInterface = sourcemapList.slice(0, -1).find((m$2) => m$2.sources.length !== 1) === void 0; - if (useArrayInterface) map$1 = remapping(sourcemapList, () => null); - else map$1 = remapping(sourcemapList[0], function loader$1(sourcefile) { - if (sourcefile === escapedFilename && sourcemapList[mapIndex]) return sourcemapList[mapIndex++]; - else return null; - }); - if (!map$1.file) delete map$1.file; - map$1.sources = map$1.sources.map((source) => source ? unescapeToLinuxLikePath(source) : source); - map$1.file = filename; - return map$1; -} -function unique(arr) { - return Array.from(new Set(arr)); -} -/** -* Returns resolved localhost address when `dns.lookup` result differs from DNS -* -* `dns.lookup` result is same when defaultResultOrder is `verbatim`. -* Even if defaultResultOrder is `ipv4first`, `dns.lookup` result maybe same. -* For example, when IPv6 is not supported on that machine/network. -*/ -async function getLocalhostAddressIfDiffersFromDNS() { - const [nodeResult, dnsResult] = await Promise.all([promises$1.lookup("localhost"), promises$1.lookup("localhost", { verbatim: true })]); - const isSame = nodeResult.family === dnsResult.family && nodeResult.address === dnsResult.address; - return isSame ? void 0 : nodeResult.address; -} -function diffDnsOrderChange(oldUrls, newUrls) { - return !(oldUrls === newUrls || oldUrls && newUrls && arrayEqual(oldUrls.local, newUrls.local) && arrayEqual(oldUrls.network, newUrls.network)); -} -async function resolveHostname(optionsHost) { - let host; - if (optionsHost === void 0 || optionsHost === false) host = "localhost"; - else if (optionsHost === true) host = void 0; - else host = optionsHost; - let name = host === void 0 || wildcardHosts.has(host) ? "localhost" : host; - if (host === "localhost") { - const localhostAddr = await getLocalhostAddressIfDiffersFromDNS(); - if (localhostAddr) name = localhostAddr; - } - return { - host, - name - }; -} -function resolveServerUrls(server, options$1, hostname, httpsOptions, config$2) { - const address = server.address(); - const isAddressInfo = (x) => x?.address; - if (!isAddressInfo(address)) return { - local: [], - network: [] - }; - const local = []; - const network = []; - const protocol = options$1.https ? "https" : "http"; - const port = address.port; - const base = config$2.rawBase === "./" || config$2.rawBase === "" ? "/" : config$2.rawBase; - if (hostname.host !== void 0 && !wildcardHosts.has(hostname.host)) { - let hostnameName = hostname.name; - if (hostnameName.includes(":")) hostnameName = `[${hostnameName}]`; - const address$1 = `${protocol}://${hostnameName}:${port}${base}`; - if (loopbackHosts.has(hostname.host)) local.push(address$1); - else network.push(address$1); - } else Object.values(os.networkInterfaces()).flatMap((nInterface) => nInterface ?? []).filter((detail) => detail.address && detail.family === "IPv4").forEach((detail) => { - let host = detail.address.replace("127.0.0.1", hostname.name); - if (host.includes(":")) host = `[${host}]`; - const url$3 = `${protocol}://${host}:${port}${base}`; - if (detail.address.includes("127.0.0.1")) local.push(url$3); - else network.push(url$3); - }); - const cert = httpsOptions?.cert && !Array.isArray(httpsOptions.cert) ? new crypto.X509Certificate(httpsOptions.cert) : void 0; - const hostnameFromCert = cert?.subjectAltName ? extractHostnamesFromSubjectAltName(cert.subjectAltName) : []; - if (hostnameFromCert.length > 0) { - const existings = new Set([...local, ...network]); - local.push(...hostnameFromCert.map((hostname$1) => `https://${hostname$1}:${port}${base}`).filter((url$3) => !existings.has(url$3))); - } - return { - local, - network - }; -} -function extractHostnamesFromSubjectAltName(subjectAltName) { - const hostnames = []; - let remaining = subjectAltName; - while (remaining) { - const nameEndIndex = remaining.indexOf(":"); - const name = remaining.slice(0, nameEndIndex); - remaining = remaining.slice(nameEndIndex + 1); - if (!remaining) break; - const isQuoted = remaining[0] === "\""; - let value$1; - if (isQuoted) { - const endQuoteIndex = remaining.indexOf("\"", 1); - value$1 = JSON.parse(remaining.slice(0, endQuoteIndex + 1)); - remaining = remaining.slice(endQuoteIndex + 1); - } else { - const maybeEndIndex = remaining.indexOf(","); - const endIndex = maybeEndIndex === -1 ? remaining.length : maybeEndIndex; - value$1 = remaining.slice(0, endIndex); - remaining = remaining.slice(endIndex); - } - remaining = remaining.slice(1).trimStart(); - if (name === "DNS" && value$1 !== "[::1]" && !(value$1.startsWith("*.") && net.isIPv4(value$1.slice(2)))) hostnames.push(value$1.replace("*", "vite")); - } - return hostnames; -} -function arraify(target) { - return Array.isArray(target) ? target : [target]; -} -const multilineCommentsRE = /\/\*[^*]*\*+(?:[^/*][^*]*\*+)*\//g; -const singlelineCommentsRE = /\/\/.*/g; -const requestQuerySplitRE = /\?(?!.*[/|}])/; -const requestQueryMaybeEscapedSplitRE = /\\?\?(?!.*[/|}])/; -const blankReplacer = (match) => " ".repeat(match.length); -function getHash(text, length = 8) { - const h$2 = crypto.hash("sha256", text, "hex").substring(0, length); - if (length <= 64) return h$2; - return h$2.padEnd(length, "_"); -} -const requireResolveFromRootWithFallback = (root, id) => { - const found$1 = resolvePackageData(id, root) || resolvePackageData(id, _dirname); - if (!found$1) { - const error$1 = /* @__PURE__ */ new Error(`${JSON.stringify(id)} not found.`); - error$1.code = "MODULE_NOT_FOUND"; - throw error$1; - } - return _require$1.resolve(id, { paths: [root, _dirname] }); -}; -function emptyCssComments(raw) { - return raw.replace(multilineCommentsRE, blankReplacer); -} -function backwardCompatibleWorkerPlugins(plugins$1) { - if (Array.isArray(plugins$1)) return plugins$1; - if (typeof plugins$1 === "function") return plugins$1(); - return []; -} -function deepClone(value$1) { - if (Array.isArray(value$1)) return value$1.map((v) => deepClone(v)); - if (isObject(value$1)) { - const cloned = {}; - for (const key in value$1) cloned[key] = deepClone(value$1[key]); - return cloned; - } - if (typeof value$1 === "function") return value$1; - if (value$1 instanceof RegExp) return new RegExp(value$1); - if (typeof value$1 === "object" && value$1 != null) throw new Error("Cannot deep clone non-plain object"); - return value$1; -} -function mergeWithDefaultsRecursively(defaults, values) { - const merged = defaults; - for (const key in values) { - const value$1 = values[key]; - if (value$1 === void 0) continue; - const existing = merged[key]; - if (existing === void 0) { - merged[key] = value$1; - continue; - } - if (isObject(existing) && isObject(value$1)) { - merged[key] = mergeWithDefaultsRecursively(existing, value$1); - continue; - } - merged[key] = value$1; - } - return merged; -} -const environmentPathRE = /^environments\.[^.]+$/; -function mergeWithDefaults(defaults, values) { - const clonedDefaults = deepClone(defaults); - return mergeWithDefaultsRecursively(clonedDefaults, values); -} -function mergeConfigRecursively(defaults, overrides, rootPath) { - const merged = { ...defaults }; - for (const key in overrides) { - const value$1 = overrides[key]; - if (value$1 == null) continue; - const existing = merged[key]; - if (existing == null) { - merged[key] = value$1; - continue; - } - if (key === "alias" && (rootPath === "resolve" || rootPath === "")) { - merged[key] = mergeAlias(existing, value$1); - continue; - } else if (key === "assetsInclude" && rootPath === "") { - merged[key] = [].concat(existing, value$1); - continue; - } else if ((key === "noExternal" && (rootPath === "ssr" || rootPath === "resolve") || key === "allowedHosts" && rootPath === "server") && (existing === true || value$1 === true)) { - merged[key] = true; - continue; - } else if (key === "plugins" && rootPath === "worker") { - merged[key] = () => [...backwardCompatibleWorkerPlugins(existing), ...backwardCompatibleWorkerPlugins(value$1)]; - continue; - } else if (key === "server" && rootPath === "server.hmr") { - merged[key] = value$1; - continue; - } - if (Array.isArray(existing) || Array.isArray(value$1)) { - merged[key] = [...arraify(existing), ...arraify(value$1)]; - continue; - } - if (isObject(existing) && isObject(value$1)) { - merged[key] = mergeConfigRecursively(existing, value$1, rootPath && !environmentPathRE.test(rootPath) ? `${rootPath}.${key}` : key); - continue; - } - merged[key] = value$1; - } - return merged; -} -function mergeConfig(defaults, overrides, isRoot = true) { - if (typeof defaults === "function" || typeof overrides === "function") throw new Error(`Cannot merge config in form of callback`); - return mergeConfigRecursively(defaults, overrides, isRoot ? "" : "."); -} -function mergeAlias(a, b) { - if (!a) return b; - if (!b) return a; - if (isObject(a) && isObject(b)) return { - ...a, - ...b - }; - return [...normalizeAlias(b), ...normalizeAlias(a)]; -} -function normalizeAlias(o$1 = []) { - return Array.isArray(o$1) ? o$1.map(normalizeSingleAlias) : Object.keys(o$1).map((find$1) => normalizeSingleAlias({ - find: find$1, - replacement: o$1[find$1] - })); -} -function normalizeSingleAlias({ find: find$1, replacement, customResolver }) { - if (typeof find$1 === "string" && find$1.endsWith("/") && replacement.endsWith("/")) { - find$1 = find$1.slice(0, find$1.length - 1); - replacement = replacement.slice(0, replacement.length - 1); - } - const alias$2 = { - find: find$1, - replacement - }; - if (customResolver) alias$2.customResolver = customResolver; - return alias$2; -} -/** -* Transforms transpiled code result where line numbers aren't altered, -* so we can skip sourcemap generation during dev -*/ -function transformStableResult(s$2, id, config$2) { - return { - code: s$2.toString(), - map: config$2.command === "build" && config$2.build.sourcemap ? s$2.generateMap({ - hires: "boundary", - source: id - }) : null - }; -} -async function asyncFlatten(arr) { - do - arr = (await Promise.all(arr)).flat(Infinity); - while (arr.some((v) => v?.then)); - return arr; -} -function stripBomTag(content) { - if (content.charCodeAt(0) === 65279) return content.slice(1); - return content; -} -const windowsDrivePathPrefixRE = /^[A-Za-z]:[/\\]/; -/** -* path.isAbsolute also returns true for drive relative paths on windows (e.g. /something) -* this function returns false for them but true for absolute paths (e.g. C:/something) -*/ -const isNonDriveRelativeAbsolutePath = (p) => { - if (!isWindows) return p[0] === "/"; - return windowsDrivePathPrefixRE.test(p); -}; -/** -* Determine if a file is being requested with the correct case, to ensure -* consistent behavior between dev and prod and across operating systems. -*/ -function shouldServeFile(filePath, root) { - if (!isCaseInsensitiveFS) return true; - return hasCorrectCase(filePath, root); -} -/** -* Note that we can't use realpath here, because we don't want to follow -* symlinks. -*/ -function hasCorrectCase(file, assets) { - if (file === assets) return true; - const parent = path.dirname(file); - if (fs.readdirSync(parent).includes(path.basename(file))) return hasCorrectCase(parent, assets); - return false; -} -function joinUrlSegments(a, b) { - if (!a || !b) return a || b || ""; - if (a.endsWith("/")) a = a.substring(0, a.length - 1); - if (b[0] !== "/") b = "/" + b; - return a + b; -} -function removeLeadingSlash(str) { - return str[0] === "/" ? str.slice(1) : str; -} -function stripBase(path$13, base) { - if (path$13 === base) return "/"; - const devBase = withTrailingSlash(base); - return path$13.startsWith(devBase) ? path$13.slice(devBase.length - 1) : path$13; -} -function arrayEqual(a, b) { - if (a === b) return true; - if (a.length !== b.length) return false; - for (let i$1 = 0; i$1 < a.length; i$1++) if (a[i$1] !== b[i$1]) return false; - return true; -} -function evalValue(rawValue) { - const fn = new Function(` - var console, exports, global, module, process, require - return (\n${rawValue}\n) - `); - return fn(); -} -function getNpmPackageName(importPath) { - const parts = importPath.split("/"); - if (parts[0][0] === "@") { - if (!parts[1]) return null; - return `${parts[0]}/${parts[1]}`; - } else return parts[0]; -} -function getPkgName(name) { - return name[0] === "@" ? name.split("/")[1] : name; -} -const escapeRegexRE$1 = /[-/\\^$*+?.()|[\]{}]/g; -function escapeRegex(str) { - return str.replace(escapeRegexRE$1, "\\$&"); -} -function getPackageManagerCommand(type = "install") { - const packageManager = process.env.npm_config_user_agent?.split(" ")[0].split("/")[0] || "npm"; - switch (type) { - case "install": return packageManager === "npm" ? "npm install" : `${packageManager} add`; - case "uninstall": return packageManager === "npm" ? "npm uninstall" : `${packageManager} remove`; - case "update": return packageManager === "yarn" ? "yarn upgrade" : `${packageManager} update`; - default: throw new TypeError(`Unknown command type: ${type}`); - } -} -function isDevServer(server) { - return "pluginContainer" in server; -} -function createSerialPromiseQueue() { - let previousTask; - return { async run(f$1) { - const thisTask = f$1(); - const depTasks = Promise.all([previousTask, thisTask]); - previousTask = depTasks; - const [, result] = await depTasks; - if (previousTask === depTasks) previousTask = void 0; - return result; - } }; -} -function sortObjectKeys(obj) { - const sorted = {}; - for (const key of Object.keys(obj).sort()) sorted[key] = obj[key]; - return sorted; -} -function displayTime(time) { - if (time < 1e3) return `${time}ms`; - time = time / 1e3; - if (time < 60) return `${time.toFixed(2)}s`; - const mins = Math.floor(time / 60); - const seconds = Math.round(time % 60); - if (seconds === 60) return `${mins + 1}m`; - return `${mins}m${seconds < 1 ? "" : ` ${seconds}s`}`; -} -/** -* Encodes the URI path portion (ignores part after ? or #) -*/ -function encodeURIPath(uri) { - if (uri.startsWith("data:")) return uri; - const filePath = cleanUrl(uri); - const postfix = filePath !== uri ? uri.slice(filePath.length) : ""; - return encodeURI(filePath) + postfix; -} -/** -* Like `encodeURIPath`, but only replacing `%` as `%25`. This is useful for environments -* that can handle un-encoded URIs, where `%` is the only ambiguous character. -*/ -function partialEncodeURIPath(uri) { - if (uri.startsWith("data:")) return uri; - const filePath = cleanUrl(uri); - const postfix = filePath !== uri ? uri.slice(filePath.length) : ""; - return filePath.replaceAll("%", "%25") + postfix; -} -const sigtermCallbacks = /* @__PURE__ */ new Set(); -const parentSigtermCallback = async (signal, exitCode) => { - await Promise.all([...sigtermCallbacks].map((cb) => cb(signal, exitCode))); -}; -const setupSIGTERMListener = (callback) => { - if (sigtermCallbacks.size === 0) { - process.once("SIGTERM", parentSigtermCallback); - if (process.env.CI !== "true") process.stdin.on("end", parentSigtermCallback); - } - sigtermCallbacks.add(callback); -}; -const teardownSIGTERMListener = (callback) => { - sigtermCallbacks.delete(callback); - if (sigtermCallbacks.size === 0) { - process.off("SIGTERM", parentSigtermCallback); - if (process.env.CI !== "true") process.stdin.off("end", parentSigtermCallback); - } -}; -function getServerUrlByHost(resolvedUrls, host) { - if (typeof host === "string") { - const matchedUrl = [...resolvedUrls?.local ?? [], ...resolvedUrls?.network ?? []].find((url$3) => url$3.includes(host)); - if (matchedUrl) return matchedUrl; - } - return resolvedUrls?.local[0] ?? resolvedUrls?.network[0]; -} -let lastDateNow = 0; -/** -* Similar to `Date.now()`, but strictly monotonically increasing. -* -* This function will never return the same value. -* Thus, the value may differ from the actual time. -* -* related: https://github.com/vitejs/vite/issues/19804 -*/ -function monotonicDateNow() { - const now = Date.now(); - if (now > lastDateNow) { - lastDateNow = now; - return lastDateNow; - } - lastDateNow++; - return lastDateNow; -} - -//#endregion -//#region src/node/plugin.ts -async function resolveEnvironmentPlugins(environment) { - const environmentPlugins = []; - for (const plugin of environment.getTopLevelConfig().plugins) { - if (plugin.applyToEnvironment) { - const applied = await plugin.applyToEnvironment(environment); - if (!applied) continue; - if (applied !== true) { - environmentPlugins.push(...(await asyncFlatten(arraify(applied))).filter(Boolean)); - continue; - } - } - environmentPlugins.push(plugin); - } - return environmentPlugins; -} -/** -* @experimental -*/ -function perEnvironmentPlugin(name, applyToEnvironment) { - return { - name, - applyToEnvironment - }; -} - -//#endregion -//#region ../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js -var require_commondir = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js": ((exports, module) => { - var path$12 = __require("path"); - module.exports = function(basedir, relfiles) { - if (relfiles) var files = relfiles.map(function(r$2) { - return path$12.resolve(basedir, r$2); - }); - else var files = basedir; - var res = files.slice(1).reduce(function(ps, file) { - if (!file.match(/^([A-Za-z]:)?\/|\\/)) throw new Error("relative path without a basedir"); - var xs = file.split(/\/+|\\+/); - for (var i$1 = 0; ps[i$1] === xs[i$1] && i$1 < Math.min(ps.length, xs.length); i$1++); - return ps.slice(0, i$1); - }, files[0].split(/\/+|\\+/)); - return res.length > 1 ? res.join("/") : "/"; - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs -var comma = ",".charCodeAt(0); -var semicolon = ";".charCodeAt(0); -var chars$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; -var intToChar = new Uint8Array(64); -var charToInt = new Uint8Array(128); -for (let i$1 = 0; i$1 < chars$1.length; i$1++) { - const c = chars$1.charCodeAt(i$1); - intToChar[i$1] = c; - charToInt[c] = i$1; -} -function encodeInteger(builder, num, relative$3) { - let delta = num - relative$3; - 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; -} -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$1 = 0; i$1 < buf.length; i$1++) out += String.fromCharCode(buf[i$1]); - 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; - } -}; -function encode$1(decoded) { - const writer = new StringWriter(); - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - for (let i$1 = 0; i$1 < decoded.length; i$1++) { - const line = decoded[i$1]; - if (i$1 > 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(); -} - -//#endregion -//#region ../../node_modules/.pnpm/magic-string@0.30.18/node_modules/magic-string/dist/magic-string.es.mjs -var BitSet = class BitSet { - constructor(arg) { - this.bits = arg instanceof BitSet ? arg.bits.slice() : []; - } - add(n$2) { - this.bits[n$2 >> 5] |= 1 << (n$2 & 31); - } - has(n$2) { - return !!(this.bits[n$2 >> 5] & 1 << (n$2 & 31)); - } -}; -var Chunk = class Chunk { - constructor(start, end, content) { - this.start = start; - this.end = end; - this.original = content; - this.intro = ""; - this.outro = ""; - this.content = content; - this.storeName = false; - this.edited = false; - this.previous = null; - this.next = null; - } - appendLeft(content) { - this.outro += content; - } - appendRight(content) { - this.intro = this.intro + content; - } - clone() { - const chunk = new Chunk(this.start, this.end, this.original); - chunk.intro = this.intro; - chunk.outro = this.outro; - chunk.content = this.content; - chunk.storeName = this.storeName; - chunk.edited = this.edited; - return chunk; - } - contains(index) { - return this.start < index && index < this.end; - } - eachNext(fn) { - let chunk = this; - while (chunk) { - fn(chunk); - chunk = chunk.next; - } - } - eachPrevious(fn) { - let chunk = this; - while (chunk) { - fn(chunk); - chunk = chunk.previous; - } - } - edit(content, storeName, contentOnly) { - this.content = content; - if (!contentOnly) { - this.intro = ""; - this.outro = ""; - } - this.storeName = storeName; - this.edited = true; - return this; - } - prependLeft(content) { - this.outro = content + this.outro; - } - prependRight(content) { - this.intro = content + this.intro; - } - reset() { - this.intro = ""; - this.outro = ""; - if (this.edited) { - this.content = this.original; - this.storeName = false; - this.edited = false; - } - } - split(index) { - const sliceIndex = index - this.start; - const originalBefore = this.original.slice(0, sliceIndex); - const originalAfter = this.original.slice(sliceIndex); - this.original = originalBefore; - const newChunk = new Chunk(index, this.end, originalAfter); - newChunk.outro = this.outro; - this.outro = ""; - this.end = index; - if (this.edited) { - newChunk.edit("", false); - this.content = ""; - } else this.content = originalBefore; - newChunk.next = this.next; - if (newChunk.next) newChunk.next.previous = newChunk; - newChunk.previous = this; - this.next = newChunk; - return newChunk; - } - toString() { - return this.intro + this.content + this.outro; - } - trimEnd(rx) { - this.outro = this.outro.replace(rx, ""); - if (this.outro.length) return true; - const trimmed = this.content.replace(rx, ""); - if (trimmed.length) { - if (trimmed !== this.content) { - this.split(this.start + trimmed.length).edit("", void 0, true); - if (this.edited) this.edit(trimmed, this.storeName, true); - } - return true; - } else { - this.edit("", void 0, true); - this.intro = this.intro.replace(rx, ""); - if (this.intro.length) return true; - } - } - trimStart(rx) { - this.intro = this.intro.replace(rx, ""); - if (this.intro.length) return true; - const trimmed = this.content.replace(rx, ""); - if (trimmed.length) { - if (trimmed !== this.content) { - const newChunk = this.split(this.end - trimmed.length); - if (this.edited) newChunk.edit(trimmed, this.storeName, true); - this.edit("", void 0, true); - } - return true; - } else { - this.edit("", void 0, true); - this.outro = this.outro.replace(rx, ""); - if (this.outro.length) return true; - } - } -}; -function getBtoa() { - if (typeof globalThis !== "undefined" && typeof globalThis.btoa === "function") return (str) => globalThis.btoa(unescape(encodeURIComponent(str))); - else if (typeof Buffer === "function") return (str) => Buffer.from(str, "utf-8").toString("base64"); - else return () => { - throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported."); - }; -} -const btoa$1 = /* @__PURE__ */ getBtoa(); -var SourceMap = class { - constructor(properties) { - this.version = 3; - this.file = properties.file; - this.sources = properties.sources; - this.sourcesContent = properties.sourcesContent; - this.names = properties.names; - this.mappings = encode$1(properties.mappings); - if (typeof properties.x_google_ignoreList !== "undefined") this.x_google_ignoreList = properties.x_google_ignoreList; - if (typeof properties.debugId !== "undefined") this.debugId = properties.debugId; - } - toString() { - return JSON.stringify(this); - } - toUrl() { - return "data:application/json;charset=utf-8;base64," + btoa$1(this.toString()); - } -}; -function guessIndent(code) { - const lines = code.split("\n"); - const tabbed = lines.filter((line) => /^\t+/.test(line)); - const spaced = lines.filter((line) => /^ {2,}/.test(line)); - if (tabbed.length === 0 && spaced.length === 0) return null; - if (tabbed.length >= spaced.length) return " "; - const min$1 = spaced.reduce((previous, current) => { - const numSpaces = /^ +/.exec(current)[0].length; - return Math.min(numSpaces, previous); - }, Infinity); - return new Array(min$1 + 1).join(" "); -} -function getRelativePath(from, to) { - const fromParts = from.split(/[/\\]/); - const toParts = to.split(/[/\\]/); - fromParts.pop(); - while (fromParts[0] === toParts[0]) { - fromParts.shift(); - toParts.shift(); - } - if (fromParts.length) { - let i$1 = fromParts.length; - while (i$1--) fromParts[i$1] = ".."; - } - return fromParts.concat(toParts).join("/"); -} -const toString$1 = Object.prototype.toString; -function isObject$2(thing) { - return toString$1.call(thing) === "[object Object]"; -} -function getLocator(source) { - const originalLines = source.split("\n"); - const lineOffsets = []; - for (let i$1 = 0, pos = 0; i$1 < originalLines.length; i$1++) { - lineOffsets.push(pos); - pos += originalLines[i$1].length + 1; - } - return function locate(index) { - let i$1 = 0; - let j = lineOffsets.length; - while (i$1 < j) { - const m$2 = i$1 + j >> 1; - if (index < lineOffsets[m$2]) j = m$2; - else i$1 = m$2 + 1; - } - const line = i$1 - 1; - const column = index - lineOffsets[line]; - return { - line, - column - }; - }; -} -const wordRegex = /\w/; -var Mappings = class { - constructor(hires) { - this.hires = hires; - this.generatedCodeLine = 0; - this.generatedCodeColumn = 0; - this.raw = []; - this.rawSegments = this.raw[this.generatedCodeLine] = []; - this.pending = null; - } - addEdit(sourceIndex, content, loc, nameIndex) { - if (content.length) { - const contentLengthMinusOne = content.length - 1; - let contentLineEnd = content.indexOf("\n", 0); - let previousContentLineEnd = -1; - while (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) { - const segment$1 = [ - this.generatedCodeColumn, - sourceIndex, - loc.line, - loc.column - ]; - if (nameIndex >= 0) segment$1.push(nameIndex); - this.rawSegments.push(segment$1); - this.generatedCodeLine += 1; - this.raw[this.generatedCodeLine] = this.rawSegments = []; - this.generatedCodeColumn = 0; - previousContentLineEnd = contentLineEnd; - contentLineEnd = content.indexOf("\n", contentLineEnd + 1); - } - const segment = [ - this.generatedCodeColumn, - sourceIndex, - loc.line, - loc.column - ]; - if (nameIndex >= 0) segment.push(nameIndex); - this.rawSegments.push(segment); - this.advance(content.slice(previousContentLineEnd + 1)); - } else if (this.pending) { - this.rawSegments.push(this.pending); - this.advance(content); - } - this.pending = null; - } - addUneditedChunk(sourceIndex, chunk, original, loc, sourcemapLocations) { - let originalCharIndex = chunk.start; - let first$2 = true; - let charInHiresBoundary = false; - while (originalCharIndex < chunk.end) { - if (original[originalCharIndex] === "\n") { - loc.line += 1; - loc.column = 0; - this.generatedCodeLine += 1; - this.raw[this.generatedCodeLine] = this.rawSegments = []; - this.generatedCodeColumn = 0; - first$2 = true; - charInHiresBoundary = false; - } else { - if (this.hires || first$2 || sourcemapLocations.has(originalCharIndex)) { - const segment = [ - this.generatedCodeColumn, - sourceIndex, - loc.line, - loc.column - ]; - if (this.hires === "boundary") if (wordRegex.test(original[originalCharIndex])) { - if (!charInHiresBoundary) { - this.rawSegments.push(segment); - charInHiresBoundary = true; - } - } else { - this.rawSegments.push(segment); - charInHiresBoundary = false; - } - else this.rawSegments.push(segment); - } - loc.column += 1; - this.generatedCodeColumn += 1; - first$2 = false; - } - originalCharIndex += 1; - } - this.pending = null; - } - advance(str) { - if (!str) return; - const lines = str.split("\n"); - if (lines.length > 1) { - for (let i$1 = 0; i$1 < lines.length - 1; i$1++) { - this.generatedCodeLine++; - this.raw[this.generatedCodeLine] = this.rawSegments = []; - } - this.generatedCodeColumn = 0; - } - this.generatedCodeColumn += lines[lines.length - 1].length; - } -}; -const n$1 = "\n"; -const warned = { - insertLeft: false, - insertRight: false, - storeName: false -}; -var MagicString = class MagicString { - constructor(string, options$1 = {}) { - const chunk = new Chunk(0, string.length, string); - Object.defineProperties(this, { - original: { - writable: true, - value: string - }, - outro: { - writable: true, - value: "" - }, - intro: { - writable: true, - value: "" - }, - firstChunk: { - writable: true, - value: chunk - }, - lastChunk: { - writable: true, - value: chunk - }, - lastSearchedChunk: { - writable: true, - value: chunk - }, - byStart: { - writable: true, - value: {} - }, - byEnd: { - writable: true, - value: {} - }, - filename: { - writable: true, - value: options$1.filename - }, - indentExclusionRanges: { - writable: true, - value: options$1.indentExclusionRanges - }, - sourcemapLocations: { - writable: true, - value: new BitSet() - }, - storedNames: { - writable: true, - value: {} - }, - indentStr: { - writable: true, - value: void 0 - }, - ignoreList: { - writable: true, - value: options$1.ignoreList - }, - offset: { - writable: true, - value: options$1.offset || 0 - } - }); - this.byStart[0] = chunk; - this.byEnd[string.length] = chunk; - } - addSourcemapLocation(char) { - this.sourcemapLocations.add(char); - } - append(content) { - if (typeof content !== "string") throw new TypeError("outro content must be a string"); - this.outro += content; - return this; - } - appendLeft(index, content) { - index = index + this.offset; - if (typeof content !== "string") throw new TypeError("inserted content must be a string"); - this._split(index); - const chunk = this.byEnd[index]; - if (chunk) chunk.appendLeft(content); - else this.intro += content; - return this; - } - appendRight(index, content) { - index = index + this.offset; - if (typeof content !== "string") throw new TypeError("inserted content must be a string"); - this._split(index); - const chunk = this.byStart[index]; - if (chunk) chunk.appendRight(content); - else this.outro += content; - return this; - } - clone() { - const cloned = new MagicString(this.original, { - filename: this.filename, - offset: this.offset - }); - let originalChunk = this.firstChunk; - let clonedChunk = cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone(); - while (originalChunk) { - cloned.byStart[clonedChunk.start] = clonedChunk; - cloned.byEnd[clonedChunk.end] = clonedChunk; - const nextOriginalChunk = originalChunk.next; - const nextClonedChunk = nextOriginalChunk && nextOriginalChunk.clone(); - if (nextClonedChunk) { - clonedChunk.next = nextClonedChunk; - nextClonedChunk.previous = clonedChunk; - clonedChunk = nextClonedChunk; - } - originalChunk = nextOriginalChunk; - } - cloned.lastChunk = clonedChunk; - if (this.indentExclusionRanges) cloned.indentExclusionRanges = this.indentExclusionRanges.slice(); - cloned.sourcemapLocations = new BitSet(this.sourcemapLocations); - cloned.intro = this.intro; - cloned.outro = this.outro; - return cloned; - } - generateDecodedMap(options$1) { - options$1 = options$1 || {}; - const sourceIndex = 0; - const names = Object.keys(this.storedNames); - const mappings = new Mappings(options$1.hires); - const locate = getLocator(this.original); - if (this.intro) mappings.advance(this.intro); - this.firstChunk.eachNext((chunk) => { - const loc = locate(chunk.start); - if (chunk.intro.length) mappings.advance(chunk.intro); - if (chunk.edited) mappings.addEdit(sourceIndex, chunk.content, loc, chunk.storeName ? names.indexOf(chunk.original) : -1); - else mappings.addUneditedChunk(sourceIndex, chunk, this.original, loc, this.sourcemapLocations); - if (chunk.outro.length) mappings.advance(chunk.outro); - }); - return { - file: options$1.file ? options$1.file.split(/[/\\]/).pop() : void 0, - sources: [options$1.source ? getRelativePath(options$1.file || "", options$1.source) : options$1.file || ""], - sourcesContent: options$1.includeContent ? [this.original] : void 0, - names, - mappings: mappings.raw, - x_google_ignoreList: this.ignoreList ? [sourceIndex] : void 0 - }; - } - generateMap(options$1) { - return new SourceMap(this.generateDecodedMap(options$1)); - } - _ensureindentStr() { - if (this.indentStr === void 0) this.indentStr = guessIndent(this.original); - } - _getRawIndentString() { - this._ensureindentStr(); - return this.indentStr; - } - getIndentString() { - this._ensureindentStr(); - return this.indentStr === null ? " " : this.indentStr; - } - indent(indentStr, options$1) { - const pattern = /^[^\r\n]/gm; - if (isObject$2(indentStr)) { - options$1 = indentStr; - indentStr = void 0; - } - if (indentStr === void 0) { - this._ensureindentStr(); - indentStr = this.indentStr || " "; - } - if (indentStr === "") return this; - options$1 = options$1 || {}; - const isExcluded = {}; - if (options$1.exclude) { - const exclusions = typeof options$1.exclude[0] === "number" ? [options$1.exclude] : options$1.exclude; - exclusions.forEach((exclusion) => { - for (let i$1 = exclusion[0]; i$1 < exclusion[1]; i$1 += 1) isExcluded[i$1] = true; - }); - } - let shouldIndentNextCharacter = options$1.indentStart !== false; - const replacer = (match) => { - if (shouldIndentNextCharacter) return `${indentStr}${match}`; - shouldIndentNextCharacter = true; - return match; - }; - this.intro = this.intro.replace(pattern, replacer); - let charIndex = 0; - let chunk = this.firstChunk; - while (chunk) { - const end = chunk.end; - if (chunk.edited) { - if (!isExcluded[charIndex]) { - chunk.content = chunk.content.replace(pattern, replacer); - if (chunk.content.length) shouldIndentNextCharacter = chunk.content[chunk.content.length - 1] === "\n"; - } - } else { - charIndex = chunk.start; - while (charIndex < end) { - if (!isExcluded[charIndex]) { - const char = this.original[charIndex]; - if (char === "\n") shouldIndentNextCharacter = true; - else if (char !== "\r" && shouldIndentNextCharacter) { - shouldIndentNextCharacter = false; - if (charIndex === chunk.start) chunk.prependRight(indentStr); - else { - this._splitChunk(chunk, charIndex); - chunk = chunk.next; - chunk.prependRight(indentStr); - } - } - } - charIndex += 1; - } - } - charIndex = chunk.end; - chunk = chunk.next; - } - this.outro = this.outro.replace(pattern, replacer); - return this; - } - insert() { - throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)"); - } - insertLeft(index, content) { - if (!warned.insertLeft) { - console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"); - warned.insertLeft = true; - } - return this.appendLeft(index, content); - } - insertRight(index, content) { - if (!warned.insertRight) { - console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"); - warned.insertRight = true; - } - return this.prependRight(index, content); - } - move(start, end, index) { - start = start + this.offset; - end = end + this.offset; - index = index + this.offset; - if (index >= start && index <= end) throw new Error("Cannot move a selection inside itself"); - this._split(start); - this._split(end); - this._split(index); - const first$2 = this.byStart[start]; - const last = this.byEnd[end]; - const oldLeft = first$2.previous; - const oldRight = last.next; - const newRight = this.byStart[index]; - if (!newRight && last === this.lastChunk) return this; - const newLeft = newRight ? newRight.previous : this.lastChunk; - if (oldLeft) oldLeft.next = oldRight; - if (oldRight) oldRight.previous = oldLeft; - if (newLeft) newLeft.next = first$2; - if (newRight) newRight.previous = last; - if (!first$2.previous) this.firstChunk = last.next; - if (!last.next) { - this.lastChunk = first$2.previous; - this.lastChunk.next = null; - } - first$2.previous = newLeft; - last.next = newRight || null; - if (!newLeft) this.firstChunk = first$2; - if (!newRight) this.lastChunk = last; - return this; - } - overwrite(start, end, content, options$1) { - options$1 = options$1 || {}; - return this.update(start, end, content, { - ...options$1, - overwrite: !options$1.contentOnly - }); - } - update(start, end, content, options$1) { - start = start + this.offset; - end = end + this.offset; - if (typeof content !== "string") throw new TypeError("replacement content must be a string"); - if (this.original.length !== 0) { - while (start < 0) start += this.original.length; - while (end < 0) end += this.original.length; - } - if (end > this.original.length) throw new Error("end is out of bounds"); - if (start === end) throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead"); - this._split(start); - this._split(end); - if (options$1 === true) { - if (!warned.storeName) { - console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"); - warned.storeName = true; - } - options$1 = { storeName: true }; - } - const storeName = options$1 !== void 0 ? options$1.storeName : false; - const overwrite = options$1 !== void 0 ? options$1.overwrite : false; - if (storeName) { - const original = this.original.slice(start, end); - Object.defineProperty(this.storedNames, original, { - writable: true, - value: true, - enumerable: true - }); - } - const first$2 = this.byStart[start]; - const last = this.byEnd[end]; - if (first$2) { - let chunk = first$2; - while (chunk !== last) { - if (chunk.next !== this.byStart[chunk.end]) throw new Error("Cannot overwrite across a split point"); - chunk = chunk.next; - chunk.edit("", false); - } - first$2.edit(content, storeName, !overwrite); - } else { - const newChunk = new Chunk(start, end, "").edit(content, storeName); - last.next = newChunk; - newChunk.previous = last; - } - return this; - } - prepend(content) { - if (typeof content !== "string") throw new TypeError("outro content must be a string"); - this.intro = content + this.intro; - return this; - } - prependLeft(index, content) { - index = index + this.offset; - if (typeof content !== "string") throw new TypeError("inserted content must be a string"); - this._split(index); - const chunk = this.byEnd[index]; - if (chunk) chunk.prependLeft(content); - else this.intro = content + this.intro; - return this; - } - prependRight(index, content) { - index = index + this.offset; - if (typeof content !== "string") throw new TypeError("inserted content must be a string"); - this._split(index); - const chunk = this.byStart[index]; - if (chunk) chunk.prependRight(content); - else this.outro = content + this.outro; - return this; - } - remove(start, end) { - start = start + this.offset; - end = end + this.offset; - if (this.original.length !== 0) { - while (start < 0) start += this.original.length; - while (end < 0) end += this.original.length; - } - if (start === end) return this; - if (start < 0 || end > this.original.length) throw new Error("Character is out of bounds"); - if (start > end) throw new Error("end must be greater than start"); - this._split(start); - this._split(end); - let chunk = this.byStart[start]; - while (chunk) { - chunk.intro = ""; - chunk.outro = ""; - chunk.edit(""); - chunk = end > chunk.end ? this.byStart[chunk.end] : null; - } - return this; - } - reset(start, end) { - start = start + this.offset; - end = end + this.offset; - if (this.original.length !== 0) { - while (start < 0) start += this.original.length; - while (end < 0) end += this.original.length; - } - if (start === end) return this; - if (start < 0 || end > this.original.length) throw new Error("Character is out of bounds"); - if (start > end) throw new Error("end must be greater than start"); - this._split(start); - this._split(end); - let chunk = this.byStart[start]; - while (chunk) { - chunk.reset(); - chunk = end > chunk.end ? this.byStart[chunk.end] : null; - } - return this; - } - lastChar() { - if (this.outro.length) return this.outro[this.outro.length - 1]; - let chunk = this.lastChunk; - do { - if (chunk.outro.length) return chunk.outro[chunk.outro.length - 1]; - if (chunk.content.length) return chunk.content[chunk.content.length - 1]; - if (chunk.intro.length) return chunk.intro[chunk.intro.length - 1]; - } while (chunk = chunk.previous); - if (this.intro.length) return this.intro[this.intro.length - 1]; - return ""; - } - lastLine() { - let lineIndex = this.outro.lastIndexOf(n$1); - if (lineIndex !== -1) return this.outro.substr(lineIndex + 1); - let lineStr = this.outro; - let chunk = this.lastChunk; - do { - if (chunk.outro.length > 0) { - lineIndex = chunk.outro.lastIndexOf(n$1); - if (lineIndex !== -1) return chunk.outro.substr(lineIndex + 1) + lineStr; - lineStr = chunk.outro + lineStr; - } - if (chunk.content.length > 0) { - lineIndex = chunk.content.lastIndexOf(n$1); - if (lineIndex !== -1) return chunk.content.substr(lineIndex + 1) + lineStr; - lineStr = chunk.content + lineStr; - } - if (chunk.intro.length > 0) { - lineIndex = chunk.intro.lastIndexOf(n$1); - if (lineIndex !== -1) return chunk.intro.substr(lineIndex + 1) + lineStr; - lineStr = chunk.intro + lineStr; - } - } while (chunk = chunk.previous); - lineIndex = this.intro.lastIndexOf(n$1); - if (lineIndex !== -1) return this.intro.substr(lineIndex + 1) + lineStr; - return this.intro + lineStr; - } - slice(start = 0, end = this.original.length - this.offset) { - start = start + this.offset; - end = end + this.offset; - if (this.original.length !== 0) { - while (start < 0) start += this.original.length; - while (end < 0) end += this.original.length; - } - let result = ""; - let chunk = this.firstChunk; - while (chunk && (chunk.start > start || chunk.end <= start)) { - if (chunk.start < end && chunk.end >= end) return result; - chunk = chunk.next; - } - if (chunk && chunk.edited && chunk.start !== start) throw new Error(`Cannot use replaced character ${start} as slice start anchor.`); - const startChunk = chunk; - while (chunk) { - if (chunk.intro && (startChunk !== chunk || chunk.start === start)) result += chunk.intro; - const containsEnd = chunk.start < end && chunk.end >= end; - if (containsEnd && chunk.edited && chunk.end !== end) throw new Error(`Cannot use replaced character ${end} as slice end anchor.`); - const sliceStart = startChunk === chunk ? start - chunk.start : 0; - const sliceEnd = containsEnd ? chunk.content.length + end - chunk.end : chunk.content.length; - result += chunk.content.slice(sliceStart, sliceEnd); - if (chunk.outro && (!containsEnd || chunk.end === end)) result += chunk.outro; - if (containsEnd) break; - chunk = chunk.next; - } - return result; - } - snip(start, end) { - const clone$1 = this.clone(); - clone$1.remove(0, start); - clone$1.remove(end, clone$1.original.length); - return clone$1; - } - _split(index) { - if (this.byStart[index] || this.byEnd[index]) return; - let chunk = this.lastSearchedChunk; - let previousChunk = chunk; - const searchForward = index > chunk.end; - while (chunk) { - if (chunk.contains(index)) return this._splitChunk(chunk, index); - chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start]; - if (chunk === previousChunk) return; - previousChunk = chunk; - } - } - _splitChunk(chunk, index) { - if (chunk.edited && chunk.content.length) { - const loc = getLocator(this.original)(index); - throw new Error(`Cannot split a chunk that has already been edited (${loc.line}:${loc.column} – "${chunk.original}")`); - } - const newChunk = chunk.split(index); - this.byEnd[index] = chunk; - this.byStart[index] = newChunk; - this.byEnd[newChunk.end] = newChunk; - if (chunk === this.lastChunk) this.lastChunk = newChunk; - this.lastSearchedChunk = chunk; - return true; - } - toString() { - let str = this.intro; - let chunk = this.firstChunk; - while (chunk) { - str += chunk.toString(); - chunk = chunk.next; - } - return str + this.outro; - } - isEmpty() { - let chunk = this.firstChunk; - do - if (chunk.intro.length && chunk.intro.trim() || chunk.content.length && chunk.content.trim() || chunk.outro.length && chunk.outro.trim()) return false; - while (chunk = chunk.next); - return true; - } - length() { - let chunk = this.firstChunk; - let length = 0; - do - length += chunk.intro.length + chunk.content.length + chunk.outro.length; - while (chunk = chunk.next); - return length; - } - trimLines() { - return this.trim("[\\r\\n]"); - } - trim(charType) { - return this.trimStart(charType).trimEnd(charType); - } - trimEndAborted(charType) { - const rx = /* @__PURE__ */ new RegExp((charType || "\\s") + "+$"); - this.outro = this.outro.replace(rx, ""); - if (this.outro.length) return true; - let chunk = this.lastChunk; - do { - const end = chunk.end; - const aborted = chunk.trimEnd(rx); - if (chunk.end !== end) { - if (this.lastChunk === chunk) this.lastChunk = chunk.next; - this.byEnd[chunk.end] = chunk; - this.byStart[chunk.next.start] = chunk.next; - this.byEnd[chunk.next.end] = chunk.next; - } - if (aborted) return true; - chunk = chunk.previous; - } while (chunk); - return false; - } - trimEnd(charType) { - this.trimEndAborted(charType); - return this; - } - trimStartAborted(charType) { - const rx = /* @__PURE__ */ new RegExp("^" + (charType || "\\s") + "+"); - this.intro = this.intro.replace(rx, ""); - if (this.intro.length) return true; - let chunk = this.firstChunk; - do { - const end = chunk.end; - const aborted = chunk.trimStart(rx); - if (chunk.end !== end) { - if (chunk === this.lastChunk) this.lastChunk = chunk.next; - this.byEnd[chunk.end] = chunk; - this.byStart[chunk.next.start] = chunk.next; - this.byEnd[chunk.next.end] = chunk.next; - } - if (aborted) return true; - chunk = chunk.next; - } while (chunk); - return false; - } - trimStart(charType) { - this.trimStartAborted(charType); - return this; - } - hasChanged() { - return this.original !== this.toString(); - } - _replaceRegexp(searchValue, replacement) { - function getReplacement(match, str) { - if (typeof replacement === "string") return replacement.replace(/\$(\$|&|\d+)/g, (_, i$1) => { - if (i$1 === "$") return "$"; - if (i$1 === "&") return match[0]; - const num = +i$1; - if (num < match.length) return match[+i$1]; - return `$${i$1}`; - }); - else return replacement(...match, match.index, str, match.groups); - } - function matchAll$1(re, str) { - let match; - const matches$2 = []; - while (match = re.exec(str)) matches$2.push(match); - return matches$2; - } - if (searchValue.global) { - const matches$2 = matchAll$1(searchValue, this.original); - matches$2.forEach((match) => { - if (match.index != null) { - const replacement$1 = getReplacement(match, this.original); - if (replacement$1 !== match[0]) this.overwrite(match.index, match.index + match[0].length, replacement$1); - } - }); - } else { - const match = this.original.match(searchValue); - if (match && match.index != null) { - const replacement$1 = getReplacement(match, this.original); - if (replacement$1 !== match[0]) this.overwrite(match.index, match.index + match[0].length, replacement$1); - } - } - return this; - } - _replaceString(string, replacement) { - const { original } = this; - const index = original.indexOf(string); - if (index !== -1) this.overwrite(index, index + string.length, replacement); - return this; - } - replace(searchValue, replacement) { - if (typeof searchValue === "string") return this._replaceString(searchValue, replacement); - return this._replaceRegexp(searchValue, replacement); - } - _replaceAllString(string, replacement) { - const { original } = this; - const stringLength = string.length; - for (let index = original.indexOf(string); index !== -1; index = original.indexOf(string, index + stringLength)) { - const previous = original.slice(index, index + stringLength); - if (previous !== replacement) this.overwrite(index, index + stringLength, replacement); - } - return this; - } - replaceAll(searchValue, replacement) { - if (typeof searchValue === "string") return this._replaceAllString(searchValue, replacement); - if (!searchValue.global) throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument"); - return this._replaceRegexp(searchValue, replacement); - } -}; - -//#endregion -//#region ../../node_modules/.pnpm/is-reference@1.2.1/node_modules/is-reference/dist/is-reference.js -var require_is_reference = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/is-reference@1.2.1/node_modules/is-reference/dist/is-reference.js": ((exports, module) => { - (function(global$1, factory) { - typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global$1 = global$1 || self, global$1.isReference = factory()); - })(exports, (function() { - function isReference$1(node, parent) { - if (node.type === "MemberExpression") return !node.computed && isReference$1(node.object, node); - if (node.type === "Identifier") { - if (!parent) return true; - switch (parent.type) { - case "MemberExpression": return parent.computed || node === parent.object; - case "MethodDefinition": return parent.computed; - case "FieldDefinition": return parent.computed || node === parent.value; - case "Property": return parent.computed || node === parent.value; - case "ExportSpecifier": - case "ImportSpecifier": return node === parent.local; - case "LabeledStatement": - case "BreakStatement": - case "ContinueStatement": return false; - default: return true; - } - } - return false; - } - return isReference$1; - })); -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/@rollup+plugin-commonjs@28.0.6_rollup@4.43.0/node_modules/@rollup/plugin-commonjs/dist/es/index.js -var import_commondir = /* @__PURE__ */ __toESM(require_commondir(), 1); -var import_is_reference = /* @__PURE__ */ __toESM(require_is_reference(), 1); -var version$1 = "28.0.6"; -var peerDependencies = { rollup: "^2.68.0||^3.0.0||^4.0.0" }; -function tryParse(parse$17, code, id) { - try { - return parse$17(code, { allowReturnOutsideFunction: true }); - } catch (err$2) { - err$2.message += ` in ${id}`; - throw err$2; - } -} -const firstpassGlobal = /\b(?:require|module|exports|global)\b/; -const firstpassNoGlobal = /\b(?:require|module|exports)\b/; -function hasCjsKeywords(code, ignoreGlobal) { - const firstpass = ignoreGlobal ? firstpassNoGlobal : firstpassGlobal; - return firstpass.test(code); -} -function analyzeTopLevelStatements(parse$17, code, id) { - const ast = tryParse(parse$17, code, id); - let isEsModule = false; - let hasDefaultExport = false; - let hasNamedExports = false; - for (const node of ast.body) switch (node.type) { - case "ExportDefaultDeclaration": - isEsModule = true; - hasDefaultExport = true; - break; - case "ExportNamedDeclaration": - isEsModule = true; - if (node.declaration) hasNamedExports = true; - else for (const specifier of node.specifiers) if (specifier.exported.name === "default") hasDefaultExport = true; - else hasNamedExports = true; - break; - case "ExportAllDeclaration": - isEsModule = true; - if (node.exported && node.exported.name === "default") hasDefaultExport = true; - else hasNamedExports = true; - break; - case "ImportDeclaration": - isEsModule = true; - break; - } - return { - isEsModule, - hasDefaultExport, - hasNamedExports, - ast - }; -} -function deconflict(scopes, globals, identifier) { - let i$1 = 1; - let deconflicted = makeLegalIdentifier(identifier); - const hasConflicts = () => scopes.some((scope) => scope.contains(deconflicted)) || globals.has(deconflicted); - while (hasConflicts()) { - deconflicted = makeLegalIdentifier(`${identifier}_${i$1}`); - i$1 += 1; - } - for (const scope of scopes) scope.declarations[deconflicted] = true; - return deconflicted; -} -function getName(id) { - const name = makeLegalIdentifier(basename$1(id, extname$1(id))); - if (name !== "index") return name; - return makeLegalIdentifier(basename$1(dirname$1(id))); -} -function normalizePathSlashes(path$13) { - return path$13.replace(/\\/g, "/"); -} -const getVirtualPathForDynamicRequirePath = (path$13, commonDir) => `/${normalizePathSlashes(relative$1(commonDir, path$13))}`; -function capitalize(name) { - return name[0].toUpperCase() + name.slice(1); -} -function getStrictRequiresFilter({ strictRequires }) { - switch (strictRequires) { - case void 0: - case true: return { - strictRequiresFilter: () => true, - detectCyclesAndConditional: false - }; - case "auto": - case "debug": - case null: return { - strictRequiresFilter: () => false, - detectCyclesAndConditional: true - }; - case false: return { - strictRequiresFilter: () => false, - detectCyclesAndConditional: false - }; - default: - if (typeof strictRequires === "string" || Array.isArray(strictRequires)) return { - strictRequiresFilter: createFilter$2(strictRequires), - detectCyclesAndConditional: false - }; - throw new Error("Unexpected value for \"strictRequires\" option."); - } -} -function getPackageEntryPoint(dirPath) { - let entryPoint = "index.js"; - try { - if (existsSync$1(join$1(dirPath, "package.json"))) entryPoint = JSON.parse(readFileSync$1(join$1(dirPath, "package.json"), { encoding: "utf8" })).main || entryPoint; - } catch (ignored) {} - return entryPoint; -} -function isDirectory$1(path$13) { - try { - if (statSync(path$13).isDirectory()) return true; - } catch (ignored) {} - return false; -} -function getDynamicRequireModules(patterns, dynamicRequireRoot) { - const dynamicRequireModules = /* @__PURE__ */ new Map(); - const dirNames = /* @__PURE__ */ new Set(); - for (const pattern of !patterns || Array.isArray(patterns) ? patterns || [] : [patterns]) { - const isNegated = pattern.startsWith("!"); - const modifyMap = (targetPath, resolvedPath) => isNegated ? dynamicRequireModules.delete(targetPath) : dynamicRequireModules.set(targetPath, resolvedPath); - for (const path$13 of new fdir().withBasePath().withDirs().glob(isNegated ? pattern.substr(1) : pattern).crawl(relative$1(".", dynamicRequireRoot)).sync().sort((a, b) => a.localeCompare(b, "en"))) { - const resolvedPath = resolve$1(path$13); - const requirePath = normalizePathSlashes(resolvedPath); - if (isDirectory$1(resolvedPath)) { - dirNames.add(resolvedPath); - const modulePath = resolve$1(join$1(resolvedPath, getPackageEntryPoint(path$13))); - modifyMap(requirePath, modulePath); - modifyMap(normalizePathSlashes(modulePath), modulePath); - } else { - dirNames.add(dirname$1(resolvedPath)); - modifyMap(requirePath, resolvedPath); - } - } - } - return { - commonDir: dirNames.size ? (0, import_commondir.default)([...dirNames, dynamicRequireRoot]) : null, - dynamicRequireModules - }; -} -const FAILED_REQUIRE_ERROR = `throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');`; -const COMMONJS_REQUIRE_EXPORT = "commonjsRequire"; -const CREATE_COMMONJS_REQUIRE_EXPORT = "createCommonjsRequire"; -function getDynamicModuleRegistry(isDynamicRequireModulesEnabled, dynamicRequireModules, commonDir, ignoreDynamicRequires) { - if (!isDynamicRequireModulesEnabled) return `export function ${COMMONJS_REQUIRE_EXPORT}(path) { - ${FAILED_REQUIRE_ERROR} -}`; - const dynamicModuleImports = [...dynamicRequireModules.values()].map((id, index) => `import ${id.endsWith(".json") ? `json${index}` : `{ __require as require${index} }`} from ${JSON.stringify(id)};`).join("\n"); - const dynamicModuleProps = [...dynamicRequireModules.keys()].map((id, index) => `\t\t${JSON.stringify(getVirtualPathForDynamicRequirePath(id, commonDir))}: ${id.endsWith(".json") ? `function () { return json${index}; }` : `require${index}`}`).join(",\n"); - return `${dynamicModuleImports} - -var dynamicModules; - -function getDynamicModules() { - return dynamicModules || (dynamicModules = { -${dynamicModuleProps} - }); -} - -export function ${CREATE_COMMONJS_REQUIRE_EXPORT}(originalModuleDir) { - function handleRequire(path) { - var resolvedPath = commonjsResolve(path, originalModuleDir); - if (resolvedPath !== null) { - return getDynamicModules()[resolvedPath](); - } - ${ignoreDynamicRequires ? "return require(path);" : FAILED_REQUIRE_ERROR} - } - handleRequire.resolve = function (path) { - var resolvedPath = commonjsResolve(path, originalModuleDir); - if (resolvedPath !== null) { - return resolvedPath; - } - return require.resolve(path); - } - return handleRequire; -} - -function commonjsResolve (path, originalModuleDir) { - var shouldTryNodeModules = isPossibleNodeModulesPath(path); - path = normalize(path); - var relPath; - if (path[0] === '/') { - originalModuleDir = ''; - } - var modules = getDynamicModules(); - var checkedExtensions = ['', '.js', '.json']; - while (true) { - if (!shouldTryNodeModules) { - relPath = normalize(originalModuleDir + '/' + path); - } else { - relPath = normalize(originalModuleDir + '/node_modules/' + path); - } - - if (relPath.endsWith('/..')) { - break; // Travelled too far up, avoid infinite loop - } - - for (var extensionIndex = 0; extensionIndex < checkedExtensions.length; extensionIndex++) { - var resolvedPath = relPath + checkedExtensions[extensionIndex]; - if (modules[resolvedPath]) { - return resolvedPath; - } - } - if (!shouldTryNodeModules) break; - var nextDir = normalize(originalModuleDir + '/..'); - if (nextDir === originalModuleDir) break; - originalModuleDir = nextDir; - } - return null; -} - -function isPossibleNodeModulesPath (modulePath) { - var c0 = modulePath[0]; - if (c0 === '/' || c0 === '\\\\') return false; - var c1 = modulePath[1], c2 = modulePath[2]; - if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) || - (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false; - if (c1 === ':' && (c2 === '/' || c2 === '\\\\')) return false; - return true; -} - -function normalize (path) { - path = path.replace(/\\\\/g, '/'); - var parts = path.split('/'); - var slashed = parts[0] === ''; - for (var i = 1; i < parts.length; i++) { - if (parts[i] === '.' || parts[i] === '') { - parts.splice(i--, 1); - } - } - for (var i = 1; i < parts.length; i++) { - if (parts[i] !== '..') continue; - if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') { - parts.splice(--i, 2); - i--; - } - } - path = parts.join('/'); - if (slashed && path[0] !== '/') path = '/' + path; - else if (path.length === 0) path = '.'; - return path; -}`; -} -const isWrappedId = (id, suffix) => id.endsWith(suffix); -const wrapId$1 = (id, suffix) => `\0${id}${suffix}`; -const unwrapId$1 = (wrappedId, suffix) => wrappedId.slice(1, -suffix.length); -const PROXY_SUFFIX = "?commonjs-proxy"; -const WRAPPED_SUFFIX = "?commonjs-wrapped"; -const EXTERNAL_SUFFIX = "?commonjs-external"; -const EXPORTS_SUFFIX = "?commonjs-exports"; -const MODULE_SUFFIX = "?commonjs-module"; -const ENTRY_SUFFIX = "?commonjs-entry"; -const ES_IMPORT_SUFFIX = "?commonjs-es-import"; -const DYNAMIC_MODULES_ID = "\0commonjs-dynamic-modules"; -const HELPERS_ID = "\0commonjsHelpers.js"; -const IS_WRAPPED_COMMONJS = "withRequireFunction"; -const HELPERS = ` -export var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; - -export function getDefaultExportFromCjs (x) { - return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; -} - -export function getDefaultExportFromNamespaceIfPresent (n) { - return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n; -} - -export function getDefaultExportFromNamespaceIfNotNamed (n) { - return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n; -} - -export function getAugmentedNamespace(n) { - if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n; - var f = n.default; - if (typeof f == "function") { - var a = function a () { - var isInstance = false; - try { - isInstance = this instanceof a; - } catch {} - if (isInstance) { - return Reflect.construct(f, arguments, this.constructor); - } - return f.apply(this, arguments); - }; - a.prototype = f.prototype; - } else a = {}; - Object.defineProperty(a, '__esModule', {value: true}); - Object.keys(n).forEach(function (k) { - var d = Object.getOwnPropertyDescriptor(n, k); - Object.defineProperty(a, k, d.get ? d : { - enumerable: true, - get: function () { - return n[k]; - } - }); - }); - return a; -} -`; -function getHelpersModule() { - return HELPERS; -} -function getUnknownRequireProxy(id, requireReturnsDefault) { - if (requireReturnsDefault === true || id.endsWith(".json")) return `export { default } from ${JSON.stringify(id)};`; - const name = getName(id); - const exported = requireReturnsDefault === "auto" ? `import { getDefaultExportFromNamespaceIfNotNamed } from "${HELPERS_ID}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(${name});` : requireReturnsDefault === "preferred" ? `import { getDefaultExportFromNamespaceIfPresent } from "${HELPERS_ID}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfPresent(${name});` : !requireReturnsDefault ? `import { getAugmentedNamespace } from "${HELPERS_ID}"; export default /*@__PURE__*/getAugmentedNamespace(${name});` : `export default ${name};`; - return `import * as ${name} from ${JSON.stringify(id)}; ${exported}`; -} -async function getStaticRequireProxy(id, requireReturnsDefault, loadModule) { - const name = getName(id); - const { meta: { commonjs: commonjsMeta } } = await loadModule({ id }); - if (!commonjsMeta) return getUnknownRequireProxy(id, requireReturnsDefault); - if (commonjsMeta.isCommonJS) return `export { __moduleExports as default } from ${JSON.stringify(id)};`; - if (!requireReturnsDefault) return `import { getAugmentedNamespace } from "${HELPERS_ID}"; import * as ${name} from ${JSON.stringify(id)}; export default /*@__PURE__*/getAugmentedNamespace(${name});`; - if (requireReturnsDefault !== true && (requireReturnsDefault === "namespace" || !commonjsMeta.hasDefaultExport || requireReturnsDefault === "auto" && commonjsMeta.hasNamedExports)) return `import * as ${name} from ${JSON.stringify(id)}; export default ${name};`; - return `export { default } from ${JSON.stringify(id)};`; -} -function getEntryProxy(id, defaultIsModuleExports, getModuleInfo, shebang) { - const { meta: { commonjs: commonjsMeta }, hasDefaultExport } = getModuleInfo(id); - if (!commonjsMeta || commonjsMeta.isCommonJS !== IS_WRAPPED_COMMONJS) { - const stringifiedId = JSON.stringify(id); - let code = `export * from ${stringifiedId};`; - if (hasDefaultExport) code += `export { default } from ${stringifiedId};`; - return shebang + code; - } - const result = getEsImportProxy(id, defaultIsModuleExports, true); - return { - ...result, - code: shebang + result.code - }; -} -function getEsImportProxy(id, defaultIsModuleExports, moduleSideEffects) { - const name = getName(id); - const exportsName = `${name}Exports`; - const requireModule = `require${capitalize(name)}`; - let code = `import { getDefaultExportFromCjs } from "${HELPERS_ID}";\nimport { __require as ${requireModule} } from ${JSON.stringify(id)};\nvar ${exportsName} = ${moduleSideEffects ? "" : "/*@__PURE__*/ "}${requireModule}();\nexport { ${exportsName} as __moduleExports };`; - if (defaultIsModuleExports === true) code += `\nexport { ${exportsName} as default };`; - else if (defaultIsModuleExports === false) code += `\nexport default ${exportsName}.default;`; - else code += `\nexport default /*@__PURE__*/getDefaultExportFromCjs(${exportsName});`; - return { - code, - syntheticNamedExports: "__moduleExports" - }; -} -function getCandidatesForExtension(resolved, extension$1) { - return [resolved + extension$1, `${resolved}${sep$1}index${extension$1}`]; -} -function getCandidates(resolved, extensions$1) { - return extensions$1.reduce((paths, extension$1) => paths.concat(getCandidatesForExtension(resolved, extension$1)), [resolved]); -} -function resolveExtensions(importee, importer, extensions$1) { - if (importee[0] !== "." || !importer) return void 0; - const resolved = resolve$1(dirname$1(importer), importee); - const candidates = getCandidates(resolved, extensions$1); - for (let i$1 = 0; i$1 < candidates.length; i$1 += 1) try { - const stats = statSync(candidates[i$1]); - if (stats.isFile()) return { id: candidates[i$1] }; - } catch (err$2) {} - return void 0; -} -function getResolveId(extensions$1, isPossibleCjsId) { - const currentlyResolving = /* @__PURE__ */ new Map(); - return { - currentlyResolving, - async resolveId(importee, importer, resolveOptions) { - const customOptions = resolveOptions.custom; - if (customOptions?.["node-resolve"]?.isRequire) return null; - const currentlyResolvingForParent = currentlyResolving.get(importer); - if (currentlyResolvingForParent && currentlyResolvingForParent.has(importee)) { - this.warn({ - code: "THIS_RESOLVE_WITHOUT_OPTIONS", - message: "It appears a plugin has implemented a \"resolveId\" hook that uses \"this.resolve\" without forwarding the third \"options\" parameter of \"resolveId\". This is problematic as it can lead to wrong module resolutions especially for the node-resolve plugin and in certain cases cause early exit errors for the commonjs plugin.\nIn rare cases, this warning can appear if the same file is both imported and required from the same mixed ES/CommonJS module, in which case it can be ignored.", - url: "https://rollupjs.org/guide/en/#resolveid" - }); - return null; - } - if (isWrappedId(importee, WRAPPED_SUFFIX)) return unwrapId$1(importee, WRAPPED_SUFFIX); - if (importee.endsWith(ENTRY_SUFFIX) || isWrappedId(importee, MODULE_SUFFIX) || isWrappedId(importee, EXPORTS_SUFFIX) || isWrappedId(importee, PROXY_SUFFIX) || isWrappedId(importee, ES_IMPORT_SUFFIX) || isWrappedId(importee, EXTERNAL_SUFFIX) || importee.startsWith(HELPERS_ID) || importee === DYNAMIC_MODULES_ID) return importee; - if (importer) { - if (importer === DYNAMIC_MODULES_ID || isWrappedId(importer, PROXY_SUFFIX) || isWrappedId(importer, ES_IMPORT_SUFFIX) || importer.endsWith(ENTRY_SUFFIX)) return importee; - if (isWrappedId(importer, EXTERNAL_SUFFIX)) { - if (!await this.resolve(importee, importer, Object.assign({ skipSelf: true }, resolveOptions))) return null; - return { - id: importee, - external: true - }; - } - } - if (importee.startsWith("\0")) return null; - const resolved = await this.resolve(importee, importer, Object.assign({ skipSelf: true }, resolveOptions)) || resolveExtensions(importee, importer, extensions$1); - if (!resolved || resolved.external || resolved.id.endsWith(ENTRY_SUFFIX) || isWrappedId(resolved.id, ES_IMPORT_SUFFIX) || !isPossibleCjsId(resolved.id)) return resolved; - const moduleInfo = await this.load(resolved); - const { meta: { commonjs: commonjsMeta } } = moduleInfo; - if (commonjsMeta) { - const { isCommonJS } = commonjsMeta; - if (isCommonJS) { - if (resolveOptions.isEntry) { - moduleInfo.moduleSideEffects = true; - return resolved.id + ENTRY_SUFFIX; - } - if (isCommonJS === IS_WRAPPED_COMMONJS) return { - id: wrapId$1(resolved.id, ES_IMPORT_SUFFIX), - meta: { commonjs: { resolved } } - }; - } - } - return resolved; - } - }; -} -function getRequireResolver(extensions$1, detectCyclesAndConditional, currentlyResolving) { - const knownCjsModuleTypes = Object.create(null); - const requiredIds = Object.create(null); - const unconditionallyRequiredIds = Object.create(null); - const dependencies = Object.create(null); - const getDependencies = (id) => dependencies[id] || (dependencies[id] = /* @__PURE__ */ new Set()); - const isCyclic = (id) => { - const dependenciesToCheck = new Set(getDependencies(id)); - for (const dependency of dependenciesToCheck) { - if (dependency === id) return true; - for (const childDependency of getDependencies(dependency)) dependenciesToCheck.add(childDependency); - } - return false; - }; - const fullyAnalyzedModules = Object.create(null); - const getTypeForFullyAnalyzedModule = (id) => { - const knownType = knownCjsModuleTypes[id]; - if (knownType !== true || !detectCyclesAndConditional || fullyAnalyzedModules[id]) return knownType; - if (isCyclic(id)) return knownCjsModuleTypes[id] = IS_WRAPPED_COMMONJS; - return knownType; - }; - const setInitialParentType = (id, initialCommonJSType) => { - if (fullyAnalyzedModules[id]) return; - knownCjsModuleTypes[id] = initialCommonJSType; - if (detectCyclesAndConditional && knownCjsModuleTypes[id] === true && requiredIds[id] && !unconditionallyRequiredIds[id]) knownCjsModuleTypes[id] = IS_WRAPPED_COMMONJS; - }; - const analyzeRequiredModule = async (parentId, resolved, isConditional, loadModule) => { - const childId = resolved.id; - requiredIds[childId] = true; - if (!(isConditional || knownCjsModuleTypes[parentId] === IS_WRAPPED_COMMONJS)) unconditionallyRequiredIds[childId] = true; - getDependencies(parentId).add(childId); - if (!isCyclic(childId)) await loadModule(resolved); - }; - const getTypeForImportedModule = async (resolved, loadModule) => { - if (resolved.id in knownCjsModuleTypes) return knownCjsModuleTypes[resolved.id]; - const { meta: { commonjs: commonjs$1 } } = await loadModule(resolved); - return commonjs$1 && commonjs$1.isCommonJS || false; - }; - return { - getWrappedIds: () => Object.keys(knownCjsModuleTypes).filter((id) => knownCjsModuleTypes[id] === IS_WRAPPED_COMMONJS), - isRequiredId: (id) => requiredIds[id], - async shouldTransformCachedModule({ id: parentId, resolvedSources, meta: { commonjs: parentMeta } }) { - if (!(parentMeta && parentMeta.isCommonJS)) knownCjsModuleTypes[parentId] = false; - if (isWrappedId(parentId, ES_IMPORT_SUFFIX)) return false; - const parentRequires = parentMeta && parentMeta.requires; - if (parentRequires) { - setInitialParentType(parentId, parentMeta.initialCommonJSType); - await Promise.all(parentRequires.map(({ resolved, isConditional }) => analyzeRequiredModule(parentId, resolved, isConditional, this.load))); - if (getTypeForFullyAnalyzedModule(parentId) !== parentMeta.isCommonJS) return true; - for (const { resolved: { id } } of parentRequires) if (getTypeForFullyAnalyzedModule(id) !== parentMeta.isRequiredCommonJS[id]) return true; - fullyAnalyzedModules[parentId] = true; - for (const { resolved: { id } } of parentRequires) fullyAnalyzedModules[id] = true; - } - const parentRequireSet = new Set((parentRequires || []).map(({ resolved: { id } }) => id)); - return (await Promise.all(Object.keys(resolvedSources).map((source) => resolvedSources[source]).filter(({ id, external }) => !(external || parentRequireSet.has(id))).map(async (resolved) => { - if (isWrappedId(resolved.id, ES_IMPORT_SUFFIX)) return await getTypeForImportedModule((await this.load(resolved)).meta.commonjs.resolved, this.load) !== IS_WRAPPED_COMMONJS; - return await getTypeForImportedModule(resolved, this.load) === IS_WRAPPED_COMMONJS; - }))).some((shouldTransform) => shouldTransform); - }, - resolveRequireSourcesAndUpdateMeta: (rollupContext) => async (parentId, isParentCommonJS, parentMeta, sources) => { - parentMeta.initialCommonJSType = isParentCommonJS; - parentMeta.requires = []; - parentMeta.isRequiredCommonJS = Object.create(null); - setInitialParentType(parentId, isParentCommonJS); - const currentlyResolvingForParent = currentlyResolving.get(parentId) || /* @__PURE__ */ new Set(); - currentlyResolving.set(parentId, currentlyResolvingForParent); - const requireTargets = await Promise.all(sources.map(async ({ source, isConditional }) => { - if (source.startsWith("\0")) return { - id: source, - allowProxy: false - }; - currentlyResolvingForParent.add(source); - const resolved = await rollupContext.resolve(source, parentId, { - skipSelf: false, - custom: { "node-resolve": { isRequire: true } } - }) || resolveExtensions(source, parentId, extensions$1); - currentlyResolvingForParent.delete(source); - if (!resolved) return { - id: wrapId$1(source, EXTERNAL_SUFFIX), - allowProxy: false - }; - const childId = resolved.id; - if (resolved.external) return { - id: wrapId$1(childId, EXTERNAL_SUFFIX), - allowProxy: false - }; - parentMeta.requires.push({ - resolved, - isConditional - }); - await analyzeRequiredModule(parentId, resolved, isConditional, rollupContext.load); - return { - id: childId, - allowProxy: true - }; - })); - parentMeta.isCommonJS = getTypeForFullyAnalyzedModule(parentId); - fullyAnalyzedModules[parentId] = true; - return requireTargets.map(({ id: dependencyId, allowProxy }, index) => { - const isCommonJS = parentMeta.isRequiredCommonJS[dependencyId] = getTypeForFullyAnalyzedModule(dependencyId); - const isWrappedCommonJS = isCommonJS === IS_WRAPPED_COMMONJS; - fullyAnalyzedModules[dependencyId] = true; - return { - wrappedModuleSideEffects: isWrappedCommonJS && rollupContext.getModuleInfo(dependencyId).moduleSideEffects, - source: sources[index].source, - id: allowProxy ? wrapId$1(dependencyId, isWrappedCommonJS ? WRAPPED_SUFFIX : PROXY_SUFFIX) : dependencyId, - isCommonJS - }; - }); - }, - isCurrentlyResolving(source, parentId) { - const currentlyResolvingForParent = currentlyResolving.get(parentId); - return currentlyResolvingForParent && currentlyResolvingForParent.has(source); - } - }; -} -function validateVersion(actualVersion, peerDependencyVersion, name) { - const versionRegexp = /\^(\d+\.\d+\.\d+)/g; - let minMajor = Infinity; - let minMinor = Infinity; - let minPatch = Infinity; - let foundVersion; - while (foundVersion = versionRegexp.exec(peerDependencyVersion)) { - const [foundMajor, foundMinor, foundPatch] = foundVersion[1].split(".").map(Number); - if (foundMajor < minMajor) { - minMajor = foundMajor; - minMinor = foundMinor; - minPatch = foundPatch; - } - } - if (!actualVersion) throw new Error(`Insufficient ${name} version: "@rollup/plugin-commonjs" requires at least ${name}@${minMajor}.${minMinor}.${minPatch}.`); - const [major, minor, patch] = actualVersion.split(".").map(Number); - if (major < minMajor || major === minMajor && (minor < minMinor || minor === minMinor && patch < minPatch)) throw new Error(`Insufficient ${name} version: "@rollup/plugin-commonjs" requires at least ${name}@${minMajor}.${minMinor}.${minPatch} but found ${name}@${actualVersion}.`); -} -const operators = { - "==": (x) => equals(x.left, x.right, false), - "!=": (x) => not(operators["=="](x)), - "===": (x) => equals(x.left, x.right, true), - "!==": (x) => not(operators["==="](x)), - "!": (x) => isFalsy(x.argument), - "&&": (x) => isTruthy(x.left) && isTruthy(x.right), - "||": (x) => isTruthy(x.left) || isTruthy(x.right) -}; -function not(value$1) { - return value$1 === null ? value$1 : !value$1; -} -function equals(a, b, strict) { - if (a.type !== b.type) return null; - if (a.type === "Literal") return strict ? a.value === b.value : a.value == b.value; - return null; -} -function isTruthy(node) { - if (!node) return false; - if (node.type === "Literal") return !!node.value; - if (node.type === "ParenthesizedExpression") return isTruthy(node.expression); - if (node.operator in operators) return operators[node.operator](node); - return null; -} -function isFalsy(node) { - return not(isTruthy(node)); -} -function getKeypath(node) { - const parts = []; - while (node.type === "MemberExpression") { - if (node.computed) return null; - parts.unshift(node.property.name); - node = node.object; - } - if (node.type !== "Identifier") return null; - const { name } = node; - parts.unshift(name); - return { - name, - keypath: parts.join(".") - }; -} -const KEY_COMPILED_ESM = "__esModule"; -function getDefineCompiledEsmType(node) { - const definedPropertyWithExports = getDefinePropertyCallName(node, "exports"); - const definedProperty = definedPropertyWithExports || getDefinePropertyCallName(node, "module.exports"); - if (definedProperty && definedProperty.key === KEY_COMPILED_ESM) return isTruthy(definedProperty.value) ? definedPropertyWithExports ? "exports" : "module" : false; - return false; -} -function getDefinePropertyCallName(node, targetName) { - const { callee: { object, property } } = node; - if (!object || object.type !== "Identifier" || object.name !== "Object") return; - if (!property || property.type !== "Identifier" || property.name !== "defineProperty") return; - if (node.arguments.length !== 3) return; - const targetNames = targetName.split("."); - const [target, key, value$1] = node.arguments; - if (targetNames.length === 1) { - if (target.type !== "Identifier" || target.name !== targetNames[0]) return; - } - if (targetNames.length === 2) { - if (target.type !== "MemberExpression" || target.object.name !== targetNames[0] || target.property.name !== targetNames[1]) return; - } - if (value$1.type !== "ObjectExpression" || !value$1.properties) return; - const valueProperty = value$1.properties.find((p) => p.key && p.key.name === "value"); - if (!valueProperty || !valueProperty.value) return; - return { - key: key.value, - value: valueProperty.value - }; -} -function isShorthandProperty(parent) { - return parent && parent.type === "Property" && parent.shorthand; -} -function wrapCode(magicString, uses, moduleName, exportsName, indentExclusionRanges) { - const args = []; - const passedArgs = []; - if (uses.module) { - args.push("module"); - passedArgs.push(moduleName); - } - if (uses.exports) { - args.push("exports"); - passedArgs.push(uses.module ? `${moduleName}.exports` : exportsName); - } - magicString.trim().indent(" ", { exclude: indentExclusionRanges }).prepend(`(function (${args.join(", ")}) {\n`).append(` \n} (${passedArgs.join(", ")}));`); -} -function rewriteExportsAndGetExportsBlock(magicString, moduleName, exportsName, exportedExportsName, wrapped, moduleExportsAssignments, firstTopLevelModuleExportsAssignment, exportsAssignmentsByName, topLevelAssignments, defineCompiledEsmExpressions, deconflictedExportNames, code, HELPERS_NAME, exportMode, defaultIsModuleExports, usesRequireWrapper, requireName) { - const exports$1 = []; - const exportDeclarations = []; - if (usesRequireWrapper) getExportsWhenUsingRequireWrapper(magicString, wrapped, exportMode, exports$1, moduleExportsAssignments, exportsAssignmentsByName, moduleName, exportsName, requireName, defineCompiledEsmExpressions); - else if (exportMode === "replace") getExportsForReplacedModuleExports(magicString, exports$1, exportDeclarations, moduleExportsAssignments, firstTopLevelModuleExportsAssignment, exportsName, defaultIsModuleExports, HELPERS_NAME); - else { - if (exportMode === "module") { - exportDeclarations.push(`var ${exportedExportsName} = ${moduleName}.exports`); - exports$1.push(`${exportedExportsName} as __moduleExports`); - } else exports$1.push(`${exportsName} as __moduleExports`); - if (wrapped) exportDeclarations.push(getDefaultExportDeclaration(exportedExportsName, defaultIsModuleExports, HELPERS_NAME)); - else getExports(magicString, exports$1, exportDeclarations, moduleExportsAssignments, exportsAssignmentsByName, deconflictedExportNames, topLevelAssignments, moduleName, exportsName, exportedExportsName, defineCompiledEsmExpressions, HELPERS_NAME, defaultIsModuleExports, exportMode); - } - if (exports$1.length) exportDeclarations.push(`export { ${exports$1.join(", ")} }`); - return `\n\n${exportDeclarations.join(";\n")};`; -} -function getExportsWhenUsingRequireWrapper(magicString, wrapped, exportMode, exports$1, moduleExportsAssignments, exportsAssignmentsByName, moduleName, exportsName, requireName, defineCompiledEsmExpressions) { - exports$1.push(`${requireName} as __require`); - if (wrapped) return; - if (exportMode === "replace") rewriteModuleExportsAssignments(magicString, moduleExportsAssignments, exportsName); - else { - rewriteModuleExportsAssignments(magicString, moduleExportsAssignments, `${moduleName}.exports`); - for (const [exportName, { nodes }] of exportsAssignmentsByName) for (const { node, type } of nodes) magicString.overwrite(node.start, node.left.end, `${exportMode === "module" && type === "module" ? `${moduleName}.exports` : exportsName}.${exportName}`); - replaceDefineCompiledEsmExpressionsAndGetIfRestorable(defineCompiledEsmExpressions, magicString, exportMode, moduleName, exportsName); - } -} -function getExportsForReplacedModuleExports(magicString, exports$1, exportDeclarations, moduleExportsAssignments, firstTopLevelModuleExportsAssignment, exportsName, defaultIsModuleExports, HELPERS_NAME) { - for (const { left } of moduleExportsAssignments) magicString.overwrite(left.start, left.end, exportsName); - magicString.prependRight(firstTopLevelModuleExportsAssignment.left.start, "var "); - exports$1.push(`${exportsName} as __moduleExports`); - exportDeclarations.push(getDefaultExportDeclaration(exportsName, defaultIsModuleExports, HELPERS_NAME)); -} -function getDefaultExportDeclaration(exportedExportsName, defaultIsModuleExports, HELPERS_NAME) { - return `export default ${defaultIsModuleExports === true ? exportedExportsName : defaultIsModuleExports === false ? `${exportedExportsName}.default` : `/*@__PURE__*/${HELPERS_NAME}.getDefaultExportFromCjs(${exportedExportsName})`}`; -} -function getExports(magicString, exports$1, exportDeclarations, moduleExportsAssignments, exportsAssignmentsByName, deconflictedExportNames, topLevelAssignments, moduleName, exportsName, exportedExportsName, defineCompiledEsmExpressions, HELPERS_NAME, defaultIsModuleExports, exportMode) { - let deconflictedDefaultExportName; - for (const { left } of moduleExportsAssignments) magicString.overwrite(left.start, left.end, `${moduleName}.exports`); - for (const [exportName, { nodes }] of exportsAssignmentsByName) { - const deconflicted = deconflictedExportNames[exportName]; - let needsDeclaration = true; - for (const { node, type } of nodes) { - let replacement = `${deconflicted} = ${exportMode === "module" && type === "module" ? `${moduleName}.exports` : exportsName}.${exportName}`; - if (needsDeclaration && topLevelAssignments.has(node)) { - replacement = `var ${replacement}`; - needsDeclaration = false; - } - magicString.overwrite(node.start, node.left.end, replacement); - } - if (needsDeclaration) magicString.prepend(`var ${deconflicted};\n`); - if (exportName === "default") deconflictedDefaultExportName = deconflicted; - else exports$1.push(exportName === deconflicted ? exportName : `${deconflicted} as ${exportName}`); - } - const isRestorableCompiledEsm = replaceDefineCompiledEsmExpressionsAndGetIfRestorable(defineCompiledEsmExpressions, magicString, exportMode, moduleName, exportsName); - if (defaultIsModuleExports === false || defaultIsModuleExports === "auto" && isRestorableCompiledEsm && moduleExportsAssignments.length === 0) exports$1.push(`${deconflictedDefaultExportName || exportedExportsName} as default`); - else if (defaultIsModuleExports === true || !isRestorableCompiledEsm && moduleExportsAssignments.length === 0) exports$1.push(`${exportedExportsName} as default`); - else exportDeclarations.push(getDefaultExportDeclaration(exportedExportsName, defaultIsModuleExports, HELPERS_NAME)); -} -function rewriteModuleExportsAssignments(magicString, moduleExportsAssignments, exportsName) { - for (const { left } of moduleExportsAssignments) magicString.overwrite(left.start, left.end, exportsName); -} -function replaceDefineCompiledEsmExpressionsAndGetIfRestorable(defineCompiledEsmExpressions, magicString, exportMode, moduleName, exportsName) { - let isRestorableCompiledEsm = false; - for (const { node, type } of defineCompiledEsmExpressions) { - isRestorableCompiledEsm = true; - const moduleExportsExpression = node.type === "CallExpression" ? node.arguments[0] : node.left.object; - magicString.overwrite(moduleExportsExpression.start, moduleExportsExpression.end, exportMode === "module" && type === "module" ? `${moduleName}.exports` : exportsName); - } - return isRestorableCompiledEsm; -} -function isRequireExpression(node, scope) { - if (!node) return false; - if (node.type !== "CallExpression") return false; - if (node.arguments.length === 0) return false; - return isRequire(node.callee, scope); -} -function isRequire(node, scope) { - return node.type === "Identifier" && node.name === "require" && !scope.contains("require") || node.type === "MemberExpression" && isModuleRequire(node, scope); -} -function isModuleRequire({ object, property }, scope) { - return object.type === "Identifier" && object.name === "module" && property.type === "Identifier" && property.name === "require" && !scope.contains("module"); -} -function hasDynamicArguments(node) { - return node.arguments.length > 1 || node.arguments[0].type !== "Literal" && (node.arguments[0].type !== "TemplateLiteral" || node.arguments[0].expressions.length > 0); -} -const reservedMethod = { - resolve: true, - cache: true, - main: true -}; -function isNodeRequirePropertyAccess(parent) { - return parent && parent.property && reservedMethod[parent.property.name]; -} -function getRequireStringArg(node) { - return node.arguments[0].type === "Literal" ? node.arguments[0].value : node.arguments[0].quasis[0].value.cooked; -} -function getRequireHandlers() { - const requireExpressions = []; - function addRequireExpression(sourceId, node, scope, usesReturnValue, isInsideTryBlock, isInsideConditional, toBeRemoved) { - requireExpressions.push({ - sourceId, - node, - scope, - usesReturnValue, - isInsideTryBlock, - isInsideConditional, - toBeRemoved - }); - } - async function rewriteRequireExpressionsAndGetImportBlock(magicString, topLevelDeclarations, reassignedNames, helpersName, dynamicRequireName, moduleName, exportsName, id, exportMode, resolveRequireSourcesAndUpdateMeta, needsRequireWrapper, isEsModule, isDynamicRequireModulesEnabled, getIgnoreTryCatchRequireStatementMode, commonjsMeta) { - const imports = []; - imports.push(`import * as ${helpersName} from "${HELPERS_ID}"`); - if (dynamicRequireName) imports.push(`import { ${isDynamicRequireModulesEnabled ? CREATE_COMMONJS_REQUIRE_EXPORT : COMMONJS_REQUIRE_EXPORT} as ${dynamicRequireName} } from "${DYNAMIC_MODULES_ID}"`); - if (exportMode === "module") imports.push(`import { __module as ${moduleName} } from ${JSON.stringify(wrapId$1(id, MODULE_SUFFIX))}`, `var ${exportsName} = ${moduleName}.exports`); - else if (exportMode === "exports") imports.push(`import { __exports as ${exportsName} } from ${JSON.stringify(wrapId$1(id, EXPORTS_SUFFIX))}`); - const requiresBySource = collectSources(requireExpressions); - const requireTargets = await resolveRequireSourcesAndUpdateMeta(id, needsRequireWrapper ? IS_WRAPPED_COMMONJS : !isEsModule, commonjsMeta, Object.keys(requiresBySource).map((source) => { - return { - source, - isConditional: requiresBySource[source].every((require$1) => require$1.isInsideConditional) - }; - })); - processRequireExpressions(imports, requireTargets, requiresBySource, getIgnoreTryCatchRequireStatementMode, magicString); - return imports.length ? `${imports.join(";\n")};\n\n` : ""; - } - return { - addRequireExpression, - rewriteRequireExpressionsAndGetImportBlock - }; -} -function collectSources(requireExpressions) { - const requiresBySource = Object.create(null); - for (const requireExpression of requireExpressions) { - const { sourceId } = requireExpression; - if (!requiresBySource[sourceId]) requiresBySource[sourceId] = []; - const requires = requiresBySource[sourceId]; - requires.push(requireExpression); - } - return requiresBySource; -} -function processRequireExpressions(imports, requireTargets, requiresBySource, getIgnoreTryCatchRequireStatementMode, magicString) { - const generateRequireName = getGenerateRequireName(); - for (const { source, id: resolvedId, isCommonJS, wrappedModuleSideEffects } of requireTargets) { - const requires = requiresBySource[source]; - const name = generateRequireName(requires); - let usesRequired = false; - let needsImport = false; - for (const { node, usesReturnValue, toBeRemoved, isInsideTryBlock } of requires) { - const { canConvertRequire, shouldRemoveRequire } = isInsideTryBlock && isWrappedId(resolvedId, EXTERNAL_SUFFIX) ? getIgnoreTryCatchRequireStatementMode(source) : { - canConvertRequire: true, - shouldRemoveRequire: false - }; - if (shouldRemoveRequire) if (usesReturnValue) magicString.overwrite(node.start, node.end, "undefined"); - else magicString.remove(toBeRemoved.start, toBeRemoved.end); - else if (canConvertRequire) { - needsImport = true; - if (isCommonJS === IS_WRAPPED_COMMONJS) magicString.overwrite(node.start, node.end, `${wrappedModuleSideEffects ? "" : "/*@__PURE__*/ "}${name}()`); - else if (usesReturnValue) { - usesRequired = true; - magicString.overwrite(node.start, node.end, name); - } else magicString.remove(toBeRemoved.start, toBeRemoved.end); - } - } - if (needsImport) if (isCommonJS === IS_WRAPPED_COMMONJS) imports.push(`import { __require as ${name} } from ${JSON.stringify(resolvedId)}`); - else imports.push(`import ${usesRequired ? `${name} from ` : ""}${JSON.stringify(resolvedId)}`); - } -} -function getGenerateRequireName() { - let uid = 0; - return (requires) => { - let name; - const hasNameConflict = ({ scope }) => scope.contains(name); - do { - name = `require$$${uid}`; - uid += 1; - } while (requires.some(hasNameConflict)); - return name; - }; -} -const exportsPattern = /^(?:module\.)?exports(?:\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/; -const functionType = /^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/; -async function transformCommonjs(parse$17, code, id, isEsModule, ignoreGlobal, ignoreRequire, ignoreDynamicRequires, getIgnoreTryCatchRequireStatementMode, sourceMap, isDynamicRequireModulesEnabled, dynamicRequireModules, commonDir, astCache, defaultIsModuleExports, needsRequireWrapper, resolveRequireSourcesAndUpdateMeta, isRequired, checkDynamicRequire, commonjsMeta) { - const ast = astCache || tryParse(parse$17, code, id); - const magicString = new MagicString(code); - const uses = { - module: false, - exports: false, - global: false, - require: false - }; - const virtualDynamicRequirePath = isDynamicRequireModulesEnabled && getVirtualPathForDynamicRequirePath(dirname$1(id), commonDir); - let scope = attachScopes(ast, "scope"); - let lexicalDepth = 0; - let programDepth = 0; - let classBodyDepth = 0; - let currentTryBlockEnd = null; - let shouldWrap = false; - const globals = /* @__PURE__ */ new Set(); - let currentConditionalNodeEnd = null; - const conditionalNodes = /* @__PURE__ */ new Set(); - const { addRequireExpression, rewriteRequireExpressionsAndGetImportBlock } = getRequireHandlers(); - const reassignedNames = /* @__PURE__ */ new Set(); - const topLevelDeclarations = []; - const skippedNodes = /* @__PURE__ */ new Set(); - const moduleAccessScopes = new Set([scope]); - const exportsAccessScopes = new Set([scope]); - const moduleExportsAssignments = []; - let firstTopLevelModuleExportsAssignment = null; - const exportsAssignmentsByName = /* @__PURE__ */ new Map(); - const topLevelAssignments = /* @__PURE__ */ new Set(); - const topLevelDefineCompiledEsmExpressions = []; - const replacedGlobal = []; - const replacedThis = []; - const replacedDynamicRequires = []; - const importedVariables = /* @__PURE__ */ new Set(); - const indentExclusionRanges = []; - walk$2(ast, { - enter(node, parent) { - if (skippedNodes.has(node)) { - this.skip(); - return; - } - if (currentTryBlockEnd !== null && node.start > currentTryBlockEnd) currentTryBlockEnd = null; - if (currentConditionalNodeEnd !== null && node.start > currentConditionalNodeEnd) currentConditionalNodeEnd = null; - if (currentConditionalNodeEnd === null && conditionalNodes.has(node)) currentConditionalNodeEnd = node.end; - programDepth += 1; - if (node.scope) ({scope} = node); - if (functionType.test(node.type)) lexicalDepth += 1; - if (sourceMap) { - magicString.addSourcemapLocation(node.start); - magicString.addSourcemapLocation(node.end); - } - switch (node.type) { - case "AssignmentExpression": - if (node.left.type === "MemberExpression") { - const flattened = getKeypath(node.left); - if (!flattened || scope.contains(flattened.name)) return; - const exportsPatternMatch = exportsPattern.exec(flattened.keypath); - if (!exportsPatternMatch || flattened.keypath === "exports") return; - const [, exportName] = exportsPatternMatch; - uses[flattened.name] = true; - if (flattened.keypath === "module.exports") { - moduleExportsAssignments.push(node); - if (programDepth > 3) moduleAccessScopes.add(scope); - else if (!firstTopLevelModuleExportsAssignment) firstTopLevelModuleExportsAssignment = node; - } else if (exportName === KEY_COMPILED_ESM) if (programDepth > 3) shouldWrap = true; - else topLevelDefineCompiledEsmExpressions.push({ - node, - type: flattened.name - }); - else { - const exportsAssignments = exportsAssignmentsByName.get(exportName) || { - nodes: [], - scopes: /* @__PURE__ */ new Set() - }; - exportsAssignments.nodes.push({ - node, - type: flattened.name - }); - exportsAssignments.scopes.add(scope); - exportsAccessScopes.add(scope); - exportsAssignmentsByName.set(exportName, exportsAssignments); - if (programDepth <= 3) topLevelAssignments.add(node); - } - skippedNodes.add(node.left); - } else for (const name of extractAssignedNames(node.left)) reassignedNames.add(name); - return; - case "CallExpression": { - const defineCompiledEsmType = getDefineCompiledEsmType(node); - if (defineCompiledEsmType) { - if (programDepth === 3 && parent.type === "ExpressionStatement") { - skippedNodes.add(node.arguments[0]); - topLevelDefineCompiledEsmExpressions.push({ - node, - type: defineCompiledEsmType - }); - } else shouldWrap = true; - return; - } - if (isDynamicRequireModulesEnabled && node.callee.object && isRequire(node.callee.object, scope) && node.callee.property.name === "resolve") { - checkDynamicRequire(node.start); - uses.require = true; - const requireNode = node.callee.object; - replacedDynamicRequires.push(requireNode); - skippedNodes.add(node.callee); - return; - } - if (!isRequireExpression(node, scope)) { - const keypath = getKeypath(node.callee); - if (keypath && importedVariables.has(keypath.name)) currentConditionalNodeEnd = Infinity; - return; - } - skippedNodes.add(node.callee); - uses.require = true; - if (hasDynamicArguments(node)) { - if (isDynamicRequireModulesEnabled) checkDynamicRequire(node.start); - if (!ignoreDynamicRequires) replacedDynamicRequires.push(node.callee); - return; - } - const requireStringArg = getRequireStringArg(node); - if (!ignoreRequire(requireStringArg)) { - const usesReturnValue = parent.type !== "ExpressionStatement"; - const toBeRemoved = parent.type === "ExpressionStatement" && (!currentConditionalNodeEnd || currentTryBlockEnd !== null && currentTryBlockEnd < currentConditionalNodeEnd) ? parent : node; - addRequireExpression(requireStringArg, node, scope, usesReturnValue, currentTryBlockEnd !== null, currentConditionalNodeEnd !== null, toBeRemoved); - if (parent.type === "VariableDeclarator" && parent.id.type === "Identifier") for (const name of extractAssignedNames(parent.id)) importedVariables.add(name); - } - return; - } - case "ClassBody": - classBodyDepth += 1; - return; - case "ConditionalExpression": - case "IfStatement": - if (isFalsy(node.test)) skippedNodes.add(node.consequent); - else if (isTruthy(node.test)) { - if (node.alternate) skippedNodes.add(node.alternate); - } else { - conditionalNodes.add(node.consequent); - if (node.alternate) conditionalNodes.add(node.alternate); - } - return; - case "ArrowFunctionExpression": - case "FunctionDeclaration": - case "FunctionExpression": - if (currentConditionalNodeEnd === null && !(parent.type === "CallExpression" && parent.callee === node)) currentConditionalNodeEnd = node.end; - return; - case "Identifier": { - const { name } = node; - if (!(0, import_is_reference.default)(node, parent) || scope.contains(name) || parent.type === "PropertyDefinition" && parent.key === node) return; - switch (name) { - case "require": - uses.require = true; - if (isNodeRequirePropertyAccess(parent)) return; - if (!ignoreDynamicRequires) { - if (isShorthandProperty(parent)) { - skippedNodes.add(parent.value); - magicString.prependRight(node.start, "require: "); - } - replacedDynamicRequires.push(node); - } - return; - case "module": - case "exports": - shouldWrap = true; - uses[name] = true; - return; - case "global": - uses.global = true; - if (!ignoreGlobal) replacedGlobal.push(node); - return; - case "define": - magicString.overwrite(node.start, node.end, "undefined", { storeName: true }); - return; - default: - globals.add(name); - return; - } - } - case "LogicalExpression": - if (node.operator === "&&") { - if (isFalsy(node.left)) skippedNodes.add(node.right); - else if (!isTruthy(node.left)) conditionalNodes.add(node.right); - } else if (node.operator === "||") { - if (isTruthy(node.left)) skippedNodes.add(node.right); - else if (!isFalsy(node.left)) conditionalNodes.add(node.right); - } - return; - case "MemberExpression": - if (!isDynamicRequireModulesEnabled && isModuleRequire(node, scope)) { - uses.require = true; - replacedDynamicRequires.push(node); - skippedNodes.add(node.object); - skippedNodes.add(node.property); - } - return; - case "ReturnStatement": - if (lexicalDepth === 0) shouldWrap = true; - return; - case "ThisExpression": - if (lexicalDepth === 0 && !classBodyDepth) { - uses.global = true; - if (!ignoreGlobal) replacedThis.push(node); - } - return; - case "TryStatement": - if (currentTryBlockEnd === null) currentTryBlockEnd = node.block.end; - if (currentConditionalNodeEnd === null) currentConditionalNodeEnd = node.end; - return; - case "UnaryExpression": - if (node.operator === "typeof") { - const flattened = getKeypath(node.argument); - if (!flattened) return; - if (scope.contains(flattened.name)) return; - if (!isEsModule && (flattened.keypath === "module.exports" || flattened.keypath === "module" || flattened.keypath === "exports")) magicString.overwrite(node.start, node.end, `'object'`, { storeName: false }); - } - return; - case "VariableDeclaration": - if (!scope.parent) topLevelDeclarations.push(node); - return; - case "TemplateElement": if (node.value.raw.includes("\n")) indentExclusionRanges.push([node.start, node.end]); - } - }, - leave(node) { - programDepth -= 1; - if (node.scope) scope = scope.parent; - if (functionType.test(node.type)) lexicalDepth -= 1; - if (node.type === "ClassBody") classBodyDepth -= 1; - } - }); - const nameBase = getName(id); - const exportsName = deconflict([...exportsAccessScopes], globals, nameBase); - const moduleName = deconflict([...moduleAccessScopes], globals, `${nameBase}Module`); - const requireName = deconflict([scope], globals, `require${capitalize(nameBase)}`); - const isRequiredName = deconflict([scope], globals, `hasRequired${capitalize(nameBase)}`); - const helpersName = deconflict([scope], globals, "commonjsHelpers"); - const dynamicRequireName = replacedDynamicRequires.length > 0 && deconflict([scope], globals, isDynamicRequireModulesEnabled ? CREATE_COMMONJS_REQUIRE_EXPORT : COMMONJS_REQUIRE_EXPORT); - const deconflictedExportNames = Object.create(null); - for (const [exportName, { scopes }] of exportsAssignmentsByName) deconflictedExportNames[exportName] = deconflict([...scopes], globals, exportName); - for (const node of replacedGlobal) magicString.overwrite(node.start, node.end, `${helpersName}.commonjsGlobal`, { storeName: true }); - for (const node of replacedThis) magicString.overwrite(node.start, node.end, exportsName, { storeName: true }); - for (const node of replacedDynamicRequires) magicString.overwrite(node.start, node.end, isDynamicRequireModulesEnabled ? `${dynamicRequireName}(${JSON.stringify(virtualDynamicRequirePath)})` : dynamicRequireName, { - contentOnly: true, - storeName: true - }); - shouldWrap = !isEsModule && (shouldWrap || uses.exports && moduleExportsAssignments.length > 0); - if (!(shouldWrap || isRequired || needsRequireWrapper || uses.module || uses.exports || uses.require || topLevelDefineCompiledEsmExpressions.length > 0) && (ignoreGlobal || !uses.global)) return { meta: { commonjs: { isCommonJS: false } } }; - let leadingComment = ""; - if (code.startsWith("/*")) { - const commentEnd = code.indexOf("*/", 2) + 2; - leadingComment = `${code.slice(0, commentEnd)}\n`; - magicString.remove(0, commentEnd).trim(); - } - let shebang = ""; - if (code.startsWith("#!")) { - const shebangEndPosition = code.indexOf("\n") + 1; - shebang = code.slice(0, shebangEndPosition); - magicString.remove(0, shebangEndPosition).trim(); - } - const exportMode = isEsModule ? "none" : shouldWrap ? uses.module ? "module" : "exports" : firstTopLevelModuleExportsAssignment ? exportsAssignmentsByName.size === 0 && topLevelDefineCompiledEsmExpressions.length === 0 ? "replace" : "module" : moduleExportsAssignments.length === 0 ? "exports" : "module"; - const exportedExportsName = exportMode === "module" ? deconflict([], globals, `${nameBase}Exports`) : exportsName; - const importBlock = await rewriteRequireExpressionsAndGetImportBlock(magicString, topLevelDeclarations, reassignedNames, helpersName, dynamicRequireName, moduleName, exportsName, id, exportMode, resolveRequireSourcesAndUpdateMeta, needsRequireWrapper, isEsModule, isDynamicRequireModulesEnabled, getIgnoreTryCatchRequireStatementMode, commonjsMeta); - const usesRequireWrapper = commonjsMeta.isCommonJS === IS_WRAPPED_COMMONJS; - const exportBlock = isEsModule ? "" : rewriteExportsAndGetExportsBlock(magicString, moduleName, exportsName, exportedExportsName, shouldWrap, moduleExportsAssignments, firstTopLevelModuleExportsAssignment, exportsAssignmentsByName, topLevelAssignments, topLevelDefineCompiledEsmExpressions, deconflictedExportNames, code, helpersName, exportMode, defaultIsModuleExports, usesRequireWrapper, requireName); - if (shouldWrap) wrapCode(magicString, uses, moduleName, exportsName, indentExclusionRanges); - if (usesRequireWrapper) { - magicString.trim().indent(" ", { exclude: indentExclusionRanges }); - const exported = exportMode === "module" ? `${moduleName}.exports` : exportsName; - magicString.prepend(`var ${isRequiredName}; - -function ${requireName} () { -\tif (${isRequiredName}) return ${exported}; -\t${isRequiredName} = 1; -`).append(` -\treturn ${exported}; -}`); - if (exportMode === "replace") magicString.prepend(`var ${exportsName};\n`); - } - magicString.trim().prepend(shebang + leadingComment + importBlock).append(exportBlock); - return { - code: magicString.toString(), - map: sourceMap ? magicString.generateMap() : null, - syntheticNamedExports: isEsModule || usesRequireWrapper ? false : "__moduleExports", - meta: { commonjs: { - ...commonjsMeta, - shebang - } } - }; -} -const PLUGIN_NAME = "commonjs"; -function commonjs(options$1 = {}) { - const { ignoreGlobal, ignoreDynamicRequires, requireReturnsDefault: requireReturnsDefaultOption, defaultIsModuleExports: defaultIsModuleExportsOption, esmExternals } = options$1; - const extensions$1 = options$1.extensions || [".js"]; - const filter$1 = createFilter$2(options$1.include, options$1.exclude); - const isPossibleCjsId = (id) => { - const extName = extname$1(id); - return extName === ".cjs" || extensions$1.includes(extName) && filter$1(id); - }; - const { strictRequiresFilter, detectCyclesAndConditional } = getStrictRequiresFilter(options$1); - const getRequireReturnsDefault = typeof requireReturnsDefaultOption === "function" ? requireReturnsDefaultOption : () => requireReturnsDefaultOption; - let esmExternalIds; - const isEsmExternal = typeof esmExternals === "function" ? esmExternals : Array.isArray(esmExternals) ? (esmExternalIds = new Set(esmExternals), (id) => esmExternalIds.has(id)) : () => esmExternals; - const getDefaultIsModuleExports = typeof defaultIsModuleExportsOption === "function" ? defaultIsModuleExportsOption : () => typeof defaultIsModuleExportsOption === "boolean" ? defaultIsModuleExportsOption : "auto"; - const dynamicRequireRoot = typeof options$1.dynamicRequireRoot === "string" ? resolve$1(options$1.dynamicRequireRoot) : process.cwd(); - const { commonDir, dynamicRequireModules } = getDynamicRequireModules(options$1.dynamicRequireTargets, dynamicRequireRoot); - const isDynamicRequireModulesEnabled = dynamicRequireModules.size > 0; - const ignoreRequire = typeof options$1.ignore === "function" ? options$1.ignore : Array.isArray(options$1.ignore) ? (id) => options$1.ignore.includes(id) : () => false; - const getIgnoreTryCatchRequireStatementMode = (id) => { - const mode = typeof options$1.ignoreTryCatch === "function" ? options$1.ignoreTryCatch(id) : Array.isArray(options$1.ignoreTryCatch) ? options$1.ignoreTryCatch.includes(id) : typeof options$1.ignoreTryCatch !== "undefined" ? options$1.ignoreTryCatch : true; - return { - canConvertRequire: mode !== "remove" && mode !== true, - shouldRemoveRequire: mode === "remove" - }; - }; - const { currentlyResolving, resolveId } = getResolveId(extensions$1, isPossibleCjsId); - const sourceMap = options$1.sourceMap !== false; - let requireResolver; - function transformAndCheckExports(code, id) { - const normalizedId = normalizePathSlashes(id); - const { isEsModule, hasDefaultExport, hasNamedExports, ast } = analyzeTopLevelStatements(this.parse, code, id); - const commonjsMeta = this.getModuleInfo(id).meta.commonjs || {}; - if (hasDefaultExport) commonjsMeta.hasDefaultExport = true; - if (hasNamedExports) commonjsMeta.hasNamedExports = true; - if (!dynamicRequireModules.has(normalizedId) && (!(hasCjsKeywords(code, ignoreGlobal) || requireResolver.isRequiredId(id)) || isEsModule && !options$1.transformMixedEsModules)) { - commonjsMeta.isCommonJS = false; - return { meta: { commonjs: commonjsMeta } }; - } - const needsRequireWrapper = !isEsModule && (dynamicRequireModules.has(normalizedId) || strictRequiresFilter(id)); - const checkDynamicRequire = (position) => { - const normalizedDynamicRequireRoot = normalizePathSlashes(dynamicRequireRoot); - if (normalizedId.indexOf(normalizedDynamicRequireRoot) !== 0) this.error({ - code: "DYNAMIC_REQUIRE_OUTSIDE_ROOT", - normalizedId, - normalizedDynamicRequireRoot, - message: `"${normalizedId}" contains dynamic require statements but it is not within the current dynamicRequireRoot "${normalizedDynamicRequireRoot}". You should set dynamicRequireRoot to "${dirname$1(normalizedId)}" or one of its parent directories.` - }, position); - }; - return transformCommonjs(this.parse, code, id, isEsModule, ignoreGlobal || isEsModule, ignoreRequire, ignoreDynamicRequires && !isDynamicRequireModulesEnabled, getIgnoreTryCatchRequireStatementMode, sourceMap, isDynamicRequireModulesEnabled, dynamicRequireModules, commonDir, ast, getDefaultIsModuleExports(id), needsRequireWrapper, requireResolver.resolveRequireSourcesAndUpdateMeta(this), requireResolver.isRequiredId(id), checkDynamicRequire, commonjsMeta); - } - return { - name: PLUGIN_NAME, - version: version$1, - options(rawOptions) { - const plugins$1 = Array.isArray(rawOptions.plugins) ? [...rawOptions.plugins] : rawOptions.plugins ? [rawOptions.plugins] : []; - plugins$1.unshift({ - name: "commonjs--resolver", - resolveId - }); - return { - ...rawOptions, - plugins: plugins$1 - }; - }, - buildStart({ plugins: plugins$1 }) { - validateVersion(this.meta.rollupVersion, peerDependencies.rollup, "rollup"); - const nodeResolve = plugins$1.find(({ name }) => name === "node-resolve"); - if (nodeResolve) validateVersion(nodeResolve.version, "^13.0.6", "@rollup/plugin-node-resolve"); - if (options$1.namedExports != null) this.warn("The namedExports option from \"@rollup/plugin-commonjs\" is deprecated. Named exports are now handled automatically."); - requireResolver = getRequireResolver(extensions$1, detectCyclesAndConditional, currentlyResolving); - }, - buildEnd() { - if (options$1.strictRequires === "debug") { - const wrappedIds = requireResolver.getWrappedIds(); - if (wrappedIds.length) this.warn({ - code: "WRAPPED_IDS", - ids: wrappedIds, - message: `The commonjs plugin automatically wrapped the following files:\n[\n${wrappedIds.map((id) => `\t${JSON.stringify(relative$1(process.cwd(), id))}`).join(",\n")}\n]` - }); - else this.warn({ - code: "WRAPPED_IDS", - ids: wrappedIds, - message: "The commonjs plugin did not wrap any files." - }); - } - }, - async load(id) { - if (id === HELPERS_ID) return getHelpersModule(); - if (isWrappedId(id, MODULE_SUFFIX)) { - const name = getName(unwrapId$1(id, MODULE_SUFFIX)); - return { - code: `var ${name} = {exports: {}}; export {${name} as __module}`, - meta: { commonjs: { isCommonJS: false } } - }; - } - if (isWrappedId(id, EXPORTS_SUFFIX)) { - const name = getName(unwrapId$1(id, EXPORTS_SUFFIX)); - return { - code: `var ${name} = {}; export {${name} as __exports}`, - meta: { commonjs: { isCommonJS: false } } - }; - } - if (isWrappedId(id, EXTERNAL_SUFFIX)) { - const actualId = unwrapId$1(id, EXTERNAL_SUFFIX); - return getUnknownRequireProxy(actualId, isEsmExternal(actualId) ? getRequireReturnsDefault(actualId) : true); - } - if (id.endsWith(ENTRY_SUFFIX)) { - const acutalId = id.slice(0, -15); - const { meta: { commonjs: commonjsMeta } } = this.getModuleInfo(acutalId); - const shebang = commonjsMeta?.shebang ?? ""; - return getEntryProxy(acutalId, getDefaultIsModuleExports(acutalId), this.getModuleInfo, shebang); - } - if (isWrappedId(id, ES_IMPORT_SUFFIX)) { - const actualId = unwrapId$1(id, ES_IMPORT_SUFFIX); - return getEsImportProxy(actualId, getDefaultIsModuleExports(actualId), (await this.load({ id: actualId })).moduleSideEffects); - } - if (id === DYNAMIC_MODULES_ID) return getDynamicModuleRegistry(isDynamicRequireModulesEnabled, dynamicRequireModules, commonDir, ignoreDynamicRequires); - if (isWrappedId(id, PROXY_SUFFIX)) { - const actualId = unwrapId$1(id, PROXY_SUFFIX); - return getStaticRequireProxy(actualId, getRequireReturnsDefault(actualId), this.load); - } - return null; - }, - shouldTransformCachedModule(...args) { - return requireResolver.shouldTransformCachedModule.call(this, ...args); - }, - transform(code, id) { - if (!isPossibleCjsId(id)) return null; - try { - return transformAndCheckExports.call(this, code, id); - } catch (err$2) { - return this.error(err$2, err$2.pos); - } - } - }; -} - -//#endregion -//#region src/node/environment.ts -/** -* Creates a function that hides the complexities of a WeakMap with an initial value -* to implement object metadata. Used by plugins to implement cross hooks per -* environment metadata -* -* @experimental -*/ -function perEnvironmentState(initial) { - const stateMap = /* @__PURE__ */ new WeakMap(); - return function(context) { - const { environment } = context; - let state = stateMap.get(environment); - if (!state) { - state = initial(environment); - stateMap.set(environment, state); - } - return state; - }; -} - -//#endregion -//#region src/node/plugins/reporter.ts -var import_picocolors$32 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -const groups = [ - { - name: "Assets", - color: import_picocolors$32.default.green - }, - { - name: "CSS", - color: import_picocolors$32.default.magenta - }, - { - name: "JS", - color: import_picocolors$32.default.cyan - } -]; -const COMPRESSIBLE_ASSETS_RE = /\.(?:html|json|svg|txt|xml|xhtml|wasm)$/; -function buildReporterPlugin(config$2) { - const compress = promisify(gzip); - const numberFormatter = new Intl.NumberFormat("en", { - maximumFractionDigits: 2, - minimumFractionDigits: 2 - }); - const displaySize = (bytes) => { - return `${numberFormatter.format(bytes / 1e3)} kB`; - }; - const tty$2 = process.stdout.isTTY && !process.env.CI; - const shouldLogInfo = LogLevels[config$2.logLevel || "info"] >= LogLevels.info; - const modulesReporter = shouldLogInfo ? perEnvironmentState((environment) => { - let hasTransformed = false; - let transformedCount = 0; - const logTransform = throttle((id) => { - writeLine(`transforming (${transformedCount}) ${import_picocolors$32.default.dim(path.relative(config$2.root, id))}`); - }); - return { - reset() { - transformedCount = 0; - }, - register(id) { - transformedCount++; - if (!tty$2) { - if (!hasTransformed) config$2.logger.info(`transforming...`); - } else { - if (id.includes(`?`)) return; - logTransform(id); - } - hasTransformed = true; - }, - log() { - if (tty$2) clearLine$1(); - environment.logger.info(`${import_picocolors$32.default.green(`✓`)} ${transformedCount} modules transformed.`); - } - }; - }) : void 0; - const chunksReporter = perEnvironmentState((environment) => { - let hasRenderedChunk = false; - let hasCompressChunk = false; - let chunkCount = 0; - let compressedCount = 0; - async function getCompressedSize(code) { - if (environment.config.consumer !== "client" || !environment.config.build.reportCompressedSize) return null; - if (shouldLogInfo && !hasCompressChunk) { - if (!tty$2) config$2.logger.info("computing gzip size..."); - else writeLine("computing gzip size (0)..."); - hasCompressChunk = true; - } - const compressed = await compress(typeof code === "string" ? code : Buffer.from(code)); - compressedCount++; - if (shouldLogInfo && tty$2) writeLine(`computing gzip size (${compressedCount})...`); - return compressed.length; - } - return { - reset() { - chunkCount = 0; - compressedCount = 0; - }, - register() { - chunkCount++; - if (shouldLogInfo) { - if (!tty$2) { - if (!hasRenderedChunk) environment.logger.info("rendering chunks..."); - } else writeLine(`rendering chunks (${chunkCount})...`); - hasRenderedChunk = true; - } - }, - async log(output, outDir) { - const chunkLimit = environment.config.build.chunkSizeWarningLimit; - let hasLargeChunks = false; - if (shouldLogInfo) { - const entries = (await Promise.all(Object.values(output).map(async (chunk) => { - if (chunk.type === "chunk") return { - name: chunk.fileName, - group: "JS", - size: Buffer.byteLength(chunk.code), - compressedSize: await getCompressedSize(chunk.code), - mapSize: chunk.map ? Buffer.byteLength(chunk.map.toString()) : null - }; - else { - if (chunk.fileName.endsWith(".map")) return null; - const isCSS = chunk.fileName.endsWith(".css"); - const isCompressible = isCSS || COMPRESSIBLE_ASSETS_RE.test(chunk.fileName); - return { - name: chunk.fileName, - group: isCSS ? "CSS" : "Assets", - size: Buffer.byteLength(chunk.source), - mapSize: null, - compressedSize: isCompressible ? await getCompressedSize(chunk.source) : null - }; - } - }))).filter(isDefined); - if (tty$2) clearLine$1(); - let longest = 0; - let biggestSize = 0; - let biggestMap = 0; - let biggestCompressSize = 0; - for (const entry of entries) { - if (entry.name.length > longest) longest = entry.name.length; - if (entry.size > biggestSize) biggestSize = entry.size; - if (entry.mapSize && entry.mapSize > biggestMap) biggestMap = entry.mapSize; - if (entry.compressedSize && entry.compressedSize > biggestCompressSize) biggestCompressSize = entry.compressedSize; - } - const sizePad = displaySize(biggestSize).length; - const mapPad = displaySize(biggestMap).length; - const compressPad = displaySize(biggestCompressSize).length; - const relativeOutDir = normalizePath(path.relative(config$2.root, path.resolve(config$2.root, outDir ?? environment.config.build.outDir))); - const assetsDir = path.join(environment.config.build.assetsDir, "/"); - for (const group of groups) { - const filtered = entries.filter((e$1) => e$1.group === group.name); - if (!filtered.length) continue; - for (const entry of filtered.sort((a, z) => a.size - z.size)) { - const isLarge = group.name === "JS" && entry.size / 1e3 > chunkLimit; - if (isLarge) hasLargeChunks = true; - const sizeColor = isLarge ? import_picocolors$32.default.yellow : import_picocolors$32.default.dim; - let log$4 = import_picocolors$32.default.dim(withTrailingSlash(relativeOutDir)); - log$4 += !config$2.build.lib && entry.name.startsWith(withTrailingSlash(assetsDir)) ? import_picocolors$32.default.dim(assetsDir) + group.color(entry.name.slice(assetsDir.length).padEnd(longest + 2 - assetsDir.length)) : group.color(entry.name.padEnd(longest + 2)); - log$4 += import_picocolors$32.default.bold(sizeColor(displaySize(entry.size).padStart(sizePad))); - if (entry.compressedSize) log$4 += import_picocolors$32.default.dim(` │ gzip: ${displaySize(entry.compressedSize).padStart(compressPad)}`); - if (entry.mapSize) log$4 += import_picocolors$32.default.dim(` │ map: ${displaySize(entry.mapSize).padStart(mapPad)}`); - config$2.logger.info(log$4); - } - } - } else hasLargeChunks = Object.values(output).some((chunk) => { - return chunk.type === "chunk" && chunk.code.length / 1e3 > chunkLimit; - }); - if (hasLargeChunks && environment.config.build.minify && !config$2.build.lib && environment.config.consumer === "client") environment.logger.warn(import_picocolors$32.default.yellow(`\n(!) Some chunks are larger than ${chunkLimit} kB after minification. Consider:\n- Using dynamic import() to code-split the application\n- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks\n- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.`)); - } - }; - }); - return { - name: "vite:reporter", - sharedDuringBuild: true, - perEnvironmentStartEndDuringDev: true, - ...modulesReporter ? { - transform(_, id) { - modulesReporter(this).register(id); - }, - buildStart() { - modulesReporter(this).reset(); - }, - buildEnd() { - modulesReporter(this).log(); - } - } : {}, - renderStart() { - chunksReporter(this).reset(); - }, - renderChunk(_, chunk, options$1) { - if (!options$1.inlineDynamicImports) for (const id of chunk.moduleIds) { - const module$1 = this.getModuleInfo(id); - if (!module$1) continue; - if (module$1.importers.length && module$1.dynamicImporters.length) { - const detectedIneffectiveDynamicImport = module$1.dynamicImporters.some((id$1) => !isInNodeModules(id$1) && chunk.moduleIds.includes(id$1)); - if (detectedIneffectiveDynamicImport) this.warn(`\n(!) ${module$1.id} is dynamically imported by ${module$1.dynamicImporters.join(", ")} but also statically imported by ${module$1.importers.join(", ")}, dynamic import will not move module into another chunk.\n`); - } - } - chunksReporter(this).register(); - }, - generateBundle() { - if (shouldLogInfo && tty$2) clearLine$1(); - }, - async writeBundle({ dir }, output) { - await chunksReporter(this).log(output, dir); - } - }; -} -function writeLine(output) { - clearLine$1(); - if (output.length < process.stdout.columns) process.stdout.write(output); - else process.stdout.write(output.substring(0, process.stdout.columns - 1)); -} -function clearLine$1() { - process.stdout.clearLine(0); - process.stdout.cursorTo(0); -} -function throttle(fn) { - let timerHandle = null; - return (...args) => { - if (timerHandle) return; - fn(...args); - timerHandle = setTimeout(() => { - timerHandle = null; - }, 100); - }; -} - -//#endregion -//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/util.js -const POSIX_SEP_RE = new RegExp("\\" + path.posix.sep, "g"); -const NATIVE_SEP_RE = new RegExp("\\" + path.sep, "g"); -/** @type {Map}*/ -const PATTERN_REGEX_CACHE = /* @__PURE__ */ new Map(); -const GLOB_ALL_PATTERN = `**/*`; -const TS_EXTENSIONS = [ - ".ts", - ".tsx", - ".mts", - ".cts" -]; -const JS_EXTENSIONS = [ - ".js", - ".jsx", - ".mjs", - ".cjs" -]; -const TSJS_EXTENSIONS = TS_EXTENSIONS.concat(JS_EXTENSIONS); -const TS_EXTENSIONS_RE_GROUP = `\\.(?:${TS_EXTENSIONS.map((ext) => ext.substring(1)).join("|")})`; -const TSJS_EXTENSIONS_RE_GROUP = `\\.(?:${TSJS_EXTENSIONS.map((ext) => ext.substring(1)).join("|")})`; -const IS_POSIX = path.posix.sep === path.sep; -/** -* @template T -* @returns {{resolve:(result:T)=>void, reject:(error:any)=>void, promise: Promise}} -*/ -function makePromise() { - let resolve$4, reject; - const promise = new Promise((res, rej) => { - resolve$4 = res; - reject = rej; - }); - return { - promise, - resolve: resolve$4, - reject - }; -} -/** -* @param {string} filename -* @param {import('./cache.js').TSConfckCache} [cache] -* @returns {Promise} -*/ -async function resolveTSConfigJson(filename, cache$1) { - if (path.extname(filename) !== ".json") return; - const tsconfig = path.resolve(filename); - if (cache$1 && (cache$1.hasParseResult(tsconfig) || cache$1.hasParseResult(filename))) return tsconfig; - return promises.stat(tsconfig).then((stat$4) => { - if (stat$4.isFile() || stat$4.isFIFO()) return tsconfig; - else throw new Error(`${filename} exists but is not a regular file.`); - }); -} -/** -* -* @param {string} dir an absolute directory path -* @returns {boolean} if dir path includes a node_modules segment -*/ -const isInNodeModules$1 = IS_POSIX ? (dir) => dir.includes("/node_modules/") : (dir) => dir.match(/[/\\]node_modules[/\\]/); -/** -* convert posix separator to native separator -* -* eg. -* windows: C:/foo/bar -> c:\foo\bar -* linux: /foo/bar -> /foo/bar -* -* @param {string} filename with posix separators -* @returns {string} filename with native separators -*/ -const posix2native = IS_POSIX ? (filename) => filename : (filename) => filename.replace(POSIX_SEP_RE, path.sep); -/** -* convert native separator to posix separator -* -* eg. -* windows: C:\foo\bar -> c:/foo/bar -* linux: /foo/bar -> /foo/bar -* -* @param {string} filename - filename with native separators -* @returns {string} filename with posix separators -*/ -const native2posix = IS_POSIX ? (filename) => filename : (filename) => filename.replace(NATIVE_SEP_RE, path.posix.sep); -/** -* converts params to native separator, resolves path and converts native back to posix -* -* needed on windows to handle posix paths in tsconfig -* -* @param dir {string|null} directory to resolve from -* @param filename {string} filename or pattern to resolve -* @returns string -*/ -const resolve2posix = IS_POSIX ? (dir, filename) => dir ? path.resolve(dir, filename) : path.resolve(filename) : (dir, filename) => native2posix(dir ? path.resolve(posix2native(dir), posix2native(filename)) : path.resolve(posix2native(filename))); -/** -* -* @param {import('./public.d.ts').TSConfckParseResult} result -* @param {import('./public.d.ts').TSConfckParseOptions} [options] -* @returns {string[]} -*/ -function resolveReferencedTSConfigFiles(result, options$1) { - const dir = path.dirname(result.tsconfigFile); - return result.tsconfig.references.map((ref) => { - const refPath = ref.path.endsWith(".json") ? ref.path : path.join(ref.path, options$1?.configName ?? "tsconfig.json"); - return resolve2posix(dir, refPath); - }); -} -/** -* @param {string} filename -* @param {import('./public.d.ts').TSConfckParseResult} result -* @returns {import('./public.d.ts').TSConfckParseResult} -*/ -function resolveSolutionTSConfig(filename, result) { - const allowJs = result.tsconfig.compilerOptions?.allowJs; - const extensions$1 = allowJs ? TSJS_EXTENSIONS : TS_EXTENSIONS; - if (result.referenced && extensions$1.some((ext) => filename.endsWith(ext)) && !isIncluded(filename, result)) { - const solutionTSConfig = result.referenced.find((referenced) => isIncluded(filename, referenced)); - if (solutionTSConfig) return solutionTSConfig; - } - return result; -} -/** -* -* @param {string} filename -* @param {import('./public.d.ts').TSConfckParseResult} result -* @returns {boolean} -*/ -function isIncluded(filename, result) { - const dir = native2posix(path.dirname(result.tsconfigFile)); - const files = (result.tsconfig.files || []).map((file) => resolve2posix(dir, file)); - const absoluteFilename = resolve2posix(null, filename); - if (files.includes(filename)) return true; - const allowJs = result.tsconfig.compilerOptions?.allowJs; - const isIncluded$1 = isGlobMatch(absoluteFilename, dir, result.tsconfig.include || (result.tsconfig.files ? [] : [GLOB_ALL_PATTERN]), allowJs); - if (isIncluded$1) { - const isExcluded = isGlobMatch(absoluteFilename, dir, result.tsconfig.exclude || [], allowJs); - return !isExcluded; - } - return false; -} -/** -* test filenames agains glob patterns in tsconfig -* -* @param filename {string} posix style abolute path to filename to test -* @param dir {string} posix style absolute path to directory of tsconfig containing patterns -* @param patterns {string[]} glob patterns to match against -* @param allowJs {boolean} allowJs setting in tsconfig to include js extensions in checks -* @returns {boolean} true when at least one pattern matches filename -*/ -function isGlobMatch(filename, dir, patterns, allowJs) { - const extensions$1 = allowJs ? TSJS_EXTENSIONS : TS_EXTENSIONS; - return patterns.some((pattern) => { - let lastWildcardIndex = pattern.length; - let hasWildcard = false; - let hasExtension = false; - let hasSlash = false; - let lastSlashIndex = -1; - for (let i$1 = pattern.length - 1; i$1 > -1; i$1--) { - const c = pattern[i$1]; - if (!hasWildcard) { - if (c === "*" || c === "?") { - lastWildcardIndex = i$1; - hasWildcard = true; - } - } - if (!hasSlash) { - if (c === ".") hasExtension = true; - else if (c === "/") { - lastSlashIndex = i$1; - hasSlash = true; - } - } - if (hasWildcard && hasSlash) break; - } - if (!hasExtension && (!hasWildcard || lastWildcardIndex < lastSlashIndex)) { - pattern += `${pattern.endsWith("/") ? "" : "/"}${GLOB_ALL_PATTERN}`; - lastWildcardIndex = pattern.length - 1; - hasWildcard = true; - } - if (lastWildcardIndex < pattern.length - 1 && !filename.endsWith(pattern.slice(lastWildcardIndex + 1))) return false; - if (pattern.endsWith("*") && !extensions$1.some((ext) => filename.endsWith(ext))) return false; - if (pattern === GLOB_ALL_PATTERN) return filename.startsWith(`${dir}/`); - const resolvedPattern = resolve2posix(dir, pattern); - let firstWildcardIndex = -1; - for (let i$1 = 0; i$1 < resolvedPattern.length; i$1++) if (resolvedPattern[i$1] === "*" || resolvedPattern[i$1] === "?") { - firstWildcardIndex = i$1; - hasWildcard = true; - break; - } - if (firstWildcardIndex > 1 && !filename.startsWith(resolvedPattern.slice(0, firstWildcardIndex - 1))) return false; - if (!hasWildcard) return filename === resolvedPattern; - else if (firstWildcardIndex + GLOB_ALL_PATTERN.length === resolvedPattern.length - (pattern.length - 1 - lastWildcardIndex) && resolvedPattern.slice(firstWildcardIndex, firstWildcardIndex + GLOB_ALL_PATTERN.length) === GLOB_ALL_PATTERN) return true; - if (PATTERN_REGEX_CACHE.has(resolvedPattern)) return PATTERN_REGEX_CACHE.get(resolvedPattern).test(filename); - const regex = pattern2regex(resolvedPattern, allowJs); - PATTERN_REGEX_CACHE.set(resolvedPattern, regex); - return regex.test(filename); - }); -} -/** -* @param {string} resolvedPattern -* @param {boolean} allowJs -* @returns {RegExp} -*/ -function pattern2regex(resolvedPattern, allowJs) { - let regexStr = "^"; - for (let i$1 = 0; i$1 < resolvedPattern.length; i$1++) { - const char = resolvedPattern[i$1]; - if (char === "?") { - regexStr += "[^\\/]"; - continue; - } - if (char === "*") { - if (resolvedPattern[i$1 + 1] === "*" && resolvedPattern[i$1 + 2] === "/") { - i$1 += 2; - regexStr += "(?:[^\\/]*\\/)*"; - continue; - } - regexStr += "[^\\/]*"; - continue; - } - if ("/.+^${}()|[]\\".includes(char)) regexStr += `\\`; - regexStr += char; - } - if (resolvedPattern.endsWith("*")) regexStr += allowJs ? TSJS_EXTENSIONS_RE_GROUP : TS_EXTENSIONS_RE_GROUP; - regexStr += "$"; - return new RegExp(regexStr); -} -/** -* replace tokens like ${configDir} -* @param {import('./public.d.ts').TSConfckParseResult} result -*/ -function replaceTokens(result) { - if (result.tsconfig) result.tsconfig = JSON.parse(JSON.stringify(result.tsconfig).replaceAll(/"\${configDir}/g, `"${native2posix(path.dirname(result.tsconfigFile))}`)); -} - -//#endregion -//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/find.js -/** -* find the closest tsconfig.json file -* -* @param {string} filename - path to file to find tsconfig for (absolute or relative to cwd) -* @param {import('./public.d.ts').TSConfckFindOptions} [options] - options -* @returns {Promise} absolute path to closest tsconfig.json or null if not found -*/ -async function find(filename, options$1) { - let dir = path.dirname(path.resolve(filename)); - if (options$1?.ignoreNodeModules && isInNodeModules$1(dir)) return null; - const cache$1 = options$1?.cache; - const configName = options$1?.configName ?? "tsconfig.json"; - if (cache$1?.hasConfigPath(dir, configName)) return cache$1.getConfigPath(dir, configName); - const { promise, resolve: resolve$4, reject } = makePromise(); - if (options$1?.root && !path.isAbsolute(options$1.root)) options$1.root = path.resolve(options$1.root); - findUp(dir, { - promise, - resolve: resolve$4, - reject - }, options$1); - return promise; -} -/** -* -* @param {string} dir -* @param {{promise:Promise,resolve:(result:string|null)=>void,reject:(err:any)=>void}} madePromise -* @param {import('./public.d.ts').TSConfckFindOptions} [options] - options -*/ -function findUp(dir, { resolve: resolve$4, reject, promise }, options$1) { - const { cache: cache$1, root, configName } = options$1 ?? {}; - if (cache$1) if (cache$1.hasConfigPath(dir, configName)) { - let cached; - try { - cached = cache$1.getConfigPath(dir, configName); - } catch (e$1) { - reject(e$1); - return; - } - if (cached?.then) cached.then(resolve$4).catch(reject); - else resolve$4(cached); - } else cache$1.setConfigPath(dir, promise, configName); - const tsconfig = path.join(dir, options$1?.configName ?? "tsconfig.json"); - fs.stat(tsconfig, (err$2, stats) => { - if (stats && (stats.isFile() || stats.isFIFO())) resolve$4(tsconfig); - else if (err$2?.code !== "ENOENT") reject(err$2); - else { - let parent; - if (root === dir || (parent = path.dirname(dir)) === dir) resolve$4(null); - else findUp(parent, { - promise, - resolve: resolve$4, - reject - }, options$1); - } - }); -} - -//#endregion -//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/find-all.js -/** -* @typedef WalkState -* @interface -* @property {string[]} files - files -* @property {number} calls - number of ongoing calls -* @property {(dir: string)=>boolean} skip - function to skip dirs -* @property {boolean} err - error flag -* @property {string[]} configNames - config file names -*/ -const sep$3 = path.sep; - -//#endregion -//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/to-json.js -/** -* convert content of tsconfig.json to regular json -* -* @param {string} tsconfigJson - content of tsconfig.json -* @returns {string} content as regular json, comments and dangling commas have been replaced with whitespace -*/ -function toJson(tsconfigJson) { - const stripped = stripDanglingComma(stripJsonComments(stripBom(tsconfigJson))); - if (stripped.trim() === "") return "{}"; - else return stripped; -} -/** -* replace dangling commas from pseudo-json string with single space -* implementation heavily inspired by strip-json-comments -* -* @param {string} pseudoJson -* @returns {string} -*/ -function stripDanglingComma(pseudoJson) { - let insideString = false; - let offset$1 = 0; - let result = ""; - let danglingCommaPos = null; - for (let i$1 = 0; i$1 < pseudoJson.length; i$1++) { - const currentCharacter = pseudoJson[i$1]; - if (currentCharacter === "\"") { - const escaped$1 = isEscaped(pseudoJson, i$1); - if (!escaped$1) insideString = !insideString; - } - if (insideString) { - danglingCommaPos = null; - continue; - } - if (currentCharacter === ",") { - danglingCommaPos = i$1; - continue; - } - if (danglingCommaPos) { - if (currentCharacter === "}" || currentCharacter === "]") { - result += pseudoJson.slice(offset$1, danglingCommaPos) + " "; - offset$1 = danglingCommaPos + 1; - danglingCommaPos = null; - } else if (!currentCharacter.match(/\s/)) danglingCommaPos = null; - } - } - return result + pseudoJson.substring(offset$1); -} -/** -* -* @param {string} jsonString -* @param {number} quotePosition -* @returns {boolean} -*/ -function isEscaped(jsonString, quotePosition) { - let index = quotePosition - 1; - let backslashCount = 0; - while (jsonString[index] === "\\") { - index -= 1; - backslashCount += 1; - } - return Boolean(backslashCount % 2); -} -/** -* -* @param {string} string -* @param {number?} start -* @param {number?} end -*/ -function strip(string, start, end) { - return string.slice(start, end).replace(/\S/g, " "); -} -const singleComment = Symbol("singleComment"); -const multiComment = Symbol("multiComment"); -/** -* @param {string} jsonString -* @returns {string} -*/ -function stripJsonComments(jsonString) { - let isInsideString = false; - /** @type {false | symbol} */ - let isInsideComment = false; - let offset$1 = 0; - let result = ""; - for (let index = 0; index < jsonString.length; index++) { - const currentCharacter = jsonString[index]; - const nextCharacter = jsonString[index + 1]; - if (!isInsideComment && currentCharacter === "\"") { - const escaped$1 = isEscaped(jsonString, index); - if (!escaped$1) isInsideString = !isInsideString; - } - if (isInsideString) continue; - if (!isInsideComment && currentCharacter + nextCharacter === "//") { - result += jsonString.slice(offset$1, index); - offset$1 = index; - isInsideComment = singleComment; - index++; - } else if (isInsideComment === singleComment && currentCharacter + nextCharacter === "\r\n") { - index++; - isInsideComment = false; - result += strip(jsonString, offset$1, index); - offset$1 = index; - } else if (isInsideComment === singleComment && currentCharacter === "\n") { - isInsideComment = false; - result += strip(jsonString, offset$1, index); - offset$1 = index; - } else if (!isInsideComment && currentCharacter + nextCharacter === "/*") { - result += jsonString.slice(offset$1, index); - offset$1 = index; - isInsideComment = multiComment; - index++; - } else if (isInsideComment === multiComment && currentCharacter + nextCharacter === "*/") { - index++; - isInsideComment = false; - result += strip(jsonString, offset$1, index + 1); - offset$1 = index + 1; - } - } - return result + (isInsideComment ? strip(jsonString.slice(offset$1)) : jsonString.slice(offset$1)); -} -/** -* @param {string} string -* @returns {string} -*/ -function stripBom(string) { - if (string.charCodeAt(0) === 65279) return string.slice(1); - return string; -} - -//#endregion -//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/parse.js -const not_found_result = { - tsconfigFile: null, - tsconfig: {} -}; -/** -* parse the closest tsconfig.json file -* -* @param {string} filename - path to a tsconfig .json or a source file or directory (absolute or relative to cwd) -* @param {import('./public.d.ts').TSConfckParseOptions} [options] - options -* @returns {Promise} -* @throws {TSConfckParseError} -*/ -async function parse$14(filename, options$1) { - /** @type {import('./cache.js').TSConfckCache} */ - const cache$1 = options$1?.cache; - if (cache$1?.hasParseResult(filename)) return getParsedDeep(filename, cache$1, options$1); - const { resolve: resolve$4, reject, promise } = makePromise(); - cache$1?.setParseResult(filename, promise, true); - try { - let tsconfigFile = await resolveTSConfigJson(filename, cache$1) || await find(filename, options$1); - if (!tsconfigFile) { - resolve$4(not_found_result); - return promise; - } - let result; - if (filename !== tsconfigFile && cache$1?.hasParseResult(tsconfigFile)) result = await getParsedDeep(tsconfigFile, cache$1, options$1); - else { - result = await parseFile$1(tsconfigFile, cache$1, filename === tsconfigFile); - await Promise.all([parseExtends(result, cache$1), parseReferences(result, options$1)]); - } - replaceTokens(result); - resolve$4(resolveSolutionTSConfig(filename, result)); - } catch (e$1) { - reject(e$1); - } - return promise; -} -/** -* ensure extends and references are parsed -* -* @param {string} filename - cached file -* @param {import('./cache.js').TSConfckCache} cache - cache -* @param {import('./public.d.ts').TSConfckParseOptions} options - options -*/ -async function getParsedDeep(filename, cache$1, options$1) { - const result = await cache$1.getParseResult(filename); - if (result.tsconfig.extends && !result.extended || result.tsconfig.references && !result.referenced) { - const promise = Promise.all([parseExtends(result, cache$1), parseReferences(result, options$1)]).then(() => result); - cache$1.setParseResult(filename, promise, true); - return promise; - } - return result; -} -/** -* -* @param {string} tsconfigFile - path to tsconfig file -* @param {import('./cache.js').TSConfckCache} [cache] - cache -* @param {boolean} [skipCache] - skip cache -* @returns {Promise} -*/ -async function parseFile$1(tsconfigFile, cache$1, skipCache) { - if (!skipCache && cache$1?.hasParseResult(tsconfigFile) && !cache$1.getParseResult(tsconfigFile)._isRootFile_) return cache$1.getParseResult(tsconfigFile); - const promise = promises.readFile(tsconfigFile, "utf-8").then(toJson).then((json) => { - const parsed = JSON.parse(json); - applyDefaults(parsed, tsconfigFile); - return { - tsconfigFile, - tsconfig: normalizeTSConfig(parsed, path.dirname(tsconfigFile)) - }; - }).catch((e$1) => { - throw new TSConfckParseError(`parsing ${tsconfigFile} failed: ${e$1}`, "PARSE_FILE", tsconfigFile, e$1); - }); - if (!skipCache && (!cache$1?.hasParseResult(tsconfigFile) || !cache$1.getParseResult(tsconfigFile)._isRootFile_)) cache$1?.setParseResult(tsconfigFile, promise); - return promise; -} -/** -* normalize to match the output of ts.parseJsonConfigFileContent -* -* @param {any} tsconfig - typescript tsconfig output -* @param {string} dir - directory -*/ -function normalizeTSConfig(tsconfig, dir) { - const baseUrl = tsconfig.compilerOptions?.baseUrl; - if (baseUrl && !baseUrl.startsWith("${") && !path.isAbsolute(baseUrl)) tsconfig.compilerOptions.baseUrl = resolve2posix(dir, baseUrl); - return tsconfig; -} -/** -* -* @param {import('./public.d.ts').TSConfckParseResult} result -* @param {import('./public.d.ts').TSConfckParseOptions} [options] -* @returns {Promise} -*/ -async function parseReferences(result, options$1) { - if (!result.tsconfig.references) return; - const referencedFiles = resolveReferencedTSConfigFiles(result, options$1); - const referenced = await Promise.all(referencedFiles.map((file) => parseFile$1(file, options$1?.cache))); - await Promise.all(referenced.map((ref) => parseExtends(ref, options$1?.cache))); - referenced.forEach((ref) => { - ref.solution = result; - replaceTokens(ref); - }); - result.referenced = referenced; -} -/** -* @param {import('./public.d.ts').TSConfckParseResult} result -* @param {import('./cache.js').TSConfckCache}[cache] -* @returns {Promise} -*/ -async function parseExtends(result, cache$1) { - if (!result.tsconfig.extends) return; - /** @type {import('./public.d.ts').TSConfckParseResult[]} */ - const extended = [{ - tsconfigFile: result.tsconfigFile, - tsconfig: JSON.parse(JSON.stringify(result.tsconfig)) - }]; - let pos = 0; - /** @type {string[]} */ - const extendsPath = []; - let currentBranchDepth = 0; - while (pos < extended.length) { - const extending = extended[pos]; - extendsPath.push(extending.tsconfigFile); - if (extending.tsconfig.extends) { - currentBranchDepth += 1; - /** @type {string[]} */ - let resolvedExtends; - if (!Array.isArray(extending.tsconfig.extends)) resolvedExtends = [resolveExtends(extending.tsconfig.extends, extending.tsconfigFile)]; - else resolvedExtends = extending.tsconfig.extends.reverse().map((ex) => resolveExtends(ex, extending.tsconfigFile)); - const circularExtends = resolvedExtends.find((tsconfigFile) => extendsPath.includes(tsconfigFile)); - if (circularExtends) { - const circle = extendsPath.concat([circularExtends]).join(" -> "); - throw new TSConfckParseError(`Circular dependency in "extends": ${circle}`, "EXTENDS_CIRCULAR", result.tsconfigFile); - } - extended.splice(pos + 1, 0, ...await Promise.all(resolvedExtends.map((file) => parseFile$1(file, cache$1)))); - } else { - extendsPath.splice(-currentBranchDepth); - currentBranchDepth = 0; - } - pos = pos + 1; - } - result.extended = extended; - for (const ext of result.extended.slice(1)) extendTSConfig(result, ext); -} -/** -* -* @param {string} extended -* @param {string} from -* @returns {string} -*/ -function resolveExtends(extended, from) { - if ([".", ".."].includes(extended)) extended = extended + "/tsconfig.json"; - const req$4 = createRequire$1(from); - let error$1; - try { - return req$4.resolve(extended); - } catch (e$1) { - error$1 = e$1; - } - if (extended[0] !== "." && !path.isAbsolute(extended)) try { - return req$4.resolve(`${extended}/tsconfig.json`); - } catch (e$1) { - error$1 = e$1; - } - throw new TSConfckParseError(`failed to resolve "extends":"${extended}" in ${from}`, "EXTENDS_RESOLVE", from, error$1); -} -const EXTENDABLE_KEYS = [ - "compilerOptions", - "files", - "include", - "exclude", - "watchOptions", - "compileOnSave", - "typeAcquisition", - "buildOptions" -]; -/** -* -* @param {import('./public.d.ts').TSConfckParseResult} extending -* @param {import('./public.d.ts').TSConfckParseResult} extended -* @returns void -*/ -function extendTSConfig(extending, extended) { - const extendingConfig = extending.tsconfig; - const extendedConfig = extended.tsconfig; - const relativePath = native2posix(path.relative(path.dirname(extending.tsconfigFile), path.dirname(extended.tsconfigFile))); - for (const key of Object.keys(extendedConfig).filter((key$1) => EXTENDABLE_KEYS.includes(key$1))) if (key === "compilerOptions") { - if (!extendingConfig.compilerOptions) extendingConfig.compilerOptions = {}; - for (const option of Object.keys(extendedConfig.compilerOptions)) { - if (Object.prototype.hasOwnProperty.call(extendingConfig.compilerOptions, option)) continue; - extendingConfig.compilerOptions[option] = rebaseRelative(option, extendedConfig.compilerOptions[option], relativePath); - } - } else if (extendingConfig[key] === void 0) if (key === "watchOptions") { - extendingConfig.watchOptions = {}; - for (const option of Object.keys(extendedConfig.watchOptions)) extendingConfig.watchOptions[option] = rebaseRelative(option, extendedConfig.watchOptions[option], relativePath); - } else extendingConfig[key] = rebaseRelative(key, extendedConfig[key], relativePath); -} -const REBASE_KEYS = [ - "files", - "include", - "exclude", - "baseUrl", - "rootDir", - "rootDirs", - "typeRoots", - "outDir", - "outFile", - "declarationDir", - "excludeDirectories", - "excludeFiles" -]; -/** @typedef {string | string[]} PathValue */ -/** -* -* @param {string} key -* @param {PathValue} value -* @param {string} prependPath -* @returns {PathValue} -*/ -function rebaseRelative(key, value$1, prependPath) { - if (!REBASE_KEYS.includes(key)) return value$1; - if (Array.isArray(value$1)) return value$1.map((x) => rebasePath(x, prependPath)); - else return rebasePath(value$1, prependPath); -} -/** -* -* @param {string} value -* @param {string} prependPath -* @returns {string} -*/ -function rebasePath(value$1, prependPath) { - if (path.isAbsolute(value$1) || value$1.startsWith("${configDir}")) return value$1; - else return path.posix.normalize(path.posix.join(prependPath, value$1)); -} -var TSConfckParseError = class TSConfckParseError extends Error { - /** - * error code - * @type {string} - */ - code; - /** - * error cause - * @type { Error | undefined} - */ - cause; - /** - * absolute path of tsconfig file where the error happened - * @type {string} - */ - tsconfigFile; - /** - * - * @param {string} message - error message - * @param {string} code - error code - * @param {string} tsconfigFile - path to tsconfig file - * @param {Error?} cause - cause of this error - */ - constructor(message, code, tsconfigFile, cause) { - super(message); - Object.setPrototypeOf(this, TSConfckParseError.prototype); - this.name = TSConfckParseError.name; - this.code = code; - this.cause = cause; - this.tsconfigFile = tsconfigFile; - } -}; -/** -* -* @param {any} tsconfig -* @param {string} tsconfigFile -*/ -function applyDefaults(tsconfig, tsconfigFile) { - if (isJSConfig(tsconfigFile)) tsconfig.compilerOptions = { - ...DEFAULT_JSCONFIG_COMPILER_OPTIONS, - ...tsconfig.compilerOptions - }; -} -const DEFAULT_JSCONFIG_COMPILER_OPTIONS = { - allowJs: true, - maxNodeModuleJsDepth: 2, - allowSyntheticDefaultImports: true, - skipLibCheck: true, - noEmit: true -}; -/** -* @param {string} configFileName -*/ -function isJSConfig(configFileName) { - return path.basename(configFileName) === "jsconfig.json"; -} - -//#endregion -//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/parse-native.js -/** @typedef TSDiagnosticError { -code: number; -category: number; -messageText: string; -start?: number; -} TSDiagnosticError */ - -//#endregion -//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/cache.js -/** @template T */ -var TSConfckCache = class { - /** - * clear cache, use this if you have a long running process and tsconfig files have been added,changed or deleted - */ - clear() { - this.#configPaths.clear(); - this.#parsed.clear(); - } - /** - * has cached closest config for files in dir - * @param {string} dir - * @param {string} [configName=tsconfig.json] - * @returns {boolean} - */ - hasConfigPath(dir, configName = "tsconfig.json") { - return this.#configPaths.has(`${dir}/${configName}`); - } - /** - * get cached closest tsconfig for files in dir - * @param {string} dir - * @param {string} [configName=tsconfig.json] - * @returns {Promise|string|null} - * @throws {unknown} if cached value is an error - */ - getConfigPath(dir, configName = "tsconfig.json") { - const key = `${dir}/${configName}`; - const value$1 = this.#configPaths.get(key); - if (value$1 == null || value$1.length || value$1.then) return value$1; - else throw value$1; - } - /** - * has parsed tsconfig for file - * @param {string} file - * @returns {boolean} - */ - hasParseResult(file) { - return this.#parsed.has(file); - } - /** - * get parsed tsconfig for file - * @param {string} file - * @returns {Promise|T} - * @throws {unknown} if cached value is an error - */ - getParseResult(file) { - const value$1 = this.#parsed.get(file); - if (value$1.then || value$1.tsconfig) return value$1; - else throw value$1; - } - /** - * @internal - * @private - * @param file - * @param {boolean} isRootFile a flag to check if current file which involking the parse() api, used to distinguish the normal cache which only parsed by parseFile() - * @param {Promise} result - */ - setParseResult(file, result, isRootFile = false) { - Object.defineProperty(result, "_isRootFile_", { - value: isRootFile, - writable: false, - enumerable: false, - configurable: false - }); - this.#parsed.set(file, result); - result.then((parsed) => { - if (this.#parsed.get(file) === result) this.#parsed.set(file, parsed); - }).catch((e$1) => { - if (this.#parsed.get(file) === result) this.#parsed.set(file, e$1); - }); - } - /** - * @internal - * @private - * @param {string} dir - * @param {Promise} configPath - * @param {string} [configName=tsconfig.json] - */ - setConfigPath(dir, configPath, configName = "tsconfig.json") { - const key = `${dir}/${configName}`; - this.#configPaths.set(key, configPath); - configPath.then((path$13) => { - if (this.#configPaths.get(key) === configPath) this.#configPaths.set(key, path$13); - }).catch((e$1) => { - if (this.#configPaths.get(key) === configPath) this.#configPaths.set(key, e$1); - }); - } - /** - * map directories to their closest tsconfig.json - * @internal - * @private - * @type{Map|string|null)>} - */ - #configPaths = /* @__PURE__ */ new Map(); - /** - * map files to their parsed tsconfig result - * @internal - * @private - * @type {Map|T)> } - */ - #parsed = /* @__PURE__ */ new Map(); -}; - -//#endregion -//#region src/node/plugins/esbuild.ts -var import_picocolors$31 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -const debug$17 = createDebugger("vite:esbuild"); -const IIFE_BEGIN_RE = /(?:const|var)\s+\S+\s*=\s*function\([^()]*\)\s*\{\s*"use strict";/; -const validExtensionRE = /\.\w+$/; -const jsxExtensionsRE = /\.(?:j|t)sx\b/; -const defaultEsbuildSupported = { - "dynamic-import": true, - "import-meta": true -}; -async function transformWithEsbuild(code, filename, options$1, inMap, config$2, watcher) { - let loader$1 = options$1?.loader; - if (!loader$1) { - const ext = path.extname(validExtensionRE.test(filename) ? filename : cleanUrl(filename)).slice(1); - if (ext === "cjs" || ext === "mjs") loader$1 = "js"; - else if (ext === "cts" || ext === "mts") loader$1 = "ts"; - else loader$1 = ext; - } - let tsconfigRaw = options$1?.tsconfigRaw; - if (typeof tsconfigRaw !== "string") { - const meaningfulFields = [ - "alwaysStrict", - "experimentalDecorators", - "importsNotUsedAsValues", - "jsx", - "jsxFactory", - "jsxFragmentFactory", - "jsxImportSource", - "preserveValueImports", - "target", - "useDefineForClassFields", - "verbatimModuleSyntax" - ]; - const compilerOptionsForFile = {}; - if (loader$1 === "ts" || loader$1 === "tsx") try { - const { tsconfig: loadedTsconfig, tsconfigFile } = await loadTsconfigJsonForFile(filename, config$2); - if (watcher && tsconfigFile && config$2) ensureWatchedFile(watcher, tsconfigFile, config$2.root); - const loadedCompilerOptions = loadedTsconfig.compilerOptions ?? {}; - for (const field of meaningfulFields) if (field in loadedCompilerOptions) compilerOptionsForFile[field] = loadedCompilerOptions[field]; - } catch (e$1) { - if (e$1 instanceof TSConfckParseError) { - if (watcher && e$1.tsconfigFile && config$2) ensureWatchedFile(watcher, e$1.tsconfigFile, config$2.root); - } - throw e$1; - } - const compilerOptions = { - ...compilerOptionsForFile, - ...tsconfigRaw?.compilerOptions - }; - if (compilerOptions.useDefineForClassFields === void 0 && compilerOptions.target === void 0) compilerOptions.useDefineForClassFields = false; - if (options$1) { - if (options$1.jsx) compilerOptions.jsx = void 0; - if (options$1.jsxFactory) compilerOptions.jsxFactory = void 0; - if (options$1.jsxFragment) compilerOptions.jsxFragmentFactory = void 0; - if (options$1.jsxImportSource) compilerOptions.jsxImportSource = void 0; - } - tsconfigRaw = { - ...tsconfigRaw, - compilerOptions - }; - } - const resolvedOptions = { - sourcemap: true, - sourcefile: filename, - ...options$1, - loader: loader$1, - tsconfigRaw - }; - delete resolvedOptions.include; - delete resolvedOptions.exclude; - delete resolvedOptions.jsxInject; - try { - const result = await transform(code, resolvedOptions); - let map$1; - if (inMap && resolvedOptions.sourcemap) { - const nextMap = JSON.parse(result.map); - nextMap.sourcesContent = []; - map$1 = combineSourcemaps(filename, [nextMap, inMap]); - } else map$1 = resolvedOptions.sourcemap && resolvedOptions.sourcemap !== "inline" ? JSON.parse(result.map) : { mappings: "" }; - return { - ...result, - map: map$1 - }; - } catch (e$1) { - debug$17?.(`esbuild error with options used: `, resolvedOptions); - if (e$1.errors) { - e$1.frame = ""; - e$1.errors.forEach((m$2) => { - if (m$2.text === "Experimental decorators are not currently enabled" || m$2.text === "Parameter decorators only work when experimental decorators are enabled") m$2.text += ". Vite 5 now uses esbuild 0.18 and you need to enable them by adding \"experimentalDecorators\": true in your \"tsconfig.json\" file."; - e$1.frame += `\n` + prettifyMessage(m$2, code); - }); - e$1.loc = e$1.errors[0].location; - } - throw e$1; - } -} -function esbuildPlugin(config$2) { - const options$1 = config$2.esbuild; - const { jsxInject, include, exclude,...esbuildTransformOptions } = options$1; - const filter$1 = createFilter(include || /\.(m?ts|[jt]sx)$/, exclude || /\.js$/); - const transformOptions = { - target: "esnext", - charset: "utf8", - ...esbuildTransformOptions, - minify: false, - minifyIdentifiers: false, - minifySyntax: false, - minifyWhitespace: false, - treeShaking: false, - keepNames: false, - supported: { - ...defaultEsbuildSupported, - ...esbuildTransformOptions.supported - } - }; - let server; - return { - name: "vite:esbuild", - configureServer(_server) { - server = _server; - }, - async transform(code, id) { - if (filter$1(id) || filter$1(cleanUrl(id))) { - const result = await transformWithEsbuild(code, id, transformOptions, void 0, config$2, server?.watcher); - if (result.warnings.length) result.warnings.forEach((m$2) => { - this.warn(prettifyMessage(m$2, code)); - }); - if (jsxInject && jsxExtensionsRE.test(id)) result.code = jsxInject + ";" + result.code; - return { - code: result.code, - map: result.map - }; - } - } - }; -} -const rollupToEsbuildFormatMap = { - es: "esm", - cjs: "cjs", - iife: void 0 -}; -const buildEsbuildPlugin = () => { - return { - name: "vite:esbuild-transpile", - applyToEnvironment(environment) { - return environment.config.esbuild !== false; - }, - async renderChunk(code, chunk, opts) { - if (opts.__vite_skip_esbuild__) return null; - const config$2 = this.environment.config; - const options$1 = resolveEsbuildTranspileOptions(config$2, opts.format); - if (!options$1) return null; - const res = await transformWithEsbuild(code, chunk.fileName, options$1, void 0, config$2); - if (config$2.build.lib) { - const esbuildCode = res.code; - const contentIndex = opts.format === "iife" ? Math.max(esbuildCode.search(IIFE_BEGIN_RE), 0) : opts.format === "umd" ? esbuildCode.indexOf(`(function(`) : 0; - if (contentIndex > 0) { - const esbuildHelpers = esbuildCode.slice(0, contentIndex); - res.code = esbuildCode.slice(contentIndex).replace(`"use strict";`, `"use strict";` + esbuildHelpers); - } - } - return res; - } - }; -}; -function resolveEsbuildTranspileOptions(config$2, format$3) { - const target = config$2.build.target; - const minify = config$2.build.minify === "esbuild"; - if ((!target || target === "esnext") && !minify) return null; - const isEsLibBuild = config$2.build.lib && format$3 === "es"; - const esbuildOptions = config$2.esbuild || {}; - const options$1 = { - charset: "utf8", - ...esbuildOptions, - loader: "js", - target: target || void 0, - format: rollupToEsbuildFormatMap[format$3], - supported: { - ...defaultEsbuildSupported, - ...esbuildOptions.supported - } - }; - if (!minify) return { - ...options$1, - minify: false, - minifyIdentifiers: false, - minifySyntax: false, - minifyWhitespace: false, - treeShaking: false - }; - if (options$1.minifyIdentifiers != null || options$1.minifySyntax != null || options$1.minifyWhitespace != null) if (isEsLibBuild) return { - ...options$1, - minify: false, - minifyIdentifiers: options$1.minifyIdentifiers ?? true, - minifySyntax: options$1.minifySyntax ?? true, - minifyWhitespace: false, - treeShaking: true - }; - else return { - ...options$1, - minify: false, - minifyIdentifiers: options$1.minifyIdentifiers ?? true, - minifySyntax: options$1.minifySyntax ?? true, - minifyWhitespace: options$1.minifyWhitespace ?? true, - treeShaking: true - }; - if (isEsLibBuild) return { - ...options$1, - minify: false, - minifyIdentifiers: true, - minifySyntax: true, - minifyWhitespace: false, - treeShaking: true - }; - else return { - ...options$1, - minify: true, - treeShaking: true - }; -} -function prettifyMessage(m$2, code) { - let res = import_picocolors$31.default.yellow(m$2.text); - if (m$2.location) res += `\n` + generateCodeFrame(code, m$2.location); - return res + `\n`; -} -let globalTSConfckCache; -const tsconfckCacheMap = /* @__PURE__ */ new WeakMap(); -function getTSConfckCache(config$2) { - if (!config$2) return globalTSConfckCache ??= new TSConfckCache(); - let cache$1 = tsconfckCacheMap.get(config$2); - if (!cache$1) { - cache$1 = new TSConfckCache(); - tsconfckCacheMap.set(config$2, cache$1); - } - return cache$1; -} -async function loadTsconfigJsonForFile(filename, config$2) { - const { tsconfig, tsconfigFile } = await parse$14(filename, { - cache: getTSConfckCache(config$2), - ignoreNodeModules: true - }); - return { - tsconfigFile, - tsconfig - }; -} -async function reloadOnTsconfigChange(server, changedFile) { - if (changedFile.endsWith(".json")) { - const cache$1 = getTSConfckCache(server.config); - if (changedFile.endsWith("/tsconfig.json") || cache$1.hasParseResult(changedFile)) { - server.config.logger.info(`changed tsconfig file detected: ${changedFile} - Clearing cache and forcing full-reload to ensure TypeScript is compiled with updated config values.`, { - clear: server.config.clearScreen, - timestamp: true - }); - for (const environment of Object.values(server.environments)) environment.moduleGraph.invalidateAll(); - cache$1.clear(); - for (const environment of Object.values(server.environments)) environment.hot.send({ - type: "full-reload", - path: "*" - }); - } - } -} - -//#endregion -//#region ../../node_modules/.pnpm/artichokie@0.4.0/node_modules/artichokie/dist/index.js -const AsyncFunction = async function() {}.constructor; -const codeToDataUrl = (code) => `data:application/javascript,${encodeURIComponent(code + "\n//# sourceURL=[worker-eval(artichokie)]")}`; -const viteSsrDynamicImport = "__vite_ssr_dynamic_import__"; -var Worker$1 = class { - /** @internal */ - _isModule; - /** @internal */ - _code; - /** @internal */ - _parentFunctions; - /** @internal */ - _max; - /** @internal */ - _pool; - /** @internal */ - _idlePool; - /** @internal */ - _queue; - constructor(fn, options$1 = {}) { - this._isModule = options$1.type === "module"; - this._code = genWorkerCode(fn, this._isModule, 5 * 1e3, options$1.parentFunctions ?? {}); - this._parentFunctions = options$1.parentFunctions ?? {}; - const defaultMax = Math.max(1, (os.availableParallelism?.() ?? os.cpus().length) - 1); - this._max = options$1.max || defaultMax; - this._pool = []; - this._idlePool = []; - this._queue = []; - } - async run(...args) { - const worker = await this._getAvailableWorker(); - return new Promise((resolve$4, reject) => { - worker.currentResolve = resolve$4; - worker.currentReject = reject; - worker.postMessage({ args }); - }); - } - stop() { - this._pool.forEach((w$1) => w$1.unref()); - this._queue.forEach(([, reject]) => reject(/* @__PURE__ */ new Error("Main worker pool stopped before a worker was available."))); - this._pool = []; - this._idlePool = []; - this._queue = []; - } - /** @internal */ - _createWorker(parentFunctionSyncMessagePort, parentFunctionAsyncMessagePort, lockState) { - const options$1 = { - workerData: [ - parentFunctionSyncMessagePort, - parentFunctionAsyncMessagePort, - lockState - ], - transferList: [parentFunctionSyncMessagePort, parentFunctionAsyncMessagePort] - }; - if (this._isModule) return new Worker(new URL(codeToDataUrl(this._code)), options$1); - return new Worker(this._code, { - ...options$1, - eval: true - }); - } - /** @internal */ - async _getAvailableWorker() { - if (this._idlePool.length) return this._idlePool.shift(); - if (this._pool.length < this._max) { - const parentFunctionResponder = createParentFunctionResponder(this._parentFunctions); - const worker = this._createWorker(parentFunctionResponder.workerPorts.sync, parentFunctionResponder.workerPorts.async, parentFunctionResponder.lockState); - worker.on("message", async (args) => { - if ("result" in args) { - worker.currentResolve?.(args.result); - worker.currentResolve = null; - } else { - if (args.error instanceof ReferenceError) args.error.message += ". Maybe you forgot to pass the function to parentFunction?"; - worker.currentReject?.(args.error); - worker.currentReject = null; - } - this._assignDoneWorker(worker); - }); - worker.on("error", (err$2) => { - worker.currentReject?.(err$2); - worker.currentReject = null; - parentFunctionResponder.close(); - }); - worker.on("exit", (code) => { - const i$1 = this._pool.indexOf(worker); - if (i$1 > -1) this._pool.splice(i$1, 1); - if (code !== 0 && worker.currentReject) { - worker.currentReject(/* @__PURE__ */ new Error(`Worker stopped with non-0 exit code ${code}`)); - worker.currentReject = null; - parentFunctionResponder.close(); - } - }); - this._pool.push(worker); - return worker; - } - let resolve$4; - let reject; - const onWorkerAvailablePromise = new Promise((r$2, rj) => { - resolve$4 = r$2; - reject = rj; - }); - this._queue.push([resolve$4, reject]); - return onWorkerAvailablePromise; - } - /** @internal */ - _assignDoneWorker(worker) { - if (this._queue.length) { - const [resolve$4] = this._queue.shift(); - resolve$4(worker); - return; - } - this._idlePool.push(worker); - } -}; -function createParentFunctionResponder(parentFunctions) { - const lockState = new Int32Array(new SharedArrayBuffer(4)); - const unlock = () => { - Atomics.store(lockState, 0, 0); - Atomics.notify(lockState, 0); - }; - const parentFunctionSyncMessageChannel = new MessageChannel(); - const parentFunctionAsyncMessageChannel = new MessageChannel(); - const parentFunctionSyncMessagePort = parentFunctionSyncMessageChannel.port1; - const parentFunctionAsyncMessagePort = parentFunctionAsyncMessageChannel.port1; - const syncResponse = (data) => { - parentFunctionSyncMessagePort.postMessage(data); - unlock(); - }; - parentFunctionSyncMessagePort.on("message", async (args) => { - let syncResult; - try { - syncResult = parentFunctions[args.name](...args.args); - } catch (error$1) { - syncResponse({ - id: args.id, - error: error$1 - }); - return; - } - if (!(typeof syncResult === "object" && syncResult !== null && "then" in syncResult && typeof syncResult.then === "function")) { - syncResponse({ - id: args.id, - result: syncResult - }); - return; - } - syncResponse({ - id: args.id, - isAsync: true - }); - try { - const result = await syncResult; - parentFunctionAsyncMessagePort.postMessage({ - id: args.id, - result - }); - } catch (error$1) { - parentFunctionAsyncMessagePort.postMessage({ - id: args.id, - error: error$1 - }); - } - }); - parentFunctionSyncMessagePort.unref(); - return { - close: () => { - parentFunctionSyncMessagePort.close(); - parentFunctionAsyncMessagePort.close(); - }, - lockState, - workerPorts: { - sync: parentFunctionSyncMessageChannel.port2, - async: parentFunctionAsyncMessageChannel.port2 - } - }; -} -function genWorkerCode(fn, isModule, waitTimeout, parentFunctions) { - const createLock = (performance$2, lockState) => { - return { - lock: () => { - Atomics.store(lockState, 0, 1); - }, - waitUnlock: () => { - let utilizationBefore; - while (true) { - const status$1 = Atomics.wait(lockState, 0, 1, waitTimeout); - if (status$1 === "timed-out") { - if (utilizationBefore === void 0) { - utilizationBefore = performance$2.eventLoopUtilization(); - continue; - } - utilizationBefore = performance$2.eventLoopUtilization(utilizationBefore); - if (utilizationBefore.utilization > .9) continue; - throw new Error(status$1); - } - break; - } - } - }; - }; - const createParentFunctionRequester = (syncPort, asyncPort, receive, lock) => { - let id = 0; - const resolvers = /* @__PURE__ */ new Map(); - const call$1 = (key) => (...args) => { - id++; - lock.lock(); - syncPort.postMessage({ - id, - name: key, - args - }); - lock.waitUnlock(); - const resArgs = receive(syncPort).message; - if (resArgs.isAsync) { - let resolve$4, reject; - const promise = new Promise((res, rej) => { - resolve$4 = res; - reject = rej; - }); - resolvers.set(id, { - resolve: resolve$4, - reject - }); - return promise; - } - if ("error" in resArgs) throw resArgs.error; - else return resArgs.result; - }; - asyncPort.on("message", (args) => { - const id$1 = args.id; - if (resolvers.has(id$1)) { - const { resolve: resolve$4, reject } = resolvers.get(id$1); - resolvers.delete(id$1); - if ("result" in args) resolve$4(args.result); - else reject(args.error); - } - }); - return { call: call$1 }; - }; - const fnString = fn.toString().replaceAll(viteSsrDynamicImport, "import"); - return ` -${isModule ? "import { parentPort, receiveMessageOnPort, workerData } from 'worker_threads'" : "const { parentPort, receiveMessageOnPort, workerData } = require('worker_threads')"} -${isModule ? "import { performance } from 'node:perf_hooks'" : "const { performance } = require('node:perf_hooks')"} -const [parentFunctionSyncMessagePort, parentFunctionAsyncMessagePort, lockState] = workerData -const waitTimeout = ${waitTimeout} -const createLock = ${createLock.toString()} -const parentFunctionRequester = (${createParentFunctionRequester.toString()})( - parentFunctionSyncMessagePort, - parentFunctionAsyncMessagePort, - receiveMessageOnPort, - createLock(performance, lockState) -) - -const doWorkPromise = (async () => { - ${Object.keys(parentFunctions).map((key) => `const ${key} = parentFunctionRequester.call(${JSON.stringify(key)});`).join("\n")} - return await (${fnString})() -})() -let doWork - -parentPort.on('message', async (args) => { - doWork ||= await doWorkPromise - - try { - const res = await doWork(...args.args) - parentPort.postMessage({ result: res }) - } catch (e) { - parentPort.postMessage({ error: e }) - } -}) - `; -} -const importRe = /\bimport\s*\(/; -const internalImportName = "__artichokie_local_import__"; -var FakeWorker = class { - /** @internal */ - _fn; - constructor(fn, options$1 = {}) { - const declareRequire = options$1.type !== "module"; - const argsAndCode = genFakeWorkerArgsAndCode(fn, declareRequire, options$1.parentFunctions ?? {}); - const localImport = (specifier) => import(specifier); - const args = [ - ...declareRequire ? [createRequire(import.meta.url)] : [], - localImport, - options$1.parentFunctions - ]; - this._fn = new AsyncFunction(...argsAndCode)(...args); - } - async run(...args) { - try { - return await (await this._fn)(...args); - } catch (err$2) { - if (err$2 instanceof ReferenceError) err$2.message += ". Maybe you forgot to pass the function to parentFunction?"; - throw err$2; - } - } - stop() {} -}; -function genFakeWorkerArgsAndCode(fn, declareRequire, parentFunctions) { - const fnString = fn.toString().replace(importRe, `${internalImportName}(`).replaceAll(viteSsrDynamicImport, internalImportName); - return [ - ...declareRequire ? ["require"] : [], - internalImportName, - "parentFunctions", - ` -${Object.keys(parentFunctions).map((key) => `const ${key} = parentFunctions[${JSON.stringify(key)}];`).join("\n")} -return await (${fnString})() - ` - ]; -} -var WorkerWithFallback = class { - /** @internal */ - _disableReal; - /** @internal */ - _realWorker; - /** @internal */ - _fakeWorker; - /** @internal */ - _shouldUseFake; - constructor(fn, options$1) { - this._disableReal = options$1.max !== void 0 && options$1.max <= 0; - this._realWorker = new Worker$1(fn, options$1); - this._fakeWorker = new FakeWorker(fn, options$1); - this._shouldUseFake = options$1.shouldUseFake; - } - async run(...args) { - const useFake = this._disableReal || this._shouldUseFake(...args); - return this[useFake ? "_fakeWorker" : "_realWorker"].run(...args); - } - stop() { - this._realWorker.stop(); - this._fakeWorker.stop(); - } -}; - -//#endregion -//#region src/node/plugins/terser.ts -let terserPath; -const loadTerserPath = (root) => { - if (terserPath) return terserPath; - try { - terserPath = requireResolveFromRootWithFallback(root, "terser"); - } catch (e$1) { - if (e$1.code === "MODULE_NOT_FOUND") throw new Error("terser not found. Since Vite v3, terser has become an optional dependency. You need to install it."); - else { - const message = /* @__PURE__ */ new Error(`terser failed to load:\n${e$1.message}`); - message.stack = e$1.stack + "\n" + message.stack; - throw message; - } - } - return terserPath; -}; -function terserPlugin(config$2) { - const { maxWorkers,...terserOptions } = config$2.build.terserOptions; - const makeWorker = () => new WorkerWithFallback(() => async (terserPath$1, code, options$1) => { - const terser = (await import(terserPath$1)).default; - try { - return await terser.minify(code, options$1); - } catch (e$1) { - throw { - stack: e$1.stack, - ...e$1 - }; - } - }, { - shouldUseFake(_terserPath, _code, options$1) { - return !!(typeof options$1.mangle === "object" && (options$1.mangle.nth_identifier?.get || typeof options$1.mangle.properties === "object" && options$1.mangle.properties.nth_identifier?.get) || typeof options$1.format?.comments === "function" || typeof options$1.output?.comments === "function"); - }, - max: maxWorkers - }); - let worker; - return { - name: "vite:terser", - applyToEnvironment(environment) { - return !!environment.config.build.minify; - }, - async renderChunk(code, chunk, outputOptions) { - if (config$2.build.minify !== "terser" && !outputOptions.__vite_force_terser__) return null; - if (config$2.build.lib && outputOptions.format === "es") return null; - worker ||= makeWorker(); - const terserPath$1 = pathToFileURL(loadTerserPath(config$2.root)).href; - try { - const res = await worker.run(terserPath$1, code, { - safari10: true, - ...terserOptions, - sourceMap: !!outputOptions.sourcemap, - module: outputOptions.format.startsWith("es"), - toplevel: outputOptions.format === "cjs" - }); - return { - code: res.code, - map: res.map - }; - } catch (e$1) { - if (e$1.line !== void 0 && e$1.col !== void 0) e$1.loc = { - file: chunk.fileName, - line: e$1.line, - column: e$1.col - }; - if (e$1.pos !== void 0) e$1.frame = generateCodeFrame(code, e$1.pos); - throw e$1; - } - }, - closeBundle() { - worker?.stop(); - } - }; -} - -//#endregion -//#region ../../node_modules/.pnpm/mrmime@2.0.1/node_modules/mrmime/index.mjs -const mimes = { - "3g2": "video/3gpp2", - "3gp": "video/3gpp", - "3gpp": "video/3gpp", - "3mf": "model/3mf", - "aac": "audio/aac", - "ac": "application/pkix-attr-cert", - "adp": "audio/adpcm", - "adts": "audio/aac", - "ai": "application/postscript", - "aml": "application/automationml-aml+xml", - "amlx": "application/automationml-amlx+zip", - "amr": "audio/amr", - "apng": "image/apng", - "appcache": "text/cache-manifest", - "appinstaller": "application/appinstaller", - "appx": "application/appx", - "appxbundle": "application/appxbundle", - "asc": "application/pgp-keys", - "atom": "application/atom+xml", - "atomcat": "application/atomcat+xml", - "atomdeleted": "application/atomdeleted+xml", - "atomsvc": "application/atomsvc+xml", - "au": "audio/basic", - "avci": "image/avci", - "avcs": "image/avcs", - "avif": "image/avif", - "aw": "application/applixware", - "bdoc": "application/bdoc", - "bin": "application/octet-stream", - "bmp": "image/bmp", - "bpk": "application/octet-stream", - "btf": "image/prs.btif", - "btif": "image/prs.btif", - "buffer": "application/octet-stream", - "ccxml": "application/ccxml+xml", - "cdfx": "application/cdfx+xml", - "cdmia": "application/cdmi-capability", - "cdmic": "application/cdmi-container", - "cdmid": "application/cdmi-domain", - "cdmio": "application/cdmi-object", - "cdmiq": "application/cdmi-queue", - "cer": "application/pkix-cert", - "cgm": "image/cgm", - "cjs": "application/node", - "class": "application/java-vm", - "coffee": "text/coffeescript", - "conf": "text/plain", - "cpl": "application/cpl+xml", - "cpt": "application/mac-compactpro", - "crl": "application/pkix-crl", - "css": "text/css", - "csv": "text/csv", - "cu": "application/cu-seeme", - "cwl": "application/cwl", - "cww": "application/prs.cww", - "davmount": "application/davmount+xml", - "dbk": "application/docbook+xml", - "deb": "application/octet-stream", - "def": "text/plain", - "deploy": "application/octet-stream", - "dib": "image/bmp", - "disposition-notification": "message/disposition-notification", - "dist": "application/octet-stream", - "distz": "application/octet-stream", - "dll": "application/octet-stream", - "dmg": "application/octet-stream", - "dms": "application/octet-stream", - "doc": "application/msword", - "dot": "application/msword", - "dpx": "image/dpx", - "drle": "image/dicom-rle", - "dsc": "text/prs.lines.tag", - "dssc": "application/dssc+der", - "dtd": "application/xml-dtd", - "dump": "application/octet-stream", - "dwd": "application/atsc-dwd+xml", - "ear": "application/java-archive", - "ecma": "application/ecmascript", - "elc": "application/octet-stream", - "emf": "image/emf", - "eml": "message/rfc822", - "emma": "application/emma+xml", - "emotionml": "application/emotionml+xml", - "eps": "application/postscript", - "epub": "application/epub+zip", - "exe": "application/octet-stream", - "exi": "application/exi", - "exp": "application/express", - "exr": "image/aces", - "ez": "application/andrew-inset", - "fdf": "application/fdf", - "fdt": "application/fdt+xml", - "fits": "image/fits", - "g3": "image/g3fax", - "gbr": "application/rpki-ghostbusters", - "geojson": "application/geo+json", - "gif": "image/gif", - "glb": "model/gltf-binary", - "gltf": "model/gltf+json", - "gml": "application/gml+xml", - "gpx": "application/gpx+xml", - "gram": "application/srgs", - "grxml": "application/srgs+xml", - "gxf": "application/gxf", - "gz": "application/gzip", - "h261": "video/h261", - "h263": "video/h263", - "h264": "video/h264", - "heic": "image/heic", - "heics": "image/heic-sequence", - "heif": "image/heif", - "heifs": "image/heif-sequence", - "hej2": "image/hej2k", - "held": "application/atsc-held+xml", - "hjson": "application/hjson", - "hlp": "application/winhlp", - "hqx": "application/mac-binhex40", - "hsj2": "image/hsj2", - "htm": "text/html", - "html": "text/html", - "ics": "text/calendar", - "ief": "image/ief", - "ifb": "text/calendar", - "iges": "model/iges", - "igs": "model/iges", - "img": "application/octet-stream", - "in": "text/plain", - "ini": "text/plain", - "ink": "application/inkml+xml", - "inkml": "application/inkml+xml", - "ipfix": "application/ipfix", - "iso": "application/octet-stream", - "its": "application/its+xml", - "jade": "text/jade", - "jar": "application/java-archive", - "jhc": "image/jphc", - "jls": "image/jls", - "jp2": "image/jp2", - "jpe": "image/jpeg", - "jpeg": "image/jpeg", - "jpf": "image/jpx", - "jpg": "image/jpeg", - "jpg2": "image/jp2", - "jpgm": "image/jpm", - "jpgv": "video/jpeg", - "jph": "image/jph", - "jpm": "image/jpm", - "jpx": "image/jpx", - "js": "text/javascript", - "json": "application/json", - "json5": "application/json5", - "jsonld": "application/ld+json", - "jsonml": "application/jsonml+json", - "jsx": "text/jsx", - "jt": "model/jt", - "jxl": "image/jxl", - "jxr": "image/jxr", - "jxra": "image/jxra", - "jxrs": "image/jxrs", - "jxs": "image/jxs", - "jxsc": "image/jxsc", - "jxsi": "image/jxsi", - "jxss": "image/jxss", - "kar": "audio/midi", - "ktx": "image/ktx", - "ktx2": "image/ktx2", - "less": "text/less", - "lgr": "application/lgr+xml", - "list": "text/plain", - "litcoffee": "text/coffeescript", - "log": "text/plain", - "lostxml": "application/lost+xml", - "lrf": "application/octet-stream", - "m1v": "video/mpeg", - "m21": "application/mp21", - "m2a": "audio/mpeg", - "m2t": "video/mp2t", - "m2ts": "video/mp2t", - "m2v": "video/mpeg", - "m3a": "audio/mpeg", - "m4a": "audio/mp4", - "m4p": "application/mp4", - "m4s": "video/iso.segment", - "ma": "application/mathematica", - "mads": "application/mads+xml", - "maei": "application/mmt-aei+xml", - "man": "text/troff", - "manifest": "text/cache-manifest", - "map": "application/json", - "mar": "application/octet-stream", - "markdown": "text/markdown", - "mathml": "application/mathml+xml", - "mb": "application/mathematica", - "mbox": "application/mbox", - "md": "text/markdown", - "mdx": "text/mdx", - "me": "text/troff", - "mesh": "model/mesh", - "meta4": "application/metalink4+xml", - "metalink": "application/metalink+xml", - "mets": "application/mets+xml", - "mft": "application/rpki-manifest", - "mid": "audio/midi", - "midi": "audio/midi", - "mime": "message/rfc822", - "mj2": "video/mj2", - "mjp2": "video/mj2", - "mjs": "text/javascript", - "mml": "text/mathml", - "mods": "application/mods+xml", - "mov": "video/quicktime", - "mp2": "audio/mpeg", - "mp21": "application/mp21", - "mp2a": "audio/mpeg", - "mp3": "audio/mpeg", - "mp4": "video/mp4", - "mp4a": "audio/mp4", - "mp4s": "application/mp4", - "mp4v": "video/mp4", - "mpd": "application/dash+xml", - "mpe": "video/mpeg", - "mpeg": "video/mpeg", - "mpf": "application/media-policy-dataset+xml", - "mpg": "video/mpeg", - "mpg4": "video/mp4", - "mpga": "audio/mpeg", - "mpp": "application/dash-patch+xml", - "mrc": "application/marc", - "mrcx": "application/marcxml+xml", - "ms": "text/troff", - "mscml": "application/mediaservercontrol+xml", - "msh": "model/mesh", - "msi": "application/octet-stream", - "msix": "application/msix", - "msixbundle": "application/msixbundle", - "msm": "application/octet-stream", - "msp": "application/octet-stream", - "mtl": "model/mtl", - "mts": "video/mp2t", - "musd": "application/mmt-usd+xml", - "mxf": "application/mxf", - "mxmf": "audio/mobile-xmf", - "mxml": "application/xv+xml", - "n3": "text/n3", - "nb": "application/mathematica", - "nq": "application/n-quads", - "nt": "application/n-triples", - "obj": "model/obj", - "oda": "application/oda", - "oga": "audio/ogg", - "ogg": "audio/ogg", - "ogv": "video/ogg", - "ogx": "application/ogg", - "omdoc": "application/omdoc+xml", - "onepkg": "application/onenote", - "onetmp": "application/onenote", - "onetoc": "application/onenote", - "onetoc2": "application/onenote", - "opf": "application/oebps-package+xml", - "opus": "audio/ogg", - "otf": "font/otf", - "owl": "application/rdf+xml", - "oxps": "application/oxps", - "p10": "application/pkcs10", - "p7c": "application/pkcs7-mime", - "p7m": "application/pkcs7-mime", - "p7s": "application/pkcs7-signature", - "p8": "application/pkcs8", - "pdf": "application/pdf", - "pfr": "application/font-tdpfr", - "pgp": "application/pgp-encrypted", - "pkg": "application/octet-stream", - "pki": "application/pkixcmp", - "pkipath": "application/pkix-pkipath", - "pls": "application/pls+xml", - "png": "image/png", - "prc": "model/prc", - "prf": "application/pics-rules", - "provx": "application/provenance+xml", - "ps": "application/postscript", - "pskcxml": "application/pskc+xml", - "pti": "image/prs.pti", - "qt": "video/quicktime", - "raml": "application/raml+yaml", - "rapd": "application/route-apd+xml", - "rdf": "application/rdf+xml", - "relo": "application/p2p-overlay+xml", - "rif": "application/reginfo+xml", - "rl": "application/resource-lists+xml", - "rld": "application/resource-lists-diff+xml", - "rmi": "audio/midi", - "rnc": "application/relax-ng-compact-syntax", - "rng": "application/xml", - "roa": "application/rpki-roa", - "roff": "text/troff", - "rq": "application/sparql-query", - "rs": "application/rls-services+xml", - "rsat": "application/atsc-rsat+xml", - "rsd": "application/rsd+xml", - "rsheet": "application/urc-ressheet+xml", - "rss": "application/rss+xml", - "rtf": "text/rtf", - "rtx": "text/richtext", - "rusd": "application/route-usd+xml", - "s3m": "audio/s3m", - "sbml": "application/sbml+xml", - "scq": "application/scvp-cv-request", - "scs": "application/scvp-cv-response", - "sdp": "application/sdp", - "senmlx": "application/senml+xml", - "sensmlx": "application/sensml+xml", - "ser": "application/java-serialized-object", - "setpay": "application/set-payment-initiation", - "setreg": "application/set-registration-initiation", - "sgi": "image/sgi", - "sgm": "text/sgml", - "sgml": "text/sgml", - "shex": "text/shex", - "shf": "application/shf+xml", - "shtml": "text/html", - "sieve": "application/sieve", - "sig": "application/pgp-signature", - "sil": "audio/silk", - "silo": "model/mesh", - "siv": "application/sieve", - "slim": "text/slim", - "slm": "text/slim", - "sls": "application/route-s-tsid+xml", - "smi": "application/smil+xml", - "smil": "application/smil+xml", - "snd": "audio/basic", - "so": "application/octet-stream", - "spdx": "text/spdx", - "spp": "application/scvp-vp-response", - "spq": "application/scvp-vp-request", - "spx": "audio/ogg", - "sql": "application/sql", - "sru": "application/sru+xml", - "srx": "application/sparql-results+xml", - "ssdl": "application/ssdl+xml", - "ssml": "application/ssml+xml", - "stk": "application/hyperstudio", - "stl": "model/stl", - "stpx": "model/step+xml", - "stpxz": "model/step-xml+zip", - "stpz": "model/step+zip", - "styl": "text/stylus", - "stylus": "text/stylus", - "svg": "image/svg+xml", - "svgz": "image/svg+xml", - "swidtag": "application/swid+xml", - "t": "text/troff", - "t38": "image/t38", - "td": "application/urc-targetdesc+xml", - "tei": "application/tei+xml", - "teicorpus": "application/tei+xml", - "text": "text/plain", - "tfi": "application/thraud+xml", - "tfx": "image/tiff-fx", - "tif": "image/tiff", - "tiff": "image/tiff", - "toml": "application/toml", - "tr": "text/troff", - "trig": "application/trig", - "ts": "video/mp2t", - "tsd": "application/timestamped-data", - "tsv": "text/tab-separated-values", - "ttc": "font/collection", - "ttf": "font/ttf", - "ttl": "text/turtle", - "ttml": "application/ttml+xml", - "txt": "text/plain", - "u3d": "model/u3d", - "u8dsn": "message/global-delivery-status", - "u8hdr": "message/global-headers", - "u8mdn": "message/global-disposition-notification", - "u8msg": "message/global", - "ubj": "application/ubjson", - "uri": "text/uri-list", - "uris": "text/uri-list", - "urls": "text/uri-list", - "vcard": "text/vcard", - "vrml": "model/vrml", - "vtt": "text/vtt", - "vxml": "application/voicexml+xml", - "war": "application/java-archive", - "wasm": "application/wasm", - "wav": "audio/wav", - "weba": "audio/webm", - "webm": "video/webm", - "webmanifest": "application/manifest+json", - "webp": "image/webp", - "wgsl": "text/wgsl", - "wgt": "application/widget", - "wif": "application/watcherinfo+xml", - "wmf": "image/wmf", - "woff": "font/woff", - "woff2": "font/woff2", - "wrl": "model/vrml", - "wsdl": "application/wsdl+xml", - "wspolicy": "application/wspolicy+xml", - "x3d": "model/x3d+xml", - "x3db": "model/x3d+fastinfoset", - "x3dbz": "model/x3d+binary", - "x3dv": "model/x3d-vrml", - "x3dvz": "model/x3d+vrml", - "x3dz": "model/x3d+xml", - "xaml": "application/xaml+xml", - "xav": "application/xcap-att+xml", - "xca": "application/xcap-caps+xml", - "xcs": "application/calendar+xml", - "xdf": "application/xcap-diff+xml", - "xdssc": "application/dssc+xml", - "xel": "application/xcap-el+xml", - "xenc": "application/xenc+xml", - "xer": "application/patch-ops-error+xml", - "xfdf": "application/xfdf", - "xht": "application/xhtml+xml", - "xhtml": "application/xhtml+xml", - "xhvml": "application/xv+xml", - "xlf": "application/xliff+xml", - "xm": "audio/xm", - "xml": "text/xml", - "xns": "application/xcap-ns+xml", - "xop": "application/xop+xml", - "xpl": "application/xproc+xml", - "xsd": "application/xml", - "xsf": "application/prs.xsf+xml", - "xsl": "application/xml", - "xslt": "application/xml", - "xspf": "application/xspf+xml", - "xvm": "application/xv+xml", - "xvml": "application/xv+xml", - "yaml": "text/yaml", - "yang": "application/yang", - "yin": "application/yin+xml", - "yml": "text/yaml", - "zip": "application/zip" -}; -function lookup(extn) { - let tmp = ("" + extn).trim().toLowerCase(); - let idx = tmp.lastIndexOf("."); - return mimes[!~idx ? tmp : tmp.substring(++idx)]; -} - -//#endregion -//#region src/node/publicDir.ts -const publicFilesMap = /* @__PURE__ */ new WeakMap(); -async function initPublicFiles(config$2) { - let fileNames; - try { - fileNames = await recursiveReaddir(config$2.publicDir); - } catch (e$1) { - if (e$1.code === ERR_SYMLINK_IN_RECURSIVE_READDIR) return; - throw e$1; - } - const publicFiles = new Set(fileNames.map((fileName) => fileName.slice(config$2.publicDir.length))); - publicFilesMap.set(config$2, publicFiles); - return publicFiles; -} -function getPublicFiles(config$2) { - return publicFilesMap.get(config$2); -} -function checkPublicFile(url$3, config$2) { - const { publicDir } = config$2; - if (!publicDir || url$3[0] !== "/") return; - const fileName = cleanUrl(url$3); - const publicFiles = getPublicFiles(config$2); - if (publicFiles) return publicFiles.has(fileName) ? normalizePath(path.join(publicDir, fileName)) : void 0; - const publicFile = normalizePath(path.join(publicDir, fileName)); - if (!publicFile.startsWith(withTrailingSlash(publicDir))) return; - return tryStatSync(publicFile)?.isFile() ? publicFile : void 0; -} - -//#endregion -//#region src/node/plugins/asset.ts -var import_picocolors$30 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -const assetUrlRE = /__VITE_ASSET__([\w$]+)__(?:\$_(.*?)__)?/g; -const jsSourceMapRE = /\.[cm]?js\.map$/; -const noInlineRE = /[?&]no-inline\b/; -const inlineRE$3 = /[?&]inline\b/; -const assetCache = /* @__PURE__ */ new WeakMap(); -/** a set of referenceId for entry CSS assets for each environment */ -const cssEntriesMap = /* @__PURE__ */ new WeakMap(); -function registerCustomMime() { - mimes.ico = "image/x-icon"; - mimes.cur = "image/x-icon"; - mimes.flac = "audio/flac"; - mimes.eot = "application/vnd.ms-fontobject"; -} -function renderAssetUrlInJS(pluginContext, chunk, opts, code) { - const { environment } = pluginContext; - const toRelativeRuntime = createToImportMetaURLBasedRelativeRuntime(opts.format, environment.config.isWorker); - let match; - let s$2; - assetUrlRE.lastIndex = 0; - while (match = assetUrlRE.exec(code)) { - s$2 ||= new MagicString(code); - const [full, referenceId, postfix = ""] = match; - const file = pluginContext.getFileName(referenceId); - chunk.viteMetadata.importedAssets.add(cleanUrl(file)); - const filename = file + postfix; - const replacement = toOutputFilePathInJS(environment, filename, "asset", chunk.fileName, "js", toRelativeRuntime); - const replacementString = typeof replacement === "string" ? JSON.stringify(encodeURIPath(replacement)).slice(1, -1) : `"+${replacement.runtime}+"`; - s$2.update(match.index, match.index + full.length, replacementString); - } - const publicAssetUrlMap = publicAssetUrlCache.get(environment.getTopLevelConfig()); - publicAssetUrlRE.lastIndex = 0; - while (match = publicAssetUrlRE.exec(code)) { - s$2 ||= new MagicString(code); - const [full, hash$1] = match; - const publicUrl = publicAssetUrlMap.get(hash$1).slice(1); - const replacement = toOutputFilePathInJS(environment, publicUrl, "public", chunk.fileName, "js", toRelativeRuntime); - const replacementString = typeof replacement === "string" ? JSON.stringify(encodeURIPath(replacement)).slice(1, -1) : `"+${replacement.runtime}+"`; - s$2.update(match.index, match.index + full.length, replacementString); - } - return s$2; -} -/** -* Also supports loading plain strings with import text from './foo.txt?raw' -*/ -function assetPlugin(config$2) { - registerCustomMime(); - return { - name: "vite:asset", - perEnvironmentStartEndDuringDev: true, - buildStart() { - assetCache.set(this.environment, /* @__PURE__ */ new Map()); - cssEntriesMap.set(this.environment, /* @__PURE__ */ new Set()); - }, - resolveId: { handler(id) { - if (!config$2.assetsInclude(cleanUrl(id)) && !urlRE.test(id)) return; - const publicFile = checkPublicFile(id, config$2); - if (publicFile) return id; - } }, - load: { - filter: { id: { exclude: /^\0/ } }, - async handler(id) { - if (rawRE.test(id)) { - const file = checkPublicFile(id, config$2) || cleanUrl(id); - this.addWatchFile(file); - return `export default ${JSON.stringify(await fsp.readFile(file, "utf-8"))}`; - } - if (!urlRE.test(id) && !config$2.assetsInclude(cleanUrl(id))) return; - id = removeUrlQuery(id); - let url$3 = await fileToUrl$1(this, id); - if (!url$3.startsWith("data:") && this.environment.mode === "dev") { - const mod = this.environment.moduleGraph.getModuleById(id); - if (mod && mod.lastHMRTimestamp > 0) url$3 = injectQuery(url$3, `t=${mod.lastHMRTimestamp}`); - } - return { - code: `export default ${JSON.stringify(encodeURIPath(url$3))}`, - moduleSideEffects: config$2.command === "build" && this.getModuleInfo(id)?.isEntry ? "no-treeshake" : false, - meta: config$2.command === "build" ? { "vite:asset": true } : void 0 - }; - } - }, - renderChunk(code, chunk, opts) { - const s$2 = renderAssetUrlInJS(this, chunk, opts, code); - if (s$2) return { - code: s$2.toString(), - map: this.environment.config.build.sourcemap ? s$2.generateMap({ hires: "boundary" }) : null - }; - else return null; - }, - generateBundle(_, bundle) { - let importedFiles; - for (const file in bundle) { - const chunk = bundle[file]; - if (chunk.type === "chunk" && chunk.isEntry && chunk.moduleIds.length === 1 && config$2.assetsInclude(chunk.moduleIds[0]) && this.getModuleInfo(chunk.moduleIds[0])?.meta["vite:asset"]) { - if (!importedFiles) { - importedFiles = /* @__PURE__ */ new Set(); - for (const file$1 in bundle) { - const chunk$1 = bundle[file$1]; - if (chunk$1.type === "chunk") { - for (const importedFile of chunk$1.imports) importedFiles.add(importedFile); - for (const importedFile of chunk$1.dynamicImports) importedFiles.add(importedFile); - } - } - } - if (!importedFiles.has(file)) delete bundle[file]; - } - } - if (config$2.command === "build" && !this.environment.config.build.emitAssets) { - for (const file in bundle) if (bundle[file].type === "asset" && !file.endsWith("ssr-manifest.json") && !jsSourceMapRE.test(file)) delete bundle[file]; - } - } - }; -} -async function fileToUrl$1(pluginContext, id) { - const { environment } = pluginContext; - if (environment.config.command === "serve") return fileToDevUrl(environment, id); - else return fileToBuiltUrl(pluginContext, id); -} -async function fileToDevUrl(environment, id, skipBase = false) { - const config$2 = environment.getTopLevelConfig(); - const publicFile = checkPublicFile(id, config$2); - if (inlineRE$3.test(id)) { - const file = publicFile || cleanUrl(id); - const content = await fsp.readFile(file); - return assetToDataURL(environment, file, content); - } - const cleanedId = cleanUrl(id); - if (cleanedId.endsWith(".svg")) { - const file = publicFile || cleanedId; - const content = await fsp.readFile(file); - if (shouldInline(environment, file, id, content, void 0, void 0)) return assetToDataURL(environment, file, content); - } - let rtn; - if (publicFile) rtn = id; - else if (id.startsWith(withTrailingSlash(config$2.root))) rtn = "/" + path.posix.relative(config$2.root, id); - else rtn = path.posix.join(FS_PREFIX, id); - if (skipBase) return rtn; - const base = joinUrlSegments(config$2.server.origin ?? "", config$2.decodedBase); - return joinUrlSegments(base, removeLeadingSlash(rtn)); -} -function getPublicAssetFilename(hash$1, config$2) { - return publicAssetUrlCache.get(config$2)?.get(hash$1); -} -const publicAssetUrlCache = /* @__PURE__ */ new WeakMap(); -const publicAssetUrlRE = /__VITE_PUBLIC_ASSET__([a-z\d]{8})__/g; -function publicFileToBuiltUrl(url$3, config$2) { - if (config$2.command !== "build") return joinUrlSegments(config$2.decodedBase, url$3); - const hash$1 = getHash(url$3); - let cache$1 = publicAssetUrlCache.get(config$2); - if (!cache$1) { - cache$1 = /* @__PURE__ */ new Map(); - publicAssetUrlCache.set(config$2, cache$1); - } - if (!cache$1.get(hash$1)) cache$1.set(hash$1, url$3); - return `__VITE_PUBLIC_ASSET__${hash$1}__`; -} -const GIT_LFS_PREFIX = Buffer$1.from("version https://git-lfs.github.com"); -function isGitLfsPlaceholder(content) { - if (content.length < GIT_LFS_PREFIX.length) return false; - return GIT_LFS_PREFIX.compare(content, 0, GIT_LFS_PREFIX.length) === 0; -} -/** -* Register an asset to be emitted as part of the bundle (if necessary) -* and returns the resolved public URL -*/ -async function fileToBuiltUrl(pluginContext, id, skipPublicCheck = false, forceInline) { - const environment = pluginContext.environment; - const topLevelConfig = environment.getTopLevelConfig(); - if (!skipPublicCheck) { - const publicFile = checkPublicFile(id, topLevelConfig); - if (publicFile) if (inlineRE$3.test(id)) id = publicFile; - else return publicFileToBuiltUrl(id, topLevelConfig); - } - const cache$1 = assetCache.get(environment); - const cached = cache$1.get(id); - if (cached) return cached; - let { file, postfix } = splitFileAndPostfix(id); - const content = await fsp.readFile(file); - let url$3; - if (shouldInline(environment, file, id, content, pluginContext, forceInline)) url$3 = assetToDataURL(environment, file, content); - else { - const originalFileName = normalizePath(path.relative(environment.config.root, file)); - const referenceId = pluginContext.emitFile({ - type: "asset", - name: path.basename(file), - originalFileName, - source: content - }); - if (environment.config.command === "build" && noInlineRE.test(postfix)) postfix = postfix.replace(noInlineRE, "").replace(/^&/, "?"); - url$3 = `__VITE_ASSET__${referenceId}__${postfix ? `$_${postfix}__` : ``}`; - } - cache$1.set(id, url$3); - return url$3; -} -async function urlToBuiltUrl(pluginContext, url$3, importer, forceInline) { - const topLevelConfig = pluginContext.environment.getTopLevelConfig(); - if (checkPublicFile(url$3, topLevelConfig)) return publicFileToBuiltUrl(url$3, topLevelConfig); - const file = url$3[0] === "/" ? path.join(topLevelConfig.root, url$3) : path.join(path.dirname(importer), url$3); - return fileToBuiltUrl(pluginContext, file, true, forceInline); -} -function shouldInline(environment, file, id, content, buildPluginContext, forceInline) { - if (noInlineRE.test(id)) return false; - if (inlineRE$3.test(id)) return true; - if (buildPluginContext) { - if (environment.config.build.lib) return true; - if (buildPluginContext.getModuleInfo(id)?.isEntry) return false; - } - if (forceInline !== void 0) return forceInline; - if (file.endsWith(".html")) return false; - if (file.endsWith(".svg") && id.includes("#")) return false; - let limit; - const { assetsInlineLimit } = environment.config.build; - if (typeof assetsInlineLimit === "function") { - const userShouldInline = assetsInlineLimit(file, content); - if (userShouldInline != null) return userShouldInline; - limit = DEFAULT_ASSETS_INLINE_LIMIT; - } else limit = Number(assetsInlineLimit); - return content.length < limit && !isGitLfsPlaceholder(content); -} -function assetToDataURL(environment, file, content) { - if (environment.config.build.lib && isGitLfsPlaceholder(content)) environment.logger.warn(import_picocolors$30.default.yellow(`Inlined file ${file} was not downloaded via Git LFS`)); - if (file.endsWith(".svg")) return svgToDataURL(content); - else { - const mimeType = lookup(file) ?? "application/octet-stream"; - return `data:${mimeType};base64,${content.toString("base64")}`; - } -} -const nestedQuotesRE = /"[^"']*'[^"]*"|'[^'"]*"[^']*'/; -function svgToDataURL(content) { - const stringContent = content.toString(); - if (stringContent.includes("\s+<").replaceAll("\"", "'").replaceAll("%", "%25").replaceAll("#", "%23").replaceAll("<", "%3c").replaceAll(">", "%3e").replaceAll(/\s+/g, "%20"); -} - -//#endregion -//#region src/node/plugins/manifest.ts -const endsWithJSRE = /\.[cm]?js$/; -function manifestPlugin() { - const getState = perEnvironmentState(() => { - return { - manifest: {}, - outputCount: 0, - reset() { - this.manifest = {}; - this.outputCount = 0; - } - }; - }); - return { - name: "vite:manifest", - perEnvironmentStartEndDuringDev: true, - applyToEnvironment(environment) { - return !!environment.config.build.manifest; - }, - buildStart() { - getState(this).reset(); - }, - generateBundle({ format: format$3 }, bundle) { - const state = getState(this); - const { manifest } = state; - const { root } = this.environment.config; - const buildOptions = this.environment.config.build; - function getChunkName(chunk) { - return getChunkOriginalFileName(chunk, root, format$3) ?? `_${path.basename(chunk.fileName)}`; - } - function getInternalImports(imports) { - const filteredImports = []; - for (const file of imports) { - if (bundle[file] === void 0) continue; - filteredImports.push(getChunkName(bundle[file])); - } - return filteredImports; - } - function createChunk(chunk) { - const manifestChunk = { - file: chunk.fileName, - name: chunk.name - }; - if (chunk.facadeModuleId) manifestChunk.src = getChunkName(chunk); - if (chunk.isEntry) manifestChunk.isEntry = true; - if (chunk.isDynamicEntry) manifestChunk.isDynamicEntry = true; - if (chunk.imports.length) { - const internalImports = getInternalImports(chunk.imports); - if (internalImports.length > 0) manifestChunk.imports = internalImports; - } - if (chunk.dynamicImports.length) { - const internalImports = getInternalImports(chunk.dynamicImports); - if (internalImports.length > 0) manifestChunk.dynamicImports = internalImports; - } - if (chunk.viteMetadata?.importedCss.size) manifestChunk.css = [...chunk.viteMetadata.importedCss]; - if (chunk.viteMetadata?.importedAssets.size) manifestChunk.assets = [...chunk.viteMetadata.importedAssets]; - return manifestChunk; - } - function createAsset(asset, src, isEntry) { - const manifestChunk = { - file: asset.fileName, - src - }; - if (isEntry) { - manifestChunk.isEntry = true; - manifestChunk.names = asset.names; - } - return manifestChunk; - } - const entryCssReferenceIds = cssEntriesMap.get(this.environment); - const entryCssAssetFileNames = /* @__PURE__ */ new Set(); - for (const id of entryCssReferenceIds) try { - const fileName = this.getFileName(id); - entryCssAssetFileNames.add(fileName); - } catch {} - for (const file in bundle) { - const chunk = bundle[file]; - if (chunk.type === "chunk") manifest[getChunkName(chunk)] = createChunk(chunk); - else if (chunk.type === "asset" && chunk.names.length > 0) { - const src = chunk.originalFileNames.length > 0 ? chunk.originalFileNames[0] : `_${path.basename(chunk.fileName)}`; - const isEntry = entryCssAssetFileNames.has(chunk.fileName); - const asset = createAsset(chunk, src, isEntry); - const file$1 = manifest[src]?.file; - if (!(file$1 && endsWithJSRE.test(file$1))) manifest[src] = asset; - for (const originalFileName of chunk.originalFileNames.slice(1)) { - const file$2 = manifest[originalFileName]?.file; - if (!(file$2 && endsWithJSRE.test(file$2))) manifest[originalFileName] = asset; - } - } - } - state.outputCount++; - const output = buildOptions.rollupOptions.output; - const outputLength = Array.isArray(output) ? output.length : 1; - if (state.outputCount >= outputLength) this.emitFile({ - fileName: typeof buildOptions.manifest === "string" ? buildOptions.manifest : ".vite/manifest.json", - type: "asset", - source: JSON.stringify(sortObjectKeys(manifest), void 0, 2) - }); - } - }; -} -function getChunkOriginalFileName(chunk, root, format$3) { - if (chunk.facadeModuleId) { - let name = normalizePath(path.relative(root, chunk.facadeModuleId)); - if (format$3 === "system" && !chunk.name.includes("-legacy")) { - const ext = path.extname(name); - const endPos = ext.length !== 0 ? -ext.length : void 0; - name = `${name.slice(0, endPos)}-legacy${ext}`; - } - return name.replace(/\0/g, ""); - } -} - -//#endregion -//#region src/node/plugins/dataUri.ts -const dataUriRE = /^([^/]+\/[^;,]+)(;base64)?,([\s\S]*)$/; -const base64RE = /base64/i; -const dataUriPrefix = `\0/@data-uri/`; -/** -* Build only, since importing from a data URI works natively. -*/ -function dataURIPlugin() { - let resolved; - return { - name: "vite:data-uri", - buildStart() { - resolved = /* @__PURE__ */ new Map(); - }, - resolveId(id) { - if (!id.trimStart().startsWith("data:")) return; - const uri = new URL$1(id); - if (uri.protocol !== "data:") return; - const match = dataUriRE.exec(uri.pathname); - if (!match) return; - const [, mime, format$3, data] = match; - if (mime !== "text/javascript") throw new Error(`data URI with non-JavaScript mime type is not supported. If you're using legacy JavaScript MIME types (such as 'application/javascript'), please use 'text/javascript' instead.`); - const base64 = format$3 && base64RE.test(format$3.substring(1)); - const content = base64 ? Buffer.from(data, "base64").toString("utf-8") : data; - resolved.set(id, content); - return dataUriPrefix + id; - }, - load(id) { - if (id.startsWith(dataUriPrefix)) return resolved.get(id.slice(dataUriPrefix.length)); - } - }; -} - -//#endregion -//#region ../../node_modules/.pnpm/es-module-lexer@1.7.0/node_modules/es-module-lexer/dist/lexer.js -var ImportType; -(function(A$1) { - A$1[A$1.Static = 1] = "Static", A$1[A$1.Dynamic = 2] = "Dynamic", A$1[A$1.ImportMeta = 3] = "ImportMeta", A$1[A$1.StaticSourcePhase = 4] = "StaticSourcePhase", A$1[A$1.DynamicSourcePhase = 5] = "DynamicSourcePhase", A$1[A$1.StaticDeferPhase = 6] = "StaticDeferPhase", A$1[A$1.DynamicDeferPhase = 7] = "DynamicDeferPhase"; -})(ImportType || (ImportType = {})); -const A = 1 === new Uint8Array(new Uint16Array([1]).buffer)[0]; -function parse(E$1, g = "@") { - if (!C) return init.then((() => parse(E$1))); - const I = E$1.length + 1, w$1 = (C.__heap_base.value || C.__heap_base) + 4 * I - C.memory.buffer.byteLength; - w$1 > 0 && C.memory.grow(Math.ceil(w$1 / 65536)); - const K = C.sa(I - 1); - if ((A ? B : Q)(E$1, new Uint16Array(C.memory.buffer, K, I)), !C.parse()) throw Object.assign(/* @__PURE__ */ new Error(`Parse error ${g}:${E$1.slice(0, C.e()).split("\n").length}:${C.e() - E$1.lastIndexOf("\n", C.e() - 1)}`), { idx: C.e() }); - const o$1 = [], D = []; - for (; C.ri();) { - const A$1 = C.is(), Q$1 = C.ie(), B$1 = C.it(), g$1 = C.ai(), I$1 = C.id(), w$2 = C.ss(), K$1 = C.se(); - let D$1; - C.ip() && (D$1 = k(E$1.slice(-1 === I$1 ? A$1 - 1 : A$1, -1 === I$1 ? Q$1 + 1 : Q$1))), o$1.push({ - n: D$1, - t: B$1, - s: A$1, - e: Q$1, - ss: w$2, - se: K$1, - d: I$1, - a: g$1 - }); - } - for (; C.re();) { - const A$1 = C.es(), Q$1 = C.ee(), B$1 = C.els(), g$1 = C.ele(), I$1 = E$1.slice(A$1, Q$1), w$2 = I$1[0], K$1 = B$1 < 0 ? void 0 : E$1.slice(B$1, g$1), o$2 = K$1 ? K$1[0] : ""; - D.push({ - s: A$1, - e: Q$1, - ls: B$1, - le: g$1, - n: "\"" === w$2 || "'" === w$2 ? k(I$1) : I$1, - ln: "\"" === o$2 || "'" === o$2 ? k(K$1) : K$1 - }); - } - function k(A$1) { - try { - return (0, eval)(A$1); - } catch (A$2) {} - } - return [ - o$1, - D, - !!C.f(), - !!C.ms() - ]; -} -function Q(A$1, Q$1) { - const B$1 = A$1.length; - let C$1 = 0; - for (; C$1 < B$1;) { - const B$2 = A$1.charCodeAt(C$1); - Q$1[C$1++] = (255 & B$2) << 8 | B$2 >>> 8; - } -} -function B(A$1, Q$1) { - const B$1 = A$1.length; - let C$1 = 0; - for (; C$1 < B$1;) Q$1[C$1] = A$1.charCodeAt(C$1++); -} -let C; -const E = () => { - return A$1 = "AGFzbQEAAAABKwhgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gA39/fwADMTAAAQECAgICAgICAgICAgICAgICAgIAAwMDBAQAAAUAAAAAAAMDAwAGAAAABwAGAgUEBQFwAQEBBQMBAAEGDwJ/AUHA8gALfwBBwPIACwd6FQZtZW1vcnkCAAJzYQAAAWUAAwJpcwAEAmllAAUCc3MABgJzZQAHAml0AAgCYWkACQJpZAAKAmlwAAsCZXMADAJlZQANA2VscwAOA2VsZQAPAnJpABACcmUAEQFmABICbXMAEwVwYXJzZQAUC19faGVhcF9iYXNlAwEKzkQwaAEBf0EAIAA2AoAKQQAoAtwJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgKECkEAIAA2AogKQQBBADYC4AlBAEEANgLwCUEAQQA2AugJQQBBADYC5AlBAEEANgL4CUEAQQA2AuwJIAEL0wEBA39BACgC8AkhBEEAQQAoAogKIgU2AvAJQQAgBDYC9AlBACAFQSRqNgKICiAEQSBqQeAJIAQbIAU2AgBBACgC1AkhBEEAKALQCSEGIAUgATYCACAFIAA2AgggBSACIAJBAmpBACAGIANGIgAbIAQgA0YiBBs2AgwgBSADNgIUIAVBADYCECAFIAI2AgQgBUEANgIgIAVBA0EBQQIgABsgBBs2AhwgBUEAKALQCSADRiICOgAYAkACQCACDQBBACgC1AkgA0cNAQtBAEEBOgCMCgsLXgEBf0EAKAL4CSIEQRBqQeQJIAQbQQAoAogKIgQ2AgBBACAENgL4CUEAIARBFGo2AogKQQBBAToAjAogBEEANgIQIAQgAzYCDCAEIAI2AgggBCABNgIEIAQgADYCAAsIAEEAKAKQCgsVAEEAKALoCSgCAEEAKALcCWtBAXULHgEBf0EAKALoCSgCBCIAQQAoAtwJa0EBdUF/IAAbCxUAQQAoAugJKAIIQQAoAtwJa0EBdQseAQF/QQAoAugJKAIMIgBBACgC3AlrQQF1QX8gABsLCwBBACgC6AkoAhwLHgEBf0EAKALoCSgCECIAQQAoAtwJa0EBdUF/IAAbCzsBAX8CQEEAKALoCSgCFCIAQQAoAtAJRw0AQX8PCwJAIABBACgC1AlHDQBBfg8LIABBACgC3AlrQQF1CwsAQQAoAugJLQAYCxUAQQAoAuwJKAIAQQAoAtwJa0EBdQsVAEEAKALsCSgCBEEAKALcCWtBAXULHgEBf0EAKALsCSgCCCIAQQAoAtwJa0EBdUF/IAAbCx4BAX9BACgC7AkoAgwiAEEAKALcCWtBAXVBfyAAGwslAQF/QQBBACgC6AkiAEEgakHgCSAAGygCACIANgLoCSAAQQBHCyUBAX9BAEEAKALsCSIAQRBqQeQJIAAbKAIAIgA2AuwJIABBAEcLCABBAC0AlAoLCABBAC0AjAoL3Q0BBX8jAEGA0ABrIgAkAEEAQQE6AJQKQQBBACgC2Ak2ApwKQQBBACgC3AlBfmoiATYCsApBACABQQAoAoAKQQF0aiICNgK0CkEAQQA6AIwKQQBBADsBlgpBAEEAOwGYCkEAQQA6AKAKQQBBADYCkApBAEEAOgD8CUEAIABBgBBqNgKkCkEAIAA2AqgKQQBBADoArAoCQAJAAkACQANAQQAgAUECaiIDNgKwCiABIAJPDQECQCADLwEAIgJBd2pBBUkNAAJAAkACQAJAAkAgAkGbf2oOBQEICAgCAAsgAkEgRg0EIAJBL0YNAyACQTtGDQIMBwtBAC8BmAoNASADEBVFDQEgAUEEakGCCEEKEC8NARAWQQAtAJQKDQFBAEEAKAKwCiIBNgKcCgwHCyADEBVFDQAgAUEEakGMCEEKEC8NABAXC0EAQQAoArAKNgKcCgwBCwJAIAEvAQQiA0EqRg0AIANBL0cNBBAYDAELQQEQGQtBACgCtAohAkEAKAKwCiEBDAALC0EAIQIgAyEBQQAtAPwJDQIMAQtBACABNgKwCkEAQQA6AJQKCwNAQQAgAUECaiIDNgKwCgJAAkACQAJAAkACQAJAIAFBACgCtApPDQAgAy8BACICQXdqQQVJDQYCQAJAAkACQAJAAkACQAJAAkACQCACQWBqDgoQDwYPDw8PBQECAAsCQAJAAkACQCACQaB/ag4KCxISAxIBEhISAgALIAJBhX9qDgMFEQYJC0EALwGYCg0QIAMQFUUNECABQQRqQYIIQQoQLw0QEBYMEAsgAxAVRQ0PIAFBBGpBjAhBChAvDQ8QFwwPCyADEBVFDQ4gASkABELsgISDsI7AOVINDiABLwEMIgNBd2oiAUEXSw0MQQEgAXRBn4CABHFFDQwMDQtBAEEALwGYCiIBQQFqOwGYCkEAKAKkCiABQQN0aiIBQQE2AgAgAUEAKAKcCjYCBAwNC0EALwGYCiIDRQ0JQQAgA0F/aiIDOwGYCkEALwGWCiICRQ0MQQAoAqQKIANB//8DcUEDdGooAgBBBUcNDAJAIAJBAnRBACgCqApqQXxqKAIAIgMoAgQNACADQQAoApwKQQJqNgIEC0EAIAJBf2o7AZYKIAMgAUEEajYCDAwMCwJAQQAoApwKIgEvAQBBKUcNAEEAKALwCSIDRQ0AIAMoAgQgAUcNAEEAQQAoAvQJIgM2AvAJAkAgA0UNACADQQA2AiAMAQtBAEEANgLgCQtBAEEALwGYCiIDQQFqOwGYCkEAKAKkCiADQQN0aiIDQQZBAkEALQCsChs2AgAgAyABNgIEQQBBADoArAoMCwtBAC8BmAoiAUUNB0EAIAFBf2oiATsBmApBACgCpAogAUH//wNxQQN0aigCAEEERg0EDAoLQScQGgwJC0EiEBoMCAsgAkEvRw0HAkACQCABLwEEIgFBKkYNACABQS9HDQEQGAwKC0EBEBkMCQsCQAJAAkACQEEAKAKcCiIBLwEAIgMQG0UNAAJAAkAgA0FVag4EAAkBAwkLIAFBfmovAQBBK0YNAwwICyABQX5qLwEAQS1GDQIMBwsgA0EpRw0BQQAoAqQKQQAvAZgKIgJBA3RqKAIEEBxFDQIMBgsgAUF+ai8BAEFQakH//wNxQQpPDQULQQAvAZgKIQILAkACQCACQf//A3EiAkUNACADQeYARw0AQQAoAqQKIAJBf2pBA3RqIgQoAgBBAUcNACABQX5qLwEAQe8ARw0BIAQoAgRBlghBAxAdRQ0BDAULIANB/QBHDQBBACgCpAogAkEDdGoiAigCBBAeDQQgAigCAEEGRg0ECyABEB8NAyADRQ0DIANBL0ZBAC0AoApBAEdxDQMCQEEAKAL4CSICRQ0AIAEgAigCAEkNACABIAIoAgRNDQQLIAFBfmohAUEAKALcCSECAkADQCABQQJqIgQgAk0NAUEAIAE2ApwKIAEvAQAhAyABQX5qIgQhASADECBFDQALIARBAmohBAsCQCADQf//A3EQIUUNACAEQX5qIQECQANAIAFBAmoiAyACTQ0BQQAgATYCnAogAS8BACEDIAFBfmoiBCEBIAMQIQ0ACyAEQQJqIQMLIAMQIg0EC0EAQQE6AKAKDAcLQQAoAqQKQQAvAZgKIgFBA3QiA2pBACgCnAo2AgRBACABQQFqOwGYCkEAKAKkCiADakEDNgIACxAjDAULQQAtAPwJQQAvAZYKQQAvAZgKcnJFIQIMBwsQJEEAQQA6AKAKDAMLECVBACECDAULIANBoAFHDQELQQBBAToArAoLQQBBACgCsAo2ApwKC0EAKAKwCiEBDAALCyAAQYDQAGokACACCxoAAkBBACgC3AkgAEcNAEEBDwsgAEF+ahAmC/4KAQZ/QQBBACgCsAoiAEEMaiIBNgKwCkEAKAL4CSECQQEQKSEDAkACQAJAAkACQAJAAkACQAJAQQAoArAKIgQgAUcNACADEChFDQELAkACQAJAAkACQAJAAkAgA0EqRg0AIANB+wBHDQFBACAEQQJqNgKwCkEBECkhA0EAKAKwCiEEA0ACQAJAIANB//8DcSIDQSJGDQAgA0EnRg0AIAMQLBpBACgCsAohAwwBCyADEBpBAEEAKAKwCkECaiIDNgKwCgtBARApGgJAIAQgAxAtIgNBLEcNAEEAQQAoArAKQQJqNgKwCkEBECkhAwsgA0H9AEYNA0EAKAKwCiIFIARGDQ8gBSEEIAVBACgCtApNDQAMDwsLQQAgBEECajYCsApBARApGkEAKAKwCiIDIAMQLRoMAgtBAEEAOgCUCgJAAkACQAJAAkACQCADQZ9/ag4MAgsEAQsDCwsLCwsFAAsgA0H2AEYNBAwKC0EAIARBDmoiAzYCsAoCQAJAAkBBARApQZ9/ag4GABICEhIBEgtBACgCsAoiBSkAAkLzgOSD4I3AMVINESAFLwEKECFFDRFBACAFQQpqNgKwCkEAECkaC0EAKAKwCiIFQQJqQbIIQQ4QLw0QIAUvARAiAkF3aiIBQRdLDQ1BASABdEGfgIAEcUUNDQwOC0EAKAKwCiIFKQACQuyAhIOwjsA5Ug0PIAUvAQoiAkF3aiIBQRdNDQYMCgtBACAEQQpqNgKwCkEAECkaQQAoArAKIQQLQQAgBEEQajYCsAoCQEEBECkiBEEqRw0AQQBBACgCsApBAmo2ArAKQQEQKSEEC0EAKAKwCiEDIAQQLBogA0EAKAKwCiIEIAMgBBACQQBBACgCsApBfmo2ArAKDwsCQCAEKQACQuyAhIOwjsA5Ug0AIAQvAQoQIEUNAEEAIARBCmo2ArAKQQEQKSEEQQAoArAKIQMgBBAsGiADQQAoArAKIgQgAyAEEAJBAEEAKAKwCkF+ajYCsAoPC0EAIARBBGoiBDYCsAoLQQAgBEEGajYCsApBAEEAOgCUCkEBECkhBEEAKAKwCiEDIAQQLCEEQQAoArAKIQIgBEHf/wNxIgFB2wBHDQNBACACQQJqNgKwCkEBECkhBUEAKAKwCiEDQQAhBAwEC0EAQQE6AIwKQQBBACgCsApBAmo2ArAKC0EBECkhBEEAKAKwCiEDAkAgBEHmAEcNACADQQJqQawIQQYQLw0AQQAgA0EIajYCsAogAEEBEClBABArIAJBEGpB5AkgAhshAwNAIAMoAgAiA0UNBSADQgA3AgggA0EQaiEDDAALC0EAIANBfmo2ArAKDAMLQQEgAXRBn4CABHFFDQMMBAtBASEECwNAAkACQCAEDgIAAQELIAVB//8DcRAsGkEBIQQMAQsCQAJAQQAoArAKIgQgA0YNACADIAQgAyAEEAJBARApIQQCQCABQdsARw0AIARBIHJB/QBGDQQLQQAoArAKIQMCQCAEQSxHDQBBACADQQJqNgKwCkEBECkhBUEAKAKwCiEDIAVBIHJB+wBHDQILQQAgA0F+ajYCsAoLIAFB2wBHDQJBACACQX5qNgKwCg8LQQAhBAwACwsPCyACQaABRg0AIAJB+wBHDQQLQQAgBUEKajYCsApBARApIgVB+wBGDQMMAgsCQCACQVhqDgMBAwEACyACQaABRw0CC0EAIAVBEGo2ArAKAkBBARApIgVBKkcNAEEAQQAoArAKQQJqNgKwCkEBECkhBQsgBUEoRg0BC0EAKAKwCiEBIAUQLBpBACgCsAoiBSABTQ0AIAQgAyABIAUQAkEAQQAoArAKQX5qNgKwCg8LIAQgA0EAQQAQAkEAIARBDGo2ArAKDwsQJQuFDAEKf0EAQQAoArAKIgBBDGoiATYCsApBARApIQJBACgCsAohAwJAAkACQAJAAkACQAJAAkAgAkEuRw0AQQAgA0ECajYCsAoCQEEBECkiAkHkAEYNAAJAIAJB8wBGDQAgAkHtAEcNB0EAKAKwCiICQQJqQZwIQQYQLw0HAkBBACgCnAoiAxAqDQAgAy8BAEEuRg0ICyAAIAAgAkEIakEAKALUCRABDwtBACgCsAoiAkECakGiCEEKEC8NBgJAQQAoApwKIgMQKg0AIAMvAQBBLkYNBwtBACEEQQAgAkEMajYCsApBASEFQQUhBkEBECkhAkEAIQdBASEIDAILQQAoArAKIgIpAAJC5YCYg9CMgDlSDQUCQEEAKAKcCiIDECoNACADLwEAQS5GDQYLQQAhBEEAIAJBCmo2ArAKQQIhCEEHIQZBASEHQQEQKSECQQEhBQwBCwJAAkACQAJAIAJB8wBHDQAgAyABTQ0AIANBAmpBoghBChAvDQACQCADLwEMIgRBd2oiB0EXSw0AQQEgB3RBn4CABHENAgsgBEGgAUYNAQtBACEHQQchBkEBIQQgAkHkAEYNAQwCC0EAIQRBACADQQxqIgI2ArAKQQEhBUEBECkhCQJAQQAoArAKIgYgAkYNAEHmACECAkAgCUHmAEYNAEEFIQZBACEHQQEhCCAJIQIMBAtBACEHQQEhCCAGQQJqQawIQQYQLw0EIAYvAQgQIEUNBAtBACEHQQAgAzYCsApBByEGQQEhBEEAIQVBACEIIAkhAgwCCyADIABBCmpNDQBBACEIQeQAIQICQCADKQACQuWAmIPQjIA5Ug0AAkACQCADLwEKIgRBd2oiB0EXSw0AQQEgB3RBn4CABHENAQtBACEIIARBoAFHDQELQQAhBUEAIANBCmo2ArAKQSohAkEBIQdBAiEIQQEQKSIJQSpGDQRBACADNgKwCkEBIQRBACEHQQAhCCAJIQIMAgsgAyEGQQAhBwwCC0EAIQVBACEICwJAIAJBKEcNAEEAKAKkCkEALwGYCiICQQN0aiIDQQAoArAKNgIEQQAgAkEBajsBmAogA0EFNgIAQQAoApwKLwEAQS5GDQRBAEEAKAKwCiIDQQJqNgKwCkEBECkhAiAAQQAoArAKQQAgAxABAkACQCAFDQBBACgC8AkhAQwBC0EAKALwCSIBIAY2AhwLQQBBAC8BlgoiA0EBajsBlgpBACgCqAogA0ECdGogATYCAAJAIAJBIkYNACACQSdGDQBBAEEAKAKwCkF+ajYCsAoPCyACEBpBAEEAKAKwCkECaiICNgKwCgJAAkACQEEBEClBV2oOBAECAgACC0EAQQAoArAKQQJqNgKwCkEBECkaQQAoAvAJIgMgAjYCBCADQQE6ABggA0EAKAKwCiICNgIQQQAgAkF+ajYCsAoPC0EAKALwCSIDIAI2AgQgA0EBOgAYQQBBAC8BmApBf2o7AZgKIANBACgCsApBAmo2AgxBAEEALwGWCkF/ajsBlgoPC0EAQQAoArAKQX5qNgKwCg8LAkAgBEEBcyACQfsAR3INAEEAKAKwCiECQQAvAZgKDQUDQAJAAkACQCACQQAoArQKTw0AQQEQKSICQSJGDQEgAkEnRg0BIAJB/QBHDQJBAEEAKAKwCkECajYCsAoLQQEQKSEDQQAoArAKIQICQCADQeYARw0AIAJBAmpBrAhBBhAvDQcLQQAgAkEIajYCsAoCQEEBECkiAkEiRg0AIAJBJ0cNBwsgACACQQAQKw8LIAIQGgtBAEEAKAKwCkECaiICNgKwCgwACwsCQAJAIAJBWWoOBAMBAQMACyACQSJGDQILQQAoArAKIQYLIAYgAUcNAEEAIABBCmo2ArAKDwsgAkEqRyAHcQ0DQQAvAZgKQf//A3ENA0EAKAKwCiECQQAoArQKIQEDQCACIAFPDQECQAJAIAIvAQAiA0EnRg0AIANBIkcNAQsgACADIAgQKw8LQQAgAkECaiICNgKwCgwACwsQJQsPC0EAIAJBfmo2ArAKDwtBAEEAKAKwCkF+ajYCsAoLRwEDf0EAKAKwCkECaiEAQQAoArQKIQECQANAIAAiAkF+aiABTw0BIAJBAmohACACLwEAQXZqDgQBAAABAAsLQQAgAjYCsAoLmAEBA39BAEEAKAKwCiIBQQJqNgKwCiABQQZqIQFBACgCtAohAgNAAkACQAJAIAFBfGogAk8NACABQX5qLwEAIQMCQAJAIAANACADQSpGDQEgA0F2ag4EAgQEAgQLIANBKkcNAwsgAS8BAEEvRw0CQQAgAUF+ajYCsAoMAQsgAUF+aiEBC0EAIAE2ArAKDwsgAUECaiEBDAALC4gBAQR/QQAoArAKIQFBACgCtAohAgJAAkADQCABIgNBAmohASADIAJPDQEgAS8BACIEIABGDQICQCAEQdwARg0AIARBdmoOBAIBAQIBCyADQQRqIQEgAy8BBEENRw0AIANBBmogASADLwEGQQpGGyEBDAALC0EAIAE2ArAKECUPC0EAIAE2ArAKC2wBAX8CQAJAIABBX2oiAUEFSw0AQQEgAXRBMXENAQsgAEFGakH//wNxQQZJDQAgAEEpRyAAQVhqQf//A3FBB0lxDQACQCAAQaV/ag4EAQAAAQALIABB/QBHIABBhX9qQf//A3FBBElxDwtBAQsuAQF/QQEhAQJAIABBpglBBRAdDQAgAEGWCEEDEB0NACAAQbAJQQIQHSEBCyABC0YBA39BACEDAkAgACACQQF0IgJrIgRBAmoiAEEAKALcCSIFSQ0AIAAgASACEC8NAAJAIAAgBUcNAEEBDwsgBBAmIQMLIAMLgwEBAn9BASEBAkACQAJAAkACQAJAIAAvAQAiAkFFag4EBQQEAQALAkAgAkGbf2oOBAMEBAIACyACQSlGDQQgAkH5AEcNAyAAQX5qQbwJQQYQHQ8LIABBfmovAQBBPUYPCyAAQX5qQbQJQQQQHQ8LIABBfmpByAlBAxAdDwtBACEBCyABC7QDAQJ/QQAhAQJAAkACQAJAAkACQAJAAkACQAJAIAAvAQBBnH9qDhQAAQIJCQkJAwkJBAUJCQYJBwkJCAkLAkACQCAAQX5qLwEAQZd/ag4EAAoKAQoLIABBfGpByghBAhAdDwsgAEF8akHOCEEDEB0PCwJAAkACQCAAQX5qLwEAQY1/ag4DAAECCgsCQCAAQXxqLwEAIgJB4QBGDQAgAkHsAEcNCiAAQXpqQeUAECcPCyAAQXpqQeMAECcPCyAAQXxqQdQIQQQQHQ8LIABBfGpB3AhBBhAdDwsgAEF+ai8BAEHvAEcNBiAAQXxqLwEAQeUARw0GAkAgAEF6ai8BACICQfAARg0AIAJB4wBHDQcgAEF4akHoCEEGEB0PCyAAQXhqQfQIQQIQHQ8LIABBfmpB+AhBBBAdDwtBASEBIABBfmoiAEHpABAnDQQgAEGACUEFEB0PCyAAQX5qQeQAECcPCyAAQX5qQYoJQQcQHQ8LIABBfmpBmAlBBBAdDwsCQCAAQX5qLwEAIgJB7wBGDQAgAkHlAEcNASAAQXxqQe4AECcPCyAAQXxqQaAJQQMQHSEBCyABCzQBAX9BASEBAkAgAEF3akH//wNxQQVJDQAgAEGAAXJBoAFGDQAgAEEuRyAAEChxIQELIAELMAEBfwJAAkAgAEF3aiIBQRdLDQBBASABdEGNgIAEcQ0BCyAAQaABRg0AQQAPC0EBC04BAn9BACEBAkACQCAALwEAIgJB5QBGDQAgAkHrAEcNASAAQX5qQfgIQQQQHQ8LIABBfmovAQBB9QBHDQAgAEF8akHcCEEGEB0hAQsgAQveAQEEf0EAKAKwCiEAQQAoArQKIQECQAJAAkADQCAAIgJBAmohACACIAFPDQECQAJAAkAgAC8BACIDQaR/ag4FAgMDAwEACyADQSRHDQIgAi8BBEH7AEcNAkEAIAJBBGoiADYCsApBAEEALwGYCiICQQFqOwGYCkEAKAKkCiACQQN0aiICQQQ2AgAgAiAANgIEDwtBACAANgKwCkEAQQAvAZgKQX9qIgA7AZgKQQAoAqQKIABB//8DcUEDdGooAgBBA0cNAwwECyACQQRqIQAMAAsLQQAgADYCsAoLECULC3ABAn8CQAJAA0BBAEEAKAKwCiIAQQJqIgE2ArAKIABBACgCtApPDQECQAJAAkAgAS8BACIBQaV/ag4CAQIACwJAIAFBdmoOBAQDAwQACyABQS9HDQIMBAsQLhoMAQtBACAAQQRqNgKwCgwACwsQJQsLNQEBf0EAQQE6APwJQQAoArAKIQBBAEEAKAK0CkECajYCsApBACAAQQAoAtwJa0EBdTYCkAoLQwECf0EBIQECQCAALwEAIgJBd2pB//8DcUEFSQ0AIAJBgAFyQaABRg0AQQAhASACEChFDQAgAkEuRyAAECpyDwsgAQs9AQJ/QQAhAgJAQQAoAtwJIgMgAEsNACAALwEAIAFHDQACQCADIABHDQBBAQ8LIABBfmovAQAQICECCyACC2gBAn9BASEBAkACQCAAQV9qIgJBBUsNAEEBIAJ0QTFxDQELIABB+P8DcUEoRg0AIABBRmpB//8DcUEGSQ0AAkAgAEGlf2oiAkEDSw0AIAJBAUcNAQsgAEGFf2pB//8DcUEESSEBCyABC5wBAQN/QQAoArAKIQECQANAAkACQCABLwEAIgJBL0cNAAJAIAEvAQIiAUEqRg0AIAFBL0cNBBAYDAILIAAQGQwBCwJAAkAgAEUNACACQXdqIgFBF0sNAUEBIAF0QZ+AgARxRQ0BDAILIAIQIUUNAwwBCyACQaABRw0CC0EAQQAoArAKIgNBAmoiATYCsAogA0EAKAK0CkkNAAsLIAILMQEBf0EAIQECQCAALwEAQS5HDQAgAEF+ai8BAEEuRw0AIABBfGovAQBBLkYhAQsgAQumBAEBfwJAIAFBIkYNACABQSdGDQAQJQ8LQQAoArAKIQMgARAaIAAgA0ECakEAKAKwCkEAKALQCRABAkAgAkEBSA0AQQAoAvAJQQRBBiACQQFGGzYCHAtBAEEAKAKwCkECajYCsAoCQAJAAkACQEEAECkiAUHhAEYNACABQfcARg0BQQAoArAKIQEMAgtBACgCsAoiAUECakHACEEKEC8NAUEGIQIMAgtBACgCsAoiAS8BAkHpAEcNACABLwEEQfQARw0AQQQhAiABLwEGQegARg0BC0EAIAFBfmo2ArAKDwtBACABIAJBAXRqNgKwCgJAQQEQKUH7AEYNAEEAIAE2ArAKDwtBACgCsAoiACECA0BBACACQQJqNgKwCgJAAkACQEEBECkiAkEiRg0AIAJBJ0cNAUEnEBpBAEEAKAKwCkECajYCsApBARApIQIMAgtBIhAaQQBBACgCsApBAmo2ArAKQQEQKSECDAELIAIQLCECCwJAIAJBOkYNAEEAIAE2ArAKDwtBAEEAKAKwCkECajYCsAoCQEEBECkiAkEiRg0AIAJBJ0YNAEEAIAE2ArAKDwsgAhAaQQBBACgCsApBAmo2ArAKAkACQEEBECkiAkEsRg0AIAJB/QBGDQFBACABNgKwCg8LQQBBACgCsApBAmo2ArAKQQEQKUH9AEYNAEEAKAKwCiECDAELC0EAKALwCSIBIAA2AhAgAUEAKAKwCkECajYCDAttAQJ/AkACQANAAkAgAEH//wNxIgFBd2oiAkEXSw0AQQEgAnRBn4CABHENAgsgAUGgAUYNASAAIQIgARAoDQJBACECQQBBACgCsAoiAEECajYCsAogAC8BAiIADQAMAgsLIAAhAgsgAkH//wNxC6sBAQR/AkACQEEAKAKwCiICLwEAIgNB4QBGDQAgASEEIAAhBQwBC0EAIAJBBGo2ArAKQQEQKSECQQAoArAKIQUCQAJAIAJBIkYNACACQSdGDQAgAhAsGkEAKAKwCiEEDAELIAIQGkEAQQAoArAKQQJqIgQ2ArAKC0EBECkhA0EAKAKwCiECCwJAIAIgBUYNACAFIARBACAAIAAgAUYiAhtBACABIAIbEAILIAMLcgEEf0EAKAKwCiEAQQAoArQKIQECQAJAA0AgAEECaiECIAAgAU8NAQJAAkAgAi8BACIDQaR/ag4CAQQACyACIQAgA0F2ag4EAgEBAgELIABBBGohAAwACwtBACACNgKwChAlQQAPC0EAIAI2ArAKQd0AC0kBA39BACEDAkAgAkUNAAJAA0AgAC0AACIEIAEtAAAiBUcNASABQQFqIQEgAEEBaiEAIAJBf2oiAg0ADAILCyAEIAVrIQMLIAMLC+wBAgBBgAgLzgEAAHgAcABvAHIAdABtAHAAbwByAHQAZgBvAHIAZQB0AGEAbwB1AHIAYwBlAHIAbwBtAHUAbgBjAHQAaQBvAG4AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGMAbwBuAHQAaQBuAGkAbgBzAHQAYQBuAHQAeQBiAHIAZQBhAHIAZQB0AHUAcgBkAGUAYgB1AGcAZwBlAGEAdwBhAGkAdABoAHIAdwBoAGkAbABlAGkAZgBjAGEAdABjAGYAaQBuAGEAbABsAGUAbABzAABB0AkLEAEAAAACAAAAAAQAAEA5AAA=", "undefined" != typeof Buffer ? Buffer.from(A$1, "base64") : Uint8Array.from(atob(A$1), ((A$2) => A$2.charCodeAt(0))); - var A$1; -}; -const init = WebAssembly.compile(E()).then(WebAssembly.instantiate).then((({ exports: A$1 }) => { - C = A$1; -})); - -//#endregion -//#region ../../node_modules/.pnpm/convert-source-map@2.0.0/node_modules/convert-source-map/index.js -var require_convert_source_map = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/convert-source-map@2.0.0/node_modules/convert-source-map/index.js": ((exports) => { - Object.defineProperty(exports, "commentRegex", { get: function getCommentRegex() { - return /^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/gm; - } }); - Object.defineProperty(exports, "mapFileCommentRegex", { get: function getMapFileCommentRegex() { - return /(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/gm; - } }); - var decodeBase64; - if (typeof Buffer !== "undefined") if (typeof Buffer.from === "function") decodeBase64 = decodeBase64WithBufferFrom; - else decodeBase64 = decodeBase64WithNewBuffer; - else decodeBase64 = decodeBase64WithAtob; - function decodeBase64WithBufferFrom(base64) { - return Buffer.from(base64, "base64").toString(); - } - function decodeBase64WithNewBuffer(base64) { - if (typeof value === "number") throw new TypeError("The value to decode must not be of type number."); - return new Buffer(base64, "base64").toString(); - } - function decodeBase64WithAtob(base64) { - return decodeURIComponent(escape(atob(base64))); - } - function stripComment(sm) { - return sm.split(",").pop(); - } - function readFromFileMap(sm, read) { - var r$2 = exports.mapFileCommentRegex.exec(sm); - var filename = r$2[1] || r$2[2]; - try { - var sm = read(filename); - if (sm != null && typeof sm.catch === "function") return sm.catch(throwError); - else return sm; - } catch (e$1) { - throwError(e$1); - } - function throwError(e$1) { - throw new Error("An error occurred while trying to read the map file at " + filename + "\n" + e$1.stack); - } - } - function Converter(sm, opts) { - opts = opts || {}; - if (opts.hasComment) sm = stripComment(sm); - if (opts.encoding === "base64") sm = decodeBase64(sm); - else if (opts.encoding === "uri") sm = decodeURIComponent(sm); - if (opts.isJSON || opts.encoding) sm = JSON.parse(sm); - this.sourcemap = sm; - } - Converter.prototype.toJSON = function(space) { - return JSON.stringify(this.sourcemap, null, space); - }; - if (typeof Buffer !== "undefined") if (typeof Buffer.from === "function") Converter.prototype.toBase64 = encodeBase64WithBufferFrom; - else Converter.prototype.toBase64 = encodeBase64WithNewBuffer; - else Converter.prototype.toBase64 = encodeBase64WithBtoa; - function encodeBase64WithBufferFrom() { - var json = this.toJSON(); - return Buffer.from(json, "utf8").toString("base64"); - } - function encodeBase64WithNewBuffer() { - var json = this.toJSON(); - if (typeof json === "number") throw new TypeError("The json to encode must not be of type number."); - return new Buffer(json, "utf8").toString("base64"); - } - function encodeBase64WithBtoa() { - var json = this.toJSON(); - return btoa(unescape(encodeURIComponent(json))); - } - Converter.prototype.toURI = function() { - var json = this.toJSON(); - return encodeURIComponent(json); - }; - Converter.prototype.toComment = function(options$1) { - var encoding, content, data; - if (options$1 != null && options$1.encoding === "uri") { - encoding = ""; - content = this.toURI(); - } else { - encoding = ";base64"; - content = this.toBase64(); - } - data = "sourceMappingURL=data:application/json;charset=utf-8" + encoding + "," + content; - return options$1 != null && options$1.multiline ? "/*# " + data + " */" : "//# " + data; - }; - Converter.prototype.toObject = function() { - return JSON.parse(this.toJSON()); - }; - Converter.prototype.addProperty = function(key, value$1) { - if (this.sourcemap.hasOwnProperty(key)) throw new Error("property \"" + key + "\" already exists on the sourcemap, use set property instead"); - return this.setProperty(key, value$1); - }; - Converter.prototype.setProperty = function(key, value$1) { - this.sourcemap[key] = value$1; - return this; - }; - Converter.prototype.getProperty = function(key) { - return this.sourcemap[key]; - }; - exports.fromObject = function(obj) { - return new Converter(obj); - }; - exports.fromJSON = function(json) { - return new Converter(json, { isJSON: true }); - }; - exports.fromURI = function(uri) { - return new Converter(uri, { encoding: "uri" }); - }; - exports.fromBase64 = function(base64) { - return new Converter(base64, { encoding: "base64" }); - }; - exports.fromComment = function(comment) { - var m$2, encoding; - comment = comment.replace(/^\/\*/g, "//").replace(/\*\/$/g, ""); - m$2 = exports.commentRegex.exec(comment); - encoding = m$2 && m$2[4] || "uri"; - return new Converter(comment, { - encoding, - hasComment: true - }); - }; - function makeConverter(sm) { - return new Converter(sm, { isJSON: true }); - } - exports.fromMapFileComment = function(comment, read) { - if (typeof read === "string") throw new Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading"); - var sm = readFromFileMap(comment, read); - if (sm != null && typeof sm.then === "function") return sm.then(makeConverter); - else return makeConverter(sm); - }; - exports.fromSource = function(content) { - var m$2 = content.match(exports.commentRegex); - return m$2 ? exports.fromComment(m$2.pop()) : null; - }; - exports.fromMapFileSource = function(content, read) { - if (typeof read === "string") throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading"); - var m$2 = content.match(exports.mapFileCommentRegex); - return m$2 ? exports.fromMapFileComment(m$2.pop(), read) : null; - }; - exports.removeComments = function(src) { - return src.replace(exports.commentRegex, ""); - }; - exports.removeMapFileComments = function(src) { - return src.replace(exports.mapFileCommentRegex, ""); - }; - exports.generateMapFileComment = function(file, options$1) { - var data = "sourceMappingURL=" + file; - return options$1 && options$1.multiline ? "/*# " + data + " */" : "//# " + data; - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.35/node_modules/@rolldown/pluginutils/dist/index.js -/** -* Constructs a RegExp that matches the exact string specified. -* -* This is useful for plugin hook filters. -* -* @param str the string to match. -* @param flags flags for the RegExp. -* -* @example -* ```ts -* import { exactRegex } from '@rolldown/pluginutils'; -* const plugin = { -* name: 'plugin', -* resolveId: { -* filter: { id: exactRegex('foo') }, -* handler(id) {} // will only be called for `foo` -* } -* } -* ``` -*/ -function exactRegex(str, flags) { - return new RegExp(`^${escapeRegex$1(str)}$`, flags); -} -/** -* Constructs a RegExp that matches a value that has the specified prefix. -* -* This is useful for plugin hook filters. -* -* @param str the string to match. -* @param flags flags for the RegExp. -* -* @example -* ```ts -* import { prefixRegex } from '@rolldown/pluginutils'; -* const plugin = { -* name: 'plugin', -* resolveId: { -* filter: { id: prefixRegex('foo') }, -* handler(id) {} // will only be called for IDs starting with `foo` -* } -* } -* ``` -*/ -function prefixRegex(str, flags) { - return new RegExp(`^${escapeRegex$1(str)}`, flags); -} -const escapeRegexRE = /[-/\\^$*+?.()|[\]{}]/g; -function escapeRegex$1(str) { - return str.replace(escapeRegexRE, "\\$&"); -} - -//#endregion -//#region src/node/server/sourcemap.ts -var import_convert_source_map$2 = /* @__PURE__ */ __toESM(require_convert_source_map(), 1); -const debug$16 = createDebugger("vite:sourcemap", { onlyWhenFocused: true }); -const virtualSourceRE = /^(?:dep:|browser-external:|virtual:)|\0/; -async function computeSourceRoute(map$1, file) { - let sourceRoot; - try { - sourceRoot = await fsp.realpath(path.resolve(path.dirname(file), map$1.sourceRoot || "")); - } catch {} - return sourceRoot; -} -async function injectSourcesContent(map$1, file, logger) { - let sourceRootPromise; - const missingSources = []; - const sourcesContent = map$1.sourcesContent || []; - const sourcesContentPromises = []; - for (let index = 0; index < map$1.sources.length; index++) { - const sourcePath = map$1.sources[index]; - if (sourcesContent[index] == null && sourcePath && !virtualSourceRE.test(sourcePath)) sourcesContentPromises.push((async () => { - sourceRootPromise ??= computeSourceRoute(map$1, file); - const sourceRoot = await sourceRootPromise; - let resolvedSourcePath = cleanUrl(decodeURI(sourcePath)); - if (sourceRoot) resolvedSourcePath = path.resolve(sourceRoot, resolvedSourcePath); - sourcesContent[index] = await fsp.readFile(resolvedSourcePath, "utf-8").catch(() => { - missingSources.push(resolvedSourcePath); - return null; - }); - })()); - } - await Promise.all(sourcesContentPromises); - map$1.sourcesContent = sourcesContent; - if (missingSources.length) { - logger.warnOnce(`Sourcemap for "${file}" points to missing source files`); - debug$16?.(`Missing sources:\n ` + missingSources.join(`\n `)); - } -} -function genSourceMapUrl(map$1) { - if (typeof map$1 !== "string") map$1 = JSON.stringify(map$1); - return `data:application/json;base64,${Buffer.from(map$1).toString("base64")}`; -} -function getCodeWithSourcemap(type, code, map$1) { - if (debug$16) code += `\n/*${JSON.stringify(map$1, null, 2).replace(/\*\//g, "*\\/")}*/\n`; - if (type === "js") code += `\n//# sourceMappingURL=${genSourceMapUrl(map$1)}`; - else if (type === "css") code += `\n/*# sourceMappingURL=${genSourceMapUrl(map$1)} */`; - return code; -} -function applySourcemapIgnoreList(map$1, sourcemapPath, sourcemapIgnoreList, logger) { - let { x_google_ignoreList } = map$1; - if (x_google_ignoreList === void 0) x_google_ignoreList = []; - for (let sourcesIndex = 0; sourcesIndex < map$1.sources.length; ++sourcesIndex) { - const sourcePath = map$1.sources[sourcesIndex]; - if (!sourcePath) continue; - const ignoreList = sourcemapIgnoreList(path.isAbsolute(sourcePath) ? sourcePath : path.resolve(path.dirname(sourcemapPath), sourcePath), sourcemapPath); - if (logger && typeof ignoreList !== "boolean") logger.warn("sourcemapIgnoreList function must return a boolean."); - if (ignoreList && !x_google_ignoreList.includes(sourcesIndex)) x_google_ignoreList.push(sourcesIndex); - } - if (x_google_ignoreList.length > 0) { - if (!map$1.x_google_ignoreList) map$1.x_google_ignoreList = x_google_ignoreList; - } -} -async function extractSourcemapFromFile(code, filePath) { - const map$1 = (import_convert_source_map$2.fromSource(code) || await import_convert_source_map$2.fromMapFileSource(code, createConvertSourceMapReadMap(filePath)))?.toObject(); - if (map$1) return { - code: code.replace(import_convert_source_map$2.default.mapFileCommentRegex, blankReplacer), - map: map$1 - }; -} -function createConvertSourceMapReadMap(originalFileName) { - return (filename) => { - return fsp.readFile(path.resolve(path.dirname(originalFileName), filename), "utf-8"); - }; -} - -//#endregion -//#region ../../node_modules/.pnpm/lilconfig@3.1.3/node_modules/lilconfig/src/index.js -var require_src$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lilconfig@3.1.3/node_modules/lilconfig/src/index.js": ((exports, module) => { - const path$11 = __require("path"); - const fs$11 = __require("fs"); - const os$4 = __require("os"); - const url$2 = __require("url"); - const fsReadFileAsync = fs$11.promises.readFile; - /** @type {(name: string, sync: boolean) => string[]} */ - function getDefaultSearchPlaces(name, sync$3) { - return [ - "package.json", - `.${name}rc.json`, - `.${name}rc.js`, - `.${name}rc.cjs`, - ...sync$3 ? [] : [`.${name}rc.mjs`], - `.config/${name}rc`, - `.config/${name}rc.json`, - `.config/${name}rc.js`, - `.config/${name}rc.cjs`, - ...sync$3 ? [] : [`.config/${name}rc.mjs`], - `${name}.config.js`, - `${name}.config.cjs`, - ...sync$3 ? [] : [`${name}.config.mjs`] - ]; - } - /** - * @type {(p: string) => string} - * - * see #17 - * On *nix, if cwd is not under homedir, - * the last path will be '', ('/build' -> '') - * but it should be '/' actually. - * And on Windows, this will never happen. ('C:\build' -> 'C:') - */ - function parentDir(p) { - return path$11.dirname(p) || path$11.sep; - } - /** @type {import('./index').LoaderSync} */ - const jsonLoader = (_, content) => JSON.parse(content); - const requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require; - /** @type {import('./index').LoadersSync} */ - const defaultLoadersSync = Object.freeze({ - ".js": requireFunc, - ".json": requireFunc, - ".cjs": requireFunc, - noExt: jsonLoader - }); - module.exports.defaultLoadersSync = defaultLoadersSync; - /** @type {import('./index').Loader} */ - const dynamicImport = async (id) => { - try { - const fileUrl = url$2.pathToFileURL(id).href; - const mod = await import( - /* webpackIgnore: true */ - fileUrl -); - return mod.default; - } catch (e$1) { - try { - return requireFunc(id); - } catch (requireE) { - if (requireE.code === "ERR_REQUIRE_ESM" || requireE instanceof SyntaxError && requireE.toString().includes("Cannot use import statement outside a module")) throw e$1; - throw requireE; - } - } - }; - /** @type {import('./index').Loaders} */ - const defaultLoaders = Object.freeze({ - ".js": dynamicImport, - ".mjs": dynamicImport, - ".cjs": dynamicImport, - ".json": jsonLoader, - noExt: jsonLoader - }); - module.exports.defaultLoaders = defaultLoaders; - /** - * @param {string} name - * @param {import('./index').Options | import('./index').OptionsSync} options - * @param {boolean} sync - * @returns {Required} - */ - function getOptions(name, options$1, sync$3) { - /** @type {Required} */ - const conf = { - stopDir: os$4.homedir(), - searchPlaces: getDefaultSearchPlaces(name, sync$3), - ignoreEmptySearchPlaces: true, - cache: true, - transform: (x) => x, - packageProp: [name], - ...options$1, - loaders: { - ...sync$3 ? defaultLoadersSync : defaultLoaders, - ...options$1.loaders - } - }; - conf.searchPlaces.forEach((place) => { - const key = path$11.extname(place) || "noExt"; - const loader$1 = conf.loaders[key]; - if (!loader$1) throw new Error(`Missing loader for extension "${place}"`); - if (typeof loader$1 !== "function") throw new Error(`Loader for extension "${place}" is not a function: Received ${typeof loader$1}.`); - }); - return conf; - } - /** @type {(props: string | string[], obj: Record) => unknown} */ - function getPackageProp(props, obj) { - if (typeof props === "string" && props in obj) return obj[props]; - return (Array.isArray(props) ? props : props.split(".")).reduce((acc, prop) => acc === void 0 ? acc : acc[prop], obj) || null; - } - /** @param {string} filepath */ - function validateFilePath(filepath) { - if (!filepath) throw new Error("load must pass a non-empty string"); - } - /** @type {(loader: import('./index').Loader, ext: string) => void} */ - function validateLoader(loader$1, ext) { - if (!loader$1) throw new Error(`No loader specified for extension "${ext}"`); - if (typeof loader$1 !== "function") throw new Error("loader is not a function"); - } - /** @type {(enableCache: boolean) => (c: Map, filepath: string, res: T) => T} */ - const makeEmplace = (enableCache) => (c, filepath, res) => { - if (enableCache) c.set(filepath, res); - return res; - }; - /** @type {import('./index').lilconfig} */ - module.exports.lilconfig = function lilconfig(name, options$1) { - const { ignoreEmptySearchPlaces, loaders, packageProp, searchPlaces, stopDir, transform: transform$2, cache: cache$1 } = getOptions(name, options$1 ?? {}, false); - const searchCache = /* @__PURE__ */ new Map(); - const loadCache = /* @__PURE__ */ new Map(); - const emplace = makeEmplace(cache$1); - return { - async search(searchFrom = process.cwd()) { - /** @type {import('./index').LilconfigResult} */ - const result = { - config: null, - filepath: "" - }; - /** @type {Set} */ - const visited = /* @__PURE__ */ new Set(); - let dir = searchFrom; - dirLoop: while (true) { - if (cache$1) { - const r$2 = searchCache.get(dir); - if (r$2 !== void 0) { - for (const p of visited) searchCache.set(p, r$2); - return r$2; - } - visited.add(dir); - } - for (const searchPlace of searchPlaces) { - const filepath = path$11.join(dir, searchPlace); - try { - await fs$11.promises.access(filepath); - } catch { - continue; - } - const content = String(await fsReadFileAsync(filepath)); - const loaderKey = path$11.extname(searchPlace) || "noExt"; - const loader$1 = loaders[loaderKey]; - if (searchPlace === "package.json") { - const pkg = await loader$1(filepath, content); - const maybeConfig = getPackageProp(packageProp, pkg); - if (maybeConfig != null) { - result.config = maybeConfig; - result.filepath = filepath; - break dirLoop; - } - continue; - } - const isEmpty = content.trim() === ""; - if (isEmpty && ignoreEmptySearchPlaces) continue; - if (isEmpty) { - result.isEmpty = true; - result.config = void 0; - } else { - validateLoader(loader$1, loaderKey); - result.config = await loader$1(filepath, content); - } - result.filepath = filepath; - break dirLoop; - } - if (dir === stopDir || dir === parentDir(dir)) break dirLoop; - dir = parentDir(dir); - } - const transformed = result.filepath === "" && result.config === null ? transform$2(null) : transform$2(result); - if (cache$1) for (const p of visited) searchCache.set(p, transformed); - return transformed; - }, - async load(filepath) { - validateFilePath(filepath); - const absPath = path$11.resolve(process.cwd(), filepath); - if (cache$1 && loadCache.has(absPath)) return loadCache.get(absPath); - const { base, ext } = path$11.parse(absPath); - const loaderKey = ext || "noExt"; - const loader$1 = loaders[loaderKey]; - validateLoader(loader$1, loaderKey); - const content = String(await fsReadFileAsync(absPath)); - if (base === "package.json") { - const pkg = await loader$1(absPath, content); - return emplace(loadCache, absPath, transform$2({ - config: getPackageProp(packageProp, pkg), - filepath: absPath - })); - } - /** @type {import('./index').LilconfigResult} */ - const result = { - config: null, - filepath: absPath - }; - const isEmpty = content.trim() === ""; - if (isEmpty && ignoreEmptySearchPlaces) return emplace(loadCache, absPath, transform$2({ - config: void 0, - filepath: absPath, - isEmpty: true - })); - result.config = isEmpty ? void 0 : await loader$1(absPath, content); - return emplace(loadCache, absPath, transform$2(isEmpty ? { - ...result, - isEmpty, - config: void 0 - } : result)); - }, - clearLoadCache() { - if (cache$1) loadCache.clear(); - }, - clearSearchCache() { - if (cache$1) searchCache.clear(); - }, - clearCaches() { - if (cache$1) { - loadCache.clear(); - searchCache.clear(); - } - } - }; - }; - /** @type {import('./index').lilconfigSync} */ - module.exports.lilconfigSync = function lilconfigSync(name, options$1) { - const { ignoreEmptySearchPlaces, loaders, packageProp, searchPlaces, stopDir, transform: transform$2, cache: cache$1 } = getOptions(name, options$1 ?? {}, true); - const searchCache = /* @__PURE__ */ new Map(); - const loadCache = /* @__PURE__ */ new Map(); - const emplace = makeEmplace(cache$1); - return { - search(searchFrom = process.cwd()) { - /** @type {import('./index').LilconfigResult} */ - const result = { - config: null, - filepath: "" - }; - /** @type {Set} */ - const visited = /* @__PURE__ */ new Set(); - let dir = searchFrom; - dirLoop: while (true) { - if (cache$1) { - const r$2 = searchCache.get(dir); - if (r$2 !== void 0) { - for (const p of visited) searchCache.set(p, r$2); - return r$2; - } - visited.add(dir); - } - for (const searchPlace of searchPlaces) { - const filepath = path$11.join(dir, searchPlace); - try { - fs$11.accessSync(filepath); - } catch { - continue; - } - const loaderKey = path$11.extname(searchPlace) || "noExt"; - const loader$1 = loaders[loaderKey]; - const content = String(fs$11.readFileSync(filepath)); - if (searchPlace === "package.json") { - const pkg = loader$1(filepath, content); - const maybeConfig = getPackageProp(packageProp, pkg); - if (maybeConfig != null) { - result.config = maybeConfig; - result.filepath = filepath; - break dirLoop; - } - continue; - } - const isEmpty = content.trim() === ""; - if (isEmpty && ignoreEmptySearchPlaces) continue; - if (isEmpty) { - result.isEmpty = true; - result.config = void 0; - } else { - validateLoader(loader$1, loaderKey); - result.config = loader$1(filepath, content); - } - result.filepath = filepath; - break dirLoop; - } - if (dir === stopDir || dir === parentDir(dir)) break dirLoop; - dir = parentDir(dir); - } - const transformed = result.filepath === "" && result.config === null ? transform$2(null) : transform$2(result); - if (cache$1) for (const p of visited) searchCache.set(p, transformed); - return transformed; - }, - load(filepath) { - validateFilePath(filepath); - const absPath = path$11.resolve(process.cwd(), filepath); - if (cache$1 && loadCache.has(absPath)) return loadCache.get(absPath); - const { base, ext } = path$11.parse(absPath); - const loaderKey = ext || "noExt"; - const loader$1 = loaders[loaderKey]; - validateLoader(loader$1, loaderKey); - const content = String(fs$11.readFileSync(absPath)); - if (base === "package.json") { - const pkg = loader$1(absPath, content); - return transform$2({ - config: getPackageProp(packageProp, pkg), - filepath: absPath - }); - } - const result = { - config: null, - filepath: absPath - }; - const isEmpty = content.trim() === ""; - if (isEmpty && ignoreEmptySearchPlaces) return emplace(loadCache, absPath, transform$2({ - filepath: absPath, - config: void 0, - isEmpty: true - })); - result.config = isEmpty ? void 0 : loader$1(absPath, content); - return emplace(loadCache, absPath, transform$2(isEmpty ? { - ...result, - isEmpty, - config: void 0 - } : result)); - }, - clearLoadCache() { - if (cache$1) loadCache.clear(); - }, - clearSearchCache() { - if (cache$1) searchCache.clear(); - }, - clearCaches() { - if (cache$1) { - loadCache.clear(); - searchCache.clear(); - } - } - }; - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/req.js -var require_req = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/req.js": ((exports, module) => { - const { createRequire: createRequire$2 } = __require("node:module"); - const { fileURLToPath: fileURLToPath$1, pathToFileURL: pathToFileURL$1 } = __require("node:url"); - const TS_EXT_RE = /\.[mc]?ts$/; - let tsx; - let jiti; - let importError = []; - /** - * @param {string} name - * @param {string} rootFile - * @returns {Promise} - */ - async function req$3(name, rootFile = fileURLToPath$1(import.meta.url)) { - let url$3 = createRequire$2(rootFile).resolve(name); - try { - return (await import(`${pathToFileURL$1(url$3)}?t=${Date.now()}`)).default; - } catch (err$2) { - if (!TS_EXT_RE.test(url$3)) - /* c8 ignore start */ - throw err$2; - } - if (tsx === void 0) try { - tsx = await import("tsx/cjs/api"); - } catch (error$1) { - importError.push(error$1); - } - if (tsx) { - let loaded = tsx.require(name, rootFile); - return loaded && "__esModule" in loaded ? loaded.default : loaded; - } - if (jiti === void 0) try { - jiti = (await import("jiti")).default; - } catch (error$1) { - importError.push(error$1); - } - if (jiti) return jiti(rootFile, { interopDefault: true })(name); - throw new Error(`'tsx' or 'jiti' is required for the TypeScript configuration files. Make sure it is installed\nError: ${importError.map((error$1) => error$1.message).join("\n")}`); - } - module.exports = req$3; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/options.js -var require_options = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/options.js": ((exports, module) => { - const req$2 = require_req(); - /** - * Load Options - * - * @private - * @method options - * - * @param {Object} config PostCSS Config - * - * @return {Promise} options PostCSS Options - */ - async function options(config$2, file) { - if (config$2.parser && typeof config$2.parser === "string") try { - config$2.parser = await req$2(config$2.parser, file); - } catch (err$2) { - throw new Error(`Loading PostCSS Parser failed: ${err$2.message}\n\n(@${file})`); - } - if (config$2.syntax && typeof config$2.syntax === "string") try { - config$2.syntax = await req$2(config$2.syntax, file); - } catch (err$2) { - throw new Error(`Loading PostCSS Syntax failed: ${err$2.message}\n\n(@${file})`); - } - if (config$2.stringifier && typeof config$2.stringifier === "string") try { - config$2.stringifier = await req$2(config$2.stringifier, file); - } catch (err$2) { - throw new Error(`Loading PostCSS Stringifier failed: ${err$2.message}\n\n(@${file})`); - } - return config$2; - } - module.exports = options; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/plugins.js -var require_plugins = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/plugins.js": ((exports, module) => { - const req$1 = require_req(); - /** - * Plugin Loader - * - * @private - * @method load - * - * @param {String} plugin PostCSS Plugin Name - * @param {Object} options PostCSS Plugin Options - * - * @return {Promise} PostCSS Plugin - */ - async function load$1(plugin, options$1, file) { - try { - if (options$1 === null || options$1 === void 0 || Object.keys(options$1).length === 0) return await req$1(plugin, file); - else return (await req$1(plugin, file))(options$1); - } catch (err$2) { - throw new Error(`Loading PostCSS Plugin failed: ${err$2.message}\n\n(@${file})`); - } - } - /** - * Load Plugins - * - * @private - * @method plugins - * - * @param {Object} config PostCSS Config Plugins - * - * @return {Promise} plugins PostCSS Plugins - */ - async function plugins(config$2, file) { - let list = []; - if (Array.isArray(config$2.plugins)) list = config$2.plugins.filter(Boolean); - else { - list = Object.entries(config$2.plugins).filter(([, options$1]) => { - return options$1 !== false; - }).map(([plugin, options$1]) => { - return load$1(plugin, options$1, file); - }); - list = await Promise.all(list); - } - if (list.length && list.length > 0) list.forEach((plugin, i$1) => { - if (plugin.default) plugin = plugin.default; - if (plugin.postcss === true) plugin = plugin(); - else if (plugin.postcss) plugin = plugin.postcss; - if (!(typeof plugin === "object" && Array.isArray(plugin.plugins) || typeof plugin === "object" && plugin.postcssPlugin || typeof plugin === "function")) throw new TypeError(`Invalid PostCSS Plugin found at: plugins[${i$1}]\n\n(@${file})`); - }); - return list; - } - module.exports = plugins; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/index.js -var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/index.js": ((exports, module) => { - const { resolve: resolve$2 } = __require("node:path"); - const config$1 = require_src$1(); - const loadOptions = require_options(); - const loadPlugins = require_plugins(); - const req = require_req(); - const interopRequireDefault = (obj) => obj && obj.__esModule ? obj : { default: obj }; - /** - * Process the result from cosmiconfig - * - * @param {Object} ctx Config Context - * @param {Object} result Cosmiconfig result - * - * @return {Promise} PostCSS Config - */ - async function processResult(ctx, result) { - let file = result.filepath || ""; - let projectConfig = interopRequireDefault(result.config).default || {}; - if (typeof projectConfig === "function") projectConfig = projectConfig(ctx); - else projectConfig = Object.assign({}, projectConfig, ctx); - if (!projectConfig.plugins) projectConfig.plugins = []; - let res = { - file, - options: await loadOptions(projectConfig, file), - plugins: await loadPlugins(projectConfig, file) - }; - delete projectConfig.plugins; - return res; - } - /** - * Builds the Config Context - * - * @param {Object} ctx Config Context - * - * @return {Object} Config Context - */ - function createContext(ctx) { - /** - * @type {Object} - * - * @prop {String} cwd=process.cwd() Config search start location - * @prop {String} env=process.env.NODE_ENV Config Enviroment, will be set to `development` by `postcss-load-config` if `process.env.NODE_ENV` is `undefined` - */ - ctx = Object.assign({ - cwd: process.cwd(), - env: process.env.NODE_ENV - }, ctx); - if (!ctx.env) process.env.NODE_ENV = "development"; - return ctx; - } - async function loader(filepath) { - return req(filepath); - } - let yaml; - async function yamlLoader(_, content) { - if (!yaml) try { - yaml = await import("yaml"); - } catch (e$1) { - /* c8 ignore start */ - throw new Error(`'yaml' is required for the YAML configuration files. Make sure it is installed\nError: ${e$1.message}`); - } - return yaml.parse(content); - } - /** @return {import('lilconfig').Options} */ - const withLoaders = (options$1 = {}) => { - let moduleName = "postcss"; - return { - ...options$1, - loaders: { - ...options$1.loaders, - ".cjs": loader, - ".cts": loader, - ".js": loader, - ".mjs": loader, - ".mts": loader, - ".ts": loader, - ".yaml": yamlLoader, - ".yml": yamlLoader - }, - searchPlaces: [ - ...options$1.searchPlaces || [], - "package.json", - `.${moduleName}rc`, - `.${moduleName}rc.json`, - `.${moduleName}rc.yaml`, - `.${moduleName}rc.yml`, - `.${moduleName}rc.ts`, - `.${moduleName}rc.cts`, - `.${moduleName}rc.mts`, - `.${moduleName}rc.js`, - `.${moduleName}rc.cjs`, - `.${moduleName}rc.mjs`, - `${moduleName}.config.ts`, - `${moduleName}.config.cts`, - `${moduleName}.config.mts`, - `${moduleName}.config.js`, - `${moduleName}.config.cjs`, - `${moduleName}.config.mjs` - ] - }; - }; - /** - * Load Config - * - * @method rc - * - * @param {Object} ctx Config Context - * @param {String} path Config Path - * @param {Object} options Config Options - * - * @return {Promise} config PostCSS Config - */ - function rc(ctx, path$13, options$1) { - /** - * @type {Object} The full Config Context - */ - ctx = createContext(ctx); - /** - * @type {String} `process.cwd()` - */ - path$13 = path$13 ? resolve$2(path$13) : process.cwd(); - return config$1.lilconfig("postcss", withLoaders(options$1)).search(path$13).then((result) => { - if (!result) throw new Error(`No PostCSS Config found in: ${path$13}`); - return processResult(ctx, result); - }); - } - /** - * Autoload Config for PostCSS - * - * @author Michael Ciniawsky @michael-ciniawsky - * @license MIT - * - * @module postcss-load-config - * @version 2.1.0 - * - * @requires comsiconfig - * @requires ./options - * @requires ./plugins - */ - module.exports = rc; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/@rollup+plugin-alias@5.1.1_rollup@4.43.0/node_modules/@rollup/plugin-alias/dist/es/index.js -function matches$1(pattern, importee) { - if (pattern instanceof RegExp) return pattern.test(importee); - if (importee.length < pattern.length) return false; - if (importee === pattern) return true; - return importee.startsWith(pattern + "/"); -} -function getEntries({ entries, customResolver }) { - if (!entries) return []; - const resolverFunctionFromOptions = resolveCustomResolver(customResolver); - if (Array.isArray(entries)) return entries.map((entry) => { - return { - find: entry.find, - replacement: entry.replacement, - resolverFunction: resolveCustomResolver(entry.customResolver) || resolverFunctionFromOptions - }; - }); - return Object.entries(entries).map(([key, value$1]) => { - return { - find: key, - replacement: value$1, - resolverFunction: resolverFunctionFromOptions - }; - }); -} -function getHookFunction(hook) { - if (typeof hook === "function") return hook; - if (hook && "handler" in hook && typeof hook.handler === "function") return hook.handler; - return null; -} -function resolveCustomResolver(customResolver) { - if (typeof customResolver === "function") return customResolver; - if (customResolver) return getHookFunction(customResolver.resolveId); - return null; -} -function alias(options$1 = {}) { - const entries = getEntries(options$1); - if (entries.length === 0) return { - name: "alias", - resolveId: () => null - }; - return { - name: "alias", - async buildStart(inputOptions) { - await Promise.all([...Array.isArray(options$1.entries) ? options$1.entries : [], options$1].map(({ customResolver }) => { - var _a; - return customResolver && ((_a = getHookFunction(customResolver.buildStart)) === null || _a === void 0 ? void 0 : _a.call(this, inputOptions)); - })); - }, - resolveId(importee, importer, resolveOptions) { - const matchedEntry = entries.find((entry) => matches$1(entry.find, importee)); - if (!matchedEntry) return null; - const updatedId = importee.replace(matchedEntry.find, matchedEntry.replacement); - if (matchedEntry.resolverFunction) return matchedEntry.resolverFunction.call(this, updatedId, importer, resolveOptions); - return this.resolve(updatedId, importer, Object.assign({ skipSelf: true }, resolveOptions)).then((resolved) => { - if (resolved) return resolved; - if (!path$1.isAbsolute(updatedId)) this.warn(`rewrote ${importee} to ${updatedId} but was not an abolute path and was not handled by other plugins. This will lead to duplicated modules for the same path. To avoid duplicating modules, you should resolve to an absolute path.`); - return { id: updatedId }; - }); - } - }; -} - -//#endregion -//#region src/node/plugins/json.ts -const jsonExtRE = /\.json(?:$|\?)(?!commonjs-(?:proxy|external))/; -const jsonObjRE = /^\s*\{/; -const jsonLangs = `\\.(?:json|json5)(?:$|\\?)`; -const jsonLangRE = new RegExp(jsonLangs); -const isJSONRequest = (request) => jsonLangRE.test(request); -function jsonPlugin(options$1, isBuild) { - return { - name: "vite:json", - transform: { - filter: { id: { - include: jsonExtRE, - exclude: SPECIAL_QUERY_RE - } }, - handler(json, id) { - if (inlineRE$3.test(id) || noInlineRE.test(id)) this.warn("\nUsing ?inline or ?no-inline for JSON imports will have no effect.\nPlease use ?url&inline or ?url&no-inline to control JSON file inlining behavior.\n"); - json = stripBomTag(json); - try { - if (options$1.stringify !== false) { - if (options$1.namedExports && jsonObjRE.test(json)) { - const parsed = JSON.parse(json); - const keys = Object.keys(parsed); - let code = ""; - let defaultObjectCode = "{\n"; - for (const key of keys) if (key === makeLegalIdentifier(key)) { - code += `export const ${key} = ${serializeValue(parsed[key])};\n`; - defaultObjectCode += ` ${key},\n`; - } else defaultObjectCode += ` ${JSON.stringify(key)}: ${serializeValue(parsed[key])},\n`; - defaultObjectCode += "}"; - code += `export default ${defaultObjectCode};\n`; - return { - code, - map: { mappings: "" } - }; - } - if (options$1.stringify === true || json.length > 10 * 1e3) { - if (isBuild) json = JSON.stringify(JSON.parse(json)); - return { - code: `export default /* #__PURE__ */ JSON.parse(${JSON.stringify(json)})`, - map: { mappings: "" } - }; - } - } - return { - code: dataToEsm(JSON.parse(json), { - preferConst: true, - namedExports: options$1.namedExports - }), - map: { mappings: "" } - }; - } catch (e$1) { - const position = extractJsonErrorPosition(e$1.message, json.length); - const msg = position ? `, invalid JSON syntax found at position ${position}` : `.`; - this.error(`Failed to parse JSON file` + msg, position); - } - } - } - }; -} -function serializeValue(value$1) { - const valueAsString = JSON.stringify(value$1); - if (typeof value$1 === "object" && value$1 != null && valueAsString.length > 10 * 1e3) return `/* #__PURE__ */ JSON.parse(${JSON.stringify(valueAsString)})`; - return valueAsString; -} -function extractJsonErrorPosition(errorMessage, inputLength) { - if (errorMessage.startsWith("Unexpected end of JSON input")) return inputLength - 1; - const errorMessageList = /at position (\d+)/.exec(errorMessage); - return errorMessageList ? Math.max(parseInt(errorMessageList[1], 10) - 1, 0) : void 0; -} - -//#endregion -//#region ../../node_modules/.pnpm/resolve.exports@2.0.3/node_modules/resolve.exports/dist/index.mjs -function e(e$1, n$2, r$2) { - throw new Error(r$2 ? `No known conditions for "${n$2}" specifier in "${e$1}" package` : `Missing "${n$2}" specifier in "${e$1}" package`); -} -function n(n$2, i$1, o$1, f$1) { - let s$2, u, l = r$1(n$2, o$1), c = function(e$1) { - let n$3 = new Set(["default", ...e$1.conditions || []]); - return e$1.unsafe || n$3.add(e$1.require ? "require" : "import"), e$1.unsafe || n$3.add(e$1.browser ? "browser" : "node"), n$3; - }(f$1 || {}), a = i$1[l]; - if (void 0 === a) { - let e$1, n$3, r$2, t$1; - for (t$1 in i$1) n$3 && t$1.length < n$3.length || ("/" === t$1[t$1.length - 1] && l.startsWith(t$1) ? (u = l.substring(t$1.length), n$3 = t$1) : t$1.length > 1 && (r$2 = t$1.indexOf("*", 1), ~r$2 && (e$1 = RegExp("^" + t$1.substring(0, r$2) + "(.*)" + t$1.substring(1 + r$2) + "$").exec(l), e$1 && e$1[1] && (u = e$1[1], n$3 = t$1)))); - a = i$1[n$3]; - } - return a || e(n$2, l), s$2 = t(a, c), s$2 || e(n$2, l, 1), u && function(e$1, n$3) { - let r$2, t$1 = 0, i$2 = e$1.length, o$2 = /[*]/g, f$2 = /[/]$/; - for (; t$1 < i$2; t$1++) e$1[t$1] = o$2.test(r$2 = e$1[t$1]) ? r$2.replace(o$2, n$3) : f$2.test(r$2) ? r$2 + n$3 : r$2; - }(s$2, u), s$2; -} -function r$1(e$1, n$2, r$2) { - if (e$1 === n$2 || "." === n$2) return "."; - let t$1 = e$1 + "/", i$1 = t$1.length, o$1 = n$2.slice(0, i$1) === t$1, f$1 = o$1 ? n$2.slice(i$1) : n$2; - return "#" === f$1[0] ? f$1 : o$1 || !r$2 ? "./" === f$1.slice(0, 2) ? f$1 : "./" + f$1 : f$1; -} -function t(e$1, n$2, r$2) { - if (e$1) { - if ("string" == typeof e$1) return r$2 && r$2.add(e$1), [e$1]; - let i$1, o$1; - if (Array.isArray(e$1)) { - for (o$1 = r$2 || /* @__PURE__ */ new Set(), i$1 = 0; i$1 < e$1.length; i$1++) t(e$1[i$1], n$2, o$1); - if (!r$2 && o$1.size) return [...o$1]; - } else for (i$1 in e$1) if (n$2.has(i$1)) return t(e$1[i$1], n$2, r$2); - } -} -function o(e$1, r$2, t$1) { - let i$1, o$1 = e$1.exports; - if (o$1) { - if ("string" == typeof o$1) o$1 = { ".": o$1 }; - else for (i$1 in o$1) { - "." !== i$1[0] && (o$1 = { ".": o$1 }); - break; - } - return n(e$1.name, o$1, r$2 || ".", t$1); - } -} -function f(e$1, r$2, t$1) { - if (e$1.imports) return n(e$1.name, e$1.imports, r$2, t$1); -} - -//#endregion -//#region ../../node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.mjs -const r = String.fromCharCode; -const HASH_RE = /#/g; -const AMPERSAND_RE = /&/g; -const SLASH_RE = /\//g; -const EQUAL_RE = /=/g; -const PLUS_RE = /\+/g; -const ENC_CARET_RE = /%5e/gi; -const ENC_BACKTICK_RE = /%60/gi; -const ENC_PIPE_RE = /%7c/gi; -const ENC_SPACE_RE = /%20/gi; -function encode(text) { - return encodeURI("" + text).replace(ENC_PIPE_RE, "|"); -} -function encodeQueryValue(input) { - return encode(typeof input === "string" ? input : JSON.stringify(input)).replace(PLUS_RE, "%2B").replace(ENC_SPACE_RE, "+").replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CARET_RE, "^").replace(SLASH_RE, "%2F"); -} -function encodeQueryKey(text) { - return encodeQueryValue(text).replace(EQUAL_RE, "%3D"); -} -function encodeQueryItem(key, value$1) { - if (typeof value$1 === "number" || typeof value$1 === "boolean") value$1 = String(value$1); - if (!value$1) return encodeQueryKey(key); - if (Array.isArray(value$1)) return value$1.map((_value) => `${encodeQueryKey(key)}=${encodeQueryValue(_value)}`).join("&"); - return `${encodeQueryKey(key)}=${encodeQueryValue(value$1)}`; -} -function stringifyQuery(query) { - return Object.keys(query).filter((k) => query[k] !== void 0).map((k) => encodeQueryItem(k, query[k])).filter(Boolean).join("&"); -} -const protocolRelative = Symbol.for("ufo:protocolRelative"); - -//#endregion -//#region ../../node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.mjs -const BUILTIN_MODULES = new Set(builtinModules); -function clearImports(imports) { - return (imports || "").replace(/\/\/[^\n]*\n|\/\*.*\*\//g, "").replace(/\s+/g, " "); -} -function getImportNames(cleanedImports) { - const topLevelImports = cleanedImports.replace(/{[^}]*}/, ""); - const namespacedImport = topLevelImports.match(/\* as \s*(\S*)/)?.[1]; - const defaultImport = topLevelImports.split(",").find((index) => !/[*{}]/.test(index))?.trim() || void 0; - return { - namespacedImport, - defaultImport - }; -} -/** -* @typedef ErrnoExceptionFields -* @property {number | undefined} [errnode] -* @property {string | undefined} [code] -* @property {string | undefined} [path] -* @property {string | undefined} [syscall] -* @property {string | undefined} [url] -* -* @typedef {Error & ErrnoExceptionFields} ErrnoException -*/ -const own$1 = {}.hasOwnProperty; -const classRegExp = /^([A-Z][a-z\d]*)+$/; -const kTypes = new Set([ - "string", - "function", - "number", - "object", - "Function", - "Object", - "boolean", - "bigint", - "symbol" -]); -const codes$1 = {}; -/** -* Create a list string in the form like 'A and B' or 'A, B, ..., and Z'. -* We cannot use Intl.ListFormat because it's not available in -* --without-intl builds. -* -* @param {Array} array -* An array of strings. -* @param {string} [type] -* The list type to be inserted before the last element. -* @returns {string} -*/ -function formatList(array, type = "and") { - return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`; -} -/** @type {Map} */ -const messages = /* @__PURE__ */ new Map(); -const nodeInternalPrefix = "__node_internal_"; -/** @type {number} */ -let userStackTraceLimit; -codes$1.ERR_INVALID_ARG_TYPE = createError( - "ERR_INVALID_ARG_TYPE", - /** - * @param {string} name - * @param {Array | string} expected - * @param {unknown} actual - */ - (name, expected, actual) => { - assert(typeof name === "string", "'name' must be a string"); - if (!Array.isArray(expected)) expected = [expected]; - let message = "The "; - if (name.endsWith(" argument")) message += `${name} `; - else { - const type = name.includes(".") ? "property" : "argument"; - message += `"${name}" ${type} `; - } - message += "must be "; - /** @type {Array} */ - const types = []; - /** @type {Array} */ - const instances = []; - /** @type {Array} */ - const other = []; - for (const value$1 of expected) { - assert(typeof value$1 === "string", "All expected entries have to be of type string"); - if (kTypes.has(value$1)) types.push(value$1.toLowerCase()); - else if (classRegExp.exec(value$1) === null) { - assert(value$1 !== "object", "The value \"object\" should be written as \"Object\""); - other.push(value$1); - } else instances.push(value$1); - } - if (instances.length > 0) { - const pos = types.indexOf("object"); - if (pos !== -1) { - types.slice(pos, 1); - instances.push("Object"); - } - } - if (types.length > 0) { - message += `${types.length > 1 ? "one of type" : "of type"} ${formatList(types, "or")}`; - if (instances.length > 0 || other.length > 0) message += " or "; - } - if (instances.length > 0) { - message += `an instance of ${formatList(instances, "or")}`; - if (other.length > 0) message += " or "; - } - if (other.length > 0) if (other.length > 1) message += `one of ${formatList(other, "or")}`; - else { - if (other[0].toLowerCase() !== other[0]) message += "an "; - message += `${other[0]}`; - } - message += `. Received ${determineSpecificType(actual)}`; - return message; - }, - TypeError -); -codes$1.ERR_INVALID_MODULE_SPECIFIER = createError( - "ERR_INVALID_MODULE_SPECIFIER", - /** - * @param {string} request - * @param {string} reason - * @param {string} [base] - */ - (request, reason, base = void 0) => { - return `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ""}`; - }, - TypeError -); -codes$1.ERR_INVALID_PACKAGE_CONFIG = createError( - "ERR_INVALID_PACKAGE_CONFIG", - /** - * @param {string} path - * @param {string} [base] - * @param {string} [message] - */ - (path$13, base, message) => { - return `Invalid package config ${path$13}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`; - }, - Error -); -codes$1.ERR_INVALID_PACKAGE_TARGET = createError( - "ERR_INVALID_PACKAGE_TARGET", - /** - * @param {string} packagePath - * @param {string} key - * @param {unknown} target - * @param {boolean} [isImport=false] - * @param {string} [base] - */ - (packagePath, key, target, isImport = false, base = void 0) => { - const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./"); - if (key === ".") { - assert(isImport === false); - return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? "; targets must start with \"./\"" : ""}`; - } - return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(target)} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? "; targets must start with \"./\"" : ""}`; - }, - Error -); -codes$1.ERR_MODULE_NOT_FOUND = createError( - "ERR_MODULE_NOT_FOUND", - /** - * @param {string} path - * @param {string} base - * @param {boolean} [exactUrl] - */ - (path$13, base, exactUrl = false) => { - return `Cannot find ${exactUrl ? "module" : "package"} '${path$13}' imported from ${base}`; - }, - Error -); -codes$1.ERR_NETWORK_IMPORT_DISALLOWED = createError("ERR_NETWORK_IMPORT_DISALLOWED", "import of '%s' by %s is not supported: %s", Error); -codes$1.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError( - "ERR_PACKAGE_IMPORT_NOT_DEFINED", - /** - * @param {string} specifier - * @param {string} packagePath - * @param {string} base - */ - (specifier, packagePath, base) => { - return `Package import specifier "${specifier}" is not defined${packagePath ? ` in package ${packagePath}package.json` : ""} imported from ${base}`; - }, - TypeError -); -codes$1.ERR_PACKAGE_PATH_NOT_EXPORTED = createError( - "ERR_PACKAGE_PATH_NOT_EXPORTED", - /** - * @param {string} packagePath - * @param {string} subpath - * @param {string} [base] - */ - (packagePath, subpath, base = void 0) => { - if (subpath === ".") return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`; - return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`; - }, - Error -); -codes$1.ERR_UNSUPPORTED_DIR_IMPORT = createError("ERR_UNSUPPORTED_DIR_IMPORT", "Directory import '%s' is not supported resolving ES modules imported from %s", Error); -codes$1.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError("ERR_UNSUPPORTED_RESOLVE_REQUEST", "Failed to resolve module specifier \"%s\" from \"%s\": Invalid relative URL or base scheme is not hierarchical.", TypeError); -codes$1.ERR_UNKNOWN_FILE_EXTENSION = createError( - "ERR_UNKNOWN_FILE_EXTENSION", - /** - * @param {string} extension - * @param {string} path - */ - (extension$1, path$13) => { - return `Unknown file extension "${extension$1}" for ${path$13}`; - }, - TypeError -); -codes$1.ERR_INVALID_ARG_VALUE = createError( - "ERR_INVALID_ARG_VALUE", - /** - * @param {string} name - * @param {unknown} value - * @param {string} [reason='is invalid'] - */ - (name, value$1, reason = "is invalid") => { - let inspected = inspect(value$1); - if (inspected.length > 128) inspected = `${inspected.slice(0, 128)}...`; - const type = name.includes(".") ? "property" : "argument"; - return `The ${type} '${name}' ${reason}. Received ${inspected}`; - }, - TypeError -); -/** -* Utility function for registering the error codes. Only used here. Exported -* *only* to allow for testing. -* @param {string} sym -* @param {MessageFunction | string} value -* @param {ErrorConstructor} constructor -* @returns {new (...parameters: Array) => Error} -*/ -function createError(sym, value$1, constructor) { - messages.set(sym, value$1); - return makeNodeErrorWithCode(constructor, sym); -} -/** -* @param {ErrorConstructor} Base -* @param {string} key -* @returns {ErrorConstructor} -*/ -function makeNodeErrorWithCode(Base, key) { - return NodeError; - /** - * @param {Array} parameters - */ - function NodeError(...parameters) { - const limit = Error.stackTraceLimit; - if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0; - const error$1 = new Base(); - if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit; - const message = getMessage(key, parameters, error$1); - Object.defineProperties(error$1, { - message: { - value: message, - enumerable: false, - writable: true, - configurable: true - }, - toString: { - value() { - return `${this.name} [${key}]: ${this.message}`; - }, - enumerable: false, - writable: true, - configurable: true - } - }); - captureLargerStackTrace(error$1); - error$1.code = key; - return error$1; - } -} -/** -* @returns {boolean} -*/ -function isErrorStackTraceLimitWritable() { - try { - if (v8.startupSnapshot.isBuildingSnapshot()) return false; - } catch {} - const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit"); - if (desc === void 0) return Object.isExtensible(Error); - return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0; -} -/** -* This function removes unnecessary frames from Node.js core errors. -* @template {(...parameters: unknown[]) => unknown} T -* @param {T} wrappedFunction -* @returns {T} -*/ -function hideStackFrames(wrappedFunction) { - const hidden = nodeInternalPrefix + wrappedFunction.name; - Object.defineProperty(wrappedFunction, "name", { value: hidden }); - return wrappedFunction; -} -const captureLargerStackTrace = hideStackFrames( - /** - * @param {Error} error - * @returns {Error} - */ - function(error$1) { - const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable(); - if (stackTraceLimitIsWritable) { - userStackTraceLimit = Error.stackTraceLimit; - Error.stackTraceLimit = Number.POSITIVE_INFINITY; - } - Error.captureStackTrace(error$1); - if (stackTraceLimitIsWritable) Error.stackTraceLimit = userStackTraceLimit; - return error$1; - } -); -/** -* @param {string} key -* @param {Array} parameters -* @param {Error} self -* @returns {string} -*/ -function getMessage(key, parameters, self$1) { - const message = messages.get(key); - assert(message !== void 0, "expected `message` to be found"); - if (typeof message === "function") { - assert(message.length <= parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`); - return Reflect.apply(message, self$1, parameters); - } - const regex = /%[dfijoOs]/g; - let expectedLength = 0; - while (regex.exec(message) !== null) expectedLength++; - assert(expectedLength === parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`); - if (parameters.length === 0) return message; - parameters.unshift(message); - return Reflect.apply(format, null, parameters); -} -/** -* Determine the specific type of a value for type-mismatch errors. -* @param {unknown} value -* @returns {string} -*/ -function determineSpecificType(value$1) { - if (value$1 === null || value$1 === void 0) return String(value$1); - if (typeof value$1 === "function" && value$1.name) return `function ${value$1.name}`; - if (typeof value$1 === "object") { - if (value$1.constructor && value$1.constructor.name) return `an instance of ${value$1.constructor.name}`; - return `${inspect(value$1, { depth: -1 })}`; - } - let inspected = inspect(value$1, { colors: false }); - if (inspected.length > 28) inspected = `${inspected.slice(0, 25)}...`; - return `type ${typeof value$1} (${inspected})`; -} -const hasOwnProperty$1 = {}.hasOwnProperty; -const { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes$1; -const { ERR_UNKNOWN_FILE_EXTENSION } = codes$1; -const hasOwnProperty$2 = {}.hasOwnProperty; -const RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace]; -const { ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST } = codes$1; -const own = {}.hasOwnProperty; -const ESM_STATIC_IMPORT_RE = /(?<=\s|^|;|\})import\s*(?:[\s"']*(?[\p{L}\p{M}\w\t\n\r $*,/{}@.]+)from\s*)?["']\s*(?(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gmu; -const TYPE_RE = /^\s*?type\s/; -function parseStaticImport(matched) { - const cleanedImports = clearImports(matched.imports); - const namedImports = {}; - const _matches = cleanedImports.match(/{([^}]*)}/)?.[1]?.split(",") || []; - for (const namedImport of _matches) { - const _match = namedImport.match(/^\s*(\S*) as (\S*)\s*$/); - const source = _match?.[1] || namedImport.trim(); - const importName = _match?.[2] || source; - if (source && !TYPE_RE.test(source)) namedImports[source] = importName; - } - const { namespacedImport, defaultImport } = getImportNames(cleanedImports); - return { - ...matched, - defaultImport, - namespacedImport, - namedImports - }; -} -const ESM_RE = /(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m; -const COMMENT_RE = /\/\*.+?\*\/|\/\/.*(?=[nr])/g; -function hasESMSyntax(code, opts = {}) { - if (opts.stripComments) code = code.replace(COMMENT_RE, ""); - return ESM_RE.test(code); -} - -//#endregion -//#region src/node/optimizer/esbuildDepPlugin.ts -const externalWithConversionNamespace = "vite:dep-pre-bundle:external-conversion"; -const convertedExternalPrefix = "vite-dep-pre-bundle-external:"; -const cjsExternalFacadeNamespace = "vite:cjs-external-facade"; -const nonFacadePrefix = "vite-cjs-external-facade:"; -const externalTypes = [ - "css", - "less", - "sass", - "scss", - "styl", - "stylus", - "pcss", - "postcss", - "wasm", - "vue", - "svelte", - "marko", - "astro", - "imba", - "jsx", - "tsx", - ...KNOWN_ASSET_TYPES -]; -function esbuildDepPlugin(environment, qualified, external) { - const { isProduction } = environment.config; - const { extensions: extensions$1 } = environment.config.optimizeDeps; - const allExternalTypes = extensions$1 ? externalTypes.filter((type) => !extensions$1.includes("." + type)) : externalTypes; - const esmPackageCache = /* @__PURE__ */ new Map(); - const cjsPackageCache = /* @__PURE__ */ new Map(); - const _resolve = createBackCompatIdResolver(environment.getTopLevelConfig(), { - asSrc: false, - scan: true, - packageCache: esmPackageCache - }); - const _resolveRequire = createBackCompatIdResolver(environment.getTopLevelConfig(), { - asSrc: false, - isRequire: true, - scan: true, - packageCache: cjsPackageCache - }); - const resolve$4 = (id, importer, kind, resolveDir) => { - let _importer; - if (resolveDir) _importer = normalizePath(path.join(resolveDir, "*")); - else _importer = importer in qualified ? qualified[importer] : importer; - const resolver$1 = kind.startsWith("require") ? _resolveRequire : _resolve; - return resolver$1(environment, id, _importer); - }; - const resolveResult = (id, resolved) => { - if (resolved.startsWith(browserExternalId)) return { - path: id, - namespace: "browser-external" - }; - if (resolved.startsWith(optionalPeerDepId)) return { - path: resolved, - namespace: "optional-peer-dep" - }; - if (isBuiltin(environment.config.resolve.builtins, resolved)) return; - if (isExternalUrl(resolved)) return { - path: resolved, - external: true - }; - return { path: path.resolve(resolved) }; - }; - return { - name: "vite:dep-pre-bundle", - setup(build$3) { - build$3.onEnd(() => { - esmPackageCache.clear(); - cjsPackageCache.clear(); - }); - build$3.onResolve({ filter: /* @__PURE__ */ new RegExp(`\\.(` + allExternalTypes.join("|") + `)(\\?.*)?$`) }, async ({ path: id, importer, kind }) => { - if (id.startsWith(convertedExternalPrefix)) return { - path: id.slice(29), - external: true - }; - const resolved = await resolve$4(id, importer, kind); - if (resolved) { - if (JS_TYPES_RE.test(resolved)) return { - path: resolved, - external: false - }; - if (kind === "require-call") return { - path: resolved, - namespace: externalWithConversionNamespace - }; - return { - path: resolved, - external: true - }; - } - }); - build$3.onLoad({ - filter: /./, - namespace: externalWithConversionNamespace - }, (args) => { - const modulePath = `"${convertedExternalPrefix}${args.path}"`; - return { - contents: isCSSRequest(args.path) && !isModuleCSSRequest(args.path) ? `import ${modulePath};` : `export { default } from ${modulePath};export * from ${modulePath};`, - loader: "js" - }; - }); - function resolveEntry(id) { - const flatId = flattenId(id); - if (flatId in qualified) return { path: qualified[flatId] }; - } - build$3.onResolve({ filter: /^[\w@][^:]/ }, async ({ path: id, importer, kind }) => { - if (moduleListContains(external, id)) return { - path: id, - external: true - }; - let entry; - if (!importer) { - if (entry = resolveEntry(id)) return entry; - const aliased = await _resolve(environment, id, void 0, true); - if (aliased && (entry = resolveEntry(aliased))) return entry; - } - const resolved = await resolve$4(id, importer, kind); - if (resolved) return resolveResult(id, resolved); - }); - build$3.onLoad({ - filter: /.*/, - namespace: "browser-external" - }, ({ path: path$13 }) => { - if (isProduction) return { contents: "module.exports = {}" }; - else return { contents: `\ -module.exports = Object.create(new Proxy({}, { - get(_, key) { - if ( - key !== '__esModule' && - key !== '__proto__' && - key !== 'constructor' && - key !== 'splice' - ) { - console.warn(\`Module "${path$13}" has been externalized for browser compatibility. Cannot access "${path$13}.\${key}" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.\`) - } - } -}))` }; - }); - build$3.onLoad({ - filter: /.*/, - namespace: "optional-peer-dep" - }, ({ path: path$13 }) => { - const [, peerDep, parentDep] = path$13.split(":"); - return { contents: `module.exports = {};throw new Error(\`Could not resolve "${peerDep}" imported by "${parentDep}".${isProduction ? "" : " Is it installed?"}\`)` }; - }); - } - }; -} -const matchesEntireLine = (text) => `^${escapeRegex(text)}$`; -function esbuildCjsExternalPlugin(externals, platform$2) { - return { - name: "cjs-external", - setup(build$3) { - const filter$1 = new RegExp(externals.map(matchesEntireLine).join("|")); - build$3.onResolve({ filter: /* @__PURE__ */ new RegExp(`^${nonFacadePrefix}`) }, (args) => { - return { - path: args.path.slice(25), - external: true - }; - }); - build$3.onResolve({ filter: filter$1 }, (args) => { - if (args.kind === "require-call" && platform$2 !== "node") return { - path: args.path, - namespace: cjsExternalFacadeNamespace - }; - return { - path: args.path, - external: true - }; - }); - build$3.onLoad({ - filter: /.*/, - namespace: cjsExternalFacadeNamespace - }, (args) => ({ contents: `\ -import * as m from ${JSON.stringify(nonFacadePrefix + args.path)}; -module.exports = ${isNodeBuiltin(args.path) ? "m.default" : "{ ...m }"}; -` })); - } - }; -} - -//#endregion -//#region src/node/baseEnvironment.ts -var import_picocolors$29 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -const environmentColors = [ - import_picocolors$29.default.blue, - import_picocolors$29.default.magenta, - import_picocolors$29.default.green, - import_picocolors$29.default.gray -]; -var PartialEnvironment = class { - name; - getTopLevelConfig() { - return this._topLevelConfig; - } - config; - logger; - /** - * @internal - */ - _options; - /** - * @internal - */ - _topLevelConfig; - constructor(name, topLevelConfig, options$1 = topLevelConfig.environments[name]) { - if (!/^[\w$]+$/.test(name)) throw new Error(`Invalid environment name "${name}". Environment names must only contain alphanumeric characters and "$", "_".`); - this.name = name; - this._topLevelConfig = topLevelConfig; - this._options = options$1; - this.config = new Proxy(options$1, { get: (target, prop) => { - if (prop === "logger") return this.logger; - if (prop in target) return this._options[prop]; - return this._topLevelConfig[prop]; - } }); - const environment = import_picocolors$29.default.dim(`(${this.name})`); - const colorIndex = [...this.name].reduce((acc, c) => acc + c.charCodeAt(0), 0) % environmentColors.length; - const infoColor = environmentColors[colorIndex || 0]; - this.logger = { - get hasWarned() { - return topLevelConfig.logger.hasWarned; - }, - info(msg, opts) { - return topLevelConfig.logger.info(msg, { - ...opts, - environment: infoColor(environment) - }); - }, - warn(msg, opts) { - return topLevelConfig.logger.warn(msg, { - ...opts, - environment: import_picocolors$29.default.yellow(environment) - }); - }, - warnOnce(msg, opts) { - return topLevelConfig.logger.warnOnce(msg, { - ...opts, - environment: import_picocolors$29.default.yellow(environment) - }); - }, - error(msg, opts) { - return topLevelConfig.logger.error(msg, { - ...opts, - environment: import_picocolors$29.default.red(environment) - }); - }, - clearScreen(type) { - return topLevelConfig.logger.clearScreen(type); - }, - hasErrorLogged(error$1) { - return topLevelConfig.logger.hasErrorLogged(error$1); - } - }; - } -}; -var BaseEnvironment = class extends PartialEnvironment { - get plugins() { - return this.config.plugins; - } - /** - * @internal - */ - _initiated = false; - constructor(name, config$2, options$1 = config$2.environments[name]) { - super(name, config$2, options$1); - } -}; - -//#endregion -//#region ../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js -var require_js_tokens = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js": ((exports, module) => { - var HashbangComment, Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace, jsTokens$1; - RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy; - Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y; - Identifier = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy; - StringLiteral = /(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y; - NumericLiteral = /(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y; - Template = /[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y; - WhiteSpace = /[\t\v\f\ufeff\p{Zs}]+/uy; - LineTerminatorSequence = /\r?\n|[\r\u2028\u2029]/y; - MultiLineComment = /\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y; - SingleLineComment = /\/\/.*/y; - HashbangComment = /^#!.*/; - JSXPunctuator = /[<>.:={}]|\/(?![\/*])/y; - JSXIdentifier = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy; - JSXString = /(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y; - JSXText = /[^<>{}]+/y; - TokensPrecedingExpression = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/; - TokensNotPrecedingObjectLiteral = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/; - KeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/; - KeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/; - Newline = RegExp(LineTerminatorSequence.source); - module.exports = jsTokens$1 = function* (input, { jsx = false } = {}) { - var braces$2, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack; - ({length} = input); - lastIndex = 0; - lastSignificantToken = ""; - stack = [{ tag: "JS" }]; - braces$2 = []; - parenNesting = 0; - postfixIncDec = false; - if (match = HashbangComment.exec(input)) { - yield { - type: "HashbangComment", - value: match[0] - }; - lastIndex = match[0].length; - } - while (lastIndex < length) { - mode = stack[stack.length - 1]; - switch (mode.tag) { - case "JS": - case "JSNonExpressionParen": - case "InterpolationInTemplate": - case "InterpolationInJSX": - if (input[lastIndex] === "/" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) { - RegularExpressionLiteral.lastIndex = lastIndex; - if (match = RegularExpressionLiteral.exec(input)) { - lastIndex = RegularExpressionLiteral.lastIndex; - lastSignificantToken = match[0]; - postfixIncDec = true; - yield { - type: "RegularExpressionLiteral", - value: match[0], - closed: match[1] !== void 0 && match[1] !== "\\" - }; - continue; - } - } - Punctuator.lastIndex = lastIndex; - if (match = Punctuator.exec(input)) { - punctuator = match[0]; - nextLastIndex = Punctuator.lastIndex; - nextLastSignificantToken = punctuator; - switch (punctuator) { - case "(": - if (lastSignificantToken === "?NonExpressionParenKeyword") stack.push({ - tag: "JSNonExpressionParen", - nesting: parenNesting - }); - parenNesting++; - postfixIncDec = false; - break; - case ")": - parenNesting--; - postfixIncDec = true; - if (mode.tag === "JSNonExpressionParen" && parenNesting === mode.nesting) { - stack.pop(); - nextLastSignificantToken = "?NonExpressionParenEnd"; - postfixIncDec = false; - } - break; - case "{": - Punctuator.lastIndex = 0; - isExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken)); - braces$2.push(isExpression); - postfixIncDec = false; - break; - case "}": - switch (mode.tag) { - case "InterpolationInTemplate": - if (braces$2.length === mode.nesting) { - Template.lastIndex = lastIndex; - match = Template.exec(input); - lastIndex = Template.lastIndex; - lastSignificantToken = match[0]; - if (match[1] === "${") { - lastSignificantToken = "?InterpolationInTemplate"; - postfixIncDec = false; - yield { - type: "TemplateMiddle", - value: match[0] - }; - } else { - stack.pop(); - postfixIncDec = true; - yield { - type: "TemplateTail", - value: match[0], - closed: match[1] === "`" - }; - } - continue; - } - break; - case "InterpolationInJSX": if (braces$2.length === mode.nesting) { - stack.pop(); - lastIndex += 1; - lastSignificantToken = "}"; - yield { - type: "JSXPunctuator", - value: "}" - }; - continue; - } - } - postfixIncDec = braces$2.pop(); - nextLastSignificantToken = postfixIncDec ? "?ExpressionBraceEnd" : "}"; - break; - case "]": - postfixIncDec = true; - break; - case "++": - case "--": - nextLastSignificantToken = postfixIncDec ? "?PostfixIncDec" : "?UnaryIncDec"; - break; - case "<": - if (jsx && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) { - stack.push({ tag: "JSXTag" }); - lastIndex += 1; - lastSignificantToken = "<"; - yield { - type: "JSXPunctuator", - value: punctuator - }; - continue; - } - postfixIncDec = false; - break; - default: postfixIncDec = false; - } - lastIndex = nextLastIndex; - lastSignificantToken = nextLastSignificantToken; - yield { - type: "Punctuator", - value: punctuator - }; - continue; - } - Identifier.lastIndex = lastIndex; - if (match = Identifier.exec(input)) { - lastIndex = Identifier.lastIndex; - nextLastSignificantToken = match[0]; - switch (match[0]) { - case "for": - case "if": - case "while": - case "with": if (lastSignificantToken !== "." && lastSignificantToken !== "?.") nextLastSignificantToken = "?NonExpressionParenKeyword"; - } - lastSignificantToken = nextLastSignificantToken; - postfixIncDec = !KeywordsWithExpressionAfter.test(match[0]); - yield { - type: match[1] === "#" ? "PrivateIdentifier" : "IdentifierName", - value: match[0] - }; - continue; - } - StringLiteral.lastIndex = lastIndex; - if (match = StringLiteral.exec(input)) { - lastIndex = StringLiteral.lastIndex; - lastSignificantToken = match[0]; - postfixIncDec = true; - yield { - type: "StringLiteral", - value: match[0], - closed: match[2] !== void 0 - }; - continue; - } - NumericLiteral.lastIndex = lastIndex; - if (match = NumericLiteral.exec(input)) { - lastIndex = NumericLiteral.lastIndex; - lastSignificantToken = match[0]; - postfixIncDec = true; - yield { - type: "NumericLiteral", - value: match[0] - }; - continue; - } - Template.lastIndex = lastIndex; - if (match = Template.exec(input)) { - lastIndex = Template.lastIndex; - lastSignificantToken = match[0]; - if (match[1] === "${") { - lastSignificantToken = "?InterpolationInTemplate"; - stack.push({ - tag: "InterpolationInTemplate", - nesting: braces$2.length - }); - postfixIncDec = false; - yield { - type: "TemplateHead", - value: match[0] - }; - } else { - postfixIncDec = true; - yield { - type: "NoSubstitutionTemplate", - value: match[0], - closed: match[1] === "`" - }; - } - continue; - } - break; - case "JSXTag": - case "JSXTagEnd": - JSXPunctuator.lastIndex = lastIndex; - if (match = JSXPunctuator.exec(input)) { - lastIndex = JSXPunctuator.lastIndex; - nextLastSignificantToken = match[0]; - switch (match[0]) { - case "<": - stack.push({ tag: "JSXTag" }); - break; - case ">": - stack.pop(); - if (lastSignificantToken === "/" || mode.tag === "JSXTagEnd") { - nextLastSignificantToken = "?JSX"; - postfixIncDec = true; - } else stack.push({ tag: "JSXChildren" }); - break; - case "{": - stack.push({ - tag: "InterpolationInJSX", - nesting: braces$2.length - }); - nextLastSignificantToken = "?InterpolationInJSX"; - postfixIncDec = false; - break; - case "/": if (lastSignificantToken === "<") { - stack.pop(); - if (stack[stack.length - 1].tag === "JSXChildren") stack.pop(); - stack.push({ tag: "JSXTagEnd" }); - } - } - lastSignificantToken = nextLastSignificantToken; - yield { - type: "JSXPunctuator", - value: match[0] - }; - continue; - } - JSXIdentifier.lastIndex = lastIndex; - if (match = JSXIdentifier.exec(input)) { - lastIndex = JSXIdentifier.lastIndex; - lastSignificantToken = match[0]; - yield { - type: "JSXIdentifier", - value: match[0] - }; - continue; - } - JSXString.lastIndex = lastIndex; - if (match = JSXString.exec(input)) { - lastIndex = JSXString.lastIndex; - lastSignificantToken = match[0]; - yield { - type: "JSXString", - value: match[0], - closed: match[2] !== void 0 - }; - continue; - } - break; - case "JSXChildren": - JSXText.lastIndex = lastIndex; - if (match = JSXText.exec(input)) { - lastIndex = JSXText.lastIndex; - lastSignificantToken = match[0]; - yield { - type: "JSXText", - value: match[0] - }; - continue; - } - switch (input[lastIndex]) { - case "<": - stack.push({ tag: "JSXTag" }); - lastIndex++; - lastSignificantToken = "<"; - yield { - type: "JSXPunctuator", - value: "<" - }; - continue; - case "{": - stack.push({ - tag: "InterpolationInJSX", - nesting: braces$2.length - }); - lastIndex++; - lastSignificantToken = "?InterpolationInJSX"; - postfixIncDec = false; - yield { - type: "JSXPunctuator", - value: "{" - }; - continue; - } - } - WhiteSpace.lastIndex = lastIndex; - if (match = WhiteSpace.exec(input)) { - lastIndex = WhiteSpace.lastIndex; - yield { - type: "WhiteSpace", - value: match[0] - }; - continue; - } - LineTerminatorSequence.lastIndex = lastIndex; - if (match = LineTerminatorSequence.exec(input)) { - lastIndex = LineTerminatorSequence.lastIndex; - postfixIncDec = false; - if (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) lastSignificantToken = "?NoLineTerminatorHere"; - yield { - type: "LineTerminatorSequence", - value: match[0] - }; - continue; - } - MultiLineComment.lastIndex = lastIndex; - if (match = MultiLineComment.exec(input)) { - lastIndex = MultiLineComment.lastIndex; - if (Newline.test(match[0])) { - postfixIncDec = false; - if (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) lastSignificantToken = "?NoLineTerminatorHere"; - } - yield { - type: "MultiLineComment", - value: match[0], - closed: match[1] !== void 0 - }; - continue; - } - SingleLineComment.lastIndex = lastIndex; - if (match = SingleLineComment.exec(input)) { - lastIndex = SingleLineComment.lastIndex; - postfixIncDec = false; - yield { - type: "SingleLineComment", - value: match[0] - }; - continue; - } - firstCodePoint = String.fromCodePoint(input.codePointAt(lastIndex)); - lastIndex += firstCodePoint.length; - lastSignificantToken = firstCodePoint; - postfixIncDec = false; - yield { - type: mode.tag.startsWith("JSX") ? "JSXInvalid" : "Invalid", - value: firstCodePoint - }; - } - return void 0; - }; -}) }); - -//#endregion -//#region ../../node_modules/.pnpm/strip-literal@3.0.0/node_modules/strip-literal/dist/index.mjs -var import_js_tokens = /* @__PURE__ */ __toESM(require_js_tokens(), 1); -function stripLiteralJsTokens(code, options$1) { - const FILL = options$1?.fillChar ?? " "; - const FILL_COMMENT = " "; - let result = ""; - const filter$1 = options$1?.filter ?? (() => true); - const tokens = []; - for (const token of (0, import_js_tokens.default)(code, { jsx: false })) { - tokens.push(token); - if (token.type === "SingleLineComment") { - result += FILL_COMMENT.repeat(token.value.length); - continue; - } - if (token.type === "MultiLineComment") { - result += token.value.replace(/[^\n]/g, FILL_COMMENT); - continue; - } - if (token.type === "StringLiteral") { - if (!token.closed) { - result += token.value; - continue; - } - const body = token.value.slice(1, -1); - if (filter$1(body)) { - result += token.value[0] + FILL.repeat(body.length) + token.value[token.value.length - 1]; - continue; - } - } - if (token.type === "NoSubstitutionTemplate") { - const body = token.value.slice(1, -1); - if (filter$1(body)) { - result += `\`${body.replace(/[^\n]/g, FILL)}\``; - continue; - } - } - if (token.type === "RegularExpressionLiteral") { - const body = token.value; - if (filter$1(body)) { - result += body.replace(/\/(.*)\/(\w?)$/g, (_, $1, $2) => `/${FILL.repeat($1.length)}/${$2}`); - continue; - } - } - if (token.type === "TemplateHead") { - const body = token.value.slice(1, -2); - if (filter$1(body)) { - result += `\`${body.replace(/[^\n]/g, FILL)}\${`; - continue; - } - } - if (token.type === "TemplateTail") { - const body = token.value.slice(0, -2); - if (filter$1(body)) { - result += `}${body.replace(/[^\n]/g, FILL)}\``; - continue; - } - } - if (token.type === "TemplateMiddle") { - const body = token.value.slice(1, -2); - if (filter$1(body)) { - result += `}${body.replace(/[^\n]/g, FILL)}\${`; - continue; - } - } - result += token.value; - } - return { - result, - tokens - }; -} -function stripLiteral(code, options$1) { - return stripLiteralDetailed(code, options$1).result; -} -function stripLiteralDetailed(code, options$1) { - return stripLiteralJsTokens(code, options$1); -} - -//#endregion -//#region src/node/plugins/importMetaGlob.ts -var import_picocolors$28 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -function importGlobPlugin(config$2) { - const importGlobMaps = /* @__PURE__ */ new Map(); - return { - name: "vite:import-glob", - buildStart() { - importGlobMaps.clear(); - }, - transform: { - filter: { code: "import.meta.glob" }, - async handler(code, id) { - const result = await transformGlobImport(code, id, config$2.root, (im, _, options$1) => this.resolve(im, id, options$1).then((i$1) => i$1?.id || im), config$2.experimental.importGlobRestoreExtension, config$2.logger); - if (result) { - const allGlobs = result.matches.map((i$1) => i$1.globsResolved); - if (!importGlobMaps.has(this.environment)) importGlobMaps.set(this.environment, /* @__PURE__ */ new Map()); - const globMatchers = allGlobs.map((globs) => { - const affirmed = []; - const negated = []; - for (const glob$1 of globs) (glob$1[0] === "!" ? negated : affirmed).push(glob$1); - const affirmedMatcher = picomatch(affirmed); - const negatedMatcher = picomatch(negated); - return (file) => { - return (affirmed.length === 0 || affirmedMatcher(file)) && !(negated.length > 0 && negatedMatcher(file)); - }; - }); - importGlobMaps.get(this.environment).set(id, globMatchers); - return transformStableResult(result.s, id, config$2); - } - } - }, - hotUpdate({ type, file, modules: oldModules }) { - if (type === "update") return; - const importGlobMap = importGlobMaps.get(this.environment); - if (!importGlobMap) return; - const modules = []; - for (const [id, globMatchers] of importGlobMap) if (globMatchers.some((matcher) => matcher(file))) { - const mod = this.environment.moduleGraph.getModuleById(id); - if (mod) modules.push(mod); - } - return modules.length > 0 ? [...oldModules, ...modules] : void 0; - } - }; -} -const importGlobRE = /\bimport\.meta\.glob(?:<\w+>)?\s*\(/g; -const objectKeysRE = /\bObject\.keys\(\s*$/; -const objectValuesRE = /\bObject\.values\(\s*$/; -const knownOptions = { - as: ["string"], - eager: ["boolean"], - import: ["string"], - exhaustive: ["boolean"], - query: ["object", "string"], - base: ["string"] -}; -const forceDefaultAs = ["raw", "url"]; -function err$1(e$1, pos) { - const error$1 = new Error(e$1); - error$1.pos = pos; - return error$1; -} -function parseGlobOptions(rawOpts, optsStartIndex, logger) { - let opts = {}; - try { - opts = evalValue(rawOpts); - } catch { - throw err$1("Vite is unable to parse the glob options as the value is not static", optsStartIndex); - } - if (opts == null) return {}; - for (const key in opts) { - if (!(key in knownOptions)) throw err$1(`Unknown glob option "${key}"`, optsStartIndex); - const allowedTypes = knownOptions[key]; - const valueType = typeof opts[key]; - if (!allowedTypes.includes(valueType)) throw err$1(`Expected glob option "${key}" to be of type ${allowedTypes.join(" or ")}, but got ${valueType}`, optsStartIndex); - } - if (opts.base) { - if (opts.base[0] === "!") throw err$1("Option \"base\" cannot start with \"!\"", optsStartIndex); - else if (opts.base[0] !== "/" && !opts.base.startsWith("./") && !opts.base.startsWith("../")) throw err$1(`Option "base" must start with '/', './' or '../', but got "${opts.base}"`, optsStartIndex); - } - if (typeof opts.query === "object") { - for (const key in opts.query) { - const value$1 = opts.query[key]; - if (![ - "string", - "number", - "boolean" - ].includes(typeof value$1)) throw err$1(`Expected glob option "query.${key}" to be of type string, number, or boolean, but got ${typeof value$1}`, optsStartIndex); - } - opts.query = stringifyQuery(opts.query); - } - if (opts.as && logger) { - const importSuggestion = forceDefaultAs.includes(opts.as) ? `, import: 'default'` : ""; - logger.warn(import_picocolors$28.default.yellow(`The glob option "as" has been deprecated in favour of "query". Please update \`as: '${opts.as}'\` to \`query: '?${opts.as}'${importSuggestion}\`.`)); - } - if (opts.as && forceDefaultAs.includes(opts.as)) { - if (opts.import && opts.import !== "default" && opts.import !== "*") throw err$1(`Option "import" can only be "default" or "*" when "as" is "${opts.as}", but got "${opts.import}"`, optsStartIndex); - opts.import = opts.import || "default"; - } - if (opts.as && opts.query) throw err$1("Options \"as\" and \"query\" cannot be used together", optsStartIndex); - if (opts.as) opts.query = opts.as; - if (opts.query && opts.query[0] !== "?") opts.query = `?${opts.query}`; - return opts; -} -async function parseImportGlob(code, importer, root, resolveId, logger) { - let cleanCode; - try { - cleanCode = stripLiteral(code); - } catch { - return []; - } - const matches$2 = Array.from(cleanCode.matchAll(importGlobRE)); - const tasks = matches$2.map(async (match, index) => { - const start = match.index; - const err$2 = (msg) => { - const e$1 = /* @__PURE__ */ new Error(`Invalid glob import syntax: ${msg}`); - e$1.pos = start; - return e$1; - }; - const end = findCorrespondingCloseParenthesisPosition(cleanCode, start + match[0].length) + 1; - if (end <= 0) throw err$2("Close parenthesis not found"); - const statementCode = code.slice(start, end); - const rootAst = (await parseAstAsync(statementCode)).body[0]; - if (rootAst.type !== "ExpressionStatement") throw err$2(`Expect CallExpression, got ${rootAst.type}`); - const ast = rootAst.expression; - if (ast.type !== "CallExpression") throw err$2(`Expect CallExpression, got ${ast.type}`); - if (ast.arguments.length < 1 || ast.arguments.length > 2) throw err$2(`Expected 1-2 arguments, but got ${ast.arguments.length}`); - const arg1 = ast.arguments[0]; - const arg2 = ast.arguments[1]; - const globs = []; - const validateLiteral = (element) => { - if (!element) return; - if (element.type === "Literal") { - if (typeof element.value !== "string") throw err$2(`Expected glob to be a string, but got "${typeof element.value}"`); - globs.push(element.value); - } else if (element.type === "TemplateLiteral") { - if (element.expressions.length !== 0) throw err$2(`Expected glob to be a string, but got dynamic template literal`); - globs.push(element.quasis[0].value.raw); - } else throw err$2("Could only use literals"); - }; - if (arg1.type === "ArrayExpression") for (const element of arg1.elements) validateLiteral(element); - else validateLiteral(arg1); - let options$1 = {}; - if (arg2) { - if (arg2.type !== "ObjectExpression") throw err$2(`Expected the second argument to be an object literal, but got "${arg2.type}"`); - options$1 = parseGlobOptions(code.slice(start + arg2.start, start + arg2.end), start + arg2.start, logger); - } - const globsResolved = await Promise.all(globs.map((glob$1) => toAbsoluteGlob(glob$1, root, importer, resolveId, options$1.base))); - const isRelative$1 = globs.every((i$1) => ".!".includes(i$1[0])); - const sliceCode = cleanCode.slice(0, start); - const onlyKeys = objectKeysRE.test(sliceCode); - let onlyValues = false; - if (!onlyKeys) onlyValues = objectValuesRE.test(sliceCode); - return { - index, - globs, - globsResolved, - isRelative: isRelative$1, - options: options$1, - start, - end, - onlyKeys, - onlyValues - }; - }); - return (await Promise.all(tasks)).filter(Boolean); -} -function findCorrespondingCloseParenthesisPosition(cleanCode, openPos) { - const closePos = cleanCode.indexOf(")", openPos); - if (closePos < 0) return -1; - if (!cleanCode.slice(openPos, closePos).includes("(")) return closePos; - let remainingParenthesisCount = 0; - const cleanCodeLen = cleanCode.length; - for (let pos = openPos; pos < cleanCodeLen; pos++) switch (cleanCode[pos]) { - case "(": - remainingParenthesisCount++; - break; - case ")": - remainingParenthesisCount--; - if (remainingParenthesisCount <= 0) return pos; - } - return -1; -} -const importPrefix = "__vite_glob_"; -const { basename: basename$2, dirname: dirname$2, relative: relative$2 } = posix; -/** -* @param optimizeExport for dynamicImportVar plugin don't need to optimize export. -*/ -async function transformGlobImport(code, id, root, resolveId, restoreQueryExtension = false, logger) { - id = slash(id); - root = slash(root); - const isVirtual = isVirtualModule(id); - const dir = isVirtual ? void 0 : dirname$2(id); - const matches$2 = await parseImportGlob(code, isVirtual ? void 0 : id, root, resolveId, logger); - const matchedFiles = /* @__PURE__ */ new Set(); - if (!matches$2.length) return null; - const s$2 = new MagicString(code); - const staticImports = (await Promise.all(matches$2.map(async ({ globsResolved, isRelative: isRelative$1, options: options$1, index, start, end, onlyKeys, onlyValues }) => { - const cwd = getCommonBase(globsResolved) ?? root; - const files = (await glob(globsResolved, { - absolute: true, - cwd, - dot: !!options$1.exhaustive, - expandDirectories: false, - ignore: options$1.exhaustive ? [] : ["**/node_modules/**"] - })).filter((file) => file !== id).sort(); - const objectProps = []; - const staticImports$1 = []; - const resolvePaths = (file) => { - if (!dir) { - if (!options$1.base && isRelative$1) throw new Error("In virtual modules, all globs must start with '/'"); - const importPath$1 = `/${relative$2(root, file)}`; - let filePath$1 = options$1.base ? `${relative$2(posix.join(root, options$1.base), file)}` : importPath$1; - if (options$1.base && filePath$1[0] !== ".") filePath$1 = `./${filePath$1}`; - return { - filePath: filePath$1, - importPath: importPath$1 - }; - } - let importPath = relative$2(dir, file); - if (importPath[0] !== ".") importPath = `./${importPath}`; - let filePath; - if (options$1.base) { - const resolvedBasePath = options$1.base[0] === "/" ? root : dir; - filePath = relative$2(posix.join(resolvedBasePath, options$1.base), file); - if (filePath[0] !== ".") filePath = `./${filePath}`; - if (options$1.base[0] === "/") importPath = `/${relative$2(root, file)}`; - } else if (isRelative$1) filePath = importPath; - else { - filePath = relative$2(root, file); - if (filePath[0] !== ".") filePath = `/${filePath}`; - } - return { - filePath, - importPath - }; - }; - files.forEach((file, i$1) => { - const paths = resolvePaths(file); - const filePath = paths.filePath; - let importPath = paths.importPath; - let importQuery = options$1.query ?? ""; - if (onlyKeys) { - objectProps.push(`${JSON.stringify(filePath)}: 0`); - return; - } - if (importQuery && importQuery !== "?raw") { - const fileExtension = basename$2(file).split(".").slice(-1)[0]; - if (fileExtension && restoreQueryExtension) importQuery = `${importQuery}&lang.${fileExtension}`; - } - importPath = `${importPath}${importQuery}`; - const importKey = options$1.import && options$1.import !== "*" ? options$1.import : void 0; - if (options$1.eager) { - const variableName = `${importPrefix}${index}_${i$1}`; - const expression = importKey ? `{ ${importKey} as ${variableName} }` : `* as ${variableName}`; - staticImports$1.push(`import ${expression} from ${JSON.stringify(importPath)}`); - objectProps.push(onlyValues ? `${variableName}` : `${JSON.stringify(filePath)}: ${variableName}`); - } else { - let importStatement = `import(${JSON.stringify(importPath)})`; - if (importKey) importStatement += `.then(m => m[${JSON.stringify(importKey)}])`; - objectProps.push(onlyValues ? `() => ${importStatement}` : `${JSON.stringify(filePath)}: () => ${importStatement}`); - } - }); - files.forEach((i$1) => matchedFiles.add(i$1)); - const originalLineBreakCount = code.slice(start, end).match(/\n/g)?.length ?? 0; - const lineBreaks = originalLineBreakCount > 0 ? "\n".repeat(originalLineBreakCount) : ""; - let replacement = ""; - if (onlyKeys) replacement = `{${objectProps.join(",")}${lineBreaks}}`; - else if (onlyValues) replacement = `[${objectProps.join(",")}${lineBreaks}]`; - else replacement = `/* #__PURE__ */ Object.assign({${objectProps.join(",")}${lineBreaks}})`; - s$2.overwrite(start, end, replacement); - return staticImports$1; - }))).flat(); - if (staticImports.length) s$2.prepend(`${staticImports.join(";")};`); - return { - s: s$2, - matches: matches$2, - files: matchedFiles - }; -} -function globSafePath(path$13) { - return escapePath(normalizePath(path$13)); -} -function lastNthChar(str, n$2) { - return str.charAt(str.length - 1 - n$2); -} -function globSafeResolvedPath(resolved, glob$1) { - let numEqual = 0; - const maxEqual = Math.min(resolved.length, glob$1.length); - while (numEqual < maxEqual && lastNthChar(resolved, numEqual) === lastNthChar(glob$1, numEqual)) numEqual += 1; - const staticPartEnd = resolved.length - numEqual; - const staticPart = resolved.slice(0, staticPartEnd); - const dynamicPart = resolved.slice(staticPartEnd); - return globSafePath(staticPart) + dynamicPart; -} -async function toAbsoluteGlob(glob$1, root, importer, resolveId, base) { - let pre = ""; - if (glob$1[0] === "!") { - pre = "!"; - glob$1 = glob$1.slice(1); - } - root = globSafePath(root); - let dir; - if (base) if (base[0] === "/") dir = posix.join(root, base); - else dir = posix.resolve(importer ? globSafePath(dirname$2(importer)) : root, base); - else dir = importer ? globSafePath(dirname$2(importer)) : root; - if (glob$1[0] === "/") return pre + posix.join(root, glob$1.slice(1)); - if (glob$1.startsWith("./")) return pre + posix.join(dir, glob$1.slice(2)); - if (glob$1.startsWith("../")) return pre + posix.join(dir, glob$1); - if (glob$1.startsWith("**")) return pre + glob$1; - const isSubImportsPattern = glob$1[0] === "#" && glob$1.includes("*"); - const resolved = normalizePath(await resolveId(glob$1, importer, { custom: { "vite:import-glob": { isSubImportsPattern } } }) || glob$1); - if (isAbsolute(resolved)) return pre + globSafeResolvedPath(resolved, glob$1); - throw new Error(`Invalid glob: "${glob$1}" (resolved: "${resolved}"). It must start with '/' or './'`); -} -function getCommonBase(globsResolved) { - const bases = globsResolved.filter((g) => g[0] !== "!").map((glob$1) => { - let { base } = picomatch.scan(glob$1); - if (posix.basename(base).includes(".")) base = posix.dirname(base); - return base; - }); - if (!bases.length) return null; - let commonAncestor = ""; - const dirS = bases[0].split("/"); - for (let i$1 = 0; i$1 < dirS.length; i$1++) { - const candidate = dirS.slice(0, i$1 + 1).join("/"); - if (bases.every((base) => base.startsWith(candidate))) commonAncestor = candidate; - else break; - } - if (!commonAncestor) commonAncestor = "/"; - return commonAncestor; -} -function isVirtualModule(id) { - return id.startsWith("virtual:") || id[0] === "\0" || !id.includes("/"); -} - -//#endregion -//#region src/node/optimizer/scan.ts -var import_picocolors$27 = /* @__PURE__ */ __toESM(require_picocolors(), 1); -var ScanEnvironment = class extends BaseEnvironment { - mode = "scan"; - get pluginContainer() { - if (!this._pluginContainer) throw new Error(`${this.name} environment.pluginContainer called before initialized`); - return this._pluginContainer; - } - /** - * @internal - */ - _pluginContainer; - async init() { - if (this._initiated) return; - this._initiated = true; - this._pluginContainer = await createEnvironmentPluginContainer(this, this.plugins, void 0, false); - } -}; -function devToScanEnvironment(environment) { - return { - mode: "scan", - get name() { - return environment.name; - }, - getTopLevelConfig() { - return environment.getTopLevelConfig(); - }, - get config() { - return environment.config; - }, - get logger() { - return environment.logger; - }, - get pluginContainer() { - return environment.pluginContainer; - }, - get plugins() { - return environment.plugins; - } - }; -} -const debug$15 = createDebugger("vite:deps"); -const htmlTypesRE = /\.(html|vue|svelte|astro|imba)$/; -const importsRE = /(? context?.cancel()); - } - async function scan() { - const entries = await computeEntries(environment); - if (!entries.length) { - if (!config$2.optimizeDeps.entries && !config$2.optimizeDeps.include) environment.logger.warn(import_picocolors$27.default.yellow("(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling.")); - return; - } - if (scanContext.cancelled) return; - debug$15?.(`Crawling dependencies using entries: ${entries.map((entry) => `\n ${import_picocolors$27.default.dim(entry)}`).join("")}`); - const deps = {}; - const missing = {}; - let context; - try { - esbuildContext = prepareEsbuildScanner(environment, entries, deps, missing); - context = await esbuildContext; - if (scanContext.cancelled) return; - try { - await context.rebuild(); - return { - deps: orderedDependencies(deps), - missing - }; - } catch (e$1) { - if (e$1.errors && e$1.message.includes("The build was canceled")) return; - const prependMessage = import_picocolors$27.default.red(`\ - Failed to scan for dependencies from entries: - ${entries.join("\n")} - - `); - if (e$1.errors) { - const msgs = await formatMessages(e$1.errors, { - kind: "error", - color: true - }); - e$1.message = prependMessage + msgs.join("\n"); - } else e$1.message = prependMessage + e$1.message; - throw e$1; - } finally { - if (debug$15) { - const duration = (performance$1.now() - start).toFixed(2); - const depsStr = Object.keys(orderedDependencies(deps)).sort().map((id) => `\n ${import_picocolors$27.default.cyan(id)} -> ${import_picocolors$27.default.dim(deps[id])}`).join("") || import_picocolors$27.default.dim("no dependencies found"); - debug$15(`Scan completed in ${duration}ms: ${depsStr}`); - } - } - } finally { - context?.dispose().catch((e$1) => { - environment.logger.error("Failed to dispose esbuild context", { error: e$1 }); - }); - } - } - const result = scan(); - return { - cancel, - result: result.then((res) => res ?? { - deps: {}, - missing: {} - }) - }; -} -async function computeEntries(environment) { - let entries = []; - const explicitEntryPatterns = environment.config.optimizeDeps.entries; - const buildInput = environment.config.build.rollupOptions.input; - if (explicitEntryPatterns) entries = await globEntries(explicitEntryPatterns, environment); - else if (buildInput) { - const resolvePath = async (p) => { - const id = (await environment.pluginContainer.resolveId(p, path.join(process.cwd(), "*"), { - isEntry: true, - scan: true - }))?.id; - if (id === void 0) throw new Error(`failed to resolve rollupOptions.input value: ${JSON.stringify(p)}.`); - return id; - }; - if (typeof buildInput === "string") entries = [await resolvePath(buildInput)]; - else if (Array.isArray(buildInput)) entries = await Promise.all(buildInput.map(resolvePath)); - else if (isObject(buildInput)) entries = await Promise.all(Object.values(buildInput).map(resolvePath)); - else throw new Error("invalid rollupOptions.input value."); - } else entries = await globEntries("**/*.html", environment); - entries = entries.filter((entry) => isScannable(entry, environment.config.optimizeDeps.extensions) && fs.existsSync(entry)); - return entries; -} -async function prepareEsbuildScanner(environment, entries, deps, missing) { - const plugin = esbuildScanPlugin(environment, deps, missing, entries); - const { plugins: plugins$1 = [],...esbuildOptions } = environment.config.optimizeDeps.esbuildOptions ?? {}; - let tsconfigRaw = esbuildOptions.tsconfigRaw; - if (!tsconfigRaw && !esbuildOptions.tsconfig) { - const { tsconfig } = await loadTsconfigJsonForFile(path.join(environment.config.root, "_dummy.js")); - if (tsconfig.compilerOptions?.experimentalDecorators || tsconfig.compilerOptions?.jsx || tsconfig.compilerOptions?.jsxFactory || tsconfig.compilerOptions?.jsxFragmentFactory || tsconfig.compilerOptions?.jsxImportSource) tsconfigRaw = { compilerOptions: { - experimentalDecorators: tsconfig.compilerOptions?.experimentalDecorators, - jsx: esbuildOptions.jsx ? void 0 : tsconfig.compilerOptions?.jsx, - jsxFactory: esbuildOptions.jsxFactory ? void 0 : tsconfig.compilerOptions?.jsxFactory, - jsxFragmentFactory: esbuildOptions.jsxFragment ? void 0 : tsconfig.compilerOptions?.jsxFragmentFactory, - jsxImportSource: esbuildOptions.jsxImportSource ? void 0 : tsconfig.compilerOptions?.jsxImportSource - } }; - } - return await esbuild.context({ - absWorkingDir: process.cwd(), - write: false, - stdin: { - contents: entries.map((e$1) => `import ${JSON.stringify(e$1)}`).join("\n"), - loader: "js" - }, - bundle: true, - format: "esm", - logLevel: "silent", - plugins: [...plugins$1, plugin], - jsxDev: !environment.config.isProduction, - ...esbuildOptions, - tsconfigRaw - }); -} -function orderedDependencies(deps) { - const depsList = Object.entries(deps); - depsList.sort((a, b) => a[0].localeCompare(b[0])); - return Object.fromEntries(depsList); -} -async function globEntries(patterns, environment) { - const nodeModulesPatterns = []; - const regularPatterns = []; - for (const pattern of arraify(patterns)) if (pattern.includes("node_modules")) nodeModulesPatterns.push(pattern); - else regularPatterns.push(pattern); - const sharedOptions = { - absolute: true, - cwd: environment.config.root, - ignore: [`**/${environment.config.build.outDir}/**`, ...environment.config.optimizeDeps.entries ? [] : [`**/__tests__/**`, `**/coverage/**`]] - }; - const results = await Promise.all([glob(nodeModulesPatterns, sharedOptions), glob(regularPatterns, { - ...sharedOptions, - ignore: [...sharedOptions.ignore, "**/node_modules/**"] - })]); - return results.flat(); -} -const scriptRE = /(=\s]+))?)*\s*>)(.*?)<\/script>/gis; -const commentRE$1 = //gs; -const srcRE = /\bsrc\s*=\s*(?:"([^"]+)"|'([^']+)'|([^\s'">]+))/i; -const typeRE = /\btype\s*=\s*(?:"([^"]+)"|'([^']+)'|([^\s'">]+))/i; -const langRE = /\blang\s*=\s*(?:"([^"]+)"|'([^']+)'|([^\s'">]+))/i; -const svelteScriptModuleRE = /\bcontext\s*=\s*(?:"([^"]+)"|'([^']+)'|([^\s'">]+))/i; -const svelteModuleRE = /\smodule\b/i; -function esbuildScanPlugin(environment, depImports, missing, entries) { - const seen$1 = /* @__PURE__ */ new Map(); - async function resolveId(id, importer) { - return environment.pluginContainer.resolveId(id, importer && normalizePath(importer), { scan: true }); - } - const resolve$4 = async (id, importer) => { - const key = id + (importer && path.dirname(importer)); - if (seen$1.has(key)) return seen$1.get(key); - const resolved = await resolveId(id, importer); - const res = resolved?.id; - seen$1.set(key, res); - return res; - }; - const optimizeDepsOptions = environment.config.optimizeDeps; - const include = optimizeDepsOptions.include; - const exclude = [ - ...optimizeDepsOptions.exclude ?? [], - "@vite/client", - "@vite/env" - ]; - const isUnlessEntry = (path$13) => !entries.includes(path$13); - const externalUnlessEntry = ({ path: path$13 }) => ({ - path: path$13, - external: isUnlessEntry(path$13) - }); - const doTransformGlobImport = async (contents, id, loader$1) => { - let transpiledContents; - if (loader$1 !== "js") transpiledContents = (await transform(contents, { loader: loader$1 })).code; - else transpiledContents = contents; - const result = await transformGlobImport(transpiledContents, id, environment.config.root, resolve$4); - return result?.s.toString() || transpiledContents; - }; - return { - name: "vite:dep-scan", - setup(build$3) { - const scripts = {}; - build$3.onResolve({ filter: externalRE }, ({ path: path$13 }) => ({ - path: path$13, - external: true - })); - build$3.onResolve({ filter: dataUrlRE }, ({ path: path$13 }) => ({ - path: path$13, - external: true - })); - build$3.onResolve({ filter: virtualModuleRE }, ({ path: path$13 }) => { - return { - path: path$13.replace(virtualModulePrefix, ""), - namespace: "script" - }; - }); - build$3.onLoad({ - filter: /.*/, - namespace: "script" - }, ({ path: path$13 }) => { - return scripts[path$13]; - }); - build$3.onResolve({ filter: htmlTypesRE }, async ({ path: path$13, importer }) => { - const resolved = await resolve$4(path$13, importer); - if (!resolved) return; - if (isInNodeModules(resolved) && isOptimizable(resolved, optimizeDepsOptions)) return; - return { - path: resolved, - namespace: "html" - }; - }); - const htmlTypeOnLoadCallback = async ({ path: p }) => { - let raw = await fsp.readFile(p, "utf-8"); - raw = raw.replace(commentRE$1, ""); - const isHtml = p.endsWith(".html"); - let js = ""; - let scriptId = 0; - const matches$2 = raw.matchAll(scriptRE); - for (const [, openTag, content] of matches$2) { - const typeMatch = typeRE.exec(openTag); - const type = typeMatch && (typeMatch[1] || typeMatch[2] || typeMatch[3]); - const langMatch = langRE.exec(openTag); - const lang = langMatch && (langMatch[1] || langMatch[2] || langMatch[3]); - if (isHtml && type !== "module") continue; - if (type && !(type.includes("javascript") || type.includes("ecmascript") || type === "module")) continue; - let loader$1 = "js"; - if (lang === "ts" || lang === "tsx" || lang === "jsx") loader$1 = lang; - else if (p.endsWith(".astro")) loader$1 = "ts"; - const srcMatch = srcRE.exec(openTag); - if (srcMatch) { - const src = srcMatch[1] || srcMatch[2] || srcMatch[3]; - js += `import ${JSON.stringify(src)}\n`; - } else if (content.trim()) { - const contents = content + (loader$1.startsWith("ts") ? extractImportPaths(content) : ""); - const key = `${p}?id=${scriptId++}`; - if (contents.includes("import.meta.glob")) scripts[key] = { - loader: "js", - contents: await doTransformGlobImport(contents, p, loader$1), - resolveDir: normalizePath(path.dirname(p)), - pluginData: { htmlType: { loader: loader$1 } } - }; - else scripts[key] = { - loader: loader$1, - contents, - resolveDir: normalizePath(path.dirname(p)), - pluginData: { htmlType: { loader: loader$1 } } - }; - const virtualModulePath = JSON.stringify(virtualModulePrefix + key); - let addedImport = false; - if (p.endsWith(".svelte")) { - let isModule = svelteModuleRE.test(openTag); - if (!isModule) { - const contextMatch = svelteScriptModuleRE.exec(openTag); - const context = contextMatch && (contextMatch[1] || contextMatch[2] || contextMatch[3]); - isModule = context === "module"; - } - if (!isModule) { - addedImport = true; - js += `import ${virtualModulePath}\n`; - } - } - if (!addedImport) js += `export * from ${virtualModulePath}\n`; - } - } - if (!p.endsWith(".vue") || !js.includes("export default")) js += "\nexport default {}"; - return { - loader: "js", - contents: js - }; - }; - build$3.onLoad({ - filter: htmlTypesRE, - namespace: "html" - }, htmlTypeOnLoadCallback); - build$3.onLoad({ - filter: htmlTypesRE, - namespace: "file" - }, htmlTypeOnLoadCallback); - build$3.onResolve({ filter: /^[\w@][^:]/ }, async ({ path: id, importer }) => { - if (moduleListContains(exclude, id)) return externalUnlessEntry({ path: id }); - if (depImports[id]) return externalUnlessEntry({ path: id }); - const resolved = await resolve$4(id, importer); - if (resolved) { - if (shouldExternalizeDep(resolved, id)) return externalUnlessEntry({ path: id }); - if (isInNodeModules(resolved) || include?.includes(id)) { - if (isOptimizable(resolved, optimizeDepsOptions)) depImports[id] = resolved; - return externalUnlessEntry({ path: id }); - } else if (isScannable(resolved, optimizeDepsOptions.extensions)) { - const namespace = htmlTypesRE.test(resolved) ? "html" : void 0; - return { - path: path.resolve(resolved), - namespace - }; - } else return externalUnlessEntry({ path: id }); - } else missing[id] = normalizePath(importer); - }); - const setupExternalize = (filter$1, doExternalize) => { - build$3.onResolve({ filter: filter$1 }, ({ path: path$13 }) => { - return { - path: path$13, - external: doExternalize(path$13) - }; - }); - }; - setupExternalize(CSS_LANGS_RE, isUnlessEntry); - setupExternalize(/\.(json|json5|wasm)$/, isUnlessEntry); - setupExternalize(/* @__PURE__ */ new RegExp(`\\.(${KNOWN_ASSET_TYPES.join("|")})$`), isUnlessEntry); - setupExternalize(SPECIAL_QUERY_RE, () => true); - build$3.onResolve({ filter: /.*/ }, async ({ path: id, importer }) => { - const resolved = await resolve$4(id, importer); - if (resolved) { - if (shouldExternalizeDep(resolved, id) || !isScannable(resolved, optimizeDepsOptions.extensions)) return externalUnlessEntry({ path: id }); - const namespace = htmlTypesRE.test(resolved) ? "html" : void 0; - return { - path: path.resolve(cleanUrl(resolved)), - namespace - }; - } else return externalUnlessEntry({ path: id }); - }); - build$3.onLoad({ filter: JS_TYPES_RE }, async ({ path: id }) => { - let ext = path.extname(id).slice(1); - if (ext === "mjs") ext = "js"; - const esbuildConfig = environment.config.esbuild; - let contents = await fsp.readFile(id, "utf-8"); - if (ext.endsWith("x") && esbuildConfig && esbuildConfig.jsxInject) contents = esbuildConfig.jsxInject + `\n` + contents; - const loader$1 = optimizeDepsOptions.esbuildOptions?.loader?.[`.${ext}`] ?? ext; - if (contents.includes("import.meta.glob")) return { - loader: "js", - contents: await doTransformGlobImport(contents, id, loader$1) - }; - return { - loader: loader$1, - contents - }; - }); - build$3.onLoad({ - filter: /.*/, - namespace: "file" - }, () => { - return { - loader: "js", - contents: "export default {}" - }; - }); - } - }; -} -/** -* when using TS + (Vue + ` - -``` - -## API - -### parser(args, opts={}) - -Parses command line arguments returning a simple mapping of keys and values. - -**expects:** - -* `args`: a string or array of strings representing the options to parse. -* `opts`: provide a set of hints indicating how `args` should be parsed: - * `opts.alias`: an object representing the set of aliases for a key: `{alias: {foo: ['f']}}`. - * `opts.array`: indicate that keys should be parsed as an array: `{array: ['foo', 'bar']}`.
- Indicate that keys should be parsed as an array and coerced to booleans / numbers:
- `{array: [{ key: 'foo', boolean: true }, {key: 'bar', number: true}]}`. - * `opts.boolean`: arguments should be parsed as booleans: `{boolean: ['x', 'y']}`. - * `opts.coerce`: provide a custom synchronous function that returns a coerced value from the argument provided - (or throws an error). For arrays the function is called only once for the entire array:
- `{coerce: {foo: function (arg) {return modifiedArg}}}`. - * `opts.config`: indicate a key that represents a path to a configuration file (this file will be loaded and parsed). - * `opts.configObjects`: configuration objects to parse, their properties will be set as arguments:
- `{configObjects: [{'x': 5, 'y': 33}, {'z': 44}]}`. - * `opts.configuration`: provide configuration options to the yargs-parser (see: [configuration](#configuration)). - * `opts.count`: indicate a key that should be used as a counter, e.g., `-vvv` = `{v: 3}`. - * `opts.default`: provide default values for keys: `{default: {x: 33, y: 'hello world!'}}`. - * `opts.envPrefix`: environment variables (`process.env`) with the prefix provided should be parsed. - * `opts.narg`: specify that a key requires `n` arguments: `{narg: {x: 2}}`. - * `opts.normalize`: `path.normalize()` will be applied to values set to this key. - * `opts.number`: keys should be treated as numbers. - * `opts.string`: keys should be treated as strings (even if they resemble a number `-x 33`). - -**returns:** - -* `obj`: an object representing the parsed value of `args` - * `key/value`: key value pairs for each argument and their aliases. - * `_`: an array representing the positional arguments. - * [optional] `--`: an array with arguments after the end-of-options flag `--`. - -### require('yargs-parser').detailed(args, opts={}) - -Parses a command line string, returning detailed information required by the -yargs engine. - -**expects:** - -* `args`: a string or array of strings representing options to parse. -* `opts`: provide a set of hints indicating how `args`, inputs are identical to `require('yargs-parser')(args, opts={})`. - -**returns:** - -* `argv`: an object representing the parsed value of `args` - * `key/value`: key value pairs for each argument and their aliases. - * `_`: an array representing the positional arguments. - * [optional] `--`: an array with arguments after the end-of-options flag `--`. -* `error`: populated with an error object if an exception occurred during parsing. -* `aliases`: the inferred list of aliases built by combining lists in `opts.alias`. -* `newAliases`: any new aliases added via camel-case expansion: - * `boolean`: `{ fooBar: true }` -* `defaulted`: any new argument created by `opts.default`, no aliases included. - * `boolean`: `{ foo: true }` -* `configuration`: given by default settings and `opts.configuration`. - - - -### Configuration - -The yargs-parser applies several automated transformations on the keys provided -in `args`. These features can be turned on and off using the `configuration` field -of `opts`. - -```js -var parsed = parser(['--no-dice'], { - configuration: { - 'boolean-negation': false - } -}) -``` - -### short option groups - -* default: `true`. -* key: `short-option-groups`. - -Should a group of short-options be treated as boolean flags? - -```console -$ node example.js -abc -{ _: [], a: true, b: true, c: true } -``` - -_if disabled:_ - -```console -$ node example.js -abc -{ _: [], abc: true } -``` - -### camel-case expansion - -* default: `true`. -* key: `camel-case-expansion`. - -Should hyphenated arguments be expanded into camel-case aliases? - -```console -$ node example.js --foo-bar -{ _: [], 'foo-bar': true, fooBar: true } -``` - -_if disabled:_ - -```console -$ node example.js --foo-bar -{ _: [], 'foo-bar': true } -``` - -### dot-notation - -* default: `true` -* key: `dot-notation` - -Should keys that contain `.` be treated as objects? - -```console -$ node example.js --foo.bar -{ _: [], foo: { bar: true } } -``` - -_if disabled:_ - -```console -$ node example.js --foo.bar -{ _: [], "foo.bar": true } -``` - -### parse numbers - -* default: `true` -* key: `parse-numbers` - -Should keys that look like numbers be treated as such? - -```console -$ node example.js --foo=99.3 -{ _: [], foo: 99.3 } -``` - -_if disabled:_ - -```console -$ node example.js --foo=99.3 -{ _: [], foo: "99.3" } -``` - -### parse positional numbers - -* default: `true` -* key: `parse-positional-numbers` - -Should positional keys that look like numbers be treated as such. - -```console -$ node example.js 99.3 -{ _: [99.3] } -``` - -_if disabled:_ - -```console -$ node example.js 99.3 -{ _: ['99.3'] } -``` - -### boolean negation - -* default: `true` -* key: `boolean-negation` - -Should variables prefixed with `--no` be treated as negations? - -```console -$ node example.js --no-foo -{ _: [], foo: false } -``` - -_if disabled:_ - -```console -$ node example.js --no-foo -{ _: [], "no-foo": true } -``` - -### combine arrays - -* default: `false` -* key: `combine-arrays` - -Should arrays be combined when provided by both command line arguments and -a configuration file. - -### duplicate arguments array - -* default: `true` -* key: `duplicate-arguments-array` - -Should arguments be coerced into an array when duplicated: - -```console -$ node example.js -x 1 -x 2 -{ _: [], x: [1, 2] } -``` - -_if disabled:_ - -```console -$ node example.js -x 1 -x 2 -{ _: [], x: 2 } -``` - -### flatten duplicate arrays - -* default: `true` -* key: `flatten-duplicate-arrays` - -Should array arguments be coerced into a single array when duplicated: - -```console -$ node example.js -x 1 2 -x 3 4 -{ _: [], x: [1, 2, 3, 4] } -``` - -_if disabled:_ - -```console -$ node example.js -x 1 2 -x 3 4 -{ _: [], x: [[1, 2], [3, 4]] } -``` - -### greedy arrays - -* default: `true` -* key: `greedy-arrays` - -Should arrays consume more than one positional argument following their flag. - -```console -$ node example --arr 1 2 -{ _: [], arr: [1, 2] } -``` - -_if disabled:_ - -```console -$ node example --arr 1 2 -{ _: [2], arr: [1] } -``` - -**Note: in `v18.0.0` we are considering defaulting greedy arrays to `false`.** - -### nargs eats options - -* default: `false` -* key: `nargs-eats-options` - -Should nargs consume dash options as well as positional arguments. - -### negation prefix - -* default: `no-` -* key: `negation-prefix` - -The prefix to use for negated boolean variables. - -```console -$ node example.js --no-foo -{ _: [], foo: false } -``` - -_if set to `quux`:_ - -```console -$ node example.js --quuxfoo -{ _: [], foo: false } -``` - -### populate -- - -* default: `false`. -* key: `populate--` - -Should unparsed flags be stored in `--` or `_`. - -_If disabled:_ - -```console -$ node example.js a -b -- x y -{ _: [ 'a', 'x', 'y' ], b: true } -``` - -_If enabled:_ - -```console -$ node example.js a -b -- x y -{ _: [ 'a' ], '--': [ 'x', 'y' ], b: true } -``` - -### set placeholder key - -* default: `false`. -* key: `set-placeholder-key`. - -Should a placeholder be added for keys not set via the corresponding CLI argument? - -_If disabled:_ - -```console -$ node example.js -a 1 -c 2 -{ _: [], a: 1, c: 2 } -``` - -_If enabled:_ - -```console -$ node example.js -a 1 -c 2 -{ _: [], a: 1, b: undefined, c: 2 } -``` - -### halt at non-option - -* default: `false`. -* key: `halt-at-non-option`. - -Should parsing stop at the first positional argument? This is similar to how e.g. `ssh` parses its command line. - -_If disabled:_ - -```console -$ node example.js -a run b -x y -{ _: [ 'b' ], a: 'run', x: 'y' } -``` - -_If enabled:_ - -```console -$ node example.js -a run b -x y -{ _: [ 'b', '-x', 'y' ], a: 'run' } -``` - -### strip aliased - -* default: `false` -* key: `strip-aliased` - -Should aliases be removed before returning results? - -_If disabled:_ - -```console -$ node example.js --test-field 1 -{ _: [], 'test-field': 1, testField: 1, 'test-alias': 1, testAlias: 1 } -``` - -_If enabled:_ - -```console -$ node example.js --test-field 1 -{ _: [], 'test-field': 1, testField: 1 } -``` - -### strip dashed - -* default: `false` -* key: `strip-dashed` - -Should dashed keys be removed before returning results? This option has no effect if -`camel-case-expansion` is disabled. - -_If disabled:_ - -```console -$ node example.js --test-field 1 -{ _: [], 'test-field': 1, testField: 1 } -``` - -_If enabled:_ - -```console -$ node example.js --test-field 1 -{ _: [], testField: 1 } -``` - -### unknown options as args - -* default: `false` -* key: `unknown-options-as-args` - -Should unknown options be treated like regular arguments? An unknown option is one that is not -configured in `opts`. - -_If disabled_ - -```console -$ node example.js --unknown-option --known-option 2 --string-option --unknown-option2 -{ _: [], unknownOption: true, knownOption: 2, stringOption: '', unknownOption2: true } -``` - -_If enabled_ - -```console -$ node example.js --unknown-option --known-option 2 --string-option --unknown-option2 -{ _: ['--unknown-option'], knownOption: 2, stringOption: '--unknown-option2' } -``` - -## Supported Node.js Versions - -Libraries in this ecosystem make a best effort to track -[Node.js' release schedule](https://nodejs.org/en/about/releases/). Here's [a -post on why we think this is important](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a). - -## Special Thanks - -The yargs project evolves from optimist and minimist. It owes its -existence to a lot of James Halliday's hard work. Thanks [substack](https://github.com/substack) **beep** **boop** \o/ - -## License - -ISC diff --git a/node_modules/yargs-parser/browser.js b/node_modules/yargs-parser/browser.js deleted file mode 100644 index 241202c..0000000 --- a/node_modules/yargs-parser/browser.js +++ /dev/null @@ -1,29 +0,0 @@ -// Main entrypoint for ESM web browser environments. Avoids using Node.js -// specific libraries, such as "path". -// -// TODO: figure out reasonable web equivalents for "resolve", "normalize", etc. -import { camelCase, decamelize, looksLikeNumber } from './build/lib/string-utils.js' -import { YargsParser } from './build/lib/yargs-parser.js' -const parser = new YargsParser({ - cwd: () => { return '' }, - format: (str, arg) => { return str.replace('%s', arg) }, - normalize: (str) => { return str }, - resolve: (str) => { return str }, - require: () => { - throw Error('loading config from files not currently supported in browser') - }, - env: () => {} -}) - -const yargsParser = function Parser (args, opts) { - const result = parser.parse(args.slice(), opts) - return result.argv -} -yargsParser.detailed = function (args, opts) { - return parser.parse(args.slice(), opts) -} -yargsParser.camelCase = camelCase -yargsParser.decamelize = decamelize -yargsParser.looksLikeNumber = looksLikeNumber - -export default yargsParser diff --git a/node_modules/yargs-parser/build/index.cjs b/node_modules/yargs-parser/build/index.cjs deleted file mode 100644 index cf6f50f..0000000 --- a/node_modules/yargs-parser/build/index.cjs +++ /dev/null @@ -1,1050 +0,0 @@ -'use strict'; - -var util = require('util'); -var path = require('path'); -var fs = require('fs'); - -function camelCase(str) { - const isCamelCase = str !== str.toLowerCase() && str !== str.toUpperCase(); - if (!isCamelCase) { - str = str.toLowerCase(); - } - if (str.indexOf('-') === -1 && str.indexOf('_') === -1) { - return str; - } - else { - let camelcase = ''; - let nextChrUpper = false; - const leadingHyphens = str.match(/^-+/); - for (let i = leadingHyphens ? leadingHyphens[0].length : 0; i < str.length; i++) { - let chr = str.charAt(i); - if (nextChrUpper) { - nextChrUpper = false; - chr = chr.toUpperCase(); - } - if (i !== 0 && (chr === '-' || chr === '_')) { - nextChrUpper = true; - } - else if (chr !== '-' && chr !== '_') { - camelcase += chr; - } - } - return camelcase; - } -} -function decamelize(str, joinString) { - const lowercase = str.toLowerCase(); - joinString = joinString || '-'; - let notCamelcase = ''; - for (let i = 0; i < str.length; i++) { - const chrLower = lowercase.charAt(i); - const chrString = str.charAt(i); - if (chrLower !== chrString && i > 0) { - notCamelcase += `${joinString}${lowercase.charAt(i)}`; - } - else { - notCamelcase += chrString; - } - } - return notCamelcase; -} -function looksLikeNumber(x) { - if (x === null || x === undefined) - return false; - if (typeof x === 'number') - return true; - if (/^0x[0-9a-f]+$/i.test(x)) - return true; - if (/^0[^.]/.test(x)) - return false; - return /^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x); -} - -function tokenizeArgString(argString) { - if (Array.isArray(argString)) { - return argString.map(e => typeof e !== 'string' ? e + '' : e); - } - argString = argString.trim(); - let i = 0; - let prevC = null; - let c = null; - let opening = null; - const args = []; - for (let ii = 0; ii < argString.length; ii++) { - prevC = c; - c = argString.charAt(ii); - if (c === ' ' && !opening) { - if (!(prevC === ' ')) { - i++; - } - continue; - } - if (c === opening) { - opening = null; - } - else if ((c === "'" || c === '"') && !opening) { - opening = c; - } - if (!args[i]) - args[i] = ''; - args[i] += c; - } - return args; -} - -var DefaultValuesForTypeKey; -(function (DefaultValuesForTypeKey) { - DefaultValuesForTypeKey["BOOLEAN"] = "boolean"; - DefaultValuesForTypeKey["STRING"] = "string"; - DefaultValuesForTypeKey["NUMBER"] = "number"; - DefaultValuesForTypeKey["ARRAY"] = "array"; -})(DefaultValuesForTypeKey || (DefaultValuesForTypeKey = {})); - -let mixin; -class YargsParser { - constructor(_mixin) { - mixin = _mixin; - } - parse(argsInput, options) { - const opts = Object.assign({ - alias: undefined, - array: undefined, - boolean: undefined, - config: undefined, - configObjects: undefined, - configuration: undefined, - coerce: undefined, - count: undefined, - default: undefined, - envPrefix: undefined, - narg: undefined, - normalize: undefined, - string: undefined, - number: undefined, - __: undefined, - key: undefined - }, options); - const args = tokenizeArgString(argsInput); - const inputIsString = typeof argsInput === 'string'; - const aliases = combineAliases(Object.assign(Object.create(null), opts.alias)); - const configuration = Object.assign({ - 'boolean-negation': true, - 'camel-case-expansion': true, - 'combine-arrays': false, - 'dot-notation': true, - 'duplicate-arguments-array': true, - 'flatten-duplicate-arrays': true, - 'greedy-arrays': true, - 'halt-at-non-option': false, - 'nargs-eats-options': false, - 'negation-prefix': 'no-', - 'parse-numbers': true, - 'parse-positional-numbers': true, - 'populate--': false, - 'set-placeholder-key': false, - 'short-option-groups': true, - 'strip-aliased': false, - 'strip-dashed': false, - 'unknown-options-as-args': false - }, opts.configuration); - const defaults = Object.assign(Object.create(null), opts.default); - const configObjects = opts.configObjects || []; - const envPrefix = opts.envPrefix; - const notFlagsOption = configuration['populate--']; - const notFlagsArgv = notFlagsOption ? '--' : '_'; - const newAliases = Object.create(null); - const defaulted = Object.create(null); - const __ = opts.__ || mixin.format; - const flags = { - aliases: Object.create(null), - arrays: Object.create(null), - bools: Object.create(null), - strings: Object.create(null), - numbers: Object.create(null), - counts: Object.create(null), - normalize: Object.create(null), - configs: Object.create(null), - nargs: Object.create(null), - coercions: Object.create(null), - keys: [] - }; - const negative = /^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/; - const negatedBoolean = new RegExp('^--' + configuration['negation-prefix'] + '(.+)'); - [].concat(opts.array || []).filter(Boolean).forEach(function (opt) { - const key = typeof opt === 'object' ? opt.key : opt; - const assignment = Object.keys(opt).map(function (key) { - const arrayFlagKeys = { - boolean: 'bools', - string: 'strings', - number: 'numbers' - }; - return arrayFlagKeys[key]; - }).filter(Boolean).pop(); - if (assignment) { - flags[assignment][key] = true; - } - flags.arrays[key] = true; - flags.keys.push(key); - }); - [].concat(opts.boolean || []).filter(Boolean).forEach(function (key) { - flags.bools[key] = true; - flags.keys.push(key); - }); - [].concat(opts.string || []).filter(Boolean).forEach(function (key) { - flags.strings[key] = true; - flags.keys.push(key); - }); - [].concat(opts.number || []).filter(Boolean).forEach(function (key) { - flags.numbers[key] = true; - flags.keys.push(key); - }); - [].concat(opts.count || []).filter(Boolean).forEach(function (key) { - flags.counts[key] = true; - flags.keys.push(key); - }); - [].concat(opts.normalize || []).filter(Boolean).forEach(function (key) { - flags.normalize[key] = true; - flags.keys.push(key); - }); - if (typeof opts.narg === 'object') { - Object.entries(opts.narg).forEach(([key, value]) => { - if (typeof value === 'number') { - flags.nargs[key] = value; - flags.keys.push(key); - } - }); - } - if (typeof opts.coerce === 'object') { - Object.entries(opts.coerce).forEach(([key, value]) => { - if (typeof value === 'function') { - flags.coercions[key] = value; - flags.keys.push(key); - } - }); - } - if (typeof opts.config !== 'undefined') { - if (Array.isArray(opts.config) || typeof opts.config === 'string') { - [].concat(opts.config).filter(Boolean).forEach(function (key) { - flags.configs[key] = true; - }); - } - else if (typeof opts.config === 'object') { - Object.entries(opts.config).forEach(([key, value]) => { - if (typeof value === 'boolean' || typeof value === 'function') { - flags.configs[key] = value; - } - }); - } - } - extendAliases(opts.key, aliases, opts.default, flags.arrays); - Object.keys(defaults).forEach(function (key) { - (flags.aliases[key] || []).forEach(function (alias) { - defaults[alias] = defaults[key]; - }); - }); - let error = null; - checkConfiguration(); - let notFlags = []; - const argv = Object.assign(Object.create(null), { _: [] }); - const argvReturn = {}; - for (let i = 0; i < args.length; i++) { - const arg = args[i]; - const truncatedArg = arg.replace(/^-{3,}/, '---'); - let broken; - let key; - let letters; - let m; - let next; - let value; - if (arg !== '--' && /^-/.test(arg) && isUnknownOptionAsArg(arg)) { - pushPositional(arg); - } - else if (truncatedArg.match(/^---+(=|$)/)) { - pushPositional(arg); - continue; - } - else if (arg.match(/^--.+=/) || (!configuration['short-option-groups'] && arg.match(/^-.+=/))) { - m = arg.match(/^--?([^=]+)=([\s\S]*)$/); - if (m !== null && Array.isArray(m) && m.length >= 3) { - if (checkAllAliases(m[1], flags.arrays)) { - i = eatArray(i, m[1], args, m[2]); - } - else if (checkAllAliases(m[1], flags.nargs) !== false) { - i = eatNargs(i, m[1], args, m[2]); - } - else { - setArg(m[1], m[2], true); - } - } - } - else if (arg.match(negatedBoolean) && configuration['boolean-negation']) { - m = arg.match(negatedBoolean); - if (m !== null && Array.isArray(m) && m.length >= 2) { - key = m[1]; - setArg(key, checkAllAliases(key, flags.arrays) ? [false] : false); - } - } - else if (arg.match(/^--.+/) || (!configuration['short-option-groups'] && arg.match(/^-[^-]+/))) { - m = arg.match(/^--?(.+)/); - if (m !== null && Array.isArray(m) && m.length >= 2) { - key = m[1]; - if (checkAllAliases(key, flags.arrays)) { - i = eatArray(i, key, args); - } - else if (checkAllAliases(key, flags.nargs) !== false) { - i = eatNargs(i, key, args); - } - else { - next = args[i + 1]; - if (next !== undefined && (!next.match(/^-/) || - next.match(negative)) && - !checkAllAliases(key, flags.bools) && - !checkAllAliases(key, flags.counts)) { - setArg(key, next); - i++; - } - else if (/^(true|false)$/.test(next)) { - setArg(key, next); - i++; - } - else { - setArg(key, defaultValue(key)); - } - } - } - } - else if (arg.match(/^-.\..+=/)) { - m = arg.match(/^-([^=]+)=([\s\S]*)$/); - if (m !== null && Array.isArray(m) && m.length >= 3) { - setArg(m[1], m[2]); - } - } - else if (arg.match(/^-.\..+/) && !arg.match(negative)) { - next = args[i + 1]; - m = arg.match(/^-(.\..+)/); - if (m !== null && Array.isArray(m) && m.length >= 2) { - key = m[1]; - if (next !== undefined && !next.match(/^-/) && - !checkAllAliases(key, flags.bools) && - !checkAllAliases(key, flags.counts)) { - setArg(key, next); - i++; - } - else { - setArg(key, defaultValue(key)); - } - } - } - else if (arg.match(/^-[^-]+/) && !arg.match(negative)) { - letters = arg.slice(1, -1).split(''); - broken = false; - for (let j = 0; j < letters.length; j++) { - next = arg.slice(j + 2); - if (letters[j + 1] && letters[j + 1] === '=') { - value = arg.slice(j + 3); - key = letters[j]; - if (checkAllAliases(key, flags.arrays)) { - i = eatArray(i, key, args, value); - } - else if (checkAllAliases(key, flags.nargs) !== false) { - i = eatNargs(i, key, args, value); - } - else { - setArg(key, value); - } - broken = true; - break; - } - if (next === '-') { - setArg(letters[j], next); - continue; - } - if (/[A-Za-z]/.test(letters[j]) && - /^-?\d+(\.\d*)?(e-?\d+)?$/.test(next) && - checkAllAliases(next, flags.bools) === false) { - setArg(letters[j], next); - broken = true; - break; - } - if (letters[j + 1] && letters[j + 1].match(/\W/)) { - setArg(letters[j], next); - broken = true; - break; - } - else { - setArg(letters[j], defaultValue(letters[j])); - } - } - key = arg.slice(-1)[0]; - if (!broken && key !== '-') { - if (checkAllAliases(key, flags.arrays)) { - i = eatArray(i, key, args); - } - else if (checkAllAliases(key, flags.nargs) !== false) { - i = eatNargs(i, key, args); - } - else { - next = args[i + 1]; - if (next !== undefined && (!/^(-|--)[^-]/.test(next) || - next.match(negative)) && - !checkAllAliases(key, flags.bools) && - !checkAllAliases(key, flags.counts)) { - setArg(key, next); - i++; - } - else if (/^(true|false)$/.test(next)) { - setArg(key, next); - i++; - } - else { - setArg(key, defaultValue(key)); - } - } - } - } - else if (arg.match(/^-[0-9]$/) && - arg.match(negative) && - checkAllAliases(arg.slice(1), flags.bools)) { - key = arg.slice(1); - setArg(key, defaultValue(key)); - } - else if (arg === '--') { - notFlags = args.slice(i + 1); - break; - } - else if (configuration['halt-at-non-option']) { - notFlags = args.slice(i); - break; - } - else { - pushPositional(arg); - } - } - applyEnvVars(argv, true); - applyEnvVars(argv, false); - setConfig(argv); - setConfigObjects(); - applyDefaultsAndAliases(argv, flags.aliases, defaults, true); - applyCoercions(argv); - if (configuration['set-placeholder-key']) - setPlaceholderKeys(argv); - Object.keys(flags.counts).forEach(function (key) { - if (!hasKey(argv, key.split('.'))) - setArg(key, 0); - }); - if (notFlagsOption && notFlags.length) - argv[notFlagsArgv] = []; - notFlags.forEach(function (key) { - argv[notFlagsArgv].push(key); - }); - if (configuration['camel-case-expansion'] && configuration['strip-dashed']) { - Object.keys(argv).filter(key => key !== '--' && key.includes('-')).forEach(key => { - delete argv[key]; - }); - } - if (configuration['strip-aliased']) { - [].concat(...Object.keys(aliases).map(k => aliases[k])).forEach(alias => { - if (configuration['camel-case-expansion'] && alias.includes('-')) { - delete argv[alias.split('.').map(prop => camelCase(prop)).join('.')]; - } - delete argv[alias]; - }); - } - function pushPositional(arg) { - const maybeCoercedNumber = maybeCoerceNumber('_', arg); - if (typeof maybeCoercedNumber === 'string' || typeof maybeCoercedNumber === 'number') { - argv._.push(maybeCoercedNumber); - } - } - function eatNargs(i, key, args, argAfterEqualSign) { - let ii; - let toEat = checkAllAliases(key, flags.nargs); - toEat = typeof toEat !== 'number' || isNaN(toEat) ? 1 : toEat; - if (toEat === 0) { - if (!isUndefined(argAfterEqualSign)) { - error = Error(__('Argument unexpected for: %s', key)); - } - setArg(key, defaultValue(key)); - return i; - } - let available = isUndefined(argAfterEqualSign) ? 0 : 1; - if (configuration['nargs-eats-options']) { - if (args.length - (i + 1) + available < toEat) { - error = Error(__('Not enough arguments following: %s', key)); - } - available = toEat; - } - else { - for (ii = i + 1; ii < args.length; ii++) { - if (!args[ii].match(/^-[^0-9]/) || args[ii].match(negative) || isUnknownOptionAsArg(args[ii])) - available++; - else - break; - } - if (available < toEat) - error = Error(__('Not enough arguments following: %s', key)); - } - let consumed = Math.min(available, toEat); - if (!isUndefined(argAfterEqualSign) && consumed > 0) { - setArg(key, argAfterEqualSign); - consumed--; - } - for (ii = i + 1; ii < (consumed + i + 1); ii++) { - setArg(key, args[ii]); - } - return (i + consumed); - } - function eatArray(i, key, args, argAfterEqualSign) { - let argsToSet = []; - let next = argAfterEqualSign || args[i + 1]; - const nargsCount = checkAllAliases(key, flags.nargs); - if (checkAllAliases(key, flags.bools) && !(/^(true|false)$/.test(next))) { - argsToSet.push(true); - } - else if (isUndefined(next) || - (isUndefined(argAfterEqualSign) && /^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next))) { - if (defaults[key] !== undefined) { - const defVal = defaults[key]; - argsToSet = Array.isArray(defVal) ? defVal : [defVal]; - } - } - else { - if (!isUndefined(argAfterEqualSign)) { - argsToSet.push(processValue(key, argAfterEqualSign, true)); - } - for (let ii = i + 1; ii < args.length; ii++) { - if ((!configuration['greedy-arrays'] && argsToSet.length > 0) || - (nargsCount && typeof nargsCount === 'number' && argsToSet.length >= nargsCount)) - break; - next = args[ii]; - if (/^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next)) - break; - i = ii; - argsToSet.push(processValue(key, next, inputIsString)); - } - } - if (typeof nargsCount === 'number' && ((nargsCount && argsToSet.length < nargsCount) || - (isNaN(nargsCount) && argsToSet.length === 0))) { - error = Error(__('Not enough arguments following: %s', key)); - } - setArg(key, argsToSet); - return i; - } - function setArg(key, val, shouldStripQuotes = inputIsString) { - if (/-/.test(key) && configuration['camel-case-expansion']) { - const alias = key.split('.').map(function (prop) { - return camelCase(prop); - }).join('.'); - addNewAlias(key, alias); - } - const value = processValue(key, val, shouldStripQuotes); - const splitKey = key.split('.'); - setKey(argv, splitKey, value); - if (flags.aliases[key]) { - flags.aliases[key].forEach(function (x) { - const keyProperties = x.split('.'); - setKey(argv, keyProperties, value); - }); - } - if (splitKey.length > 1 && configuration['dot-notation']) { - (flags.aliases[splitKey[0]] || []).forEach(function (x) { - let keyProperties = x.split('.'); - const a = [].concat(splitKey); - a.shift(); - keyProperties = keyProperties.concat(a); - if (!(flags.aliases[key] || []).includes(keyProperties.join('.'))) { - setKey(argv, keyProperties, value); - } - }); - } - if (checkAllAliases(key, flags.normalize) && !checkAllAliases(key, flags.arrays)) { - const keys = [key].concat(flags.aliases[key] || []); - keys.forEach(function (key) { - Object.defineProperty(argvReturn, key, { - enumerable: true, - get() { - return val; - }, - set(value) { - val = typeof value === 'string' ? mixin.normalize(value) : value; - } - }); - }); - } - } - function addNewAlias(key, alias) { - if (!(flags.aliases[key] && flags.aliases[key].length)) { - flags.aliases[key] = [alias]; - newAliases[alias] = true; - } - if (!(flags.aliases[alias] && flags.aliases[alias].length)) { - addNewAlias(alias, key); - } - } - function processValue(key, val, shouldStripQuotes) { - if (shouldStripQuotes) { - val = stripQuotes(val); - } - if (checkAllAliases(key, flags.bools) || checkAllAliases(key, flags.counts)) { - if (typeof val === 'string') - val = val === 'true'; - } - let value = Array.isArray(val) - ? val.map(function (v) { return maybeCoerceNumber(key, v); }) - : maybeCoerceNumber(key, val); - if (checkAllAliases(key, flags.counts) && (isUndefined(value) || typeof value === 'boolean')) { - value = increment(); - } - if (checkAllAliases(key, flags.normalize) && checkAllAliases(key, flags.arrays)) { - if (Array.isArray(val)) - value = val.map((val) => { return mixin.normalize(val); }); - else - value = mixin.normalize(val); - } - return value; - } - function maybeCoerceNumber(key, value) { - if (!configuration['parse-positional-numbers'] && key === '_') - return value; - if (!checkAllAliases(key, flags.strings) && !checkAllAliases(key, flags.bools) && !Array.isArray(value)) { - const shouldCoerceNumber = looksLikeNumber(value) && configuration['parse-numbers'] && (Number.isSafeInteger(Math.floor(parseFloat(`${value}`)))); - if (shouldCoerceNumber || (!isUndefined(value) && checkAllAliases(key, flags.numbers))) { - value = Number(value); - } - } - return value; - } - function setConfig(argv) { - const configLookup = Object.create(null); - applyDefaultsAndAliases(configLookup, flags.aliases, defaults); - Object.keys(flags.configs).forEach(function (configKey) { - const configPath = argv[configKey] || configLookup[configKey]; - if (configPath) { - try { - let config = null; - const resolvedConfigPath = mixin.resolve(mixin.cwd(), configPath); - const resolveConfig = flags.configs[configKey]; - if (typeof resolveConfig === 'function') { - try { - config = resolveConfig(resolvedConfigPath); - } - catch (e) { - config = e; - } - if (config instanceof Error) { - error = config; - return; - } - } - else { - config = mixin.require(resolvedConfigPath); - } - setConfigObject(config); - } - catch (ex) { - if (ex.name === 'PermissionDenied') - error = ex; - else if (argv[configKey]) - error = Error(__('Invalid JSON config file: %s', configPath)); - } - } - }); - } - function setConfigObject(config, prev) { - Object.keys(config).forEach(function (key) { - const value = config[key]; - const fullKey = prev ? prev + '.' + key : key; - if (typeof value === 'object' && value !== null && !Array.isArray(value) && configuration['dot-notation']) { - setConfigObject(value, fullKey); - } - else { - if (!hasKey(argv, fullKey.split('.')) || (checkAllAliases(fullKey, flags.arrays) && configuration['combine-arrays'])) { - setArg(fullKey, value); - } - } - }); - } - function setConfigObjects() { - if (typeof configObjects !== 'undefined') { - configObjects.forEach(function (configObject) { - setConfigObject(configObject); - }); - } - } - function applyEnvVars(argv, configOnly) { - if (typeof envPrefix === 'undefined') - return; - const prefix = typeof envPrefix === 'string' ? envPrefix : ''; - const env = mixin.env(); - Object.keys(env).forEach(function (envVar) { - if (prefix === '' || envVar.lastIndexOf(prefix, 0) === 0) { - const keys = envVar.split('__').map(function (key, i) { - if (i === 0) { - key = key.substring(prefix.length); - } - return camelCase(key); - }); - if (((configOnly && flags.configs[keys.join('.')]) || !configOnly) && !hasKey(argv, keys)) { - setArg(keys.join('.'), env[envVar]); - } - } - }); - } - function applyCoercions(argv) { - let coerce; - const applied = new Set(); - Object.keys(argv).forEach(function (key) { - if (!applied.has(key)) { - coerce = checkAllAliases(key, flags.coercions); - if (typeof coerce === 'function') { - try { - const value = maybeCoerceNumber(key, coerce(argv[key])); - ([].concat(flags.aliases[key] || [], key)).forEach(ali => { - applied.add(ali); - argv[ali] = value; - }); - } - catch (err) { - error = err; - } - } - } - }); - } - function setPlaceholderKeys(argv) { - flags.keys.forEach((key) => { - if (~key.indexOf('.')) - return; - if (typeof argv[key] === 'undefined') - argv[key] = undefined; - }); - return argv; - } - function applyDefaultsAndAliases(obj, aliases, defaults, canLog = false) { - Object.keys(defaults).forEach(function (key) { - if (!hasKey(obj, key.split('.'))) { - setKey(obj, key.split('.'), defaults[key]); - if (canLog) - defaulted[key] = true; - (aliases[key] || []).forEach(function (x) { - if (hasKey(obj, x.split('.'))) - return; - setKey(obj, x.split('.'), defaults[key]); - }); - } - }); - } - function hasKey(obj, keys) { - let o = obj; - if (!configuration['dot-notation']) - keys = [keys.join('.')]; - keys.slice(0, -1).forEach(function (key) { - o = (o[key] || {}); - }); - const key = keys[keys.length - 1]; - if (typeof o !== 'object') - return false; - else - return key in o; - } - function setKey(obj, keys, value) { - let o = obj; - if (!configuration['dot-notation']) - keys = [keys.join('.')]; - keys.slice(0, -1).forEach(function (key) { - key = sanitizeKey(key); - if (typeof o === 'object' && o[key] === undefined) { - o[key] = {}; - } - if (typeof o[key] !== 'object' || Array.isArray(o[key])) { - if (Array.isArray(o[key])) { - o[key].push({}); - } - else { - o[key] = [o[key], {}]; - } - o = o[key][o[key].length - 1]; - } - else { - o = o[key]; - } - }); - const key = sanitizeKey(keys[keys.length - 1]); - const isTypeArray = checkAllAliases(keys.join('.'), flags.arrays); - const isValueArray = Array.isArray(value); - let duplicate = configuration['duplicate-arguments-array']; - if (!duplicate && checkAllAliases(key, flags.nargs)) { - duplicate = true; - if ((!isUndefined(o[key]) && flags.nargs[key] === 1) || (Array.isArray(o[key]) && o[key].length === flags.nargs[key])) { - o[key] = undefined; - } - } - if (value === increment()) { - o[key] = increment(o[key]); - } - else if (Array.isArray(o[key])) { - if (duplicate && isTypeArray && isValueArray) { - o[key] = configuration['flatten-duplicate-arrays'] ? o[key].concat(value) : (Array.isArray(o[key][0]) ? o[key] : [o[key]]).concat([value]); - } - else if (!duplicate && Boolean(isTypeArray) === Boolean(isValueArray)) { - o[key] = value; - } - else { - o[key] = o[key].concat([value]); - } - } - else if (o[key] === undefined && isTypeArray) { - o[key] = isValueArray ? value : [value]; - } - else if (duplicate && !(o[key] === undefined || - checkAllAliases(key, flags.counts) || - checkAllAliases(key, flags.bools))) { - o[key] = [o[key], value]; - } - else { - o[key] = value; - } - } - function extendAliases(...args) { - args.forEach(function (obj) { - Object.keys(obj || {}).forEach(function (key) { - if (flags.aliases[key]) - return; - flags.aliases[key] = [].concat(aliases[key] || []); - flags.aliases[key].concat(key).forEach(function (x) { - if (/-/.test(x) && configuration['camel-case-expansion']) { - const c = camelCase(x); - if (c !== key && flags.aliases[key].indexOf(c) === -1) { - flags.aliases[key].push(c); - newAliases[c] = true; - } - } - }); - flags.aliases[key].concat(key).forEach(function (x) { - if (x.length > 1 && /[A-Z]/.test(x) && configuration['camel-case-expansion']) { - const c = decamelize(x, '-'); - if (c !== key && flags.aliases[key].indexOf(c) === -1) { - flags.aliases[key].push(c); - newAliases[c] = true; - } - } - }); - flags.aliases[key].forEach(function (x) { - flags.aliases[x] = [key].concat(flags.aliases[key].filter(function (y) { - return x !== y; - })); - }); - }); - }); - } - function checkAllAliases(key, flag) { - const toCheck = [].concat(flags.aliases[key] || [], key); - const keys = Object.keys(flag); - const setAlias = toCheck.find(key => keys.includes(key)); - return setAlias ? flag[setAlias] : false; - } - function hasAnyFlag(key) { - const flagsKeys = Object.keys(flags); - const toCheck = [].concat(flagsKeys.map(k => flags[k])); - return toCheck.some(function (flag) { - return Array.isArray(flag) ? flag.includes(key) : flag[key]; - }); - } - function hasFlagsMatching(arg, ...patterns) { - const toCheck = [].concat(...patterns); - return toCheck.some(function (pattern) { - const match = arg.match(pattern); - return match && hasAnyFlag(match[1]); - }); - } - function hasAllShortFlags(arg) { - if (arg.match(negative) || !arg.match(/^-[^-]+/)) { - return false; - } - let hasAllFlags = true; - let next; - const letters = arg.slice(1).split(''); - for (let j = 0; j < letters.length; j++) { - next = arg.slice(j + 2); - if (!hasAnyFlag(letters[j])) { - hasAllFlags = false; - break; - } - if ((letters[j + 1] && letters[j + 1] === '=') || - next === '-' || - (/[A-Za-z]/.test(letters[j]) && /^-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) || - (letters[j + 1] && letters[j + 1].match(/\W/))) { - break; - } - } - return hasAllFlags; - } - function isUnknownOptionAsArg(arg) { - return configuration['unknown-options-as-args'] && isUnknownOption(arg); - } - function isUnknownOption(arg) { - arg = arg.replace(/^-{3,}/, '--'); - if (arg.match(negative)) { - return false; - } - if (hasAllShortFlags(arg)) { - return false; - } - const flagWithEquals = /^-+([^=]+?)=[\s\S]*$/; - const normalFlag = /^-+([^=]+?)$/; - const flagEndingInHyphen = /^-+([^=]+?)-$/; - const flagEndingInDigits = /^-+([^=]+?\d+)$/; - const flagEndingInNonWordCharacters = /^-+([^=]+?)\W+.*$/; - return !hasFlagsMatching(arg, flagWithEquals, negatedBoolean, normalFlag, flagEndingInHyphen, flagEndingInDigits, flagEndingInNonWordCharacters); - } - function defaultValue(key) { - if (!checkAllAliases(key, flags.bools) && - !checkAllAliases(key, flags.counts) && - `${key}` in defaults) { - return defaults[key]; - } - else { - return defaultForType(guessType(key)); - } - } - function defaultForType(type) { - const def = { - [DefaultValuesForTypeKey.BOOLEAN]: true, - [DefaultValuesForTypeKey.STRING]: '', - [DefaultValuesForTypeKey.NUMBER]: undefined, - [DefaultValuesForTypeKey.ARRAY]: [] - }; - return def[type]; - } - function guessType(key) { - let type = DefaultValuesForTypeKey.BOOLEAN; - if (checkAllAliases(key, flags.strings)) - type = DefaultValuesForTypeKey.STRING; - else if (checkAllAliases(key, flags.numbers)) - type = DefaultValuesForTypeKey.NUMBER; - else if (checkAllAliases(key, flags.bools)) - type = DefaultValuesForTypeKey.BOOLEAN; - else if (checkAllAliases(key, flags.arrays)) - type = DefaultValuesForTypeKey.ARRAY; - return type; - } - function isUndefined(num) { - return num === undefined; - } - function checkConfiguration() { - Object.keys(flags.counts).find(key => { - if (checkAllAliases(key, flags.arrays)) { - error = Error(__('Invalid configuration: %s, opts.count excludes opts.array.', key)); - return true; - } - else if (checkAllAliases(key, flags.nargs)) { - error = Error(__('Invalid configuration: %s, opts.count excludes opts.narg.', key)); - return true; - } - return false; - }); - } - return { - aliases: Object.assign({}, flags.aliases), - argv: Object.assign(argvReturn, argv), - configuration: configuration, - defaulted: Object.assign({}, defaulted), - error: error, - newAliases: Object.assign({}, newAliases) - }; - } -} -function combineAliases(aliases) { - const aliasArrays = []; - const combined = Object.create(null); - let change = true; - Object.keys(aliases).forEach(function (key) { - aliasArrays.push([].concat(aliases[key], key)); - }); - while (change) { - change = false; - for (let i = 0; i < aliasArrays.length; i++) { - for (let ii = i + 1; ii < aliasArrays.length; ii++) { - const intersect = aliasArrays[i].filter(function (v) { - return aliasArrays[ii].indexOf(v) !== -1; - }); - if (intersect.length) { - aliasArrays[i] = aliasArrays[i].concat(aliasArrays[ii]); - aliasArrays.splice(ii, 1); - change = true; - break; - } - } - } - } - aliasArrays.forEach(function (aliasArray) { - aliasArray = aliasArray.filter(function (v, i, self) { - return self.indexOf(v) === i; - }); - const lastAlias = aliasArray.pop(); - if (lastAlias !== undefined && typeof lastAlias === 'string') { - combined[lastAlias] = aliasArray; - } - }); - return combined; -} -function increment(orig) { - return orig !== undefined ? orig + 1 : 1; -} -function sanitizeKey(key) { - if (key === '__proto__') - return '___proto___'; - return key; -} -function stripQuotes(val) { - return (typeof val === 'string' && - (val[0] === "'" || val[0] === '"') && - val[val.length - 1] === val[0]) - ? val.substring(1, val.length - 1) - : val; -} - -var _a, _b, _c; -const minNodeVersion = (process && process.env && process.env.YARGS_MIN_NODE_VERSION) - ? Number(process.env.YARGS_MIN_NODE_VERSION) - : 12; -const nodeVersion = (_b = (_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node) !== null && _b !== void 0 ? _b : (_c = process === null || process === void 0 ? void 0 : process.version) === null || _c === void 0 ? void 0 : _c.slice(1); -if (nodeVersion) { - const major = Number(nodeVersion.match(/^([^.]+)/)[1]); - if (major < minNodeVersion) { - throw Error(`yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`); - } -} -const env = process ? process.env : {}; -const parser = new YargsParser({ - cwd: process.cwd, - env: () => { - return env; - }, - format: util.format, - normalize: path.normalize, - resolve: path.resolve, - require: (path) => { - if (typeof require !== 'undefined') { - return require(path); - } - else if (path.match(/\.json$/)) { - return JSON.parse(fs.readFileSync(path, 'utf8')); - } - else { - throw Error('only .json config files are supported in ESM'); - } - } -}); -const yargsParser = function Parser(args, opts) { - const result = parser.parse(args.slice(), opts); - return result.argv; -}; -yargsParser.detailed = function (args, opts) { - return parser.parse(args.slice(), opts); -}; -yargsParser.camelCase = camelCase; -yargsParser.decamelize = decamelize; -yargsParser.looksLikeNumber = looksLikeNumber; - -module.exports = yargsParser; diff --git a/node_modules/yargs-parser/build/lib/index.js b/node_modules/yargs-parser/build/lib/index.js deleted file mode 100644 index 43ef485..0000000 --- a/node_modules/yargs-parser/build/lib/index.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @fileoverview Main entrypoint for libraries using yargs-parser in Node.js - * CJS and ESM environments. - * - * @license - * Copyright (c) 2016, Contributors - * SPDX-License-Identifier: ISC - */ -var _a, _b, _c; -import { format } from 'util'; -import { normalize, resolve } from 'path'; -import { camelCase, decamelize, looksLikeNumber } from './string-utils.js'; -import { YargsParser } from './yargs-parser.js'; -import { readFileSync } from 'fs'; -// See https://github.com/yargs/yargs-parser#supported-nodejs-versions for our -// version support policy. The YARGS_MIN_NODE_VERSION is used for testing only. -const minNodeVersion = (process && process.env && process.env.YARGS_MIN_NODE_VERSION) - ? Number(process.env.YARGS_MIN_NODE_VERSION) - : 12; -const nodeVersion = (_b = (_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node) !== null && _b !== void 0 ? _b : (_c = process === null || process === void 0 ? void 0 : process.version) === null || _c === void 0 ? void 0 : _c.slice(1); -if (nodeVersion) { - const major = Number(nodeVersion.match(/^([^.]+)/)[1]); - if (major < minNodeVersion) { - throw Error(`yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`); - } -} -// Creates a yargs-parser instance using Node.js standard libraries: -const env = process ? process.env : {}; -const parser = new YargsParser({ - cwd: process.cwd, - env: () => { - return env; - }, - format, - normalize, - resolve, - // TODO: figure out a way to combine ESM and CJS coverage, such that - // we can exercise all the lines below: - require: (path) => { - if (typeof require !== 'undefined') { - return require(path); - } - else if (path.match(/\.json$/)) { - // Addresses: https://github.com/yargs/yargs/issues/2040 - return JSON.parse(readFileSync(path, 'utf8')); - } - else { - throw Error('only .json config files are supported in ESM'); - } - } -}); -const yargsParser = function Parser(args, opts) { - const result = parser.parse(args.slice(), opts); - return result.argv; -}; -yargsParser.detailed = function (args, opts) { - return parser.parse(args.slice(), opts); -}; -yargsParser.camelCase = camelCase; -yargsParser.decamelize = decamelize; -yargsParser.looksLikeNumber = looksLikeNumber; -export default yargsParser; diff --git a/node_modules/yargs-parser/build/lib/string-utils.js b/node_modules/yargs-parser/build/lib/string-utils.js deleted file mode 100644 index 4e8bd99..0000000 --- a/node_modules/yargs-parser/build/lib/string-utils.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * @license - * Copyright (c) 2016, Contributors - * SPDX-License-Identifier: ISC - */ -export function camelCase(str) { - // Handle the case where an argument is provided as camel case, e.g., fooBar. - // by ensuring that the string isn't already mixed case: - const isCamelCase = str !== str.toLowerCase() && str !== str.toUpperCase(); - if (!isCamelCase) { - str = str.toLowerCase(); - } - if (str.indexOf('-') === -1 && str.indexOf('_') === -1) { - return str; - } - else { - let camelcase = ''; - let nextChrUpper = false; - const leadingHyphens = str.match(/^-+/); - for (let i = leadingHyphens ? leadingHyphens[0].length : 0; i < str.length; i++) { - let chr = str.charAt(i); - if (nextChrUpper) { - nextChrUpper = false; - chr = chr.toUpperCase(); - } - if (i !== 0 && (chr === '-' || chr === '_')) { - nextChrUpper = true; - } - else if (chr !== '-' && chr !== '_') { - camelcase += chr; - } - } - return camelcase; - } -} -export function decamelize(str, joinString) { - const lowercase = str.toLowerCase(); - joinString = joinString || '-'; - let notCamelcase = ''; - for (let i = 0; i < str.length; i++) { - const chrLower = lowercase.charAt(i); - const chrString = str.charAt(i); - if (chrLower !== chrString && i > 0) { - notCamelcase += `${joinString}${lowercase.charAt(i)}`; - } - else { - notCamelcase += chrString; - } - } - return notCamelcase; -} -export function looksLikeNumber(x) { - if (x === null || x === undefined) - return false; - // if loaded from config, may already be a number. - if (typeof x === 'number') - return true; - // hexadecimal. - if (/^0x[0-9a-f]+$/i.test(x)) - return true; - // don't treat 0123 as a number; as it drops the leading '0'. - if (/^0[^.]/.test(x)) - return false; - return /^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x); -} diff --git a/node_modules/yargs-parser/build/lib/tokenize-arg-string.js b/node_modules/yargs-parser/build/lib/tokenize-arg-string.js deleted file mode 100644 index 5e732ef..0000000 --- a/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +++ /dev/null @@ -1,40 +0,0 @@ -/** - * @license - * Copyright (c) 2016, Contributors - * SPDX-License-Identifier: ISC - */ -// take an un-split argv string and tokenize it. -export function tokenizeArgString(argString) { - if (Array.isArray(argString)) { - return argString.map(e => typeof e !== 'string' ? e + '' : e); - } - argString = argString.trim(); - let i = 0; - let prevC = null; - let c = null; - let opening = null; - const args = []; - for (let ii = 0; ii < argString.length; ii++) { - prevC = c; - c = argString.charAt(ii); - // split on spaces unless we're in quotes. - if (c === ' ' && !opening) { - if (!(prevC === ' ')) { - i++; - } - continue; - } - // don't split the string if we're in matching - // opening or closing single and double quotes. - if (c === opening) { - opening = null; - } - else if ((c === "'" || c === '"') && !opening) { - opening = c; - } - if (!args[i]) - args[i] = ''; - args[i] += c; - } - return args; -} diff --git a/node_modules/yargs-parser/build/lib/yargs-parser-types.js b/node_modules/yargs-parser/build/lib/yargs-parser-types.js deleted file mode 100644 index 63b7c31..0000000 --- a/node_modules/yargs-parser/build/lib/yargs-parser-types.js +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @license - * Copyright (c) 2016, Contributors - * SPDX-License-Identifier: ISC - */ -export var DefaultValuesForTypeKey; -(function (DefaultValuesForTypeKey) { - DefaultValuesForTypeKey["BOOLEAN"] = "boolean"; - DefaultValuesForTypeKey["STRING"] = "string"; - DefaultValuesForTypeKey["NUMBER"] = "number"; - DefaultValuesForTypeKey["ARRAY"] = "array"; -})(DefaultValuesForTypeKey || (DefaultValuesForTypeKey = {})); diff --git a/node_modules/yargs-parser/build/lib/yargs-parser.js b/node_modules/yargs-parser/build/lib/yargs-parser.js deleted file mode 100644 index 415d4bc..0000000 --- a/node_modules/yargs-parser/build/lib/yargs-parser.js +++ /dev/null @@ -1,1045 +0,0 @@ -/** - * @license - * Copyright (c) 2016, Contributors - * SPDX-License-Identifier: ISC - */ -import { tokenizeArgString } from './tokenize-arg-string.js'; -import { DefaultValuesForTypeKey } from './yargs-parser-types.js'; -import { camelCase, decamelize, looksLikeNumber } from './string-utils.js'; -let mixin; -export class YargsParser { - constructor(_mixin) { - mixin = _mixin; - } - parse(argsInput, options) { - const opts = Object.assign({ - alias: undefined, - array: undefined, - boolean: undefined, - config: undefined, - configObjects: undefined, - configuration: undefined, - coerce: undefined, - count: undefined, - default: undefined, - envPrefix: undefined, - narg: undefined, - normalize: undefined, - string: undefined, - number: undefined, - __: undefined, - key: undefined - }, options); - // allow a string argument to be passed in rather - // than an argv array. - const args = tokenizeArgString(argsInput); - // tokenizeArgString adds extra quotes to args if argsInput is a string - // only strip those extra quotes in processValue if argsInput is a string - const inputIsString = typeof argsInput === 'string'; - // aliases might have transitive relationships, normalize this. - const aliases = combineAliases(Object.assign(Object.create(null), opts.alias)); - const configuration = Object.assign({ - 'boolean-negation': true, - 'camel-case-expansion': true, - 'combine-arrays': false, - 'dot-notation': true, - 'duplicate-arguments-array': true, - 'flatten-duplicate-arrays': true, - 'greedy-arrays': true, - 'halt-at-non-option': false, - 'nargs-eats-options': false, - 'negation-prefix': 'no-', - 'parse-numbers': true, - 'parse-positional-numbers': true, - 'populate--': false, - 'set-placeholder-key': false, - 'short-option-groups': true, - 'strip-aliased': false, - 'strip-dashed': false, - 'unknown-options-as-args': false - }, opts.configuration); - const defaults = Object.assign(Object.create(null), opts.default); - const configObjects = opts.configObjects || []; - const envPrefix = opts.envPrefix; - const notFlagsOption = configuration['populate--']; - const notFlagsArgv = notFlagsOption ? '--' : '_'; - const newAliases = Object.create(null); - const defaulted = Object.create(null); - // allow a i18n handler to be passed in, default to a fake one (util.format). - const __ = opts.__ || mixin.format; - const flags = { - aliases: Object.create(null), - arrays: Object.create(null), - bools: Object.create(null), - strings: Object.create(null), - numbers: Object.create(null), - counts: Object.create(null), - normalize: Object.create(null), - configs: Object.create(null), - nargs: Object.create(null), - coercions: Object.create(null), - keys: [] - }; - const negative = /^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/; - const negatedBoolean = new RegExp('^--' + configuration['negation-prefix'] + '(.+)'); - [].concat(opts.array || []).filter(Boolean).forEach(function (opt) { - const key = typeof opt === 'object' ? opt.key : opt; - // assign to flags[bools|strings|numbers] - const assignment = Object.keys(opt).map(function (key) { - const arrayFlagKeys = { - boolean: 'bools', - string: 'strings', - number: 'numbers' - }; - return arrayFlagKeys[key]; - }).filter(Boolean).pop(); - // assign key to be coerced - if (assignment) { - flags[assignment][key] = true; - } - flags.arrays[key] = true; - flags.keys.push(key); - }); - [].concat(opts.boolean || []).filter(Boolean).forEach(function (key) { - flags.bools[key] = true; - flags.keys.push(key); - }); - [].concat(opts.string || []).filter(Boolean).forEach(function (key) { - flags.strings[key] = true; - flags.keys.push(key); - }); - [].concat(opts.number || []).filter(Boolean).forEach(function (key) { - flags.numbers[key] = true; - flags.keys.push(key); - }); - [].concat(opts.count || []).filter(Boolean).forEach(function (key) { - flags.counts[key] = true; - flags.keys.push(key); - }); - [].concat(opts.normalize || []).filter(Boolean).forEach(function (key) { - flags.normalize[key] = true; - flags.keys.push(key); - }); - if (typeof opts.narg === 'object') { - Object.entries(opts.narg).forEach(([key, value]) => { - if (typeof value === 'number') { - flags.nargs[key] = value; - flags.keys.push(key); - } - }); - } - if (typeof opts.coerce === 'object') { - Object.entries(opts.coerce).forEach(([key, value]) => { - if (typeof value === 'function') { - flags.coercions[key] = value; - flags.keys.push(key); - } - }); - } - if (typeof opts.config !== 'undefined') { - if (Array.isArray(opts.config) || typeof opts.config === 'string') { - ; - [].concat(opts.config).filter(Boolean).forEach(function (key) { - flags.configs[key] = true; - }); - } - else if (typeof opts.config === 'object') { - Object.entries(opts.config).forEach(([key, value]) => { - if (typeof value === 'boolean' || typeof value === 'function') { - flags.configs[key] = value; - } - }); - } - } - // create a lookup table that takes into account all - // combinations of aliases: {f: ['foo'], foo: ['f']} - extendAliases(opts.key, aliases, opts.default, flags.arrays); - // apply default values to all aliases. - Object.keys(defaults).forEach(function (key) { - (flags.aliases[key] || []).forEach(function (alias) { - defaults[alias] = defaults[key]; - }); - }); - let error = null; - checkConfiguration(); - let notFlags = []; - const argv = Object.assign(Object.create(null), { _: [] }); - // TODO(bcoe): for the first pass at removing object prototype we didn't - // remove all prototypes from objects returned by this API, we might want - // to gradually move towards doing so. - const argvReturn = {}; - for (let i = 0; i < args.length; i++) { - const arg = args[i]; - const truncatedArg = arg.replace(/^-{3,}/, '---'); - let broken; - let key; - let letters; - let m; - let next; - let value; - // any unknown option (except for end-of-options, "--") - if (arg !== '--' && /^-/.test(arg) && isUnknownOptionAsArg(arg)) { - pushPositional(arg); - // ---, ---=, ----, etc, - } - else if (truncatedArg.match(/^---+(=|$)/)) { - // options without key name are invalid. - pushPositional(arg); - continue; - // -- separated by = - } - else if (arg.match(/^--.+=/) || (!configuration['short-option-groups'] && arg.match(/^-.+=/))) { - // Using [\s\S] instead of . because js doesn't support the - // 'dotall' regex modifier. See: - // http://stackoverflow.com/a/1068308/13216 - m = arg.match(/^--?([^=]+)=([\s\S]*)$/); - // arrays format = '--f=a b c' - if (m !== null && Array.isArray(m) && m.length >= 3) { - if (checkAllAliases(m[1], flags.arrays)) { - i = eatArray(i, m[1], args, m[2]); - } - else if (checkAllAliases(m[1], flags.nargs) !== false) { - // nargs format = '--f=monkey washing cat' - i = eatNargs(i, m[1], args, m[2]); - } - else { - setArg(m[1], m[2], true); - } - } - } - else if (arg.match(negatedBoolean) && configuration['boolean-negation']) { - m = arg.match(negatedBoolean); - if (m !== null && Array.isArray(m) && m.length >= 2) { - key = m[1]; - setArg(key, checkAllAliases(key, flags.arrays) ? [false] : false); - } - // -- separated by space. - } - else if (arg.match(/^--.+/) || (!configuration['short-option-groups'] && arg.match(/^-[^-]+/))) { - m = arg.match(/^--?(.+)/); - if (m !== null && Array.isArray(m) && m.length >= 2) { - key = m[1]; - if (checkAllAliases(key, flags.arrays)) { - // array format = '--foo a b c' - i = eatArray(i, key, args); - } - else if (checkAllAliases(key, flags.nargs) !== false) { - // nargs format = '--foo a b c' - // should be truthy even if: flags.nargs[key] === 0 - i = eatNargs(i, key, args); - } - else { - next = args[i + 1]; - if (next !== undefined && (!next.match(/^-/) || - next.match(negative)) && - !checkAllAliases(key, flags.bools) && - !checkAllAliases(key, flags.counts)) { - setArg(key, next); - i++; - } - else if (/^(true|false)$/.test(next)) { - setArg(key, next); - i++; - } - else { - setArg(key, defaultValue(key)); - } - } - } - // dot-notation flag separated by '='. - } - else if (arg.match(/^-.\..+=/)) { - m = arg.match(/^-([^=]+)=([\s\S]*)$/); - if (m !== null && Array.isArray(m) && m.length >= 3) { - setArg(m[1], m[2]); - } - // dot-notation flag separated by space. - } - else if (arg.match(/^-.\..+/) && !arg.match(negative)) { - next = args[i + 1]; - m = arg.match(/^-(.\..+)/); - if (m !== null && Array.isArray(m) && m.length >= 2) { - key = m[1]; - if (next !== undefined && !next.match(/^-/) && - !checkAllAliases(key, flags.bools) && - !checkAllAliases(key, flags.counts)) { - setArg(key, next); - i++; - } - else { - setArg(key, defaultValue(key)); - } - } - } - else if (arg.match(/^-[^-]+/) && !arg.match(negative)) { - letters = arg.slice(1, -1).split(''); - broken = false; - for (let j = 0; j < letters.length; j++) { - next = arg.slice(j + 2); - if (letters[j + 1] && letters[j + 1] === '=') { - value = arg.slice(j + 3); - key = letters[j]; - if (checkAllAliases(key, flags.arrays)) { - // array format = '-f=a b c' - i = eatArray(i, key, args, value); - } - else if (checkAllAliases(key, flags.nargs) !== false) { - // nargs format = '-f=monkey washing cat' - i = eatNargs(i, key, args, value); - } - else { - setArg(key, value); - } - broken = true; - break; - } - if (next === '-') { - setArg(letters[j], next); - continue; - } - // current letter is an alphabetic character and next value is a number - if (/[A-Za-z]/.test(letters[j]) && - /^-?\d+(\.\d*)?(e-?\d+)?$/.test(next) && - checkAllAliases(next, flags.bools) === false) { - setArg(letters[j], next); - broken = true; - break; - } - if (letters[j + 1] && letters[j + 1].match(/\W/)) { - setArg(letters[j], next); - broken = true; - break; - } - else { - setArg(letters[j], defaultValue(letters[j])); - } - } - key = arg.slice(-1)[0]; - if (!broken && key !== '-') { - if (checkAllAliases(key, flags.arrays)) { - // array format = '-f a b c' - i = eatArray(i, key, args); - } - else if (checkAllAliases(key, flags.nargs) !== false) { - // nargs format = '-f a b c' - // should be truthy even if: flags.nargs[key] === 0 - i = eatNargs(i, key, args); - } - else { - next = args[i + 1]; - if (next !== undefined && (!/^(-|--)[^-]/.test(next) || - next.match(negative)) && - !checkAllAliases(key, flags.bools) && - !checkAllAliases(key, flags.counts)) { - setArg(key, next); - i++; - } - else if (/^(true|false)$/.test(next)) { - setArg(key, next); - i++; - } - else { - setArg(key, defaultValue(key)); - } - } - } - } - else if (arg.match(/^-[0-9]$/) && - arg.match(negative) && - checkAllAliases(arg.slice(1), flags.bools)) { - // single-digit boolean alias, e.g: xargs -0 - key = arg.slice(1); - setArg(key, defaultValue(key)); - } - else if (arg === '--') { - notFlags = args.slice(i + 1); - break; - } - else if (configuration['halt-at-non-option']) { - notFlags = args.slice(i); - break; - } - else { - pushPositional(arg); - } - } - // order of precedence: - // 1. command line arg - // 2. value from env var - // 3. value from config file - // 4. value from config objects - // 5. configured default value - applyEnvVars(argv, true); // special case: check env vars that point to config file - applyEnvVars(argv, false); - setConfig(argv); - setConfigObjects(); - applyDefaultsAndAliases(argv, flags.aliases, defaults, true); - applyCoercions(argv); - if (configuration['set-placeholder-key']) - setPlaceholderKeys(argv); - // for any counts either not in args or without an explicit default, set to 0 - Object.keys(flags.counts).forEach(function (key) { - if (!hasKey(argv, key.split('.'))) - setArg(key, 0); - }); - // '--' defaults to undefined. - if (notFlagsOption && notFlags.length) - argv[notFlagsArgv] = []; - notFlags.forEach(function (key) { - argv[notFlagsArgv].push(key); - }); - if (configuration['camel-case-expansion'] && configuration['strip-dashed']) { - Object.keys(argv).filter(key => key !== '--' && key.includes('-')).forEach(key => { - delete argv[key]; - }); - } - if (configuration['strip-aliased']) { - ; - [].concat(...Object.keys(aliases).map(k => aliases[k])).forEach(alias => { - if (configuration['camel-case-expansion'] && alias.includes('-')) { - delete argv[alias.split('.').map(prop => camelCase(prop)).join('.')]; - } - delete argv[alias]; - }); - } - // Push argument into positional array, applying numeric coercion: - function pushPositional(arg) { - const maybeCoercedNumber = maybeCoerceNumber('_', arg); - if (typeof maybeCoercedNumber === 'string' || typeof maybeCoercedNumber === 'number') { - argv._.push(maybeCoercedNumber); - } - } - // how many arguments should we consume, based - // on the nargs option? - function eatNargs(i, key, args, argAfterEqualSign) { - let ii; - let toEat = checkAllAliases(key, flags.nargs); - // NaN has a special meaning for the array type, indicating that one or - // more values are expected. - toEat = typeof toEat !== 'number' || isNaN(toEat) ? 1 : toEat; - if (toEat === 0) { - if (!isUndefined(argAfterEqualSign)) { - error = Error(__('Argument unexpected for: %s', key)); - } - setArg(key, defaultValue(key)); - return i; - } - let available = isUndefined(argAfterEqualSign) ? 0 : 1; - if (configuration['nargs-eats-options']) { - // classic behavior, yargs eats positional and dash arguments. - if (args.length - (i + 1) + available < toEat) { - error = Error(__('Not enough arguments following: %s', key)); - } - available = toEat; - } - else { - // nargs will not consume flag arguments, e.g., -abc, --foo, - // and terminates when one is observed. - for (ii = i + 1; ii < args.length; ii++) { - if (!args[ii].match(/^-[^0-9]/) || args[ii].match(negative) || isUnknownOptionAsArg(args[ii])) - available++; - else - break; - } - if (available < toEat) - error = Error(__('Not enough arguments following: %s', key)); - } - let consumed = Math.min(available, toEat); - if (!isUndefined(argAfterEqualSign) && consumed > 0) { - setArg(key, argAfterEqualSign); - consumed--; - } - for (ii = i + 1; ii < (consumed + i + 1); ii++) { - setArg(key, args[ii]); - } - return (i + consumed); - } - // if an option is an array, eat all non-hyphenated arguments - // following it... YUM! - // e.g., --foo apple banana cat becomes ["apple", "banana", "cat"] - function eatArray(i, key, args, argAfterEqualSign) { - let argsToSet = []; - let next = argAfterEqualSign || args[i + 1]; - // If both array and nargs are configured, enforce the nargs count: - const nargsCount = checkAllAliases(key, flags.nargs); - if (checkAllAliases(key, flags.bools) && !(/^(true|false)$/.test(next))) { - argsToSet.push(true); - } - else if (isUndefined(next) || - (isUndefined(argAfterEqualSign) && /^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next))) { - // for keys without value ==> argsToSet remains an empty [] - // set user default value, if available - if (defaults[key] !== undefined) { - const defVal = defaults[key]; - argsToSet = Array.isArray(defVal) ? defVal : [defVal]; - } - } - else { - // value in --option=value is eaten as is - if (!isUndefined(argAfterEqualSign)) { - argsToSet.push(processValue(key, argAfterEqualSign, true)); - } - for (let ii = i + 1; ii < args.length; ii++) { - if ((!configuration['greedy-arrays'] && argsToSet.length > 0) || - (nargsCount && typeof nargsCount === 'number' && argsToSet.length >= nargsCount)) - break; - next = args[ii]; - if (/^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next)) - break; - i = ii; - argsToSet.push(processValue(key, next, inputIsString)); - } - } - // If both array and nargs are configured, create an error if less than - // nargs positionals were found. NaN has special meaning, indicating - // that at least one value is required (more are okay). - if (typeof nargsCount === 'number' && ((nargsCount && argsToSet.length < nargsCount) || - (isNaN(nargsCount) && argsToSet.length === 0))) { - error = Error(__('Not enough arguments following: %s', key)); - } - setArg(key, argsToSet); - return i; - } - function setArg(key, val, shouldStripQuotes = inputIsString) { - if (/-/.test(key) && configuration['camel-case-expansion']) { - const alias = key.split('.').map(function (prop) { - return camelCase(prop); - }).join('.'); - addNewAlias(key, alias); - } - const value = processValue(key, val, shouldStripQuotes); - const splitKey = key.split('.'); - setKey(argv, splitKey, value); - // handle populating aliases of the full key - if (flags.aliases[key]) { - flags.aliases[key].forEach(function (x) { - const keyProperties = x.split('.'); - setKey(argv, keyProperties, value); - }); - } - // handle populating aliases of the first element of the dot-notation key - if (splitKey.length > 1 && configuration['dot-notation']) { - ; - (flags.aliases[splitKey[0]] || []).forEach(function (x) { - let keyProperties = x.split('.'); - // expand alias with nested objects in key - const a = [].concat(splitKey); - a.shift(); // nuke the old key. - keyProperties = keyProperties.concat(a); - // populate alias only if is not already an alias of the full key - // (already populated above) - if (!(flags.aliases[key] || []).includes(keyProperties.join('.'))) { - setKey(argv, keyProperties, value); - } - }); - } - // Set normalize getter and setter when key is in 'normalize' but isn't an array - if (checkAllAliases(key, flags.normalize) && !checkAllAliases(key, flags.arrays)) { - const keys = [key].concat(flags.aliases[key] || []); - keys.forEach(function (key) { - Object.defineProperty(argvReturn, key, { - enumerable: true, - get() { - return val; - }, - set(value) { - val = typeof value === 'string' ? mixin.normalize(value) : value; - } - }); - }); - } - } - function addNewAlias(key, alias) { - if (!(flags.aliases[key] && flags.aliases[key].length)) { - flags.aliases[key] = [alias]; - newAliases[alias] = true; - } - if (!(flags.aliases[alias] && flags.aliases[alias].length)) { - addNewAlias(alias, key); - } - } - function processValue(key, val, shouldStripQuotes) { - // strings may be quoted, clean this up as we assign values. - if (shouldStripQuotes) { - val = stripQuotes(val); - } - // handle parsing boolean arguments --foo=true --bar false. - if (checkAllAliases(key, flags.bools) || checkAllAliases(key, flags.counts)) { - if (typeof val === 'string') - val = val === 'true'; - } - let value = Array.isArray(val) - ? val.map(function (v) { return maybeCoerceNumber(key, v); }) - : maybeCoerceNumber(key, val); - // increment a count given as arg (either no value or value parsed as boolean) - if (checkAllAliases(key, flags.counts) && (isUndefined(value) || typeof value === 'boolean')) { - value = increment(); - } - // Set normalized value when key is in 'normalize' and in 'arrays' - if (checkAllAliases(key, flags.normalize) && checkAllAliases(key, flags.arrays)) { - if (Array.isArray(val)) - value = val.map((val) => { return mixin.normalize(val); }); - else - value = mixin.normalize(val); - } - return value; - } - function maybeCoerceNumber(key, value) { - if (!configuration['parse-positional-numbers'] && key === '_') - return value; - if (!checkAllAliases(key, flags.strings) && !checkAllAliases(key, flags.bools) && !Array.isArray(value)) { - const shouldCoerceNumber = looksLikeNumber(value) && configuration['parse-numbers'] && (Number.isSafeInteger(Math.floor(parseFloat(`${value}`)))); - if (shouldCoerceNumber || (!isUndefined(value) && checkAllAliases(key, flags.numbers))) { - value = Number(value); - } - } - return value; - } - // set args from config.json file, this should be - // applied last so that defaults can be applied. - function setConfig(argv) { - const configLookup = Object.create(null); - // expand defaults/aliases, in-case any happen to reference - // the config.json file. - applyDefaultsAndAliases(configLookup, flags.aliases, defaults); - Object.keys(flags.configs).forEach(function (configKey) { - const configPath = argv[configKey] || configLookup[configKey]; - if (configPath) { - try { - let config = null; - const resolvedConfigPath = mixin.resolve(mixin.cwd(), configPath); - const resolveConfig = flags.configs[configKey]; - if (typeof resolveConfig === 'function') { - try { - config = resolveConfig(resolvedConfigPath); - } - catch (e) { - config = e; - } - if (config instanceof Error) { - error = config; - return; - } - } - else { - config = mixin.require(resolvedConfigPath); - } - setConfigObject(config); - } - catch (ex) { - // Deno will receive a PermissionDenied error if an attempt is - // made to load config without the --allow-read flag: - if (ex.name === 'PermissionDenied') - error = ex; - else if (argv[configKey]) - error = Error(__('Invalid JSON config file: %s', configPath)); - } - } - }); - } - // set args from config object. - // it recursively checks nested objects. - function setConfigObject(config, prev) { - Object.keys(config).forEach(function (key) { - const value = config[key]; - const fullKey = prev ? prev + '.' + key : key; - // if the value is an inner object and we have dot-notation - // enabled, treat inner objects in config the same as - // heavily nested dot notations (foo.bar.apple). - if (typeof value === 'object' && value !== null && !Array.isArray(value) && configuration['dot-notation']) { - // if the value is an object but not an array, check nested object - setConfigObject(value, fullKey); - } - else { - // setting arguments via CLI takes precedence over - // values within the config file. - if (!hasKey(argv, fullKey.split('.')) || (checkAllAliases(fullKey, flags.arrays) && configuration['combine-arrays'])) { - setArg(fullKey, value); - } - } - }); - } - // set all config objects passed in opts - function setConfigObjects() { - if (typeof configObjects !== 'undefined') { - configObjects.forEach(function (configObject) { - setConfigObject(configObject); - }); - } - } - function applyEnvVars(argv, configOnly) { - if (typeof envPrefix === 'undefined') - return; - const prefix = typeof envPrefix === 'string' ? envPrefix : ''; - const env = mixin.env(); - Object.keys(env).forEach(function (envVar) { - if (prefix === '' || envVar.lastIndexOf(prefix, 0) === 0) { - // get array of nested keys and convert them to camel case - const keys = envVar.split('__').map(function (key, i) { - if (i === 0) { - key = key.substring(prefix.length); - } - return camelCase(key); - }); - if (((configOnly && flags.configs[keys.join('.')]) || !configOnly) && !hasKey(argv, keys)) { - setArg(keys.join('.'), env[envVar]); - } - } - }); - } - function applyCoercions(argv) { - let coerce; - const applied = new Set(); - Object.keys(argv).forEach(function (key) { - if (!applied.has(key)) { // If we haven't already coerced this option via one of its aliases - coerce = checkAllAliases(key, flags.coercions); - if (typeof coerce === 'function') { - try { - const value = maybeCoerceNumber(key, coerce(argv[key])); - ([].concat(flags.aliases[key] || [], key)).forEach(ali => { - applied.add(ali); - argv[ali] = value; - }); - } - catch (err) { - error = err; - } - } - } - }); - } - function setPlaceholderKeys(argv) { - flags.keys.forEach((key) => { - // don't set placeholder keys for dot notation options 'foo.bar'. - if (~key.indexOf('.')) - return; - if (typeof argv[key] === 'undefined') - argv[key] = undefined; - }); - return argv; - } - function applyDefaultsAndAliases(obj, aliases, defaults, canLog = false) { - Object.keys(defaults).forEach(function (key) { - if (!hasKey(obj, key.split('.'))) { - setKey(obj, key.split('.'), defaults[key]); - if (canLog) - defaulted[key] = true; - (aliases[key] || []).forEach(function (x) { - if (hasKey(obj, x.split('.'))) - return; - setKey(obj, x.split('.'), defaults[key]); - }); - } - }); - } - function hasKey(obj, keys) { - let o = obj; - if (!configuration['dot-notation']) - keys = [keys.join('.')]; - keys.slice(0, -1).forEach(function (key) { - o = (o[key] || {}); - }); - const key = keys[keys.length - 1]; - if (typeof o !== 'object') - return false; - else - return key in o; - } - function setKey(obj, keys, value) { - let o = obj; - if (!configuration['dot-notation']) - keys = [keys.join('.')]; - keys.slice(0, -1).forEach(function (key) { - // TODO(bcoe): in the next major version of yargs, switch to - // Object.create(null) for dot notation: - key = sanitizeKey(key); - if (typeof o === 'object' && o[key] === undefined) { - o[key] = {}; - } - if (typeof o[key] !== 'object' || Array.isArray(o[key])) { - // ensure that o[key] is an array, and that the last item is an empty object. - if (Array.isArray(o[key])) { - o[key].push({}); - } - else { - o[key] = [o[key], {}]; - } - // we want to update the empty object at the end of the o[key] array, so set o to that object - o = o[key][o[key].length - 1]; - } - else { - o = o[key]; - } - }); - // TODO(bcoe): in the next major version of yargs, switch to - // Object.create(null) for dot notation: - const key = sanitizeKey(keys[keys.length - 1]); - const isTypeArray = checkAllAliases(keys.join('.'), flags.arrays); - const isValueArray = Array.isArray(value); - let duplicate = configuration['duplicate-arguments-array']; - // nargs has higher priority than duplicate - if (!duplicate && checkAllAliases(key, flags.nargs)) { - duplicate = true; - if ((!isUndefined(o[key]) && flags.nargs[key] === 1) || (Array.isArray(o[key]) && o[key].length === flags.nargs[key])) { - o[key] = undefined; - } - } - if (value === increment()) { - o[key] = increment(o[key]); - } - else if (Array.isArray(o[key])) { - if (duplicate && isTypeArray && isValueArray) { - o[key] = configuration['flatten-duplicate-arrays'] ? o[key].concat(value) : (Array.isArray(o[key][0]) ? o[key] : [o[key]]).concat([value]); - } - else if (!duplicate && Boolean(isTypeArray) === Boolean(isValueArray)) { - o[key] = value; - } - else { - o[key] = o[key].concat([value]); - } - } - else if (o[key] === undefined && isTypeArray) { - o[key] = isValueArray ? value : [value]; - } - else if (duplicate && !(o[key] === undefined || - checkAllAliases(key, flags.counts) || - checkAllAliases(key, flags.bools))) { - o[key] = [o[key], value]; - } - else { - o[key] = value; - } - } - // extend the aliases list with inferred aliases. - function extendAliases(...args) { - args.forEach(function (obj) { - Object.keys(obj || {}).forEach(function (key) { - // short-circuit if we've already added a key - // to the aliases array, for example it might - // exist in both 'opts.default' and 'opts.key'. - if (flags.aliases[key]) - return; - flags.aliases[key] = [].concat(aliases[key] || []); - // For "--option-name", also set argv.optionName - flags.aliases[key].concat(key).forEach(function (x) { - if (/-/.test(x) && configuration['camel-case-expansion']) { - const c = camelCase(x); - if (c !== key && flags.aliases[key].indexOf(c) === -1) { - flags.aliases[key].push(c); - newAliases[c] = true; - } - } - }); - // For "--optionName", also set argv['option-name'] - flags.aliases[key].concat(key).forEach(function (x) { - if (x.length > 1 && /[A-Z]/.test(x) && configuration['camel-case-expansion']) { - const c = decamelize(x, '-'); - if (c !== key && flags.aliases[key].indexOf(c) === -1) { - flags.aliases[key].push(c); - newAliases[c] = true; - } - } - }); - flags.aliases[key].forEach(function (x) { - flags.aliases[x] = [key].concat(flags.aliases[key].filter(function (y) { - return x !== y; - })); - }); - }); - }); - } - function checkAllAliases(key, flag) { - const toCheck = [].concat(flags.aliases[key] || [], key); - const keys = Object.keys(flag); - const setAlias = toCheck.find(key => keys.includes(key)); - return setAlias ? flag[setAlias] : false; - } - function hasAnyFlag(key) { - const flagsKeys = Object.keys(flags); - const toCheck = [].concat(flagsKeys.map(k => flags[k])); - return toCheck.some(function (flag) { - return Array.isArray(flag) ? flag.includes(key) : flag[key]; - }); - } - function hasFlagsMatching(arg, ...patterns) { - const toCheck = [].concat(...patterns); - return toCheck.some(function (pattern) { - const match = arg.match(pattern); - return match && hasAnyFlag(match[1]); - }); - } - // based on a simplified version of the short flag group parsing logic - function hasAllShortFlags(arg) { - // if this is a negative number, or doesn't start with a single hyphen, it's not a short flag group - if (arg.match(negative) || !arg.match(/^-[^-]+/)) { - return false; - } - let hasAllFlags = true; - let next; - const letters = arg.slice(1).split(''); - for (let j = 0; j < letters.length; j++) { - next = arg.slice(j + 2); - if (!hasAnyFlag(letters[j])) { - hasAllFlags = false; - break; - } - if ((letters[j + 1] && letters[j + 1] === '=') || - next === '-' || - (/[A-Za-z]/.test(letters[j]) && /^-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) || - (letters[j + 1] && letters[j + 1].match(/\W/))) { - break; - } - } - return hasAllFlags; - } - function isUnknownOptionAsArg(arg) { - return configuration['unknown-options-as-args'] && isUnknownOption(arg); - } - function isUnknownOption(arg) { - arg = arg.replace(/^-{3,}/, '--'); - // ignore negative numbers - if (arg.match(negative)) { - return false; - } - // if this is a short option group and all of them are configured, it isn't unknown - if (hasAllShortFlags(arg)) { - return false; - } - // e.g. '--count=2' - const flagWithEquals = /^-+([^=]+?)=[\s\S]*$/; - // e.g. '-a' or '--arg' - const normalFlag = /^-+([^=]+?)$/; - // e.g. '-a-' - const flagEndingInHyphen = /^-+([^=]+?)-$/; - // e.g. '-abc123' - const flagEndingInDigits = /^-+([^=]+?\d+)$/; - // e.g. '-a/usr/local' - const flagEndingInNonWordCharacters = /^-+([^=]+?)\W+.*$/; - // check the different types of flag styles, including negatedBoolean, a pattern defined near the start of the parse method - return !hasFlagsMatching(arg, flagWithEquals, negatedBoolean, normalFlag, flagEndingInHyphen, flagEndingInDigits, flagEndingInNonWordCharacters); - } - // make a best effort to pick a default value - // for an option based on name and type. - function defaultValue(key) { - if (!checkAllAliases(key, flags.bools) && - !checkAllAliases(key, flags.counts) && - `${key}` in defaults) { - return defaults[key]; - } - else { - return defaultForType(guessType(key)); - } - } - // return a default value, given the type of a flag., - function defaultForType(type) { - const def = { - [DefaultValuesForTypeKey.BOOLEAN]: true, - [DefaultValuesForTypeKey.STRING]: '', - [DefaultValuesForTypeKey.NUMBER]: undefined, - [DefaultValuesForTypeKey.ARRAY]: [] - }; - return def[type]; - } - // given a flag, enforce a default type. - function guessType(key) { - let type = DefaultValuesForTypeKey.BOOLEAN; - if (checkAllAliases(key, flags.strings)) - type = DefaultValuesForTypeKey.STRING; - else if (checkAllAliases(key, flags.numbers)) - type = DefaultValuesForTypeKey.NUMBER; - else if (checkAllAliases(key, flags.bools)) - type = DefaultValuesForTypeKey.BOOLEAN; - else if (checkAllAliases(key, flags.arrays)) - type = DefaultValuesForTypeKey.ARRAY; - return type; - } - function isUndefined(num) { - return num === undefined; - } - // check user configuration settings for inconsistencies - function checkConfiguration() { - // count keys should not be set as array/narg - Object.keys(flags.counts).find(key => { - if (checkAllAliases(key, flags.arrays)) { - error = Error(__('Invalid configuration: %s, opts.count excludes opts.array.', key)); - return true; - } - else if (checkAllAliases(key, flags.nargs)) { - error = Error(__('Invalid configuration: %s, opts.count excludes opts.narg.', key)); - return true; - } - return false; - }); - } - return { - aliases: Object.assign({}, flags.aliases), - argv: Object.assign(argvReturn, argv), - configuration: configuration, - defaulted: Object.assign({}, defaulted), - error: error, - newAliases: Object.assign({}, newAliases) - }; - } -} -// if any aliases reference each other, we should -// merge them together. -function combineAliases(aliases) { - const aliasArrays = []; - const combined = Object.create(null); - let change = true; - // turn alias lookup hash {key: ['alias1', 'alias2']} into - // a simple array ['key', 'alias1', 'alias2'] - Object.keys(aliases).forEach(function (key) { - aliasArrays.push([].concat(aliases[key], key)); - }); - // combine arrays until zero changes are - // made in an iteration. - while (change) { - change = false; - for (let i = 0; i < aliasArrays.length; i++) { - for (let ii = i + 1; ii < aliasArrays.length; ii++) { - const intersect = aliasArrays[i].filter(function (v) { - return aliasArrays[ii].indexOf(v) !== -1; - }); - if (intersect.length) { - aliasArrays[i] = aliasArrays[i].concat(aliasArrays[ii]); - aliasArrays.splice(ii, 1); - change = true; - break; - } - } - } - } - // map arrays back to the hash-lookup (de-dupe while - // we're at it). - aliasArrays.forEach(function (aliasArray) { - aliasArray = aliasArray.filter(function (v, i, self) { - return self.indexOf(v) === i; - }); - const lastAlias = aliasArray.pop(); - if (lastAlias !== undefined && typeof lastAlias === 'string') { - combined[lastAlias] = aliasArray; - } - }); - return combined; -} -// this function should only be called when a count is given as an arg -// it is NOT called to set a default value -// thus we can start the count at 1 instead of 0 -function increment(orig) { - return orig !== undefined ? orig + 1 : 1; -} -// TODO(bcoe): in the next major version of yargs, switch to -// Object.create(null) for dot notation: -function sanitizeKey(key) { - if (key === '__proto__') - return '___proto___'; - return key; -} -function stripQuotes(val) { - return (typeof val === 'string' && - (val[0] === "'" || val[0] === '"') && - val[val.length - 1] === val[0]) - ? val.substring(1, val.length - 1) - : val; -} diff --git a/node_modules/yargs-parser/package.json b/node_modules/yargs-parser/package.json deleted file mode 100644 index decd0c3..0000000 --- a/node_modules/yargs-parser/package.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "name": "yargs-parser", - "version": "21.1.1", - "description": "the mighty option parser used by yargs", - "main": "build/index.cjs", - "exports": { - ".": [ - { - "import": "./build/lib/index.js", - "require": "./build/index.cjs" - }, - "./build/index.cjs" - ], - "./browser": [ - "./browser.js" - ] - }, - "type": "module", - "module": "./build/lib/index.js", - "scripts": { - "check": "standardx '**/*.ts' && standardx '**/*.js' && standardx '**/*.cjs'", - "fix": "standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'", - "pretest": "rimraf build && tsc -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs", - "test": "c8 --reporter=text --reporter=html mocha test/*.cjs", - "test:esm": "c8 --reporter=text --reporter=html mocha test/*.mjs", - "test:browser": "start-server-and-test 'serve ./ -p 8080' http://127.0.0.1:8080/package.json 'node ./test/browser/yargs-test.cjs'", - "pretest:typescript": "npm run pretest", - "test:typescript": "c8 mocha ./build/test/typescript/*.js", - "coverage": "c8 report --check-coverage", - "precompile": "rimraf build", - "compile": "tsc", - "postcompile": "npm run build:cjs", - "build:cjs": "rollup -c", - "prepare": "npm run compile" - }, - "repository": { - "type": "git", - "url": "https://github.com/yargs/yargs-parser.git" - }, - "keywords": [ - "argument", - "parser", - "yargs", - "command", - "cli", - "parsing", - "option", - "args", - "argument" - ], - "author": "Ben Coe ", - "license": "ISC", - "devDependencies": { - "@types/chai": "^4.2.11", - "@types/mocha": "^9.0.0", - "@types/node": "^16.11.4", - "@typescript-eslint/eslint-plugin": "^3.10.1", - "@typescript-eslint/parser": "^3.10.1", - "c8": "^7.3.0", - "chai": "^4.2.0", - "cross-env": "^7.0.2", - "eslint": "^7.0.0", - "eslint-plugin-import": "^2.20.1", - "eslint-plugin-node": "^11.0.0", - "gts": "^3.0.0", - "mocha": "^10.0.0", - "puppeteer": "^16.0.0", - "rimraf": "^3.0.2", - "rollup": "^2.22.1", - "rollup-plugin-cleanup": "^3.1.1", - "rollup-plugin-ts": "^3.0.2", - "serve": "^14.0.0", - "standardx": "^7.0.0", - "start-server-and-test": "^1.11.2", - "ts-transform-default-export": "^1.0.2", - "typescript": "^4.0.0" - }, - "files": [ - "browser.js", - "build", - "!*.d.ts", - "!*.d.cts" - ], - "engines": { - "node": ">=12" - }, - "standardx": { - "ignore": [ - "build" - ] - } -} diff --git a/node_modules/yargs/LICENSE b/node_modules/yargs/LICENSE deleted file mode 100644 index b0145ca..0000000 --- a/node_modules/yargs/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright 2010 James Halliday (mail@substack.net); Modified work Copyright 2014 Contributors (ben@npmjs.com) - -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/yargs/README.md b/node_modules/yargs/README.md deleted file mode 100644 index 51f5b22..0000000 --- a/node_modules/yargs/README.md +++ /dev/null @@ -1,204 +0,0 @@ -

- -

-

Yargs

-

- Yargs be a node.js library fer hearties tryin' ter parse optstrings -

- -
- -![ci](https://github.com/yargs/yargs/workflows/ci/badge.svg) -[![NPM version][npm-image]][npm-url] -[![js-standard-style][standard-image]][standard-url] -[![Coverage][coverage-image]][coverage-url] -[![Conventional Commits][conventional-commits-image]][conventional-commits-url] -[![Slack][slack-image]][slack-url] - -## Description -Yargs helps you build interactive command line tools, by parsing arguments and generating an elegant user interface. - -It gives you: - -* commands and (grouped) options (`my-program.js serve --port=5000`). -* a dynamically generated help menu based on your arguments: - -``` -mocha [spec..] - -Run tests with Mocha - -Commands - mocha inspect [spec..] Run tests with Mocha [default] - mocha init create a client-side Mocha setup at - -Rules & Behavior - --allow-uncaught Allow uncaught errors to propagate [boolean] - --async-only, -A Require all tests to use a callback (async) or - return a Promise [boolean] -``` - -* bash-completion shortcuts for commands and options. -* and [tons more](/docs/api.md). - -## Installation - -Stable version: -```bash -npm i yargs -``` - -Bleeding edge version with the most recent features: -```bash -npm i yargs@next -``` - -## Usage - -### Simple Example - -```javascript -#!/usr/bin/env node -const yargs = require('yargs/yargs') -const { hideBin } = require('yargs/helpers') -const argv = yargs(hideBin(process.argv)).argv - -if (argv.ships > 3 && argv.distance < 53.5) { - console.log('Plunder more riffiwobbles!') -} else { - console.log('Retreat from the xupptumblers!') -} -``` - -```bash -$ ./plunder.js --ships=4 --distance=22 -Plunder more riffiwobbles! - -$ ./plunder.js --ships 12 --distance 98.7 -Retreat from the xupptumblers! -``` - -> Note: `hideBin` is a shorthand for [`process.argv.slice(2)`](https://nodejs.org/en/knowledge/command-line/how-to-parse-command-line-arguments/). It has the benefit that it takes into account variations in some environments, e.g., [Electron](https://github.com/electron/electron/issues/4690). - -### Complex Example - -```javascript -#!/usr/bin/env node -const yargs = require('yargs/yargs') -const { hideBin } = require('yargs/helpers') - -yargs(hideBin(process.argv)) - .command('serve [port]', 'start the server', (yargs) => { - return yargs - .positional('port', { - describe: 'port to bind on', - default: 5000 - }) - }, (argv) => { - if (argv.verbose) console.info(`start server on :${argv.port}`) - serve(argv.port) - }) - .option('verbose', { - alias: 'v', - type: 'boolean', - description: 'Run with verbose logging' - }) - .parse() -``` - -Run the example above with `--help` to see the help for the application. - -## Supported Platforms - -### TypeScript - -yargs has type definitions at [@types/yargs][type-definitions]. - -``` -npm i @types/yargs --save-dev -``` - -See usage examples in [docs](/docs/typescript.md). - -### Deno - -As of `v16`, `yargs` supports [Deno](https://github.com/denoland/deno): - -```typescript -import yargs from 'https://deno.land/x/yargs/deno.ts' -import { Arguments } from 'https://deno.land/x/yargs/deno-types.ts' - -yargs(Deno.args) - .command('download ', 'download a list of files', (yargs: any) => { - return yargs.positional('files', { - describe: 'a list of files to do something with' - }) - }, (argv: Arguments) => { - console.info(argv) - }) - .strictCommands() - .demandCommand(1) - .parse() -``` - -### ESM - -As of `v16`,`yargs` supports ESM imports: - -```js -import yargs from 'yargs' -import { hideBin } from 'yargs/helpers' - -yargs(hideBin(process.argv)) - .command('curl ', 'fetch the contents of the URL', () => {}, (argv) => { - console.info(argv) - }) - .demandCommand(1) - .parse() -``` - -### Usage in Browser - -See examples of using yargs in the browser in [docs](/docs/browser.md). - -## Community - -Having problems? want to contribute? join our [community slack](http://devtoolscommunity.herokuapp.com). - -## Documentation - -### Table of Contents - -* [Yargs' API](/docs/api.md) -* [Examples](/docs/examples.md) -* [Parsing Tricks](/docs/tricks.md) - * [Stop the Parser](/docs/tricks.md#stop) - * [Negating Boolean Arguments](/docs/tricks.md#negate) - * [Numbers](/docs/tricks.md#numbers) - * [Arrays](/docs/tricks.md#arrays) - * [Objects](/docs/tricks.md#objects) - * [Quotes](/docs/tricks.md#quotes) -* [Advanced Topics](/docs/advanced.md) - * [Composing Your App Using Commands](/docs/advanced.md#commands) - * [Building Configurable CLI Apps](/docs/advanced.md#configuration) - * [Customizing Yargs' Parser](/docs/advanced.md#customizing) - * [Bundling yargs](/docs/bundling.md) -* [Contributing](/contributing.md) - -## Supported Node.js Versions - -Libraries in this ecosystem make a best effort to track -[Node.js' release schedule](https://nodejs.org/en/about/releases/). Here's [a -post on why we think this is important](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a). - -[npm-url]: https://www.npmjs.com/package/yargs -[npm-image]: https://img.shields.io/npm/v/yargs.svg -[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg -[standard-url]: http://standardjs.com/ -[conventional-commits-image]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg -[conventional-commits-url]: https://conventionalcommits.org/ -[slack-image]: http://devtoolscommunity.herokuapp.com/badge.svg -[slack-url]: http://devtoolscommunity.herokuapp.com -[type-definitions]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yargs -[coverage-image]: https://img.shields.io/nycrc/yargs/yargs -[coverage-url]: https://github.com/yargs/yargs/blob/main/.nycrc diff --git a/node_modules/yargs/browser.d.ts b/node_modules/yargs/browser.d.ts deleted file mode 100644 index 21f3fc6..0000000 --- a/node_modules/yargs/browser.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import {YargsFactory} from './build/lib/yargs-factory'; - -declare const Yargs: ReturnType; - -export default Yargs; diff --git a/node_modules/yargs/browser.mjs b/node_modules/yargs/browser.mjs deleted file mode 100644 index 2d0d6e9..0000000 --- a/node_modules/yargs/browser.mjs +++ /dev/null @@ -1,7 +0,0 @@ -// Bootstrap yargs for browser: -import browserPlatformShim from './lib/platform-shims/browser.mjs'; -import {YargsFactory} from './build/lib/yargs-factory.js'; - -const Yargs = YargsFactory(browserPlatformShim); - -export default Yargs; diff --git a/node_modules/yargs/build/index.cjs b/node_modules/yargs/build/index.cjs deleted file mode 100644 index e9cf013..0000000 --- a/node_modules/yargs/build/index.cjs +++ /dev/null @@ -1 +0,0 @@ -"use strict";var t=require("assert");class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}let s,i=[];function n(t,o,a,h){s=h;let l={};if(Object.prototype.hasOwnProperty.call(t,"extends")){if("string"!=typeof t.extends)return l;const r=/\.json|\..*rc$/.test(t.extends);let h=null;if(r)h=function(t,e){return s.path.resolve(t,e)}(o,t.extends);else try{h=require.resolve(t.extends)}catch(e){return t}!function(t){if(i.indexOf(t)>-1)throw new e(`Circular extended configurations: '${t}'.`)}(h),i.push(h),l=r?JSON.parse(s.readFileSync(h,"utf8")):require(t.extends),delete t.extends,l=n(l,s.path.dirname(h),a,s)}return i=[],a?r(l,t):Object.assign({},l,t)}function r(t,e){const s={};function i(t){return t&&"object"==typeof t&&!Array.isArray(t)}Object.assign(s,t);for(const n of Object.keys(e))i(e[n])&&i(s[n])?s[n]=r(t[n],e[n]):s[n]=e[n];return s}function o(t){const e=t.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),s=/\.*[\][<>]/g,i=e.shift();if(!i)throw new Error(`No command found in: ${t}`);const n={cmd:i.replace(s,""),demanded:[],optional:[]};return e.forEach(((t,i)=>{let r=!1;t=t.replace(/\s/g,""),/\.+[\]>]/.test(t)&&i===e.length-1&&(r=!0),/^\[/.test(t)?n.optional.push({cmd:t.replace(s,"").split("|"),variadic:r}):n.demanded.push({cmd:t.replace(s,"").split("|"),variadic:r})})),n}const a=["first","second","third","fourth","fifth","sixth"];function h(t,s,i){try{let n=0;const[r,a,h]="object"==typeof t?[{demanded:[],optional:[]},t,s]:[o(`cmd ${t}`),s,i],f=[].slice.call(a);for(;f.length&&void 0===f[f.length-1];)f.pop();const d=h||f.length;if(du)throw new e(`Too many arguments provided. Expected max ${u} but received ${d}.`);r.demanded.forEach((t=>{const e=l(f.shift());0===t.cmd.filter((t=>t===e||"*"===t)).length&&c(e,t.cmd,n),n+=1})),r.optional.forEach((t=>{if(0===f.length)return;const e=l(f.shift());0===t.cmd.filter((t=>t===e||"*"===t)).length&&c(e,t.cmd,n),n+=1}))}catch(t){console.warn(t.stack)}}function l(t){return Array.isArray(t)?"array":null===t?"null":typeof t}function c(t,s,i){throw new e(`Invalid ${a[i]||"manyith"} argument. Expected ${s.join(" or ")} but received ${t}.`)}function f(t){return!!t&&!!t.then&&"function"==typeof t.then}function d(t,e,s,i){s.assert.notStrictEqual(t,e,i)}function u(t,e){e.assert.strictEqual(typeof t,"string")}function p(t){return Object.keys(t)}function g(t={},e=(()=>!0)){const s={};return p(t).forEach((i=>{e(i,t[i])&&(s[i]=t[i])})),s}function m(){return process.versions.electron&&!process.defaultApp?0:1}function y(){return process.argv[m()]}var b=Object.freeze({__proto__:null,hideBin:function(t){return t.slice(m()+1)},getProcessArgvBin:y});function v(t,e,s,i){if("a"===s&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(t):i?i.value:e.get(t)}function O(t,e,s,i,n){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(t,s):n?n.value=s:e.set(t,s),s}class w{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,e,s=!0,i=!1){if(h(" [boolean] [boolean] [boolean]",[t,e,s],arguments.length),Array.isArray(t)){for(let i=0;i{const i=[...s[e]||[],e];return!t.option||!i.includes(t.option)})),t.option=e,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const t=this.frozens.pop();void 0!==t&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter((t=>t.global))}}function C(t,e,s,i){return s.reduce(((t,s)=>{if(s.applyBeforeValidation!==i)return t;if(s.mutates){if(s.applied)return t;s.applied=!0}if(f(t))return t.then((t=>Promise.all([t,s(t,e)]))).then((([t,e])=>Object.assign(t,e)));{const i=s(t,e);return f(i)?i.then((e=>Object.assign(t,e))):Object.assign(t,i)}}),t)}function j(t,e,s=(t=>{throw t})){try{const s="function"==typeof t?t():t;return f(s)?s.then((t=>e(t))):e(s)}catch(t){return s(t)}}const M=/(^\*)|(^\$0)/;class _{constructor(t,e,s,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=s,this.validation=e}addDirectory(t,e,s,i){"boolean"!=typeof(i=i||{}).recurse&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);const n="function"==typeof i.visit?i.visit:t=>t;i.visit=(t,e,s)=>{const i=n(t,e,s);if(i){if(this.requireCache.has(e))return i;this.requireCache.add(e),this.addHandler(i)}return i},this.shim.requireDirectory({require:e,filename:s},t,i)}addHandler(t,e,s,i,n,r){let a=[];const h=function(t){return t?t.map((t=>(t.applyBeforeValidation=!1,t))):[]}(n);if(i=i||(()=>{}),Array.isArray(t))if(function(t){return t.every((t=>"string"==typeof t))}(t))[t,...a]=t;else for(const e of t)this.addHandler(e);else{if(function(t){return"object"==typeof t&&!Array.isArray(t)}(t)){let e=Array.isArray(t.command)||"string"==typeof t.command?t.command:this.moduleName(t);return t.aliases&&(e=[].concat(e).concat(t.aliases)),void this.addHandler(e,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated)}if(k(s))return void this.addHandler([t].concat(a),e,s.builder,s.handler,s.middlewares,s.deprecated)}if("string"==typeof t){const n=o(t);a=a.map((t=>o(t).cmd));let l=!1;const c=[n.cmd].concat(a).filter((t=>!M.test(t)||(l=!0,!1)));0===c.length&&l&&c.push("$0"),l&&(n.cmd=c[0],a=c.slice(1),t=t.replace(M,n.cmd)),a.forEach((t=>{this.aliasMap[t]=n.cmd})),!1!==e&&this.usage.command(t,e,l,a,r),this.handlers[n.cmd]={original:t,description:e,handler:i,builder:s||{},middlewares:h,deprecated:r,demanded:n.demanded,optional:n.optional},l&&(this.defaultCommand=this.handlers[n.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,e,s,i,n,r){const o=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,a=e.getInternalMethods().getContext(),h=a.commands.slice(),l=!t;t&&(a.commands.push(t),a.fullCommands.push(o.original));const c=this.applyBuilderUpdateUsageAndParse(l,o,e,s.aliases,h,i,n,r);return f(c)?c.then((t=>this.applyMiddlewareAndGetResult(l,o,t.innerArgv,a,n,t.aliases,e))):this.applyMiddlewareAndGetResult(l,o,c.innerArgv,a,n,c.aliases,e)}applyBuilderUpdateUsageAndParse(t,e,s,i,n,r,o,a){const h=e.builder;let l=s;if(x(h)){s.getInternalMethods().getUsageInstance().freeze();const c=h(s.getInternalMethods().reset(i),a);if(f(c))return c.then((i=>{var a;return l=(a=i)&&"function"==typeof a.getInternalMethods?i:s,this.parseAndUpdateUsage(t,e,l,n,r,o)}))}else(function(t){return"object"==typeof t})(h)&&(s.getInternalMethods().getUsageInstance().freeze(),l=s.getInternalMethods().reset(i),Object.keys(e.builder).forEach((t=>{l.option(t,h[t])})));return this.parseAndUpdateUsage(t,e,l,n,r,o)}parseAndUpdateUsage(t,e,s,i,n,r){t&&s.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(s)&&s.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,e),e.description);const o=s.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,n,r);return f(o)?o.then((t=>({aliases:s.parsed.aliases,innerArgv:t}))):{aliases:s.parsed.aliases,innerArgv:o}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===t.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(t,e){const s=M.test(e.original)?e.original.replace(M,"").trim():e.original,i=t.filter((t=>!M.test(t)));return i.push(s),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,e,s,i,n,r,o,a){if(!r.getInternalMethods().getHasOutput()){const e=r.getInternalMethods().runValidation(n,a,r.parsed.error,t);s=j(s,(t=>(e(t),t)))}if(e.handler&&!r.getInternalMethods().getHasOutput()){r.getInternalMethods().setHasOutput();const i=!!r.getOptions().configuration["populate--"];r.getInternalMethods().postProcess(s,i,!1,!1),s=j(s=C(s,r,o,!1),(t=>{const s=e.handler(t);return f(s)?s.then((()=>t)):t})),t||r.getInternalMethods().getUsageInstance().cacheHelpMessage(),f(s)&&!r.getInternalMethods().hasParseCallback()&&s.catch((t=>{try{r.getInternalMethods().getUsageInstance().fail(null,t)}catch(t){}}))}return t||(i.commands.pop(),i.fullCommands.pop()),s}applyMiddlewareAndGetResult(t,e,s,i,n,r,o){let a={};if(n)return s;o.getInternalMethods().getHasOutput()||(a=this.populatePositionals(e,s,i,o));const h=this.globalMiddleware.getMiddleware().slice(0).concat(e.middlewares),l=C(s,o,h,!0);return f(l)?l.then((s=>this.handleValidationAndGetResult(t,e,s,i,r,o,h,a))):this.handleValidationAndGetResult(t,e,l,i,r,o,h,a)}populatePositionals(t,e,s,i){e._=e._.slice(s.commands.length);const n=t.demanded.slice(0),r=t.optional.slice(0),o={};for(this.validation.positionalCount(n.length,e._.length);n.length;){const t=n.shift();this.populatePositional(t,e,o)}for(;r.length;){const t=r.shift();this.populatePositional(t,e,o)}return e._=s.commands.concat(e._.map((t=>""+t))),this.postProcessPositionals(e,o,this.cmdToParseOptions(t.original),i),o}populatePositional(t,e,s){const i=t.cmd[0];t.variadic?s[i]=e._.splice(0).map(String):e._.length&&(s[i]=[String(e._.shift())])}cmdToParseOptions(t){const e={array:[],default:{},alias:{},demand:{}},s=o(t);return s.demanded.forEach((t=>{const[s,...i]=t.cmd;t.variadic&&(e.array.push(s),e.default[s]=[]),e.alias[s]=i,e.demand[s]=!0})),s.optional.forEach((t=>{const[s,...i]=t.cmd;t.variadic&&(e.array.push(s),e.default[s]=[]),e.alias[s]=i})),e}postProcessPositionals(t,e,s,i){const n=Object.assign({},i.getOptions());n.default=Object.assign(s.default,n.default);for(const t of Object.keys(s.alias))n.alias[t]=(n.alias[t]||[]).concat(s.alias[t]);n.array=n.array.concat(s.array),n.config={};const r=[];if(Object.keys(e).forEach((t=>{e[t].map((e=>{n.configuration["unknown-options-as-args"]&&(n.key[t]=!0),r.push(`--${t}`),r.push(e)}))})),!r.length)return;const o=Object.assign({},n.configuration,{"populate--":!1}),a=this.shim.Parser.detailed(r,Object.assign({},n,{configuration:o}));if(a.error)i.getInternalMethods().getUsageInstance().fail(a.error.message,a.error);else{const s=Object.keys(e);Object.keys(e).forEach((t=>{s.push(...a.aliases[t])})),Object.keys(a.argv).forEach((n=>{s.includes(n)&&(e[n]||(e[n]=a.argv[n]),!this.isInConfigs(i,n)&&!this.isDefaulted(i,n)&&Object.prototype.hasOwnProperty.call(t,n)&&Object.prototype.hasOwnProperty.call(a.argv,n)&&(Array.isArray(t[n])||Array.isArray(a.argv[n]))?t[n]=[].concat(t[n],a.argv[n]):t[n]=a.argv[n])}))}}isDefaulted(t,e){const{default:s}=t.getOptions();return Object.prototype.hasOwnProperty.call(s,e)||Object.prototype.hasOwnProperty.call(s,this.shim.Parser.camelCase(e))}isInConfigs(t,e){const{configObjects:s}=t.getOptions();return s.some((t=>Object.prototype.hasOwnProperty.call(t,e)))||s.some((t=>Object.prototype.hasOwnProperty.call(t,this.shim.Parser.camelCase(e))))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){const e=M.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(e,this.defaultCommand.description)}const e=this.defaultCommand.builder;if(x(e))return e(t,!0);k(e)||Object.keys(e).forEach((s=>{t.option(s,e[s])}))}moduleName(t){const e=function(t){if("undefined"==typeof require)return null;for(let e,s=0,i=Object.keys(require.cache);s{const s=e;s._handle&&s.isTTY&&"function"==typeof s._handle.setBlocking&&s._handle.setBlocking(t)}))}function A(t){return"boolean"==typeof t}function P(t,s){const i=s.y18n.__,n={},r=[];n.failFn=function(t){r.push(t)};let o=null,a=null,h=!0;n.showHelpOnFail=function(e=!0,s){const[i,r]="string"==typeof e?[!0,e]:[e,s];return t.getInternalMethods().isGlobalContext()&&(a=r),o=r,h=i,n};let l=!1;n.fail=function(s,i){const c=t.getInternalMethods().getLoggerInstance();if(!r.length){if(t.getExitProcess()&&E(!0),!l){l=!0,h&&(t.showHelp("error"),c.error()),(s||i)&&c.error(s||i);const e=o||a;e&&((s||i)&&c.error(""),c.error(e))}if(i=i||new e(s),t.getExitProcess())return t.exit(1);if(t.getInternalMethods().hasParseCallback())return t.exit(1,i);throw i}for(let t=r.length-1;t>=0;--t){const e=r[t];if(A(e)){if(i)throw i;if(s)throw Error(s)}else e(s,i,n)}};let c=[],f=!1;n.usage=(t,e)=>null===t?(f=!0,c=[],n):(f=!1,c.push([t,e||""]),n),n.getUsage=()=>c,n.getUsageDisabled=()=>f,n.getPositionalGroupName=()=>i("Positionals:");let d=[];n.example=(t,e)=>{d.push([t,e||""])};let u=[];n.command=function(t,e,s,i,n=!1){s&&(u=u.map((t=>(t[2]=!1,t)))),u.push([t,e||"",s,i,n])},n.getCommands=()=>u;let p={};n.describe=function(t,e){Array.isArray(t)?t.forEach((t=>{n.describe(t,e)})):"object"==typeof t?Object.keys(t).forEach((e=>{n.describe(e,t[e])})):p[t]=e},n.getDescriptions=()=>p;let m=[];n.epilog=t=>{m.push(t)};let y,b=!1;n.wrap=t=>{b=!0,y=t},n.getWrap=()=>s.getEnv("YARGS_DISABLE_WRAP")?null:(b||(y=function(){const t=80;return s.process.stdColumns?Math.min(t,s.process.stdColumns):t}(),b=!0),y);const v="__yargsString__:";function O(t,e,i){let n=0;return Array.isArray(t)||(t=Object.values(t).map((t=>[t]))),t.forEach((t=>{n=Math.max(s.stringWidth(i?`${i} ${I(t[0])}`:I(t[0]))+$(t[0]),n)})),e&&(n=Math.min(n,parseInt((.5*e).toString(),10))),n}let w;function C(e){return t.getOptions().hiddenOptions.indexOf(e)<0||t.parsed.argv[t.getOptions().showHiddenOpt]}function j(t,e){let s=`[${i("default:")} `;if(void 0===t&&!e)return null;if(e)s+=e;else switch(typeof t){case"string":s+=`"${t}"`;break;case"object":s+=JSON.stringify(t);break;default:s+=t}return`${s}]`}n.deferY18nLookup=t=>v+t,n.help=function(){if(w)return w;!function(){const e=t.getDemandedOptions(),s=t.getOptions();(Object.keys(s.alias)||[]).forEach((i=>{s.alias[i].forEach((r=>{p[r]&&n.describe(i,p[r]),r in e&&t.demandOption(i,e[r]),s.boolean.includes(r)&&t.boolean(i),s.count.includes(r)&&t.count(i),s.string.includes(r)&&t.string(i),s.normalize.includes(r)&&t.normalize(i),s.array.includes(r)&&t.array(i),s.number.includes(r)&&t.number(i)}))}))}();const e=t.customScriptName?t.$0:s.path.basename(t.$0),r=t.getDemandedOptions(),o=t.getDemandedCommands(),a=t.getDeprecatedOptions(),h=t.getGroups(),l=t.getOptions();let g=[];g=g.concat(Object.keys(p)),g=g.concat(Object.keys(r)),g=g.concat(Object.keys(o)),g=g.concat(Object.keys(l.default)),g=g.filter(C),g=Object.keys(g.reduce(((t,e)=>("_"!==e&&(t[e]=!0),t)),{}));const y=n.getWrap(),b=s.cliui({width:y,wrap:!!y});if(!f)if(c.length)c.forEach((t=>{b.div({text:`${t[0].replace(/\$0/g,e)}`}),t[1]&&b.div({text:`${t[1]}`,padding:[1,0,0,0]})})),b.div();else if(u.length){let t=null;t=o._?`${e} <${i("command")}>\n`:`${e} [${i("command")}]\n`,b.div(`${t}`)}if(u.length>1||1===u.length&&!u[0][2]){b.div(i("Commands:"));const s=t.getInternalMethods().getContext(),n=s.commands.length?`${s.commands.join(" ")} `:"";!0===t.getInternalMethods().getParserConfiguration()["sort-commands"]&&(u=u.sort(((t,e)=>t[0].localeCompare(e[0]))));const r=e?`${e} `:"";u.forEach((t=>{const s=`${r}${n}${t[0].replace(/^\$0 ?/,"")}`;b.span({text:s,padding:[0,2,0,2],width:O(u,y,`${e}${n}`)+4},{text:t[1]});const o=[];t[2]&&o.push(`[${i("default")}]`),t[3]&&t[3].length&&o.push(`[${i("aliases:")} ${t[3].join(", ")}]`),t[4]&&("string"==typeof t[4]?o.push(`[${i("deprecated: %s",t[4])}]`):o.push(`[${i("deprecated")}]`)),o.length?b.div({text:o.join(" "),padding:[0,0,0,2],align:"right"}):b.div()})),b.div()}const M=(Object.keys(l.alias)||[]).concat(Object.keys(t.parsed.newAliases)||[]);g=g.filter((e=>!t.parsed.newAliases[e]&&M.every((t=>-1===(l.alias[t]||[]).indexOf(e)))));const _=i("Options:");h[_]||(h[_]=[]),function(t,e,s,i){let n=[],r=null;Object.keys(s).forEach((t=>{n=n.concat(s[t])})),t.forEach((t=>{r=[t].concat(e[t]),r.some((t=>-1!==n.indexOf(t)))||s[i].push(t)}))}(g,l.alias,h,_);const k=t=>/^--/.test(I(t)),x=Object.keys(h).filter((t=>h[t].length>0)).map((t=>({groupName:t,normalizedKeys:h[t].filter(C).map((t=>{if(M.includes(t))return t;for(let e,s=0;void 0!==(e=M[s]);s++)if((l.alias[e]||[]).includes(t))return e;return t}))}))).filter((({normalizedKeys:t})=>t.length>0)).map((({groupName:t,normalizedKeys:e})=>{const s=e.reduce(((e,s)=>(e[s]=[s].concat(l.alias[s]||[]).map((e=>t===n.getPositionalGroupName()?e:(/^[0-9]$/.test(e)?l.boolean.includes(s)?"-":"--":e.length>1?"--":"-")+e)).sort(((t,e)=>k(t)===k(e)?0:k(t)?1:-1)).join(", "),e)),{});return{groupName:t,normalizedKeys:e,switches:s}}));if(x.filter((({groupName:t})=>t!==n.getPositionalGroupName())).some((({normalizedKeys:t,switches:e})=>!t.every((t=>k(e[t])))))&&x.filter((({groupName:t})=>t!==n.getPositionalGroupName())).forEach((({normalizedKeys:t,switches:e})=>{t.forEach((t=>{var s,i;k(e[t])&&(e[t]=(s=e[t],i=4,S(s)?{text:s.text,indentation:s.indentation+i}:{text:s,indentation:i}))}))})),x.forEach((({groupName:e,normalizedKeys:s,switches:o})=>{b.div(e),s.forEach((e=>{const s=o[e];let h=p[e]||"",c=null;h.includes(v)&&(h=i(h.substring(16))),l.boolean.includes(e)&&(c=`[${i("boolean")}]`),l.count.includes(e)&&(c=`[${i("count")}]`),l.string.includes(e)&&(c=`[${i("string")}]`),l.normalize.includes(e)&&(c=`[${i("string")}]`),l.array.includes(e)&&(c=`[${i("array")}]`),l.number.includes(e)&&(c=`[${i("number")}]`);const f=[e in a?(d=a[e],"string"==typeof d?`[${i("deprecated: %s",d)}]`:`[${i("deprecated")}]`):null,c,e in r?`[${i("required")}]`:null,l.choices&&l.choices[e]?`[${i("choices:")} ${n.stringifiedValues(l.choices[e])}]`:null,j(l.default[e],l.defaultDescription[e])].filter(Boolean).join(" ");var d;b.span({text:I(s),padding:[0,2,0,2+$(s)],width:O(o,y)+4},h);const u=!0===t.getInternalMethods().getUsageConfiguration()["hide-types"];f&&!u?b.div({text:f,padding:[0,0,0,2],align:"right"}):b.div()})),b.div()})),d.length&&(b.div(i("Examples:")),d.forEach((t=>{t[0]=t[0].replace(/\$0/g,e)})),d.forEach((t=>{""===t[1]?b.div({text:t[0],padding:[0,2,0,2]}):b.div({text:t[0],padding:[0,2,0,2],width:O(d,y)+4},{text:t[1]})})),b.div()),m.length>0){const t=m.map((t=>t.replace(/\$0/g,e))).join("\n");b.div(`${t}\n`)}return b.toString().replace(/\s*$/,"")},n.cacheHelpMessage=function(){w=this.help()},n.clearCachedHelpMessage=function(){w=void 0},n.hasCachedHelpMessage=function(){return!!w},n.showHelp=e=>{const s=t.getInternalMethods().getLoggerInstance();e||(e="error");("function"==typeof e?e:s[e])(n.help())},n.functionDescription=t=>["(",t.name?s.Parser.decamelize(t.name,"-"):i("generated-value"),")"].join(""),n.stringifiedValues=function(t,e){let s="";const i=e||", ",n=[].concat(t);return t&&n.length?(n.forEach((t=>{s.length&&(s+=i),s+=JSON.stringify(t)})),s):s};let M=null;n.version=t=>{M=t},n.showVersion=e=>{const s=t.getInternalMethods().getLoggerInstance();e||(e="error");("function"==typeof e?e:s[e])(M)},n.reset=function(t){return o=null,l=!1,c=[],f=!1,m=[],d=[],u=[],p=g(p,(e=>!t[e])),n};const _=[];return n.freeze=function(){_.push({failMessage:o,failureOutput:l,usages:c,usageDisabled:f,epilogs:m,examples:d,commands:u,descriptions:p})},n.unfreeze=function(t=!1){const e=_.pop();e&&(t?(p={...e.descriptions,...p},u=[...e.commands,...u],c=[...e.usages,...c],d=[...e.examples,...d],m=[...e.epilogs,...m]):({failMessage:o,failureOutput:l,usages:c,usageDisabled:f,epilogs:m,examples:d,commands:u,descriptions:p}=e))},n}function S(t){return"object"==typeof t}function $(t){return S(t)?t.indentation:0}function I(t){return S(t)?t.text:t}class D{constructor(t,e,s,i){var n,r,o;this.yargs=t,this.usage=e,this.command=s,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=null!==(o=(null===(n=this.shim.getEnv("SHELL"))||void 0===n?void 0:n.includes("zsh"))||(null===(r=this.shim.getEnv("ZSH_NAME"))||void 0===r?void 0:r.includes("zsh")))&&void 0!==o&&o}defaultCompletion(t,e,s,i){const n=this.command.getCommandHandlers();for(let e=0,s=t.length;e{const i=o(s[0]).cmd;if(-1===e.indexOf(i))if(this.zshShell){const e=s[1]||"";t.push(i.replace(/:/g,"\\:")+":"+e)}else t.push(i)}))}optionCompletions(t,e,s,i){if((i.match(/^-/)||""===i&&0===t.length)&&!this.previousArgHasChoices(e)){const s=this.yargs.getOptions(),n=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach((r=>{const o=!!s.configuration["boolean-negation"]&&s.boolean.includes(r);n.includes(r)||s.hiddenOptions.includes(r)||this.argsContainKey(e,r,o)||this.completeOptionKey(r,t,i,o&&!!s.default[r])}))}}choicesFromOptionsCompletions(t,e,s,i){if(this.previousArgHasChoices(e)){const s=this.getPreviousArgChoices(e);s&&s.length>0&&t.push(...s.map((t=>t.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(t,e,s,i){if(""===i&&t.length>0&&this.previousArgHasChoices(e))return;const n=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],r=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),o=n[s._.length-r-1];if(!o)return;const a=this.yargs.getOptions().choices[o]||[];for(const e of a)e.startsWith(i)&&t.push(e.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let e=t[t.length-1],s="";if(!e.startsWith("-")&&t.length>1&&(s=e,e=t[t.length-2]),!e.startsWith("-"))return;const i=e.replace(/^-+/,""),n=this.yargs.getOptions(),r=[i,...this.yargs.getAliases()[i]||[]];let o;for(const t of r)if(Object.prototype.hasOwnProperty.call(n.key,t)&&Array.isArray(n.choices[t])){o=n.choices[t];break}return o?o.filter((t=>!s||t.startsWith(s))):void 0}previousArgHasChoices(t){const e=this.getPreviousArgChoices(t);return void 0!==e&&e.length>0}argsContainKey(t,e,s){const i=e=>-1!==t.indexOf((/^[^0-9]$/.test(e)?"-":"--")+e);if(i(e))return!0;if(s&&i(`no-${e}`))return!0;if(this.aliases)for(const t of this.aliases[e])if(i(t))return!0;return!1}completeOptionKey(t,e,s,i){var n,r,o,a;let h=t;if(this.zshShell){const e=this.usage.getDescriptions(),s=null===(r=null===(n=null==this?void 0:this.aliases)||void 0===n?void 0:n[t])||void 0===r?void 0:r.find((t=>{const s=e[t];return"string"==typeof s&&s.length>0})),i=s?e[s]:void 0,l=null!==(a=null!==(o=e[t])&&void 0!==o?o:i)&&void 0!==a?a:"";h=`${t.replace(/:/g,"\\:")}:${l.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}const l=!/^--/.test(s)&&(t=>/^[^0-9]$/.test(t))(t)?"-":"--";e.push(l+h),i&&e.push(l+"no-"+h)}customCompletion(t,e,s,i){if(d(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const t=this.customCompletionFunction(s,e);return f(t)?t.then((t=>{this.shim.process.nextTick((()=>{i(null,t)}))})).catch((t=>{this.shim.process.nextTick((()=>{i(t,void 0)}))})):i(null,t)}return function(t){return t.length>3}(this.customCompletionFunction)?this.customCompletionFunction(s,e,((n=i)=>this.defaultCompletion(t,e,s,n)),(t=>{i(null,t)})):this.customCompletionFunction(s,e,(t=>{i(null,t)}))}getCompletion(t,e){const s=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),n=this.customCompletionFunction?i=>this.customCompletion(t,i,s,e):i=>this.defaultCompletion(t,i,s,e);return f(i)?i.then(n):n(i)}generateCompletionScript(t,e){let s=this.zshShell?'#compdef {{app_name}}\n###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n':'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';const i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),s=s.replace(/{{app_name}}/g,i),s=s.replace(/{{completion_command}}/g,e),s.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}}function N(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;const s=[];let i,n;for(i=0;i<=e.length;i++)s[i]=[i];for(n=0;n<=t.length;n++)s[0][n]=n;for(i=1;i<=e.length;i++)for(n=1;n<=t.length;n++)e.charAt(i-1)===t.charAt(n-1)?s[i][n]=s[i-1][n-1]:i>1&&n>1&&e.charAt(i-2)===t.charAt(n-1)&&e.charAt(i-1)===t.charAt(n-2)?s[i][n]=s[i-2][n-2]+1:s[i][n]=Math.min(s[i-1][n-1]+1,Math.min(s[i][n-1]+1,s[i-1][n]+1));return s[e.length][t.length]}const H=["$0","--","_"];var z,W,q,U,F,L,V,G,R,T,B,Y,K,J,Z,X,Q,tt,et,st,it,nt,rt,ot,at,ht,lt,ct,ft,dt,ut,pt,gt,mt,yt;const bt=Symbol("copyDoubleDash"),vt=Symbol("copyDoubleDash"),Ot=Symbol("deleteFromParserHintObject"),wt=Symbol("emitWarning"),Ct=Symbol("freeze"),jt=Symbol("getDollarZero"),Mt=Symbol("getParserConfiguration"),_t=Symbol("getUsageConfiguration"),kt=Symbol("guessLocale"),xt=Symbol("guessVersion"),Et=Symbol("parsePositionalNumbers"),At=Symbol("pkgUp"),Pt=Symbol("populateParserHintArray"),St=Symbol("populateParserHintSingleValueDictionary"),$t=Symbol("populateParserHintArrayDictionary"),It=Symbol("populateParserHintDictionary"),Dt=Symbol("sanitizeKey"),Nt=Symbol("setKey"),Ht=Symbol("unfreeze"),zt=Symbol("validateAsync"),Wt=Symbol("getCommandInstance"),qt=Symbol("getContext"),Ut=Symbol("getHasOutput"),Ft=Symbol("getLoggerInstance"),Lt=Symbol("getParseContext"),Vt=Symbol("getUsageInstance"),Gt=Symbol("getValidationInstance"),Rt=Symbol("hasParseCallback"),Tt=Symbol("isGlobalContext"),Bt=Symbol("postProcess"),Yt=Symbol("rebase"),Kt=Symbol("reset"),Jt=Symbol("runYargsParserAndExecuteCommands"),Zt=Symbol("runValidation"),Xt=Symbol("setHasOutput"),Qt=Symbol("kTrackManuallySetKeys");class te{constructor(t=[],e,s,i){this.customScriptName=!1,this.parsed=!1,z.set(this,void 0),W.set(this,void 0),q.set(this,{commands:[],fullCommands:[]}),U.set(this,null),F.set(this,null),L.set(this,"show-hidden"),V.set(this,null),G.set(this,!0),R.set(this,{}),T.set(this,!0),B.set(this,[]),Y.set(this,void 0),K.set(this,{}),J.set(this,!1),Z.set(this,null),X.set(this,!0),Q.set(this,void 0),tt.set(this,""),et.set(this,void 0),st.set(this,void 0),it.set(this,{}),nt.set(this,null),rt.set(this,null),ot.set(this,{}),at.set(this,{}),ht.set(this,void 0),lt.set(this,!1),ct.set(this,void 0),ft.set(this,!1),dt.set(this,!1),ut.set(this,!1),pt.set(this,void 0),gt.set(this,{}),mt.set(this,null),yt.set(this,void 0),O(this,ct,i,"f"),O(this,ht,t,"f"),O(this,W,e,"f"),O(this,st,s,"f"),O(this,Y,new w(this),"f"),this.$0=this[jt](),this[Kt](),O(this,z,v(this,z,"f"),"f"),O(this,pt,v(this,pt,"f"),"f"),O(this,yt,v(this,yt,"f"),"f"),O(this,et,v(this,et,"f"),"f"),v(this,et,"f").showHiddenOpt=v(this,L,"f"),O(this,Q,this[vt](),"f")}addHelpOpt(t,e){return h("[string|boolean] [string]",[t,e],arguments.length),v(this,Z,"f")&&(this[Ot](v(this,Z,"f")),O(this,Z,null,"f")),!1===t&&void 0===e||(O(this,Z,"string"==typeof t?t:"help","f"),this.boolean(v(this,Z,"f")),this.describe(v(this,Z,"f"),e||v(this,pt,"f").deferY18nLookup("Show help"))),this}help(t,e){return this.addHelpOpt(t,e)}addShowHiddenOpt(t,e){if(h("[string|boolean] [string]",[t,e],arguments.length),!1===t&&void 0===e)return this;const s="string"==typeof t?t:v(this,L,"f");return this.boolean(s),this.describe(s,e||v(this,pt,"f").deferY18nLookup("Show hidden options")),v(this,et,"f").showHiddenOpt=s,this}showHidden(t,e){return this.addShowHiddenOpt(t,e)}alias(t,e){return h(" [string|array]",[t,e],arguments.length),this[$t](this.alias.bind(this),"alias",t,e),this}array(t){return h("",[t],arguments.length),this[Pt]("array",t),this[Qt](t),this}boolean(t){return h("",[t],arguments.length),this[Pt]("boolean",t),this[Qt](t),this}check(t,e){return h(" [boolean]",[t,e],arguments.length),this.middleware(((e,s)=>j((()=>t(e,s.getOptions())),(s=>(s?("string"==typeof s||s instanceof Error)&&v(this,pt,"f").fail(s.toString(),s):v(this,pt,"f").fail(v(this,ct,"f").y18n.__("Argument check failed: %s",t.toString())),e)),(t=>(v(this,pt,"f").fail(t.message?t.message:t.toString(),t),e)))),!1,e),this}choices(t,e){return h(" [string|array]",[t,e],arguments.length),this[$t](this.choices.bind(this),"choices",t,e),this}coerce(t,s){if(h(" [function]",[t,s],arguments.length),Array.isArray(t)){if(!s)throw new e("coerce callback must be provided");for(const e of t)this.coerce(e,s);return this}if("object"==typeof t){for(const e of Object.keys(t))this.coerce(e,t[e]);return this}if(!s)throw new e("coerce callback must be provided");return v(this,et,"f").key[t]=!0,v(this,Y,"f").addCoerceMiddleware(((i,n)=>{let r;return Object.prototype.hasOwnProperty.call(i,t)?j((()=>(r=n.getAliases(),s(i[t]))),(e=>{i[t]=e;const s=n.getInternalMethods().getParserConfiguration()["strip-aliased"];if(r[t]&&!0!==s)for(const s of r[t])i[s]=e;return i}),(t=>{throw new e(t.message)})):i}),t),this}conflicts(t,e){return h(" [string|array]",[t,e],arguments.length),v(this,yt,"f").conflicts(t,e),this}config(t="config",e,s){return h("[object|string] [string|function] [function]",[t,e,s],arguments.length),"object"!=typeof t||Array.isArray(t)?("function"==typeof e&&(s=e,e=void 0),this.describe(t,e||v(this,pt,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach((t=>{v(this,et,"f").config[t]=s||!0})),this):(t=n(t,v(this,W,"f"),this[Mt]()["deep-merge-config"]||!1,v(this,ct,"f")),v(this,et,"f").configObjects=(v(this,et,"f").configObjects||[]).concat(t),this)}completion(t,e,s){return h("[string] [string|boolean|function] [function]",[t,e,s],arguments.length),"function"==typeof e&&(s=e,e=void 0),O(this,F,t||v(this,F,"f")||"completion","f"),e||!1===e||(e="generate completion script"),this.command(v(this,F,"f"),e),s&&v(this,U,"f").registerFunction(s),this}command(t,e,s,i,n,r){return h(" [string|boolean] [function|object] [function] [array] [boolean|string]",[t,e,s,i,n,r],arguments.length),v(this,z,"f").addHandler(t,e,s,i,n,r),this}commands(t,e,s,i,n,r){return this.command(t,e,s,i,n,r)}commandDir(t,e){h(" [object]",[t,e],arguments.length);const s=v(this,st,"f")||v(this,ct,"f").require;return v(this,z,"f").addDirectory(t,s,v(this,ct,"f").getCallerFile(),e),this}count(t){return h("",[t],arguments.length),this[Pt]("count",t),this[Qt](t),this}default(t,e,s){return h(" [*] [string]",[t,e,s],arguments.length),s&&(u(t,v(this,ct,"f")),v(this,et,"f").defaultDescription[t]=s),"function"==typeof e&&(u(t,v(this,ct,"f")),v(this,et,"f").defaultDescription[t]||(v(this,et,"f").defaultDescription[t]=v(this,pt,"f").functionDescription(e)),e=e.call()),this[St](this.default.bind(this),"default",t,e),this}defaults(t,e,s){return this.default(t,e,s)}demandCommand(t=1,e,s,i){return h("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,e,s,i],arguments.length),"number"!=typeof e&&(s=e,e=1/0),this.global("_",!1),v(this,et,"f").demandedCommands._={min:t,max:e,minMsg:s,maxMsg:i},this}demand(t,e,s){return Array.isArray(e)?(e.forEach((t=>{d(s,!0,v(this,ct,"f")),this.demandOption(t,s)})),e=1/0):"number"!=typeof e&&(s=e,e=1/0),"number"==typeof t?(d(s,!0,v(this,ct,"f")),this.demandCommand(t,e,s,s)):Array.isArray(t)?t.forEach((t=>{d(s,!0,v(this,ct,"f")),this.demandOption(t,s)})):"string"==typeof s?this.demandOption(t,s):!0!==s&&void 0!==s||this.demandOption(t),this}demandOption(t,e){return h(" [string]",[t,e],arguments.length),this[St](this.demandOption.bind(this),"demandedOptions",t,e),this}deprecateOption(t,e){return h(" [string|boolean]",[t,e],arguments.length),v(this,et,"f").deprecatedOptions[t]=e,this}describe(t,e){return h(" [string]",[t,e],arguments.length),this[Nt](t,!0),v(this,pt,"f").describe(t,e),this}detectLocale(t){return h("",[t],arguments.length),O(this,G,t,"f"),this}env(t){return h("[string|boolean]",[t],arguments.length),!1===t?delete v(this,et,"f").envPrefix:v(this,et,"f").envPrefix=t||"",this}epilogue(t){return h("",[t],arguments.length),v(this,pt,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,e){return h(" [string]",[t,e],arguments.length),Array.isArray(t)?t.forEach((t=>this.example(...t))):v(this,pt,"f").example(t,e),this}exit(t,e){O(this,J,!0,"f"),O(this,V,e,"f"),v(this,T,"f")&&v(this,ct,"f").process.exit(t)}exitProcess(t=!0){return h("[boolean]",[t],arguments.length),O(this,T,t,"f"),this}fail(t){if(h("",[t],arguments.length),"boolean"==typeof t&&!1!==t)throw new e("Invalid first argument. Expected function or boolean 'false'");return v(this,pt,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,e){return h(" [function]",[t,e],arguments.length),e?v(this,U,"f").getCompletion(t,e):new Promise(((e,s)=>{v(this,U,"f").getCompletion(t,((t,i)=>{t?s(t):e(i)}))}))}getDemandedOptions(){return h([],0),v(this,et,"f").demandedOptions}getDemandedCommands(){return h([],0),v(this,et,"f").demandedCommands}getDeprecatedOptions(){return h([],0),v(this,et,"f").deprecatedOptions}getDetectLocale(){return v(this,G,"f")}getExitProcess(){return v(this,T,"f")}getGroups(){return Object.assign({},v(this,K,"f"),v(this,at,"f"))}getHelp(){if(O(this,J,!0,"f"),!v(this,pt,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[Jt](v(this,ht,"f"),void 0,void 0,0,!0);if(f(t))return t.then((()=>v(this,pt,"f").help()))}const t=v(this,z,"f").runDefaultBuilderOn(this);if(f(t))return t.then((()=>v(this,pt,"f").help()))}return Promise.resolve(v(this,pt,"f").help())}getOptions(){return v(this,et,"f")}getStrict(){return v(this,ft,"f")}getStrictCommands(){return v(this,dt,"f")}getStrictOptions(){return v(this,ut,"f")}global(t,e){return h(" [boolean]",[t,e],arguments.length),t=[].concat(t),!1!==e?v(this,et,"f").local=v(this,et,"f").local.filter((e=>-1===t.indexOf(e))):t.forEach((t=>{v(this,et,"f").local.includes(t)||v(this,et,"f").local.push(t)})),this}group(t,e){h(" ",[t,e],arguments.length);const s=v(this,at,"f")[e]||v(this,K,"f")[e];v(this,at,"f")[e]&&delete v(this,at,"f")[e];const i={};return v(this,K,"f")[e]=(s||[]).concat(t).filter((t=>!i[t]&&(i[t]=!0))),this}hide(t){return h("",[t],arguments.length),v(this,et,"f").hiddenOptions.push(t),this}implies(t,e){return h(" [number|string|array]",[t,e],arguments.length),v(this,yt,"f").implies(t,e),this}locale(t){return h("[string]",[t],arguments.length),void 0===t?(this[kt](),v(this,ct,"f").y18n.getLocale()):(O(this,G,!1,"f"),v(this,ct,"f").y18n.setLocale(t),this)}middleware(t,e,s){return v(this,Y,"f").addMiddleware(t,!!e,s)}nargs(t,e){return h(" [number]",[t,e],arguments.length),this[St](this.nargs.bind(this),"narg",t,e),this}normalize(t){return h("",[t],arguments.length),this[Pt]("normalize",t),this}number(t){return h("",[t],arguments.length),this[Pt]("number",t),this[Qt](t),this}option(t,e){if(h(" [object]",[t,e],arguments.length),"object"==typeof t)Object.keys(t).forEach((e=>{this.options(e,t[e])}));else{"object"!=typeof e&&(e={}),this[Qt](t),!v(this,mt,"f")||"version"!==t&&"version"!==(null==e?void 0:e.alias)||this[wt](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join("\n"),void 0,"versionWarning"),v(this,et,"f").key[t]=!0,e.alias&&this.alias(t,e.alias);const s=e.deprecate||e.deprecated;s&&this.deprecateOption(t,s);const i=e.demand||e.required||e.require;i&&this.demand(t,i),e.demandOption&&this.demandOption(t,"string"==typeof e.demandOption?e.demandOption:void 0),e.conflicts&&this.conflicts(t,e.conflicts),"default"in e&&this.default(t,e.default),void 0!==e.implies&&this.implies(t,e.implies),void 0!==e.nargs&&this.nargs(t,e.nargs),e.config&&this.config(t,e.configParser),e.normalize&&this.normalize(t),e.choices&&this.choices(t,e.choices),e.coerce&&this.coerce(t,e.coerce),e.group&&this.group(t,e.group),(e.boolean||"boolean"===e.type)&&(this.boolean(t),e.alias&&this.boolean(e.alias)),(e.array||"array"===e.type)&&(this.array(t),e.alias&&this.array(e.alias)),(e.number||"number"===e.type)&&(this.number(t),e.alias&&this.number(e.alias)),(e.string||"string"===e.type)&&(this.string(t),e.alias&&this.string(e.alias)),(e.count||"count"===e.type)&&this.count(t),"boolean"==typeof e.global&&this.global(t,e.global),e.defaultDescription&&(v(this,et,"f").defaultDescription[t]=e.defaultDescription),e.skipValidation&&this.skipValidation(t);const n=e.describe||e.description||e.desc,r=v(this,pt,"f").getDescriptions();Object.prototype.hasOwnProperty.call(r,t)&&"string"!=typeof n||this.describe(t,n),e.hidden&&this.hide(t),e.requiresArg&&this.requiresArg(t)}return this}options(t,e){return this.option(t,e)}parse(t,e,s){h("[string|array] [function|boolean|object] [function]",[t,e,s],arguments.length),this[Ct](),void 0===t&&(t=v(this,ht,"f")),"object"==typeof e&&(O(this,rt,e,"f"),e=s),"function"==typeof e&&(O(this,nt,e,"f"),e=!1),e||O(this,ht,t,"f"),v(this,nt,"f")&&O(this,T,!1,"f");const i=this[Jt](t,!!e),n=this.parsed;return v(this,U,"f").setParsed(this.parsed),f(i)?i.then((t=>(v(this,nt,"f")&&v(this,nt,"f").call(this,v(this,V,"f"),t,v(this,tt,"f")),t))).catch((t=>{throw v(this,nt,"f")&&v(this,nt,"f")(t,this.parsed.argv,v(this,tt,"f")),t})).finally((()=>{this[Ht](),this.parsed=n})):(v(this,nt,"f")&&v(this,nt,"f").call(this,v(this,V,"f"),i,v(this,tt,"f")),this[Ht](),this.parsed=n,i)}parseAsync(t,e,s){const i=this.parse(t,e,s);return f(i)?i:Promise.resolve(i)}parseSync(t,s,i){const n=this.parse(t,s,i);if(f(n))throw new e(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return n}parserConfiguration(t){return h("",[t],arguments.length),O(this,it,t,"f"),this}pkgConf(t,e){h(" [string]",[t,e],arguments.length);let s=null;const i=this[At](e||v(this,W,"f"));return i[t]&&"object"==typeof i[t]&&(s=n(i[t],e||v(this,W,"f"),this[Mt]()["deep-merge-config"]||!1,v(this,ct,"f")),v(this,et,"f").configObjects=(v(this,et,"f").configObjects||[]).concat(s)),this}positional(t,e){h(" ",[t,e],arguments.length);const s=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];e=g(e,((t,e)=>!("type"===t&&!["string","number","boolean"].includes(e))&&s.includes(t)));const i=v(this,q,"f").fullCommands[v(this,q,"f").fullCommands.length-1],n=i?v(this,z,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return p(n).forEach((s=>{const i=n[s];Array.isArray(i)?-1!==i.indexOf(t)&&(e[s]=!0):i[t]&&!(s in e)&&(e[s]=i[t])})),this.group(t,v(this,pt,"f").getPositionalGroupName()),this.option(t,e)}recommendCommands(t=!0){return h("[boolean]",[t],arguments.length),O(this,lt,t,"f"),this}required(t,e,s){return this.demand(t,e,s)}require(t,e,s){return this.demand(t,e,s)}requiresArg(t){return h(" [number]",[t],arguments.length),"string"==typeof t&&v(this,et,"f").narg[t]||this[St](this.requiresArg.bind(this),"narg",t,NaN),this}showCompletionScript(t,e){return h("[string] [string]",[t,e],arguments.length),t=t||this.$0,v(this,Q,"f").log(v(this,U,"f").generateCompletionScript(t,e||v(this,F,"f")||"completion")),this}showHelp(t){if(h("[string|function]",[t],arguments.length),O(this,J,!0,"f"),!v(this,pt,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[Jt](v(this,ht,"f"),void 0,void 0,0,!0);if(f(e))return e.then((()=>{v(this,pt,"f").showHelp(t)})),this}const e=v(this,z,"f").runDefaultBuilderOn(this);if(f(e))return e.then((()=>{v(this,pt,"f").showHelp(t)})),this}return v(this,pt,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,e){return h("[boolean|string] [string]",[t,e],arguments.length),v(this,pt,"f").showHelpOnFail(t,e),this}showVersion(t){return h("[string|function]",[t],arguments.length),v(this,pt,"f").showVersion(t),this}skipValidation(t){return h("",[t],arguments.length),this[Pt]("skipValidation",t),this}strict(t){return h("[boolean]",[t],arguments.length),O(this,ft,!1!==t,"f"),this}strictCommands(t){return h("[boolean]",[t],arguments.length),O(this,dt,!1!==t,"f"),this}strictOptions(t){return h("[boolean]",[t],arguments.length),O(this,ut,!1!==t,"f"),this}string(t){return h("",[t],arguments.length),this[Pt]("string",t),this[Qt](t),this}terminalWidth(){return h([],0),v(this,ct,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return h("",[t],arguments.length),O(this,G,!1,"f"),v(this,ct,"f").y18n.updateLocale(t),this}usage(t,s,i,n){if(h(" [string|boolean] [function|object] [function]",[t,s,i,n],arguments.length),void 0!==s){if(d(t,null,v(this,ct,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,s,i,n);throw new e(".usage() description must start with $0 if being used as alias for .command()")}return v(this,pt,"f").usage(t),this}usageConfiguration(t){return h("",[t],arguments.length),O(this,gt,t,"f"),this}version(t,e,s){const i="version";if(h("[boolean|string] [string] [string]",[t,e,s],arguments.length),v(this,mt,"f")&&(this[Ot](v(this,mt,"f")),v(this,pt,"f").version(void 0),O(this,mt,null,"f")),0===arguments.length)s=this[xt](),t=i;else if(1===arguments.length){if(!1===t)return this;s=t,t=i}else 2===arguments.length&&(s=e,e=void 0);return O(this,mt,"string"==typeof t?t:i,"f"),e=e||v(this,pt,"f").deferY18nLookup("Show version number"),v(this,pt,"f").version(s||void 0),this.boolean(v(this,mt,"f")),this.describe(v(this,mt,"f"),e),this}wrap(t){return h("",[t],arguments.length),v(this,pt,"f").wrap(t),this}[(z=new WeakMap,W=new WeakMap,q=new WeakMap,U=new WeakMap,F=new WeakMap,L=new WeakMap,V=new WeakMap,G=new WeakMap,R=new WeakMap,T=new WeakMap,B=new WeakMap,Y=new WeakMap,K=new WeakMap,J=new WeakMap,Z=new WeakMap,X=new WeakMap,Q=new WeakMap,tt=new WeakMap,et=new WeakMap,st=new WeakMap,it=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,at=new WeakMap,ht=new WeakMap,lt=new WeakMap,ct=new WeakMap,ft=new WeakMap,dt=new WeakMap,ut=new WeakMap,pt=new WeakMap,gt=new WeakMap,mt=new WeakMap,yt=new WeakMap,bt)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch(t){}return t}[vt](){return{log:(...t)=>{this[Rt]()||console.log(...t),O(this,J,!0,"f"),v(this,tt,"f").length&&O(this,tt,v(this,tt,"f")+"\n","f"),O(this,tt,v(this,tt,"f")+t.join(" "),"f")},error:(...t)=>{this[Rt]()||console.error(...t),O(this,J,!0,"f"),v(this,tt,"f").length&&O(this,tt,v(this,tt,"f")+"\n","f"),O(this,tt,v(this,tt,"f")+t.join(" "),"f")}}}[Ot](t){p(v(this,et,"f")).forEach((e=>{if("configObjects"===e)return;const s=v(this,et,"f")[e];Array.isArray(s)?s.includes(t)&&s.splice(s.indexOf(t),1):"object"==typeof s&&delete s[t]})),delete v(this,pt,"f").getDescriptions()[t]}[wt](t,e,s){v(this,R,"f")[s]||(v(this,ct,"f").process.emitWarning(t,e),v(this,R,"f")[s]=!0)}[Ct](){v(this,B,"f").push({options:v(this,et,"f"),configObjects:v(this,et,"f").configObjects.slice(0),exitProcess:v(this,T,"f"),groups:v(this,K,"f"),strict:v(this,ft,"f"),strictCommands:v(this,dt,"f"),strictOptions:v(this,ut,"f"),completionCommand:v(this,F,"f"),output:v(this,tt,"f"),exitError:v(this,V,"f"),hasOutput:v(this,J,"f"),parsed:this.parsed,parseFn:v(this,nt,"f"),parseContext:v(this,rt,"f")}),v(this,pt,"f").freeze(),v(this,yt,"f").freeze(),v(this,z,"f").freeze(),v(this,Y,"f").freeze()}[jt](){let t,e="";return t=/\b(node|iojs|electron)(\.exe)?$/.test(v(this,ct,"f").process.argv()[0])?v(this,ct,"f").process.argv().slice(1,2):v(this,ct,"f").process.argv().slice(0,1),e=t.map((t=>{const e=this[Yt](v(this,W,"f"),t);return t.match(/^(\/|([a-zA-Z]:)?\\)/)&&e.lengthe.includes("package.json")?"package.json":void 0));d(i,void 0,v(this,ct,"f")),s=JSON.parse(v(this,ct,"f").readFileSync(i,"utf8"))}catch(t){}return v(this,ot,"f")[e]=s||{},v(this,ot,"f")[e]}[Pt](t,e){(e=[].concat(e)).forEach((e=>{e=this[Dt](e),v(this,et,"f")[t].push(e)}))}[St](t,e,s,i){this[It](t,e,s,i,((t,e,s)=>{v(this,et,"f")[t][e]=s}))}[$t](t,e,s,i){this[It](t,e,s,i,((t,e,s)=>{v(this,et,"f")[t][e]=(v(this,et,"f")[t][e]||[]).concat(s)}))}[It](t,e,s,i,n){if(Array.isArray(s))s.forEach((e=>{t(e,i)}));else if((t=>"object"==typeof t)(s))for(const e of p(s))t(e,s[e]);else n(e,this[Dt](s),i)}[Dt](t){return"__proto__"===t?"___proto___":t}[Nt](t,e){return this[St](this[Nt].bind(this),"key",t,e),this}[Ht](){var t,e,s,i,n,r,o,a,h,l,c,f;const u=v(this,B,"f").pop();let p;d(u,void 0,v(this,ct,"f")),t=this,e=this,s=this,i=this,n=this,r=this,o=this,a=this,h=this,l=this,c=this,f=this,({options:{set value(e){O(t,et,e,"f")}}.value,configObjects:p,exitProcess:{set value(t){O(e,T,t,"f")}}.value,groups:{set value(t){O(s,K,t,"f")}}.value,output:{set value(t){O(i,tt,t,"f")}}.value,exitError:{set value(t){O(n,V,t,"f")}}.value,hasOutput:{set value(t){O(r,J,t,"f")}}.value,parsed:this.parsed,strict:{set value(t){O(o,ft,t,"f")}}.value,strictCommands:{set value(t){O(a,dt,t,"f")}}.value,strictOptions:{set value(t){O(h,ut,t,"f")}}.value,completionCommand:{set value(t){O(l,F,t,"f")}}.value,parseFn:{set value(t){O(c,nt,t,"f")}}.value,parseContext:{set value(t){O(f,rt,t,"f")}}.value}=u),v(this,et,"f").configObjects=p,v(this,pt,"f").unfreeze(),v(this,yt,"f").unfreeze(),v(this,z,"f").unfreeze(),v(this,Y,"f").unfreeze()}[zt](t,e){return j(e,(e=>(t(e),e)))}getInternalMethods(){return{getCommandInstance:this[Wt].bind(this),getContext:this[qt].bind(this),getHasOutput:this[Ut].bind(this),getLoggerInstance:this[Ft].bind(this),getParseContext:this[Lt].bind(this),getParserConfiguration:this[Mt].bind(this),getUsageConfiguration:this[_t].bind(this),getUsageInstance:this[Vt].bind(this),getValidationInstance:this[Gt].bind(this),hasParseCallback:this[Rt].bind(this),isGlobalContext:this[Tt].bind(this),postProcess:this[Bt].bind(this),reset:this[Kt].bind(this),runValidation:this[Zt].bind(this),runYargsParserAndExecuteCommands:this[Jt].bind(this),setHasOutput:this[Xt].bind(this)}}[Wt](){return v(this,z,"f")}[qt](){return v(this,q,"f")}[Ut](){return v(this,J,"f")}[Ft](){return v(this,Q,"f")}[Lt](){return v(this,rt,"f")||{}}[Vt](){return v(this,pt,"f")}[Gt](){return v(this,yt,"f")}[Rt](){return!!v(this,nt,"f")}[Tt](){return v(this,X,"f")}[Bt](t,e,s,i){if(s)return t;if(f(t))return t;e||(t=this[bt](t));return(this[Mt]()["parse-positional-numbers"]||void 0===this[Mt]()["parse-positional-numbers"])&&(t=this[Et](t)),i&&(t=C(t,this,v(this,Y,"f").getMiddleware(),!1)),t}[Kt](t={}){O(this,et,v(this,et,"f")||{},"f");const e={};e.local=v(this,et,"f").local||[],e.configObjects=v(this,et,"f").configObjects||[];const s={};e.local.forEach((e=>{s[e]=!0,(t[e]||[]).forEach((t=>{s[t]=!0}))})),Object.assign(v(this,at,"f"),Object.keys(v(this,K,"f")).reduce(((t,e)=>{const i=v(this,K,"f")[e].filter((t=>!(t in s)));return i.length>0&&(t[e]=i),t}),{})),O(this,K,{},"f");return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((t=>{e[t]=(v(this,et,"f")[t]||[]).filter((t=>!s[t]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((t=>{e[t]=g(v(this,et,"f")[t],(t=>!s[t]))})),e.envPrefix=v(this,et,"f").envPrefix,O(this,et,e,"f"),O(this,pt,v(this,pt,"f")?v(this,pt,"f").reset(s):P(this,v(this,ct,"f")),"f"),O(this,yt,v(this,yt,"f")?v(this,yt,"f").reset(s):function(t,e,s){const i=s.y18n.__,n=s.y18n.__n,r={nonOptionCount:function(s){const i=t.getDemandedCommands(),r=s._.length+(s["--"]?s["--"].length:0)-t.getInternalMethods().getContext().commands.length;i._&&(ri._.max)&&(ri._.max&&(void 0!==i._.maxMsg?e.fail(i._.maxMsg?i._.maxMsg.replace(/\$0/g,r.toString()).replace(/\$1/,i._.max.toString()):null):e.fail(n("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",r,r.toString(),i._.max.toString()))))},positionalCount:function(t,s){s{H.includes(e)||Object.prototype.hasOwnProperty.call(o,e)||Object.prototype.hasOwnProperty.call(t.getInternalMethods().getParseContext(),e)||r.isValidAndSomeAliasIsNotNew(e,i)||f.push(e)})),h&&(d.commands.length>0||c.length>0||a)&&s._.slice(d.commands.length).forEach((t=>{c.includes(""+t)||f.push(""+t)})),h){const e=(null===(l=t.getDemandedCommands()._)||void 0===l?void 0:l.max)||0,i=d.commands.length+e;i{t=String(t),d.commands.includes(t)||f.includes(t)||f.push(t)}))}f.length&&e.fail(n("Unknown argument: %s","Unknown arguments: %s",f.length,f.map((t=>t.trim()?t:`"${t}"`)).join(", ")))},unknownCommands:function(s){const i=t.getInternalMethods().getCommandInstance().getCommands(),r=[],o=t.getInternalMethods().getContext();return(o.commands.length>0||i.length>0)&&s._.slice(o.commands.length).forEach((t=>{i.includes(""+t)||r.push(""+t)})),r.length>0&&(e.fail(n("Unknown command: %s","Unknown commands: %s",r.length,r.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(e,s){if(!Object.prototype.hasOwnProperty.call(s,e))return!1;const i=t.parsed.newAliases;return[e,...s[e]].some((t=>!Object.prototype.hasOwnProperty.call(i,t)||!i[e]))},limitedChoices:function(s){const n=t.getOptions(),r={};if(!Object.keys(n.choices).length)return;Object.keys(s).forEach((t=>{-1===H.indexOf(t)&&Object.prototype.hasOwnProperty.call(n.choices,t)&&[].concat(s[t]).forEach((e=>{-1===n.choices[t].indexOf(e)&&void 0!==e&&(r[t]=(r[t]||[]).concat(e))}))}));const o=Object.keys(r);if(!o.length)return;let a=i("Invalid values:");o.forEach((t=>{a+=`\n ${i("Argument: %s, Given: %s, Choices: %s",t,e.stringifiedValues(r[t]),e.stringifiedValues(n.choices[t]))}`})),e.fail(a)}};let o={};function a(t,e){const s=Number(e);return"number"==typeof(e=isNaN(s)?e:s)?e=t._.length>=e:e.match(/^--no-.+/)?(e=e.match(/^--no-(.+)/)[1],e=!Object.prototype.hasOwnProperty.call(t,e)):e=Object.prototype.hasOwnProperty.call(t,e),e}r.implies=function(e,i){h(" [array|number|string]",[e,i],arguments.length),"object"==typeof e?Object.keys(e).forEach((t=>{r.implies(t,e[t])})):(t.global(e),o[e]||(o[e]=[]),Array.isArray(i)?i.forEach((t=>r.implies(e,t))):(d(i,void 0,s),o[e].push(i)))},r.getImplied=function(){return o},r.implications=function(t){const s=[];if(Object.keys(o).forEach((e=>{const i=e;(o[e]||[]).forEach((e=>{let n=i;const r=e;n=a(t,n),e=a(t,e),n&&!e&&s.push(` ${i} -> ${r}`)}))})),s.length){let t=`${i("Implications failed:")}\n`;s.forEach((e=>{t+=e})),e.fail(t)}};let l={};r.conflicts=function(e,s){h(" [array|string]",[e,s],arguments.length),"object"==typeof e?Object.keys(e).forEach((t=>{r.conflicts(t,e[t])})):(t.global(e),l[e]||(l[e]=[]),Array.isArray(s)?s.forEach((t=>r.conflicts(e,t))):l[e].push(s))},r.getConflicting=()=>l,r.conflicting=function(n){Object.keys(n).forEach((t=>{l[t]&&l[t].forEach((s=>{s&&void 0!==n[t]&&void 0!==n[s]&&e.fail(i("Arguments %s and %s are mutually exclusive",t,s))}))})),t.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(l).forEach((t=>{l[t].forEach((r=>{r&&void 0!==n[s.Parser.camelCase(t)]&&void 0!==n[s.Parser.camelCase(r)]&&e.fail(i("Arguments %s and %s are mutually exclusive",t,r))}))}))},r.recommendCommands=function(t,s){s=s.sort(((t,e)=>e.length-t.length));let n=null,r=1/0;for(let e,i=0;void 0!==(e=s[i]);i++){const s=N(t,e);s<=3&&s!t[e])),l=g(l,(e=>!t[e])),r};const c=[];return r.freeze=function(){c.push({implied:o,conflicting:l})},r.unfreeze=function(){const t=c.pop();d(t,void 0,s),({implied:o,conflicting:l}=t)},r}(this,v(this,pt,"f"),v(this,ct,"f")),"f"),O(this,z,v(this,z,"f")?v(this,z,"f").reset():function(t,e,s,i){return new _(t,e,s,i)}(v(this,pt,"f"),v(this,yt,"f"),v(this,Y,"f"),v(this,ct,"f")),"f"),v(this,U,"f")||O(this,U,function(t,e,s,i){return new D(t,e,s,i)}(this,v(this,pt,"f"),v(this,z,"f"),v(this,ct,"f")),"f"),v(this,Y,"f").reset(),O(this,F,null,"f"),O(this,tt,"","f"),O(this,V,null,"f"),O(this,J,!1,"f"),this.parsed=!1,this}[Yt](t,e){return v(this,ct,"f").path.relative(t,e)}[Jt](t,s,i,n=0,r=!1){let o=!!i||r;t=t||v(this,ht,"f"),v(this,et,"f").__=v(this,ct,"f").y18n.__,v(this,et,"f").configuration=this[Mt]();const a=!!v(this,et,"f").configuration["populate--"],h=Object.assign({},v(this,et,"f").configuration,{"populate--":!0}),l=v(this,ct,"f").Parser.detailed(t,Object.assign({},v(this,et,"f"),{configuration:{"parse-positional-numbers":!1,...h}})),c=Object.assign(l.argv,v(this,rt,"f"));let d;const u=l.aliases;let p=!1,g=!1;Object.keys(c).forEach((t=>{t===v(this,Z,"f")&&c[t]?p=!0:t===v(this,mt,"f")&&c[t]&&(g=!0)})),c.$0=this.$0,this.parsed=l,0===n&&v(this,pt,"f").clearCachedHelpMessage();try{if(this[kt](),s)return this[Bt](c,a,!!i,!1);if(v(this,Z,"f")){[v(this,Z,"f")].concat(u[v(this,Z,"f")]||[]).filter((t=>t.length>1)).includes(""+c._[c._.length-1])&&(c._.pop(),p=!0)}O(this,X,!1,"f");const h=v(this,z,"f").getCommands(),m=v(this,U,"f").completionKey in c,y=p||m||r;if(c._.length){if(h.length){let t;for(let e,s=n||0;void 0!==c._[s];s++){if(e=String(c._[s]),h.includes(e)&&e!==v(this,F,"f")){const t=v(this,z,"f").runCommand(e,this,l,s+1,r,p||g||r);return this[Bt](t,a,!!i,!1)}if(!t&&e!==v(this,F,"f")){t=e;break}}!v(this,z,"f").hasDefaultCommand()&&v(this,lt,"f")&&t&&!y&&v(this,yt,"f").recommendCommands(t,h)}v(this,F,"f")&&c._.includes(v(this,F,"f"))&&!m&&(v(this,T,"f")&&E(!0),this.showCompletionScript(),this.exit(0))}if(v(this,z,"f").hasDefaultCommand()&&!y){const t=v(this,z,"f").runCommand(null,this,l,0,r,p||g||r);return this[Bt](t,a,!!i,!1)}if(m){v(this,T,"f")&&E(!0);const s=(t=[].concat(t)).slice(t.indexOf(`--${v(this,U,"f").completionKey}`)+1);return v(this,U,"f").getCompletion(s,((t,s)=>{if(t)throw new e(t.message);(s||[]).forEach((t=>{v(this,Q,"f").log(t)})),this.exit(0)})),this[Bt](c,!a,!!i,!1)}if(v(this,J,"f")||(p?(v(this,T,"f")&&E(!0),o=!0,this.showHelp("log"),this.exit(0)):g&&(v(this,T,"f")&&E(!0),o=!0,v(this,pt,"f").showVersion("log"),this.exit(0))),!o&&v(this,et,"f").skipValidation.length>0&&(o=Object.keys(c).some((t=>v(this,et,"f").skipValidation.indexOf(t)>=0&&!0===c[t]))),!o){if(l.error)throw new e(l.error.message);if(!m){const t=this[Zt](u,{},l.error);i||(d=C(c,this,v(this,Y,"f").getMiddleware(),!0)),d=this[zt](t,null!=d?d:c),f(d)&&!i&&(d=d.then((()=>C(c,this,v(this,Y,"f").getMiddleware(),!1))))}}}catch(t){if(!(t instanceof e))throw t;v(this,pt,"f").fail(t.message,t)}return this[Bt](null!=d?d:c,a,!!i,!0)}[Zt](t,s,i,n){const r={...this.getDemandedOptions()};return o=>{if(i)throw new e(i.message);v(this,yt,"f").nonOptionCount(o),v(this,yt,"f").requiredArguments(o,r);let a=!1;v(this,dt,"f")&&(a=v(this,yt,"f").unknownCommands(o)),v(this,ft,"f")&&!a?v(this,yt,"f").unknownArguments(o,t,s,!!n):v(this,ut,"f")&&v(this,yt,"f").unknownArguments(o,t,{},!1,!1),v(this,yt,"f").limitedChoices(o),v(this,yt,"f").implications(o),v(this,yt,"f").conflicting(o)}}[Xt](){O(this,J,!0,"f")}[Qt](t){if("string"==typeof t)v(this,et,"f").key[t]=!0;else for(const e of t)v(this,et,"f").key[e]=!0}}var ee,se;const{readFileSync:ie}=require("fs"),{inspect:ne}=require("util"),{resolve:re}=require("path"),oe=require("y18n"),ae=require("yargs-parser");var he,le={assert:{notStrictEqual:t.notStrictEqual,strictEqual:t.strictEqual},cliui:require("cliui"),findUp:require("escalade/sync"),getEnv:t=>process.env[t],getCallerFile:require("get-caller-file"),getProcessArgvBin:y,inspect:ne,mainFilename:null!==(se=null===(ee=null===require||void 0===require?void 0:require.main)||void 0===ee?void 0:ee.filename)&&void 0!==se?se:process.cwd(),Parser:ae,path:require("path"),process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(t,e)=>process.emitWarning(t,e),execPath:()=>process.execPath,exit:t=>{process.exit(t)},nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:ie,require:require,requireDirectory:require("require-directory"),stringWidth:require("string-width"),y18n:oe({directory:re(__dirname,"../locales"),updateFiles:!1})};const ce=(null===(he=null===process||void 0===process?void 0:process.env)||void 0===he?void 0:he.YARGS_MIN_NODE_VERSION)?Number(process.env.YARGS_MIN_NODE_VERSION):12;if(process&&process.version){if(Number(process.version.match(/v([^.]+)/)[1]){const i=new te(t,e,s,de);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}),argsert:h,isPromise:f,objFilter:g,parseCommand:o,Parser:fe,processArgv:b,YError:e};module.exports=ue; diff --git a/node_modules/yargs/build/lib/argsert.js b/node_modules/yargs/build/lib/argsert.js deleted file mode 100644 index be5b3aa..0000000 --- a/node_modules/yargs/build/lib/argsert.js +++ /dev/null @@ -1,62 +0,0 @@ -import { YError } from './yerror.js'; -import { parseCommand } from './parse-command.js'; -const positionName = ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']; -export function argsert(arg1, arg2, arg3) { - function parseArgs() { - return typeof arg1 === 'object' - ? [{ demanded: [], optional: [] }, arg1, arg2] - : [ - parseCommand(`cmd ${arg1}`), - arg2, - arg3, - ]; - } - try { - let position = 0; - const [parsed, callerArguments, _length] = parseArgs(); - const args = [].slice.call(callerArguments); - while (args.length && args[args.length - 1] === undefined) - args.pop(); - const length = _length || args.length; - if (length < parsed.demanded.length) { - throw new YError(`Not enough arguments provided. Expected ${parsed.demanded.length} but received ${args.length}.`); - } - const totalCommands = parsed.demanded.length + parsed.optional.length; - if (length > totalCommands) { - throw new YError(`Too many arguments provided. Expected max ${totalCommands} but received ${length}.`); - } - parsed.demanded.forEach(demanded => { - const arg = args.shift(); - const observedType = guessType(arg); - const matchingTypes = demanded.cmd.filter(type => type === observedType || type === '*'); - if (matchingTypes.length === 0) - argumentTypeError(observedType, demanded.cmd, position); - position += 1; - }); - parsed.optional.forEach(optional => { - if (args.length === 0) - return; - const arg = args.shift(); - const observedType = guessType(arg); - const matchingTypes = optional.cmd.filter(type => type === observedType || type === '*'); - if (matchingTypes.length === 0) - argumentTypeError(observedType, optional.cmd, position); - position += 1; - }); - } - catch (err) { - console.warn(err.stack); - } -} -function guessType(arg) { - if (Array.isArray(arg)) { - return 'array'; - } - else if (arg === null) { - return 'null'; - } - return typeof arg; -} -function argumentTypeError(observedType, allowedTypes, position) { - throw new YError(`Invalid ${positionName[position] || 'manyith'} argument. Expected ${allowedTypes.join(' or ')} but received ${observedType}.`); -} diff --git a/node_modules/yargs/build/lib/command.js b/node_modules/yargs/build/lib/command.js deleted file mode 100644 index 47c1ed6..0000000 --- a/node_modules/yargs/build/lib/command.js +++ /dev/null @@ -1,449 +0,0 @@ -import { assertNotStrictEqual, } from './typings/common-types.js'; -import { isPromise } from './utils/is-promise.js'; -import { applyMiddleware, commandMiddlewareFactory, } from './middleware.js'; -import { parseCommand } from './parse-command.js'; -import { isYargsInstance, } from './yargs-factory.js'; -import { maybeAsyncResult } from './utils/maybe-async-result.js'; -import whichModule from './utils/which-module.js'; -const DEFAULT_MARKER = /(^\*)|(^\$0)/; -export class CommandInstance { - constructor(usage, validation, globalMiddleware, shim) { - this.requireCache = new Set(); - this.handlers = {}; - this.aliasMap = {}; - this.frozens = []; - this.shim = shim; - this.usage = usage; - this.globalMiddleware = globalMiddleware; - this.validation = validation; - } - addDirectory(dir, req, callerFile, opts) { - opts = opts || {}; - if (typeof opts.recurse !== 'boolean') - opts.recurse = false; - if (!Array.isArray(opts.extensions)) - opts.extensions = ['js']; - const parentVisit = typeof opts.visit === 'function' ? opts.visit : (o) => o; - opts.visit = (obj, joined, filename) => { - const visited = parentVisit(obj, joined, filename); - if (visited) { - if (this.requireCache.has(joined)) - return visited; - else - this.requireCache.add(joined); - this.addHandler(visited); - } - return visited; - }; - this.shim.requireDirectory({ require: req, filename: callerFile }, dir, opts); - } - addHandler(cmd, description, builder, handler, commandMiddleware, deprecated) { - let aliases = []; - const middlewares = commandMiddlewareFactory(commandMiddleware); - handler = handler || (() => { }); - if (Array.isArray(cmd)) { - if (isCommandAndAliases(cmd)) { - [cmd, ...aliases] = cmd; - } - else { - for (const command of cmd) { - this.addHandler(command); - } - } - } - else if (isCommandHandlerDefinition(cmd)) { - let command = Array.isArray(cmd.command) || typeof cmd.command === 'string' - ? cmd.command - : this.moduleName(cmd); - if (cmd.aliases) - command = [].concat(command).concat(cmd.aliases); - this.addHandler(command, this.extractDesc(cmd), cmd.builder, cmd.handler, cmd.middlewares, cmd.deprecated); - return; - } - else if (isCommandBuilderDefinition(builder)) { - this.addHandler([cmd].concat(aliases), description, builder.builder, builder.handler, builder.middlewares, builder.deprecated); - return; - } - if (typeof cmd === 'string') { - const parsedCommand = parseCommand(cmd); - aliases = aliases.map(alias => parseCommand(alias).cmd); - let isDefault = false; - const parsedAliases = [parsedCommand.cmd].concat(aliases).filter(c => { - if (DEFAULT_MARKER.test(c)) { - isDefault = true; - return false; - } - return true; - }); - if (parsedAliases.length === 0 && isDefault) - parsedAliases.push('$0'); - if (isDefault) { - parsedCommand.cmd = parsedAliases[0]; - aliases = parsedAliases.slice(1); - cmd = cmd.replace(DEFAULT_MARKER, parsedCommand.cmd); - } - aliases.forEach(alias => { - this.aliasMap[alias] = parsedCommand.cmd; - }); - if (description !== false) { - this.usage.command(cmd, description, isDefault, aliases, deprecated); - } - this.handlers[parsedCommand.cmd] = { - original: cmd, - description, - handler, - builder: builder || {}, - middlewares, - deprecated, - demanded: parsedCommand.demanded, - optional: parsedCommand.optional, - }; - if (isDefault) - this.defaultCommand = this.handlers[parsedCommand.cmd]; - } - } - getCommandHandlers() { - return this.handlers; - } - getCommands() { - return Object.keys(this.handlers).concat(Object.keys(this.aliasMap)); - } - hasDefaultCommand() { - return !!this.defaultCommand; - } - runCommand(command, yargs, parsed, commandIndex, helpOnly, helpOrVersionSet) { - const commandHandler = this.handlers[command] || - this.handlers[this.aliasMap[command]] || - this.defaultCommand; - const currentContext = yargs.getInternalMethods().getContext(); - const parentCommands = currentContext.commands.slice(); - const isDefaultCommand = !command; - if (command) { - currentContext.commands.push(command); - currentContext.fullCommands.push(commandHandler.original); - } - const builderResult = this.applyBuilderUpdateUsageAndParse(isDefaultCommand, commandHandler, yargs, parsed.aliases, parentCommands, commandIndex, helpOnly, helpOrVersionSet); - return isPromise(builderResult) - ? builderResult.then(result => this.applyMiddlewareAndGetResult(isDefaultCommand, commandHandler, result.innerArgv, currentContext, helpOnly, result.aliases, yargs)) - : this.applyMiddlewareAndGetResult(isDefaultCommand, commandHandler, builderResult.innerArgv, currentContext, helpOnly, builderResult.aliases, yargs); - } - applyBuilderUpdateUsageAndParse(isDefaultCommand, commandHandler, yargs, aliases, parentCommands, commandIndex, helpOnly, helpOrVersionSet) { - const builder = commandHandler.builder; - let innerYargs = yargs; - if (isCommandBuilderCallback(builder)) { - yargs.getInternalMethods().getUsageInstance().freeze(); - const builderOutput = builder(yargs.getInternalMethods().reset(aliases), helpOrVersionSet); - if (isPromise(builderOutput)) { - return builderOutput.then(output => { - innerYargs = isYargsInstance(output) ? output : yargs; - return this.parseAndUpdateUsage(isDefaultCommand, commandHandler, innerYargs, parentCommands, commandIndex, helpOnly); - }); - } - } - else if (isCommandBuilderOptionDefinitions(builder)) { - yargs.getInternalMethods().getUsageInstance().freeze(); - innerYargs = yargs.getInternalMethods().reset(aliases); - Object.keys(commandHandler.builder).forEach(key => { - innerYargs.option(key, builder[key]); - }); - } - return this.parseAndUpdateUsage(isDefaultCommand, commandHandler, innerYargs, parentCommands, commandIndex, helpOnly); - } - parseAndUpdateUsage(isDefaultCommand, commandHandler, innerYargs, parentCommands, commandIndex, helpOnly) { - if (isDefaultCommand) - innerYargs.getInternalMethods().getUsageInstance().unfreeze(true); - if (this.shouldUpdateUsage(innerYargs)) { - innerYargs - .getInternalMethods() - .getUsageInstance() - .usage(this.usageFromParentCommandsCommandHandler(parentCommands, commandHandler), commandHandler.description); - } - const innerArgv = innerYargs - .getInternalMethods() - .runYargsParserAndExecuteCommands(null, undefined, true, commandIndex, helpOnly); - return isPromise(innerArgv) - ? innerArgv.then(argv => ({ - aliases: innerYargs.parsed.aliases, - innerArgv: argv, - })) - : { - aliases: innerYargs.parsed.aliases, - innerArgv: innerArgv, - }; - } - shouldUpdateUsage(yargs) { - return (!yargs.getInternalMethods().getUsageInstance().getUsageDisabled() && - yargs.getInternalMethods().getUsageInstance().getUsage().length === 0); - } - usageFromParentCommandsCommandHandler(parentCommands, commandHandler) { - const c = DEFAULT_MARKER.test(commandHandler.original) - ? commandHandler.original.replace(DEFAULT_MARKER, '').trim() - : commandHandler.original; - const pc = parentCommands.filter(c => { - return !DEFAULT_MARKER.test(c); - }); - pc.push(c); - return `$0 ${pc.join(' ')}`; - } - handleValidationAndGetResult(isDefaultCommand, commandHandler, innerArgv, currentContext, aliases, yargs, middlewares, positionalMap) { - if (!yargs.getInternalMethods().getHasOutput()) { - const validation = yargs - .getInternalMethods() - .runValidation(aliases, positionalMap, yargs.parsed.error, isDefaultCommand); - innerArgv = maybeAsyncResult(innerArgv, result => { - validation(result); - return result; - }); - } - if (commandHandler.handler && !yargs.getInternalMethods().getHasOutput()) { - yargs.getInternalMethods().setHasOutput(); - const populateDoubleDash = !!yargs.getOptions().configuration['populate--']; - yargs - .getInternalMethods() - .postProcess(innerArgv, populateDoubleDash, false, false); - innerArgv = applyMiddleware(innerArgv, yargs, middlewares, false); - innerArgv = maybeAsyncResult(innerArgv, result => { - const handlerResult = commandHandler.handler(result); - return isPromise(handlerResult) - ? handlerResult.then(() => result) - : result; - }); - if (!isDefaultCommand) { - yargs.getInternalMethods().getUsageInstance().cacheHelpMessage(); - } - if (isPromise(innerArgv) && - !yargs.getInternalMethods().hasParseCallback()) { - innerArgv.catch(error => { - try { - yargs.getInternalMethods().getUsageInstance().fail(null, error); - } - catch (_err) { - } - }); - } - } - if (!isDefaultCommand) { - currentContext.commands.pop(); - currentContext.fullCommands.pop(); - } - return innerArgv; - } - applyMiddlewareAndGetResult(isDefaultCommand, commandHandler, innerArgv, currentContext, helpOnly, aliases, yargs) { - let positionalMap = {}; - if (helpOnly) - return innerArgv; - if (!yargs.getInternalMethods().getHasOutput()) { - positionalMap = this.populatePositionals(commandHandler, innerArgv, currentContext, yargs); - } - const middlewares = this.globalMiddleware - .getMiddleware() - .slice(0) - .concat(commandHandler.middlewares); - const maybePromiseArgv = applyMiddleware(innerArgv, yargs, middlewares, true); - return isPromise(maybePromiseArgv) - ? maybePromiseArgv.then(resolvedInnerArgv => this.handleValidationAndGetResult(isDefaultCommand, commandHandler, resolvedInnerArgv, currentContext, aliases, yargs, middlewares, positionalMap)) - : this.handleValidationAndGetResult(isDefaultCommand, commandHandler, maybePromiseArgv, currentContext, aliases, yargs, middlewares, positionalMap); - } - populatePositionals(commandHandler, argv, context, yargs) { - argv._ = argv._.slice(context.commands.length); - const demanded = commandHandler.demanded.slice(0); - const optional = commandHandler.optional.slice(0); - const positionalMap = {}; - this.validation.positionalCount(demanded.length, argv._.length); - while (demanded.length) { - const demand = demanded.shift(); - this.populatePositional(demand, argv, positionalMap); - } - while (optional.length) { - const maybe = optional.shift(); - this.populatePositional(maybe, argv, positionalMap); - } - argv._ = context.commands.concat(argv._.map(a => '' + a)); - this.postProcessPositionals(argv, positionalMap, this.cmdToParseOptions(commandHandler.original), yargs); - return positionalMap; - } - populatePositional(positional, argv, positionalMap) { - const cmd = positional.cmd[0]; - if (positional.variadic) { - positionalMap[cmd] = argv._.splice(0).map(String); - } - else { - if (argv._.length) - positionalMap[cmd] = [String(argv._.shift())]; - } - } - cmdToParseOptions(cmdString) { - const parseOptions = { - array: [], - default: {}, - alias: {}, - demand: {}, - }; - const parsed = parseCommand(cmdString); - parsed.demanded.forEach(d => { - const [cmd, ...aliases] = d.cmd; - if (d.variadic) { - parseOptions.array.push(cmd); - parseOptions.default[cmd] = []; - } - parseOptions.alias[cmd] = aliases; - parseOptions.demand[cmd] = true; - }); - parsed.optional.forEach(o => { - const [cmd, ...aliases] = o.cmd; - if (o.variadic) { - parseOptions.array.push(cmd); - parseOptions.default[cmd] = []; - } - parseOptions.alias[cmd] = aliases; - }); - return parseOptions; - } - postProcessPositionals(argv, positionalMap, parseOptions, yargs) { - const options = Object.assign({}, yargs.getOptions()); - options.default = Object.assign(parseOptions.default, options.default); - for (const key of Object.keys(parseOptions.alias)) { - options.alias[key] = (options.alias[key] || []).concat(parseOptions.alias[key]); - } - options.array = options.array.concat(parseOptions.array); - options.config = {}; - const unparsed = []; - Object.keys(positionalMap).forEach(key => { - positionalMap[key].map(value => { - if (options.configuration['unknown-options-as-args']) - options.key[key] = true; - unparsed.push(`--${key}`); - unparsed.push(value); - }); - }); - if (!unparsed.length) - return; - const config = Object.assign({}, options.configuration, { - 'populate--': false, - }); - const parsed = this.shim.Parser.detailed(unparsed, Object.assign({}, options, { - configuration: config, - })); - if (parsed.error) { - yargs - .getInternalMethods() - .getUsageInstance() - .fail(parsed.error.message, parsed.error); - } - else { - const positionalKeys = Object.keys(positionalMap); - Object.keys(positionalMap).forEach(key => { - positionalKeys.push(...parsed.aliases[key]); - }); - Object.keys(parsed.argv).forEach(key => { - if (positionalKeys.includes(key)) { - if (!positionalMap[key]) - positionalMap[key] = parsed.argv[key]; - if (!this.isInConfigs(yargs, key) && - !this.isDefaulted(yargs, key) && - Object.prototype.hasOwnProperty.call(argv, key) && - Object.prototype.hasOwnProperty.call(parsed.argv, key) && - (Array.isArray(argv[key]) || Array.isArray(parsed.argv[key]))) { - argv[key] = [].concat(argv[key], parsed.argv[key]); - } - else { - argv[key] = parsed.argv[key]; - } - } - }); - } - } - isDefaulted(yargs, key) { - const { default: defaults } = yargs.getOptions(); - return (Object.prototype.hasOwnProperty.call(defaults, key) || - Object.prototype.hasOwnProperty.call(defaults, this.shim.Parser.camelCase(key))); - } - isInConfigs(yargs, key) { - const { configObjects } = yargs.getOptions(); - return (configObjects.some(c => Object.prototype.hasOwnProperty.call(c, key)) || - configObjects.some(c => Object.prototype.hasOwnProperty.call(c, this.shim.Parser.camelCase(key)))); - } - runDefaultBuilderOn(yargs) { - if (!this.defaultCommand) - return; - if (this.shouldUpdateUsage(yargs)) { - const commandString = DEFAULT_MARKER.test(this.defaultCommand.original) - ? this.defaultCommand.original - : this.defaultCommand.original.replace(/^[^[\]<>]*/, '$0 '); - yargs - .getInternalMethods() - .getUsageInstance() - .usage(commandString, this.defaultCommand.description); - } - const builder = this.defaultCommand.builder; - if (isCommandBuilderCallback(builder)) { - return builder(yargs, true); - } - else if (!isCommandBuilderDefinition(builder)) { - Object.keys(builder).forEach(key => { - yargs.option(key, builder[key]); - }); - } - return undefined; - } - moduleName(obj) { - const mod = whichModule(obj); - if (!mod) - throw new Error(`No command name given for module: ${this.shim.inspect(obj)}`); - return this.commandFromFilename(mod.filename); - } - commandFromFilename(filename) { - return this.shim.path.basename(filename, this.shim.path.extname(filename)); - } - extractDesc({ describe, description, desc }) { - for (const test of [describe, description, desc]) { - if (typeof test === 'string' || test === false) - return test; - assertNotStrictEqual(test, true, this.shim); - } - return false; - } - freeze() { - this.frozens.push({ - handlers: this.handlers, - aliasMap: this.aliasMap, - defaultCommand: this.defaultCommand, - }); - } - unfreeze() { - const frozen = this.frozens.pop(); - assertNotStrictEqual(frozen, undefined, this.shim); - ({ - handlers: this.handlers, - aliasMap: this.aliasMap, - defaultCommand: this.defaultCommand, - } = frozen); - } - reset() { - this.handlers = {}; - this.aliasMap = {}; - this.defaultCommand = undefined; - this.requireCache = new Set(); - return this; - } -} -export function command(usage, validation, globalMiddleware, shim) { - return new CommandInstance(usage, validation, globalMiddleware, shim); -} -export function isCommandBuilderDefinition(builder) { - return (typeof builder === 'object' && - !!builder.builder && - typeof builder.handler === 'function'); -} -function isCommandAndAliases(cmd) { - return cmd.every(c => typeof c === 'string'); -} -export function isCommandBuilderCallback(builder) { - return typeof builder === 'function'; -} -function isCommandBuilderOptionDefinitions(builder) { - return typeof builder === 'object'; -} -export function isCommandHandlerDefinition(cmd) { - return typeof cmd === 'object' && !Array.isArray(cmd); -} diff --git a/node_modules/yargs/build/lib/completion-templates.js b/node_modules/yargs/build/lib/completion-templates.js deleted file mode 100644 index 2c4dcb5..0000000 --- a/node_modules/yargs/build/lib/completion-templates.js +++ /dev/null @@ -1,48 +0,0 @@ -export const completionShTemplate = `###-begin-{{app_name}}-completions-### -# -# yargs command completion script -# -# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc -# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX. -# -_{{app_name}}_yargs_completions() -{ - local cur_word args type_list - - cur_word="\${COMP_WORDS[COMP_CWORD]}" - args=("\${COMP_WORDS[@]}") - - # ask yargs to generate completions. - type_list=$({{app_path}} --get-yargs-completions "\${args[@]}") - - COMPREPLY=( $(compgen -W "\${type_list}" -- \${cur_word}) ) - - # if no match was found, fall back to filename completion - if [ \${#COMPREPLY[@]} -eq 0 ]; then - COMPREPLY=() - fi - - return 0 -} -complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}} -###-end-{{app_name}}-completions-### -`; -export const completionZshTemplate = `#compdef {{app_name}} -###-begin-{{app_name}}-completions-### -# -# yargs command completion script -# -# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc -# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX. -# -_{{app_name}}_yargs_completions() -{ - local reply - local si=$IFS - IFS=$'\n' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "\${words[@]}")) - IFS=$si - _describe 'values' reply -} -compdef _{{app_name}}_yargs_completions {{app_name}} -###-end-{{app_name}}-completions-### -`; diff --git a/node_modules/yargs/build/lib/completion.js b/node_modules/yargs/build/lib/completion.js deleted file mode 100644 index cef2bbe..0000000 --- a/node_modules/yargs/build/lib/completion.js +++ /dev/null @@ -1,243 +0,0 @@ -import { isCommandBuilderCallback } from './command.js'; -import { assertNotStrictEqual } from './typings/common-types.js'; -import * as templates from './completion-templates.js'; -import { isPromise } from './utils/is-promise.js'; -import { parseCommand } from './parse-command.js'; -export class Completion { - constructor(yargs, usage, command, shim) { - var _a, _b, _c; - this.yargs = yargs; - this.usage = usage; - this.command = command; - this.shim = shim; - this.completionKey = 'get-yargs-completions'; - this.aliases = null; - this.customCompletionFunction = null; - this.indexAfterLastReset = 0; - this.zshShell = - (_c = (((_a = this.shim.getEnv('SHELL')) === null || _a === void 0 ? void 0 : _a.includes('zsh')) || - ((_b = this.shim.getEnv('ZSH_NAME')) === null || _b === void 0 ? void 0 : _b.includes('zsh')))) !== null && _c !== void 0 ? _c : false; - } - defaultCompletion(args, argv, current, done) { - const handlers = this.command.getCommandHandlers(); - for (let i = 0, ii = args.length; i < ii; ++i) { - if (handlers[args[i]] && handlers[args[i]].builder) { - const builder = handlers[args[i]].builder; - if (isCommandBuilderCallback(builder)) { - this.indexAfterLastReset = i + 1; - const y = this.yargs.getInternalMethods().reset(); - builder(y, true); - return y.argv; - } - } - } - const completions = []; - this.commandCompletions(completions, args, current); - this.optionCompletions(completions, args, argv, current); - this.choicesFromOptionsCompletions(completions, args, argv, current); - this.choicesFromPositionalsCompletions(completions, args, argv, current); - done(null, completions); - } - commandCompletions(completions, args, current) { - const parentCommands = this.yargs - .getInternalMethods() - .getContext().commands; - if (!current.match(/^-/) && - parentCommands[parentCommands.length - 1] !== current && - !this.previousArgHasChoices(args)) { - this.usage.getCommands().forEach(usageCommand => { - const commandName = parseCommand(usageCommand[0]).cmd; - if (args.indexOf(commandName) === -1) { - if (!this.zshShell) { - completions.push(commandName); - } - else { - const desc = usageCommand[1] || ''; - completions.push(commandName.replace(/:/g, '\\:') + ':' + desc); - } - } - }); - } - } - optionCompletions(completions, args, argv, current) { - if ((current.match(/^-/) || (current === '' && completions.length === 0)) && - !this.previousArgHasChoices(args)) { - const options = this.yargs.getOptions(); - const positionalKeys = this.yargs.getGroups()[this.usage.getPositionalGroupName()] || []; - Object.keys(options.key).forEach(key => { - const negable = !!options.configuration['boolean-negation'] && - options.boolean.includes(key); - const isPositionalKey = positionalKeys.includes(key); - if (!isPositionalKey && - !options.hiddenOptions.includes(key) && - !this.argsContainKey(args, key, negable)) { - this.completeOptionKey(key, completions, current, negable && !!options.default[key]); - } - }); - } - } - choicesFromOptionsCompletions(completions, args, argv, current) { - if (this.previousArgHasChoices(args)) { - const choices = this.getPreviousArgChoices(args); - if (choices && choices.length > 0) { - completions.push(...choices.map(c => c.replace(/:/g, '\\:'))); - } - } - } - choicesFromPositionalsCompletions(completions, args, argv, current) { - if (current === '' && - completions.length > 0 && - this.previousArgHasChoices(args)) { - return; - } - const positionalKeys = this.yargs.getGroups()[this.usage.getPositionalGroupName()] || []; - const offset = Math.max(this.indexAfterLastReset, this.yargs.getInternalMethods().getContext().commands.length + - 1); - const positionalKey = positionalKeys[argv._.length - offset - 1]; - if (!positionalKey) { - return; - } - const choices = this.yargs.getOptions().choices[positionalKey] || []; - for (const choice of choices) { - if (choice.startsWith(current)) { - completions.push(choice.replace(/:/g, '\\:')); - } - } - } - getPreviousArgChoices(args) { - if (args.length < 1) - return; - let previousArg = args[args.length - 1]; - let filter = ''; - if (!previousArg.startsWith('-') && args.length > 1) { - filter = previousArg; - previousArg = args[args.length - 2]; - } - if (!previousArg.startsWith('-')) - return; - const previousArgKey = previousArg.replace(/^-+/, ''); - const options = this.yargs.getOptions(); - const possibleAliases = [ - previousArgKey, - ...(this.yargs.getAliases()[previousArgKey] || []), - ]; - let choices; - for (const possibleAlias of possibleAliases) { - if (Object.prototype.hasOwnProperty.call(options.key, possibleAlias) && - Array.isArray(options.choices[possibleAlias])) { - choices = options.choices[possibleAlias]; - break; - } - } - if (choices) { - return choices.filter(choice => !filter || choice.startsWith(filter)); - } - } - previousArgHasChoices(args) { - const choices = this.getPreviousArgChoices(args); - return choices !== undefined && choices.length > 0; - } - argsContainKey(args, key, negable) { - const argsContains = (s) => args.indexOf((/^[^0-9]$/.test(s) ? '-' : '--') + s) !== -1; - if (argsContains(key)) - return true; - if (negable && argsContains(`no-${key}`)) - return true; - if (this.aliases) { - for (const alias of this.aliases[key]) { - if (argsContains(alias)) - return true; - } - } - return false; - } - completeOptionKey(key, completions, current, negable) { - var _a, _b, _c, _d; - let keyWithDesc = key; - if (this.zshShell) { - const descs = this.usage.getDescriptions(); - const aliasKey = (_b = (_a = this === null || this === void 0 ? void 0 : this.aliases) === null || _a === void 0 ? void 0 : _a[key]) === null || _b === void 0 ? void 0 : _b.find(alias => { - const desc = descs[alias]; - return typeof desc === 'string' && desc.length > 0; - }); - const descFromAlias = aliasKey ? descs[aliasKey] : undefined; - const desc = (_d = (_c = descs[key]) !== null && _c !== void 0 ? _c : descFromAlias) !== null && _d !== void 0 ? _d : ''; - keyWithDesc = `${key.replace(/:/g, '\\:')}:${desc - .replace('__yargsString__:', '') - .replace(/(\r\n|\n|\r)/gm, ' ')}`; - } - const startsByTwoDashes = (s) => /^--/.test(s); - const isShortOption = (s) => /^[^0-9]$/.test(s); - const dashes = !startsByTwoDashes(current) && isShortOption(key) ? '-' : '--'; - completions.push(dashes + keyWithDesc); - if (negable) { - completions.push(dashes + 'no-' + keyWithDesc); - } - } - customCompletion(args, argv, current, done) { - assertNotStrictEqual(this.customCompletionFunction, null, this.shim); - if (isSyncCompletionFunction(this.customCompletionFunction)) { - const result = this.customCompletionFunction(current, argv); - if (isPromise(result)) { - return result - .then(list => { - this.shim.process.nextTick(() => { - done(null, list); - }); - }) - .catch(err => { - this.shim.process.nextTick(() => { - done(err, undefined); - }); - }); - } - return done(null, result); - } - else if (isFallbackCompletionFunction(this.customCompletionFunction)) { - return this.customCompletionFunction(current, argv, (onCompleted = done) => this.defaultCompletion(args, argv, current, onCompleted), completions => { - done(null, completions); - }); - } - else { - return this.customCompletionFunction(current, argv, completions => { - done(null, completions); - }); - } - } - getCompletion(args, done) { - const current = args.length ? args[args.length - 1] : ''; - const argv = this.yargs.parse(args, true); - const completionFunction = this.customCompletionFunction - ? (argv) => this.customCompletion(args, argv, current, done) - : (argv) => this.defaultCompletion(args, argv, current, done); - return isPromise(argv) - ? argv.then(completionFunction) - : completionFunction(argv); - } - generateCompletionScript($0, cmd) { - let script = this.zshShell - ? templates.completionZshTemplate - : templates.completionShTemplate; - const name = this.shim.path.basename($0); - if ($0.match(/\.js$/)) - $0 = `./${$0}`; - script = script.replace(/{{app_name}}/g, name); - script = script.replace(/{{completion_command}}/g, cmd); - return script.replace(/{{app_path}}/g, $0); - } - registerFunction(fn) { - this.customCompletionFunction = fn; - } - setParsed(parsed) { - this.aliases = parsed.aliases; - } -} -export function completion(yargs, usage, command, shim) { - return new Completion(yargs, usage, command, shim); -} -function isSyncCompletionFunction(completionFunction) { - return completionFunction.length < 3; -} -function isFallbackCompletionFunction(completionFunction) { - return completionFunction.length > 3; -} diff --git a/node_modules/yargs/build/lib/middleware.js b/node_modules/yargs/build/lib/middleware.js deleted file mode 100644 index 4e561a7..0000000 --- a/node_modules/yargs/build/lib/middleware.js +++ /dev/null @@ -1,88 +0,0 @@ -import { argsert } from './argsert.js'; -import { isPromise } from './utils/is-promise.js'; -export class GlobalMiddleware { - constructor(yargs) { - this.globalMiddleware = []; - this.frozens = []; - this.yargs = yargs; - } - addMiddleware(callback, applyBeforeValidation, global = true, mutates = false) { - argsert(' [boolean] [boolean] [boolean]', [callback, applyBeforeValidation, global], arguments.length); - if (Array.isArray(callback)) { - for (let i = 0; i < callback.length; i++) { - if (typeof callback[i] !== 'function') { - throw Error('middleware must be a function'); - } - const m = callback[i]; - m.applyBeforeValidation = applyBeforeValidation; - m.global = global; - } - Array.prototype.push.apply(this.globalMiddleware, callback); - } - else if (typeof callback === 'function') { - const m = callback; - m.applyBeforeValidation = applyBeforeValidation; - m.global = global; - m.mutates = mutates; - this.globalMiddleware.push(callback); - } - return this.yargs; - } - addCoerceMiddleware(callback, option) { - const aliases = this.yargs.getAliases(); - this.globalMiddleware = this.globalMiddleware.filter(m => { - const toCheck = [...(aliases[option] || []), option]; - if (!m.option) - return true; - else - return !toCheck.includes(m.option); - }); - callback.option = option; - return this.addMiddleware(callback, true, true, true); - } - getMiddleware() { - return this.globalMiddleware; - } - freeze() { - this.frozens.push([...this.globalMiddleware]); - } - unfreeze() { - const frozen = this.frozens.pop(); - if (frozen !== undefined) - this.globalMiddleware = frozen; - } - reset() { - this.globalMiddleware = this.globalMiddleware.filter(m => m.global); - } -} -export function commandMiddlewareFactory(commandMiddleware) { - if (!commandMiddleware) - return []; - return commandMiddleware.map(middleware => { - middleware.applyBeforeValidation = false; - return middleware; - }); -} -export function applyMiddleware(argv, yargs, middlewares, beforeValidation) { - return middlewares.reduce((acc, middleware) => { - if (middleware.applyBeforeValidation !== beforeValidation) { - return acc; - } - if (middleware.mutates) { - if (middleware.applied) - return acc; - middleware.applied = true; - } - if (isPromise(acc)) { - return acc - .then(initialObj => Promise.all([initialObj, middleware(initialObj, yargs)])) - .then(([initialObj, middlewareObj]) => Object.assign(initialObj, middlewareObj)); - } - else { - const result = middleware(acc, yargs); - return isPromise(result) - ? result.then(middlewareObj => Object.assign(acc, middlewareObj)) - : Object.assign(acc, result); - } - }, argv); -} diff --git a/node_modules/yargs/build/lib/parse-command.js b/node_modules/yargs/build/lib/parse-command.js deleted file mode 100644 index 4989f53..0000000 --- a/node_modules/yargs/build/lib/parse-command.js +++ /dev/null @@ -1,32 +0,0 @@ -export function parseCommand(cmd) { - const extraSpacesStrippedCommand = cmd.replace(/\s{2,}/g, ' '); - const splitCommand = extraSpacesStrippedCommand.split(/\s+(?![^[]*]|[^<]*>)/); - const bregex = /\.*[\][<>]/g; - const firstCommand = splitCommand.shift(); - if (!firstCommand) - throw new Error(`No command found in: ${cmd}`); - const parsedCommand = { - cmd: firstCommand.replace(bregex, ''), - demanded: [], - optional: [], - }; - splitCommand.forEach((cmd, i) => { - let variadic = false; - cmd = cmd.replace(/\s/g, ''); - if (/\.+[\]>]/.test(cmd) && i === splitCommand.length - 1) - variadic = true; - if (/^\[/.test(cmd)) { - parsedCommand.optional.push({ - cmd: cmd.replace(bregex, '').split('|'), - variadic, - }); - } - else { - parsedCommand.demanded.push({ - cmd: cmd.replace(bregex, '').split('|'), - variadic, - }); - } - }); - return parsedCommand; -} diff --git a/node_modules/yargs/build/lib/typings/common-types.js b/node_modules/yargs/build/lib/typings/common-types.js deleted file mode 100644 index 73e1773..0000000 --- a/node_modules/yargs/build/lib/typings/common-types.js +++ /dev/null @@ -1,9 +0,0 @@ -export function assertNotStrictEqual(actual, expected, shim, message) { - shim.assert.notStrictEqual(actual, expected, message); -} -export function assertSingleKey(actual, shim) { - shim.assert.strictEqual(typeof actual, 'string'); -} -export function objectKeys(object) { - return Object.keys(object); -} diff --git a/node_modules/yargs/build/lib/typings/yargs-parser-types.js b/node_modules/yargs/build/lib/typings/yargs-parser-types.js deleted file mode 100644 index cb0ff5c..0000000 --- a/node_modules/yargs/build/lib/typings/yargs-parser-types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/yargs/build/lib/usage.js b/node_modules/yargs/build/lib/usage.js deleted file mode 100644 index 0127c13..0000000 --- a/node_modules/yargs/build/lib/usage.js +++ /dev/null @@ -1,584 +0,0 @@ -import { objFilter } from './utils/obj-filter.js'; -import { YError } from './yerror.js'; -import setBlocking from './utils/set-blocking.js'; -function isBoolean(fail) { - return typeof fail === 'boolean'; -} -export function usage(yargs, shim) { - const __ = shim.y18n.__; - const self = {}; - const fails = []; - self.failFn = function failFn(f) { - fails.push(f); - }; - let failMessage = null; - let globalFailMessage = null; - let showHelpOnFail = true; - self.showHelpOnFail = function showHelpOnFailFn(arg1 = true, arg2) { - const [enabled, message] = typeof arg1 === 'string' ? [true, arg1] : [arg1, arg2]; - if (yargs.getInternalMethods().isGlobalContext()) { - globalFailMessage = message; - } - failMessage = message; - showHelpOnFail = enabled; - return self; - }; - let failureOutput = false; - self.fail = function fail(msg, err) { - const logger = yargs.getInternalMethods().getLoggerInstance(); - if (fails.length) { - for (let i = fails.length - 1; i >= 0; --i) { - const fail = fails[i]; - if (isBoolean(fail)) { - if (err) - throw err; - else if (msg) - throw Error(msg); - } - else { - fail(msg, err, self); - } - } - } - else { - if (yargs.getExitProcess()) - setBlocking(true); - if (!failureOutput) { - failureOutput = true; - if (showHelpOnFail) { - yargs.showHelp('error'); - logger.error(); - } - if (msg || err) - logger.error(msg || err); - const globalOrCommandFailMessage = failMessage || globalFailMessage; - if (globalOrCommandFailMessage) { - if (msg || err) - logger.error(''); - logger.error(globalOrCommandFailMessage); - } - } - err = err || new YError(msg); - if (yargs.getExitProcess()) { - return yargs.exit(1); - } - else if (yargs.getInternalMethods().hasParseCallback()) { - return yargs.exit(1, err); - } - else { - throw err; - } - } - }; - let usages = []; - let usageDisabled = false; - self.usage = (msg, description) => { - if (msg === null) { - usageDisabled = true; - usages = []; - return self; - } - usageDisabled = false; - usages.push([msg, description || '']); - return self; - }; - self.getUsage = () => { - return usages; - }; - self.getUsageDisabled = () => { - return usageDisabled; - }; - self.getPositionalGroupName = () => { - return __('Positionals:'); - }; - let examples = []; - self.example = (cmd, description) => { - examples.push([cmd, description || '']); - }; - let commands = []; - self.command = function command(cmd, description, isDefault, aliases, deprecated = false) { - if (isDefault) { - commands = commands.map(cmdArray => { - cmdArray[2] = false; - return cmdArray; - }); - } - commands.push([cmd, description || '', isDefault, aliases, deprecated]); - }; - self.getCommands = () => commands; - let descriptions = {}; - self.describe = function describe(keyOrKeys, desc) { - if (Array.isArray(keyOrKeys)) { - keyOrKeys.forEach(k => { - self.describe(k, desc); - }); - } - else if (typeof keyOrKeys === 'object') { - Object.keys(keyOrKeys).forEach(k => { - self.describe(k, keyOrKeys[k]); - }); - } - else { - descriptions[keyOrKeys] = desc; - } - }; - self.getDescriptions = () => descriptions; - let epilogs = []; - self.epilog = msg => { - epilogs.push(msg); - }; - let wrapSet = false; - let wrap; - self.wrap = cols => { - wrapSet = true; - wrap = cols; - }; - self.getWrap = () => { - if (shim.getEnv('YARGS_DISABLE_WRAP')) { - return null; - } - if (!wrapSet) { - wrap = windowWidth(); - wrapSet = true; - } - return wrap; - }; - const deferY18nLookupPrefix = '__yargsString__:'; - self.deferY18nLookup = str => deferY18nLookupPrefix + str; - self.help = function help() { - if (cachedHelpMessage) - return cachedHelpMessage; - normalizeAliases(); - const base$0 = yargs.customScriptName - ? yargs.$0 - : shim.path.basename(yargs.$0); - const demandedOptions = yargs.getDemandedOptions(); - const demandedCommands = yargs.getDemandedCommands(); - const deprecatedOptions = yargs.getDeprecatedOptions(); - const groups = yargs.getGroups(); - const options = yargs.getOptions(); - let keys = []; - keys = keys.concat(Object.keys(descriptions)); - keys = keys.concat(Object.keys(demandedOptions)); - keys = keys.concat(Object.keys(demandedCommands)); - keys = keys.concat(Object.keys(options.default)); - keys = keys.filter(filterHiddenOptions); - keys = Object.keys(keys.reduce((acc, key) => { - if (key !== '_') - acc[key] = true; - return acc; - }, {})); - const theWrap = self.getWrap(); - const ui = shim.cliui({ - width: theWrap, - wrap: !!theWrap, - }); - if (!usageDisabled) { - if (usages.length) { - usages.forEach(usage => { - ui.div({ text: `${usage[0].replace(/\$0/g, base$0)}` }); - if (usage[1]) { - ui.div({ text: `${usage[1]}`, padding: [1, 0, 0, 0] }); - } - }); - ui.div(); - } - else if (commands.length) { - let u = null; - if (demandedCommands._) { - u = `${base$0} <${__('command')}>\n`; - } - else { - u = `${base$0} [${__('command')}]\n`; - } - ui.div(`${u}`); - } - } - if (commands.length > 1 || (commands.length === 1 && !commands[0][2])) { - ui.div(__('Commands:')); - const context = yargs.getInternalMethods().getContext(); - const parentCommands = context.commands.length - ? `${context.commands.join(' ')} ` - : ''; - if (yargs.getInternalMethods().getParserConfiguration()['sort-commands'] === - true) { - commands = commands.sort((a, b) => a[0].localeCompare(b[0])); - } - const prefix = base$0 ? `${base$0} ` : ''; - commands.forEach(command => { - const commandString = `${prefix}${parentCommands}${command[0].replace(/^\$0 ?/, '')}`; - ui.span({ - text: commandString, - padding: [0, 2, 0, 2], - width: maxWidth(commands, theWrap, `${base$0}${parentCommands}`) + 4, - }, { text: command[1] }); - const hints = []; - if (command[2]) - hints.push(`[${__('default')}]`); - if (command[3] && command[3].length) { - hints.push(`[${__('aliases:')} ${command[3].join(', ')}]`); - } - if (command[4]) { - if (typeof command[4] === 'string') { - hints.push(`[${__('deprecated: %s', command[4])}]`); - } - else { - hints.push(`[${__('deprecated')}]`); - } - } - if (hints.length) { - ui.div({ - text: hints.join(' '), - padding: [0, 0, 0, 2], - align: 'right', - }); - } - else { - ui.div(); - } - }); - ui.div(); - } - const aliasKeys = (Object.keys(options.alias) || []).concat(Object.keys(yargs.parsed.newAliases) || []); - keys = keys.filter(key => !yargs.parsed.newAliases[key] && - aliasKeys.every(alias => (options.alias[alias] || []).indexOf(key) === -1)); - const defaultGroup = __('Options:'); - if (!groups[defaultGroup]) - groups[defaultGroup] = []; - addUngroupedKeys(keys, options.alias, groups, defaultGroup); - const isLongSwitch = (sw) => /^--/.test(getText(sw)); - const displayedGroups = Object.keys(groups) - .filter(groupName => groups[groupName].length > 0) - .map(groupName => { - const normalizedKeys = groups[groupName] - .filter(filterHiddenOptions) - .map(key => { - if (aliasKeys.includes(key)) - return key; - for (let i = 0, aliasKey; (aliasKey = aliasKeys[i]) !== undefined; i++) { - if ((options.alias[aliasKey] || []).includes(key)) - return aliasKey; - } - return key; - }); - return { groupName, normalizedKeys }; - }) - .filter(({ normalizedKeys }) => normalizedKeys.length > 0) - .map(({ groupName, normalizedKeys }) => { - const switches = normalizedKeys.reduce((acc, key) => { - acc[key] = [key] - .concat(options.alias[key] || []) - .map(sw => { - if (groupName === self.getPositionalGroupName()) - return sw; - else { - return ((/^[0-9]$/.test(sw) - ? options.boolean.includes(key) - ? '-' - : '--' - : sw.length > 1 - ? '--' - : '-') + sw); - } - }) - .sort((sw1, sw2) => isLongSwitch(sw1) === isLongSwitch(sw2) - ? 0 - : isLongSwitch(sw1) - ? 1 - : -1) - .join(', '); - return acc; - }, {}); - return { groupName, normalizedKeys, switches }; - }); - const shortSwitchesUsed = displayedGroups - .filter(({ groupName }) => groupName !== self.getPositionalGroupName()) - .some(({ normalizedKeys, switches }) => !normalizedKeys.every(key => isLongSwitch(switches[key]))); - if (shortSwitchesUsed) { - displayedGroups - .filter(({ groupName }) => groupName !== self.getPositionalGroupName()) - .forEach(({ normalizedKeys, switches }) => { - normalizedKeys.forEach(key => { - if (isLongSwitch(switches[key])) { - switches[key] = addIndentation(switches[key], '-x, '.length); - } - }); - }); - } - displayedGroups.forEach(({ groupName, normalizedKeys, switches }) => { - ui.div(groupName); - normalizedKeys.forEach(key => { - const kswitch = switches[key]; - let desc = descriptions[key] || ''; - let type = null; - if (desc.includes(deferY18nLookupPrefix)) - desc = __(desc.substring(deferY18nLookupPrefix.length)); - if (options.boolean.includes(key)) - type = `[${__('boolean')}]`; - if (options.count.includes(key)) - type = `[${__('count')}]`; - if (options.string.includes(key)) - type = `[${__('string')}]`; - if (options.normalize.includes(key)) - type = `[${__('string')}]`; - if (options.array.includes(key)) - type = `[${__('array')}]`; - if (options.number.includes(key)) - type = `[${__('number')}]`; - const deprecatedExtra = (deprecated) => typeof deprecated === 'string' - ? `[${__('deprecated: %s', deprecated)}]` - : `[${__('deprecated')}]`; - const extra = [ - key in deprecatedOptions - ? deprecatedExtra(deprecatedOptions[key]) - : null, - type, - key in demandedOptions ? `[${__('required')}]` : null, - options.choices && options.choices[key] - ? `[${__('choices:')} ${self.stringifiedValues(options.choices[key])}]` - : null, - defaultString(options.default[key], options.defaultDescription[key]), - ] - .filter(Boolean) - .join(' '); - ui.span({ - text: getText(kswitch), - padding: [0, 2, 0, 2 + getIndentation(kswitch)], - width: maxWidth(switches, theWrap) + 4, - }, desc); - const shouldHideOptionExtras = yargs.getInternalMethods().getUsageConfiguration()['hide-types'] === - true; - if (extra && !shouldHideOptionExtras) - ui.div({ text: extra, padding: [0, 0, 0, 2], align: 'right' }); - else - ui.div(); - }); - ui.div(); - }); - if (examples.length) { - ui.div(__('Examples:')); - examples.forEach(example => { - example[0] = example[0].replace(/\$0/g, base$0); - }); - examples.forEach(example => { - if (example[1] === '') { - ui.div({ - text: example[0], - padding: [0, 2, 0, 2], - }); - } - else { - ui.div({ - text: example[0], - padding: [0, 2, 0, 2], - width: maxWidth(examples, theWrap) + 4, - }, { - text: example[1], - }); - } - }); - ui.div(); - } - if (epilogs.length > 0) { - const e = epilogs - .map(epilog => epilog.replace(/\$0/g, base$0)) - .join('\n'); - ui.div(`${e}\n`); - } - return ui.toString().replace(/\s*$/, ''); - }; - function maxWidth(table, theWrap, modifier) { - let width = 0; - if (!Array.isArray(table)) { - table = Object.values(table).map(v => [v]); - } - table.forEach(v => { - width = Math.max(shim.stringWidth(modifier ? `${modifier} ${getText(v[0])}` : getText(v[0])) + getIndentation(v[0]), width); - }); - if (theWrap) - width = Math.min(width, parseInt((theWrap * 0.5).toString(), 10)); - return width; - } - function normalizeAliases() { - const demandedOptions = yargs.getDemandedOptions(); - const options = yargs.getOptions(); - (Object.keys(options.alias) || []).forEach(key => { - options.alias[key].forEach(alias => { - if (descriptions[alias]) - self.describe(key, descriptions[alias]); - if (alias in demandedOptions) - yargs.demandOption(key, demandedOptions[alias]); - if (options.boolean.includes(alias)) - yargs.boolean(key); - if (options.count.includes(alias)) - yargs.count(key); - if (options.string.includes(alias)) - yargs.string(key); - if (options.normalize.includes(alias)) - yargs.normalize(key); - if (options.array.includes(alias)) - yargs.array(key); - if (options.number.includes(alias)) - yargs.number(key); - }); - }); - } - let cachedHelpMessage; - self.cacheHelpMessage = function () { - cachedHelpMessage = this.help(); - }; - self.clearCachedHelpMessage = function () { - cachedHelpMessage = undefined; - }; - self.hasCachedHelpMessage = function () { - return !!cachedHelpMessage; - }; - function addUngroupedKeys(keys, aliases, groups, defaultGroup) { - let groupedKeys = []; - let toCheck = null; - Object.keys(groups).forEach(group => { - groupedKeys = groupedKeys.concat(groups[group]); - }); - keys.forEach(key => { - toCheck = [key].concat(aliases[key]); - if (!toCheck.some(k => groupedKeys.indexOf(k) !== -1)) { - groups[defaultGroup].push(key); - } - }); - return groupedKeys; - } - function filterHiddenOptions(key) { - return (yargs.getOptions().hiddenOptions.indexOf(key) < 0 || - yargs.parsed.argv[yargs.getOptions().showHiddenOpt]); - } - self.showHelp = (level) => { - const logger = yargs.getInternalMethods().getLoggerInstance(); - if (!level) - level = 'error'; - const emit = typeof level === 'function' ? level : logger[level]; - emit(self.help()); - }; - self.functionDescription = fn => { - const description = fn.name - ? shim.Parser.decamelize(fn.name, '-') - : __('generated-value'); - return ['(', description, ')'].join(''); - }; - self.stringifiedValues = function stringifiedValues(values, separator) { - let string = ''; - const sep = separator || ', '; - const array = [].concat(values); - if (!values || !array.length) - return string; - array.forEach(value => { - if (string.length) - string += sep; - string += JSON.stringify(value); - }); - return string; - }; - function defaultString(value, defaultDescription) { - let string = `[${__('default:')} `; - if (value === undefined && !defaultDescription) - return null; - if (defaultDescription) { - string += defaultDescription; - } - else { - switch (typeof value) { - case 'string': - string += `"${value}"`; - break; - case 'object': - string += JSON.stringify(value); - break; - default: - string += value; - } - } - return `${string}]`; - } - function windowWidth() { - const maxWidth = 80; - if (shim.process.stdColumns) { - return Math.min(maxWidth, shim.process.stdColumns); - } - else { - return maxWidth; - } - } - let version = null; - self.version = ver => { - version = ver; - }; - self.showVersion = level => { - const logger = yargs.getInternalMethods().getLoggerInstance(); - if (!level) - level = 'error'; - const emit = typeof level === 'function' ? level : logger[level]; - emit(version); - }; - self.reset = function reset(localLookup) { - failMessage = null; - failureOutput = false; - usages = []; - usageDisabled = false; - epilogs = []; - examples = []; - commands = []; - descriptions = objFilter(descriptions, k => !localLookup[k]); - return self; - }; - const frozens = []; - self.freeze = function freeze() { - frozens.push({ - failMessage, - failureOutput, - usages, - usageDisabled, - epilogs, - examples, - commands, - descriptions, - }); - }; - self.unfreeze = function unfreeze(defaultCommand = false) { - const frozen = frozens.pop(); - if (!frozen) - return; - if (defaultCommand) { - descriptions = { ...frozen.descriptions, ...descriptions }; - commands = [...frozen.commands, ...commands]; - usages = [...frozen.usages, ...usages]; - examples = [...frozen.examples, ...examples]; - epilogs = [...frozen.epilogs, ...epilogs]; - } - else { - ({ - failMessage, - failureOutput, - usages, - usageDisabled, - epilogs, - examples, - commands, - descriptions, - } = frozen); - } - }; - return self; -} -function isIndentedText(text) { - return typeof text === 'object'; -} -function addIndentation(text, indent) { - return isIndentedText(text) - ? { text: text.text, indentation: text.indentation + indent } - : { text, indentation: indent }; -} -function getIndentation(text) { - return isIndentedText(text) ? text.indentation : 0; -} -function getText(text) { - return isIndentedText(text) ? text.text : text; -} diff --git a/node_modules/yargs/build/lib/utils/apply-extends.js b/node_modules/yargs/build/lib/utils/apply-extends.js deleted file mode 100644 index 0e593b4..0000000 --- a/node_modules/yargs/build/lib/utils/apply-extends.js +++ /dev/null @@ -1,59 +0,0 @@ -import { YError } from '../yerror.js'; -let previouslyVisitedConfigs = []; -let shim; -export function applyExtends(config, cwd, mergeExtends, _shim) { - shim = _shim; - let defaultConfig = {}; - if (Object.prototype.hasOwnProperty.call(config, 'extends')) { - if (typeof config.extends !== 'string') - return defaultConfig; - const isPath = /\.json|\..*rc$/.test(config.extends); - let pathToDefault = null; - if (!isPath) { - try { - pathToDefault = require.resolve(config.extends); - } - catch (_err) { - return config; - } - } - else { - pathToDefault = getPathToDefaultConfig(cwd, config.extends); - } - checkForCircularExtends(pathToDefault); - previouslyVisitedConfigs.push(pathToDefault); - defaultConfig = isPath - ? JSON.parse(shim.readFileSync(pathToDefault, 'utf8')) - : require(config.extends); - delete config.extends; - defaultConfig = applyExtends(defaultConfig, shim.path.dirname(pathToDefault), mergeExtends, shim); - } - previouslyVisitedConfigs = []; - return mergeExtends - ? mergeDeep(defaultConfig, config) - : Object.assign({}, defaultConfig, config); -} -function checkForCircularExtends(cfgPath) { - if (previouslyVisitedConfigs.indexOf(cfgPath) > -1) { - throw new YError(`Circular extended configurations: '${cfgPath}'.`); - } -} -function getPathToDefaultConfig(cwd, pathToExtend) { - return shim.path.resolve(cwd, pathToExtend); -} -function mergeDeep(config1, config2) { - const target = {}; - function isObject(obj) { - return obj && typeof obj === 'object' && !Array.isArray(obj); - } - Object.assign(target, config1); - for (const key of Object.keys(config2)) { - if (isObject(config2[key]) && isObject(target[key])) { - target[key] = mergeDeep(config1[key], config2[key]); - } - else { - target[key] = config2[key]; - } - } - return target; -} diff --git a/node_modules/yargs/build/lib/utils/is-promise.js b/node_modules/yargs/build/lib/utils/is-promise.js deleted file mode 100644 index d250c08..0000000 --- a/node_modules/yargs/build/lib/utils/is-promise.js +++ /dev/null @@ -1,5 +0,0 @@ -export function isPromise(maybePromise) { - return (!!maybePromise && - !!maybePromise.then && - typeof maybePromise.then === 'function'); -} diff --git a/node_modules/yargs/build/lib/utils/levenshtein.js b/node_modules/yargs/build/lib/utils/levenshtein.js deleted file mode 100644 index 60575ef..0000000 --- a/node_modules/yargs/build/lib/utils/levenshtein.js +++ /dev/null @@ -1,34 +0,0 @@ -export function levenshtein(a, b) { - if (a.length === 0) - return b.length; - if (b.length === 0) - return a.length; - const matrix = []; - let i; - for (i = 0; i <= b.length; i++) { - matrix[i] = [i]; - } - let j; - for (j = 0; j <= a.length; j++) { - matrix[0][j] = j; - } - for (i = 1; i <= b.length; i++) { - for (j = 1; j <= a.length; j++) { - if (b.charAt(i - 1) === a.charAt(j - 1)) { - matrix[i][j] = matrix[i - 1][j - 1]; - } - else { - if (i > 1 && - j > 1 && - b.charAt(i - 2) === a.charAt(j - 1) && - b.charAt(i - 1) === a.charAt(j - 2)) { - matrix[i][j] = matrix[i - 2][j - 2] + 1; - } - else { - matrix[i][j] = Math.min(matrix[i - 1][j - 1] + 1, Math.min(matrix[i][j - 1] + 1, matrix[i - 1][j] + 1)); - } - } - } - } - return matrix[b.length][a.length]; -} diff --git a/node_modules/yargs/build/lib/utils/maybe-async-result.js b/node_modules/yargs/build/lib/utils/maybe-async-result.js deleted file mode 100644 index 8c6a40c..0000000 --- a/node_modules/yargs/build/lib/utils/maybe-async-result.js +++ /dev/null @@ -1,17 +0,0 @@ -import { isPromise } from './is-promise.js'; -export function maybeAsyncResult(getResult, resultHandler, errorHandler = (err) => { - throw err; -}) { - try { - const result = isFunction(getResult) ? getResult() : getResult; - return isPromise(result) - ? result.then((result) => resultHandler(result)) - : resultHandler(result); - } - catch (err) { - return errorHandler(err); - } -} -function isFunction(arg) { - return typeof arg === 'function'; -} diff --git a/node_modules/yargs/build/lib/utils/obj-filter.js b/node_modules/yargs/build/lib/utils/obj-filter.js deleted file mode 100644 index cd68ad2..0000000 --- a/node_modules/yargs/build/lib/utils/obj-filter.js +++ /dev/null @@ -1,10 +0,0 @@ -import { objectKeys } from '../typings/common-types.js'; -export function objFilter(original = {}, filter = () => true) { - const obj = {}; - objectKeys(original).forEach(key => { - if (filter(key, original[key])) { - obj[key] = original[key]; - } - }); - return obj; -} diff --git a/node_modules/yargs/build/lib/utils/process-argv.js b/node_modules/yargs/build/lib/utils/process-argv.js deleted file mode 100644 index 74dc9e4..0000000 --- a/node_modules/yargs/build/lib/utils/process-argv.js +++ /dev/null @@ -1,17 +0,0 @@ -function getProcessArgvBinIndex() { - if (isBundledElectronApp()) - return 0; - return 1; -} -function isBundledElectronApp() { - return isElectronApp() && !process.defaultApp; -} -function isElectronApp() { - return !!process.versions.electron; -} -export function hideBin(argv) { - return argv.slice(getProcessArgvBinIndex() + 1); -} -export function getProcessArgvBin() { - return process.argv[getProcessArgvBinIndex()]; -} diff --git a/node_modules/yargs/build/lib/utils/set-blocking.js b/node_modules/yargs/build/lib/utils/set-blocking.js deleted file mode 100644 index 88fb806..0000000 --- a/node_modules/yargs/build/lib/utils/set-blocking.js +++ /dev/null @@ -1,12 +0,0 @@ -export default function setBlocking(blocking) { - if (typeof process === 'undefined') - return; - [process.stdout, process.stderr].forEach(_stream => { - const stream = _stream; - if (stream._handle && - stream.isTTY && - typeof stream._handle.setBlocking === 'function') { - stream._handle.setBlocking(blocking); - } - }); -} diff --git a/node_modules/yargs/build/lib/utils/which-module.js b/node_modules/yargs/build/lib/utils/which-module.js deleted file mode 100644 index 5974e22..0000000 --- a/node_modules/yargs/build/lib/utils/which-module.js +++ /dev/null @@ -1,10 +0,0 @@ -export default function whichModule(exported) { - if (typeof require === 'undefined') - return null; - for (let i = 0, files = Object.keys(require.cache), mod; i < files.length; i++) { - mod = require.cache[files[i]]; - if (mod.exports === exported) - return mod; - } - return null; -} diff --git a/node_modules/yargs/build/lib/validation.js b/node_modules/yargs/build/lib/validation.js deleted file mode 100644 index bd2e1b8..0000000 --- a/node_modules/yargs/build/lib/validation.js +++ /dev/null @@ -1,305 +0,0 @@ -import { argsert } from './argsert.js'; -import { assertNotStrictEqual, } from './typings/common-types.js'; -import { levenshtein as distance } from './utils/levenshtein.js'; -import { objFilter } from './utils/obj-filter.js'; -const specialKeys = ['$0', '--', '_']; -export function validation(yargs, usage, shim) { - const __ = shim.y18n.__; - const __n = shim.y18n.__n; - const self = {}; - self.nonOptionCount = function nonOptionCount(argv) { - const demandedCommands = yargs.getDemandedCommands(); - const positionalCount = argv._.length + (argv['--'] ? argv['--'].length : 0); - const _s = positionalCount - yargs.getInternalMethods().getContext().commands.length; - if (demandedCommands._ && - (_s < demandedCommands._.min || _s > demandedCommands._.max)) { - if (_s < demandedCommands._.min) { - if (demandedCommands._.minMsg !== undefined) { - usage.fail(demandedCommands._.minMsg - ? demandedCommands._.minMsg - .replace(/\$0/g, _s.toString()) - .replace(/\$1/, demandedCommands._.min.toString()) - : null); - } - else { - usage.fail(__n('Not enough non-option arguments: got %s, need at least %s', 'Not enough non-option arguments: got %s, need at least %s', _s, _s.toString(), demandedCommands._.min.toString())); - } - } - else if (_s > demandedCommands._.max) { - if (demandedCommands._.maxMsg !== undefined) { - usage.fail(demandedCommands._.maxMsg - ? demandedCommands._.maxMsg - .replace(/\$0/g, _s.toString()) - .replace(/\$1/, demandedCommands._.max.toString()) - : null); - } - else { - usage.fail(__n('Too many non-option arguments: got %s, maximum of %s', 'Too many non-option arguments: got %s, maximum of %s', _s, _s.toString(), demandedCommands._.max.toString())); - } - } - } - }; - self.positionalCount = function positionalCount(required, observed) { - if (observed < required) { - usage.fail(__n('Not enough non-option arguments: got %s, need at least %s', 'Not enough non-option arguments: got %s, need at least %s', observed, observed + '', required + '')); - } - }; - self.requiredArguments = function requiredArguments(argv, demandedOptions) { - let missing = null; - for (const key of Object.keys(demandedOptions)) { - if (!Object.prototype.hasOwnProperty.call(argv, key) || - typeof argv[key] === 'undefined') { - missing = missing || {}; - missing[key] = demandedOptions[key]; - } - } - if (missing) { - const customMsgs = []; - for (const key of Object.keys(missing)) { - const msg = missing[key]; - if (msg && customMsgs.indexOf(msg) < 0) { - customMsgs.push(msg); - } - } - const customMsg = customMsgs.length ? `\n${customMsgs.join('\n')}` : ''; - usage.fail(__n('Missing required argument: %s', 'Missing required arguments: %s', Object.keys(missing).length, Object.keys(missing).join(', ') + customMsg)); - } - }; - self.unknownArguments = function unknownArguments(argv, aliases, positionalMap, isDefaultCommand, checkPositionals = true) { - var _a; - const commandKeys = yargs - .getInternalMethods() - .getCommandInstance() - .getCommands(); - const unknown = []; - const currentContext = yargs.getInternalMethods().getContext(); - Object.keys(argv).forEach(key => { - if (!specialKeys.includes(key) && - !Object.prototype.hasOwnProperty.call(positionalMap, key) && - !Object.prototype.hasOwnProperty.call(yargs.getInternalMethods().getParseContext(), key) && - !self.isValidAndSomeAliasIsNotNew(key, aliases)) { - unknown.push(key); - } - }); - if (checkPositionals && - (currentContext.commands.length > 0 || - commandKeys.length > 0 || - isDefaultCommand)) { - argv._.slice(currentContext.commands.length).forEach(key => { - if (!commandKeys.includes('' + key)) { - unknown.push('' + key); - } - }); - } - if (checkPositionals) { - const demandedCommands = yargs.getDemandedCommands(); - const maxNonOptDemanded = ((_a = demandedCommands._) === null || _a === void 0 ? void 0 : _a.max) || 0; - const expected = currentContext.commands.length + maxNonOptDemanded; - if (expected < argv._.length) { - argv._.slice(expected).forEach(key => { - key = String(key); - if (!currentContext.commands.includes(key) && - !unknown.includes(key)) { - unknown.push(key); - } - }); - } - } - if (unknown.length) { - usage.fail(__n('Unknown argument: %s', 'Unknown arguments: %s', unknown.length, unknown.map(s => (s.trim() ? s : `"${s}"`)).join(', '))); - } - }; - self.unknownCommands = function unknownCommands(argv) { - const commandKeys = yargs - .getInternalMethods() - .getCommandInstance() - .getCommands(); - const unknown = []; - const currentContext = yargs.getInternalMethods().getContext(); - if (currentContext.commands.length > 0 || commandKeys.length > 0) { - argv._.slice(currentContext.commands.length).forEach(key => { - if (!commandKeys.includes('' + key)) { - unknown.push('' + key); - } - }); - } - if (unknown.length > 0) { - usage.fail(__n('Unknown command: %s', 'Unknown commands: %s', unknown.length, unknown.join(', '))); - return true; - } - else { - return false; - } - }; - self.isValidAndSomeAliasIsNotNew = function isValidAndSomeAliasIsNotNew(key, aliases) { - if (!Object.prototype.hasOwnProperty.call(aliases, key)) { - return false; - } - const newAliases = yargs.parsed.newAliases; - return [key, ...aliases[key]].some(a => !Object.prototype.hasOwnProperty.call(newAliases, a) || !newAliases[key]); - }; - self.limitedChoices = function limitedChoices(argv) { - const options = yargs.getOptions(); - const invalid = {}; - if (!Object.keys(options.choices).length) - return; - Object.keys(argv).forEach(key => { - if (specialKeys.indexOf(key) === -1 && - Object.prototype.hasOwnProperty.call(options.choices, key)) { - [].concat(argv[key]).forEach(value => { - if (options.choices[key].indexOf(value) === -1 && - value !== undefined) { - invalid[key] = (invalid[key] || []).concat(value); - } - }); - } - }); - const invalidKeys = Object.keys(invalid); - if (!invalidKeys.length) - return; - let msg = __('Invalid values:'); - invalidKeys.forEach(key => { - msg += `\n ${__('Argument: %s, Given: %s, Choices: %s', key, usage.stringifiedValues(invalid[key]), usage.stringifiedValues(options.choices[key]))}`; - }); - usage.fail(msg); - }; - let implied = {}; - self.implies = function implies(key, value) { - argsert(' [array|number|string]', [key, value], arguments.length); - if (typeof key === 'object') { - Object.keys(key).forEach(k => { - self.implies(k, key[k]); - }); - } - else { - yargs.global(key); - if (!implied[key]) { - implied[key] = []; - } - if (Array.isArray(value)) { - value.forEach(i => self.implies(key, i)); - } - else { - assertNotStrictEqual(value, undefined, shim); - implied[key].push(value); - } - } - }; - self.getImplied = function getImplied() { - return implied; - }; - function keyExists(argv, val) { - const num = Number(val); - val = isNaN(num) ? val : num; - if (typeof val === 'number') { - val = argv._.length >= val; - } - else if (val.match(/^--no-.+/)) { - val = val.match(/^--no-(.+)/)[1]; - val = !Object.prototype.hasOwnProperty.call(argv, val); - } - else { - val = Object.prototype.hasOwnProperty.call(argv, val); - } - return val; - } - self.implications = function implications(argv) { - const implyFail = []; - Object.keys(implied).forEach(key => { - const origKey = key; - (implied[key] || []).forEach(value => { - let key = origKey; - const origValue = value; - key = keyExists(argv, key); - value = keyExists(argv, value); - if (key && !value) { - implyFail.push(` ${origKey} -> ${origValue}`); - } - }); - }); - if (implyFail.length) { - let msg = `${__('Implications failed:')}\n`; - implyFail.forEach(value => { - msg += value; - }); - usage.fail(msg); - } - }; - let conflicting = {}; - self.conflicts = function conflicts(key, value) { - argsert(' [array|string]', [key, value], arguments.length); - if (typeof key === 'object') { - Object.keys(key).forEach(k => { - self.conflicts(k, key[k]); - }); - } - else { - yargs.global(key); - if (!conflicting[key]) { - conflicting[key] = []; - } - if (Array.isArray(value)) { - value.forEach(i => self.conflicts(key, i)); - } - else { - conflicting[key].push(value); - } - } - }; - self.getConflicting = () => conflicting; - self.conflicting = function conflictingFn(argv) { - Object.keys(argv).forEach(key => { - if (conflicting[key]) { - conflicting[key].forEach(value => { - if (value && argv[key] !== undefined && argv[value] !== undefined) { - usage.fail(__('Arguments %s and %s are mutually exclusive', key, value)); - } - }); - } - }); - if (yargs.getInternalMethods().getParserConfiguration()['strip-dashed']) { - Object.keys(conflicting).forEach(key => { - conflicting[key].forEach(value => { - if (value && - argv[shim.Parser.camelCase(key)] !== undefined && - argv[shim.Parser.camelCase(value)] !== undefined) { - usage.fail(__('Arguments %s and %s are mutually exclusive', key, value)); - } - }); - }); - } - }; - self.recommendCommands = function recommendCommands(cmd, potentialCommands) { - const threshold = 3; - potentialCommands = potentialCommands.sort((a, b) => b.length - a.length); - let recommended = null; - let bestDistance = Infinity; - for (let i = 0, candidate; (candidate = potentialCommands[i]) !== undefined; i++) { - const d = distance(cmd, candidate); - if (d <= threshold && d < bestDistance) { - bestDistance = d; - recommended = candidate; - } - } - if (recommended) - usage.fail(__('Did you mean %s?', recommended)); - }; - self.reset = function reset(localLookup) { - implied = objFilter(implied, k => !localLookup[k]); - conflicting = objFilter(conflicting, k => !localLookup[k]); - return self; - }; - const frozens = []; - self.freeze = function freeze() { - frozens.push({ - implied, - conflicting, - }); - }; - self.unfreeze = function unfreeze() { - const frozen = frozens.pop(); - assertNotStrictEqual(frozen, undefined, shim); - ({ implied, conflicting } = frozen); - }; - return self; -} diff --git a/node_modules/yargs/build/lib/yargs-factory.js b/node_modules/yargs/build/lib/yargs-factory.js deleted file mode 100644 index c4b1d50..0000000 --- a/node_modules/yargs/build/lib/yargs-factory.js +++ /dev/null @@ -1,1512 +0,0 @@ -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _YargsInstance_command, _YargsInstance_cwd, _YargsInstance_context, _YargsInstance_completion, _YargsInstance_completionCommand, _YargsInstance_defaultShowHiddenOpt, _YargsInstance_exitError, _YargsInstance_detectLocale, _YargsInstance_emittedWarnings, _YargsInstance_exitProcess, _YargsInstance_frozens, _YargsInstance_globalMiddleware, _YargsInstance_groups, _YargsInstance_hasOutput, _YargsInstance_helpOpt, _YargsInstance_isGlobalContext, _YargsInstance_logger, _YargsInstance_output, _YargsInstance_options, _YargsInstance_parentRequire, _YargsInstance_parserConfig, _YargsInstance_parseFn, _YargsInstance_parseContext, _YargsInstance_pkgs, _YargsInstance_preservedGroups, _YargsInstance_processArgs, _YargsInstance_recommendCommands, _YargsInstance_shim, _YargsInstance_strict, _YargsInstance_strictCommands, _YargsInstance_strictOptions, _YargsInstance_usage, _YargsInstance_usageConfig, _YargsInstance_versionOpt, _YargsInstance_validation; -import { command as Command, } from './command.js'; -import { assertNotStrictEqual, assertSingleKey, objectKeys, } from './typings/common-types.js'; -import { YError } from './yerror.js'; -import { usage as Usage } from './usage.js'; -import { argsert } from './argsert.js'; -import { completion as Completion, } from './completion.js'; -import { validation as Validation, } from './validation.js'; -import { objFilter } from './utils/obj-filter.js'; -import { applyExtends } from './utils/apply-extends.js'; -import { applyMiddleware, GlobalMiddleware, } from './middleware.js'; -import { isPromise } from './utils/is-promise.js'; -import { maybeAsyncResult } from './utils/maybe-async-result.js'; -import setBlocking from './utils/set-blocking.js'; -export function YargsFactory(_shim) { - return (processArgs = [], cwd = _shim.process.cwd(), parentRequire) => { - const yargs = new YargsInstance(processArgs, cwd, parentRequire, _shim); - Object.defineProperty(yargs, 'argv', { - get: () => { - return yargs.parse(); - }, - enumerable: true, - }); - yargs.help(); - yargs.version(); - return yargs; - }; -} -const kCopyDoubleDash = Symbol('copyDoubleDash'); -const kCreateLogger = Symbol('copyDoubleDash'); -const kDeleteFromParserHintObject = Symbol('deleteFromParserHintObject'); -const kEmitWarning = Symbol('emitWarning'); -const kFreeze = Symbol('freeze'); -const kGetDollarZero = Symbol('getDollarZero'); -const kGetParserConfiguration = Symbol('getParserConfiguration'); -const kGetUsageConfiguration = Symbol('getUsageConfiguration'); -const kGuessLocale = Symbol('guessLocale'); -const kGuessVersion = Symbol('guessVersion'); -const kParsePositionalNumbers = Symbol('parsePositionalNumbers'); -const kPkgUp = Symbol('pkgUp'); -const kPopulateParserHintArray = Symbol('populateParserHintArray'); -const kPopulateParserHintSingleValueDictionary = Symbol('populateParserHintSingleValueDictionary'); -const kPopulateParserHintArrayDictionary = Symbol('populateParserHintArrayDictionary'); -const kPopulateParserHintDictionary = Symbol('populateParserHintDictionary'); -const kSanitizeKey = Symbol('sanitizeKey'); -const kSetKey = Symbol('setKey'); -const kUnfreeze = Symbol('unfreeze'); -const kValidateAsync = Symbol('validateAsync'); -const kGetCommandInstance = Symbol('getCommandInstance'); -const kGetContext = Symbol('getContext'); -const kGetHasOutput = Symbol('getHasOutput'); -const kGetLoggerInstance = Symbol('getLoggerInstance'); -const kGetParseContext = Symbol('getParseContext'); -const kGetUsageInstance = Symbol('getUsageInstance'); -const kGetValidationInstance = Symbol('getValidationInstance'); -const kHasParseCallback = Symbol('hasParseCallback'); -const kIsGlobalContext = Symbol('isGlobalContext'); -const kPostProcess = Symbol('postProcess'); -const kRebase = Symbol('rebase'); -const kReset = Symbol('reset'); -const kRunYargsParserAndExecuteCommands = Symbol('runYargsParserAndExecuteCommands'); -const kRunValidation = Symbol('runValidation'); -const kSetHasOutput = Symbol('setHasOutput'); -const kTrackManuallySetKeys = Symbol('kTrackManuallySetKeys'); -export class YargsInstance { - constructor(processArgs = [], cwd, parentRequire, shim) { - this.customScriptName = false; - this.parsed = false; - _YargsInstance_command.set(this, void 0); - _YargsInstance_cwd.set(this, void 0); - _YargsInstance_context.set(this, { commands: [], fullCommands: [] }); - _YargsInstance_completion.set(this, null); - _YargsInstance_completionCommand.set(this, null); - _YargsInstance_defaultShowHiddenOpt.set(this, 'show-hidden'); - _YargsInstance_exitError.set(this, null); - _YargsInstance_detectLocale.set(this, true); - _YargsInstance_emittedWarnings.set(this, {}); - _YargsInstance_exitProcess.set(this, true); - _YargsInstance_frozens.set(this, []); - _YargsInstance_globalMiddleware.set(this, void 0); - _YargsInstance_groups.set(this, {}); - _YargsInstance_hasOutput.set(this, false); - _YargsInstance_helpOpt.set(this, null); - _YargsInstance_isGlobalContext.set(this, true); - _YargsInstance_logger.set(this, void 0); - _YargsInstance_output.set(this, ''); - _YargsInstance_options.set(this, void 0); - _YargsInstance_parentRequire.set(this, void 0); - _YargsInstance_parserConfig.set(this, {}); - _YargsInstance_parseFn.set(this, null); - _YargsInstance_parseContext.set(this, null); - _YargsInstance_pkgs.set(this, {}); - _YargsInstance_preservedGroups.set(this, {}); - _YargsInstance_processArgs.set(this, void 0); - _YargsInstance_recommendCommands.set(this, false); - _YargsInstance_shim.set(this, void 0); - _YargsInstance_strict.set(this, false); - _YargsInstance_strictCommands.set(this, false); - _YargsInstance_strictOptions.set(this, false); - _YargsInstance_usage.set(this, void 0); - _YargsInstance_usageConfig.set(this, {}); - _YargsInstance_versionOpt.set(this, null); - _YargsInstance_validation.set(this, void 0); - __classPrivateFieldSet(this, _YargsInstance_shim, shim, "f"); - __classPrivateFieldSet(this, _YargsInstance_processArgs, processArgs, "f"); - __classPrivateFieldSet(this, _YargsInstance_cwd, cwd, "f"); - __classPrivateFieldSet(this, _YargsInstance_parentRequire, parentRequire, "f"); - __classPrivateFieldSet(this, _YargsInstance_globalMiddleware, new GlobalMiddleware(this), "f"); - this.$0 = this[kGetDollarZero](); - this[kReset](); - __classPrivateFieldSet(this, _YargsInstance_command, __classPrivateFieldGet(this, _YargsInstance_command, "f"), "f"); - __classPrivateFieldSet(this, _YargsInstance_usage, __classPrivateFieldGet(this, _YargsInstance_usage, "f"), "f"); - __classPrivateFieldSet(this, _YargsInstance_validation, __classPrivateFieldGet(this, _YargsInstance_validation, "f"), "f"); - __classPrivateFieldSet(this, _YargsInstance_options, __classPrivateFieldGet(this, _YargsInstance_options, "f"), "f"); - __classPrivateFieldGet(this, _YargsInstance_options, "f").showHiddenOpt = __classPrivateFieldGet(this, _YargsInstance_defaultShowHiddenOpt, "f"); - __classPrivateFieldSet(this, _YargsInstance_logger, this[kCreateLogger](), "f"); - } - addHelpOpt(opt, msg) { - const defaultHelpOpt = 'help'; - argsert('[string|boolean] [string]', [opt, msg], arguments.length); - if (__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")) { - this[kDeleteFromParserHintObject](__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")); - __classPrivateFieldSet(this, _YargsInstance_helpOpt, null, "f"); - } - if (opt === false && msg === undefined) - return this; - __classPrivateFieldSet(this, _YargsInstance_helpOpt, typeof opt === 'string' ? opt : defaultHelpOpt, "f"); - this.boolean(__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")); - this.describe(__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f"), msg || __classPrivateFieldGet(this, _YargsInstance_usage, "f").deferY18nLookup('Show help')); - return this; - } - help(opt, msg) { - return this.addHelpOpt(opt, msg); - } - addShowHiddenOpt(opt, msg) { - argsert('[string|boolean] [string]', [opt, msg], arguments.length); - if (opt === false && msg === undefined) - return this; - const showHiddenOpt = typeof opt === 'string' ? opt : __classPrivateFieldGet(this, _YargsInstance_defaultShowHiddenOpt, "f"); - this.boolean(showHiddenOpt); - this.describe(showHiddenOpt, msg || __classPrivateFieldGet(this, _YargsInstance_usage, "f").deferY18nLookup('Show hidden options')); - __classPrivateFieldGet(this, _YargsInstance_options, "f").showHiddenOpt = showHiddenOpt; - return this; - } - showHidden(opt, msg) { - return this.addShowHiddenOpt(opt, msg); - } - alias(key, value) { - argsert(' [string|array]', [key, value], arguments.length); - this[kPopulateParserHintArrayDictionary](this.alias.bind(this), 'alias', key, value); - return this; - } - array(keys) { - argsert('', [keys], arguments.length); - this[kPopulateParserHintArray]('array', keys); - this[kTrackManuallySetKeys](keys); - return this; - } - boolean(keys) { - argsert('', [keys], arguments.length); - this[kPopulateParserHintArray]('boolean', keys); - this[kTrackManuallySetKeys](keys); - return this; - } - check(f, global) { - argsert(' [boolean]', [f, global], arguments.length); - this.middleware((argv, _yargs) => { - return maybeAsyncResult(() => { - return f(argv, _yargs.getOptions()); - }, (result) => { - if (!result) { - __classPrivateFieldGet(this, _YargsInstance_usage, "f").fail(__classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.__('Argument check failed: %s', f.toString())); - } - else if (typeof result === 'string' || result instanceof Error) { - __classPrivateFieldGet(this, _YargsInstance_usage, "f").fail(result.toString(), result); - } - return argv; - }, (err) => { - __classPrivateFieldGet(this, _YargsInstance_usage, "f").fail(err.message ? err.message : err.toString(), err); - return argv; - }); - }, false, global); - return this; - } - choices(key, value) { - argsert(' [string|array]', [key, value], arguments.length); - this[kPopulateParserHintArrayDictionary](this.choices.bind(this), 'choices', key, value); - return this; - } - coerce(keys, value) { - argsert(' [function]', [keys, value], arguments.length); - if (Array.isArray(keys)) { - if (!value) { - throw new YError('coerce callback must be provided'); - } - for (const key of keys) { - this.coerce(key, value); - } - return this; - } - else if (typeof keys === 'object') { - for (const key of Object.keys(keys)) { - this.coerce(key, keys[key]); - } - return this; - } - if (!value) { - throw new YError('coerce callback must be provided'); - } - __classPrivateFieldGet(this, _YargsInstance_options, "f").key[keys] = true; - __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").addCoerceMiddleware((argv, yargs) => { - let aliases; - const shouldCoerce = Object.prototype.hasOwnProperty.call(argv, keys); - if (!shouldCoerce) { - return argv; - } - return maybeAsyncResult(() => { - aliases = yargs.getAliases(); - return value(argv[keys]); - }, (result) => { - argv[keys] = result; - const stripAliased = yargs - .getInternalMethods() - .getParserConfiguration()['strip-aliased']; - if (aliases[keys] && stripAliased !== true) { - for (const alias of aliases[keys]) { - argv[alias] = result; - } - } - return argv; - }, (err) => { - throw new YError(err.message); - }); - }, keys); - return this; - } - conflicts(key1, key2) { - argsert(' [string|array]', [key1, key2], arguments.length); - __classPrivateFieldGet(this, _YargsInstance_validation, "f").conflicts(key1, key2); - return this; - } - config(key = 'config', msg, parseFn) { - argsert('[object|string] [string|function] [function]', [key, msg, parseFn], arguments.length); - if (typeof key === 'object' && !Array.isArray(key)) { - key = applyExtends(key, __classPrivateFieldGet(this, _YargsInstance_cwd, "f"), this[kGetParserConfiguration]()['deep-merge-config'] || false, __classPrivateFieldGet(this, _YargsInstance_shim, "f")); - __classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects = (__classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects || []).concat(key); - return this; - } - if (typeof msg === 'function') { - parseFn = msg; - msg = undefined; - } - this.describe(key, msg || __classPrivateFieldGet(this, _YargsInstance_usage, "f").deferY18nLookup('Path to JSON config file')); - (Array.isArray(key) ? key : [key]).forEach(k => { - __classPrivateFieldGet(this, _YargsInstance_options, "f").config[k] = parseFn || true; - }); - return this; - } - completion(cmd, desc, fn) { - argsert('[string] [string|boolean|function] [function]', [cmd, desc, fn], arguments.length); - if (typeof desc === 'function') { - fn = desc; - desc = undefined; - } - __classPrivateFieldSet(this, _YargsInstance_completionCommand, cmd || __classPrivateFieldGet(this, _YargsInstance_completionCommand, "f") || 'completion', "f"); - if (!desc && desc !== false) { - desc = 'generate completion script'; - } - this.command(__classPrivateFieldGet(this, _YargsInstance_completionCommand, "f"), desc); - if (fn) - __classPrivateFieldGet(this, _YargsInstance_completion, "f").registerFunction(fn); - return this; - } - command(cmd, description, builder, handler, middlewares, deprecated) { - argsert(' [string|boolean] [function|object] [function] [array] [boolean|string]', [cmd, description, builder, handler, middlewares, deprecated], arguments.length); - __classPrivateFieldGet(this, _YargsInstance_command, "f").addHandler(cmd, description, builder, handler, middlewares, deprecated); - return this; - } - commands(cmd, description, builder, handler, middlewares, deprecated) { - return this.command(cmd, description, builder, handler, middlewares, deprecated); - } - commandDir(dir, opts) { - argsert(' [object]', [dir, opts], arguments.length); - const req = __classPrivateFieldGet(this, _YargsInstance_parentRequire, "f") || __classPrivateFieldGet(this, _YargsInstance_shim, "f").require; - __classPrivateFieldGet(this, _YargsInstance_command, "f").addDirectory(dir, req, __classPrivateFieldGet(this, _YargsInstance_shim, "f").getCallerFile(), opts); - return this; - } - count(keys) { - argsert('', [keys], arguments.length); - this[kPopulateParserHintArray]('count', keys); - this[kTrackManuallySetKeys](keys); - return this; - } - default(key, value, defaultDescription) { - argsert(' [*] [string]', [key, value, defaultDescription], arguments.length); - if (defaultDescription) { - assertSingleKey(key, __classPrivateFieldGet(this, _YargsInstance_shim, "f")); - __classPrivateFieldGet(this, _YargsInstance_options, "f").defaultDescription[key] = defaultDescription; - } - if (typeof value === 'function') { - assertSingleKey(key, __classPrivateFieldGet(this, _YargsInstance_shim, "f")); - if (!__classPrivateFieldGet(this, _YargsInstance_options, "f").defaultDescription[key]) - __classPrivateFieldGet(this, _YargsInstance_options, "f").defaultDescription[key] = - __classPrivateFieldGet(this, _YargsInstance_usage, "f").functionDescription(value); - value = value.call(); - } - this[kPopulateParserHintSingleValueDictionary](this.default.bind(this), 'default', key, value); - return this; - } - defaults(key, value, defaultDescription) { - return this.default(key, value, defaultDescription); - } - demandCommand(min = 1, max, minMsg, maxMsg) { - argsert('[number] [number|string] [string|null|undefined] [string|null|undefined]', [min, max, minMsg, maxMsg], arguments.length); - if (typeof max !== 'number') { - minMsg = max; - max = Infinity; - } - this.global('_', false); - __classPrivateFieldGet(this, _YargsInstance_options, "f").demandedCommands._ = { - min, - max, - minMsg, - maxMsg, - }; - return this; - } - demand(keys, max, msg) { - if (Array.isArray(max)) { - max.forEach(key => { - assertNotStrictEqual(msg, true, __classPrivateFieldGet(this, _YargsInstance_shim, "f")); - this.demandOption(key, msg); - }); - max = Infinity; - } - else if (typeof max !== 'number') { - msg = max; - max = Infinity; - } - if (typeof keys === 'number') { - assertNotStrictEqual(msg, true, __classPrivateFieldGet(this, _YargsInstance_shim, "f")); - this.demandCommand(keys, max, msg, msg); - } - else if (Array.isArray(keys)) { - keys.forEach(key => { - assertNotStrictEqual(msg, true, __classPrivateFieldGet(this, _YargsInstance_shim, "f")); - this.demandOption(key, msg); - }); - } - else { - if (typeof msg === 'string') { - this.demandOption(keys, msg); - } - else if (msg === true || typeof msg === 'undefined') { - this.demandOption(keys); - } - } - return this; - } - demandOption(keys, msg) { - argsert(' [string]', [keys, msg], arguments.length); - this[kPopulateParserHintSingleValueDictionary](this.demandOption.bind(this), 'demandedOptions', keys, msg); - return this; - } - deprecateOption(option, message) { - argsert(' [string|boolean]', [option, message], arguments.length); - __classPrivateFieldGet(this, _YargsInstance_options, "f").deprecatedOptions[option] = message; - return this; - } - describe(keys, description) { - argsert(' [string]', [keys, description], arguments.length); - this[kSetKey](keys, true); - __classPrivateFieldGet(this, _YargsInstance_usage, "f").describe(keys, description); - return this; - } - detectLocale(detect) { - argsert('', [detect], arguments.length); - __classPrivateFieldSet(this, _YargsInstance_detectLocale, detect, "f"); - return this; - } - env(prefix) { - argsert('[string|boolean]', [prefix], arguments.length); - if (prefix === false) - delete __classPrivateFieldGet(this, _YargsInstance_options, "f").envPrefix; - else - __classPrivateFieldGet(this, _YargsInstance_options, "f").envPrefix = prefix || ''; - return this; - } - epilogue(msg) { - argsert('', [msg], arguments.length); - __classPrivateFieldGet(this, _YargsInstance_usage, "f").epilog(msg); - return this; - } - epilog(msg) { - return this.epilogue(msg); - } - example(cmd, description) { - argsert(' [string]', [cmd, description], arguments.length); - if (Array.isArray(cmd)) { - cmd.forEach(exampleParams => this.example(...exampleParams)); - } - else { - __classPrivateFieldGet(this, _YargsInstance_usage, "f").example(cmd, description); - } - return this; - } - exit(code, err) { - __classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f"); - __classPrivateFieldSet(this, _YargsInstance_exitError, err, "f"); - if (__classPrivateFieldGet(this, _YargsInstance_exitProcess, "f")) - __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.exit(code); - } - exitProcess(enabled = true) { - argsert('[boolean]', [enabled], arguments.length); - __classPrivateFieldSet(this, _YargsInstance_exitProcess, enabled, "f"); - return this; - } - fail(f) { - argsert('', [f], arguments.length); - if (typeof f === 'boolean' && f !== false) { - throw new YError("Invalid first argument. Expected function or boolean 'false'"); - } - __classPrivateFieldGet(this, _YargsInstance_usage, "f").failFn(f); - return this; - } - getAliases() { - return this.parsed ? this.parsed.aliases : {}; - } - async getCompletion(args, done) { - argsert(' [function]', [args, done], arguments.length); - if (!done) { - return new Promise((resolve, reject) => { - __classPrivateFieldGet(this, _YargsInstance_completion, "f").getCompletion(args, (err, completions) => { - if (err) - reject(err); - else - resolve(completions); - }); - }); - } - else { - return __classPrivateFieldGet(this, _YargsInstance_completion, "f").getCompletion(args, done); - } - } - getDemandedOptions() { - argsert([], 0); - return __classPrivateFieldGet(this, _YargsInstance_options, "f").demandedOptions; - } - getDemandedCommands() { - argsert([], 0); - return __classPrivateFieldGet(this, _YargsInstance_options, "f").demandedCommands; - } - getDeprecatedOptions() { - argsert([], 0); - return __classPrivateFieldGet(this, _YargsInstance_options, "f").deprecatedOptions; - } - getDetectLocale() { - return __classPrivateFieldGet(this, _YargsInstance_detectLocale, "f"); - } - getExitProcess() { - return __classPrivateFieldGet(this, _YargsInstance_exitProcess, "f"); - } - getGroups() { - return Object.assign({}, __classPrivateFieldGet(this, _YargsInstance_groups, "f"), __classPrivateFieldGet(this, _YargsInstance_preservedGroups, "f")); - } - getHelp() { - __classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f"); - if (!__classPrivateFieldGet(this, _YargsInstance_usage, "f").hasCachedHelpMessage()) { - if (!this.parsed) { - const parse = this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet(this, _YargsInstance_processArgs, "f"), undefined, undefined, 0, true); - if (isPromise(parse)) { - return parse.then(() => { - return __classPrivateFieldGet(this, _YargsInstance_usage, "f").help(); - }); - } - } - const builderResponse = __classPrivateFieldGet(this, _YargsInstance_command, "f").runDefaultBuilderOn(this); - if (isPromise(builderResponse)) { - return builderResponse.then(() => { - return __classPrivateFieldGet(this, _YargsInstance_usage, "f").help(); - }); - } - } - return Promise.resolve(__classPrivateFieldGet(this, _YargsInstance_usage, "f").help()); - } - getOptions() { - return __classPrivateFieldGet(this, _YargsInstance_options, "f"); - } - getStrict() { - return __classPrivateFieldGet(this, _YargsInstance_strict, "f"); - } - getStrictCommands() { - return __classPrivateFieldGet(this, _YargsInstance_strictCommands, "f"); - } - getStrictOptions() { - return __classPrivateFieldGet(this, _YargsInstance_strictOptions, "f"); - } - global(globals, global) { - argsert(' [boolean]', [globals, global], arguments.length); - globals = [].concat(globals); - if (global !== false) { - __classPrivateFieldGet(this, _YargsInstance_options, "f").local = __classPrivateFieldGet(this, _YargsInstance_options, "f").local.filter(l => globals.indexOf(l) === -1); - } - else { - globals.forEach(g => { - if (!__classPrivateFieldGet(this, _YargsInstance_options, "f").local.includes(g)) - __classPrivateFieldGet(this, _YargsInstance_options, "f").local.push(g); - }); - } - return this; - } - group(opts, groupName) { - argsert(' ', [opts, groupName], arguments.length); - const existing = __classPrivateFieldGet(this, _YargsInstance_preservedGroups, "f")[groupName] || __classPrivateFieldGet(this, _YargsInstance_groups, "f")[groupName]; - if (__classPrivateFieldGet(this, _YargsInstance_preservedGroups, "f")[groupName]) { - delete __classPrivateFieldGet(this, _YargsInstance_preservedGroups, "f")[groupName]; - } - const seen = {}; - __classPrivateFieldGet(this, _YargsInstance_groups, "f")[groupName] = (existing || []).concat(opts).filter(key => { - if (seen[key]) - return false; - return (seen[key] = true); - }); - return this; - } - hide(key) { - argsert('', [key], arguments.length); - __classPrivateFieldGet(this, _YargsInstance_options, "f").hiddenOptions.push(key); - return this; - } - implies(key, value) { - argsert(' [number|string|array]', [key, value], arguments.length); - __classPrivateFieldGet(this, _YargsInstance_validation, "f").implies(key, value); - return this; - } - locale(locale) { - argsert('[string]', [locale], arguments.length); - if (locale === undefined) { - this[kGuessLocale](); - return __classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.getLocale(); - } - __classPrivateFieldSet(this, _YargsInstance_detectLocale, false, "f"); - __classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.setLocale(locale); - return this; - } - middleware(callback, applyBeforeValidation, global) { - return __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").addMiddleware(callback, !!applyBeforeValidation, global); - } - nargs(key, value) { - argsert(' [number]', [key, value], arguments.length); - this[kPopulateParserHintSingleValueDictionary](this.nargs.bind(this), 'narg', key, value); - return this; - } - normalize(keys) { - argsert('', [keys], arguments.length); - this[kPopulateParserHintArray]('normalize', keys); - return this; - } - number(keys) { - argsert('', [keys], arguments.length); - this[kPopulateParserHintArray]('number', keys); - this[kTrackManuallySetKeys](keys); - return this; - } - option(key, opt) { - argsert(' [object]', [key, opt], arguments.length); - if (typeof key === 'object') { - Object.keys(key).forEach(k => { - this.options(k, key[k]); - }); - } - else { - if (typeof opt !== 'object') { - opt = {}; - } - this[kTrackManuallySetKeys](key); - if (__classPrivateFieldGet(this, _YargsInstance_versionOpt, "f") && (key === 'version' || (opt === null || opt === void 0 ? void 0 : opt.alias) === 'version')) { - this[kEmitWarning]([ - '"version" is a reserved word.', - 'Please do one of the following:', - '- Disable version with `yargs.version(false)` if using "version" as an option', - '- Use the built-in `yargs.version` method instead (if applicable)', - '- Use a different option key', - 'https://yargs.js.org/docs/#api-reference-version', - ].join('\n'), undefined, 'versionWarning'); - } - __classPrivateFieldGet(this, _YargsInstance_options, "f").key[key] = true; - if (opt.alias) - this.alias(key, opt.alias); - const deprecate = opt.deprecate || opt.deprecated; - if (deprecate) { - this.deprecateOption(key, deprecate); - } - const demand = opt.demand || opt.required || opt.require; - if (demand) { - this.demand(key, demand); - } - if (opt.demandOption) { - this.demandOption(key, typeof opt.demandOption === 'string' ? opt.demandOption : undefined); - } - if (opt.conflicts) { - this.conflicts(key, opt.conflicts); - } - if ('default' in opt) { - this.default(key, opt.default); - } - if (opt.implies !== undefined) { - this.implies(key, opt.implies); - } - if (opt.nargs !== undefined) { - this.nargs(key, opt.nargs); - } - if (opt.config) { - this.config(key, opt.configParser); - } - if (opt.normalize) { - this.normalize(key); - } - if (opt.choices) { - this.choices(key, opt.choices); - } - if (opt.coerce) { - this.coerce(key, opt.coerce); - } - if (opt.group) { - this.group(key, opt.group); - } - if (opt.boolean || opt.type === 'boolean') { - this.boolean(key); - if (opt.alias) - this.boolean(opt.alias); - } - if (opt.array || opt.type === 'array') { - this.array(key); - if (opt.alias) - this.array(opt.alias); - } - if (opt.number || opt.type === 'number') { - this.number(key); - if (opt.alias) - this.number(opt.alias); - } - if (opt.string || opt.type === 'string') { - this.string(key); - if (opt.alias) - this.string(opt.alias); - } - if (opt.count || opt.type === 'count') { - this.count(key); - } - if (typeof opt.global === 'boolean') { - this.global(key, opt.global); - } - if (opt.defaultDescription) { - __classPrivateFieldGet(this, _YargsInstance_options, "f").defaultDescription[key] = opt.defaultDescription; - } - if (opt.skipValidation) { - this.skipValidation(key); - } - const desc = opt.describe || opt.description || opt.desc; - const descriptions = __classPrivateFieldGet(this, _YargsInstance_usage, "f").getDescriptions(); - if (!Object.prototype.hasOwnProperty.call(descriptions, key) || - typeof desc === 'string') { - this.describe(key, desc); - } - if (opt.hidden) { - this.hide(key); - } - if (opt.requiresArg) { - this.requiresArg(key); - } - } - return this; - } - options(key, opt) { - return this.option(key, opt); - } - parse(args, shortCircuit, _parseFn) { - argsert('[string|array] [function|boolean|object] [function]', [args, shortCircuit, _parseFn], arguments.length); - this[kFreeze](); - if (typeof args === 'undefined') { - args = __classPrivateFieldGet(this, _YargsInstance_processArgs, "f"); - } - if (typeof shortCircuit === 'object') { - __classPrivateFieldSet(this, _YargsInstance_parseContext, shortCircuit, "f"); - shortCircuit = _parseFn; - } - if (typeof shortCircuit === 'function') { - __classPrivateFieldSet(this, _YargsInstance_parseFn, shortCircuit, "f"); - shortCircuit = false; - } - if (!shortCircuit) - __classPrivateFieldSet(this, _YargsInstance_processArgs, args, "f"); - if (__classPrivateFieldGet(this, _YargsInstance_parseFn, "f")) - __classPrivateFieldSet(this, _YargsInstance_exitProcess, false, "f"); - const parsed = this[kRunYargsParserAndExecuteCommands](args, !!shortCircuit); - const tmpParsed = this.parsed; - __classPrivateFieldGet(this, _YargsInstance_completion, "f").setParsed(this.parsed); - if (isPromise(parsed)) { - return parsed - .then(argv => { - if (__classPrivateFieldGet(this, _YargsInstance_parseFn, "f")) - __classPrivateFieldGet(this, _YargsInstance_parseFn, "f").call(this, __classPrivateFieldGet(this, _YargsInstance_exitError, "f"), argv, __classPrivateFieldGet(this, _YargsInstance_output, "f")); - return argv; - }) - .catch(err => { - if (__classPrivateFieldGet(this, _YargsInstance_parseFn, "f")) { - __classPrivateFieldGet(this, _YargsInstance_parseFn, "f")(err, this.parsed.argv, __classPrivateFieldGet(this, _YargsInstance_output, "f")); - } - throw err; - }) - .finally(() => { - this[kUnfreeze](); - this.parsed = tmpParsed; - }); - } - else { - if (__classPrivateFieldGet(this, _YargsInstance_parseFn, "f")) - __classPrivateFieldGet(this, _YargsInstance_parseFn, "f").call(this, __classPrivateFieldGet(this, _YargsInstance_exitError, "f"), parsed, __classPrivateFieldGet(this, _YargsInstance_output, "f")); - this[kUnfreeze](); - this.parsed = tmpParsed; - } - return parsed; - } - parseAsync(args, shortCircuit, _parseFn) { - const maybePromise = this.parse(args, shortCircuit, _parseFn); - return !isPromise(maybePromise) - ? Promise.resolve(maybePromise) - : maybePromise; - } - parseSync(args, shortCircuit, _parseFn) { - const maybePromise = this.parse(args, shortCircuit, _parseFn); - if (isPromise(maybePromise)) { - throw new YError('.parseSync() must not be used with asynchronous builders, handlers, or middleware'); - } - return maybePromise; - } - parserConfiguration(config) { - argsert('', [config], arguments.length); - __classPrivateFieldSet(this, _YargsInstance_parserConfig, config, "f"); - return this; - } - pkgConf(key, rootPath) { - argsert(' [string]', [key, rootPath], arguments.length); - let conf = null; - const obj = this[kPkgUp](rootPath || __classPrivateFieldGet(this, _YargsInstance_cwd, "f")); - if (obj[key] && typeof obj[key] === 'object') { - conf = applyExtends(obj[key], rootPath || __classPrivateFieldGet(this, _YargsInstance_cwd, "f"), this[kGetParserConfiguration]()['deep-merge-config'] || false, __classPrivateFieldGet(this, _YargsInstance_shim, "f")); - __classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects = (__classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects || []).concat(conf); - } - return this; - } - positional(key, opts) { - argsert(' ', [key, opts], arguments.length); - const supportedOpts = [ - 'default', - 'defaultDescription', - 'implies', - 'normalize', - 'choices', - 'conflicts', - 'coerce', - 'type', - 'describe', - 'desc', - 'description', - 'alias', - ]; - opts = objFilter(opts, (k, v) => { - if (k === 'type' && !['string', 'number', 'boolean'].includes(v)) - return false; - return supportedOpts.includes(k); - }); - const fullCommand = __classPrivateFieldGet(this, _YargsInstance_context, "f").fullCommands[__classPrivateFieldGet(this, _YargsInstance_context, "f").fullCommands.length - 1]; - const parseOptions = fullCommand - ? __classPrivateFieldGet(this, _YargsInstance_command, "f").cmdToParseOptions(fullCommand) - : { - array: [], - alias: {}, - default: {}, - demand: {}, - }; - objectKeys(parseOptions).forEach(pk => { - const parseOption = parseOptions[pk]; - if (Array.isArray(parseOption)) { - if (parseOption.indexOf(key) !== -1) - opts[pk] = true; - } - else { - if (parseOption[key] && !(pk in opts)) - opts[pk] = parseOption[key]; - } - }); - this.group(key, __classPrivateFieldGet(this, _YargsInstance_usage, "f").getPositionalGroupName()); - return this.option(key, opts); - } - recommendCommands(recommend = true) { - argsert('[boolean]', [recommend], arguments.length); - __classPrivateFieldSet(this, _YargsInstance_recommendCommands, recommend, "f"); - return this; - } - required(keys, max, msg) { - return this.demand(keys, max, msg); - } - require(keys, max, msg) { - return this.demand(keys, max, msg); - } - requiresArg(keys) { - argsert(' [number]', [keys], arguments.length); - if (typeof keys === 'string' && __classPrivateFieldGet(this, _YargsInstance_options, "f").narg[keys]) { - return this; - } - else { - this[kPopulateParserHintSingleValueDictionary](this.requiresArg.bind(this), 'narg', keys, NaN); - } - return this; - } - showCompletionScript($0, cmd) { - argsert('[string] [string]', [$0, cmd], arguments.length); - $0 = $0 || this.$0; - __classPrivateFieldGet(this, _YargsInstance_logger, "f").log(__classPrivateFieldGet(this, _YargsInstance_completion, "f").generateCompletionScript($0, cmd || __classPrivateFieldGet(this, _YargsInstance_completionCommand, "f") || 'completion')); - return this; - } - showHelp(level) { - argsert('[string|function]', [level], arguments.length); - __classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f"); - if (!__classPrivateFieldGet(this, _YargsInstance_usage, "f").hasCachedHelpMessage()) { - if (!this.parsed) { - const parse = this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet(this, _YargsInstance_processArgs, "f"), undefined, undefined, 0, true); - if (isPromise(parse)) { - parse.then(() => { - __classPrivateFieldGet(this, _YargsInstance_usage, "f").showHelp(level); - }); - return this; - } - } - const builderResponse = __classPrivateFieldGet(this, _YargsInstance_command, "f").runDefaultBuilderOn(this); - if (isPromise(builderResponse)) { - builderResponse.then(() => { - __classPrivateFieldGet(this, _YargsInstance_usage, "f").showHelp(level); - }); - return this; - } - } - __classPrivateFieldGet(this, _YargsInstance_usage, "f").showHelp(level); - return this; - } - scriptName(scriptName) { - this.customScriptName = true; - this.$0 = scriptName; - return this; - } - showHelpOnFail(enabled, message) { - argsert('[boolean|string] [string]', [enabled, message], arguments.length); - __classPrivateFieldGet(this, _YargsInstance_usage, "f").showHelpOnFail(enabled, message); - return this; - } - showVersion(level) { - argsert('[string|function]', [level], arguments.length); - __classPrivateFieldGet(this, _YargsInstance_usage, "f").showVersion(level); - return this; - } - skipValidation(keys) { - argsert('', [keys], arguments.length); - this[kPopulateParserHintArray]('skipValidation', keys); - return this; - } - strict(enabled) { - argsert('[boolean]', [enabled], arguments.length); - __classPrivateFieldSet(this, _YargsInstance_strict, enabled !== false, "f"); - return this; - } - strictCommands(enabled) { - argsert('[boolean]', [enabled], arguments.length); - __classPrivateFieldSet(this, _YargsInstance_strictCommands, enabled !== false, "f"); - return this; - } - strictOptions(enabled) { - argsert('[boolean]', [enabled], arguments.length); - __classPrivateFieldSet(this, _YargsInstance_strictOptions, enabled !== false, "f"); - return this; - } - string(keys) { - argsert('', [keys], arguments.length); - this[kPopulateParserHintArray]('string', keys); - this[kTrackManuallySetKeys](keys); - return this; - } - terminalWidth() { - argsert([], 0); - return __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.stdColumns; - } - updateLocale(obj) { - return this.updateStrings(obj); - } - updateStrings(obj) { - argsert('', [obj], arguments.length); - __classPrivateFieldSet(this, _YargsInstance_detectLocale, false, "f"); - __classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.updateLocale(obj); - return this; - } - usage(msg, description, builder, handler) { - argsert(' [string|boolean] [function|object] [function]', [msg, description, builder, handler], arguments.length); - if (description !== undefined) { - assertNotStrictEqual(msg, null, __classPrivateFieldGet(this, _YargsInstance_shim, "f")); - if ((msg || '').match(/^\$0( |$)/)) { - return this.command(msg, description, builder, handler); - } - else { - throw new YError('.usage() description must start with $0 if being used as alias for .command()'); - } - } - else { - __classPrivateFieldGet(this, _YargsInstance_usage, "f").usage(msg); - return this; - } - } - usageConfiguration(config) { - argsert('', [config], arguments.length); - __classPrivateFieldSet(this, _YargsInstance_usageConfig, config, "f"); - return this; - } - version(opt, msg, ver) { - const defaultVersionOpt = 'version'; - argsert('[boolean|string] [string] [string]', [opt, msg, ver], arguments.length); - if (__classPrivateFieldGet(this, _YargsInstance_versionOpt, "f")) { - this[kDeleteFromParserHintObject](__classPrivateFieldGet(this, _YargsInstance_versionOpt, "f")); - __classPrivateFieldGet(this, _YargsInstance_usage, "f").version(undefined); - __classPrivateFieldSet(this, _YargsInstance_versionOpt, null, "f"); - } - if (arguments.length === 0) { - ver = this[kGuessVersion](); - opt = defaultVersionOpt; - } - else if (arguments.length === 1) { - if (opt === false) { - return this; - } - ver = opt; - opt = defaultVersionOpt; - } - else if (arguments.length === 2) { - ver = msg; - msg = undefined; - } - __classPrivateFieldSet(this, _YargsInstance_versionOpt, typeof opt === 'string' ? opt : defaultVersionOpt, "f"); - msg = msg || __classPrivateFieldGet(this, _YargsInstance_usage, "f").deferY18nLookup('Show version number'); - __classPrivateFieldGet(this, _YargsInstance_usage, "f").version(ver || undefined); - this.boolean(__classPrivateFieldGet(this, _YargsInstance_versionOpt, "f")); - this.describe(__classPrivateFieldGet(this, _YargsInstance_versionOpt, "f"), msg); - return this; - } - wrap(cols) { - argsert('', [cols], arguments.length); - __classPrivateFieldGet(this, _YargsInstance_usage, "f").wrap(cols); - return this; - } - [(_YargsInstance_command = new WeakMap(), _YargsInstance_cwd = new WeakMap(), _YargsInstance_context = new WeakMap(), _YargsInstance_completion = new WeakMap(), _YargsInstance_completionCommand = new WeakMap(), _YargsInstance_defaultShowHiddenOpt = new WeakMap(), _YargsInstance_exitError = new WeakMap(), _YargsInstance_detectLocale = new WeakMap(), _YargsInstance_emittedWarnings = new WeakMap(), _YargsInstance_exitProcess = new WeakMap(), _YargsInstance_frozens = new WeakMap(), _YargsInstance_globalMiddleware = new WeakMap(), _YargsInstance_groups = new WeakMap(), _YargsInstance_hasOutput = new WeakMap(), _YargsInstance_helpOpt = new WeakMap(), _YargsInstance_isGlobalContext = new WeakMap(), _YargsInstance_logger = new WeakMap(), _YargsInstance_output = new WeakMap(), _YargsInstance_options = new WeakMap(), _YargsInstance_parentRequire = new WeakMap(), _YargsInstance_parserConfig = new WeakMap(), _YargsInstance_parseFn = new WeakMap(), _YargsInstance_parseContext = new WeakMap(), _YargsInstance_pkgs = new WeakMap(), _YargsInstance_preservedGroups = new WeakMap(), _YargsInstance_processArgs = new WeakMap(), _YargsInstance_recommendCommands = new WeakMap(), _YargsInstance_shim = new WeakMap(), _YargsInstance_strict = new WeakMap(), _YargsInstance_strictCommands = new WeakMap(), _YargsInstance_strictOptions = new WeakMap(), _YargsInstance_usage = new WeakMap(), _YargsInstance_usageConfig = new WeakMap(), _YargsInstance_versionOpt = new WeakMap(), _YargsInstance_validation = new WeakMap(), kCopyDoubleDash)](argv) { - if (!argv._ || !argv['--']) - return argv; - argv._.push.apply(argv._, argv['--']); - try { - delete argv['--']; - } - catch (_err) { } - return argv; - } - [kCreateLogger]() { - return { - log: (...args) => { - if (!this[kHasParseCallback]()) - console.log(...args); - __classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f"); - if (__classPrivateFieldGet(this, _YargsInstance_output, "f").length) - __classPrivateFieldSet(this, _YargsInstance_output, __classPrivateFieldGet(this, _YargsInstance_output, "f") + '\n', "f"); - __classPrivateFieldSet(this, _YargsInstance_output, __classPrivateFieldGet(this, _YargsInstance_output, "f") + args.join(' '), "f"); - }, - error: (...args) => { - if (!this[kHasParseCallback]()) - console.error(...args); - __classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f"); - if (__classPrivateFieldGet(this, _YargsInstance_output, "f").length) - __classPrivateFieldSet(this, _YargsInstance_output, __classPrivateFieldGet(this, _YargsInstance_output, "f") + '\n', "f"); - __classPrivateFieldSet(this, _YargsInstance_output, __classPrivateFieldGet(this, _YargsInstance_output, "f") + args.join(' '), "f"); - }, - }; - } - [kDeleteFromParserHintObject](optionKey) { - objectKeys(__classPrivateFieldGet(this, _YargsInstance_options, "f")).forEach((hintKey) => { - if (((key) => key === 'configObjects')(hintKey)) - return; - const hint = __classPrivateFieldGet(this, _YargsInstance_options, "f")[hintKey]; - if (Array.isArray(hint)) { - if (hint.includes(optionKey)) - hint.splice(hint.indexOf(optionKey), 1); - } - else if (typeof hint === 'object') { - delete hint[optionKey]; - } - }); - delete __classPrivateFieldGet(this, _YargsInstance_usage, "f").getDescriptions()[optionKey]; - } - [kEmitWarning](warning, type, deduplicationId) { - if (!__classPrivateFieldGet(this, _YargsInstance_emittedWarnings, "f")[deduplicationId]) { - __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.emitWarning(warning, type); - __classPrivateFieldGet(this, _YargsInstance_emittedWarnings, "f")[deduplicationId] = true; - } - } - [kFreeze]() { - __classPrivateFieldGet(this, _YargsInstance_frozens, "f").push({ - options: __classPrivateFieldGet(this, _YargsInstance_options, "f"), - configObjects: __classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects.slice(0), - exitProcess: __classPrivateFieldGet(this, _YargsInstance_exitProcess, "f"), - groups: __classPrivateFieldGet(this, _YargsInstance_groups, "f"), - strict: __classPrivateFieldGet(this, _YargsInstance_strict, "f"), - strictCommands: __classPrivateFieldGet(this, _YargsInstance_strictCommands, "f"), - strictOptions: __classPrivateFieldGet(this, _YargsInstance_strictOptions, "f"), - completionCommand: __classPrivateFieldGet(this, _YargsInstance_completionCommand, "f"), - output: __classPrivateFieldGet(this, _YargsInstance_output, "f"), - exitError: __classPrivateFieldGet(this, _YargsInstance_exitError, "f"), - hasOutput: __classPrivateFieldGet(this, _YargsInstance_hasOutput, "f"), - parsed: this.parsed, - parseFn: __classPrivateFieldGet(this, _YargsInstance_parseFn, "f"), - parseContext: __classPrivateFieldGet(this, _YargsInstance_parseContext, "f"), - }); - __classPrivateFieldGet(this, _YargsInstance_usage, "f").freeze(); - __classPrivateFieldGet(this, _YargsInstance_validation, "f").freeze(); - __classPrivateFieldGet(this, _YargsInstance_command, "f").freeze(); - __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").freeze(); - } - [kGetDollarZero]() { - let $0 = ''; - let default$0; - if (/\b(node|iojs|electron)(\.exe)?$/.test(__classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv()[0])) { - default$0 = __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv().slice(1, 2); - } - else { - default$0 = __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv().slice(0, 1); - } - $0 = default$0 - .map(x => { - const b = this[kRebase](__classPrivateFieldGet(this, _YargsInstance_cwd, "f"), x); - return x.match(/^(\/|([a-zA-Z]:)?\\)/) && b.length < x.length ? b : x; - }) - .join(' ') - .trim(); - if (__classPrivateFieldGet(this, _YargsInstance_shim, "f").getEnv('_') && - __classPrivateFieldGet(this, _YargsInstance_shim, "f").getProcessArgvBin() === __classPrivateFieldGet(this, _YargsInstance_shim, "f").getEnv('_')) { - $0 = __classPrivateFieldGet(this, _YargsInstance_shim, "f") - .getEnv('_') - .replace(`${__classPrivateFieldGet(this, _YargsInstance_shim, "f").path.dirname(__classPrivateFieldGet(this, _YargsInstance_shim, "f").process.execPath())}/`, ''); - } - return $0; - } - [kGetParserConfiguration]() { - return __classPrivateFieldGet(this, _YargsInstance_parserConfig, "f"); - } - [kGetUsageConfiguration]() { - return __classPrivateFieldGet(this, _YargsInstance_usageConfig, "f"); - } - [kGuessLocale]() { - if (!__classPrivateFieldGet(this, _YargsInstance_detectLocale, "f")) - return; - const locale = __classPrivateFieldGet(this, _YargsInstance_shim, "f").getEnv('LC_ALL') || - __classPrivateFieldGet(this, _YargsInstance_shim, "f").getEnv('LC_MESSAGES') || - __classPrivateFieldGet(this, _YargsInstance_shim, "f").getEnv('LANG') || - __classPrivateFieldGet(this, _YargsInstance_shim, "f").getEnv('LANGUAGE') || - 'en_US'; - this.locale(locale.replace(/[.:].*/, '')); - } - [kGuessVersion]() { - const obj = this[kPkgUp](); - return obj.version || 'unknown'; - } - [kParsePositionalNumbers](argv) { - const args = argv['--'] ? argv['--'] : argv._; - for (let i = 0, arg; (arg = args[i]) !== undefined; i++) { - if (__classPrivateFieldGet(this, _YargsInstance_shim, "f").Parser.looksLikeNumber(arg) && - Number.isSafeInteger(Math.floor(parseFloat(`${arg}`)))) { - args[i] = Number(arg); - } - } - return argv; - } - [kPkgUp](rootPath) { - const npath = rootPath || '*'; - if (__classPrivateFieldGet(this, _YargsInstance_pkgs, "f")[npath]) - return __classPrivateFieldGet(this, _YargsInstance_pkgs, "f")[npath]; - let obj = {}; - try { - let startDir = rootPath || __classPrivateFieldGet(this, _YargsInstance_shim, "f").mainFilename; - if (!rootPath && __classPrivateFieldGet(this, _YargsInstance_shim, "f").path.extname(startDir)) { - startDir = __classPrivateFieldGet(this, _YargsInstance_shim, "f").path.dirname(startDir); - } - const pkgJsonPath = __classPrivateFieldGet(this, _YargsInstance_shim, "f").findUp(startDir, (dir, names) => { - if (names.includes('package.json')) { - return 'package.json'; - } - else { - return undefined; - } - }); - assertNotStrictEqual(pkgJsonPath, undefined, __classPrivateFieldGet(this, _YargsInstance_shim, "f")); - obj = JSON.parse(__classPrivateFieldGet(this, _YargsInstance_shim, "f").readFileSync(pkgJsonPath, 'utf8')); - } - catch (_noop) { } - __classPrivateFieldGet(this, _YargsInstance_pkgs, "f")[npath] = obj || {}; - return __classPrivateFieldGet(this, _YargsInstance_pkgs, "f")[npath]; - } - [kPopulateParserHintArray](type, keys) { - keys = [].concat(keys); - keys.forEach(key => { - key = this[kSanitizeKey](key); - __classPrivateFieldGet(this, _YargsInstance_options, "f")[type].push(key); - }); - } - [kPopulateParserHintSingleValueDictionary](builder, type, key, value) { - this[kPopulateParserHintDictionary](builder, type, key, value, (type, key, value) => { - __classPrivateFieldGet(this, _YargsInstance_options, "f")[type][key] = value; - }); - } - [kPopulateParserHintArrayDictionary](builder, type, key, value) { - this[kPopulateParserHintDictionary](builder, type, key, value, (type, key, value) => { - __classPrivateFieldGet(this, _YargsInstance_options, "f")[type][key] = (__classPrivateFieldGet(this, _YargsInstance_options, "f")[type][key] || []).concat(value); - }); - } - [kPopulateParserHintDictionary](builder, type, key, value, singleKeyHandler) { - if (Array.isArray(key)) { - key.forEach(k => { - builder(k, value); - }); - } - else if (((key) => typeof key === 'object')(key)) { - for (const k of objectKeys(key)) { - builder(k, key[k]); - } - } - else { - singleKeyHandler(type, this[kSanitizeKey](key), value); - } - } - [kSanitizeKey](key) { - if (key === '__proto__') - return '___proto___'; - return key; - } - [kSetKey](key, set) { - this[kPopulateParserHintSingleValueDictionary](this[kSetKey].bind(this), 'key', key, set); - return this; - } - [kUnfreeze]() { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; - const frozen = __classPrivateFieldGet(this, _YargsInstance_frozens, "f").pop(); - assertNotStrictEqual(frozen, undefined, __classPrivateFieldGet(this, _YargsInstance_shim, "f")); - let configObjects; - (_a = this, _b = this, _c = this, _d = this, _e = this, _f = this, _g = this, _h = this, _j = this, _k = this, _l = this, _m = this, { - options: ({ set value(_o) { __classPrivateFieldSet(_a, _YargsInstance_options, _o, "f"); } }).value, - configObjects, - exitProcess: ({ set value(_o) { __classPrivateFieldSet(_b, _YargsInstance_exitProcess, _o, "f"); } }).value, - groups: ({ set value(_o) { __classPrivateFieldSet(_c, _YargsInstance_groups, _o, "f"); } }).value, - output: ({ set value(_o) { __classPrivateFieldSet(_d, _YargsInstance_output, _o, "f"); } }).value, - exitError: ({ set value(_o) { __classPrivateFieldSet(_e, _YargsInstance_exitError, _o, "f"); } }).value, - hasOutput: ({ set value(_o) { __classPrivateFieldSet(_f, _YargsInstance_hasOutput, _o, "f"); } }).value, - parsed: this.parsed, - strict: ({ set value(_o) { __classPrivateFieldSet(_g, _YargsInstance_strict, _o, "f"); } }).value, - strictCommands: ({ set value(_o) { __classPrivateFieldSet(_h, _YargsInstance_strictCommands, _o, "f"); } }).value, - strictOptions: ({ set value(_o) { __classPrivateFieldSet(_j, _YargsInstance_strictOptions, _o, "f"); } }).value, - completionCommand: ({ set value(_o) { __classPrivateFieldSet(_k, _YargsInstance_completionCommand, _o, "f"); } }).value, - parseFn: ({ set value(_o) { __classPrivateFieldSet(_l, _YargsInstance_parseFn, _o, "f"); } }).value, - parseContext: ({ set value(_o) { __classPrivateFieldSet(_m, _YargsInstance_parseContext, _o, "f"); } }).value, - } = frozen); - __classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects = configObjects; - __classPrivateFieldGet(this, _YargsInstance_usage, "f").unfreeze(); - __classPrivateFieldGet(this, _YargsInstance_validation, "f").unfreeze(); - __classPrivateFieldGet(this, _YargsInstance_command, "f").unfreeze(); - __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").unfreeze(); - } - [kValidateAsync](validation, argv) { - return maybeAsyncResult(argv, result => { - validation(result); - return result; - }); - } - getInternalMethods() { - return { - getCommandInstance: this[kGetCommandInstance].bind(this), - getContext: this[kGetContext].bind(this), - getHasOutput: this[kGetHasOutput].bind(this), - getLoggerInstance: this[kGetLoggerInstance].bind(this), - getParseContext: this[kGetParseContext].bind(this), - getParserConfiguration: this[kGetParserConfiguration].bind(this), - getUsageConfiguration: this[kGetUsageConfiguration].bind(this), - getUsageInstance: this[kGetUsageInstance].bind(this), - getValidationInstance: this[kGetValidationInstance].bind(this), - hasParseCallback: this[kHasParseCallback].bind(this), - isGlobalContext: this[kIsGlobalContext].bind(this), - postProcess: this[kPostProcess].bind(this), - reset: this[kReset].bind(this), - runValidation: this[kRunValidation].bind(this), - runYargsParserAndExecuteCommands: this[kRunYargsParserAndExecuteCommands].bind(this), - setHasOutput: this[kSetHasOutput].bind(this), - }; - } - [kGetCommandInstance]() { - return __classPrivateFieldGet(this, _YargsInstance_command, "f"); - } - [kGetContext]() { - return __classPrivateFieldGet(this, _YargsInstance_context, "f"); - } - [kGetHasOutput]() { - return __classPrivateFieldGet(this, _YargsInstance_hasOutput, "f"); - } - [kGetLoggerInstance]() { - return __classPrivateFieldGet(this, _YargsInstance_logger, "f"); - } - [kGetParseContext]() { - return __classPrivateFieldGet(this, _YargsInstance_parseContext, "f") || {}; - } - [kGetUsageInstance]() { - return __classPrivateFieldGet(this, _YargsInstance_usage, "f"); - } - [kGetValidationInstance]() { - return __classPrivateFieldGet(this, _YargsInstance_validation, "f"); - } - [kHasParseCallback]() { - return !!__classPrivateFieldGet(this, _YargsInstance_parseFn, "f"); - } - [kIsGlobalContext]() { - return __classPrivateFieldGet(this, _YargsInstance_isGlobalContext, "f"); - } - [kPostProcess](argv, populateDoubleDash, calledFromCommand, runGlobalMiddleware) { - if (calledFromCommand) - return argv; - if (isPromise(argv)) - return argv; - if (!populateDoubleDash) { - argv = this[kCopyDoubleDash](argv); - } - const parsePositionalNumbers = this[kGetParserConfiguration]()['parse-positional-numbers'] || - this[kGetParserConfiguration]()['parse-positional-numbers'] === undefined; - if (parsePositionalNumbers) { - argv = this[kParsePositionalNumbers](argv); - } - if (runGlobalMiddleware) { - argv = applyMiddleware(argv, this, __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").getMiddleware(), false); - } - return argv; - } - [kReset](aliases = {}) { - __classPrivateFieldSet(this, _YargsInstance_options, __classPrivateFieldGet(this, _YargsInstance_options, "f") || {}, "f"); - const tmpOptions = {}; - tmpOptions.local = __classPrivateFieldGet(this, _YargsInstance_options, "f").local || []; - tmpOptions.configObjects = __classPrivateFieldGet(this, _YargsInstance_options, "f").configObjects || []; - const localLookup = {}; - tmpOptions.local.forEach(l => { - localLookup[l] = true; - (aliases[l] || []).forEach(a => { - localLookup[a] = true; - }); - }); - Object.assign(__classPrivateFieldGet(this, _YargsInstance_preservedGroups, "f"), Object.keys(__classPrivateFieldGet(this, _YargsInstance_groups, "f")).reduce((acc, groupName) => { - const keys = __classPrivateFieldGet(this, _YargsInstance_groups, "f")[groupName].filter(key => !(key in localLookup)); - if (keys.length > 0) { - acc[groupName] = keys; - } - return acc; - }, {})); - __classPrivateFieldSet(this, _YargsInstance_groups, {}, "f"); - const arrayOptions = [ - 'array', - 'boolean', - 'string', - 'skipValidation', - 'count', - 'normalize', - 'number', - 'hiddenOptions', - ]; - const objectOptions = [ - 'narg', - 'key', - 'alias', - 'default', - 'defaultDescription', - 'config', - 'choices', - 'demandedOptions', - 'demandedCommands', - 'deprecatedOptions', - ]; - arrayOptions.forEach(k => { - tmpOptions[k] = (__classPrivateFieldGet(this, _YargsInstance_options, "f")[k] || []).filter((k) => !localLookup[k]); - }); - objectOptions.forEach((k) => { - tmpOptions[k] = objFilter(__classPrivateFieldGet(this, _YargsInstance_options, "f")[k], k => !localLookup[k]); - }); - tmpOptions.envPrefix = __classPrivateFieldGet(this, _YargsInstance_options, "f").envPrefix; - __classPrivateFieldSet(this, _YargsInstance_options, tmpOptions, "f"); - __classPrivateFieldSet(this, _YargsInstance_usage, __classPrivateFieldGet(this, _YargsInstance_usage, "f") - ? __classPrivateFieldGet(this, _YargsInstance_usage, "f").reset(localLookup) - : Usage(this, __classPrivateFieldGet(this, _YargsInstance_shim, "f")), "f"); - __classPrivateFieldSet(this, _YargsInstance_validation, __classPrivateFieldGet(this, _YargsInstance_validation, "f") - ? __classPrivateFieldGet(this, _YargsInstance_validation, "f").reset(localLookup) - : Validation(this, __classPrivateFieldGet(this, _YargsInstance_usage, "f"), __classPrivateFieldGet(this, _YargsInstance_shim, "f")), "f"); - __classPrivateFieldSet(this, _YargsInstance_command, __classPrivateFieldGet(this, _YargsInstance_command, "f") - ? __classPrivateFieldGet(this, _YargsInstance_command, "f").reset() - : Command(__classPrivateFieldGet(this, _YargsInstance_usage, "f"), __classPrivateFieldGet(this, _YargsInstance_validation, "f"), __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f"), __classPrivateFieldGet(this, _YargsInstance_shim, "f")), "f"); - if (!__classPrivateFieldGet(this, _YargsInstance_completion, "f")) - __classPrivateFieldSet(this, _YargsInstance_completion, Completion(this, __classPrivateFieldGet(this, _YargsInstance_usage, "f"), __classPrivateFieldGet(this, _YargsInstance_command, "f"), __classPrivateFieldGet(this, _YargsInstance_shim, "f")), "f"); - __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").reset(); - __classPrivateFieldSet(this, _YargsInstance_completionCommand, null, "f"); - __classPrivateFieldSet(this, _YargsInstance_output, '', "f"); - __classPrivateFieldSet(this, _YargsInstance_exitError, null, "f"); - __classPrivateFieldSet(this, _YargsInstance_hasOutput, false, "f"); - this.parsed = false; - return this; - } - [kRebase](base, dir) { - return __classPrivateFieldGet(this, _YargsInstance_shim, "f").path.relative(base, dir); - } - [kRunYargsParserAndExecuteCommands](args, shortCircuit, calledFromCommand, commandIndex = 0, helpOnly = false) { - let skipValidation = !!calledFromCommand || helpOnly; - args = args || __classPrivateFieldGet(this, _YargsInstance_processArgs, "f"); - __classPrivateFieldGet(this, _YargsInstance_options, "f").__ = __classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.__; - __classPrivateFieldGet(this, _YargsInstance_options, "f").configuration = this[kGetParserConfiguration](); - const populateDoubleDash = !!__classPrivateFieldGet(this, _YargsInstance_options, "f").configuration['populate--']; - const config = Object.assign({}, __classPrivateFieldGet(this, _YargsInstance_options, "f").configuration, { - 'populate--': true, - }); - const parsed = __classPrivateFieldGet(this, _YargsInstance_shim, "f").Parser.detailed(args, Object.assign({}, __classPrivateFieldGet(this, _YargsInstance_options, "f"), { - configuration: { 'parse-positional-numbers': false, ...config }, - })); - const argv = Object.assign(parsed.argv, __classPrivateFieldGet(this, _YargsInstance_parseContext, "f")); - let argvPromise = undefined; - const aliases = parsed.aliases; - let helpOptSet = false; - let versionOptSet = false; - Object.keys(argv).forEach(key => { - if (key === __classPrivateFieldGet(this, _YargsInstance_helpOpt, "f") && argv[key]) { - helpOptSet = true; - } - else if (key === __classPrivateFieldGet(this, _YargsInstance_versionOpt, "f") && argv[key]) { - versionOptSet = true; - } - }); - argv.$0 = this.$0; - this.parsed = parsed; - if (commandIndex === 0) { - __classPrivateFieldGet(this, _YargsInstance_usage, "f").clearCachedHelpMessage(); - } - try { - this[kGuessLocale](); - if (shortCircuit) { - return this[kPostProcess](argv, populateDoubleDash, !!calledFromCommand, false); - } - if (__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")) { - const helpCmds = [__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")] - .concat(aliases[__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")] || []) - .filter(k => k.length > 1); - if (helpCmds.includes('' + argv._[argv._.length - 1])) { - argv._.pop(); - helpOptSet = true; - } - } - __classPrivateFieldSet(this, _YargsInstance_isGlobalContext, false, "f"); - const handlerKeys = __classPrivateFieldGet(this, _YargsInstance_command, "f").getCommands(); - const requestCompletions = __classPrivateFieldGet(this, _YargsInstance_completion, "f").completionKey in argv; - const skipRecommendation = helpOptSet || requestCompletions || helpOnly; - if (argv._.length) { - if (handlerKeys.length) { - let firstUnknownCommand; - for (let i = commandIndex || 0, cmd; argv._[i] !== undefined; i++) { - cmd = String(argv._[i]); - if (handlerKeys.includes(cmd) && cmd !== __classPrivateFieldGet(this, _YargsInstance_completionCommand, "f")) { - const innerArgv = __classPrivateFieldGet(this, _YargsInstance_command, "f").runCommand(cmd, this, parsed, i + 1, helpOnly, helpOptSet || versionOptSet || helpOnly); - return this[kPostProcess](innerArgv, populateDoubleDash, !!calledFromCommand, false); - } - else if (!firstUnknownCommand && - cmd !== __classPrivateFieldGet(this, _YargsInstance_completionCommand, "f")) { - firstUnknownCommand = cmd; - break; - } - } - if (!__classPrivateFieldGet(this, _YargsInstance_command, "f").hasDefaultCommand() && - __classPrivateFieldGet(this, _YargsInstance_recommendCommands, "f") && - firstUnknownCommand && - !skipRecommendation) { - __classPrivateFieldGet(this, _YargsInstance_validation, "f").recommendCommands(firstUnknownCommand, handlerKeys); - } - } - if (__classPrivateFieldGet(this, _YargsInstance_completionCommand, "f") && - argv._.includes(__classPrivateFieldGet(this, _YargsInstance_completionCommand, "f")) && - !requestCompletions) { - if (__classPrivateFieldGet(this, _YargsInstance_exitProcess, "f")) - setBlocking(true); - this.showCompletionScript(); - this.exit(0); - } - } - if (__classPrivateFieldGet(this, _YargsInstance_command, "f").hasDefaultCommand() && !skipRecommendation) { - const innerArgv = __classPrivateFieldGet(this, _YargsInstance_command, "f").runCommand(null, this, parsed, 0, helpOnly, helpOptSet || versionOptSet || helpOnly); - return this[kPostProcess](innerArgv, populateDoubleDash, !!calledFromCommand, false); - } - if (requestCompletions) { - if (__classPrivateFieldGet(this, _YargsInstance_exitProcess, "f")) - setBlocking(true); - args = [].concat(args); - const completionArgs = args.slice(args.indexOf(`--${__classPrivateFieldGet(this, _YargsInstance_completion, "f").completionKey}`) + 1); - __classPrivateFieldGet(this, _YargsInstance_completion, "f").getCompletion(completionArgs, (err, completions) => { - if (err) - throw new YError(err.message); - (completions || []).forEach(completion => { - __classPrivateFieldGet(this, _YargsInstance_logger, "f").log(completion); - }); - this.exit(0); - }); - return this[kPostProcess](argv, !populateDoubleDash, !!calledFromCommand, false); - } - if (!__classPrivateFieldGet(this, _YargsInstance_hasOutput, "f")) { - if (helpOptSet) { - if (__classPrivateFieldGet(this, _YargsInstance_exitProcess, "f")) - setBlocking(true); - skipValidation = true; - this.showHelp('log'); - this.exit(0); - } - else if (versionOptSet) { - if (__classPrivateFieldGet(this, _YargsInstance_exitProcess, "f")) - setBlocking(true); - skipValidation = true; - __classPrivateFieldGet(this, _YargsInstance_usage, "f").showVersion('log'); - this.exit(0); - } - } - if (!skipValidation && __classPrivateFieldGet(this, _YargsInstance_options, "f").skipValidation.length > 0) { - skipValidation = Object.keys(argv).some(key => __classPrivateFieldGet(this, _YargsInstance_options, "f").skipValidation.indexOf(key) >= 0 && argv[key] === true); - } - if (!skipValidation) { - if (parsed.error) - throw new YError(parsed.error.message); - if (!requestCompletions) { - const validation = this[kRunValidation](aliases, {}, parsed.error); - if (!calledFromCommand) { - argvPromise = applyMiddleware(argv, this, __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").getMiddleware(), true); - } - argvPromise = this[kValidateAsync](validation, argvPromise !== null && argvPromise !== void 0 ? argvPromise : argv); - if (isPromise(argvPromise) && !calledFromCommand) { - argvPromise = argvPromise.then(() => { - return applyMiddleware(argv, this, __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").getMiddleware(), false); - }); - } - } - } - } - catch (err) { - if (err instanceof YError) - __classPrivateFieldGet(this, _YargsInstance_usage, "f").fail(err.message, err); - else - throw err; - } - return this[kPostProcess](argvPromise !== null && argvPromise !== void 0 ? argvPromise : argv, populateDoubleDash, !!calledFromCommand, true); - } - [kRunValidation](aliases, positionalMap, parseErrors, isDefaultCommand) { - const demandedOptions = { ...this.getDemandedOptions() }; - return (argv) => { - if (parseErrors) - throw new YError(parseErrors.message); - __classPrivateFieldGet(this, _YargsInstance_validation, "f").nonOptionCount(argv); - __classPrivateFieldGet(this, _YargsInstance_validation, "f").requiredArguments(argv, demandedOptions); - let failedStrictCommands = false; - if (__classPrivateFieldGet(this, _YargsInstance_strictCommands, "f")) { - failedStrictCommands = __classPrivateFieldGet(this, _YargsInstance_validation, "f").unknownCommands(argv); - } - if (__classPrivateFieldGet(this, _YargsInstance_strict, "f") && !failedStrictCommands) { - __classPrivateFieldGet(this, _YargsInstance_validation, "f").unknownArguments(argv, aliases, positionalMap, !!isDefaultCommand); - } - else if (__classPrivateFieldGet(this, _YargsInstance_strictOptions, "f")) { - __classPrivateFieldGet(this, _YargsInstance_validation, "f").unknownArguments(argv, aliases, {}, false, false); - } - __classPrivateFieldGet(this, _YargsInstance_validation, "f").limitedChoices(argv); - __classPrivateFieldGet(this, _YargsInstance_validation, "f").implications(argv); - __classPrivateFieldGet(this, _YargsInstance_validation, "f").conflicting(argv); - }; - } - [kSetHasOutput]() { - __classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f"); - } - [kTrackManuallySetKeys](keys) { - if (typeof keys === 'string') { - __classPrivateFieldGet(this, _YargsInstance_options, "f").key[keys] = true; - } - else { - for (const k of keys) { - __classPrivateFieldGet(this, _YargsInstance_options, "f").key[k] = true; - } - } - } -} -export function isYargsInstance(y) { - return !!y && typeof y.getInternalMethods === 'function'; -} diff --git a/node_modules/yargs/build/lib/yerror.js b/node_modules/yargs/build/lib/yerror.js deleted file mode 100644 index 7a36684..0000000 --- a/node_modules/yargs/build/lib/yerror.js +++ /dev/null @@ -1,9 +0,0 @@ -export class YError extends Error { - constructor(msg) { - super(msg || 'yargs error'); - this.name = 'YError'; - if (Error.captureStackTrace) { - Error.captureStackTrace(this, YError); - } - } -} diff --git a/node_modules/yargs/helpers/helpers.mjs b/node_modules/yargs/helpers/helpers.mjs deleted file mode 100644 index 3f96b3d..0000000 --- a/node_modules/yargs/helpers/helpers.mjs +++ /dev/null @@ -1,10 +0,0 @@ -import {applyExtends as _applyExtends} from '../build/lib/utils/apply-extends.js'; -import {hideBin} from '../build/lib/utils/process-argv.js'; -import Parser from 'yargs-parser'; -import shim from '../lib/platform-shims/esm.mjs'; - -const applyExtends = (config, cwd, mergeExtends) => { - return _applyExtends(config, cwd, mergeExtends, shim); -}; - -export {applyExtends, hideBin, Parser}; diff --git a/node_modules/yargs/helpers/index.js b/node_modules/yargs/helpers/index.js deleted file mode 100644 index 8ab79a3..0000000 --- a/node_modules/yargs/helpers/index.js +++ /dev/null @@ -1,14 +0,0 @@ -const { - applyExtends, - cjsPlatformShim, - Parser, - processArgv, -} = require('../build/index.cjs'); - -module.exports = { - applyExtends: (config, cwd, mergeExtends) => { - return applyExtends(config, cwd, mergeExtends, cjsPlatformShim); - }, - hideBin: processArgv.hideBin, - Parser, -}; diff --git a/node_modules/yargs/helpers/package.json b/node_modules/yargs/helpers/package.json deleted file mode 100644 index 5bbefff..0000000 --- a/node_modules/yargs/helpers/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "commonjs" -} diff --git a/node_modules/yargs/index.cjs b/node_modules/yargs/index.cjs deleted file mode 100644 index d1eee82..0000000 --- a/node_modules/yargs/index.cjs +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; -// classic singleton yargs API, to use yargs -// without running as a singleton do: -// require('yargs/yargs')(process.argv.slice(2)) -const {Yargs, processArgv} = require('./build/index.cjs'); - -Argv(processArgv.hideBin(process.argv)); - -module.exports = Argv; - -function Argv(processArgs, cwd) { - const argv = Yargs(processArgs, cwd, require); - singletonify(argv); - // TODO(bcoe): warn if argv.parse() or argv.argv is used directly. - return argv; -} - -function defineGetter(obj, key, getter) { - Object.defineProperty(obj, key, { - configurable: true, - enumerable: true, - get: getter, - }); -} -function lookupGetter(obj, key) { - const desc = Object.getOwnPropertyDescriptor(obj, key); - if (typeof desc !== 'undefined') { - return desc.get; - } -} - -/* Hack an instance of Argv with process.argv into Argv - so people can do - require('yargs')(['--beeble=1','-z','zizzle']).argv - to parse a list of args and - require('yargs').argv - to get a parsed version of process.argv. -*/ -function singletonify(inst) { - [ - ...Object.keys(inst), - ...Object.getOwnPropertyNames(inst.constructor.prototype), - ].forEach(key => { - if (key === 'argv') { - defineGetter(Argv, key, lookupGetter(inst, key)); - } else if (typeof inst[key] === 'function') { - Argv[key] = inst[key].bind(inst); - } else { - defineGetter(Argv, '$0', () => inst.$0); - defineGetter(Argv, 'parsed', () => inst.parsed); - } - }); -} diff --git a/node_modules/yargs/index.mjs b/node_modules/yargs/index.mjs deleted file mode 100644 index c6440b9..0000000 --- a/node_modules/yargs/index.mjs +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -// Bootstraps yargs for ESM: -import esmPlatformShim from './lib/platform-shims/esm.mjs'; -import {YargsFactory} from './build/lib/yargs-factory.js'; - -const Yargs = YargsFactory(esmPlatformShim); -export default Yargs; diff --git a/node_modules/yargs/lib/platform-shims/browser.mjs b/node_modules/yargs/lib/platform-shims/browser.mjs deleted file mode 100644 index 5f8ec61..0000000 --- a/node_modules/yargs/lib/platform-shims/browser.mjs +++ /dev/null @@ -1,95 +0,0 @@ -/* eslint-disable no-unused-vars */ -'use strict'; - -import cliui from 'https://unpkg.com/cliui@7.0.1/index.mjs'; // eslint-disable-line -import Parser from 'https://unpkg.com/yargs-parser@19.0.0/browser.js'; // eslint-disable-line -import {getProcessArgvBin} from '../../build/lib/utils/process-argv.js'; -import {YError} from '../../build/lib/yerror.js'; - -const REQUIRE_ERROR = 'require is not supported in browser'; -const REQUIRE_DIRECTORY_ERROR = - 'loading a directory of commands is not supported in browser'; - -export default { - assert: { - notStrictEqual: (a, b) => { - // noop. - }, - strictEqual: (a, b) => { - // noop. - }, - }, - cliui, - findUp: () => undefined, - getEnv: key => { - // There is no environment in browser: - return undefined; - }, - inspect: console.log, - getCallerFile: () => { - throw new YError(REQUIRE_DIRECTORY_ERROR); - }, - getProcessArgvBin, - mainFilename: 'yargs', - Parser, - path: { - basename: str => str, - dirname: str => str, - extname: str => str, - relative: str => str, - }, - process: { - argv: () => [], - cwd: () => '', - emitWarning: (warning, name) => {}, - execPath: () => '', - // exit is noop browser: - exit: () => {}, - nextTick: cb => { - // eslint-disable-next-line no-undef - window.setTimeout(cb, 1); - }, - stdColumns: 80, - }, - readFileSync: () => { - return ''; - }, - require: () => { - throw new YError(REQUIRE_ERROR); - }, - requireDirectory: () => { - throw new YError(REQUIRE_DIRECTORY_ERROR); - }, - stringWidth: str => { - return [...str].length; - }, - // TODO: replace this with y18n once it's ported to ESM: - y18n: { - __: (...str) => { - if (str.length === 0) return ''; - const args = str.slice(1); - return sprintf(str[0], ...args); - }, - __n: (str1, str2, count, ...args) => { - if (count === 1) { - return sprintf(str1, ...args); - } else { - return sprintf(str2, ...args); - } - }, - getLocale: () => { - return 'en_US'; - }, - setLocale: () => {}, - updateLocale: () => {}, - }, -}; - -function sprintf(_str, ...args) { - let str = ''; - const split = _str.split('%s'); - split.forEach((token, i) => { - str += `${token}${split[i + 1] !== undefined && args[i] ? args[i] : ''}`; - }); - return str; -} diff --git a/node_modules/yargs/lib/platform-shims/esm.mjs b/node_modules/yargs/lib/platform-shims/esm.mjs deleted file mode 100644 index c25baa5..0000000 --- a/node_modules/yargs/lib/platform-shims/esm.mjs +++ /dev/null @@ -1,73 +0,0 @@ -'use strict' - -import { notStrictEqual, strictEqual } from 'assert' -import cliui from 'cliui' -import escalade from 'escalade/sync' -import { inspect } from 'util' -import { readFileSync } from 'fs' -import { fileURLToPath } from 'url'; -import Parser from 'yargs-parser' -import { basename, dirname, extname, relative, resolve } from 'path' -import { getProcessArgvBin } from '../../build/lib/utils/process-argv.js' -import { YError } from '../../build/lib/yerror.js' -import y18n from 'y18n' - -const REQUIRE_ERROR = 'require is not supported by ESM' -const REQUIRE_DIRECTORY_ERROR = 'loading a directory of commands is not supported yet for ESM' - -let __dirname; -try { - __dirname = fileURLToPath(import.meta.url); -} catch (e) { - __dirname = process.cwd(); -} -const mainFilename = __dirname.substring(0, __dirname.lastIndexOf('node_modules')); - -export default { - assert: { - notStrictEqual, - strictEqual - }, - cliui, - findUp: escalade, - getEnv: (key) => { - return process.env[key] - }, - inspect, - getCallerFile: () => { - throw new YError(REQUIRE_DIRECTORY_ERROR) - }, - getProcessArgvBin, - mainFilename: mainFilename || process.cwd(), - Parser, - path: { - basename, - dirname, - extname, - relative, - resolve - }, - process: { - argv: () => process.argv, - cwd: process.cwd, - emitWarning: (warning, type) => process.emitWarning(warning, type), - execPath: () => process.execPath, - exit: process.exit, - nextTick: process.nextTick, - stdColumns: typeof process.stdout.columns !== 'undefined' ? process.stdout.columns : null - }, - readFileSync, - require: () => { - throw new YError(REQUIRE_ERROR) - }, - requireDirectory: () => { - throw new YError(REQUIRE_DIRECTORY_ERROR) - }, - stringWidth: (str) => { - return [...str].length - }, - y18n: y18n({ - directory: resolve(__dirname, '../../../locales'), - updateFiles: false - }) -} diff --git a/node_modules/yargs/locales/be.json b/node_modules/yargs/locales/be.json deleted file mode 100644 index e28fa30..0000000 --- a/node_modules/yargs/locales/be.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "Commands:": "Каманды:", - "Options:": "Опцыі:", - "Examples:": "Прыклады:", - "boolean": "булевы тып", - "count": "падлік", - "string": "радковы тып", - "number": "лік", - "array": "масіў", - "required": "неабходна", - "default": "па змаўчанні", - "default:": "па змаўчанні:", - "choices:": "магчымасці:", - "aliases:": "аліасы:", - "generated-value": "згенераванае значэнне", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Недастаткова неапцыйных аргументаў: ёсць %s, трэба як мінімум %s", - "other": "Недастаткова неапцыйных аргументаў: ёсць %s, трэба як мінімум %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Занадта шмат неапцыйных аргументаў: ёсць %s, максімум дапушчальна %s", - "other": "Занадта шмат неапцыйных аргументаў: ёсць %s, максімум дапушчальна %s" - }, - "Missing argument value: %s": { - "one": "Не хапае значэння аргументу: %s", - "other": "Не хапае значэнняў аргументаў: %s" - }, - "Missing required argument: %s": { - "one": "Не хапае неабходнага аргументу: %s", - "other": "Не хапае неабходных аргументаў: %s" - }, - "Unknown argument: %s": { - "one": "Невядомы аргумент: %s", - "other": "Невядомыя аргументы: %s" - }, - "Invalid values:": "Несапраўдныя значэння:", - "Argument: %s, Given: %s, Choices: %s": "Аргумент: %s, Дадзенае значэнне: %s, Магчымасці: %s", - "Argument check failed: %s": "Праверка аргументаў не ўдалася: %s", - "Implications failed:": "Дадзены аргумент патрабуе наступны дадатковы аргумент:", - "Not enough arguments following: %s": "Недастаткова наступных аргументаў: %s", - "Invalid JSON config file: %s": "Несапраўдны файл канфігурацыі JSON: %s", - "Path to JSON config file": "Шлях да файла канфігурацыі JSON", - "Show help": "Паказаць дапамогу", - "Show version number": "Паказаць нумар версіі", - "Did you mean %s?": "Вы мелі на ўвазе %s?" -} diff --git a/node_modules/yargs/locales/cs.json b/node_modules/yargs/locales/cs.json deleted file mode 100644 index 6394875..0000000 --- a/node_modules/yargs/locales/cs.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "Commands:": "Příkazy:", - "Options:": "Možnosti:", - "Examples:": "Příklady:", - "boolean": "logická hodnota", - "count": "počet", - "string": "řetězec", - "number": "číslo", - "array": "pole", - "required": "povinné", - "default": "výchozí", - "default:": "výchozí:", - "choices:": "volby:", - "aliases:": "aliasy:", - "generated-value": "generovaná-hodnota", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Nedostatek argumentů: zadáno %s, je potřeba alespoň %s", - "other": "Nedostatek argumentů: zadáno %s, je potřeba alespoň %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Příliš mnoho argumentů: zadáno %s, maximálně %s", - "other": "Příliš mnoho argumentů: zadáno %s, maximálně %s" - }, - "Missing argument value: %s": { - "one": "Chybí hodnota argumentu: %s", - "other": "Chybí hodnoty argumentů: %s" - }, - "Missing required argument: %s": { - "one": "Chybí požadovaný argument: %s", - "other": "Chybí požadované argumenty: %s" - }, - "Unknown argument: %s": { - "one": "Neznámý argument: %s", - "other": "Neznámé argumenty: %s" - }, - "Invalid values:": "Neplatné hodnoty:", - "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Zadáno: %s, Možnosti: %s", - "Argument check failed: %s": "Kontrola argumentů se nezdařila: %s", - "Implications failed:": "Chybí závislé argumenty:", - "Not enough arguments following: %s": "Následuje nedostatek argumentů: %s", - "Invalid JSON config file: %s": "Neplatný konfigurační soubor JSON: %s", - "Path to JSON config file": "Cesta ke konfiguračnímu souboru JSON", - "Show help": "Zobrazit nápovědu", - "Show version number": "Zobrazit číslo verze", - "Did you mean %s?": "Měl jste na mysli %s?", - "Arguments %s and %s are mutually exclusive" : "Argumenty %s a %s se vzájemně vylučují", - "Positionals:": "Poziční:", - "command": "příkaz", - "deprecated": "zastaralé", - "deprecated: %s": "zastaralé: %s" -} diff --git a/node_modules/yargs/locales/de.json b/node_modules/yargs/locales/de.json deleted file mode 100644 index dc73ec3..0000000 --- a/node_modules/yargs/locales/de.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "Commands:": "Kommandos:", - "Options:": "Optionen:", - "Examples:": "Beispiele:", - "boolean": "boolean", - "count": "Zähler", - "string": "string", - "number": "Zahl", - "array": "array", - "required": "erforderlich", - "default": "Standard", - "default:": "Standard:", - "choices:": "Möglichkeiten:", - "aliases:": "Aliase:", - "generated-value": "Generierter-Wert", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Nicht genügend Argumente ohne Optionen: %s vorhanden, mindestens %s benötigt", - "other": "Nicht genügend Argumente ohne Optionen: %s vorhanden, mindestens %s benötigt" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Zu viele Argumente ohne Optionen: %s vorhanden, maximal %s erlaubt", - "other": "Zu viele Argumente ohne Optionen: %s vorhanden, maximal %s erlaubt" - }, - "Missing argument value: %s": { - "one": "Fehlender Argumentwert: %s", - "other": "Fehlende Argumentwerte: %s" - }, - "Missing required argument: %s": { - "one": "Fehlendes Argument: %s", - "other": "Fehlende Argumente: %s" - }, - "Unknown argument: %s": { - "one": "Unbekanntes Argument: %s", - "other": "Unbekannte Argumente: %s" - }, - "Invalid values:": "Unzulässige Werte:", - "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Gegeben: %s, Möglichkeiten: %s", - "Argument check failed: %s": "Argumente-Check fehlgeschlagen: %s", - "Implications failed:": "Fehlende abhängige Argumente:", - "Not enough arguments following: %s": "Nicht genügend Argumente nach: %s", - "Invalid JSON config file: %s": "Fehlerhafte JSON-Config Datei: %s", - "Path to JSON config file": "Pfad zur JSON-Config Datei", - "Show help": "Hilfe anzeigen", - "Show version number": "Version anzeigen", - "Did you mean %s?": "Meintest du %s?" -} diff --git a/node_modules/yargs/locales/en.json b/node_modules/yargs/locales/en.json deleted file mode 100644 index af096a1..0000000 --- a/node_modules/yargs/locales/en.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "Commands:": "Commands:", - "Options:": "Options:", - "Examples:": "Examples:", - "boolean": "boolean", - "count": "count", - "string": "string", - "number": "number", - "array": "array", - "required": "required", - "default": "default", - "default:": "default:", - "choices:": "choices:", - "aliases:": "aliases:", - "generated-value": "generated-value", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Not enough non-option arguments: got %s, need at least %s", - "other": "Not enough non-option arguments: got %s, need at least %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Too many non-option arguments: got %s, maximum of %s", - "other": "Too many non-option arguments: got %s, maximum of %s" - }, - "Missing argument value: %s": { - "one": "Missing argument value: %s", - "other": "Missing argument values: %s" - }, - "Missing required argument: %s": { - "one": "Missing required argument: %s", - "other": "Missing required arguments: %s" - }, - "Unknown argument: %s": { - "one": "Unknown argument: %s", - "other": "Unknown arguments: %s" - }, - "Unknown command: %s": { - "one": "Unknown command: %s", - "other": "Unknown commands: %s" - }, - "Invalid values:": "Invalid values:", - "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Given: %s, Choices: %s", - "Argument check failed: %s": "Argument check failed: %s", - "Implications failed:": "Missing dependent arguments:", - "Not enough arguments following: %s": "Not enough arguments following: %s", - "Invalid JSON config file: %s": "Invalid JSON config file: %s", - "Path to JSON config file": "Path to JSON config file", - "Show help": "Show help", - "Show version number": "Show version number", - "Did you mean %s?": "Did you mean %s?", - "Arguments %s and %s are mutually exclusive" : "Arguments %s and %s are mutually exclusive", - "Positionals:": "Positionals:", - "command": "command", - "deprecated": "deprecated", - "deprecated: %s": "deprecated: %s" -} diff --git a/node_modules/yargs/locales/es.json b/node_modules/yargs/locales/es.json deleted file mode 100644 index d77b461..0000000 --- a/node_modules/yargs/locales/es.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "Commands:": "Comandos:", - "Options:": "Opciones:", - "Examples:": "Ejemplos:", - "boolean": "booleano", - "count": "cuenta", - "string": "cadena de caracteres", - "number": "número", - "array": "tabla", - "required": "requerido", - "default": "defecto", - "default:": "defecto:", - "choices:": "selección:", - "aliases:": "alias:", - "generated-value": "valor-generado", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Hacen falta argumentos no-opcionales: Número recibido %s, necesita por lo menos %s", - "other": "Hacen falta argumentos no-opcionales: Número recibido %s, necesita por lo menos %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Demasiados argumentos no-opcionales: Número recibido %s, máximo es %s", - "other": "Demasiados argumentos no-opcionales: Número recibido %s, máximo es %s" - }, - "Missing argument value: %s": { - "one": "Falta argumento: %s", - "other": "Faltan argumentos: %s" - }, - "Missing required argument: %s": { - "one": "Falta argumento requerido: %s", - "other": "Faltan argumentos requeridos: %s" - }, - "Unknown argument: %s": { - "one": "Argumento desconocido: %s", - "other": "Argumentos desconocidos: %s" - }, - "Invalid values:": "Valores inválidos:", - "Argument: %s, Given: %s, Choices: %s": "Argumento: %s, Recibido: %s, Seleccionados: %s", - "Argument check failed: %s": "Verificación de argumento ha fallado: %s", - "Implications failed:": "Implicaciones fallidas:", - "Not enough arguments following: %s": "No hay suficientes argumentos después de: %s", - "Invalid JSON config file: %s": "Archivo de configuración JSON inválido: %s", - "Path to JSON config file": "Ruta al archivo de configuración JSON", - "Show help": "Muestra ayuda", - "Show version number": "Muestra número de versión", - "Did you mean %s?": "Quisiste decir %s?" -} diff --git a/node_modules/yargs/locales/fi.json b/node_modules/yargs/locales/fi.json deleted file mode 100644 index 481feb7..0000000 --- a/node_modules/yargs/locales/fi.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "Commands:": "Komennot:", - "Options:": "Valinnat:", - "Examples:": "Esimerkkejä:", - "boolean": "totuusarvo", - "count": "lukumäärä", - "string": "merkkijono", - "number": "numero", - "array": "taulukko", - "required": "pakollinen", - "default": "oletusarvo", - "default:": "oletusarvo:", - "choices:": "vaihtoehdot:", - "aliases:": "aliakset:", - "generated-value": "generoitu-arvo", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Liian vähän argumentteja, jotka eivät ole valintoja: annettu %s, vaaditaan vähintään %s", - "other": "Liian vähän argumentteja, jotka eivät ole valintoja: annettu %s, vaaditaan vähintään %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Liikaa argumentteja, jotka eivät ole valintoja: annettu %s, sallitaan enintään %s", - "other": "Liikaa argumentteja, jotka eivät ole valintoja: annettu %s, sallitaan enintään %s" - }, - "Missing argument value: %s": { - "one": "Argumentin arvo puuttuu: %s", - "other": "Argumentin arvot puuttuvat: %s" - }, - "Missing required argument: %s": { - "one": "Pakollinen argumentti puuttuu: %s", - "other": "Pakollisia argumentteja puuttuu: %s" - }, - "Unknown argument: %s": { - "one": "Tuntematon argumentti: %s", - "other": "Tuntemattomia argumentteja: %s" - }, - "Invalid values:": "Virheelliset arvot:", - "Argument: %s, Given: %s, Choices: %s": "Argumentti: %s, Annettu: %s, Vaihtoehdot: %s", - "Argument check failed: %s": "Argumentin tarkistus epäonnistui: %s", - "Implications failed:": "Riippuvia argumentteja puuttuu:", - "Not enough arguments following: %s": "Argumentin perässä ei ole tarpeeksi argumentteja: %s", - "Invalid JSON config file: %s": "Epävalidi JSON-asetustiedosto: %s", - "Path to JSON config file": "JSON-asetustiedoston polku", - "Show help": "Näytä ohje", - "Show version number": "Näytä versionumero", - "Did you mean %s?": "Tarkoititko %s?", - "Arguments %s and %s are mutually exclusive" : "Argumentit %s ja %s eivät ole yhteensopivat", - "Positionals:": "Sijaintiparametrit:", - "command": "komento" -} diff --git a/node_modules/yargs/locales/fr.json b/node_modules/yargs/locales/fr.json deleted file mode 100644 index edd743f..0000000 --- a/node_modules/yargs/locales/fr.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "Commands:": "Commandes :", - "Options:": "Options :", - "Examples:": "Exemples :", - "boolean": "booléen", - "count": "compteur", - "string": "chaîne de caractères", - "number": "nombre", - "array": "tableau", - "required": "requis", - "default": "défaut", - "default:": "défaut :", - "choices:": "choix :", - "aliases:": "alias :", - "generated-value": "valeur générée", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Pas assez d'arguments (hors options) : reçu %s, besoin d'au moins %s", - "other": "Pas assez d'arguments (hors options) : reçus %s, besoin d'au moins %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Trop d'arguments (hors options) : reçu %s, maximum de %s", - "other": "Trop d'arguments (hors options) : reçus %s, maximum de %s" - }, - "Missing argument value: %s": { - "one": "Argument manquant : %s", - "other": "Arguments manquants : %s" - }, - "Missing required argument: %s": { - "one": "Argument requis manquant : %s", - "other": "Arguments requis manquants : %s" - }, - "Unknown argument: %s": { - "one": "Argument inconnu : %s", - "other": "Arguments inconnus : %s" - }, - "Unknown command: %s": { - "one": "Commande inconnue : %s", - "other": "Commandes inconnues : %s" - }, - "Invalid values:": "Valeurs invalides :", - "Argument: %s, Given: %s, Choices: %s": "Argument : %s, donné : %s, choix : %s", - "Argument check failed: %s": "Echec de la vérification de l'argument : %s", - "Implications failed:": "Arguments dépendants manquants :", - "Not enough arguments following: %s": "Pas assez d'arguments après : %s", - "Invalid JSON config file: %s": "Fichier de configuration JSON invalide : %s", - "Path to JSON config file": "Chemin du fichier de configuration JSON", - "Show help": "Affiche l'aide", - "Show version number": "Affiche le numéro de version", - "Did you mean %s?": "Vouliez-vous dire %s ?", - "Arguments %s and %s are mutually exclusive" : "Les arguments %s et %s sont mutuellement exclusifs", - "Positionals:": "Arguments positionnels :", - "command": "commande" -} diff --git a/node_modules/yargs/locales/hi.json b/node_modules/yargs/locales/hi.json deleted file mode 100644 index a9de77c..0000000 --- a/node_modules/yargs/locales/hi.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "Commands:": "आदेश:", - "Options:": "विकल्प:", - "Examples:": "उदाहरण:", - "boolean": "सत्यता", - "count": "संख्या", - "string": "वर्णों का तार ", - "number": "अंक", - "array": "सरणी", - "required": "आवश्यक", - "default": "डिफॉल्ट", - "default:": "डिफॉल्ट:", - "choices:": "विकल्प:", - "aliases:": "उपनाम:", - "generated-value": "उत्पन्न-मूल्य", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "पर्याप्त गैर-विकल्प तर्क प्राप्त नहीं: %s प्राप्त, कम से कम %s की आवश्यकता है", - "other": "पर्याप्त गैर-विकल्प तर्क प्राप्त नहीं: %s प्राप्त, कम से कम %s की आवश्यकता है" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "बहुत सारे गैर-विकल्प तर्क: %s प्राप्त, अधिकतम %s मान्य", - "other": "बहुत सारे गैर-विकल्प तर्क: %s प्राप्त, अधिकतम %s मान्य" - }, - "Missing argument value: %s": { - "one": "कुछ तर्को के मूल्य गुम हैं: %s", - "other": "कुछ तर्को के मूल्य गुम हैं: %s" - }, - "Missing required argument: %s": { - "one": "आवश्यक तर्क गुम हैं: %s", - "other": "आवश्यक तर्क गुम हैं: %s" - }, - "Unknown argument: %s": { - "one": "अज्ञात तर्क प्राप्त: %s", - "other": "अज्ञात तर्क प्राप्त: %s" - }, - "Invalid values:": "अमान्य मूल्य:", - "Argument: %s, Given: %s, Choices: %s": "तर्क: %s, प्राप्त: %s, विकल्प: %s", - "Argument check failed: %s": "तर्क जांच विफल: %s", - "Implications failed:": "दिए गए तर्क के लिए अतिरिक्त तर्क की अपेक्षा है:", - "Not enough arguments following: %s": "निम्नलिखित के बाद पर्याप्त तर्क नहीं प्राप्त: %s", - "Invalid JSON config file: %s": "अमान्य JSON config फाइल: %s", - "Path to JSON config file": "JSON config फाइल का पथ", - "Show help": "सहायता दिखाएँ", - "Show version number": "Version संख्या दिखाएँ", - "Did you mean %s?": "क्या आपका मतलब है %s?", - "Arguments %s and %s are mutually exclusive" : "तर्क %s और %s परस्पर अनन्य हैं", - "Positionals:": "स्थानीय:", - "command": "आदेश" -} diff --git a/node_modules/yargs/locales/hu.json b/node_modules/yargs/locales/hu.json deleted file mode 100644 index 21492d0..0000000 --- a/node_modules/yargs/locales/hu.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "Commands:": "Parancsok:", - "Options:": "Opciók:", - "Examples:": "Példák:", - "boolean": "boolean", - "count": "számláló", - "string": "szöveg", - "number": "szám", - "array": "tömb", - "required": "kötelező", - "default": "alapértelmezett", - "default:": "alapértelmezett:", - "choices:": "lehetőségek:", - "aliases:": "aliaszok:", - "generated-value": "generált-érték", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Nincs elég nem opcionális argumentum: %s van, legalább %s kell", - "other": "Nincs elég nem opcionális argumentum: %s van, legalább %s kell" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Túl sok nem opciánlis argumentum van: %s van, maximum %s lehet", - "other": "Túl sok nem opciánlis argumentum van: %s van, maximum %s lehet" - }, - "Missing argument value: %s": { - "one": "Hiányzó argumentum érték: %s", - "other": "Hiányzó argumentum értékek: %s" - }, - "Missing required argument: %s": { - "one": "Hiányzó kötelező argumentum: %s", - "other": "Hiányzó kötelező argumentumok: %s" - }, - "Unknown argument: %s": { - "one": "Ismeretlen argumentum: %s", - "other": "Ismeretlen argumentumok: %s" - }, - "Invalid values:": "Érvénytelen érték:", - "Argument: %s, Given: %s, Choices: %s": "Argumentum: %s, Megadott: %s, Lehetőségek: %s", - "Argument check failed: %s": "Argumentum ellenőrzés sikertelen: %s", - "Implications failed:": "Implikációk sikertelenek:", - "Not enough arguments following: %s": "Nem elég argumentum követi: %s", - "Invalid JSON config file: %s": "Érvénytelen JSON konfigurációs file: %s", - "Path to JSON config file": "JSON konfigurációs file helye", - "Show help": "Súgo megjelenítése", - "Show version number": "Verziószám megjelenítése", - "Did you mean %s?": "Erre gondoltál %s?" -} diff --git a/node_modules/yargs/locales/id.json b/node_modules/yargs/locales/id.json deleted file mode 100644 index 125867c..0000000 --- a/node_modules/yargs/locales/id.json +++ /dev/null @@ -1,50 +0,0 @@ - -{ - "Commands:": "Perintah:", - "Options:": "Pilihan:", - "Examples:": "Contoh:", - "boolean": "boolean", - "count": "jumlah", - "number": "nomor", - "string": "string", - "array": "larik", - "required": "diperlukan", - "default": "bawaan", - "default:": "bawaan:", - "aliases:": "istilah lain:", - "choices:": "pilihan:", - "generated-value": "nilai-yang-dihasilkan", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Argumen wajib kurang: hanya %s, minimal %s", - "other": "Argumen wajib kurang: hanya %s, minimal %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Terlalu banyak argumen wajib: ada %s, maksimal %s", - "other": "Terlalu banyak argumen wajib: ada %s, maksimal %s" - }, - "Missing argument value: %s": { - "one": "Kurang argumen: %s", - "other": "Kurang argumen: %s" - }, - "Missing required argument: %s": { - "one": "Kurang argumen wajib: %s", - "other": "Kurang argumen wajib: %s" - }, - "Unknown argument: %s": { - "one": "Argumen tak diketahui: %s", - "other": "Argumen tak diketahui: %s" - }, - "Invalid values:": "Nilai-nilai tidak valid:", - "Argument: %s, Given: %s, Choices: %s": "Argumen: %s, Diberikan: %s, Pilihan: %s", - "Argument check failed: %s": "Pemeriksaan argument gagal: %s", - "Implications failed:": "Implikasi gagal:", - "Not enough arguments following: %s": "Kurang argumen untuk: %s", - "Invalid JSON config file: %s": "Berkas konfigurasi JSON tidak valid: %s", - "Path to JSON config file": "Alamat berkas konfigurasi JSON", - "Show help": "Lihat bantuan", - "Show version number": "Lihat nomor versi", - "Did you mean %s?": "Maksud Anda: %s?", - "Arguments %s and %s are mutually exclusive" : "Argumen %s dan %s saling eksklusif", - "Positionals:": "Posisional-posisional:", - "command": "perintah" -} diff --git a/node_modules/yargs/locales/it.json b/node_modules/yargs/locales/it.json deleted file mode 100644 index fde5756..0000000 --- a/node_modules/yargs/locales/it.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "Commands:": "Comandi:", - "Options:": "Opzioni:", - "Examples:": "Esempi:", - "boolean": "booleano", - "count": "contatore", - "string": "stringa", - "number": "numero", - "array": "vettore", - "required": "richiesto", - "default": "predefinito", - "default:": "predefinito:", - "choices:": "scelte:", - "aliases:": "alias:", - "generated-value": "valore generato", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Numero insufficiente di argomenti non opzione: inseriti %s, richiesti almeno %s", - "other": "Numero insufficiente di argomenti non opzione: inseriti %s, richiesti almeno %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Troppi argomenti non opzione: inseriti %s, massimo possibile %s", - "other": "Troppi argomenti non opzione: inseriti %s, massimo possibile %s" - }, - "Missing argument value: %s": { - "one": "Argomento mancante: %s", - "other": "Argomenti mancanti: %s" - }, - "Missing required argument: %s": { - "one": "Argomento richiesto mancante: %s", - "other": "Argomenti richiesti mancanti: %s" - }, - "Unknown argument: %s": { - "one": "Argomento sconosciuto: %s", - "other": "Argomenti sconosciuti: %s" - }, - "Invalid values:": "Valori non validi:", - "Argument: %s, Given: %s, Choices: %s": "Argomento: %s, Richiesto: %s, Scelte: %s", - "Argument check failed: %s": "Controllo dell'argomento fallito: %s", - "Implications failed:": "Argomenti dipendenti mancanti:", - "Not enough arguments following: %s": "Argomenti insufficienti dopo: %s", - "Invalid JSON config file: %s": "File di configurazione JSON non valido: %s", - "Path to JSON config file": "Percorso del file di configurazione JSON", - "Show help": "Mostra la schermata di aiuto", - "Show version number": "Mostra il numero di versione", - "Did you mean %s?": "Intendi forse %s?" -} diff --git a/node_modules/yargs/locales/ja.json b/node_modules/yargs/locales/ja.json deleted file mode 100644 index 3954ae6..0000000 --- a/node_modules/yargs/locales/ja.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "Commands:": "コマンド:", - "Options:": "オプション:", - "Examples:": "例:", - "boolean": "真偽", - "count": "カウント", - "string": "文字列", - "number": "数値", - "array": "配列", - "required": "必須", - "default": "デフォルト", - "default:": "デフォルト:", - "choices:": "選択してください:", - "aliases:": "エイリアス:", - "generated-value": "生成された値", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "オプションではない引数が %s 個では不足しています。少なくとも %s 個の引数が必要です:", - "other": "オプションではない引数が %s 個では不足しています。少なくとも %s 個の引数が必要です:" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "オプションではない引数が %s 個では多すぎます。最大で %s 個までです:", - "other": "オプションではない引数が %s 個では多すぎます。最大で %s 個までです:" - }, - "Missing argument value: %s": { - "one": "引数の値が見つかりません: %s", - "other": "引数の値が見つかりません: %s" - }, - "Missing required argument: %s": { - "one": "必須の引数が見つかりません: %s", - "other": "必須の引数が見つかりません: %s" - }, - "Unknown argument: %s": { - "one": "未知の引数です: %s", - "other": "未知の引数です: %s" - }, - "Invalid values:": "不正な値です:", - "Argument: %s, Given: %s, Choices: %s": "引数は %s です。与えられた値: %s, 選択してください: %s", - "Argument check failed: %s": "引数のチェックに失敗しました: %s", - "Implications failed:": "オプションの組み合わせで不正が生じました:", - "Not enough arguments following: %s": "次の引数が不足しています。: %s", - "Invalid JSON config file: %s": "JSONの設定ファイルが不正です: %s", - "Path to JSON config file": "JSONの設定ファイルまでのpath", - "Show help": "ヘルプを表示", - "Show version number": "バージョンを表示", - "Did you mean %s?": "もしかして %s?", - "Arguments %s and %s are mutually exclusive" : "引数 %s と %s は同時に指定できません", - "Positionals:": "位置:", - "command": "コマンド", - "deprecated": "非推奨", - "deprecated: %s": "非推奨: %s" -} diff --git a/node_modules/yargs/locales/ko.json b/node_modules/yargs/locales/ko.json deleted file mode 100644 index 746bc89..0000000 --- a/node_modules/yargs/locales/ko.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "Commands:": "명령:", - "Options:": "옵션:", - "Examples:": "예시:", - "boolean": "불리언", - "count": "개수", - "string": "문자열", - "number": "숫자", - "array": "배열", - "required": "필수", - "default": "기본값", - "default:": "기본값:", - "choices:": "선택지:", - "aliases:": "별칭:", - "generated-value": "생성된 값", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "옵션이 아닌 인수가 충분하지 않습니다: %s개 입력받음, 최소 %s개 입력 필요", - "other": "옵션이 아닌 인수가 충분하지 않습니다: %s개 입력받음, 최소 %s개 입력 필요" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "옵션이 아닌 인수가 너무 많습니다: %s개 입력받음, 최대 %s개 입력 가능", - "other": "옵션이 아닌 인수가 너무 많습니다: %s개 입력받음, 최대 %s개 입력 가능" - }, - "Missing argument value: %s": { - "one": "인수가 주어지지 않았습니다: %s", - "other": "인수가 주어지지 않았습니다: %s" - }, - "Missing required argument: %s": { - "one": "필수 인수가 주어지지 않았습니다: %s", - "other": "필수 인수가 주어지지 않았습니다: %s" - }, - "Unknown argument: %s": { - "one": "알 수 없는 인수입니다: %s", - "other": "알 수 없는 인수입니다: %s" - }, - "Invalid values:": "유효하지 않은 값:", - "Argument: %s, Given: %s, Choices: %s": "인수: %s, 주어진 값: %s, 선택지: %s", - "Argument check failed: %s": "인수 체크에 실패했습니다: %s", - "Implications failed:": "주어진 인수에 필요한 추가 인수가 주어지지 않았습니다:", - "Not enough arguments following: %s": "다음 인수가 주어지지 않았습니다: %s", - "Invalid JSON config file: %s": "유효하지 않은 JSON 설정 파일: %s", - "Path to JSON config file": "JSON 설정 파일 경로", - "Show help": "도움말 표시", - "Show version number": "버전 표시", - "Did you mean %s?": "%s을(를) 찾으시나요?", - "Arguments %s and %s are mutually exclusive" : "인수 %s과(와) %s은(는) 동시에 지정할 수 없습니다", - "Positionals:": "위치:", - "command": "명령" -} diff --git a/node_modules/yargs/locales/nb.json b/node_modules/yargs/locales/nb.json deleted file mode 100644 index 6f410ed..0000000 --- a/node_modules/yargs/locales/nb.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "Commands:": "Kommandoer:", - "Options:": "Alternativer:", - "Examples:": "Eksempler:", - "boolean": "boolsk", - "count": "antall", - "string": "streng", - "number": "nummer", - "array": "matrise", - "required": "obligatorisk", - "default": "standard", - "default:": "standard:", - "choices:": "valg:", - "generated-value": "generert-verdi", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Ikke nok ikke-alternativ argumenter: fikk %s, trenger minst %s", - "other": "Ikke nok ikke-alternativ argumenter: fikk %s, trenger minst %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "For mange ikke-alternativ argumenter: fikk %s, maksimum %s", - "other": "For mange ikke-alternativ argumenter: fikk %s, maksimum %s" - }, - "Missing argument value: %s": { - "one": "Mangler argument verdi: %s", - "other": "Mangler argument verdier: %s" - }, - "Missing required argument: %s": { - "one": "Mangler obligatorisk argument: %s", - "other": "Mangler obligatoriske argumenter: %s" - }, - "Unknown argument: %s": { - "one": "Ukjent argument: %s", - "other": "Ukjente argumenter: %s" - }, - "Invalid values:": "Ugyldige verdier:", - "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Gitt: %s, Valg: %s", - "Argument check failed: %s": "Argumentsjekk mislyktes: %s", - "Implications failed:": "Konsekvensene mislyktes:", - "Not enough arguments following: %s": "Ikke nok følgende argumenter: %s", - "Invalid JSON config file: %s": "Ugyldig JSON konfigurasjonsfil: %s", - "Path to JSON config file": "Bane til JSON konfigurasjonsfil", - "Show help": "Vis hjelp", - "Show version number": "Vis versjonsnummer" -} diff --git a/node_modules/yargs/locales/nl.json b/node_modules/yargs/locales/nl.json deleted file mode 100644 index 9ff95c5..0000000 --- a/node_modules/yargs/locales/nl.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "Commands:": "Commando's:", - "Options:": "Opties:", - "Examples:": "Voorbeelden:", - "boolean": "booleaans", - "count": "aantal", - "string": "string", - "number": "getal", - "array": "lijst", - "required": "verplicht", - "default": "standaard", - "default:": "standaard:", - "choices:": "keuzes:", - "aliases:": "aliassen:", - "generated-value": "gegenereerde waarde", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Niet genoeg niet-optie-argumenten: %s gekregen, minstens %s nodig", - "other": "Niet genoeg niet-optie-argumenten: %s gekregen, minstens %s nodig" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Te veel niet-optie-argumenten: %s gekregen, maximum is %s", - "other": "Te veel niet-optie-argumenten: %s gekregen, maximum is %s" - }, - "Missing argument value: %s": { - "one": "Missende argumentwaarde: %s", - "other": "Missende argumentwaarden: %s" - }, - "Missing required argument: %s": { - "one": "Missend verplicht argument: %s", - "other": "Missende verplichte argumenten: %s" - }, - "Unknown argument: %s": { - "one": "Onbekend argument: %s", - "other": "Onbekende argumenten: %s" - }, - "Invalid values:": "Ongeldige waarden:", - "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Gegeven: %s, Keuzes: %s", - "Argument check failed: %s": "Argumentcontrole mislukt: %s", - "Implications failed:": "Ontbrekende afhankelijke argumenten:", - "Not enough arguments following: %s": "Niet genoeg argumenten na: %s", - "Invalid JSON config file: %s": "Ongeldig JSON-config-bestand: %s", - "Path to JSON config file": "Pad naar JSON-config-bestand", - "Show help": "Toon help", - "Show version number": "Toon versienummer", - "Did you mean %s?": "Bedoelde u misschien %s?", - "Arguments %s and %s are mutually exclusive": "Argumenten %s en %s kunnen niet tegelijk gebruikt worden", - "Positionals:": "Positie-afhankelijke argumenten", - "command": "commando" -} diff --git a/node_modules/yargs/locales/nn.json b/node_modules/yargs/locales/nn.json deleted file mode 100644 index 24479ac..0000000 --- a/node_modules/yargs/locales/nn.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "Commands:": "Kommandoar:", - "Options:": "Alternativ:", - "Examples:": "Døme:", - "boolean": "boolsk", - "count": "mengd", - "string": "streng", - "number": "nummer", - "array": "matrise", - "required": "obligatorisk", - "default": "standard", - "default:": "standard:", - "choices:": "val:", - "generated-value": "generert-verdi", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Ikkje nok ikkje-alternativ argument: fekk %s, treng minst %s", - "other": "Ikkje nok ikkje-alternativ argument: fekk %s, treng minst %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "For mange ikkje-alternativ argument: fekk %s, maksimum %s", - "other": "For mange ikkje-alternativ argument: fekk %s, maksimum %s" - }, - "Missing argument value: %s": { - "one": "Manglar argumentverdi: %s", - "other": "Manglar argumentverdiar: %s" - }, - "Missing required argument: %s": { - "one": "Manglar obligatorisk argument: %s", - "other": "Manglar obligatoriske argument: %s" - }, - "Unknown argument: %s": { - "one": "Ukjent argument: %s", - "other": "Ukjende argument: %s" - }, - "Invalid values:": "Ugyldige verdiar:", - "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Gjeve: %s, Val: %s", - "Argument check failed: %s": "Argumentsjekk mislukkast: %s", - "Implications failed:": "Konsekvensane mislukkast:", - "Not enough arguments following: %s": "Ikkje nok fylgjande argument: %s", - "Invalid JSON config file: %s": "Ugyldig JSON konfigurasjonsfil: %s", - "Path to JSON config file": "Bane til JSON konfigurasjonsfil", - "Show help": "Vis hjelp", - "Show version number": "Vis versjonsnummer" -} diff --git a/node_modules/yargs/locales/pirate.json b/node_modules/yargs/locales/pirate.json deleted file mode 100644 index dcb5cb7..0000000 --- a/node_modules/yargs/locales/pirate.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "Commands:": "Choose yer command:", - "Options:": "Options for me hearties!", - "Examples:": "Ex. marks the spot:", - "required": "requi-yar-ed", - "Missing required argument: %s": { - "one": "Ye be havin' to set the followin' argument land lubber: %s", - "other": "Ye be havin' to set the followin' arguments land lubber: %s" - }, - "Show help": "Parlay this here code of conduct", - "Show version number": "'Tis the version ye be askin' fer", - "Arguments %s and %s are mutually exclusive" : "Yon scurvy dogs %s and %s be as bad as rum and a prudish wench" -} diff --git a/node_modules/yargs/locales/pl.json b/node_modules/yargs/locales/pl.json deleted file mode 100644 index a41d4bd..0000000 --- a/node_modules/yargs/locales/pl.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "Commands:": "Polecenia:", - "Options:": "Opcje:", - "Examples:": "Przykłady:", - "boolean": "boolean", - "count": "ilość", - "string": "ciąg znaków", - "number": "liczba", - "array": "tablica", - "required": "wymagany", - "default": "domyślny", - "default:": "domyślny:", - "choices:": "dostępne:", - "aliases:": "aliasy:", - "generated-value": "wygenerowana-wartość", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Niewystarczająca ilość argumentów: otrzymano %s, wymagane co najmniej %s", - "other": "Niewystarczająca ilość argumentów: otrzymano %s, wymagane co najmniej %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Zbyt duża ilość argumentów: otrzymano %s, wymagane co najwyżej %s", - "other": "Zbyt duża ilość argumentów: otrzymano %s, wymagane co najwyżej %s" - }, - "Missing argument value: %s": { - "one": "Brak wartości dla argumentu: %s", - "other": "Brak wartości dla argumentów: %s" - }, - "Missing required argument: %s": { - "one": "Brak wymaganego argumentu: %s", - "other": "Brak wymaganych argumentów: %s" - }, - "Unknown argument: %s": { - "one": "Nieznany argument: %s", - "other": "Nieznane argumenty: %s" - }, - "Invalid values:": "Nieprawidłowe wartości:", - "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Otrzymano: %s, Dostępne: %s", - "Argument check failed: %s": "Weryfikacja argumentów nie powiodła się: %s", - "Implications failed:": "Założenia nie zostały spełnione:", - "Not enough arguments following: %s": "Niewystarczająca ilość argumentów następujących po: %s", - "Invalid JSON config file: %s": "Nieprawidłowy plik konfiguracyjny JSON: %s", - "Path to JSON config file": "Ścieżka do pliku konfiguracyjnego JSON", - "Show help": "Pokaż pomoc", - "Show version number": "Pokaż numer wersji", - "Did you mean %s?": "Czy chodziło Ci o %s?", - "Arguments %s and %s are mutually exclusive": "Argumenty %s i %s wzajemnie się wykluczają", - "Positionals:": "Pozycyjne:", - "command": "polecenie" -} diff --git a/node_modules/yargs/locales/pt.json b/node_modules/yargs/locales/pt.json deleted file mode 100644 index 0c8ac99..0000000 --- a/node_modules/yargs/locales/pt.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "Commands:": "Comandos:", - "Options:": "Opções:", - "Examples:": "Exemplos:", - "boolean": "boolean", - "count": "contagem", - "string": "cadeia de caracteres", - "number": "número", - "array": "arranjo", - "required": "requerido", - "default": "padrão", - "default:": "padrão:", - "choices:": "escolhas:", - "generated-value": "valor-gerado", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Argumentos insuficientes não opcionais: Argumento %s, necessário pelo menos %s", - "other": "Argumentos insuficientes não opcionais: Argumento %s, necessário pelo menos %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Excesso de argumentos não opcionais: recebido %s, máximo de %s", - "other": "Excesso de argumentos não opcionais: recebido %s, máximo de %s" - }, - "Missing argument value: %s": { - "one": "Falta valor de argumento: %s", - "other": "Falta valores de argumento: %s" - }, - "Missing required argument: %s": { - "one": "Falta argumento obrigatório: %s", - "other": "Faltando argumentos obrigatórios: %s" - }, - "Unknown argument: %s": { - "one": "Argumento desconhecido: %s", - "other": "Argumentos desconhecidos: %s" - }, - "Invalid values:": "Valores inválidos:", - "Argument: %s, Given: %s, Choices: %s": "Argumento: %s, Dado: %s, Escolhas: %s", - "Argument check failed: %s": "Verificação de argumento falhou: %s", - "Implications failed:": "Implicações falharam:", - "Not enough arguments following: %s": "Insuficientes argumentos a seguir: %s", - "Invalid JSON config file: %s": "Arquivo de configuração em JSON esta inválido: %s", - "Path to JSON config file": "Caminho para o arquivo de configuração em JSON", - "Show help": "Mostra ajuda", - "Show version number": "Mostra número de versão", - "Arguments %s and %s are mutually exclusive" : "Argumentos %s e %s são mutualmente exclusivos" -} diff --git a/node_modules/yargs/locales/pt_BR.json b/node_modules/yargs/locales/pt_BR.json deleted file mode 100644 index eae1ec6..0000000 --- a/node_modules/yargs/locales/pt_BR.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "Commands:": "Comandos:", - "Options:": "Opções:", - "Examples:": "Exemplos:", - "boolean": "booleano", - "count": "contagem", - "string": "string", - "number": "número", - "array": "array", - "required": "obrigatório", - "default:": "padrão:", - "choices:": "opções:", - "aliases:": "sinônimos:", - "generated-value": "valor-gerado", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Argumentos insuficientes: Argumento %s, necessário pelo menos %s", - "other": "Argumentos insuficientes: Argumento %s, necessário pelo menos %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Excesso de argumentos: recebido %s, máximo de %s", - "other": "Excesso de argumentos: recebido %s, máximo de %s" - }, - "Missing argument value: %s": { - "one": "Falta valor de argumento: %s", - "other": "Falta valores de argumento: %s" - }, - "Missing required argument: %s": { - "one": "Falta argumento obrigatório: %s", - "other": "Faltando argumentos obrigatórios: %s" - }, - "Unknown argument: %s": { - "one": "Argumento desconhecido: %s", - "other": "Argumentos desconhecidos: %s" - }, - "Invalid values:": "Valores inválidos:", - "Argument: %s, Given: %s, Choices: %s": "Argumento: %s, Dado: %s, Opções: %s", - "Argument check failed: %s": "Verificação de argumento falhou: %s", - "Implications failed:": "Implicações falharam:", - "Not enough arguments following: %s": "Argumentos insuficientes a seguir: %s", - "Invalid JSON config file: %s": "Arquivo JSON de configuração inválido: %s", - "Path to JSON config file": "Caminho para o arquivo JSON de configuração", - "Show help": "Exibe ajuda", - "Show version number": "Exibe a versão", - "Did you mean %s?": "Você quis dizer %s?", - "Arguments %s and %s are mutually exclusive" : "Argumentos %s e %s são mutualmente exclusivos", - "Positionals:": "Posicionais:", - "command": "comando" -} diff --git a/node_modules/yargs/locales/ru.json b/node_modules/yargs/locales/ru.json deleted file mode 100644 index d5c9e32..0000000 --- a/node_modules/yargs/locales/ru.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "Commands:": "Команды:", - "Options:": "Опции:", - "Examples:": "Примеры:", - "boolean": "булевый тип", - "count": "подсчет", - "string": "строковой тип", - "number": "число", - "array": "массив", - "required": "необходимо", - "default": "по умолчанию", - "default:": "по умолчанию:", - "choices:": "возможности:", - "aliases:": "алиасы:", - "generated-value": "генерированное значение", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Недостаточно неопционных аргументов: есть %s, нужно как минимум %s", - "other": "Недостаточно неопционных аргументов: есть %s, нужно как минимум %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Слишком много неопционных аргументов: есть %s, максимум допустимо %s", - "other": "Слишком много неопционных аргументов: есть %s, максимум допустимо %s" - }, - "Missing argument value: %s": { - "one": "Не хватает значения аргумента: %s", - "other": "Не хватает значений аргументов: %s" - }, - "Missing required argument: %s": { - "one": "Не хватает необходимого аргумента: %s", - "other": "Не хватает необходимых аргументов: %s" - }, - "Unknown argument: %s": { - "one": "Неизвестный аргумент: %s", - "other": "Неизвестные аргументы: %s" - }, - "Invalid values:": "Недействительные значения:", - "Argument: %s, Given: %s, Choices: %s": "Аргумент: %s, Данное значение: %s, Возможности: %s", - "Argument check failed: %s": "Проверка аргументов не удалась: %s", - "Implications failed:": "Данный аргумент требует следующий дополнительный аргумент:", - "Not enough arguments following: %s": "Недостаточно следующих аргументов: %s", - "Invalid JSON config file: %s": "Недействительный файл конфигурации JSON: %s", - "Path to JSON config file": "Путь к файлу конфигурации JSON", - "Show help": "Показать помощь", - "Show version number": "Показать номер версии", - "Did you mean %s?": "Вы имели в виду %s?", - "Arguments %s and %s are mutually exclusive": "Аргументы %s и %s являются взаимоисключающими", - "Positionals:": "Позиционные аргументы:", - "command": "команда", - "deprecated": "устар.", - "deprecated: %s": "устар.: %s" -} diff --git a/node_modules/yargs/locales/th.json b/node_modules/yargs/locales/th.json deleted file mode 100644 index 33b048e..0000000 --- a/node_modules/yargs/locales/th.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "Commands:": "คอมมาน", - "Options:": "ออฟชั่น", - "Examples:": "ตัวอย่าง", - "boolean": "บูลีน", - "count": "นับ", - "string": "สตริง", - "number": "ตัวเลข", - "array": "อาเรย์", - "required": "จำเป็น", - "default": "ค่าเริ่มต้", - "default:": "ค่าเริ่มต้น", - "choices:": "ตัวเลือก", - "aliases:": "เอเลียส", - "generated-value": "ค่าที่ถูกสร้างขึ้น", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "ใส่อาร์กิวเมนต์ไม่ครบตามจำนวนที่กำหนด: ใส่ค่ามาจำนวน %s ค่า, แต่ต้องการอย่างน้อย %s ค่า", - "other": "ใส่อาร์กิวเมนต์ไม่ครบตามจำนวนที่กำหนด: ใส่ค่ามาจำนวน %s ค่า, แต่ต้องการอย่างน้อย %s ค่า" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "ใส่อาร์กิวเมนต์เกินจำนวนที่กำหนด: ใส่ค่ามาจำนวน %s ค่า, แต่ต้องการมากที่สุด %s ค่า", - "other": "ใส่อาร์กิวเมนต์เกินจำนวนที่กำหนด: ใส่ค่ามาจำนวน %s ค่า, แต่ต้องการมากที่สุด %s ค่า" - }, - "Missing argument value: %s": { - "one": "ค่าอาร์กิวเมนต์ที่ขาดไป: %s", - "other": "ค่าอาร์กิวเมนต์ที่ขาดไป: %s" - }, - "Missing required argument: %s": { - "one": "อาร์กิวเมนต์จำเป็นที่ขาดไป: %s", - "other": "อาร์กิวเมนต์จำเป็นที่ขาดไป: %s" - }, - "Unknown argument: %s": { - "one": "อาร์กิวเมนต์ที่ไม่รู้จัก: %s", - "other": "อาร์กิวเมนต์ที่ไม่รู้จัก: %s" - }, - "Invalid values:": "ค่าไม่ถูกต้อง:", - "Argument: %s, Given: %s, Choices: %s": "อาร์กิวเมนต์: %s, ได้รับ: %s, ตัวเลือก: %s", - "Argument check failed: %s": "ตรวจสอบพบอาร์กิวเมนต์ที่ไม่ถูกต้อง: %s", - "Implications failed:": "Implications ไม่สำเร็จ:", - "Not enough arguments following: %s": "ใส่อาร์กิวเมนต์ไม่ครบ: %s", - "Invalid JSON config file: %s": "ไฟล์คอนฟิค JSON ไม่ถูกต้อง: %s", - "Path to JSON config file": "พาทไฟล์คอนฟิค JSON", - "Show help": "ขอความช่วยเหลือ", - "Show version number": "แสดงตัวเลขเวอร์ชั่น", - "Did you mean %s?": "คุณหมายถึง %s?" -} diff --git a/node_modules/yargs/locales/tr.json b/node_modules/yargs/locales/tr.json deleted file mode 100644 index 0d0d2cc..0000000 --- a/node_modules/yargs/locales/tr.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "Commands:": "Komutlar:", - "Options:": "Seçenekler:", - "Examples:": "Örnekler:", - "boolean": "boolean", - "count": "sayı", - "string": "string", - "number": "numara", - "array": "array", - "required": "zorunlu", - "default": "varsayılan", - "default:": "varsayılan:", - "choices:": "seçimler:", - "aliases:": "takma adlar:", - "generated-value": "oluşturulan-değer", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Seçenek dışı argümanlar yetersiz: %s bulundu, %s gerekli", - "other": "Seçenek dışı argümanlar yetersiz: %s bulundu, %s gerekli" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Seçenek dışı argümanlar gereğinden fazla: %s bulundu, azami %s", - "other": "Seçenek dışı argümanlar gereğinden fazla: %s bulundu, azami %s" - }, - "Missing argument value: %s": { - "one": "Eksik argüman değeri: %s", - "other": "Eksik argüman değerleri: %s" - }, - "Missing required argument: %s": { - "one": "Eksik zorunlu argüman: %s", - "other": "Eksik zorunlu argümanlar: %s" - }, - "Unknown argument: %s": { - "one": "Bilinmeyen argüman: %s", - "other": "Bilinmeyen argümanlar: %s" - }, - "Invalid values:": "Geçersiz değerler:", - "Argument: %s, Given: %s, Choices: %s": "Argüman: %s, Verilen: %s, Seçimler: %s", - "Argument check failed: %s": "Argüman kontrolü başarısız oldu: %s", - "Implications failed:": "Sonuçlar başarısız oldu:", - "Not enough arguments following: %s": "%s için yeterli argüman bulunamadı", - "Invalid JSON config file: %s": "Geçersiz JSON yapılandırma dosyası: %s", - "Path to JSON config file": "JSON yapılandırma dosya konumu", - "Show help": "Yardım detaylarını göster", - "Show version number": "Versiyon detaylarını göster", - "Did you mean %s?": "Bunu mu demek istediniz: %s?", - "Positionals:": "Sıralılar:", - "command": "komut" -} diff --git a/node_modules/yargs/locales/uk_UA.json b/node_modules/yargs/locales/uk_UA.json deleted file mode 100644 index 0af0e99..0000000 --- a/node_modules/yargs/locales/uk_UA.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "Commands:": "Команди:", - "Options:": "Опції:", - "Examples:": "Приклади:", - "boolean": "boolean", - "count": "кількість", - "string": "строка", - "number": "число", - "array": "масива", - "required": "обов'язково", - "default": "за замовчуванням", - "default:": "за замовчуванням:", - "choices:": "доступні варіанти:", - "aliases:": "псевдоніми:", - "generated-value": "згенероване значення", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "Недостатньо аргументів: наразі %s, потрібно %s або більше", - "other": "Недостатньо аргументів: наразі %s, потрібно %s або більше" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "Забагато аргументів: наразі %s, максимум %s", - "other": "Too many non-option arguments: наразі %s, максимум of %s" - }, - "Missing argument value: %s": { - "one": "Відсутнє значення для аргументу: %s", - "other": "Відсутні значення для аргументу: %s" - }, - "Missing required argument: %s": { - "one": "Відсутній обов'язковий аргумент: %s", - "other": "Відсутні обов'язкові аргументи: %s" - }, - "Unknown argument: %s": { - "one": "Аргумент %s не підтримується", - "other": "Аргументи %s не підтримуються" - }, - "Invalid values:": "Некоректні значення:", - "Argument: %s, Given: %s, Choices: %s": "Аргумент: %s, Введено: %s, Доступні варіанти: %s", - "Argument check failed: %s": "Аргумент не пройшов перевірку: %s", - "Implications failed:": "Відсутні залежні аргументи:", - "Not enough arguments following: %s": "Не достатньо аргументів після: %s", - "Invalid JSON config file: %s": "Некоректний JSON-файл конфігурації: %s", - "Path to JSON config file": "Шлях до JSON-файлу конфігурації", - "Show help": "Показати довідку", - "Show version number": "Показати версію", - "Did you mean %s?": "Можливо, ви мали на увазі %s?", - "Arguments %s and %s are mutually exclusive" : "Аргументи %s та %s взаємовиключні", - "Positionals:": "Позиційні:", - "command": "команда", - "deprecated": "застарілий", - "deprecated: %s": "застарілий: %s" -} diff --git a/node_modules/yargs/locales/uz.json b/node_modules/yargs/locales/uz.json deleted file mode 100644 index 0d07168..0000000 --- a/node_modules/yargs/locales/uz.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "Commands:": "Buyruqlar:", - "Options:": "Imkoniyatlar:", - "Examples:": "Misollar:", - "boolean": "boolean", - "count": "sanoq", - "string": "satr", - "number": "raqam", - "array": "massiv", - "required": "majburiy", - "default": "boshlang'ich", - "default:": "boshlang'ich:", - "choices:": "tanlovlar:", - "aliases:": "taxalluslar:", - "generated-value": "yaratilgan-qiymat", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "No-imkoniyat argumentlar yetarli emas: berilgan %s, minimum %s", - "other": "No-imkoniyat argumentlar yetarli emas: berilgan %s, minimum %s" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "No-imkoniyat argumentlar juda ko'p: berilgan %s, maksimum %s", - "other": "No-imkoniyat argumentlar juda ko'p: got %s, maksimum %s" - }, - "Missing argument value: %s": { - "one": "Argument qiymati berilmagan: %s", - "other": "Argument qiymatlari berilmagan: %s" - }, - "Missing required argument: %s": { - "one": "Majburiy argument berilmagan: %s", - "other": "Majburiy argumentlar berilmagan: %s" - }, - "Unknown argument: %s": { - "one": "Noma'lum argument berilmagan: %s", - "other": "Noma'lum argumentlar berilmagan: %s" - }, - "Invalid values:": "Nosoz qiymatlar:", - "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Berilgan: %s, Tanlovlar: %s", - "Argument check failed: %s": "Muvaffaqiyatsiz argument tekshiruvi: %s", - "Implications failed:": "Bog'liq argumentlar berilmagan:", - "Not enough arguments following: %s": "Quyidagi argumentlar yetarli emas: %s", - "Invalid JSON config file: %s": "Nosoz JSON konfiguratsiya fayli: %s", - "Path to JSON config file": "JSON konfiguratsiya fayli joylashuvi", - "Show help": "Yordam ko'rsatish", - "Show version number": "Versiyani ko'rsatish", - "Did you mean %s?": "%s ni nazarda tutyapsizmi?", - "Arguments %s and %s are mutually exclusive" : "%s va %s argumentlari alohida", - "Positionals:": "Positsionallar:", - "command": "buyruq", - "deprecated": "eskirgan", - "deprecated: %s": "eskirgan: %s" - } - \ No newline at end of file diff --git a/node_modules/yargs/locales/zh_CN.json b/node_modules/yargs/locales/zh_CN.json deleted file mode 100644 index 257d26b..0000000 --- a/node_modules/yargs/locales/zh_CN.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "Commands:": "命令:", - "Options:": "选项:", - "Examples:": "示例:", - "boolean": "布尔", - "count": "计数", - "string": "字符串", - "number": "数字", - "array": "数组", - "required": "必需", - "default": "默认值", - "default:": "默认值:", - "choices:": "可选值:", - "generated-value": "生成的值", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "缺少 non-option 参数:传入了 %s 个, 至少需要 %s 个", - "other": "缺少 non-option 参数:传入了 %s 个, 至少需要 %s 个" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "non-option 参数过多:传入了 %s 个, 最大允许 %s 个", - "other": "non-option 参数过多:传入了 %s 个, 最大允许 %s 个" - }, - "Missing argument value: %s": { - "one": "没有给此选项指定值:%s", - "other": "没有给这些选项指定值:%s" - }, - "Missing required argument: %s": { - "one": "缺少必须的选项:%s", - "other": "缺少这些必须的选项:%s" - }, - "Unknown argument: %s": { - "one": "无法识别的选项:%s", - "other": "无法识别这些选项:%s" - }, - "Invalid values:": "无效的选项值:", - "Argument: %s, Given: %s, Choices: %s": "选项名称: %s, 传入的值: %s, 可选的值:%s", - "Argument check failed: %s": "选项值验证失败:%s", - "Implications failed:": "缺少依赖的选项:", - "Not enough arguments following: %s": "没有提供足够的值给此选项:%s", - "Invalid JSON config file: %s": "无效的 JSON 配置文件:%s", - "Path to JSON config file": "JSON 配置文件的路径", - "Show help": "显示帮助信息", - "Show version number": "显示版本号", - "Did you mean %s?": "是指 %s?", - "Arguments %s and %s are mutually exclusive" : "选项 %s 和 %s 是互斥的", - "Positionals:": "位置:", - "command": "命令" -} diff --git a/node_modules/yargs/locales/zh_TW.json b/node_modules/yargs/locales/zh_TW.json deleted file mode 100644 index e38495d..0000000 --- a/node_modules/yargs/locales/zh_TW.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "Commands:": "命令:", - "Options:": "選項:", - "Examples:": "範例:", - "boolean": "布林", - "count": "次數", - "string": "字串", - "number": "數字", - "array": "陣列", - "required": "必填", - "default": "預設值", - "default:": "預設值:", - "choices:": "可選值:", - "aliases:": "別名:", - "generated-value": "生成的值", - "Not enough non-option arguments: got %s, need at least %s": { - "one": "non-option 引數不足:只傳入了 %s 個, 至少要 %s 個", - "other": "non-option 引數不足:只傳入了 %s 個, 至少要 %s 個" - }, - "Too many non-option arguments: got %s, maximum of %s": { - "one": "non-option 引數過多:傳入了 %s 個, 但最多 %s 個", - "other": "non-option 引數過多:傳入了 %s 個, 但最多 %s 個" - }, - "Missing argument value: %s": { - "one": "此引數無指定值:%s", - "other": "這些引數無指定值:%s" - }, - "Missing required argument: %s": { - "one": "缺少必須的引數:%s", - "other": "缺少這些必須的引數:%s" - }, - "Unknown argument: %s": { - "one": "未知的引數:%s", - "other": "未知的引數:%s" - }, - "Invalid values:": "無效的選項值:", - "Argument: %s, Given: %s, Choices: %s": "引數名稱: %s, 傳入的值: %s, 可選的值:%s", - "Argument check failed: %s": "引數驗證失敗:%s", - "Implications failed:": "缺少依賴引數:", - "Not enough arguments following: %s": "沒有提供足夠的值給此引數:%s", - "Invalid JSON config file: %s": "無效的 JSON 設置文件:%s", - "Path to JSON config file": "JSON 設置文件的路徑", - "Show help": "顯示說明", - "Show version number": "顯示版本", - "Did you mean %s?": "您是指 %s 嗎?", - "Arguments %s and %s are mutually exclusive" : "引數 %s 和 %s 互斥", - "Positionals:": "位置:", - "command": "命令", - "deprecated": "已淘汰", - "deprecated: %s": "已淘汰:%s" - } diff --git a/node_modules/yargs/package.json b/node_modules/yargs/package.json deleted file mode 100644 index 389cc6b..0000000 --- a/node_modules/yargs/package.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "name": "yargs", - "version": "17.7.2", - "description": "yargs the modern, pirate-themed, successor to optimist.", - "main": "./index.cjs", - "exports": { - "./package.json": "./package.json", - ".": [ - { - "import": "./index.mjs", - "require": "./index.cjs" - }, - "./index.cjs" - ], - "./helpers": { - "import": "./helpers/helpers.mjs", - "require": "./helpers/index.js" - }, - "./browser": { - "import": "./browser.mjs", - "types": "./browser.d.ts" - }, - "./yargs": [ - { - "import": "./yargs.mjs", - "require": "./yargs" - }, - "./yargs" - ] - }, - "type": "module", - "module": "./index.mjs", - "contributors": [ - { - "name": "Yargs Contributors", - "url": "https://github.com/yargs/yargs/graphs/contributors" - } - ], - "files": [ - "browser.mjs", - "browser.d.ts", - "index.cjs", - "helpers/*.js", - "helpers/*", - "index.mjs", - "yargs", - "yargs.mjs", - "build", - "locales", - "LICENSE", - "lib/platform-shims/*.mjs", - "!*.d.ts", - "!**/*.d.ts" - ], - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "devDependencies": { - "@types/chai": "^4.2.11", - "@types/mocha": "^9.0.0", - "@types/node": "^18.0.0", - "c8": "^7.7.0", - "chai": "^4.2.0", - "chalk": "^4.0.0", - "coveralls": "^3.0.9", - "cpr": "^3.0.1", - "cross-env": "^7.0.2", - "cross-spawn": "^7.0.0", - "eslint": "^7.23.0", - "gts": "^3.0.0", - "hashish": "0.0.4", - "mocha": "^9.0.0", - "rimraf": "^3.0.2", - "rollup": "^2.23.0", - "rollup-plugin-cleanup": "^3.1.1", - "rollup-plugin-terser": "^7.0.2", - "rollup-plugin-ts": "^2.0.4", - "typescript": "^4.0.2", - "which": "^2.0.0", - "yargs-test-extends": "^1.0.1" - }, - "scripts": { - "fix": "gts fix && npm run fix:js", - "fix:js": "eslint . --ext cjs --ext mjs --ext js --fix", - "posttest": "npm run check", - "test": "c8 mocha --enable-source-maps ./test/*.cjs --require ./test/before.cjs --timeout=12000 --check-leaks", - "test:esm": "c8 mocha --enable-source-maps ./test/esm/*.mjs --check-leaks", - "coverage": "c8 report --check-coverage", - "prepare": "npm run compile", - "pretest": "npm run compile -- -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs", - "compile": "rimraf build && tsc", - "postcompile": "npm run build:cjs", - "build:cjs": "rollup -c rollup.config.cjs", - "postbuild:cjs": "rimraf ./build/index.cjs.d.ts", - "check": "gts lint && npm run check:js", - "check:js": "eslint . --ext cjs --ext mjs --ext js", - "clean": "gts clean" - }, - "repository": { - "type": "git", - "url": "https://github.com/yargs/yargs.git" - }, - "homepage": "https://yargs.js.org/", - "keywords": [ - "argument", - "args", - "option", - "parser", - "parsing", - "cli", - "command" - ], - "license": "MIT", - "engines": { - "node": ">=12" - } -} diff --git a/node_modules/yargs/yargs b/node_modules/yargs/yargs deleted file mode 100644 index 8460d10..0000000 --- a/node_modules/yargs/yargs +++ /dev/null @@ -1,9 +0,0 @@ -// TODO: consolidate on using a helpers file at some point in the future, which -// is the approach currently used to export Parser and applyExtends for ESM: -const {applyExtends, cjsPlatformShim, Parser, Yargs, processArgv} = require('./build/index.cjs') -Yargs.applyExtends = (config, cwd, mergeExtends) => { - return applyExtends(config, cwd, mergeExtends, cjsPlatformShim) -} -Yargs.hideBin = processArgv.hideBin -Yargs.Parser = Parser -module.exports = Yargs diff --git a/node_modules/yargs/yargs.mjs b/node_modules/yargs/yargs.mjs deleted file mode 100644 index 6d9f390..0000000 --- a/node_modules/yargs/yargs.mjs +++ /dev/null @@ -1,10 +0,0 @@ -// TODO: consolidate on using a helpers file at some point in the future, which -// is the approach currently used to export Parser and applyExtends for ESM: -import pkg from './build/index.cjs'; -const {applyExtends, cjsPlatformShim, Parser, processArgv, Yargs} = pkg; -Yargs.applyExtends = (config, cwd, mergeExtends) => { - return applyExtends(config, cwd, mergeExtends, cjsPlatformShim); -}; -Yargs.hideBin = processArgv.hideBin; -Yargs.Parser = Parser; -export default Yargs;
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-